-
Notifications
You must be signed in to change notification settings - Fork 122
feat: display editors as modals #1838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thanks for the pull request, @DanielVZ96! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. Where can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1838 +/- ##
==========================================
+ Coverage 93.77% 93.78% +0.01%
==========================================
Files 1146 1146
Lines 23905 23898 -7
Branches 5043 5160 +117
==========================================
- Hits 22416 22412 -4
+ Misses 1421 1409 -12
- Partials 68 77 +9 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @DanielVZ96 The VideoEditor code was much more complicated than it needed to be -- the VideoGallery and VideoSelectors are only used in the Content > Video page, not when editing VideoXBlocks. So I reverted changes to that code.
This is working now, but there are a couple bugs we'll need to fix as part of follow-up PRs:
- Duplicating a block opens the block editor, but shows page not found.
- The course optimizer helper relies on the editor page endpoints removed here.
So we need another way to trigger the editor modal for a given block.
👍
- I tested this by adding and editing all the default and advanced types of XBlocks.
- I read through the code
- I checked for accessibility issues by using my keyboard to navigate
- Includes documentation
- User-facing strings are extracted for translation
I made a small fix in 9161f92, the editor is now displayed, but I found the following bugs:
I agree that they can be done in part as a follow-up PR. CC @DanielVZ96 |
9161f92
to
3348877
Compare
3348877
to
5777ae4
Compare
Description
Currently in libraries editing a component opens a modal without navigating into other urls, but in course units you get redirected to a new page to edit the block and then back to the unit page.
This PRs refactors the logic so that editing components in courses opens modals instead of redirecting.. Currently it is keeping the editing urls in order to not break any other flows such as the video upload page.
Supporting information
Issue: #1644
Testing instructions
tutor dev run lms ./manage.py lms shell -c "from waffle.models import Flag; Flag.objects.update_or_create(name='contentstore.new_studio_mfe.use_new_unit_page', defaults={'everyone': True})"
Other information
Private-Ref