MEGAINFRA-WEBAPP/docs/superpowers/plans
DEls dc85da3f36 docs(plan): suppliers implementation plan
13 tasks across 6 phases: additive schema, pure matching/ledger
functions (TDD, tested in isolation), the one irreversible migration
(guarded, dry-run default), OCR wiring, API routes, and UI.

Grounded in the actual codebase rather than the spec's prose: the
existing "unknown supplier" inline-editor on the PO detail page
(SupplierEditor + POST /api/purchase-orders/[id]/supplier) is upgraded
in place rather than duplicated, following the same principle applied
to the sidebar restructure's delivery-note review queue. Every code
sample is written against files actually read during planning, not
guessed -- site-form-dialog.tsx, the /api/sites routes, matchSite,
po-fulfilment.ts, and the live purchase_orders.supplier data.

Self-review caught a real gap before committing: pb-bootstrap-schema.py
and pb-types.ts were named in the file-structure table but no task
actually touched them -- exactly the foot-gun docs/data-model.md
section 7 warns about. Added as Task 1 steps 5-8.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-11 18:08:30 +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 docs(plans): PDF URL fix + modal compact 2026-08-26 23:21:26 +02:00
2026-08-26-purchasing-ui-tweaks.md docs(plans): purchasing UI tweaks — 4 small tasks with TDD-friendly bite-sized steps 2026-08-26 23:58:30 +02:00
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 chore: untrack compiled Python bytecode, fix missed Task 17 checkboxes 2026-09-11 16:18:06 +02:00
2026-09-11-suppliers.md docs(plan): suppliers implementation plan 2026-09-11 18:08:30 +02:00