feat: duplicate barcode popup + dashboard redesign#5
Conversation
Scanner: When scanning a barcode that already exists in the DB, show a popup with all matching products including location, quantity, MHD and status. User can still add another or scan again. Dashboard: Redesigned for better use of screen space — hero card with SVG progress ring showing OK percentage, stacked status bar, quick action buttons, category breakdown, and urgent products list spread across the full viewport instead of cramped at the top. https://claude.ai/code/session_018567acDi8JQ3BHH8BxYX5b
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 062192cb90
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (isOnline) { | ||
| const apiResult = await lookupBarcode(barcode); | ||
| apiName = apiResult?.name; |
There was a problem hiding this comment.
Show duplicate matches before doing online barcode lookup
When a scanned barcode already exists locally, this branch still awaits lookupBarcode before setting the duplicate state. In environments where isOnline is true but OpenFoodFacts is slow or unreachable, the scanner can stay in loading and users cannot rescan or choose “Trotzdem hinzufügen” even though the duplicate data is already available from IndexedDB, so the new duplicate-resolution flow is blocked by optional network metadata.
Useful? React with 👍 / 👎.
Scanner: When scanning a barcode that already exists in the DB, show a popup with all matching products including location, quantity, MHD and status. User can still add another or scan again.
Dashboard: Redesigned for better use of screen space — hero card with SVG progress ring showing OK percentage, stacked status bar, quick action buttons, category breakdown, and urgent products list spread across the full viewport instead of cramped at the top.
https://claude.ai/code/session_018567acDi8JQ3BHH8BxYX5b