Suggest optimal 1-3 food combinations to fill remaining macro budget using weighted least-squares solver over a curated pantry (~55 foods) plus user favorites/recents. Recipes scored individually (no combining). Features: - Combinatorial solver (singles, pairs, triples) with macro-weighted scoring - MealTypePicker component (extracted from quick-log, shared) - Hero card with fit%, macro delta icons (Beef/Droplet/Wheat), ingredient cards, animated +/X toggle for logging - Responsive layout: sidebar on mobile, center column on desktop - MongoDB cache with ±5% tolerance, SSR on cache hit, TTL auto-expiry - Cache invalidation on food-log/favorites/custom-meals CRUD - Recipe per100g backfill admin endpoint
2.4 KiB
2.4 KiB