MEGAINFRA-WEBAPP/docs/superpowers/specs
DEls 2814061b28 docs(spec): ingestion restructure — per-entity documents, honest status
Replaces the data_import_batches upload pool with five typed document
collections that each own their file, makes upload status reflect what
actually happened, puts a real site on every ingested row, and removes
the project_code duplication.

Audited against production on 2026-09-11:
- 19 plant_hours batches marked 'processed'; plant_hours_log has 1 row
- 147 of 320 fuel_logs have no site relation
- purchase_orders.project_code holds requisition numbers and site names,
  not project codes — automatic site matching succeeds ~8% of the time
- PLANT collection and two data_import_batches fields have zero readers

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-11 10:02:42 +02:00
..
2026-08-19-po-import-queue-redesign.md docs: add PO import queue spec/plan, ignore cooler.env, rewrite n8n ingest impl 2026-08-19 22:03:39 +02:00
2026-08-19-purchase-order-upload-design.md Spec: clarify PO upload dialog does not auto-close 2026-08-19 15:03:48 +02:00
2026-08-26-needs-review-modal-compact.png docs(specs): screenshot of compact needs-review modal with working PDF 2026-08-26 23:33:33 +02:00
2026-08-26-needs-review-modal-resize-and-pdf-viewer-design.md docs(specs): fix stale URL example, 'above' wording, and add recordId notes 2026-08-26 23:34:10 +02:00
2026-08-26-pdf-url-fix-and-modal-compact-design.md docs(specs): PDF URL fix + compact needs-review modal 2026-08-26 23:20:08 +02:00
2026-08-26-purchasing-ui-tweaks-design.md docs(specs): purchasing UI tweaks — shorter upload labels, unlinked-DN styling, view PO PDF, fulfillment bug 2026-08-26 23:56:34 +02:00
2026-08-27-po-supplier-edit-and-dn-collapse-design.md docs(spec): PO detail supplier edit + DN items collapse 2026-08-27 00:49:42 +02:00
2026-08-28-fuel-attention-dismissal-design.md docs(spec): fuel attention dismissal design 2026-08-28 12:19:59 +02:00
2026-08-28-plant-hours-weekly-log-design.md docs(plant-hours): weekly log import + exception report design 2026-08-28 12:20:58 +02:00
2026-08-28-site-overhead-monthly-and-oneoff-design.md docs(spec): clarify card subtitle covers monthly + one-off 2026-08-28 12:33:53 +02:00
2026-08-30-pwa-split-icon-design.md docs(spec): MEGA Ask vs MEGA OPS PWA split-install icon design 2026-08-30 22:11:02 +02:00
2026-08-31-vehicle-unit-type-toggle-ui-design.md docs(spec): vehicle unit_type inline-edit UI (fleet + plant) 2026-08-31 12:48:57 +02:00
2026-09-11-ingestion-restructure-design.md docs(spec): ingestion restructure — per-entity documents, honest status 2026-09-11 10:02:42 +02:00