-
Notifications
You must be signed in to change notification settings - Fork 80
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
Open Editors in a Modal (library components only) [FC-0062] #1357
Conversation
Thanks for the pull request, @bradenmacdonald! What's next?Please work through the following steps to get your changes 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. 🔘 Let us know that your PR is ready for review:Who will review my changes?This repository is currently maintained by 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 ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1357 +/- ##
=======================================
Coverage 92.97% 92.98%
=======================================
Files 1036 1034 -2
Lines 19457 19490 +33
Branches 4126 4135 +9
=======================================
+ Hits 18090 18122 +32
- Misses 1302 1303 +1
Partials 65 65 ☔ View full report in Codecov by Sentry. |
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.
@bradenmacdonald This change looks great, but it's not letting me edit library problem blocks anymore? I don't see a modal pop up when I click "edit" for these. Editing problems in a course works fine, as does editing library html and video blocks.
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 @bradenmacdonald.
The code is looking good!
I found a bug while trying to edit a Problem in the "blank" state. The content is rendered at the bottom of the page instead of in the modal.
Edit: Ops.. It seems to be the same bug that @pomegranited reported.
src/library-authoring/create-collection/CreateCollectionModal.tsx
Outdated
Show resolved
Hide resolved
@rpenido @pomegranited Thanks for catching that bug. It should be fixed now :) |
59194e6
to
2bc53e0
Compare
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.
LGTM 👍
Thank you for your work, @bradenmacdonald!
- I tested this using the instructions from the PR
- I read through the code
- I checked for accessibility issues
- Includes documentation
615cfe5
to
89a1bff
Compare
@ChrisChV Could you please review as CC? Also @pomegranited this is ready for a second review. |
8710ee9
to
e8f87ba
Compare
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.
👍 Works great, thank you @bradenmacdonald !
- I tested this on course and library blocks of type video, text, and problem
- I read through the code
- I checked for accessibility issues by using my keyboard to navigate
- Includes documentation for added parameters and functionality
- User-facing strings are extracted for translation
Thanks everyone! |
Description
Implements #1321
This PR changes the built-in editors so that in libraries they open in a modal, with the library partially visible behind them. Because we still have to support the legacy unit page as default, editing content in courses will continue to use the full screen editor.
Screenshots:
Testing instructions
Try the various (Text, Problem, Video) editors in libraries as well as in courses, and make sure there are no regressions.
Other information
Includes changes from #1345 - merge that one first.
Private ref: FAL-3861.