Skip to content

Make visible controls do what they look like - #181

Merged
sbc1-code merged 1 commit into
mainfrom
claude/phase2-working-controls
Nov 8, 2026
Merged

sbc1-code merged 1 commit into
mainfrom
claude/phase2-working-controls

Conversation

@sbc1-code

Copy link
Copy Markdown
Owner

Phase 2 of the BorderPulse cleanup plan: every visible control does what it looks like.

  • View trends (crossing card menu) now opens the hourly pattern section (#trends) and scrolls there. Before, it reloaded the same page at the top. The menu skips its focus return for this one link so the page doesn't jump back up.
  • Pages start at the top. New ScrollToTop runs only on a path change. Back/forward keeps browser restoration, #hash links scroll to their target, and query-only changes (lane, map selection) keep position.
  • Stats and exchange-rate tiles no longer lift on hover, since they have no action.

Verified: npm test passes, including test:routes (506 browser navigations, map scroll-restore checks). Build OK (entry 61.86 KB of 62 KB). Headless Chrome at 500px: View trends lands on the section (80px from top); a deep-scrolled crossing page opens Best time at scroll 0. On the previous build, View trends did not move the page.

Not verified: Back-button position against the previous build; physical phone.

Not in this PR: layout simplification (Phase 3), Spanish/accessibility polish (Phase 4).


Generated by Claude Code

View trends now opens the hourly pattern section (#trends) instead of
reloading the same page; the card menu skips its focus return for that
link so the page does not jump back. New pages start at the top via a
path-change-only ScrollToTop that leaves Back/forward, #hash links and
query changes alone. Stats and exchange-rate tiles drop hover lift.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JB1Z5HSRuMsFpDeoEX6spM
@sbc1-code
sbc1-code merged commit 3dff042 into main Nov 8, 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.

2 participants