Repository navigation
feat: the mouse works on every screen, not only the list - #48
Merged
Merged
Conversation
A click selects the row under it and a second opens it in the grouped views, the pipeline, a job's steps and the file list; a click on a pane focuses it; the top row of a PR, pipeline or job goes back; the wheel scrolls the pane under the pointer and stops where the keys stop. Each frame records which item its rows show, so a click is resolved against what was drawn. Before, the pipeline and job screens passed clicks to the list beneath them, Deploys and Merged selected the wrong row, and a click in the preview pane selected a row. Every click presses the key that already does the thing; prompts and typed lines still take keys only. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…inal back ratatui's panic hook leaves raw mode and the alternate screen only, so a crash left focus and mouse reporting and the keyboard flags on, and the shell printed an escape sequence for every move of the pointer. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The mouse already switched tabs, selected list rows and scrolled. It stopped at the plain list: the pipeline and job screens passed clicks to the list beneath them, Deploys and Merged selected the wrong row, Armed ignored clicks, and nothing went back.
What a click does now
Every click presses the key that already does the thing, so nothing is mouse-only and nothing new is drawn (
design/andtests/golden/are untouched).EnterEnter(the pipeline in Deploys)h/l); top row isqFfile listEnterqEnterqEnterConfirm prompts, the command line, a filter and
?still take keys only, so a stray click cannot answer or cancel a merge.How
Each frame records which item its rows show (
App::hits), written by the code that lays the rows out, so a click is resolved against what was drawn. That replaces the copy of the list's layout the mouse kept.The second commit is a separate fix: a panic left mouse reporting on, because ratatui's hook only leaves raw mode and the alternate screen.
Proof
make checkpasses: fmt, clippy, tests, and the budgets (code 11,375 of 11,500).crates/pullpen-ui/src/app/mouse/tests.rs, each named in the table added towiki/Keys.md. The two tests that were there gained a draw before the click, since rows now come from the frame; their assertions are unchanged.xprompt leaving it foryto answer.PULLPEN_TEST_PANIC=1in a pseudo-terminal:?1004l ?1006l ?1015l ?1003l ?1002l ?1000lare written before?1049l, exit 101.Not verified: a real mouse in a real terminal emulator, and Windows Terminal.
🤖 Generated with Claude Code