Skip to content

feat: Pathway progress page [FC-0137] - #2233

Open
ChrisChV wants to merge 17 commits into
openedx:masterfrom
open-craft:chris/fal-4398-pathway-progress-page
Open

ChrisChV wants to merge 17 commits into
openedx:masterfrom
open-craft:chris/fal-4398-pathway-progress-page

Conversation

@ChrisChV

@ChrisChV ChrisChV commented Oct 29, 2026 •

Copy link
Copy Markdown

Description

Review only the changes of this PR: open-craft/frontend-app-learning@chris/fal-4398-pathway-achievements-page...chris/fal-4398-pathway-progress-page

It adds the content of the Progress tab of the pathway pages

  • Completion card with a donut showing the completed items of the pathway
  • Grades table with the progress, pass grade and current grade of each item, and a link to its details.
  • Side card that links to the Achievements tab, or says that none have been earned yet
image image

Supporting Information

Testing Instructions

Notes

  • TODO: The backend still needs to be connected once it's ready.
  • I used Claude Opus 5.5 to review my code and create tests.

Stack

ChrisChV and others added 15 commits October 4, 2026 14:16
Show, above the learning header, the pathways that include the current
course and in which the learner is enrolled. The labels that do not fit
are moved to a "+N" popover, following the same logic as the course card
strip in the learner dashboard.

- Add the `course-pathways` data layer: `getPathwaysByCourse` in the API
  layer, which returns an empty map until the backend exists, and the
  `useCoursePathways` hook, which extracts the course pathways from it.
- Add the `CoursePathwaysStrip` and `MorePathwaysPopover` components and
  the `useVisiblePathways` hook to split the visible and hidden pathways.
- Add the `org.openedx.frontend.learning.course_pathways_strip.v1` plugin
  slot, rendered by `TabPage` once the course page has loaded.
- Add mock pathways as test fixtures.
…over and align it to the end of the strip

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label Oct 29, 2026
@openedx-webhooks

Copy link
Copy Markdown

Thanks for the pull request, @ChrisChV!

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

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.

@github-project-automation github-project-automation Bot moved this to Needs Triage in Contributions Oct 29, 2026
@ChrisChV ChrisChV changed the title Chris/fal 4398 pathway progress page feat: Pathway progress page [FC-0137] Oct 29, 2026
@ChrisChV
ChrisChV force-pushed the chris/fal-4398-pathway-progress-page branch from 8ddaef9 to 304147d Compare October 29, 2026 00:33
@codecov

codecov Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.34%. Comparing base (230799e) to head (2f4bc22).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2233      +/-   ##
==========================================
+ Coverage   96.16%   96.34%   +0.18%     
==========================================
  Files         368      398      +30     
  Lines        6019     6317     +298     
  Branches     1486     1481       -5     
==========================================
+ Hits         5788     6086     +298     
  Misses        222      222              
  Partials        9        9              

☔ View full report in Codecov by Harness.
📢 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.

@itsjeyd itsjeyd added the product review PR requires product review before merging label Nov 6, 2026
@itsjeyd

itsjeyd commented Nov 6, 2026

Copy link
Copy Markdown

@ChrisChV @cassiezamparini Since this PR is part of Pathways, can we consider it approved from a product perspective?

@itsjeyd itsjeyd moved this from Needs Triage to Waiting on Author in Contributions Nov 6, 2026
@cassiezamparini

Copy link
Copy Markdown

Leaving this to @ChrisChV to answer :)

@ChrisChV

ChrisChV commented Nov 9, 2026

Copy link
Copy Markdown
Author

@ChrisChV @cassiezamparini Since this PR is part of Pathways, can we consider it approved from a product perspective?

@itsjeyd It's in internal dev review

@rpenido rpenido left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks for your work here, @ChrisChV!
I left some comments!

Comment on lines +49 to +51
<h1>
<FormattedMessage {...messages.gradesTitle} />
</h1>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is already inside an <h1>. We can try to use the h1 class to match the design

