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:
dadaloop82
2026-04-07 12:17:18 +00:00
parent b7ed9899fa
commit 4e576559a9
5 changed files with 110 additions and 2 deletions
+1
View File
@@ -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
BIN
View File
Binary file not shown.
File diff suppressed because one or more lines are too long