MEGAINFRA-WEBAPP/src
DEls 1d706e1985 feat(dashboard): grouped sidebar navigation with landing pages
Implements docs/superpowers/specs/2026-09-11-sidebar-restructure-design.md.
Reorganizes the flat 7-item sidebar into Workforce/Plant/Financial groups,
each with a landing dashboard and sub-pages split out of the former
combined Employees and Purchasing pages. Old routes (/dashboard/employees,
/fuel, /fuel/[vehicleId], /plant/[vehicleId], /purchasing,
/purchasing/[poId]) now redirect to their new locations so existing
bookmarks and links keep working.

New pages: Workforce, Plant, Financial landing dashboards; Timesheets
(entries table + upload, surfacing document status that was previously
invisible); Fuel Logs (flat table across both vehicle types); Delivery
Notes (the page docs/superpowers/specs/2026-09-11-ingestion-restructure-design.md
section 8 deliberately deferred); Uploads (combined PO/DN ingestion status).

Moved-unchanged pages (Workers, Vehicles, Equipment) verified
byte-identical to their prior content via direct diff against main --
relocated only, nothing altered.

Reviewed the initial implementation and found two issues, both fixed
here before commit:
  - The delivery-note review queue (NeedsReviewDns) was duplicated onto
    the Purchase Orders page instead of moving to the new Delivery Notes
    page as specified -- same workflow rendered in two places from two
    independent queries. Removed from Purchase Orders; it now lives
    exclusively on Delivery Notes.
  - The new Uploads page's timestamp column fell back to a `created`
    field that doesn't exist on this PocketBase instance, so it could
    never help. All 24 real purchase_orders predate date_uploaded being
    backfilled and would have shown a blank column forever. Dropped the
    dead fallback; the view already degrades to an em-dash for missing
    timestamps.

Typecheck and full suite verified clean before and after both fixes
(583/583).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-11 17:47:27 +02:00
..
app feat(dashboard): grouped sidebar navigation with landing pages 2026-09-11 17:47:27 +02:00
components feat(dashboard): grouped sidebar navigation with landing pages 2026-09-11 17:47:27 +02:00
hooks Initial commit: MEGA INFRASTRUCTURE dashboard + Coolify Dockerfile 2026-08-09 01:37:40 +02:00
lib docs(schema): bring bootstrap and data-model docs back to truth 2026-09-11 16:17:41 +02:00
mcp feat(mcp): read-only stdio MCP server exposing six tools 2026-08-29 20:25:39 +02:00