-
Notifications
You must be signed in to change notification settings - Fork 76
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: [FC-0044] Unit page - add new component section #828
feat: [FC-0044] Unit page - add new component section #828
Conversation
Thanks for the pull request, @ihor-romaniuk! Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #828 +/- ##
==========================================
+ Coverage 89.02% 89.13% +0.11%
==========================================
Files 545 548 +3
Lines 9585 9647 +62
Branches 2054 2067 +13
==========================================
+ Hits 8533 8599 +66
+ Misses 1005 1001 -4
Partials 47 47 ☔ View full report in Codecov by Sentry. |
84be573
to
a4959b2
Compare
Sandbox deployment successful. Sandbox LMS is available at https://pr-828-ba9a65.sandboxes.opencraft.hosting Instance Tutor config : https://axim-sandbox-build-logs-4626178240.nyc3.digitaloceanspaces.com/pr-828-ba9a65-51564656-6130867327-tutor-config.yml |
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.
Can you add a test for when adding a component fails?
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.
Tests have been added for all uncovered places.
Sandbox deployment successful. Sandbox LMS is available at https://pr-828-ba9a65.sandboxes.opencraft.hosting Instance Tutor config : https://axim-sandbox-build-logs-4626178240.nyc3.digitaloceanspaces.com/pr-828-ba9a65-51564656-6131255999-tutor-config.yml |
Sandbox deployment successful. Sandbox LMS is available at https://pr-828-ba9a65.sandboxes.opencraft.hosting Instance Tutor config : https://axim-sandbox-build-logs-4626178240.nyc3.digitaloceanspaces.com/pr-828-ba9a65-51564656-6131511023-tutor-config.yml |
a4959b2
to
48001a4
Compare
Sandbox deployment successful. Sandbox LMS is available at https://pr-828-ba9a65.sandboxes.opencraft.hosting Instance Tutor config : https://axim-sandbox-build-logs-4626178240.nyc3.digitaloceanspaces.com/pr-828-ba9a65-51564656-6138234772-tutor-config.yml |
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.
One optional nit and a couple of questions, but otherwise approved.
Oh, and it Runs In Tutor ™️ ✅ . ;)
@@ -146,4 +158,57 @@ describe('<CourseUnit />', () => { | |||
expect(titleEditField).not.toBeInTheDocument(); | |||
expect(await findByText(newDisplayName)).toBeInTheDocument(); | |||
}); | |||
|
|||
it('doesn\'t handle creating xblock and displays an error message', async () => { |
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.
it('doesn\'t handle creating xblock and displays an error message', async () => { | |
it('doesn\'t handle creating video xblock and displays an error message', async () => { |
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.
Maybe this was made to be generic intentionally. In which case, ignore the comment.
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.
Yes, you are right. It might be as a generic and can be reverted in next MR.
navigate(`/course/${courseKey}/editor/${type}/${locator}`); | ||
}); | ||
break; | ||
default: |
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.
[Non-blocking] Do we have a plan to handle "advanced" (i.e, custom) XBlocks?
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.
* @param {string} checkPath - the internal route path that is validated | ||
* @returns {string} - the correct internal route path | ||
*/ | ||
export const createCorrectInternalRoute = (checkPath) => { |
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.
[Non-blocking] Thank you for handling PUBLIC_PATH
and the trailing slash! 👍🏼
This came up a lot after the react-router-v6 upgrade, during Quince testing. It should be standardized in frontend-platform, eventually.
@ihor-romaniuk 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
Settings
Description
This pull request introduces a new section that allow adding the addition of various xblock components to the page. The main features of this update include a block with pre-prepared buttons for different types of components.
The primary features were implemented:
Issue: openedx/platform-roadmap#321
Developer notes
The first three commits in this pull request are temporary. Once the #809 is merged, the fourth and next commits of this pull request will become the main commits.
Design
https://www.figma.com/file/YeKFwSpyLaJFDs3f3p3TSa/Studio-1%3A1-mock-ups?node-id=599%3A23595
Testing instructions
contentstore.new_studio_mfe.use_new_unit_page
in CMS admin panel.