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(AU-2375): Update breadcrumbs and outline navigation bar UI #1582

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Rodra
Copy link
Contributor

@Rodra Rodra commented Feb 6, 2025

Description

Extend CourseOutlineSidebarTriggerSlot props to amplify plugin usage.

Copy link

codecov bot commented Feb 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.60%. Comparing base (9dc45e1) to head (7767ff4).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1582   +/-   ##
=======================================
  Coverage   84.60%   84.60%           
=======================================
  Files         331      331           
  Lines        5656     5658    +2     
  Branches     1357     1359    +2     
=======================================
+ Hits         4785     4787    +2     
  Misses        854      854           
  Partials       17       17           

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

@Rodra
Copy link
Contributor Author

Rodra commented Feb 12, 2025

@openedx/committers-frontend-app-learning this PR is ready for review

@bradenmacdonald
Copy link
Contributor

I'll try to take a look by tomorrow.

Copy link
Contributor

@bradenmacdonald bradenmacdonald left a comment

Choose a reason for hiding this comment

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

Mostly looks good. Please just swap out courseId in favor of useContextId, and can you please update the slot README to list the new props?

@@ -161,7 +162,13 @@ const Sequence = ({
const defaultContent = (
<>
<div className="sequence-container d-inline-flex flex-row w-100">
<CourseOutlineSidebarTriggerSlot />
<CourseOutlineSidebarTriggerSlot
courseId={courseId}
Copy link
Contributor

Choose a reason for hiding this comment

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

Per a big discussion on #1496 , I think courseId should not be a prop, but instead any plugins that need it can get it with the useContextId hook. See the example code for ProgressTabCourseGradeSlot which shows this.

Ideally, isStaff would be likewise always available via a useIsStaff or useUser hook, but I don't think it's been implemented/standardized yet.

I think the other props are reasonable for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants