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
- 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 develop2026-02-24 00:04:23 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Complete end-to-end scan-to-inventory workflow.
Changes
useProductLookupcomposable for Edge Function integrationUser Flow
Week 3 Complete! 🎉
This closes the last Week 3 issue. All barcode scanning features are now functional.
Closes #25