Public Access
docs: document unit conversion implementation
- Update implementation-plan.md: mark unit conversion complete - Update HANDOFF.md: add session notes for 2026-05-24 unit conversion - Update README.md: list Unit Conversion as a feature
This commit is contained in:
@@ -178,9 +178,12 @@ Self-hosted meal planning system that integrates with Lucky California grocery s
|
||||
- [ ] Support pasting recipe URL for future scraping
|
||||
|
||||
### 5.3 Ingredient Mapping
|
||||
- [ ] Create ingredient matching service
|
||||
- [ ] Map recipe ingredients to `ingredient` table entries
|
||||
- [ ] Handle unit conversions (cups → oz, etc.)
|
||||
- [x] Create ingredient matching service
|
||||
- [x] Map recipe ingredients to `ingredient` table entries
|
||||
- [x] Handle unit conversions (cups → oz, lb → g, etc.)
|
||||
- Implemented in `app/utils/units.py`: normalization, within-family (weight/volume/count), cross-family via density tables for ~30 canonical ingredients, fallback to dimensionless
|
||||
- Integrated into `planner/cost.py` for accurate cost calculation
|
||||
- Orchestrator email and shopping list use converted quantities
|
||||
|
||||
**Verify**: Can add a recipe manually and retrieve it via API
|
||||
|
||||
|
||||
Reference in New Issue
Block a user