Epic: Figures that stay small and open in a lightbox, and a banner for upcoming meetings
Back to our planNumbering: epic #813; banner #814; lightbox #815; figure #816; Payload block #817; blue tone #818; content edit #819; guidelines #820. Where the text below says 01 to 07, read these numbers (01=#815, 02=#816, 03=#817, 04=#819, 05=#814, 06=#818, 07=#820).
Problem
In plain words: on the WisDOT meeting's event page and on the I-94 / Milwaukee Street news post, the annotated map (WisDOT Figure 2-9, with four numbered orange markers) fills the whole text column. On a laptop it is taller than the screen. The numbered key under it pushes the article down further. The caption also repeats things the picture already says. A visitor has to scroll past a big picture before reading anything. And nothing at the top of the post tells visitors that the related WisDOT virtual public meeting is coming up on Tue 2026-11-10 at 5:30 PM Central.
Summary of the owner's request (2026-11-07, Claude in Chrome side panel, text). We wrote it in our own words.
- Show the map small, floated to the right with the text wrapping on its left. On desktop it should take about half the text column. On phones it stacks.
- Clicking or tapping it opens a lightbox with the image larger and the numbered key beside it (wide screens) or under it (narrow screens). The small view never shows the key, because the numbers can't be read at that size.
- Make it reusable, so nobody builds it by hand again and an editor can add one in Payload without code.
- Show the figure label ("Figure 2-9") as a small gray rounded badge, not plain text.
- Shorten the caption and drop what the image already shows (the "not to scale" fine print). Keep the credit and source, and keep the meaning "preferred concept, conditional on a funding agreement". The long version can live in the lightbox.
- Add an information banner at the top of the content about the upcoming meeting. It should look a little different from other banners (a blue information tone), have a close button, and not come back once it is closed.
- Keep a way to restore the current page if something goes wrong.
Proposed fix
Ship a small set of shared pieces, each built once:
- A shared lightbox behavior taken from the chart's existing "Enlarge" pattern (
ChartZoom, #681/#686). Charts and images both use it (01). - A shared floated figure: image, short caption, figure-label
Badge, and the lightbox with the key and the long caption. This settles #654's question (02). - A Payload block so editors can add one to posts and events (03).
- The content edit that moves the Milwaukee Street map onto it with a shorter caption (04).
- A closable information banner with an end date, built on
Alertand the existingbannerblock, and coordinated with #758 (05). - A blue information tone for
Alert, as a theme token checked for contrast, coordinated with #769 (06). - The policy text for these patterns in
docs/guidelines/(07). The rest of the documentation ships inside each PR (guard rail 9).
Restoring the page. Posts and events keep versions in Payload (versions: draftVersions(25) on events, draftVersions(50) on posts). Before any live edit, the editor writes on the issue which version is current. For the event (id 12) that is version 34, published 2026-10-31 22:11 Central. That version can be restored from the document's Versions tab in Admin. Versions are capped (events keep the last 25, posts 50), so later saves can push a restore point out: before a live edit, also save a copy of the document's JSON from the signed-in browser and keep it outside the public repo. The VPS also keeps daily, weekly and pre-deploy backups of the database and media (docs/project.md, #148; restore steps in ops/README.md). Every code PR can be reverted through a PR.
What can ship first (deadline Tue 2026-11-10):
- Today, no code: an editor places the existing
bannerblock (toneinfo, gray for now) at the top of the post's body in Admin. It can't be closed yet. Event content can't hold abannerblock today (EVENT_RICH_TEXT_BLOCKSinsrc/platform/richtext/blockConfigs.tsleaves it out), so the event page gets nothing until 05. - By Mon 2026-11-09: 05, the closable banner with an end date. It works in the gray tone, and 06 makes it blue afterwards.
- After that: the figure stack (01 → 02 → 03), then 04, then 06 and 07.
Sub-issues
| Draft | Title | Priority | Size |
|---|---|---|---|
| 01 | feat: Shared lightbox that opens a figure larger (from the chart's Enlarge pattern) | medium | M |
| 02 | feat: Shared floated figure with a figure badge, short caption and the key only in the lightbox | medium | L |
| 03 | feat: "Figure" block for posts and events in Payload | medium | M |
| 04 | feat: Move the Milwaukee Street map onto the figure block with a shorter caption | medium | S |
| 05 | feat: Closable information banner with an end date, for upcoming meetings | high | M |
| 06 | feat: Blue information tone for Alert and banners | medium | M |
| 07 | documentation: Guideline text for floated figures and closable banners | medium | S |
Related (linked, not re-parented)
- #654: image and legend as one component. 02 makes and records the decision (comment draft in 02).
- #758: one banner for articles and site-wide notices. 05 is the narrow first step it builds on (comment draft in 05).
- #769: align tone names and values across
Alert,BadgeandCard. 06 adds a tone and must follow its vocabulary. - #637: I-94 post title, subheading and diagram caption wording. 04 builds on its wording and doesn't repeat it.
- #502: inline road diagrams in event content. These may use the new figure block once it exists.
- Background: #635
Caption, #636Legend, #658 caption and legend overlap, #515 diagram key block, #681/#686 chart enlarge, #764/#796 map block (text 5/8, picture 3/8), #570 epic "Easier-to-read post and event pages".
Out of scope
- An inline badge for figure numbers written inside running body text. The badge appears on the figure itself (caption and lightbox). A Lexical inline badge would be its own issue if wanted.
- A site-wide banner on every page (#758).
- Removing the
diagramKeyblock or theLEGEND_GAPhanging legend. Existing content keeps working. Retiring them is a later issue once the live database shows no other use. - Zoom and pan or a gallery carousel inside the lightbox.
- Changing the map block (#764/#796) or the chart's look.
- Rewriting the post's title or subheading (#637).
Acceptance criteria
- Not done: Every sub-issue is closed, or moved out with a reason.
- Not done: On the live event page and post, the map is small and floated with text beside it on desktop, stacked on phones, and opens in a lightbox with the key. The upcoming-meeting banner shows at the top of the post until it is closed or the meeting has passed.
- Not done: The owner's width question (02) is answered and recorded.
Area
frontend, cms, ux
Priority
priority: high
Generated by Claude Code, opens in a new tab
Issues in this epic
#814 · Closed Nov 7
#815 · Closed Nov 7
#816 · Closed Nov 7
#817 · Closed Nov 7
#818 · Closed Nov 7
#819
#820
#758