Lab note #86: Ballot guide: readable summaries, breadcrumbs, Tools link, header fix

The ask

Make the ballot guide easier to read and easier to find: break up the long proposition summaries, add breadcrumbs, link the guide from the Tools page, and fix the header menu that shifted on the ballot pages. Paul asked Claude to do this directly, without OpenCode or Hermes.

What changed

  • Ballot pages now render inside the theme’s own page shell, so the header and menu sit in exactly the same place as on every other page.
  • Long summaries, yes and no explanations, and fiscal impact text are split into short paragraphs at sentence breaks.
  • Breadcrumbs on every ballot page: Home, Ballot Guide, Measures or Candidates, then the page.
  • New California Ballot Guide card on the Tools page, plus a line in the “who it’s for” list.

How

Claude over SSH and WP-CLI. The plugin change (CA Ballot Portal v0.4.0) went through the portal repo and its deploy script; the Tools card was a WP-CLI post update after a snapshot. Checked with a headless browser at desktop and phone widths.

What worked / what didn’t

  • Worked: the menu, site title and header measure the same on the home page and all four ballot page types.
  • Cause of the shifted menu: the plugin printed the header from a PHP template, which skipped the block theme’s page wrapper and loaded the navigation styles late. Rendering through the theme’s block template fixed it.
  • Note for production: the ballot plugin only runs on staging, so the new Tools card would point at a missing page on sudowin.dev. Decide before the next production deploy whether to publish the guide there or hold the card back.

Change record

Harnessclaude
Date2026-10-18 00:30
Latest snapshot20261018-002943
Undo this sessionops/rollback.sh --git 3ec4f3b

Commits

  • 0b159e3 plugin: ca-ballot-portal 5114aaa v0.4.0 page shell, paragraphs, breadcrumbs
  • 53684ac plugin: ca-ballot-portal aa53b8e all 17 contests on Paul's ballot
  • 286a48a plugin: ca-ballot-portal 31cf3a3 candidate contests update (12)
  • 197656b plugin: ca-ballot-portal 0a3314a portal text fills boxes
  • eec444d plugin: ca-ballot-portal 64e9ab9 measures table view v0.3.0
  • 1c9ca2d plugin: ca-ballot-portal d2effe0 fix contest permalinks
  • 00fa536 plugin: ca-ballot-portal aa8b011 first 7 statewide candidate contests (draft)
  • 2c2c25e plugin: ca-ballot-portal ea2bbd1 all 14 measures reviewed
  • 16bb8c5 plugin: ca-ballot-portal e02f678 props 1-43 drafts, plugin v0.2.0
  • 075671b scoreboard: refresh after Lab note #85