Add the main menu and route keyboard input #9

Closed
opened 2026-11-16 14:39:24 +00:00 by aaron · 0 comments
Owner

Story

As a TrueNAS user, I want to navigate tntop through a main menu so that monitoring fits my workflow.

Context

Parent scope: #7.

src/ui.rs currently sends Escape to the server picker. Follow the parent key mapping while retaining server dialogs.

Upstream: btop 5d03929a.

Acceptance criteria

  • Add Main entries for Options, Help, Servers and Quit. Wire Options and Help as their issues land.
  • Route m/Esc, F2/o, F1/?/h and s as the parent describes, supporting H in Vim mode.
  • Reserve p/P for presets; move app sorting to Left/Right and pool selection to [ and ]. Update visible hints.
  • Give active dialogs and text editors input priority; Escape returns one layer and Ctrl-C exits.
  • Opening menus preserves sessions and selections. Resize and too-small-terminal states keep navigation reachable.
  • Test menu transitions, key conflicts, dialog isolation, server-manager return paths and terminal restoration.

Validation

Run focused tests through mise run test --filter <name> and relevant existing mise format/lint tasks. Record interactive or platform checks required by this issue; report anything untested.

Dependencies

No unfinished prerequisites. Start from the approved parent scope.

## Story As a TrueNAS user, I want to navigate tntop through a main menu so that monitoring fits my workflow. ## Context Parent scope: #7. src/ui.rs currently sends Escape to the server picker. Follow the parent key mapping while retaining server dialogs. Upstream: [btop 5d03929a](https://github.com/aristocratos/btop/tree/5d03929a45e0720a4c8e2d189360ff1eb9ce1731). ## Acceptance criteria - [ ] Add Main entries for Options, Help, Servers and Quit. Wire Options and Help as their issues land. - [ ] Route m/Esc, F2/o, F1/?/h and s as the parent describes, supporting H in Vim mode. - [ ] Reserve p/P for presets; move app sorting to Left/Right and pool selection to [ and ]. Update visible hints. - [ ] Give active dialogs and text editors input priority; Escape returns one layer and Ctrl-C exits. - [ ] Opening menus preserves sessions and selections. Resize and too-small-terminal states keep navigation reachable. - [ ] Test menu transitions, key conflicts, dialog isolation, server-manager return paths and terminal restoration. ## Validation Run focused tests through `mise run test --filter <name>` and relevant existing mise format/lint tasks. Record interactive or platform checks required by this issue; report anything untested. ## Dependencies No unfinished prerequisites. Start from the approved parent scope.
aaron added this to the v0.2.0 milestone 2026-11-16 14:41:41 +00:00
aaron closed this issue 2026-11-16 17:21:14 +00:00
Sign in to join this conversation.
No description provided.