Skip to content

feat(pathways): add pathway detail page - #173

Closed
navinkarkera wants to merge 48 commits into
openedx:masterfrom
open-craft:rpenido/navin/fal-4380/pathway-detail-page
Closed

navinkarkera wants to merge 48 commits into
openedx:masterfrom
open-craft:rpenido/navin/fal-4380/pathway-detail-page

Conversation

@navinkarkera

@navinkarkera navinkarkera commented Oct 19, 2026 •

Copy link
Copy Markdown

Description

  • Adds the initial pathway experience to the catalog, so learners can discover pathways and view pathway details.
  • Keeps pathway cards and card badges behind the ENABLE_PATHWAY_PILOT_UI flag where applicable.

Supporting information

Review instruction

Use git diff rpenido/navin/fal-4374/public-explore-update...HEAD to review as this PR is based on rpenido/navin/fal-4374/public-explore-update branch and can only be merged after it.

Test instructions

  1. npm ci
  2. npm run dev
  3. Open http://apps.local.openedx.io:1998/catalog/pathways/data-engineering-fundamentals
  4. Verify the hero and details, the About/Credentials navigation and URL hash, course expansion and "See more", the credentials list, and page sharing.
  5. Open "Learn more" for a course and verify the modal; verify modal sharing targets the course URL, not the pathway URL.
  6. Enable ENABLE_PATHWAY_PILOT_UI in the local config, restart, and verify course badges appear on home/catalog. Note pathway cards depend on pathway results from the API.

rpenido and others added 19 commits October 5, 2026 17:49
Adds PathwayCard with a type badge that honors operator-supplied
background and text colors, plus the HomePathwayCardSlot that offers it
to consumers.

The card and its style follow the frontend-base layout: imports come
from @openedx/frontend-base, the pilot gate reads ENABLE_PATHWAY_PILOT_UI
through getAppConfig, and the slot uses the Slot API under the
org.openedx.frontend.slot.catalog.homePathwayCard.v1 id.

isValidCssColor moves to src/utils, the only module both cards reach for.

Co-Authored-By: Navin Karkera <navin@opencraft.com>
Co-Authored-By: Navin Karkera <navin@opencraft.com>
Generalize course-specific catalog naming for mixed course and pathway
results. Render a Categories filter from the backend category aggregation,
supporting courses and custom pathway types such as bootcamps and
tutorials.

CourseCatalogIntroSlot becomes ExploreIntroSlot under the
org.openedx.frontend.slot.catalog.exploreIntro.v1 id, since the page is no
longer courses-only. Its result count prop is now resultsCount;
courseDataResultsLength is still passed so plugins written against the old
name keep working.

Extend the mock with dummy category terms for temporary UI testing.

Co-Authored-By: Navin Karkera <navin@opencraft.com>
The catalog will list pathways alongside courses, so its cached search
response is no longer course-specific. Rename useCourseData to
useCatalogData and courseData/previousCourseData to
catalogData/previousCatalogData.

Co-Authored-By: Navin Karkera <navin@opencraft.com>
Split the search response envelope from its result list so the mixed
catalog response can reuse it, and reuse CourseData instead of restating
the course payload.

Aggregation facets gain an optional labels map for the category facet the
catalog will read from.

Co-Authored-By: Navin Karkera <navin@opencraft.com>
Introduce a generic search response envelope and a discriminated mixed
result type so the catalog can render courses and pathways from one ranked,
paginated response. Rename useCourseListSearch to useCatalogListSearch and
update consumers (CatalogPage, CoursesList, data-table card slot) to branch
on result type and render pathway cards. Add ADR-0003 documenting the generic
catalog search endpoint decision.

Unlike the original branch, fetchData keeps carrying
enableCourseSortingByStartDate forward, per the upstream fix for the sort
setting resetting on refetch.

Co-Authored-By: Navin Karkera <navin@opencraft.com>
Read category display labels from the facet's labels map instead of
capitalizing the slug, and stop camelCasing the dynamic keys under
aggregation terms and labels: those are backend slugs that go back to the
API as filter values.

Rename the pathway badge fields from type* to category*, matching the
category metadata the search response will carry.

Co-Authored-By: Navin Karkera <navin@opencraft.com>
The card view renders one card per result, so results are dispatched by
type to either the course or pathway card slot. Cover the dispatch, and
the new pathway card slot, with tests, and document both slots' props.

Co-Authored-By: Navin Karkera <navin@opencraft.com>
@openedx-webhooks openedx-webhooks added open-source-contribution PR author is not from Axim or 2U core contributor PR author is a Core Contributor (who may or may not have write access to this repo). labels Oct 19, 2026
@openedx-webhooks

Copy link
Copy Markdown

Thanks for the pull request, @navinkarkera!

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.

🔘 Update the status of your PR

Your PR is currently marked as a draft. After completing the steps above, update its status by clicking "Ready for Review", or removing "WIP" from the title, as appropriate.


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.

@codecov

codecov Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.85714% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 98.70%. Comparing base (97aaec1) to head (e624fd5).
⚠️ Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
src/pathway-detail/hooks/usePathwayNavigation.ts 96.00% 3 Missing ⚠️
src/course-about/CourseAboutPage.tsx 75.00% 1 Missing ⚠️
...bout/course-sidebar/sidebar-social/SocialLinks.tsx 0.00% 1 Missing ⚠️
src/generic/share-links/utils.ts 97.14% 1 Missing ⚠️
src/pathway-detail/PathwayCourseModal.tsx 96.42% 1 Missing ⚠️
src/pathway-detail/PathwayDetailPage.tsx 88.88% 1 Missing ⚠️
src/pathway-detail/PathwayNavigation.tsx 95.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #173      +/-   ##
==========================================
- Coverage   99.56%   98.70%   -0.87%     
==========================================
  Files         101      120      +19     
  Lines         682     1000     +318     
  Branches      168      285     +117     
==========================================
+ Hits          679      987     +308     
- Misses          2       12      +10     
  Partials        1        1              

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

@navinkarkera
navinkarkera force-pushed the rpenido/navin/fal-4380/pathway-detail-page branch from 24da0a3 to 876039b Compare October 20, 2026 05:53
@navinkarkera

Copy link
Copy Markdown
Author

Closing this PR because the work has been split into four smaller, stacked PRs:

The final PR in the stack is #182.

@github-project-automation github-project-automation Bot moved this from Waiting on Author to Done in Contributions Nov 2, 2026
@rpenido rpenido moved this to Done in Learning Pathways Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core contributor PR author is a Core Contributor (who may or may not have write access to this repo). open-source-contribution PR author is not from Axim or 2U

Projects

Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants