feat: add nutrition/food logging to fitness section
All checks were successful
CI / update (push) Successful in 4m47s

Daily food log with calorie and macro tracking against configurable diet
goals (presets: WHO balanced, cut, bulk, keto, etc.). Includes USDA/BLS
food search with portion-based units, favorite ingredients, custom
reusable meals, per-food micronutrient detail pages, and recipe-to-log
integration via AddToFoodLogButton. Extends FitnessGoal with nutrition
targets and adds birth year to user profile for BMR calculation.
This commit is contained in:
2026-04-04 14:34:45 +02:00
parent 4a0cddf4b7
commit c4420b73d2
27 changed files with 4904 additions and 20 deletions

View File

@@ -40,7 +40,7 @@
let goalInput = $state(4);
let goalSaving = $state(false);
const hasDemographics = $derived(data.goal?.sex != null && data.goal?.heightCm != null);
const hasDemographics = $derived(data.goal?.sex != null && data.goal?.heightCm != null && data.goal?.birthYear != null);
function startGoalEdit() {
goalInput = goalWeekly ?? 4;