Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested routes for catalogue #1218 #1232

Merged
merged 25 commits into from
Jan 13, 2025

Conversation

joshuadkitenge
Copy link
Collaborator

@joshuadkitenge joshuadkitenge commented Jan 8, 2025

Description

  • Add logic to the valid the routes
  • add loader for catalogue. (This could not be done in a separate as it would require two refactors sorry).
  • Handle 404 page
  • Create component of obsolete replacement link as it need more info to construct the route

Testing instructions

  • Review code
  • Check Actions build
  • Review changes to test coverage
  • {more steps here}

Agile board tracking

closes #1218

- Updated catalogue categories and items Cypress tests
- Refactored App.tsx to support nested routes
- Updated admin card view snapshot tests
- Modified API endpoints for catalogue categories and items
- Added new components and tests for catalogue layout and items
- Removed obsolete catalogue component and tests
- Updated error page and tab view tests
- Refactored items components and tests
- Fixed failing tests in catalogue and items components
- Refactored code to address bugs found in various components
- Updated snapshots for catalogue layout and items page
@joshuadkitenge joshuadkitenge changed the base branch from develop to handle-404-errors-with-react-router-systems January 8, 2025 14:03
Copy link

codecov bot commented Jan 8, 2025

Codecov Report

Attention: Patch coverage is 99.78791% with 2 lines in your changes missing coverage. Please review.

Project coverage is 99.11%. Comparing base (cb996a3) to head (df22100).
Report is 27 commits behind head on develop.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/items/itemsLandingPage.component.tsx 99.34% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1232      +/-   ##
===========================================
+ Coverage    99.10%   99.11%   +0.01%     
===========================================
  Files           94       96       +2     
  Lines        17527    17549      +22     
  Branches      2978     2993      +15     
===========================================
+ Hits         17370    17394      +24     
+ Misses         153      151       -2     
  Partials         4        4              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Base automatically changed from handle-404-errors-with-react-router-systems to develop January 9, 2025 12:09
@joshuadkitenge joshuadkitenge marked this pull request as ready for review January 9, 2025 12:10
@joshuadkitenge joshuadkitenge force-pushed the nested-routes-for-catalogue-#1218 branch from 5620460 to f1a7689 Compare January 9, 2025 13:44
joelvdavies
joelvdavies previously approved these changes Jan 10, 2025
Copy link
Collaborator

@joelvdavies joelvdavies left a comment

Choose a reason for hiding this comment

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

One comment but happy to be merged anyway.

@joshuadkitenge joshuadkitenge changed the base branch from develop to fix-flaky-test January 10, 2025 13:48
Base automatically changed from fix-flaky-test to develop January 13, 2025 11:38
@joshuadkitenge joshuadkitenge merged commit d87a01e into develop Jan 13, 2025
7 checks passed
@joshuadkitenge joshuadkitenge deleted the nested-routes-for-catalogue-#1218 branch January 13, 2025 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nested routes for catalogue
2 participants