Update Inventory from Shopping List
As a Host, I want to automatically update my inventory when I complete shopping, So that my inventory reflects the new products I purchased.
Acceptance Criteria
Section titled “Acceptance Criteria”- Given I have completed shopping and checked off all items
- When I mark the shopping list as complete
- Then the system prompts me to update inventory
- And for each checked item, the system:
- Adds new products to inventory (if they don’t exist)
- Updates quantities for existing products
- Sets product levels to “full” for new purchases
- And I can review and adjust the inventory updates before confirming
Implementation Status
Section titled “Implementation Status”✅ IMPLEMENTED (January 2026)
Implementation Details
Section titled “Implementation Details”Files:
shaker/app/(tabs)/inventory/shopping/index.tsx- Inventory update on check-offshaker/components/ProductSelectionModal.tsx- Product selection with inventory updateshaker/data/products/index.ts-updateProductLevel,addPriceHistoryEntryfunctions
Features:
- ✅ Automatic inventory update when checking off items with product selection
- ✅ Product level set to “full” for new purchases
- ✅ Price history entry when actual cost is provided
- ✅ Product selection modal for linking purchased products
- ⏳ Bulk update on list completion (current implementation is item-by-item)
Implementation:
- When checking off an item with an ingredient, ProductSelectionModal is shown
- User selects the product they purchased
- Product level is automatically updated to full
- If actual cost is entered, it’s added to price history
- Update happens immediately when item is checked off (no separate “complete shopping” action needed)
Current Behavior:
- Updates happen item-by-item as you check off items
- Each check-off with product selection immediately updates inventory
- No separate “mark shopping list as complete” step
Future Enhancement:
- Add “Complete Shopping” action that bulk updates all checked items
- Review screen before confirming bulk updates
- Option to add new products to inventory automatically
Priority
Section titled “Priority”High - Maintains inventory accuracy
Related Entities
Section titled “Related Entities”- ShoppingList, ShoppingListItem, Inventory, Product
Related Commands
Section titled “Related Commands”UpdateInventoryAfterShopping(C51)