epic: Visual editorial blocks — timeline, steps, key facts, outcome fork
Back to our planProblem
In plain words: explainer articles (like the Milwaukee Street interchange guide) can only use headings, paragraphs, lists and pictures. Long stories about plans, dates and choices turn into walls of text. We need a small set of visual pieces an editor can drop into any article: a timeline with dots and lines, numbered steps, key-fact cards, and a "two possible futures" fork.
Summary of the owner's feedback (Claude chat, 2026-10-27), after seeing the text-heavy guide: it needs more visual cues, such as lines, dots, diagrams and other graphic design elements. He chose reusable rich-text blocks over infographic images, and added that they should follow common design patterns for series, timelines and diagrams, and be reusable.
This epic replaces the original single "visual guide block" idea with four focused blocks, so each one is reusable on its own.
Proposed fix
Four rich-text blocks, each a separate sub-issue, all built on Payload's native BlocksFeature, the shared UI kit (Card, Badge, tokens) and lucide-react. Each follows an established public-sector design pattern so the look and the markup are familiar and accessible:
| Block | Pattern it follows | Shows |
|---|---|---|
| Timeline | MOJ / DWP timeline (date first, a marker per entry, end marker) | Milestones with a status: done, next, conditional, later |
| Steps | USWDS process list (ordered list, 3–10 steps, heading per step) | What a reader can do, in order |
| Key facts | USWDS icon list + summary box | Icon, short value, label, certainty (confirmed / estimate / unknown), source link |
| Outcome fork | Comparison cards joined by a branch connector | One question, 2–3 possible outcomes |
Shared across all four: one registration list of "editorial blocks" used by Events and Posts (and Pages later), one status/certainty vocabulary with text labels (never color alone), mappers to plain props (decision 0013), tokens only (theme-ready for #146/#370), real text in semantic HTML.
Native-first ladder (findings):
- Native: Payload has no timeline/steps/facts block, but
BlocksFeatureis its recommended way to add custom editorial components. Used. - Official plugins: none for these.
- Open source: shadcn-style registries have timelines (e.g. Dice UI, MIT) but they pull in
@base-ui/react(we use Radix) and an install key, and add interactivity we don't need. These are static display components; semanticol/liplus CSS connectors is simpler and lighter. - Our code: four small renderers in the shared rich-text layer.
Sketch of all four with the interchange content: shared in the owner's chat on 2026-10-27.
Acceptance criteria
- Not done: All four sub-issues are done and their blocks are available in the Events and Posts editors.
- Not done: The interchange guide is rebuilt with them and verified live (sub-issue).
- Not done: Payload guideline and
docs/ui/component-set.mdlist the new blocks and when to use each.
Area
frontend, cms, ux
Priority
priority: high
Generated by Claude Code, opens in a new tab
Issues in this epic
#507 · Closed Oct 30
#508 · Closed Oct 30
#509 · Closed Oct 30
#510 · Closed Oct 30
#511 · Closed Oct 30
#515 · Closed Oct 30
#517 · Closed Nov 6
#530 · Closed Nov 1
#543 · Closed Oct 31
#544 · Closed Oct 31
#532 · Closed Oct 31
#541 · Closed Oct 31
#502
#397 · Closed Oct 25
#196 · Closed Oct 21
#249 · Closed Nov 1