chore(release): v1.4.28

Bug-fix and consistency follow-through after the v1.4.27 mobile sweep.
The headline is a tighter dashboard and insights surface: six widgets
retire from code entirely (GLP-1 tile, dashboard `<DrugLevelChart>`
mount, GLP-1 detail-page intake history + inventory, the
`<InsightAdvisorCard>` block and its regeneration affordance, the
weekly-report route), four broken edges close (workout-edit duplicate-
timestamp 409, BD-Zielbereich tile rebuilt on the shared
`<TrendCard>` primitive, `/insights/puls` chart timeout fallback,
sticky tab-strip scroll lock), and one consistency contract lands per
maintainer directive: every medication-list row, every medication-
detail section header, every trend tile, every Coach launch glyph,
every chart-height contract reads on one shape. The HealthScore card
grows to fill its column, gains an accessible `?` tooltip explaining
the delta, and drops the placeholder "Wochenbericht erstellen"
button. iOS contracts are intact; the only `/api/*` evolution is
additive (the `aggregate=monthly` grain on `/api/measurements` and an
internal-only `/api/internal/web-vitals` beacon route).
This commit is contained in:
Marc-André Bombeck authored and GitHub committed 2026-05-16 03:17:00 +02:00
1 parent 4f09c3f862
commit 2d111fcb24
136 files changed
+5731 -8462

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
/**
* v1.4.28 R3d (BK-F-M1) — shared shape for the trimmed `/api/analytics`
* payload that every insights sub-page consumes.
*
* Pre-fix, each of the seven `/insights/<metric>/page.tsx` modules
* declared its own `interface AnalyticsData { summaries: Record<...> }`
* inline. They were structurally identical so the TanStack-Query cache
* unified anyway, but maintaining seven copies meant every iOS-contract
* addition (e.g. a new `MeasurementType`) showed up only after the
* matching sub-page was touched. Hoisting the interface here is a
* single-place change.
*
* NOTE: the dashboard's `AnalyticsData` (in `src/app/page.tsx`) is a
* wider type — it carries `bpInTargetPct*` aggregates the sub-pages
* don't use. The dashboard keeps its own declaration; we'd lose more
* than we gain by trying to merge them.
*/
import type { DataSummary } from "@/lib/analytics/trends";
export interface SubPageAnalyticsData {
/** `Record<MeasurementType, DataSummary>` — sentinel value for "not loaded yet" is `undefined`. */
summaries: Record<string, DataSummary>;
}