Skip to content

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.

  • 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

IMPLEMENTED (January 2026)

Files:

  • shaker/app/(tabs)/inventory/shopping/index.tsx - Inventory update on check-off
  • shaker/components/ProductSelectionModal.tsx - Product selection with inventory update
  • shaker/data/products/index.ts - updateProductLevel, addPriceHistoryEntry functions

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

High - Maintains inventory accuracy

  • ShoppingList, ShoppingListItem, Inventory, Product
  • UpdateInventoryAfterShopping (C51)