Skip to content

Highlight changelog row under the mouse cursor#50

Merged
nedtwigg merged 1 commit intomainfrom
changelog-hover-feedback
May 6, 2026
Merged

Highlight changelog row under the mouse cursor#50
nedtwigg merged 1 commit intomainfrom
changelog-hover-feedback

Conversation

@nedtwigg
Copy link
Copy Markdown
Member

@nedtwigg nedtwigg commented May 6, 2026

Summary

  • The changelog TUI in the playground already enables motion tracking (\x1b[?1003h), but the handler was dropping motion events. This adds a hover indicator so the user can see where a click would land.
  • Selected row keeps its bold cyan . The hovered (non-selected) row gets a thinner cyan arrow.
  • Cursor's last position is re-applied at the start of every render, so wheel-scrolls and keyboard jumps refresh the highlight to whatever release is now under the cursor.

Test plan

  • Open the playground, focus the changelog pane, move the mouse over the version list — confirm the row under the cursor shows .
  • Wheel-scroll while hovering the list — confirm the highlight stays on whichever release is under the cursor (not pinned to the previous release).
  • Use j / k to keyboard-navigate while the cursor is parked over the list — confirm the highlight tracks the new layout.
  • Move the cursor over the detail pane — confirm no row is highlighted on the left.
  • Click a hovered row — confirm it becomes the selected row (bold ).

🤖 Generated with Claude Code

Tracks the cursor's last position from every mouse event and re-syncs
the hover index at the start of each render, so wheel-scrolls and
keyboard jumps move the highlight to whatever release is now under the
cursor without needing a follow-up motion event.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying mouseterm with  Cloudflare Pages  Cloudflare Pages

Latest commit: b80a398
Status: ✅  Deploy successful!
Preview URL: https://12be5062.mouseterm.pages.dev
Branch Preview URL: https://changelog-hover-feedback.mouseterm.pages.dev

View logs

@nedtwigg nedtwigg merged commit 6341dac into main May 6, 2026
3 checks passed
@nedtwigg nedtwigg deleted the changelog-hover-feedback branch May 6, 2026 15:49
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.

1 participant