-
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: allow full width content in library authoring [FC-0062] #1258
feat: allow full width content in library authoring [FC-0062] #1258
Conversation
Thanks for the pull request, @rpenido! 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. |
b6e58d4
to
491bc7a
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.
@rpenido I've only done a code review (npm is taking its sweet time 😄 ), but left some comments for you here and on the related PRs.
package.json
Outdated
@@ -63,7 +63,7 @@ | |||
"@openedx-plugins/course-app-wiki": "file:plugins/course-apps/wiki", | |||
"@openedx-plugins/course-app-xpert_unit_summary": "file:plugins/course-apps/xpert_unit_summary", | |||
"@openedx/frontend-plugin-framework": "^1.2.1", | |||
"@openedx/paragon": "^22.5.1", | |||
"@openedx/paragon": "git+ssh://github.com/open-craft/paragon#0e0a66a794fbb6ccf61f7afa9264e096f132cd1b", |
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 commit hash doesn't match openedx/paragon#3216 :
"@openedx/paragon": "git+ssh://github.com/open-craft/paragon#0e0a66a794fbb6ccf61f7afa9264e096f132cd1b", | |
"@openedx/paragon": "git+ssh://github.com/open-craft/paragon#4a206aec3227fe3f6b8e00d93035a4563b251d3a", |
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.
The problem here is that our build system is not building git dependencies. So, I created another branch (https://github.com/open-craft/paragon/tree/rpenido/dist/fal-3820-add-full-width-container-option) with the component built (with the dist folder) to link here. I don't know how we can handle it better.
Also, I think this is why we are having dependency conflicts. Locally, we solve it with --legacy-peer-deps
, but I can't make the CI run.
package.json
Outdated
@@ -47,8 +47,8 @@ | |||
"@dnd-kit/sortable": "^8.0.0", | |||
"@dnd-kit/utilities": "^3.2.2", | |||
"@edx/brand": "npm:@openedx/brand-openedx@^1.2.3", | |||
"@edx/frontend-component-footer": "^14.0.3", | |||
"@edx/frontend-component-header": "^5.3.3", | |||
"@edx/frontend-component-footer": "git+ssh://github.com/open-craft/frontend-component-footer#335ad6d0b09b868bced3f9988dd355666e54a50c", |
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 commit hash doesn't match openedx/frontend-component-footer#463:
"@edx/frontend-component-footer": "git+ssh://github.com/open-craft/frontend-component-footer#335ad6d0b09b868bced3f9988dd355666e54a50c", | |
"@edx/frontend-component-footer": "git+ssh://github.com/open-craft/frontend-component-footer#3b9230d7eadc12b4a9db01898b05e56303ae181b", |
package.json
Outdated
"@edx/frontend-component-footer": "^14.0.3", | ||
"@edx/frontend-component-header": "^5.3.3", | ||
"@edx/frontend-component-footer": "git+ssh://github.com/open-craft/frontend-component-footer#335ad6d0b09b868bced3f9988dd355666e54a50c", | ||
"@edx/frontend-component-header": "git+ssh://github.com/open-craft/frontend-component-header#8aefc103cbe8ba59b1df96bf0aa3bce406b6d38e", |
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 commit hash doesn't match openedx/frontend-component-header#529:
"@edx/frontend-component-header": "git+ssh://github.com/open-craft/frontend-component-header#8aefc103cbe8ba59b1df96bf0aa3bce406b6d38e", | |
"@edx/frontend-component-header": "git+ssh://github.com/open-craft/frontend-component-header#6ede5ee13d89b3fb6e7da1ec0f2f2c588016a51b", |
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 beautifully, thank you @rpenido !
- I tested this on my tutor devstack using the latest commit hashes from the dependent PRs, and the PR test instructions.
- I read through the code
-
I checked for accessibility issuesN/A -
Includes documentationN/A -
User-facing strings are extracted for translationN/A
@rpenido I don't know if this is on the scope of this task, but when the description of a component is large, then it causes a disparity in sizes: |
d118adb
to
bb12eca
Compare
Hi @ChrisChV! This is fixed now! |
bb12eca
to
95acaaf
Compare
95acaaf
to
99da9c7
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.
One nit and one suggestion (which can go to the CCs if you're unsure), but this is working well @rpenido . Thank you for taking the time to improve the frontend component repos too!
👍
- I tested this on a library with many components. Checked that the card heights remain constant (with nit fixed), they occupy the whole screen, and are smoothly responsive as page with changes.
- I read through the code
-
I checked for accessibility issuesN/A -
Includes documentationN/A -
User-facing strings are extracted for translationN/A
@@ -69,8 +73,9 @@ const Header = ({ | |||
mainMenuDropdowns={mainMenuDropdowns} | |||
outlineLink={outlineLink} | |||
searchButtonAction={meiliSearchEnabled ? openSearchModal : undefined} | |||
containerProps={containerProps} |
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.
Do we actually want different pages/sections of this Authoring app to show a differently-sized header? This is probably a question for the CCs with oversight over the whole app, but I would think it's better to have these params here, and remove the containerProps
from this Header class, so other pages don't mess with them.
containerProps={containerProps} | |
containerProps={{ | |
size: undefined, | |
}} |
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.
Do we actually want different pages/sections of this Authoring app to show a differently-sized header?
The idea came from here: #1221 (comment)
And there is a previous discussion here: #1217 (comment)
Personally, I prefer consistency throughout the app. But we would definitely use the extra space in the library authoring, and maybe changing everything would be a too big step.
65e34a2
to
f08d932
Compare
@@ -246,7 +246,6 @@ export async function fetchSearchResults({ | |||
highlightPreTag: HIGHLIGHT_PRE_TAG, | |||
highlightPostTag: HIGHLIGHT_POST_TAG, | |||
attributesToCrop: ['content'], | |||
cropLength: 20, |
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 changed to the default (10) to reduce the text in the description. The design asked to limit to 3 lines, but we can only control word count here. We can fine-tune this in the AC test review.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1258 +/- ##
==========================================
+ Coverage 92.79% 92.95% +0.16%
==========================================
Files 1037 1037
Lines 19505 19508 +3
Branches 4130 4133 +3
==========================================
+ Hits 18099 18134 +35
+ Misses 1342 1309 -33
- Partials 64 65 +1 ☔ 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.
👍 Works perfectly, thank you @rpenido !
- I tested this using the PR test instructions
- I read through the code
- I checked for accessibility issues by using my keyboard to navigate
-
Includes documentationN/A -
User-facing strings are extracted for translationN/A
…x#1258) * feat: allow full width content in library authoring * chore: update header and footer versions --------- Co-authored-by: Jillian <[email protected]>
Description
This PR allows the library authoring home to go full-width to better fit the content.
Before:
After:
Responsiveness:
More information
Part of:
Depends on:
Testing instructions
npm install --legacy-peer-deps
to ignore the peer-deps conflicts and make sure you have the correct dependenciesModule not found
webpack errors, it might be due to dependency cache issues. Runnpm run build
, and restart tutor.Private ref: FAL-3820