Key facts cards: lead with the subject, add an explanation line
Back to our planProblem
In plain words: each key facts card ("The short version") starts with tiny grey text, then a big status word that means little on its own ("Pending" what?). The owner finds it odd and generic. The important line, what the fact is about, is the smallest thing on the card.
The owner (Amine, 2026-11-04, Claude Code session, text, after reviewing several mockups) chose the smallest change over a timeline or an icon-led layout:
Keep the current design so the common components change as little as possible, and make the text at the top slightly bigger. The card order is: 1. the icon with bold text naming the subject, such as "Who pays for the ramp"; 2. the big status, such as "Pending"; 3. an explanation of what the city and state are doing, such as "Still negotiating"; 4. "Confirmed" with the source of the confirmation, which he likes.
Proposed fix
Change KeyFacts in src/platform/richtext/editorial/ (shared component, so check every page that uses it):
- The icon and the subject (today's
label) lead the card, in bold and a larger size than the mutedtext-sm. - The status (
value) stays big and bold. - A new optional
detailfield (one plain sentence, about 60 characters) shows under the status in smaller muted text. - The certainty badge and the source link stay as they are.
- Reading order and visual order match: drop the
flex-col-reversethat shows the value first on screen while the label comes first for screen readers. - The editor's hints say what each field is:
labelis the subject ("Who pays for the ramps"),valueis where it stands ("Pending"),detailis the one-line why. - Reword the I-94 post's three facts to match (live content in Admin, after this ships).
Native first: no new component, no new package. The block's fields are stored in the post's rich-text JSON, so an optional field should not need a database migration (to confirm in the PR). Existing blocks keep working: an old label just shows as the bold subject.
Not in this issue: a timeline, "Settled / Still open" tags (they need a new status field) and a big-icon layout. Mockups of those are in the #637 session scratchpad and can become their own issue later.
Acceptance criteria
- Not done: A fact card shows, top to bottom: icon with bold subject, the big status, the explanation (when set), then the certainty badge and source link.
- Not done: The subject is clearly larger and bolder than today's grey line, and the status is still the largest text.
- Not done: A fact without a
detaillooks right (no empty gap). - Not done: Visual order and screen reader order are the same; the component test and an axe check pass.
- Not done: Checked at 320, 430, 768, 1024, 1280 and 1920 px, light and dark, with two, three and six facts and a long subject and value.
- Not done: The gallery sample,
docs/ui/component-set.mdand the editor field hints are updated. - Not done: The I-94 post's facts are reworded in Admin after the deploy and checked on the live page on a phone.
Area
frontend, cms
Priority
priority: medium
Generated by Claude Code, opens in a new tab