Skip to content

Align activity TUI navigation help#1056

Closed
pfleidi wants to merge 10 commits intomainfrom
feat/advanced-entire-activity-key-bindings
Closed

Align activity TUI navigation help#1056
pfleidi wants to merge 10 commits intomainfrom
feat/advanced-entire-activity-key-bindings

Conversation

@pfleidi
Copy link
Copy Markdown
Contributor

@pfleidi pfleidi commented Apr 27, 2026

What

  • Aligns entire activity keyboard behavior with the repo's newer TUI navigation vocabulary while keeping it single-screen.
  • Documents both arrow and vim-style navigation controls in the footer: up/down/j/k scrolling, home/end/g/G top/bottom, and q quit.
  • Addresses PR feedback around shared TUI key constants and footer scroll-percentage alignment.
image

How

  • Adds home/end and g/G top/bottom navigation for the activity viewport.
  • Keeps q, ctrl+c, and esc quit behavior, and avoids adding h/l actions where activity has no back/open mode.
  • Moves the shared esc key constant out of dispatch-specific code.
  • Computes the footer percentage gap dynamically with rendered widths so the percentage stays aligned.
  • Adds focused Bubble Tea model tests for key handling, footer help text, and footer width.

Verification

  • mise run build
  • mise run check
  • mise run lint

Note

Low Risk
Low risk: changes are limited to TUI key handling/footer rendering plus new unit tests, with no impact on backend logic or data handling.

Overview
Updates the activity TUI to support home/end and g/G for jumping to the top/bottom of the viewport while preserving quit behavior (q, ctrl+c, esc).

Refreshes the footer help text to document arrow + vim-style navigation and reworks scroll-percent alignment using rendered widths so it fits the terminal width.

Moves the shared esc key string into a new tui_keys.go constant and adds focused Bubble Tea tests covering key handling and footer rendering/width.

Reviewed by Cursor Bugbot for commit f042aa9. Configure here.

pfleidi added 3 commits April 27, 2026 15:14
Entire-Checkpoint: 554522808ee9
Entire-Checkpoint: 45e8a336c18f
Drop the redundant 'h does not quit' case; vim 'k' already exercises
the non-quit scroll path. Trim the footer hidden-controls assertion
to the bindings that actually exist (j/k, g/G). Rename wantTop to
gotoTop so the field name reflects its setup role rather than the
expected outcome.

Entire-Checkpoint: 867ea7a38ed5
Copilot AI review requested due to automatic review settings April 27, 2026 22:33
@pfleidi pfleidi requested a review from a team as a code owner April 27, 2026 22:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the activity TUI’s navigation/quit key handling and footer help to match the repo’s newer TUI navigation vocabulary, and adds focused unit tests to lock in the behavior.

Changes:

  • Add home/end and hidden g/G top/bottom navigation handling in the activity viewport, while keeping q / esc / ctrl+c quit behavior.
  • Update the footer help text to document only visible controls (arrow scrolling, home/end, q quit).
  • Add Bubble Tea model tests covering key handling and footer help content.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
cmd/entire/cli/activity_tui.go Updates key handling for top/bottom navigation and refreshes the footer help text.
cmd/entire/cli/activity_tui_test.go Adds unit tests for activity TUI key handling and footer help visibility rules.

Comment thread cmd/entire/cli/activity_tui.go
Comment thread cmd/entire/cli/activity_tui.go Outdated
Entire-Checkpoint: d2bc5c1d00be
@pfleidi
Copy link
Copy Markdown
Contributor Author

pfleidi commented Apr 27, 2026

Bugbot run

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit f042aa9. Configure here.

@pfleidi pfleidi requested review from Soph and Copilot April 27, 2026 23:17
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Comment thread cmd/entire/cli/activity_tui.go Outdated
Comment thread cmd/entire/cli/activity_tui_test.go Outdated
@gtrrz-victor gtrrz-victor enabled auto-merge April 28, 2026 09:42
@Soph
Copy link
Copy Markdown
Collaborator

Soph commented Apr 28, 2026

did some refactoring and introduced bindings, was easier to redo then: #1064

Sorry!

@Soph Soph closed this Apr 28, 2026
auto-merge was automatically disabled April 28, 2026 13:05

Pull request was closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants