Skip to content

docs: [FC-86] Restructure Modify Items section with Add/Replace examples - #598

Merged
brian-smith-tcril merged 9 commits into
openedx:masterfrom
raccoongang:Peter_Kulko/marketing-links-slot-example
Sep 29, 2025
Merged

docs: [FC-86] Restructure Modify Items section with Add/Replace examples#598
brian-smith-tcril merged 9 commits into
openedx:masterfrom
raccoongang:Peter_Kulko/marketing-links-slot-example

Conversation

@peterkulko

@peterkulko peterkulko commented May 27, 2025

Copy link
Copy Markdown
Contributor

Description

This PR includes updated slots examples for adding Marketing links for Header component.

Useful information

Initial setup

  1. Complete all necessary steps from the Initial setup section for Catalog MFE: feat: [FC-86] Updated Header links frontend-app-catalog#24
  2. Clone and mount this repository.

How Has This Been Tested?

  1. Add env.config.js and example adding Marketing links via plugin slots in Catalog MFE.
  2. Check adding links in the Catalog MFE header.

Merge Checklist

  • If your update includes visual changes, have they been reviewed by a designer? Send them a link to the Sandbox, if applicable.
  • Is there adequate test coverage for your changes?

Post-merge Checklist

  • Deploy the changes to prod after verifying on stage or ask @openedx/edx-infinity to do it.
  • 🎉 🙌 Celebrate! Thanks for your contribution.

@openedx-webhooks

openedx-webhooks commented May 27, 2025

Copy link
Copy Markdown

Thanks for the pull request, @PKulkoRaccoonGang!

This repository is currently maintained by @openedx/committers-frontend.

Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are 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.

Details
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.

@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label May 27, 2025
@github-project-automation github-project-automation Bot moved this to Needs Triage in Contributions May 27, 2025
@codecov

codecov Bot commented May 27, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.01%. Comparing base (dbec796) to head (5d4a890).
⚠️ Report is 7 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #598   +/-   ##
=======================================
  Coverage   73.01%   73.01%           
=======================================
  Files          55       55           
  Lines         504      504           
  Branches      100      100           
=======================================
  Hits          368      368           
  Misses        133      133           
  Partials        3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mphilbrick211 mphilbrick211 moved this from Needs Triage to Waiting on Author in Contributions May 27, 2025
@peterkulko peterkulko self-assigned this May 28, 2025
@peterkulko
peterkulko marked this pull request as ready for review May 28, 2025 05:47
@peterkulko
peterkulko requested a review from ihor-romaniuk May 28, 2025 18:45
@peterkulko peterkulko changed the title docs: example of adding Marketing links via the plugin slots docs: [FC-86] Example of adding Marketing links via the plugin slots Jun 30, 2025
@mphilbrick211 mphilbrick211 added the FC Relates to an Axim Funded Contribution project label Jul 15, 2025
@peterkulko
peterkulko marked this pull request as draft July 28, 2025 03:25
@peterkulko
peterkulko force-pushed the Peter_Kulko/marketing-links-slot-example branch from 9631ddf to 162772b Compare September 24, 2025 07:03
@peterkulko
peterkulko force-pushed the Peter_Kulko/marketing-links-slot-example branch from 162772b to ccdb9ae Compare September 24, 2025 07:12
@peterkulko peterkulko changed the title docs: [FC-86] Example of adding Marketing links via the plugin slots chore: [FC-86] Added example of adding Marketing links and logoDestination prop Sep 24, 2025
@peterkulko peterkulko changed the title chore: [FC-86] Added example of adding Marketing links and logoDestination prop feat: [FC-86] Added example of adding Marketing links and logoDestination prop Sep 24, 2025
Comment thread src/Header.jsx Outdated
})),
logoDestination: PropTypes.oneOfType([
PropTypes.string,
PropTypes.oneOf([false, null]),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[question] Should we accept false or null types here?

@peterkulko peterkulko Sep 24, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed at 80acabe

@peterkulko
peterkulko removed the request for review from vladislavkeblysh September 24, 2025 13:51
@peterkulko
peterkulko force-pushed the Peter_Kulko/marketing-links-slot-example branch from 2b7486c to 80acabe Compare September 24, 2025 13:55
@peterkulko
peterkulko marked this pull request as ready for review September 24, 2025 13:56
@peterkulko
peterkulko force-pushed the Peter_Kulko/marketing-links-slot-example branch from a5b3d01 to 7ef2d90 Compare September 25, 2025 08:48
@peterkulko peterkulko changed the title feat: [FC-86] Added example of adding Marketing links and logoDestination prop feat: [FC-86] Added examples of adding Marketing links via plugin slots Sep 25, 2025

@brian-smith-tcril brian-smith-tcril left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Overall this looks good!

I have a couple thoughts here:

  • I don't think using the term "Marketing Links" makes sense, there's nothing about this use case that requires the links be "marketing"
  • This is very similar to the "Modify Items" example (the difference being the existing "Modify Items" examples replace all menu items, where as these examples add items)

I think what would be great here would be to make this a sub-heading of "Modify Items."

So we can take the existing

### Modify Items
[current example]

and change it to be

### Modify Items
#### Replace All Items
[current example]
#### Add Items
[example from this PR]

@peterkulko peterkulko changed the title feat: [FC-86] Added examples of adding Marketing links via plugin slots docs: [FC-86] Restructure Modify Items section with Add/Replace examples Sep 26, 2025
@peterkulko

Copy link
Copy Markdown
Contributor Author

@brian-smith-tcril thanks! I changed the examples of adding plugin slots and the title of this PR: 5d4a890

@brian-smith-tcril brian-smith-tcril left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@brian-smith-tcril
brian-smith-tcril merged commit ef0ea13 into openedx:master Sep 29, 2025
7 checks passed
@github-project-automation github-project-automation Bot moved this from Waiting on Author to Done in Contributions Sep 29, 2025
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

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants