Commit graph

8 commits

Author SHA1 Message Date
55dd2af732 Fix: Explicitly request camera permission before starting Quagga
- Added getUserMedia call before Quagga.init to trigger browser permission dialog
- Better error messages for permission denied/not found/in use

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-17 11:38:01 +01:00
fb6351aa29 Compress scanner window for more space on mobile
- Reduced video box height to 150px
- Changed aspect ratio to 16:9
- Reduced padding and margins

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-17 11:34:39 +01:00
3e803cf71f Remove page title to save space on mobile
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-17 11:33:58 +01:00
33fa68e0e7 Fix: Load scanner.js after SCANNER_CONFIG is defined
- Moved JS loading to end of page (after config)
- Styled manual search button with blue background
- Fixed script loading order issue

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-17 11:30:51 +01:00
001f1b304c Add manual barcode input for testing without camera/HTTPS
- Added text input field for manual barcode entry
- Works with Enter key or Search button
- Allows testing functionality without camera access

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-17 11:26:12 +01:00
6bb3927ca3 Fix: Allow scanner to attempt camera access without HTTPS
In test environments without HTTPS, the camera may still work
depending on browser settings. Now shows warning instead of
blocking completely.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-17 11:22:23 +01:00
74b452b82e Fix: Add early exit if SCANNER_CONFIG not defined
Prevents potential JavaScript errors if script is loaded
outside the scanner page context.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-17 11:18:29 +01:00
cf244aac31 Initial release: HandyBarcodeScanner Dolibarr Module v1.0
Features:
- Order mode: Scan products, select supplier, add to draft orders
- Shop mode: Scan products, access supplier shop links
- Inventory mode: Scan products, update stock levels

- Touch-optimized mobile interface
- QuaggaJS for browser-based barcode scanning
- Supports EAN-13, EAN-8, Code128, Code39
- Integrated into Dolibarr standard layout
- Admin settings with QR code for mobile access
- German and English translations

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-17 11:08:17 +01:00