Problem Statement
High-volume sellers waste a significant amount of time manually typing in SKUs when logging new inventory. To provide a premium mobile experience (similar to ScoutApp), we need a fast way to scan shoe boxes and apparel tags.
Proposed Solution
Integrate a lightweight web-based barcode/QR scanner directly into the "Add Inventory Item" modal so mobile users can scan a physical box and have the SKU auto-fill instantly.
Acceptance Criteria
- Library Integration: Use a robust, mobile-friendly library like
html5-qrcode or @zxing/library.
- UI Implementation: Add a "Scan Barcode" button next to the SKU input field in
app/blocks/inventory-management/add-item-modal.tsx.
- Camera Support: When clicked, open a video feed overlay requesting camera permissions.
- Auto-fill: Upon successfully reading a standard UPC or barcode, auto-fill the SKU field and close the camera overlay.
- Error Handling: Gracefully handle devices without cameras or denied permissions.
Technical Hints
- Ensure the scanner modal has a high z-index and works smoothly on mobile viewports.
- The library should support standard UPC-A and EAN-13 barcodes commonly found on sneaker boxes.
Problem Statement
High-volume sellers waste a significant amount of time manually typing in SKUs when logging new inventory. To provide a premium mobile experience (similar to ScoutApp), we need a fast way to scan shoe boxes and apparel tags.
Proposed Solution
Integrate a lightweight web-based barcode/QR scanner directly into the "Add Inventory Item" modal so mobile users can scan a physical box and have the SKU auto-fill instantly.
Acceptance Criteria
html5-qrcodeor@zxing/library.app/blocks/inventory-management/add-item-modal.tsx.Technical Hints