med-det-samme/app
Ole-Morten Duesund bbf4d0af9c History: leading green check / red cross, and sane status labels
Each history row now starts with a green check (taken) or red cross (not
taken), so the day scans at a glance. The split mirrors adherencePercent —
only TAKEN counts as adhered — so the icons agree with the percentages on top.

Also fixes the nonsense label: a past PENDING dose showed "Venter" as if it
were still due. A history-local historyLabel maps PENDING -> "Ikke tatt";
the shared DoseStatus.label is untouched, so Today still shows "Venter".

The fixed takenGreen/missedRed are deliberately not derived from the palette,
or dynamic Material You colours could tint a "taken" tick non-green. Colour is
paired with shape (check vs cross) and text, so meaning never rests on colour
alone (WCAG 1.4.1). The trailing tonal DoseStatusBadge gave way to a muted
text label, since the leading icon now carries the colour signal.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-17 13:30:07 +02:00
..
schemas/no.naiv.meddetsamme.data.MedDatabase Cyclic and tapering dose schedules (schema v3) 2026-06-11 22:09:51 +02:00
src History: leading green check / red cross, and sane status labels 2026-06-17 13:30:07 +02:00
build.gradle.kts Cyclic and tapering dose schedules (schema v3) 2026-06-11 22:09:51 +02:00