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
File diff suppressed because one or more lines are too long