Skip to content

Conversation

@jacbn
Copy link
Contributor

@jacbn jacbn commented Jan 14, 2026

[the test is dependent on RR7. do not merge this without]

jacbn and others added 30 commits December 29, 2025 17:16
RR6+ only allows <Route/> and <React.Fragment/> as children of a <Routes/> block, even if the component returns one of these. As such, I have moved the tracking part of tracked routes into onPageLoad, the figure numbering into a parent of the router (TODO: test this works), and replaced StaticPageRoutes and ExternalRedirects with <Route/>-based equivalents.
The browser managed to detect and stop this when going to the page, but the jest 'browser' does not have this feature
A `<BrowserRouter/>` is apparently a different, simpler type of router to that generated via `createBrowserRouter` (the latter being a Data Router). Data Routers allow navigation blocking, so this change requires a mini overhaul of how routes are loaded into the app.
@codecov
Copy link

codecov bot commented Jan 14, 2026

Codecov Report

❌ Patch coverage is 51.80266% with 254 lines in your changes missing coverage. Please review.
✅ Project coverage is 42.78%. Comparing base (c3e7708) to head (5cd0489).

Files with missing lines Patch % Lines
src/app/components/content/IsaacContent.tsx 29.16% 17 Missing ⚠️
src/app/components/pages/GameboardBuilder.tsx 0.00% 15 Missing and 1 partial ⚠️
src/app/components/site/phy/RoutesPhy.tsx 40.00% 15 Missing ⚠️
src/app/components/navigation/IsaacApp.tsx 65.51% 10 Missing ⚠️
src/app/components/site/cs/RoutesCS.tsx 47.05% 9 Missing ⚠️
...ents/elements/sidebar/ContentControlledSidebar.tsx 22.22% 7 Missing ⚠️
src/app/components/pages/Support.tsx 36.36% 7 Missing ⚠️
src/app/state/actions/index.tsx 30.00% 7 Missing ⚠️
.../app/components/elements/sidebar/EventsSidebar.tsx 14.28% 6 Missing ⚠️
...rc/app/components/pages/RegistrationSetDetails.tsx 25.00% 6 Missing ⚠️
... and 57 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1925      +/-   ##
==========================================
- Coverage   42.93%   42.78%   -0.15%     
==========================================
  Files         572      572              
  Lines       23971    24039      +68     
  Branches     7877     7916      +39     
==========================================
- Hits        10291    10286       -5     
- Misses      13041    13112      +71     
- Partials      639      641       +2     

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

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.

3 participants