Skip to content

feat(mobile): Add Barcode / SKU Camera Scanner for Fast Logging #123

Description

@rushikesh-bobade

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

  1. Library Integration: Use a robust, mobile-friendly library like html5-qrcode or @zxing/library.
  2. UI Implementation: Add a "Scan Barcode" button next to the SKU input field in app/blocks/inventory-management/add-item-modal.tsx.
  3. Camera Support: When clicked, open a video feed overlay requesting camera permissions.
  4. Auto-fill: Upon successfully reading a standard UPC or barcode, auto-fill the SKU field and close the camera overlay.
  5. 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.

Metadata

Metadata

Assignees

Labels

ECSoC26Required label for ECSOC Sentinel scoringenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions