Skip to content
SprecherEast
Issue 507

enhancement: Timeline block with status per milestone (and shared editorial-block foundation)

Back to our plan
Done
enhancementfrontendcmsuxpriority: high

Problem

In plain words: articles need a timeline that shows at a glance what already happened, what's next, and what may never happen: a vertical line with a dot for each milestone.

This is also the foundation for the other editorial blocks in the epic: the shared block list and the status vocabulary.

Proposed fix

  • Pattern: MOJ / DWP design-system timeline. Each entry: date label first (free text: "Dec 5, 2024", "Early 2040s"), title, short description, at most one link. Optional end marker.
  • Status per entry: done, next, conditional, later. Shown by dot style (filled / ring / dashed / hollow), connector style (solid up to now, dashed after), and a text badge, so it never relies on color.
  • Markup: <ol> with <li> per entry, heading level chosen by the renderer's context; aria-current="step" on the next entry.
  • Foundation: create the shared editorial-block registration (one list used by Events and Posts rich text) and a shared typed status/certainty vocabulary that the facts block reuses.
  • Payload fields: array of entries with date (text), title, description (short text), status (select), link (the shared link() field). Mapper to plain props (0013). Tokens only.

Acceptance criteria

  • Not done: Editors can insert a Timeline in Events and Posts rich text.
  • Not done: Each status reads correctly without color (badge text plus dot shape).
  • Not done: Semantic ordered list; passes axe; keyboard and screen reader order matches visual order.
  • Not done: Readable at all six widths, light and dark themes.
  • Not done: Unit tests for the mapper and renderer.

Area

frontend, cms, ux

Priority

priority: high


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab