-
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
feat: edit Text components within content libraries [FC-0062] #1240
feat: edit Text components within content libraries [FC-0062] #1240
Conversation
0720d11
to
ac85a40
Compare
7147905
to
27232b7
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1240 +/- ##
==========================================
+ Coverage 92.25% 92.31% +0.05%
==========================================
Files 1011 1013 +2
Lines 18654 18733 +79
Branches 3931 4008 +77
==========================================
+ Hits 17210 17293 +83
+ Misses 1378 1374 -4
Partials 66 66 ☔ View full report in Codecov by Sentry. |
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. |
0972265
to
cc90757
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!
Great work here! I left some non-blocking comments. Feel free to push back if you don't agree.
- I tested this using the instructions from the PR
- I read through the code
- I checked for accessibility issues
- Includes documentation
I found some warnings in the console while opening the editor, not directly related to this code:
- The learningContextId inside the TextEditor is null in the first render (it is injected from the redux store)
Warning: Failed prop type: The prop `learningContextId` is marked as required in `TextEditor`, but its value is `null`.
- Missing
alt
in the IconButton atsrc/editors/containers/EditorContainer/index.jsx:65
Warning: Failed prop type: The prop `alt` is marked as required in `ForwardRef(_c)`, but its value is `undefined`.
- This is from paragon typings. (Fix here: fix:
Toast
children prop type paragon#3232)
Warning: Failed prop type: Invalid prop `children` of type `object` supplied to `Toast`, expected `string`.
/** Course ID or Library ID */ | ||
learningContextId: string; | ||
/** Event handler for when user cancels out of the editor page */ | ||
onClose?: () => void; |
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.
This issue is with the underlying editor, but passing onClose={undefined}
here actually crashes the TextEditor
.
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.
Tried to address this with 9e62bc0
cc90757
to
7c7dee3
Compare
f2351be
to
f5796ac
Compare
@ChrisChV Can you please give this a review as CC ? |
@rpenido Thank you for the very nice review! I addressed all your comments. |
d7bdd91
to
f4cbca8
Compare
f4cbca8
to
ff05d2d
Compare
ff05d2d
to
be9d01b
Compare
Description
This implements #1090 so that Text (
html
) components can be edited within v2 content libraries.Supporting information
Testing instructions
Other information
Private ref: FAL-3819
TODOs before merge: