WFDASHDRIVER-APP/components
Dave 286b86162b feat(problems): say what kind of problem, and flag out-of-stock rows
Every flagged item rendered the same red triangle and the same
"Problem" pill, whichever problem it was. An out-of-stock line and a
quality complaint look identical on the list, and they need different
follow-ups — one is a phone call to the supplier, the other is a
replacement.

problem_type is a PB *select* on order_items (stock|supplier|driver|
delivery|pricing|other, plus the four values added 2026-10-14) but a
free *text* field on stock_purchase_items, so the label map is
deliberately wider than PROBLEM_TYPES: updateStockCollectionStatus
writes `stock` on its own, and stock rows can carry anything.

Out-of-stock rows also get a red left rail and a light red wash. The
pill stays the signal — colour is never the only thing carrying the
meaning, since a red wash alone is invisible to anyone who can't
distinguish it from the hover state.

Colour is deliberately NOT used to disable Collect. Stock can arrive
without anyone clearing the flag, and a driver standing in front of
the shelf is the best possible source of truth.
2026-10-15 08:24:58 +02:00
..
AreaGroup.tsx feat(problems): say what kind of problem, and flag out-of-stock rows 2026-10-15 08:24:58 +02:00
AuthProvider.tsx feat: initialize project with Next.js, TypeScript, and Tailwind CSS 2026-05-24 21:51:29 +02:00
BottomNav.tsx feat: add complete dark mode support with settings toggle 2026-07-07 18:28:19 +02:00
CollectionItemCard.tsx feat: popover stays above footer, partial collections must be justified 2026-08-02 22:58:08 +02:00
CollectionMap.tsx feat: add pickup proof photos, improve performance and UX 2026-07-07 20:43:17 +02:00
CollectModal.tsx fix(photos): downscale pickup photos client-side before upload 2026-10-14 16:12:37 +02:00
InstallPrompt.tsx feat: add pickup proof photos, improve performance and UX 2026-07-07 20:43:17 +02:00
ItemDetailModal.tsx feat: add PO/Notes popovers, supplier color sidebar, fix popover clipping 2026-08-02 21:38:38 +02:00
LocationTracker.tsx feat: add order item photo uploads and fix PB bugs 2026-07-08 01:35:26 +02:00
OfflineIndicator.tsx refactor(ui): rebrand app, fix supplier naming 2026-07-05 22:32:20 +02:00
ProblemModal.tsx refactor(ui): rebrand app, fix supplier naming 2026-07-05 22:32:20 +02:00
PWABridge.tsx Add PWA support and UI redesign 2026-05-27 00:34:50 +02:00
SupplierGroup.tsx feat(problems): say what kind of problem, and flag out-of-stock rows 2026-10-15 08:24:58 +02:00