Skip to content
SprecherEast
Issue 506

epic: Visual editorial blocks — timeline, steps, key facts, outcome fork

Back to our plan
Done
enhancementfrontendcmsuxpriority: high

Problem

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:

BlockPattern it followsShows
TimelineMOJ / DWP timeline (date first, a marker per entry, end marker)Milestones with a status: done, next, conditional, later
StepsUSWDS process list (ordered list, 3–10 steps, heading per step)What a reader can do, in order
Key factsUSWDS icon list + summary boxIcon, short value, label, certainty (confirmed / estimate / unknown), source link
Outcome forkComparison cards joined by a branch connectorOne 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):

  1. Native: Payload has no timeline/steps/facts block, but BlocksFeature is its recommended way to add custom editorial components. Used.
  2. Official plugins: none for these.
  3. 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; semantic ol/li plus CSS connectors is simpler and lighter.
  4. 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.md list 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

See it on GitHub, opens in a new tab