fix: move fitness goals to Settings, clean up mobile nav
Some checks failed
Security Checks / dependency-audit (push) Has been cancelled
Security Checks / secret-scanning (push) Has been cancelled
Security Checks / dockerfile-lint (push) Has been cancelled

- Removed fitness sub-pages from mobile More sheet (Food Library and
  Quick Meals are already tabs on the fitness page)
- Added Fitness Goals section to Settings page with inline editing
- Goals show current values with Edit Goals button
- Edit mode: 2x2 grid with calorie/protein/carbs/fat inputs
- Save calls PUT /api/fitness/goals
- Works for both users independently
This commit is contained in:
Yusuf Suleman
2026-03-29 14:51:34 -05:00
parent e8d1cd1681
commit 792d89a377
2 changed files with 116 additions and 16 deletions

View File

@@ -1,6 +1,6 @@
<script lang="ts">
import { page } from '$app/state';
import { LayoutDashboard, DollarSign, Package, Activity, MoreVertical, MapPin, BookOpen, Library, Settings, Target, UtensilsCrossed, Zap } from '@lucide/svelte';
import { LayoutDashboard, DollarSign, Package, Activity, MoreVertical, MapPin, BookOpen, Library, Settings } from '@lucide/svelte';
interface Props {
visibleApps?: string[];
@@ -66,21 +66,7 @@
Trips
</a>
{/if}
{#if showApp('fitness')}
<a href="/fitness/foods" class="more-sheet-item" onclick={closeMore}>
<UtensilsCrossed size={20} />
Food Library
</a>
<a href="/fitness/goals" class="more-sheet-item" onclick={closeMore}>
<Target size={20} />
Fitness Goals
</a>
<a href="/fitness/templates" class="more-sheet-item" onclick={closeMore}>
<Zap size={20} />
Quick Meals
</a>
{/if}
{#if showApp('reader')}
{#if showApp('reader')}
<a href="/reader" class="more-sheet-item" onclick={closeMore}>
<BookOpen size={20} />
Reader