fix(timeline): word every code an entry carries, and read a pause as one

The timeline and the day view showed what the server sends as it was sent:
a life event's category as FAMILY, a visit's kind as PREVENTIVE, a
document's kind as DISCHARGE_LETTER, a trip and a cycle under their
sentinel labels, a lab day as a bare "5", a mood as SUPER_GUT, a
screener as PHQ9 with its band code. A pause read as "Ramipril" at its
start and "Ramipril ended" at its end.

Every surface that shows a timeline item (lane labels, hover titles,
the screen-reader table, the selection bar, the phone chronicle) now
reads it through one wording, item-words.ts: a code goes through the
bundle's existing labels, a lab day reads "5 lab values", and a code
the bundle does not know is left out rather than shown. The day view's
title and second line do the same per event kind (mood, screener and
band, sport, severity, visit kind or planned, dose number, intensity,
functional impact, document kind), and a medication that starts, ends,
pauses or resumes says so, in the day view and in the visit
preparation alike.

A pause reads "Ramipril paused" at its start and "Ramipril resumed ·
after 11 days" at its end, on the lanes, in the selection bar and in
the chronicle.

A guard renders a record with every item kind, every category and every
kind code on each surface, in two languages, and fails on any upper-case
code or sentinel in the visible text. The wire schema now says which
fields carry codes.
This commit is contained in:
Marc-André Bombeck committed 2026-10-09 12:53:56 +02:00
1 parent d8a3614120
commit 2638174b66
24 files changed
+1055 -95

No files matched your search

+8
View File
@@ -81439,10 +81439,14 @@ components:
type: string
title:
type: string
description: "The record's own name, or a code the client words: a mood, a screener's instrument, a workout's sport,
`cycle` for a cycle day."
meta:
anyOf:
- type: string
- type: "null"
description: "The second line: text (a dose, a lab value, a duration) or a code or number the client words (a category,
a kind, a severity, a screener's score and band, an intensity, a dose number)."
note:
anyOf:
- type: string
@@ -81672,10 +81676,14 @@ components:
description: False when the start is a stand-in (a medication without a start date starts at its first intake).
label:
type: string
description: The item's name. A trip is labelled `travel` and a cycle `cycle`; the client words both.
sub:
anyOf:
- type: string
- type: "null"
description: "The second line, by kind: a code for a life event (its category), a visit or procedure (its encounter
kind) and a document (its kind); the analyte count for a lab day; the dose as text for a medication or a
dose change. The client words every code."
href:
anyOf:
- type: string