From b5141f139d0d1ec8cd7b0de5fffe890f6d2dd92f Mon Sep 17 00:00:00 2001 From: josh Date: Mon, 4 May 2026 19:25:15 -0400 Subject: [PATCH] Simplify audit modal: asset ID scan only Remove eyebrow header, dropdown picker, and SKU matching. Require scanning the physical asset ID to audit. Co-Authored-By: Claude Opus 4.6 --- web/src/components/modals/AuditFlow.tsx | 27 ++----------------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/web/src/components/modals/AuditFlow.tsx b/web/src/components/modals/AuditFlow.tsx index 09bc148..552accb 100644 --- a/web/src/components/modals/AuditFlow.tsx +++ b/web/src/components/modals/AuditFlow.tsx @@ -79,12 +79,6 @@ export function AuditFlow({ const handleScan = (result: ScanResult) => { if (result.kind === "item") { setItemId(result.item.id); - } else { - // SKU scan — pick the most recent active instance of that product. - const candidate = overdueFirst - .filter((i) => i.productId === result.product.id) - .sort((a, b) => +new Date(b.purchaseDate) - +new Date(a.purchaseDate))[0]; - if (candidate) setItemId(candidate.id); } }; @@ -114,33 +108,16 @@ export function AuditFlow({ boxShadow: "var(--shadow-lg)", }} > - +
-
- - - -
-