Skip to content

Per-barcode print, consistent symbology detection everywhere; v0.6.5 - #15

Merged
eigger merged 1 commit into
masterfrom
feature/barcode-print-per-row-consistent-symbology-v0.6.5
Jul 17, 2026
Merged

Per-barcode print, consistent symbology detection everywhere; v0.6.5#15
eigger merged 1 commit into
masterfrom
feature/barcode-print-per-row-consistent-symbology-v0.6.5

Conversation

@eigger

@eigger eigger commented Jul 17, 2026

Copy link
Copy Markdown
Owner

The single "print request" button on an item's barcode section always targeted whichever barcode happened to be flagged primary (or an arbitrary one if none were, since manually-added barcodes never got isPrimary set and there was no way to change it) — on a multi-barcode item there was no way to know or control which label actually printed. Each barcode row now has its own print button, and the webhook payload is built from that specific barcode instead of guessing at "primary".

Symbology detection was also inconsistent across every barcode-adding entry point: the item detail page's unified add flow hardcoded "OTHER" for anything that wasn't a scanned QR, while /scan, manual item registration, and CSV import all ran a digit-shape heuristic (guessSymbology) that the detail page never called. Moved guessSymbology into packages/shared as the one implementation both apps use, added a matching scan-format mapper for when the real format is already known from a camera scan, and wired both into the detail page's manual-add route and the item registration form so a scanned or typed barcode gets the same, correct symbology (and Matter tagging, restricted to asset items) no matter which screen it was added from.

The single "print request" button on an item's barcode section always
targeted whichever barcode happened to be flagged primary (or an
arbitrary one if none were, since manually-added barcodes never got
isPrimary set and there was no way to change it) — on a multi-barcode
item there was no way to know or control which label actually printed.
Each barcode row now has its own print button, and the webhook payload
is built from that specific barcode instead of guessing at "primary".

Symbology detection was also inconsistent across every barcode-adding
entry point: the item detail page's unified add flow hardcoded "OTHER"
for anything that wasn't a scanned QR, while /scan, manual item
registration, and CSV import all ran a digit-shape heuristic
(guessSymbology) that the detail page never called. Moved
guessSymbology into packages/shared as the one implementation both
apps use, added a matching scan-format mapper for when the real format
is already known from a camera scan, and wired both into the detail
page's manual-add route and the item registration form so a scanned or
typed barcode gets the same, correct symbology (and Matter tagging,
restricted to asset items) no matter which screen it was added from.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@eigger
eigger merged commit a1a6a41 into master Jul 17, 2026
3 checks passed
@eigger
eigger deleted the feature/barcode-print-per-row-consistent-symbology-v0.6.5 branch July 17, 2026 08:26
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