ui(medications): move GLP-1 side-effect button into the card header actions overflow

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.
This commit is contained in:
Marc-André Bombeck committed 2026-05-17 14:32:40 +02:00
1 parent 2327332206
commit 675c084baa
6 files changed
-12

No files matched your search

-2
View File
@@ -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",
-2
View File
@@ -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",
-2
View File
@@ -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",
-2
View File
@@ -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",
-2
View File
@@ -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",
-2
View File
@@ -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",