-
Notifications
You must be signed in to change notification settings - Fork 77
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
feat: preview library block changes in course unit [FC-0062] #1506
Conversation
Thanks for the pull request, @navinkarkera! 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. |
4a43f32
to
091ca75
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1506 +/- ##
=========================================
Coverage ? 92.90%
=========================================
Files ? 1065
Lines ? 20958
Branches ? 4528
=========================================
Hits ? 19472
Misses ? 1413
Partials ? 73 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
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, @navinkarkera! This is working great.
And thanks for the minor refactor while calling the mutations.
- I tested this using the instructions from the PR
- I read through the code
- I checked for accessibility issues
- Includes documentation
Note: It is not related to this PR, but inserting a component (using the add Library Content button) with a static image breaks the image, but pasting doesn't. Updating the XBlock to the last version also breaks the image. I think this was reported somewhere, but I'm not sure.
> | ||
<ModalDialog.Header> | ||
<ModalDialog.Title> | ||
{getTitle()} |
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.
Nit: If you change the component title, it will show the original one. How hard is rendering something like OldTitle -> New Title
? I'm not sure if we have this information easily available.
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.
@rpenido Nice idea! Done. If the new title is different than the old one, we display it.
897dc61
to
8f2fa24
Compare
FYI the test failure will be fixed if you rebase on master. |
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.
Looks good. I will wait until #1422 is merged. Only one issue: On my local the modal looks like this:
8f2fa24
to
f11058f
Compare
@ChrisChV That is weird. I tested this on both chrome and firefox based browsers, it looks fine. Can you inspect the gray part and investigate the css (probably the height of the container)? |
Yes, it is the height in the |
I'm experiencing the same issue @navinkarkera. It happens when the modal doesn't fit the screen. You can simulate it, reducing the viewport height. The |
@rpenido @ChrisChV It works, the problem is with modal dialog body. I fixed it by using MFE course unit: Legacy course unit: |
Thanks @navinkarkera! This helps a lot, but I think the underlying cause remains here. |
@rpenido Yep but changing that to |
6bd1d4d
to
a065191
Compare
Description
Implements: #1464
Depends on:
Supporting information
Private-ref
: FAL-3943Testing instructions
contentstore.new_studio_mfe.use_new_unit_page
update
button in the component header.