Title: Integrate Resource Viewer/Editor/Creator with the Tree · Issue #174 · studycloud/studycloud · GitHub
Open Graph Title: Integrate Resource Viewer/Editor/Creator with the Tree · Issue #174 · studycloud/studycloud
X Title: Integrate Resource Viewer/Editor/Creator with the Tree · Issue #174 · studycloud/studycloud
Description: A -> B means From "A" to "B" Tree -> Resource Viewer User tries to open/display a resource from a node in the tree Call the resource viewer function with resource id Change URL from /tree to /resources/
Open Graph Description: A -> B means From "A" to "B" Tree -> Resource Viewer User tries to open/display a resource from a node in the tree Call the resource viewer function with resource id Change URL from /tree to /resou...
X Description: A -> B means From "A" to "B" Tree -> Resource Viewer User tries to open/display a resource from a node in the tree Call the resource viewer function with resource id Chang...
Opengraph URL: https://github.com/studycloud/studycloud/issues/174
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Integrate Resource Viewer/Editor/Creator with the Tree","articleBody":"### A -\u003e B means From \"A\" to \"B\"\r\n---------------------------------------------------------------------------------------------------\r\n\r\n### Tree -\u003e Resource Viewer\r\n- User tries to open/display a resource from a node in the tree\r\n- [x] Call the resource viewer function with resource id\r\n- [x] Change URL from **/tree** to **/resources/\u003cresource_id\u003e**\r\n\r\n### URL -\u003e Resource Viewer\r\n- User types the specific address to view a resource in the browser: **/resources/\u003cresource_id\u003e**\r\n- [ ] Call the resource viewer function with the resource id passed in from the URL\r\n- [ ] Load the tree in the background, showing the resource node at the right place\r\n\r\n### Resource Editor \u0026 Submit Edits -\u003e Resource Viewer\r\n- User finishes editing the resource and click the \"Submit\" button\r\n- [ ] Close the current modal --\u003e Immediately reopen the modal --\u003e Call the resource viewer function with the resource id, pass in updated resource data\r\n- [ ] Re-render the tree in the background to reflect new changes\r\n- [ ] Change the URL from **/resources/\u003cresource_id\u003e/edit** to **/resources/\u003cresource_id\u003e**\r\n\r\n### Resource Creator \u0026 Create A New Resource -\u003e Resource Viewer\r\n- User finishes creating the resource and click the \"Create\" button\r\n- [ ] Close the current modal --\u003e Immediately reopen the modal --\u003e Call the resource viewer function with the resource id, pass in new resource data\r\n- [ ] Re-render the tree in the background to reflect new changes\r\n- [ ] Change the URL from **/tree** to **/resources/\u003cresource_id\u003e**\r\n\r\n------------------------------------------------------------------------------------------------------\r\n\r\n### Tree -\u003e Resource Editor\r\n- User tries to edit a resource by right-clicking a node and clicking the \"Edit\" option in the drop-down menu\r\n- Call the resource editor function (TODO) with resource id\r\n- Change URL from **/tree** to **/resources/\u003cresource_id\u003e/edit**\r\n\r\n### URL -\u003e Resource Editor\r\n- User types the specific address to edit a resource in the browser: **/resources/\u003cresource_id\u003e/edit**\r\n- [X] Call the resource editor function with the resource id passed in from the URL\r\n- [ ] Load the tree in the background, showing the resource node at the right place\r\n\r\n### Resource Viewer \u0026 Click \"Edit\" Button -\u003e Resource Editor\r\n- User **(has to be the author)** clicks the \"Edit\" button on the resource viewer\r\n- [ ] Close the current modal --\u003e Immediately reopen the modal --\u003e Call the resource viewer function with the resource id, pass in resource data\r\n- [ ] Change the URL from **/resources/\u003cresource_id\u003e** to **/resources/\u003cresource_id\u003e/edit**\r\n\r\n------------------------------------------------------------------------------------------------------\r\n\r\n### Close Resource Viewer -\u003e Tree\r\n- User closes the resource viewer modal\r\n- Since there isn't any changes to the data, do not need to re-render the tree\r\n- [x] Close the current resource viewer modal\r\n- [ ] Change the URL from **/resources/\u003cresource_id\u003e** to **/tree**\r\n\r\n### Close Resource Editor Without Submitting New Changes-\u003e Tree\r\n- User closes the resource editor modal without clicking the \"Submit\" button\r\n- Since there isn't any changes to the data, do not need to re-render the tree\r\n- [x] Close the current resource editor modal\r\n- [ ] Change the URL from **/resources/\u003cresource_id\u003e/edit** to **/tree**\r\n\r\n### Close Resource Creator Without Creating A New Resource -\u003e Tree\r\n- User closes the resource editor modal without clicking the \"Create\" button\r\n- Since there isn't any changes to the data, do not need to re-render the tree\r\n- [x] Close the current resource creator modal\r\n\r\n------------------------------------------------------------------------------------------------------\r\n\r\n### Tree -\u003e Resource Creator\r\n- User tries to create a resource by right-clicking a node and clicking the \"Create\" option in the drop-down menu\r\n- [x] Call the resource viewer function with class id (the class that the resource belongs to)\r\n\r\n","author":{"url":"https://github.com/LunaY0Yuki","@type":"Person","name":"LunaY0Yuki"},"datePublished":"2020-03-08T04:35:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/174/studycloud/issues/174"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d7602401-d49a-da31-f79d-91e7f0ef55a3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C768:1168A1:4037639:585E1B9:6977E610 |
| html-safe-nonce | 3cb1e45ecbd6dccfe0781b36b262d5420818cbf3c19f25fb0aed31afbad5a8c2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzY4OjExNjhBMTo0MDM3NjM5OjU4NUUxQjk6Njk3N0U2MTAiLCJ2aXNpdG9yX2lkIjoiMjY4NDM5NTMyOTU5OTAzODk5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b7c1dde7af2440a3caaa273dce1cd454c2e3ed33d1b1b81e30ca696670e869e4 |
| hovercard-subject-tag | issue:577443853 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/studycloud/studycloud/174/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8fcb533efaa8c69f1faed2272917c55552343d945deb625df32e8db938187235/studycloud/studycloud/issues/174 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8fcb533efaa8c69f1faed2272917c55552343d945deb625df32e8db938187235/studycloud/studycloud/issues/174 |
| og:image:alt | A -> B means From "A" to "B" Tree -> Resource Viewer User tries to open/display a resource from a node in the tree Call the resource viewer function with resource id Change URL from /tree to /resou... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | LunaY0Yuki |
| hostname | github.com |
| expected-hostname | github.com |
| None | 870e7b4ef171b9ec3e0c7f1f5cb9c5a5c1d1899865e861b49008c3f435fc1c4e |
| turbo-cache-control | no-preview |
| go-import | github.com/studycloud/studycloud git https://github.com/studycloud/studycloud.git |
| octolytics-dimension-user_id | 61662669 |
| octolytics-dimension-user_login | studycloud |
| octolytics-dimension-repository_id | 75028068 |
| octolytics-dimension-repository_nwo | studycloud/studycloud |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 75028068 |
| octolytics-dimension-repository_network_root_nwo | studycloud/studycloud |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c3b778ddc3525ff438f1b4bb848d8fd3aaf2e0dd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width