From 4ae8801c5640d8f67adcf7f441e745a4e887080b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 28 May 2026 23:51:17 +0200 Subject: [PATCH] feat(meds): self-hosted medication detail page restoring every v1.5.4-displaced action MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A new `/medications/[id]/page.tsx` surfaces every action the v1.5.4 form retirement buried — log today's dose, edit the plan, manage notifications, manage API tokens, import CSV, configure GLP-1 phases in a focused Sheet, walk a three-tier destructive cascade. The page reads as a clinical document from header to destructive footer; one phone-scroll reaches every restored feature. Section order (recurring variant — 8 sections): 1. Header band — drug name + dose + status pill + edit pencil 2. Today's dose card — two buttons (`[Genommen]` + `[Übersprungen]`) 3. Cadence summary — plain-language line + Bearbeiten → wizard Step 5 via the new `landingIntent: "cadence"` route 4. Dose ladder / Phasen — GLP-1 only, reuses the v1.4 components 5. Intake history preview — last 14 grouped + footer link to `/history`; CSV-import trigger lives in the header 6. Notifications — `` in `