Skip to content

feat: No-Barcode Products & Manual Barcode Input#9

Merged
AkarinServer merged 2 commits intomainfrom
feat/no-barcode-products
Jan 24, 2026
Merged

feat: No-Barcode Products & Manual Barcode Input#9
AkarinServer merged 2 commits intomainfrom
feat/no-barcode-products

Conversation

@AkarinServer
Copy link
Owner

@AkarinServer AkarinServer commented Jan 24, 2026

Features

Manager App

  • No-Barcode Product Mode: Added a switch in the 'Add Product' screen.
    • Hides barcode input and scan button.
    • Auto-generates unique IDs (e.g., NB-1, NB-2).
    • Prevents converting existing no-barcode products back to barcode products.

Kiosk App

  • No Barcode Item Picker:
    • Dedicated dialog to select no-barcode products (NB-*).
    • Filter by category (Type) and search by name.
  • Manual Barcode Input:
    • Replaced system keyboard with a custom Numeric Keypad Dialog.
    • Real-time Search: Typing digits searches local database for matching barcodes or names.
    • Direct add-to-cart from search results.

Technical Details

  • Database: Added searchProducts(query) to Kiosk DatabaseHelper (partial matching).
  • UI: New ManualBarcodeDialog and NoBarcodeProductsDialog widgets.

Copy link

@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: 3b80c2e07c

ℹ️ 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 +176 to +180
final barcode = _noBarcodeMode
? (_isEditingExistingNoBarcode
? _barcodeController.text
: await DatabaseHelper.instance.getNextNoBarcodeId())
: _barcodeController.text.trim();

Choose a reason for hiding this comment

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

P2 Badge Preserve generated NB- barcode across retry attempts*

When no-barcode mode is enabled, each call to _saveProduct regenerates a new NB-* ID (getNextNoBarcodeId) before persisting the product. If the kiosk sync fails and the user retries from the same screen, the previous attempt has already inserted a product locally, so the next call generates a different barcode and creates a second product, leaving the first unsynced entry behind. This only happens when a sync failure occurs and the user retries in no-barcode mode, but it can silently duplicate products in the manager DB and on the kiosk.

Useful? React with 👍 / 👎.

@AkarinServer AkarinServer changed the title feat: no-barcode products (Manager + Kiosk) feat: No-Barcode Products & Manual Barcode Input Jan 24, 2026
@AkarinServer AkarinServer merged commit 0c734c7 into main Jan 24, 2026
1 check passed
@AkarinServer AkarinServer deleted the feat/no-barcode-products branch January 24, 2026 19:23
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.

1 participant