-
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: [FC-0070] rendering library content in unit page #1475
base: master
Are you sure you want to change the base?
feat: [FC-0070] rendering library content in unit page #1475
Conversation
Thanks for the pull request, @ihor-romaniuk! 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. |
9c96a31
to
89a6473
Compare
26c3235
to
f836c6c
Compare
f836c6c
to
b53e28f
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1475 +/- ##
========================================
Coverage 92.91% 92.92%
========================================
Files 1065 1072 +7
Lines 20979 21097 +118
Branches 4537 4580 +43
========================================
+ Hits 19493 19604 +111
- Misses 1419 1420 +1
- Partials 67 73 +6 β View full report in Codecov by Sentry. |
09c33b0
to
f45ad06
Compare
Sandbox deployment failed π₯ |
@bradenmacdonald Yes, you are right. This is v1 library content. |
f45ad06
to
70f93f2
Compare
Sandbox deployment failed π₯ |
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.
I haven't had time to review this yet, sorry. Will try to take a look tomorrow.
{ancestorXblocks.map(({ children, title, isLast }, index) => ( | ||
<li | ||
className="d-flex" | ||
key={title} |
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.
Is title
unique? If not, then maybe use {index}
as the key
?
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.
Replaced with key={`${title}-${index}`}
Sandbox deployment successful π |
^ This PR is actually a dependency and should be listed under "Dependencies" please :) |
src/course-unit/CourseUnit.jsx
Outdated
<Breadcrumbs /> | ||
<Breadcrumbs | ||
courseId={courseId} | ||
sequenceId={sequenceId} |
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.
What on earth is a "sequence ID"? I think the variable / URL parameter sequenceId
is very unclear, and poorly documented. Can we rename it to something more clear? Is it "parent ID"? "Parent Unit ID"? Or something else?
I know it was already in the code here, but I think it's a problem and we can fix it now.
It's also very weird that it comes after the ID of the child containerΒ in the URL, but it may be too late to change that.
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.
Completely agree with you, and I tried to rename sequenceId
to parentUnitId
with minimal code impact.
variant="outline-primary" | ||
onClick={handleEdit} | ||
> | ||
{intl.formatMessage(messages.editButton)} |
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.
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.
Sandbox deployment successful π |
2af7492
to
c54f263
Compare
Sandbox deployment successful π |
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. Thanks.
ACCOUNT_PROFILE_URL: process.env.ACCOUNT_PROFILE_URL || null, | ||
ACCOUNT_SETTINGS_URL: process.env.ACCOUNT_SETTINGS_URL || null, | ||
IGNORED_ERROR_REGEX: process.env.IGNORED_ERROR_REGEX || null, | ||
MFE_CONFIG_API_URL: process.env.MFE_CONFIG_API_URL || null, |
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.
I'm not sure why these lines are included in this PR? Are they required for some of the new tests?
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.
These configurations fix existing warnings in unit page tests.
c54f263
to
f0c3e23
Compare
Sandbox deployment successful π |
π¨ Dependencies:
Settings
Description
This PR introduces functionality to display Library Content within the new Unit page interface.
The feature enables opening a Library Content page within the Unit pageβs new interface. This page displays the xBlocks from the specified library and provides basic configuration options for the library.
Unit_Library_Content.mov
Related Pull Requests
Testing instructions