feat: implement scan-to-add flow (#25) #51

Merged
makiolaj merged 1 commits from feature/issue-25-scan-to-add-flow into develop 2026-02-24 00:04:23 +00:00
Owner

Complete end-to-end scan-to-inventory workflow.

Changes

  • Created useProductLookup composable for Edge Function integration
  • Updated scan.vue to use real product lookup
  • Query parameter handling in index.vue
  • Pre-fill AddItemForm from scanned product data
  • Parse quantity/unit from product data (e.g., "750g")
  • Include barcode and brand in notes

User Flow

  1. 📸 Scan barcode on /scan page
  2. 🔍 Fetch from Open Food Facts via Edge Function
  3. Review product data
  4. Click "Add to Inventory"
  5. 📝 Pre-filled form opens (name, quantity, brand/barcode in notes)
  6. ✓ One-click confirm → Item added!

Week 3 Complete! 🎉

This closes the last Week 3 issue. All barcode scanning features are now functional.

Closes #25

Complete end-to-end scan-to-inventory workflow. ## Changes - ✅ Created `useProductLookup` composable for Edge Function integration - ✅ Updated scan.vue to use real product lookup - ✅ Query parameter handling in index.vue - ✅ Pre-fill AddItemForm from scanned product data - ✅ Parse quantity/unit from product data (e.g., "750g") - ✅ Include barcode and brand in notes ## User Flow 1. 📸 Scan barcode on /scan page 2. 🔍 Fetch from Open Food Facts via Edge Function 3. ✅ Review product data 4. ➕ Click "Add to Inventory" 5. 📝 Pre-filled form opens (name, quantity, brand/barcode in notes) 6. ✓ One-click confirm → Item added! ## Week 3 Complete! 🎉 This closes the last Week 3 issue. All barcode scanning features are now functional. Closes #25
makiolaj added 1 commit 2026-02-24 00:04:22 +00:00
feat: implement scan-to-add flow (#25)
Some checks failed
Deploy to Coolify / Run Tests (pull_request) Has been cancelled
Deploy to Coolify / Deploy to Development (pull_request) Has been cancelled
Deploy to Coolify / Deploy to Production (pull_request) Has been cancelled
Deploy to Coolify / Deploy to Test (pull_request) Has been cancelled
Pull Request Checks / Validate PR (pull_request) Has been cancelled
Deploy to Coolify / Code Quality (pull_request) Has been cancelled
7d35a3e7b3
- Create useProductLookup composable
- Integrate real product lookup in scan page
- Add query parameter handling in index.vue
- Pre-fill AddItemForm from scan data
- Parse quantity and unit from product data
- Include barcode and brand in notes

Complete end-to-end scan workflow:
1. Scan barcode
2. Fetch from Open Food Facts
3. Navigate to inventory with data
4. Pre-filled add form
5. One-click add to inventory

Closes #25
makiolaj merged commit 231f594004 into develop 2026-02-24 00:04:23 +00:00
Sign in to join this conversation.