Task: Setup React Router Setup and Route Guards Scaffold
Type: Infrastructure
Milestone: M0-Project - Foundation
Estimate: M
What This Enables
All page-level navigation. Auth-protected routes are blocked until guards exist. Blocks feature teams from wiring up their pages.
Deliverables
Route Structure
/ Landing / redirect
/login PublicRoute
/dashboard PrivateRoute (lazy)
/settings PrivateRoute (lazy) (optional)
* 404
Acceptance Criteria
Task: Setup React Router Setup and Route Guards Scaffold
Type: Infrastructure
Milestone: M0-Project - Foundation
Estimate: M
What This Enables
All page-level navigation. Auth-protected routes are blocked until guards exist. Blocks feature teams from wiring up their pages.
Deliverables
src/app/router.tsx:createBrowserRouterwith route definitionssrc/app/routes.ts: centralized route path constants (no magic strings)<PrivateRoute>guard : redirects unauthenticated users to/login<PublicRoute>guard : redirects authenticated users away from/loginReact.lazy+<Suspense>on all feature-level routesRoute Structure
Acceptance Criteria
/loginwith?redirect=preservedvite buildchunk output)