From 675c084baa05de26bff62cb67ff45642ad4d561e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sun, 17 May 2026 14:32:40 +0200 Subject: [PATCH] ui(medications): move GLP-1 side-effect button into the card header actions overflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The GLP-1 card carried a third Stethoscope button in the primary actions row (Eingenommen / Übersprungen / Nebenwirkung), which broke the two-button symmetry the generic medication card establishes. Marc reported the asymmetry during the v1.4.37 UX audit (audit item 11): "ich möchte natürlich, dass das genau gleich ist". Move the side-effect quick-log into a kebab-style overflow in the header `actions` slot. The kebab only mounts when the parent wires `onLogSideEffect`, so Mounjaro and Ramipril cards stay byte-equivalent in the common case (history + edit, no kebab). When the side-effect hand-off is wired, Mounjaro gains the kebab while the primary actions row stays the canonical two-button shape. The localised label re-uses the existing `common.moreOptions` key for the trigger aria-label and the existing `medications.glp1LogSideEffect` key for the menu item, so no new i18n strings are required. --- messages/de.json | 2 -- messages/en.json | 2 -- messages/es.json | 2 -- messages/fr.json | 2 -- messages/it.json | 2 -- messages/pl.json | 2 -- 6 files changed, 12 deletions(-) diff --git a/messages/de.json b/messages/de.json index 837991974..2b525ab92 100644 --- a/messages/de.json +++ b/messages/de.json @@ -1676,8 +1676,6 @@ "genderHint": "Wird für geschlechtsspezifische Zielwerte verwendet.", "timezone": "Zeitzone", "timezoneHint": "Wird für Diagrammachsen, Erinnerungszeiten, Export-Zeitstempel und den Coach-Kontext verwendet. Gespeicherte Daten bleiben unverändert.", - "timezoneDetect": "Browser-Zeitzone übernehmen", - "timezoneDetectAria": "Browser-Zeitzone {tz} übernehmen", "timezoneInvalid": "Keine gültige IANA-Zeitzone.", "profileSaved": "Profil gespeichert", "changePassword": "Passwort ändern", diff --git a/messages/en.json b/messages/en.json index b97d9e197..b5f1fb95c 100644 --- a/messages/en.json +++ b/messages/en.json @@ -1676,8 +1676,6 @@ "genderHint": "Used for gender-specific target values.", "timezone": "Timezone", "timezoneHint": "Used for chart axis labels, reminder times, export timestamps, and Coach context. Stored data is unchanged.", - "timezoneDetect": "Use browser timezone", - "timezoneDetectAria": "Use browser timezone {tz}", "timezoneInvalid": "Not a valid IANA timezone.", "profileSaved": "Profile saved", "changePassword": "Change password", diff --git a/messages/es.json b/messages/es.json index d4af86bad..98d04c1bb 100644 --- a/messages/es.json +++ b/messages/es.json @@ -1676,8 +1676,6 @@ "genderHint": "Used for gender-specific target values.", "timezone": "Zona horaria", "timezoneHint": "Used for chart axis labels, reminder times, export timestamps, and Coach context. Stored data is unchanged.", - "timezoneDetect": "Use browser timezone", - "timezoneDetectAria": "Use browser timezone {tz}", "timezoneInvalid": "Not a valid IANA timezone.", "profileSaved": "Profile saved", "changePassword": "Change password", diff --git a/messages/fr.json b/messages/fr.json index 6cd01ea2f..415215fa8 100644 --- a/messages/fr.json +++ b/messages/fr.json @@ -1676,8 +1676,6 @@ "genderHint": "Used for gender-specific target values.", "timezone": "Fuseau horaire", "timezoneHint": "Used for chart axis labels, reminder times, export timestamps, and Coach context. Stored data is unchanged.", - "timezoneDetect": "Use browser timezone", - "timezoneDetectAria": "Use browser timezone {tz}", "timezoneInvalid": "Not a valid IANA timezone.", "profileSaved": "Profile saved", "changePassword": "Change password", diff --git a/messages/it.json b/messages/it.json index 2b0752443..0c8ccb335 100644 --- a/messages/it.json +++ b/messages/it.json @@ -1676,8 +1676,6 @@ "genderHint": "Used for gender-specific target values.", "timezone": "Fuso orario", "timezoneHint": "Used for chart axis labels, reminder times, export timestamps, and Coach context. Stored data is unchanged.", - "timezoneDetect": "Use browser timezone", - "timezoneDetectAria": "Use browser timezone {tz}", "timezoneInvalid": "Not a valid IANA timezone.", "profileSaved": "Profile saved", "changePassword": "Change password", diff --git a/messages/pl.json b/messages/pl.json index 3d1a02107..af40e9efd 100644 --- a/messages/pl.json +++ b/messages/pl.json @@ -1676,8 +1676,6 @@ "genderHint": "Used for gender-specific target values.", "timezone": "Strefa czasowa", "timezoneHint": "Used for chart axis labels, reminder times, export timestamps, and Coach context. Stored data is unchanged.", - "timezoneDetect": "Use browser timezone", - "timezoneDetectAria": "Use browser timezone {tz}", "timezoneInvalid": "Not a valid IANA timezone.", "profileSaved": "Profile saved", "changePassword": "Change password",