Repository navigation
feat(pathways): add pathway detail page - #173
navinkarkera wants to merge 48 commits into
Conversation
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>
|
Thanks for the pull request, @navinkarkera! This repository is currently maintained by 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 approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo 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:
🔘 Get a green buildIf 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 PRYour 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:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
Codecov Report❌ Patch coverage is 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. 🚀 New features to boost your workflow:
|
24da0a3 to
876039b
Compare
Standardize Pathway Detail links to X/Twitter, Facebook, and email order while preserving deprecated Course About import paths.
Keep the temporary fixture inside the pathway modal and remove unused legacy social-sharing helpers.
83e8c3e to
e624fd5
Compare
|
Closing this PR because the work has been split into four smaller, stacked PRs:
The final PR in the stack is #182. |
Description
ENABLE_PATHWAY_PILOT_UIflag where applicable.Supporting information
Private-ref: https://tasks.opencraft.com/browse/FAL-4380Review instruction
Use
git diff rpenido/navin/fal-4374/public-explore-update...HEADto review as this PR is based onrpenido/navin/fal-4374/public-explore-updatebranch and can only be merged after it.Test instructions
npm cinpm run devENABLE_PATHWAY_PILOT_UIin the local config, restart, and verify course badges appear on home/catalog. Note pathway cards depend on pathway results from the API.