Part of #811
Goal
Migrate the calculator app from React Router nested routes to Next.js App Router.
Tasks
Complexity notes
- The calculator has the most complex routing: nested sub-routes within pathway wrappers
- Heavy use of React Router hooks (
useNavigate, useParams, useSearchParams)
CalcOrchestratorContext manages multi-step wizard state
- This is the hardest phase — consider breaking into sub-issues if needed
Part of #811
Goal
Migrate the calculator app from React Router nested routes to Next.js App Router.
Tasks
app/(calculator)/)MetadataGuardas a layout or middleware checkCalcOrchestratorProvidercontext/:countryId/reports(list)/:countryId/simulations(list)/:countryId/policies(list)/:countryId/populations(list)/:countryId/report-output/:reportId/:subpage?/:view?(dynamic)PolicyPathwayWrappersub-routesSimulationPathwayWrappersub-routesReportPathwayWrappersub-routesuseNavigate/useParams/useSearchParamswith Next.js equivalentsComplexity notes
useNavigate,useParams,useSearchParams)CalcOrchestratorContextmanages multi-step wizard state