fix(design): Dracula tokens + Romance BP abbreviations + therapy-timeline polish

- 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 `<li>` 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
  `<Pill>` injection glyph and the dose-arrow `<ArrowUp>` /
  `<ArrowDown>` 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.
This commit is contained in:
Marc-André Bombeck committed 2026-05-14 16:57:56 +02:00
1 parent 3e78da6e35
commit 8f3a95463d
8 files changed
+29 -21

No files matched your search

+11 -5
View File
@@ -97,8 +97,11 @@ export function TherapyTimeline({ limit }: TherapyTimelineProps) {
</CardHeader>
<CardContent>
<ol className="border-border/60 relative space-y-3 border-l pl-4">
{data.entries.map((entry, idx) => (
<li key={idx} className="relative">
{data.entries.map((entry) => (
<li
key={`${entry.kind}-${entry.date}-${entry.medicationName ?? ""}`}
className="relative"
>
<span
className="border-background absolute top-1 -left-[18px] h-3 w-3 rounded-full border-2"
aria-hidden="true"
@@ -147,9 +150,9 @@ function renderEntryLine(
case "dose-change": {
const arrow =
entry.doseDelta === "up" ? (
<ArrowUp className="inline h-3 w-3" />
<ArrowUp className="inline h-3 w-3" aria-hidden="true" />
) : entry.doseDelta === "down" ? (
<ArrowDown className="inline h-3 w-3" />
<ArrowDown className="inline h-3 w-3" aria-hidden="true" />
) : null;
return (
<span>
@@ -167,7 +170,10 @@ function renderEntryLine(
: "";
return (
<span>
<Pill className="text-dracula-cyan mr-1 inline h-3 w-3" />
<Pill
className="text-dracula-cyan mr-1 inline h-3 w-3"
aria-hidden="true"
/>
<strong>{drug}</strong>
{site}
</span>