Skip to content

Latest commit

 

History

History
51 lines (42 loc) · 1.78 KB

task.md

File metadata and controls

51 lines (42 loc) · 1.78 KB

Sprint 14: SmartPantry AI Redesign — Tasks

Backend: Data Model

  • Migrate PantryItem model (stock_level, category, expiry_date, added_at, is_bulk, bulk_use_count)

Backend: Kitchen Templates

  • Create backend/pantry/templates.py with 30+ kitchen items

Backend: Pantry Routes

  • Update existing endpoints for new schema
  • Add POST /pantry/quick-stock
  • Add POST /pantry/cook/{recipe_name}
  • Add GET /pantry/expiring
  • Add POST /pantry/mark-purchased

Backend: Intelligence Module

  • Expand recipe templates to 30+
  • Adapt detect_low_stock() for stock_level
  • Adapt suggest_cookable_recipes() for stock_level + expiry boost
  • Adapt group_grocery_items() for stock_level
  • Add expiry defaults + get_effective_expiry() helper

Backend: Grocery Routes

  • Adapt recipe-match for qualitative matching

Backend: Tests

  • Update test_household_module_flow() for new schema
  • Update test_household_intelligence_flow() for new schema
  • Add test_quick_stock_onboarding()
  • Add test_cook_auto_decrement()
  • Add test_bulk_item_slow_decrement()
  • Add test_expiring_items()
  • Add test_mark_purchased_restocks_pantry()

Frontend: API

  • Update PantryItem interface
  • Update addOrUpdatePantryItem() signature
  • Add quickStockPantry(), cookRecipe(), getExpiringItems(), markPurchasedAndRestock()

Frontend: Components

  • Redesign PantryManager.tsx with battery-style cards
  • Create QuickStockModal.tsx
  • Add "I Cooked This" to CookTodayPanel.tsx
  • Add expiry alerts to LowStockAlerts.tsx
  • Wire up HouseholdDashboard.tsx

Verification

  • All tests pass (59 passed)
  • npm run lint passes
  • npm run build passes
  • Push to main