feat: add ProgressTabCourseGradeHeaderSlot plugin slot - #52
Closed
abhalsod-sonata wants to merge 1 commit into
Closed
feat: add ProgressTabCourseGradeHeaderSlot plugin slot#52abhalsod-sonata wants to merge 1 commit into
abhalsod-sonata wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new Progress-tab-specific plugin slot to make the “locked/partially locked grades” header extensible via @openedx/frontend-plugin-framework, without changing default behavior.
Changes:
- Introduces
ProgressTabCourseGradeHeaderSlot(org.openedx.frontend.learning.progress_tab_course_grade_header.v1) withCourseGradeHeaderas default content. - Updates
CourseGrade.jsxto render the new slot instead of renderingCourseGradeHeaderdirectly. - Documents and indexes the new slot in the plugin-slots README files.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/plugin-slots/README.md | Adds the new slot to the plugin slot index for discoverability. |
| src/plugin-slots/ProgressTabCourseGradeHeaderSlot/README.md | Documents the slot ID, alias, and provides an env.config.jsx usage example. |
| src/plugin-slots/ProgressTabCourseGradeHeaderSlot/index.jsx | Implements the new plugin slot with CourseGradeHeader as default content. |
| src/course-home/progress-tab/grades/course-grade/CourseGrade.jsx | Switches the locked/partially locked header rendering to use the new plugin slot. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Author
|
Not require this PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduces a new
ProgressTabCourseGradeHeaderSlotplugin slot that wraps theCourseGradeHeadercomponent on the progress tab. This allows operators and plugins to replace or extend the course grade header shown when grades are fully or partially locked, without modifying core code.Changes
ProgressTabCourseGradeHeaderSlot/index.jsx(new) — Plugin slot with IDorg.openedx.frontend.learning.progress_tab_course_grade_header.v1that rendersCourseGradeHeaderas its default content.ProgressTabCourseGradeHeaderSlot/README.md(new) — Slot documentation with anenv.config.jsxusage example.CourseGrade.jsx— Replace the direct<CourseGradeHeader />render with<ProgressTabCourseGradeHeaderSlot />.plugin-slots/README.md— Add the new slot to the plugin slot index.Companion PR
frontend-plugins: Extracts the MonarchDynamicExperienceSlotbanner into aProgressTabCourseGradeHeaderPluginthat targets this slot.Screenshot:
Testing
CourseGradeHeaderby default with no behavioral change.Support ticket: