|
Some checks are pending
CI / Lint, Typecheck, Test, Build (push) Waiting to run
Pro-Tag-Mehrbedarf statt fester Tageswerte: - DB: Spalte extraCalories in weekly_calorie_plans (Migration 0018). - API: neuer Endpoint setWeeklyExtras nimmt die ganze Woche entgegen und verteilt eingeplante Mehrkalorien serverseitig. Reine, getestete Verteilungslogik distributeWeeklyExtras haelt das Wochenziel konstant (Tage mit Blocker = Tagesziel + Extra; uebrige Tage anteilig reduziert, Floor 1200). statsSummary liefert extraCalories pro Tag mit. - 3 neue API-Tests (Verteilung konstant, Floor, Endpoint). - Wochenbudget-UI: je Tag ein "+kcal"- und ein "Anlass"-Feld plus ein einziger "kcal neu verteilen"-Button. Blocker-Tage werden hervorgehoben. Das fehleranfaellige Einzel-Datumsformular entfaellt. - Dashboard nimmt den verteilten Plan-Wert des Tages als Basis-Tagesziel (z. B. 1.740 nach Ausgleich, 2.800 an einem Blocker-Tag) und zeigt einen Hinweis. Behebt zugleich den Sync: Wochenbudget-Aenderungen invalidieren jetzt alle statsSummary-Varianten, sodass das Dashboard sofort mitzieht. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| 0000_snapshot.json | ||
| 0001_snapshot.json | ||
| 0002_snapshot.json | ||
| 0003_snapshot.json | ||
| 0004_snapshot.json | ||
| 0005_snapshot.json | ||
| 0006_snapshot.json | ||
| 0007_snapshot.json | ||
| 0008_snapshot.json | ||
| 0009_snapshot.json | ||
| 0010_snapshot.json | ||
| 0011_snapshot.json | ||
| 0012_snapshot.json | ||
| 0018_snapshot.json | ||
| _journal.json | ||