MEGAINFRA-WEBAPP/docs/superpowers/plans
DEls 3a71e7e884 feat(schema): add timesheets, fuel_sheets, plant_hours_sheets documents
Three document collections replacing data_import_batches for the
spreadsheet importers. Each owns its source file and carries honest
outcome counters (rows_total/created/failed, row_errors) — the counts the
current importers compute and then discard.

site is required on timesheets (a wage sheet belongs to one site) and
optional on the other two, which legitimately span sites since the fuel
importer resolves a site per row. cascadeDelete is false on all three, so
deleting a site cannot destroy its source spreadsheets.

Widened source_file mimeTypes beyond the plan's three entries to match
the pool being replaced. Browsers label CSVs text/csv, application/csv or
text/plain interchangeably and the importers branch on file extension,
not MIME — so the narrower list would have parsed a CSV successfully then
rejected it on write. The 2026-08-24 migration exists because that
already happened once.

Plan corrected: its TypeScript edit added a second `expand` property to
an interface that already had one, which does not compile.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-11 11:09:14 +02:00
..
2026-08-19-po-import-queue-implementation.md
2026-08-19-purchase-order-upload.md
2026-08-26-needs-review-modal-resize-and-pdf-viewer.md
2026-08-26-pdf-url-fix-and-modal-compact.md
2026-08-26-purchasing-ui-tweaks.md
2026-08-27-po-supplier-edit-and-dn-collapse.md docs(plan): PO supplier edit + DN collapse implementation 2026-08-27 00:50:44 +02:00
2026-08-28-fuel-attention-dismissal.md docs(plan): fuel attention dismissal implementation plan 2026-08-28 12:24:14 +02:00
2026-08-28-plant-hours-weekly-log.md docs(plan): plant hours weekly log implementation plan 2026-08-28 12:26:35 +02:00
2026-08-28-site-overhead-monthly-and-oneoff.md docs(plan): fix byDateDesc to return 0 on equal dates 2026-08-28 12:54:02 +02:00
2026-08-29-agent-tool-layer-mcp.md docs(plan): agent tool layer + read-only MCP server (phase 2B) 2026-08-29 20:13:39 +02:00
2026-08-29-chat-detail-tools-upload-pwa.md docs(plan): chat detail tools, PO upload and standalone PWA 2026-08-30 08:27:49 +02:00
2026-08-29-chat-ui-phase3.md docs(plan): chat UI + provider abstraction (phase 3) 2026-08-29 20:33:03 +02:00
2026-08-29-fuel-attention-extraction.md docs(plan): fuel attention extraction plan (phase 2A) 2026-08-29 20:04:51 +02:00
2026-08-29-metrics-extraction.md fix(vehicles): handle empty unit_type during updates 2026-08-29 19:17:14 +02:00
2026-08-30-agent-coverage-vision-pdf.md docs(plan): agent coverage gaps, vision and PDF export 2026-08-30 12:27:38 +02:00
2026-08-30-pwa-split-icon.md docs(plan): MEGA Ask vs MEGA OPS PWA split-install icon plan 2026-08-30 22:12:30 +02:00
2026-08-31-vehicle-unit-type-toggle-ui.md docs(plan): implement vehicle unit_type inline-edit UI on Fleet + Plant 2026-08-31 12:57:18 +02:00
2026-09-11-ingestion-restructure.md feat(schema): add timesheets, fuel_sheets, plant_hours_sheets documents 2026-09-11 11:09:14 +02:00