From 895c497f5d8839e2e62a77968b7c4022e6620f13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Mon, 8 Jun 2026 19:11:39 +0200 Subject: [PATCH] docs(medications): refresh card-action + section comments for the tab move The card kebab now navigates to detail-page tabs and the advanced-settings sheet is gone; update the stale prop and section doc comments to match. --- src/components/medications/glp1-medication-card.tsx | 12 ++++++------ src/components/medications/medication-card.tsx | 11 +++++------ .../sections/destructive-zone-section.tsx | 8 ++++---- 3 files changed, 15 insertions(+), 16 deletions(-) diff --git a/src/components/medications/glp1-medication-card.tsx b/src/components/medications/glp1-medication-card.tsx index bfcd6306c..4fe02593f 100644 --- a/src/components/medications/glp1-medication-card.tsx +++ b/src/components/medications/glp1-medication-card.tsx @@ -124,15 +124,15 @@ interface Glp1MedicationCardProps { medication: Glp1Medication; onEdit: (med: Glp1Medication) => void; /** - * v1.7.1 — routes to the medication's full intake-history view - * (`/medications/{id}/history`), mirroring the generic medication card - * and the detail-header History button. The parent owns the navigation. + * v1.15.18 — navigates to the medication detail page's Verlauf tab + * (`/medications/{id}?tab=verlauf`), mirroring the generic medication + * card. The parent owns the navigation. */ onOpenHistory: (med: Glp1Medication) => void; /** - * v1.7.1 — opens the shared `` (mounted by the - * list page) for this medication, mirroring the generic medication card - * and the detail-header sliders button. + * v1.15.18 — navigates to the medication detail page's Erweitert tab + * (`/medications/{id}?tab=erweitert`), the home of the dissolved + * advanced settings. */ onOpenAdvanced: (med: Glp1Medication) => void; onLogSideEffect?: (med: Glp1Medication) => void; diff --git a/src/components/medications/medication-card.tsx b/src/components/medications/medication-card.tsx index 737620689..7342cb11d 100644 --- a/src/components/medications/medication-card.tsx +++ b/src/components/medications/medication-card.tsx @@ -94,15 +94,14 @@ interface MedicationCardProps { medication: Medication; onEdit: (med: Medication) => void; /** - * v1.7.1 — routes to the medication's full intake-history view - * (`/medications/{id}/history`), mirroring the detail-header History - * button. The parent owns the navigation. + * v1.15.18 — navigates to the medication detail page's Verlauf tab + * (`/medications/{id}?tab=verlauf`). The parent owns the navigation. */ onOpenHistory: (med: Medication) => void; /** - * v1.7.1 — opens the shared `` (mounted by the - * list page) for this medication, mirroring the detail-header sliders - * button. + * v1.15.18 — navigates to the medication detail page's Erweitert tab + * (`/medications/{id}?tab=erweitert`), the home of the dissolved + * advanced settings. */ onOpenAdvanced: (med: Medication) => void; } diff --git a/src/components/medications/sections/destructive-zone-section.tsx b/src/components/medications/sections/destructive-zone-section.tsx index 75b5cd4f8..6f3215aac 100644 --- a/src/components/medications/sections/destructive-zone-section.tsx +++ b/src/components/medications/sections/destructive-zone-section.tsx @@ -3,10 +3,10 @@ /** * v1.5.5 D-3 §9.8 — Verwaltung & Gefahrenzone. * - * v1.7.0 — split into two reusable bodies so the redesigned - * `` can slot them under different groups: - * `` (Pause + End → Lifecycle group) and - * `` (Purge + Delete → Danger zone group). + * v1.7.0 — split into two reusable bodies so the detail page's Erweitert + * tab can slot them under different groups: `` + * (Pause + End → Lifecycle group) and `` (Purge + Delete + * → Danger zone group). * * Mutation contracts per D-3 §3: *