hellth-hub/apps/admin/app/(authed)
Sebastian Mayer 70f59cfd40
Some checks are pending
CI / Lint, Typecheck, Test, Build (push) Waiting to run
Feature: Flexibles Wochenbudget mit Blocker-Tagen
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>
2026-05-29 11:30:29 +02:00
..
aktivitaeten Initial commit: Hellth Hub monorepo 2026-05-27 22:15:16 +02:00
aktivitaetsfeed Initial commit: Hellth Hub monorepo 2026-05-27 22:15:16 +02:00
benutzer Initial commit: Hellth Hub monorepo 2026-05-27 22:15:16 +02:00
einkaufsliste Initial commit: Hellth Hub monorepo 2026-05-27 22:15:16 +02:00
einstellungen Feature: Ziele in Einstellungen-Tab, Sportbonus-Anzeige, Profil-Fix 2026-05-29 11:12:34 +02:00
erinnerungen Initial commit: Hellth Hub monorepo 2026-05-27 22:15:16 +02:00
gewicht Initial commit: Hellth Hub monorepo 2026-05-27 22:15:16 +02:00
hellfireclub Initial commit: Hellth Hub monorepo 2026-05-27 22:15:16 +02:00
lebensmittel Initial commit: Hellth Hub monorepo 2026-05-27 22:15:16 +02:00
maerkte Initial commit: Hellth Hub monorepo 2026-05-27 22:15:16 +02:00
onboarding Initial commit: Hellth Hub monorepo 2026-05-27 22:15:16 +02:00
planung Initial commit: Hellth Hub monorepo 2026-05-27 22:15:16 +02:00
rezepte Initial commit: Hellth Hub monorepo 2026-05-27 22:15:16 +02:00
sicherheit/2fa-setup Initial commit: Hellth Hub monorepo 2026-05-27 22:15:16 +02:00
statistiken Initial commit: Hellth Hub monorepo 2026-05-27 22:15:16 +02:00
wearables Initial commit: Hellth Hub monorepo 2026-05-27 22:15:16 +02:00
wochenbudget Feature: Flexibles Wochenbudget mit Blocker-Tagen 2026-05-29 11:30:29 +02:00
layout.tsx Initial commit: Hellth Hub monorepo 2026-05-27 22:15:16 +02:00
page.tsx Feature: Flexibles Wochenbudget mit Blocker-Tagen 2026-05-29 11:30:29 +02:00