feat: scan product barcodes to stock up after shopping #5
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/barcode-scanning"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
A barcode scanner for stocking up after shopping (Zásoby → Skenovat).
BarcodeDetectorwhere it reads product codes (Chrome on Android), otherwise the ZXing WebAssembly polyfill (barcode-detector), served from our origin. The CSP'sscript-srcgains'wasm-unsafe-eval'. Reads EAN-13, EAN-8, UPC-A/E and ITF; codes can also be typed.API
stock_item_barcodes(household, stock item, code, package size; unique code per household, several codes per item, deleted with the item).GET|POST /households/{household}/barcodes,DELETE /households/{household}/barcodes/{barcode},POST /households/{household}/scans(404 for an unknown code). All in the household group;openapi.jsonandschema.d.tsregenerated.Testing
make cipassed: backend, frontend (lint, svelte-check, Vitest, Playwright, build) and commits.