-
Notifications
You must be signed in to change notification settings - Fork 106
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: expose containerProps in StudioFooter [FC-0062] #463
feat: expose containerProps in StudioFooter [FC-0062] #463
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 unmaintained. To get help with finding a technical reviewer, tag the community contributions project manager for this PR in a comment and let them know that your changes are ready for review:
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. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #463 +/- ##
==========================================
+ Coverage 90.74% 91.22% +0.48%
==========================================
Files 5 5
Lines 54 57 +3
Branches 18 19 +1
==========================================
+ Hits 49 52 +3
Misses 5 5 ☔ View full report in Codecov by Sentry. |
ed53162
to
3b9230d
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.
Same comments as on openedx/frontend-component-header#529 (review) :)
@@ -26,9 +28,9 @@ ensureConfig([ | |||
], 'Studio Footer component'); | |||
|
|||
const StudioFooter = ({ | |||
// injected | |||
intl, | |||
full, |
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.
Same comment as https://github.com/openedx/frontend-app-course-authoring/pull/1258/files#diff-1c1e7c5912d6ff798a72899cde884c54211549e22fec1f469c8a5a4a854819e1R20 -- can this be named fullWidth
or fullSize
instead?
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.
Done: 80d05dc
@@ -49,7 +51,7 @@ const StudioFooter = ({ | |||
</Button> | |||
<div className="col border-top ml-2" /> | |||
</div> | |||
<Container size="xl" className="px-4"> | |||
<Container size={full ? undefined : 'xl'} className="px-4"> |
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.
If we add a size="full"
option instead, then this becomes a lot clearer:
<Container size={full ? undefined : 'xl'} className="px-4"> | |
<Container size={full ? 'full': 'xl'} className="px-4"> |
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.
Check my comment in the Paragon PR
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 tested this while testing feat: allow full width content in library authoring [FC-0062] frontend-app-authoring#1258 (review)
- I read through the code
-
I checked for accessibility issuesN/A -
Includes documentationN/A -
User-facing strings are extracted for translationN/A
80d05dc
to
36c5fd8
Compare
containerProps: Container.propTypes, | ||
}; | ||
|
||
StudioFooter.defaultProps = { |
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.
containerProps
should be optional, and/or populated with a default value, correct?
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.
Fixed here: a996f11
23b2254
to
a996f11
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.
Works perfectly thank you @rpenido ! 👍
- I tested this while testing feat: allow full width content in library authoring [FC-0062] frontend-app-authoring#1258
- I read through the code
-
I checked for accessibility issuesN/A -
Includes documentationN/A -
User-facing strings are extracted for translationN/A
Hi @adamstankiewicz! Could you do a review/merge here when you have some time? Thank you! |
}) => { | ||
const intl = useIntl(); |
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.
Nice refactor to use hooks vs. the injectIntl
HOC.
Description
This PR adds a new boolean
containerProps
property to theStudioFooter
component. This property will be passed downstream to theContainer
component in the Footer, allowing the user to override theContainer
props (i.e. changing the max size).More information
Part of:
Depends on:
Private ref: FAL-3820