feat: barcode scan button + reminder in manual product form
- Add 📷 scan button next to the barcode field in product form Opens a camera modal (BarcodeDetector if available, manual fallback) Detects barcode after 2 consistent frames, fills field and closes modal - Show ⚠️ hint below the barcode field when it's empty (new products only): 'Aggiungi il barcode così al prossimo acquisto basta scansionarlo!' Hint hides automatically when a code is entered or scanned - Hint is hidden in edit-product mode (barcode already saved) - scanBarcodeForForm() reuses the modal overlay; handles camera permission errors gracefully (shows manual input only)
This commit is contained in:
@@ -1802,3 +1802,4 @@
|
||||
[2026-04-07 12:00:02] OK — 31 items cached
|
||||
[2026-04-07 12:05:02] OK — 31 items cached
|
||||
[2026-04-07 12:10:01] OK — 30 items cached
|
||||
[2026-04-07 12:15:02] OK — 30 items cached
|
||||
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user