From 564cae253a355331049d872b9e0f2d0b26ba7419 Mon Sep 17 00:00:00 2001 From: josh Date: Fri, 8 May 2026 09:36:29 -0400 Subject: [PATCH] Only estimate remaining after first audit, not from purchase date Before any audit, bulk items show their full original weight with no decay applied. The linear decay model only kicks in after the first audit provides an actual data point. This prevents freshly added, unopened items from showing misleading consumption estimates. Co-Authored-By: Claude Opus 4.6 --- web/src/components/ProductDetail.tsx | 2 +- web/src/types.ts | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/web/src/components/ProductDetail.tsx b/web/src/components/ProductDetail.tsx index a9a48ab..60b269c 100644 --- a/web/src/components/ProductDetail.tsx +++ b/web/src/components/ProductDetail.tsx @@ -294,7 +294,7 @@ export function ProductDetail({ {cfg?.unit}). Re-audit to update. )} - {item.containerWeight != null && ( + {item.containerWeight != null && last && (