From d867c4bf834013e72bf110012b741440c24b48e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 8 Oct 2026 18:39:12 +0200 Subject: [PATCH] Fold the medication API tab back into Erweitert Seven tabs on a medication cut the strip off mid-label at 390 px. The API tab's one group (per-medication tokens and drug coding) now sits in Erweitert as a collapsed group before the danger zone, an old ?tab=api link lands there, and on a phone the six remaining tabs wrap into two rows instead of scrolling a label off the edge. --- messages/de.json | 1 - messages/en.json | 1 - messages/es.json | 1 - messages/fr.json | 1 - messages/it.json | 1 - messages/ko.json | 1 - messages/pl.json | 1 - .../detail/medication-detail-tabs.tsx | 64 +++++++++---------- 8 files changed, 32 insertions(+), 39 deletions(-) diff --git a/messages/de.json b/messages/de.json index 3f66e1bbd..b8a9af176 100644 --- a/messages/de.json +++ b/messages/de.json @@ -2031,7 +2031,6 @@ "bestand": "Bestand", "verlauf": "Verlauf", "injektion": "Injektion", - "api": "API", "erweitert": "Erweitert", "wirkung": "Wirkung" }, diff --git a/messages/en.json b/messages/en.json index a391ae472..b6118a75a 100644 --- a/messages/en.json +++ b/messages/en.json @@ -2031,7 +2031,6 @@ "bestand": "Supply", "verlauf": "History", "injektion": "Injection", - "api": "API", "erweitert": "Advanced", "wirkung": "Effect" }, diff --git a/messages/es.json b/messages/es.json index 17a5b9d4f..1a38046b8 100644 --- a/messages/es.json +++ b/messages/es.json @@ -2031,7 +2031,6 @@ "bestand": "Existencias", "verlauf": "Historial", "injektion": "Inyección", - "api": "API", "erweitert": "Avanzado", "wirkung": "Efecto" }, diff --git a/messages/fr.json b/messages/fr.json index 04eda7899..42b9faffe 100644 --- a/messages/fr.json +++ b/messages/fr.json @@ -2031,7 +2031,6 @@ "bestand": "Stock", "verlauf": "Historique", "injektion": "Injection", - "api": "API", "erweitert": "Avancé", "wirkung": "Effet" }, diff --git a/messages/it.json b/messages/it.json index 0919825b9..a85fb57dd 100644 --- a/messages/it.json +++ b/messages/it.json @@ -2031,7 +2031,6 @@ "bestand": "Scorta", "verlauf": "Cronologia", "injektion": "Iniezione", - "api": "API", "erweitert": "Avanzate", "wirkung": "Effetto" }, diff --git a/messages/ko.json b/messages/ko.json index 7dc463063..4f2c415a4 100644 --- a/messages/ko.json +++ b/messages/ko.json @@ -2031,7 +2031,6 @@ "bestand": "재고", "verlauf": "기록", "injektion": "주사", - "api": "API", "erweitert": "고급", "wirkung": "효과" }, diff --git a/messages/pl.json b/messages/pl.json index c3c2b4f76..13e7dc9c8 100644 --- a/messages/pl.json +++ b/messages/pl.json @@ -2031,7 +2031,6 @@ "bestand": "Zapas", "verlauf": "Historia", "injektion": "Iniekcja", - "api": "API", "erweitert": "Zaawansowane", "wirkung": "Działanie" }, diff --git a/src/components/medications/detail/medication-detail-tabs.tsx b/src/components/medications/detail/medication-detail-tabs.tsx index 63a134774..0e55a2348 100644 --- a/src/components/medications/detail/medication-detail-tabs.tsx +++ b/src/components/medications/detail/medication-detail-tabs.tsx @@ -193,7 +193,6 @@ const TAB_SLUGS = [ "bestand", "verlauf", "injektion", - "api", "erweitert", ] as const; type TabSlug = (typeof TAB_SLUGS)[number]; @@ -208,9 +207,8 @@ const OWNER_ONLY_TABS: ReadonlySet = new Set([ // Schedule times are a MANAGE route, but the tab also carries the reminder // and notification settings, which resolve the caller. "zeitplan", - // Per-medication tokens: a credential surface, never delegated. - "api", - // Phase config, export and the token-adjacent rows resolve the caller. + // Phase config, export and the per-medication tokens (a credential + // surface, never delegated) resolve the caller. "erweitert", ]); @@ -230,6 +228,9 @@ const MANAGE_TABS: ReadonlySet = new Set(["bestand"]); */ const LEGACY_TAB_SLUGS: Record = { erinnerung: "zeitplan", + // The API tab folded back into Erweitert in v1.42: two tabs for the + // rarely-opened owner settings made a strip that could not fit a phone. + api: "erweitert", }; function snapshotToWizardPayload( @@ -524,7 +525,9 @@ export function MedicationDetailTabs({ data-slot="medication-detail-tabs" > {availableTabs.map((slug) => ( @@ -871,33 +874,9 @@ export function MedicationDetailTabs({ )} - {/* API — the external-ingest surface in its own tab: per-medication - tokens + the drug-coding identifiers external systems key on. - Pulled out of Erweitert so the destructive zone and the token - management stop sharing one surface. */} - - -
- -
-
- -
-
-
- - {/* ERWEITERT — Lifecycle → Daten → Gefahrenzone. The external-API - group moved to its own API tab. */} + {/* ERWEITERT — Lifecycle → Daten → external API → Gefahrenzone. + The API tab folded back in here (v1.42); its group stays + collapsed like the other two, and the danger zone stays last. */} + +
+ +
+
+ +
+
+