Skip to content

Full-page map: month chart fits the bar; legend and month labels (#197) - #198

Merged
noneck merged 1 commit into
masterfrom
fix/month-chart-height
Nov 25, 2026
Merged

noneck merged 1 commit into
masterfrom
fix/month-chart-height

Conversation

@noneck

@noneck noneck commented Nov 25, 2026

Copy link
Copy Markdown
Member

Closes #197. Follow-up to #196 (#194), from Noel's review of the live map.

What changed

  • Chart cut off: the svg took its default 150px height and ran past the bar (about 127px of room). It now takes the bar's height (flex: 1 1 0; height: 0, one grid row) and redraws from a ResizeObserver, which also catches the side panel opening or closing.
  • Legend: lists only the agency groups in the results; with one group it hides and the chart takes its column.
  • Month labels: a label that would overlap the one before it is skipped.
  • Focus: a redraw keeps keyboard focus on the selected month (the legend hiding triggers a redraw; without this, Enter on a focused month could be lost).
  • WHATS-CHANGED.md entry, dated 2026-11-24; page re-rendered; assets re-stamped.

Tests run

  • cd v2/pipeline && uv run pytest: 271 passed (includes the node suite).
  • v2/tests-browser: 23 passed, twice in a row.
  • Headless check at 940, 1280 and 1490 px wide: chart fits the bar; one agency hides the legend; all agencies show 9; no labels overlap; no page errors.

🤖 Generated with Claude Code

The chart took the svg's default 150px height and ran off the window; it now takes the
height the bar leaves it and redraws when its box changes. The legend lists only the
agency groups in the results and hides for one. Month labels that would overlap are
skipped. Keyboard focus stays on the selected month through a redraw.

Closes #197

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@noneck
noneck merged commit eb70371 into master Nov 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Full-page map: month chart cut off, legend and month labels

1 participant