kiwi/frontend/src/stores
pyr0ball b2c546e86a feat: wire secondary-use window hints into recipe engine (#83)
Secondary-state items (stale bread, overripe bananas, day-old rice, etc.)
are now surfaced to the recipe engine so relevant recipes get matched even
when the ingredient is phrased differently in the corpus (e.g. "day-old
rice" vs. "rice").

Backend:
- Add rice and tortillas entries to SECONDARY_WINDOW in expiration_predictor
- Add secondary_pantry_items: dict[str, str] field to RecipeRequest schema
  (maps product_name → secondary_state label, e.g. {"Bread": "stale"})
- Add _SECONDARY_STATE_SYNONYMS lookup in recipe_engine — keyed by
  (category, state_label), returns corpus-matching ingredient phrases
- Update _expand_pantry_set() to accept secondary_pantry_items and inject
  synonym terms into the expanded pantry set used for FTS matching

Frontend:
- Add secondary_pantry_items to RecipeRequest interface in api.ts
- Add secondaryPantryItems param to _buildRequest / suggest / loadMore
  in the recipes store
- Add secondaryPantryItems computed to RecipesView — reads secondary_state
  from inventory items (expired but still in secondary window) and builds
  the product_name → state_label map
- Pass secondaryPantryItems into handleSuggest and handleLoadMore

Closes #83
2026-04-18 19:06:53 -07:00
..
community.ts fix: community module integration fixes -- slots payload + ForkResult type 2026-04-13 14:21:33 -07:00
inventory.ts fix: frontend concurrent-mount errors, nginx routing, and browser UX (#98 #106 #107) 2026-04-18 17:12:34 -07:00
mealPlan.ts fix: frontend concurrent-mount errors, nginx routing, and browser UX (#98 #106 #107) 2026-04-18 17:12:34 -07:00
recipes.ts feat: wire secondary-use window hints into recipe engine (#83) 2026-04-18 19:06:53 -07:00
savedRecipes.ts feat: saved recipes, recipe browser, and recipe detail panel 2026-04-08 14:35:02 -07:00
settings.ts feat: metric/imperial unit preference (#81) 2026-04-15 23:04:29 -07:00
shopping.ts fix: recipe enrichment backfill, main_ingredient browser domain, bug batch 2026-04-18 15:38:56 -07:00