From 8f3a95463dbac8d1ac1414ef522649bb8d147d13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 14 May 2026 16:57:56 +0200 Subject: [PATCH] fix(design): Dracula tokens + Romance BP abbreviations + therapy-timeline polish MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - GLP-1 medication card streak flame: `text-orange-400` → `text-dracula-orange`. The hardcoded Tailwind shade was skewing warm against the rest of the card. - /insights/medikamente compliance counters: `text-green-500` / `text-orange-500` / `text-red-500` → `text-dracula-green` / `-orange` / `-red`. Same drift in three sibling spans on one surface; replace as a set. - Side-effect affordance: `Smile` icon read as a positive affordance for a *negative* logging surface. Switch to `Stethoscope` so the icon matches the clinical context. - Health Score componentBp: FR `BP` → `TA`, IT `BP` → `PA`, ES `BP` → `PA`, PL `BP` → `RR` — the native compact forms used in clinical practice. DE "Blutdruck" + EN "BP" unchanged. - Therapy-timeline `
  • ` key: array index → composite (`kind-date-medicationName`). Prevents DOM-reuse bugs when a dose change is logged mid-window and reorders the list. - Therapy-timeline inline icons: `aria-hidden="true"` on the `` injection glyph and the dose-arrow `` / `` so screen readers stop announcing "image" mid-sentence. - Medication-form Dialog tap targets: the schedule-row dropdown trigger (`h-7 w-7`) and the New-schedule button + the four schedule inputs (`h-8`) promoted to `h-11` so the dense schedule grid honours the 44px floor. The labels stay compact; the controls grow. --- messages/es.json | 2 +- messages/fr.json | 2 +- messages/it.json | 2 +- messages/pl.json | 2 +- src/app/insights/medikamente/page.tsx | 8 +++++--- src/components/insights/therapy-timeline.tsx | 16 +++++++++++----- .../medications/glp1-medication-card.tsx | 6 +++--- src/components/medications/medication-form.tsx | 12 ++++++------ 8 files changed, 29 insertions(+), 21 deletions(-) diff --git a/messages/es.json b/messages/es.json index 84b1a3401..f762ac8a5 100644 --- a/messages/es.json +++ b/messages/es.json @@ -874,7 +874,7 @@ "progressAria": "Health Score progress", "deltaVsLastWeek": "{delta} vs last week", "deltaUnavailable": "No history yet — check back next week.", - "componentBp": "BP", + "componentBp": "PA", "componentWeight": "Peso", "componentMood": "Estado de ánimo", "componentCompliance": "Meds", diff --git a/messages/fr.json b/messages/fr.json index 391fb2282..0dd6c6d92 100644 --- a/messages/fr.json +++ b/messages/fr.json @@ -874,7 +874,7 @@ "progressAria": "Health Score progress", "deltaVsLastWeek": "{delta} vs last week", "deltaUnavailable": "No history yet — check back next week.", - "componentBp": "BP", + "componentBp": "TA", "componentWeight": "Poids", "componentMood": "Humeur", "componentCompliance": "Meds", diff --git a/messages/it.json b/messages/it.json index e1b616912..dea12620b 100644 --- a/messages/it.json +++ b/messages/it.json @@ -874,7 +874,7 @@ "progressAria": "Health Score progress", "deltaVsLastWeek": "{delta} vs last week", "deltaUnavailable": "No history yet — check back next week.", - "componentBp": "BP", + "componentBp": "PA", "componentWeight": "Peso", "componentMood": "Umore", "componentCompliance": "Meds", diff --git a/messages/pl.json b/messages/pl.json index 569f95b3b..94682d681 100644 --- a/messages/pl.json +++ b/messages/pl.json @@ -874,7 +874,7 @@ "progressAria": "Health Score progress", "deltaVsLastWeek": "{delta} vs last week", "deltaUnavailable": "No history yet — check back next week.", - "componentBp": "BP", + "componentBp": "RR", "componentWeight": "Waga", "componentMood": "Nastrój", "componentCompliance": "Meds", diff --git a/src/app/insights/medikamente/page.tsx b/src/app/insights/medikamente/page.tsx index d77a1d309..1f92e064d 100644 --- a/src/app/insights/medikamente/page.tsx +++ b/src/app/insights/medikamente/page.tsx @@ -182,15 +182,17 @@ export default function InsightsMedikamentePage() {
    - {med.taken7}{" "} + {med.taken7}{" "} {t("insights.taken")} - {med.skipped7}{" "} + + {med.skipped7} + {" "} {t("insights.skipped")} - {med.missed7}{" "} + {med.missed7}{" "} {t("insights.missed")}
    diff --git a/src/components/insights/therapy-timeline.tsx b/src/components/insights/therapy-timeline.tsx index af1c28271..d8ce593aa 100644 --- a/src/components/insights/therapy-timeline.tsx +++ b/src/components/insights/therapy-timeline.tsx @@ -97,8 +97,11 @@ export function TherapyTimeline({ limit }: TherapyTimelineProps) {
      - {data.entries.map((entry, idx) => ( -
    1. + {data.entries.map((entry) => ( +