Add a new route following TanStack Router conventions.
Arguments: $ARGUMENTS (e.g. /projects public, /settings protected)
Public routes (apps/client/src/routes/_public/):
- •SEO-critical; no auth required
- •Use BaseTemplate, BasePage, PageContainer
- •Optional useUser, useTest (MVT)
Protected routes (apps/client/src/routes/_protected/):
- •Auth required
- •FeatureGuardButton, PermissionGuardButton for conditional UI
Steps:
- •Create route directory (e.g.
projects/orprojects/$slug/) - •Add route.tsx with createFileRoute
- •Add index.tsx with page component
- •Update router if needed (file-based routing usually handles it)
- •Add to Navigation or panel config if visible in nav