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:
Binary file not shown.
Reference in New Issue
Block a user