Sign-in & shared code

Pages & menu registry

Pathshared/pages-and-menu
Statuslive
Drill-down pages—
Pop-ups—
Tabs—
API routes—

Business rules

Data comes from: code only, no table.

How it works:

  • Web: app/pages.ts lists the older pages and features/index.ts lists the moved feature modules. Each page has a path, its page file and its access key. components/layout/AppSidebar.tsx is the menu, which this doc site reads too.
  • app/LazyPage.tsx loads 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) and features/index.ts (feature routes) mount every /api path. 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
        • features/
          • index.ts
    • worker/
      • src/
        • features/
          • index.ts
        • routes/
          • registry.ts