Skip to content

Commit

Permalink
fixup! feat: Add plugin slots for progress page components
Browse files Browse the repository at this point in the history
  • Loading branch information
xitij2000 committed Nov 25, 2024
1 parent 2a19d74 commit fc5fd04
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/plugin-slots/ProgressTabCertificateStatusSlot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

## Description

This slot is used to replace or modify the Certificate Status component in the
This slot is used to replace or modify the Certificate Status component in the
Progress Tab.

## Example

The following `env.config.jsx` will render the `course_id` and `unit_id` of the course as `<p>` elements in a `<div>`.

![Screenshot of Content added after the Sequence Container](./images/post_sequence_container.png)
![Screenshot of Content added after the Certificate Status Container](./images/progress_tab_certificate_status_slot.png)

```js
import { DIRECT_PLUGIN, PLUGIN_OPERATIONS } from '@openedx/frontend-plugin-framework';
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/plugin-slots/ProgressTabCourseGradeSlot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This slot is used to replace or modify the Course Grades view in the Progress Ta

The following `env.config.jsx` will render the `course_id` and `unit_id` of the course as `<p>` elements in a `<div>`.

![Screenshot of Content added after the Sequence Container](./images/post_sequence_container.png)
![Screenshot of Content added after the Grades Container](./images/progress_tab_course_grade_slot.png)

```js
import { DIRECT_PLUGIN, PLUGIN_OPERATIONS } from '@openedx/frontend-plugin-framework';
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions src/plugin-slots/ProgressTabGradeBreakdownSlot/README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# Progress Tab Grade Summary Slot
# Progress Tab Grade Breakdown Slot

### Slot ID: `progress_tab_grade_summary_slot`
### Slot ID: `progress_tab_grade_breakdown_slot`
### Props:
* `courseId`

## Description

This slot is used to replace or modify the Grade Summary view in the Progress Tab.
This slot is used to replace or modify the Grade Summary and Details Breakdown view in the Progress Tab.

## Example

The following `env.config.jsx` will render the `course_id` and `unit_id` of the course as `<p>` elements in a `<div>`.

![Screenshot of Content added after the Sequence Container](./images/post_sequence_container.png)
![Screenshot of Content added after the Grade Summary and Details Container](./images/progress_tab_grade_breakdown_slot.png)

```js
import { DIRECT_PLUGIN, PLUGIN_OPERATIONS } from '@openedx/frontend-plugin-framework';

const config = {
pluginSlots: {
progress_tab_grade_summary_slot: {
progress_tab_grade_breakdown_slot: {
plugins: [
{
// Insert custom content after grade summary widget
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/plugin-slots/ProgressTabRelatedLinksSlot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This slot is used to replace or modify the related links view in the Progress Ta

The following `env.config.jsx` will render the `course_id` and `unit_id` of the course as `<p>` elements in a `<div>`.

![Screenshot of Content added after the Sequence Container](./images/post_sequence_container.png)
![Screenshot of Content added after the Related Links Container](./images/progress_tab_related_links_slot.png)

```js
import { DIRECT_PLUGIN, PLUGIN_OPERATIONS } from '@openedx/frontend-plugin-framework';
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fc5fd04

Please sign in to comment.