Sign-in & shared code
Pages & menu registry
| Path | shared/pages-and-menu |
|---|---|
| Status | live |
| Drill-down pages | — |
| Pop-ups | — |
| Tabs | — |
| API routes | — |
Business rules
Data comes from: code only, no table.
How it works:
- Web:
app/pages.tslists the older pages andfeatures/index.tslists the moved feature modules. Each page has a path, its page file and its access key.components/layout/AppSidebar.tsxis the menu, which this doc site reads too. app/LazyPage.tsxloads each page only when it is opened. If a page file is stale after a deploy, it reloads once to fetch the new one.- Worker:
routes/registry.ts(older route files) andfeatures/index.ts(feature routes) mount every/apipath. The route-inventory test fails if a route is added or removed by accident. - A page is moved by adding its feature module and removing its old entry. The checklist and this doc follow it (todo → staging → live).
- Every menu item has a page (checked 27 Nov: 95 menu links, 110 routes). Removed pages keep a redirect (e.g.
/settings→/change-password,/volunteer→/volunteers), so old links still work.
Database tables & columns
No table found in its API routes (it may read through a helper the scan can't follow).
File structure
Its own files
- apps/
- web/
- src/
- app/
- LazyPage.tsx
- pages.ts
- components/
- layout/
- AppSidebar.tsx
- layout/
- features/
- index.ts
- app/
- src/
- worker/
- src/
- features/
- index.ts
- routes/
- registry.ts
- features/
- src/
- web/