chore(dashboard): retire the GLP-1 tile

Drop the standalone GLP-1 dashboard tile and its data-fetch route.
The /api/dashboard/glp1 endpoint has no consumer outside the retired
tile (no native client reads it), so the route, the tile component,
its test, the e2e spec, the locale keys, the query-key entry and the
drift-guard assertion all retire together.

The medication detail page and its bidirectional contracts stay
untouched. An opt-in dashboard widget that surfaces the same level
chart will land later in this cycle, anchored on the existing
dashboard-layout toggle list.
This commit is contained in:
Marc-André Bombeck committed 2026-05-16 01:00:09 +02:00
1 parent 59ef95f284
commit 8e5f71b1b9
13 files changed
+7 -1459

No files matched your search

-8
View File
@@ -82,14 +82,6 @@ export const queryKeys = {
*/
dashboardWidgets: () => ["user", "dashboardWidgets"] as const,
/**
* v1.4.25 W6 — dashboard GLP-1 tile data. Self-gating: the route
* returns `data: null` when the user has no active GLP-1 medication
* so the tile component can suppress itself without a 404 special-
* case in the cache.
*/
dashboardGlp1: () => ["dashboard", "glp1"] as const,
/**
* v1.4.25 W5e — per-user, per-metric-class source priority. The
* Settings → Sources surface reads + writes this key; saving