Ingredient and Product Management
This directory contains individual user stories related to the ingredient abstraction layer, mapping generic ingredients to specific products, and product substitution.
Overview
Section titled “Overview”The ingredient-product mapping system enables hosts to work with abstract ingredients in recipes while mapping those ingredients to specific products in inventory. This abstraction allows for recipe flexibility, product substitution, and better inventory management.
Story Summary
Section titled “Story Summary”✅ Implemented Stories (6) - Moved to completed/ directory
Section titled “✅ Implemented Stories (6) - Moved to completed/ directory”Note: All implemented ingredient-product mapping stories have been moved to ../completed/ directory.
Priority: High
Status: ✅ Implemented (December 2025)
Define generic ingredient types (bourbon, vodka, simple syrup) that recipes can reference without being tied to specific brands. Foundation for recipe flexibility.
Coverage: 80 ingredients with complete flavor profiles
Priority: High
Status: ✅ Implemented (December 2025)
Map specific products in inventory to generic ingredients so the system knows which bottles can be used for which recipe ingredients.
Coverage: 100% (20 products mapped to ingredients)
3. View Available Products for Recipe Ingredient
Section titled “3. View Available Products for Recipe Ingredient”Priority: Medium
Status: ✅ Implemented (December 2025)
See which products in inventory can be used for a recipe ingredient. View product levels and select preferred products when making drinks.
Implementation: Ingredient detail screen shows all mapped products with inventory levels.
Priority: Low
Status: ✅ Implemented (December 2025)
Receive intelligent suggestions for ingredient substitutions when products are missing. Based on ingredient mapping, flavor profiles, price, and availability.
Implementation: Product substitution system with match scoring displayed on product detail screens.
See: Substitution Suggestions Implementation
Priority: Low
Status: ✅ Implemented (December 2025)
See which recipes use a specific ingredient to understand ingredient versatility and plan menus accordingly.
Implementation: Ingredient detail screen shows all recipes using that ingredient.
Priority: Medium
Status: ✅ Implemented (December 2025)
Define flavor characteristics (sweet, sour, bitter, umami, spicy, herbal, floral, fruity) for ingredients on a 0-10 scale. Used for recipe balance analysis.
Coverage: 100% (80 ingredients with complete flavor profiles)
Related: Define Ingredient Flavor Characteristics
⏳ Partially Implemented Stories (1)
Section titled “⏳ Partially Implemented Stories (1)”Priority: Low
Status: ⚠️ Partially Implemented (December 2025)
Map products containing multiple ingredients (like pre-made sour mix). Basic multi-ingredient mapping exists, but ratios, percentages, and preferences are not yet implemented.
Current: Products can map to multiple ingredients
Missing: Ratio specification, primary/secondary designation, shopping list calculations
⏳ Planned Stories (1)
Section titled “⏳ Planned Stories (1)”8. Bulk Import Ingredient-Product Mappings
Section titled “8. Bulk Import Ingredient-Product Mappings”Priority: Low
Status: ⏳ Not Yet Implemented
Import ingredient-product mappings from templates or databases. Auto-suggest mappings based on product names and types with review and approval workflow.
Implementation Progress
Section titled “Implementation Progress”Overall Status
Section titled “Overall Status”Implemented: 6 of 8 stories (75%)
Partially Implemented: 1 of 8 stories (12.5%)
Planned: 1 of 8 stories (12.5%)
Priority Breakdown
Section titled “Priority Breakdown”High Priority (2 stories):
- ✅ Define Generic Ingredients
- ✅ Map Products to Generic Ingredients
Medium Priority (2 stories):
- ✅ View Available Products for Recipe Ingredient
- ✅ Define Ingredient Flavor Profiles
Low Priority (4 stories):
- ✅ Suggest Product Substitutions
- ✅ Track Ingredient Usage Across Recipes
- ⚠️ Handle Multi-Ingredient Products (partial)
- ⏳ Bulk Import Ingredient-Product Mappings
Foundation Status
Section titled “Foundation Status”Ingredient System:
- ✅ 80 ingredients defined
- ✅ 100% flavor profile coverage
- ✅ Ingredient CRUD operations
- ✅ Ingredient detail screens
Product Mapping:
- ✅ 100% product mapping coverage (20 products)
- ✅ Multiple ingredients per product support
- ✅ Product-to-ingredient relationships
- ⏳ Bulk import/auto-mapping (not yet implemented)
Integration:
- ✅ Recipe flavor calculation uses ingredient profiles
- ✅ Product substitution uses ingredient mappings
- ✅ Ingredient detail shows recipes and products
- ✅ Product detail shows ingredient mappings
Key Components
Section titled “Key Components”Implemented:
- Ingredient data model with flavor profiles
- Product
ingredientIdsfield for mappings - Ingredient detail screen with products and recipes
- Product detail screen with ingredient mappings
- Product substitution system
- Flavor profile calculations
See: Flavor Profile Audit for detailed coverage statistics.
Related Documentation
Section titled “Related Documentation”- Flavor Profile Audit - Coverage analysis and statistics
- Substitution Suggestions Implementation - Product substitution details
- Flavor Profiles - Related flavor profile stories
- Product Substitution Suggestions - Product-level substitution story
Usage Guidelines
Section titled “Usage Guidelines”- For Recipe Development: Use Stories 1 and 6 to define ingredients with flavor profiles
- For Inventory Management: Use Story 2 to map products to ingredients for recipe matching
- For Recipe Making: Use Story 3 to see available products when making drinks
- For Substitutions: Use Story 4 to find alternatives when products are missing
- For Menu Planning: Use Story 5 to understand ingredient versatility
- For Complex Products: Use Story 7 for products with multiple ingredients (when fully implemented)
- For Bulk Setup: Use Story 8 to import mappings efficiently (when implemented)
Future Enhancements
Section titled “Future Enhancements”The ingredient-product mapping system provides the foundation for:
- Recipe-to-inventory matching
- Flavor-based substitutions
- Shopping list generation from recipes
- Multi-ingredient product handling with ratios
- Bulk mapping operations
- Custom mapping rules and patterns