Suggested change
<h1>
<FormattedMessage {...messages.gradesTitle} />
</h1>
<h2>
<FormattedMessage {...messages.gradesTitle} />
</h2>

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Updated 2f4bc22

},
achievementsInfoDescription: {
id: 'learning.pathways.progress.achievements-info.description',
defaultMessage: "Showcase your certificates on LinkedIn, or your resume today. Access your bootcamp's achievements below.",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We need to add the categoryLabel instead of bootcamp here.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Updated 2f4bc22

gradesViewDetails: {
id: 'learning.pathways.progress.grades.table.view-details',
defaultMessage: 'View details',
description: 'Label for the Viewd details links in the grades table',

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

typo

Suggested change
description: 'Label for the Viewd details links in the grades table',
description: 'Label for the View details links in the grades table',

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Updated 2f4bc22

},
achievementsInfoEmptyDescription: {
id: 'learning.pathways.progress.achievements-info.empty.description',
defaultMessage: 'No certificates earned yet. ',

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

typo

Suggested change
defaultMessage: 'No certificates earned yet. ',
defaultMessage: 'No certificates earned yet.',

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Updated 2f4bc22

import { FormattedMessage, useIntl } from '@edx/frontend-platform/i18n';
import { DataTable } from '@openedx/paragon';

import { GradeData } from '@src/pathways/data/types';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nit

Suggested change
import { GradeData } from '@src/pathways/data/types';
import type { GradeData } from '@src/pathways/data/types';

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Updated 2f4bc22

},
completionDescription: {
id: 'learning.pathways.progress.completion.description',
defaultMessage: 'This represents how many courses you have completed in this {categoryLabel}.',

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nit

Suggested change
defaultMessage: 'This represents how many courses you have completed in this {categoryLabel}.',
defaultMessage: 'This represents how many items you have completed in this {categoryLabel}.',

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Updated 2f4bc22


expect(screen.getByRole('heading', { name: 'Bootcamp completion' })).toBeInTheDocument();
expect(
screen.getByText('This represents how many courses you have completed in this Bootcamp.'),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nit

Suggested change
screen.getByText('This represents how many courses you have completed in this Bootcamp.'),
screen.getByText('This represents how many items you have completed in this Bootcamp.'),

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Updated 2f4bc22

additionalColumns={[
{
id: 'action',
Cell: DetailsCell,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

For acessibility:

Suggested change
Cell: DetailsCell,
id: 'action',
Header: <span className="sr-only">{intl.formatMessage(messages.gradesActionsColumn)}</span>,
Cell: DetailsCell,

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Updated 2f4bc22

Comment on lines +36 to +40
const DetailsCell = ({ row }: { row: { original: GradeData } }) => (
<Link to={row.original.detailsUrl}>
<FormattedMessage {...messages.gradesViewDetails} />
</Link>
);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We have the same message here for all lines. This could be an issue for acessibility.
Adding an aria-label would fix it:

Suggested change
const DetailsCell = ({ row }: { row: { original: GradeData } }) => (
<Link to={row.original.detailsUrl}>
<FormattedMessage {...messages.gradesViewDetails} />
</Link>
);
const DetailsCell = ({ row }: { row: { original: GradeData } }) => {
const intl = useIntl();
return (
<Link
to={row.original.detailsUrl}
aria-label={intl.formatMessage(messages.gradesViewDetailsFor, { courseName: row.original.displayName })}
>
<FormattedMessage {...messages.gradesViewDetails} />
</Link>
);
};

And something like the bellow in the messages.ts:

gradesViewDetailsFor: {
  id: 'learning.pathways.progress.grades.table.view-details-for',
  defaultMessage: 'View details for {courseName}',
  description: 'Accessible label for the View details links in the grades table',
},

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Updated 2f4bc22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

open-source-contribution PR author is not from Axim or 2U product review PR requires product review before merging

Projects

Status: Waiting on Author
Status: In Progress

Development

Successfully merging this pull request may close these issues.

5 participants