feat: [FC-0044] expose editor for advanced xblocks and move modal in CMS #34929
+284
−6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
In this PR a new view is added to CMS to render xblock modal views such as editor for advanced problem types and move xBlock modal. It's intended to use this view to render mentioned earlier interfaces in the course-authoring MFE. The course-authoring implementation can be found in this PR - openedx/frontend-app-authoring#985.
This particular decision was made because the functionality to edit and move modals depends on the BackboneJS implementation, and can't be recreated in the React.js within the current solution.
According to discussions in #34161 (comment) and openedx/frontend-app-authoring#964 (review) the final decision for rendering xblock previews will also affect rendering of the edit modal for advanced xBlock. Therefore, it was decided to postpone the merge of the current implementation, and revise it after the decision for xBlocks previews is made.
Supporting information
Issue: openedx/platform-roadmap#321
Testing instructions
Start CMS service
Copy xBlock locator for advanced problem
Open to - {CMS_BASE}/xblock/{xblock_locator}/actions/edit
See edit modal for the xBlock
Start CMS service
Copy xBlock locator for advanced problem
Open to - {CMS_BASE}/xblock/{xblock_locator}/actions/move
See move modal for the xBlock
Deadline
"None"
Other information
This PR is a replacement for the github.com//pull/34656