MEGAINFRA-WEBAPP/src/app/api
DEls 607de20232 feat(sites): admins can correct a site's project code
The project code was locked once set, on the belief that changing it
would break joins. Nothing joins on it: every record links to the site by
id, and the PO email intake reads codes live. A mistyped code (Nellmapius
was 001 instead of C26/27) could only be fixed in the database.

In Edit site an admin double-clicks the code to unlock it. PATCH accepts
project_code from admins only, trims it, requires 1-64 characters, answers
409 when another site already uses it, and writes nothing when unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 22:59:30 +02:00
..
admin/users feat(users): site managers can correct their clock users' name and email 2026-11-02 22:20:28 +02:00
agent/actions/[id]
ask
auth feat(users): Last active column to spot people not using the app 2026-11-02 22:54:07 +02:00
cash-floats feat(cash-floats): multi-page slip photos, no cost code, red low rows 2026-10-28 06:39:23 +02:00
chat feat(management): add admin planning dashboards 2026-10-09 10:16:50 +02:00
clock Track cash float spend since top-up 2026-10-30 00:05:47 +02:00
dashboard-attention feat(plant): actual vs bill charts, attention card under KPIs, sidebar mark for missing rates 2026-10-28 22:43:56 +02:00
data-import-batches/[id] feat(management): add admin planning dashboards 2026-10-09 10:16:50 +02:00
deletion-flags/[collection]/[recordId] feat(dn): route to delete or keep a flagged record 2026-10-09 21:54:14 +02:00
delivery-notes fix: harden workforce, plant and financials 2026-10-19 13:18:31 +02:00
dn-batches feat(dn): block slips linked to another supplier's PO 2026-10-26 16:00:57 +02:00
employees feat(workforce): allow any effective date when editing a worker's employer/broker 2026-10-29 23:38:38 +02:00
employers fix(workforce): let site managers add and rename employers and brokers 2026-10-19 16:33:41 +02:00
fuel-logs/import fix: harden workforce, plant and financials 2026-10-19 13:18:31 +02:00
fuel-prices feat(plant): fuel price admin screen with monthly cost check 2026-10-27 10:22:58 +02:00
health
inbox-three/[batchId]/notes/[noteId] fix(dn): validate inbox 3 line edits 2026-10-26 19:30:59 +02:00
management feat(management): list every planned project on Retention 2026-10-20 12:58:02 +02:00
mcp feat: run durable MCP processing jobs in the existing app 2026-10-05 02:04:15 +02:00
payroll feat(workforce): payroll export, labour cost by site, all-sites totals in the site matrix 2026-10-21 07:00:48 +02:00
pb-files/[collection]/[recordId]/[...filename] feat(sites): import payment certificates into Inflows with cumulative chart 2026-10-27 10:53:54 +02:00
plant-hours fix: harden workforce, plant and financials 2026-10-19 13:18:31 +02:00
purchase-orders feat(purchase-orders): check a PO's site against its line cost codes 2026-11-02 22:59:30 +02:00
records/[collection]/[id]/verify feat: share validated purchasing writes with MCP 2026-10-05 01:48:49 +02:00
sites feat(sites): admins can correct a site's project code 2026-11-02 22:59:30 +02:00
suppliers fix: harden workforce, plant and financials 2026-10-19 13:18:31 +02:00
timesheets fix: harden workforce, plant and financials 2026-10-19 13:18:31 +02:00
vehicles feat(plant): inactive equipment and no-rate-needed override; brighter worker week strip 2026-10-30 01:15:52 +02:00