From b51c76238a6305fa13d96e3ac240625337c55b72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Tue, 16 Jun 2026 01:49:03 +0200 Subject: [PATCH] docs(medications): correct the stale dose-status comment to the neutral med-card rule The compliance number + card already render neutral (no grade tint); only a stale comment still described a green take-window highlight the implementation does not do. Reword it to state status drives a discreet line/glyph, never a card background/border tint. --- src/components/medications/medication-card.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/medications/medication-card.tsx b/src/components/medications/medication-card.tsx index 3cf0bb210..693d1ef73 100644 --- a/src/components/medications/medication-card.tsx +++ b/src/components/medications/medication-card.tsx @@ -221,9 +221,12 @@ export function MedicationCard({ const rate7 = display?.short.rate ?? compliance?.compliance7?.rate ?? 0; const rate30 = display?.long.rate ?? compliance?.compliance30?.rate ?? 0; const streak = display?.short.streak ?? compliance?.compliance7?.streak ?? 0; - // v1.15.9 — the open dose's server-derived status drives the card's green - // take-window highlight + the overdue / heavily-overdue top line. Defaults - // to "upcoming" (calm) when the display block is absent (older mocks). + // v1.15.9 — the open dose's server-derived status drives a discreet status + // line/glyph (text + icon only) and the overdue / heavily-overdue top line. + // Per the neutral med-card rule there is NO green take-window highlight and + // no grade-tinted card chrome — status is conveyed by a calm line, never a + // background/border tint. Defaults to "upcoming" (calm) when the display + // block is absent (older mocks). const doseStatus = display?.currentDose.status ?? "upcoming"; const categoryLabel = getMedicationCategoryLabel(medication.category, t); const sortedSchedules = [...medication.schedules].sort(