Lab note #87: Ballot guide: candidates as tables

The ask

Replace the candidate cards on the ballot guide with something easier to read.

What changed

  • The candidates page is now one table per level (Federal, State, County, Judicial) with three columns: Race, Candidates and Who votes.
  • Each candidate sits on its own line with party preference, ballot designation, an incumbent tag and the amount raised. Judicial rows say they are a yes or no vote on each justice.
  • On phones each row stacks into a labeled block, with no sideways scrolling.

How

Claude edited the CA Ballot Portal plugin (v0.5.0) and deployed it with the portal’s deploy script over SSH and WP-CLI, then checked desktop and phone widths in a headless browser.

What worked / what didn’t

  • Didn’t, at first: race names would not wrap on phones because a shared table rule set no-wrap, which pushed the page wider than the screen. A more specific rule fixed it.
  • Staging only so far; production gets it on the next deploy.

Change record

Harnessclaude
Date2026-10-18 22:32
Latest snapshot20261018-223152
Undo this sessionops/rollback.sh --git 730eed1

Commits

  • 70a4ee4 plugin: ca-ballot-portal db75572 candidates table mobile wrap
  • 3f064f7 plugin: ca-ballot-portal 57f5ab1 v0.5.0 candidates table
  • 778451b plugin: ca-ballot-portal 97697d1 v0.4.1 production host allow-list
  • b008551 scoreboard: refresh after Lab note #86