Skip to content
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

Conversation

rpenido
Copy link
Contributor

@rpenido rpenido commented Sep 5, 2024

Description

This PR adds a new boolean containerProps property to the StudioFooter component. This property will be passed downstream to the Container component in the Footer, allowing the user to override the Container props (i.e. changing the max size).

More information

Part of:

Depends on:


Private ref: FAL-3820

@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label Sep 5, 2024
@openedx-webhooks
Copy link

openedx-webhooks commented Sep 5, 2024

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 approval

If you haven't already, check this list to see if your contribution needs to go through the product review process.

  • If it does, you'll need to submit a product proposal for your contribution, and have it reviewed by the Product Working Group.
    • This process (including the steps you'll need to take) is documented here.
  • If it doesn't, simply proceed with the next step.

🔘 Provide context

To 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:

  • Dependencies

    This PR must be merged before / after / at the same time as ...

  • Blockers

    This PR is waiting for OEP-1234 to be accepted.

  • Timeline information

    This PR must be merged by XX date because ...

  • Partner information

    This is for a course on edx.org.

  • Supporting documentation
  • Relevant Open edX discussion forum threads

🔘 Get a green build

If 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:

  1. On the right-hand side of the PR, find the Contributions project, click the caret in the top right corner to expand it, and check the "Primary PM" field for the name of your PM.
  2. Find their GitHub handle here.

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:

  • The size and impact of the changes that it introduces
  • The need for product review
  • Maintenance status of the parent repository

💡 As a result it may take up to several weeks or months to complete a review and merge your PR.

Copy link

codecov bot commented Sep 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.22%. Comparing base (2d5f5fe) to head (c164f37).
Report is 1 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

@rpenido rpenido force-pushed the rpenido/fal-3820-allow-full-width-footer branch 2 times, most recently from ed53162 to 3b9230d Compare September 5, 2024 23:22
@rpenido rpenido changed the title feat: allow full width footer feat: allow full width footer [FC-0062] Sep 6, 2024
Copy link

@pomegranited pomegranited left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -26,9 +28,9 @@ ensureConfig([
], 'Studio Footer component');

const StudioFooter = ({
// injected
intl,
full,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

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">

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:

Suggested change
<Container size={full ? undefined : 'xl'} className="px-4">
<Container size={full ? 'full': 'xl'} className="px-4">

Copy link
Contributor Author

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

Copy link

@pomegranited pomegranited left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@rpenido rpenido force-pushed the rpenido/fal-3820-allow-full-width-footer branch from 80d05dc to 36c5fd8 Compare September 18, 2024 22:00
@rpenido rpenido marked this pull request as ready for review September 18, 2024 22:01
@rpenido rpenido changed the title feat: allow full width footer [FC-0062] feat: expose containerProps in StudioFooter [FC-0062] Sep 18, 2024
containerProps: Container.propTypes,
};

StudioFooter.defaultProps = {

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?

Copy link
Contributor Author

@rpenido rpenido Sep 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed here: a996f11

@rpenido rpenido force-pushed the rpenido/fal-3820-allow-full-width-footer branch from 23b2254 to a996f11 Compare September 19, 2024 20:04
@mphilbrick211 mphilbrick211 added the FC Relates to an Axim Funded Contribution project label Sep 19, 2024
Copy link

@pomegranited pomegranited left a 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 ! 👍

@rpenido
Copy link
Contributor Author

rpenido commented Sep 20, 2024

Hi @adamstankiewicz! Could you do a review/merge here when you have some time? Thank you!

}) => {
const intl = useIntl();
Copy link
Member

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.

@adamstankiewicz adamstankiewicz merged commit cc647e7 into openedx:master Oct 1, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FC Relates to an Axim Funded Contribution project open-source-contribution PR author is not from Axim or 2U
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants