Skip to content

feat: duplicate barcode popup + dashboard redesign#5

Merged
BEKO2210 merged 1 commit intomainfrom
claude/restore-github-actions-workflow-oueZr
Mar 8, 2026
Merged

feat: duplicate barcode popup + dashboard redesign#5
BEKO2210 merged 1 commit intomainfrom
claude/restore-github-actions-workflow-oueZr

Conversation

@BEKO2210
Copy link
Copy Markdown
Owner

@BEKO2210 BEKO2210 commented Mar 8, 2026

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

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
@BEKO2210 BEKO2210 merged commit 755d799 into main Mar 8, 2026
3 checks passed
@BEKO2210 BEKO2210 deleted the claude/restore-github-actions-workflow-oueZr branch March 8, 2026 14:59
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +95 to +97
if (isOnline) {
const apiResult = await lookupBarcode(barcode);
apiName = apiResult?.name;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants