Support panel visibility and alternate layouts #19

Closed
opened 2026-11-16 14:39:26 +00:00 by aaron · 1 comment
Owner

Story

As a TrueNAS user, I want to choose the visible panels and their positions so that monitoring fits my workflow.

Context

Parent scope: #7.

Replace the fixed layout in src/ui/view.rs. Keep storage within Memory/ZFS.

Upstream: btop 5d03929a.

Acceptance criteria

  • Toggle CPU, Memory/ZFS, Network and Apps with keys 1-4 and corresponding settings.
  • Support CPU top/bottom, Apps left/right and Memory above/below Network.
  • Allocate space for every visible-panel combination, including one or no panels, without losing navigation.
  • Resize safely without overlap, underflow or out-of-bounds drawing.
  • Preserve sessions, histories and selected server when changing layouts.
  • Test panel combinations and alternate positions at compact and larger terminal sizes.

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 choose the visible panels and their positions so that monitoring fits my workflow. ## Context Parent scope: #7. Replace the fixed layout in src/ui/view.rs. Keep storage within Memory/ZFS. Upstream: [btop 5d03929a](https://github.com/aristocratos/btop/tree/5d03929a45e0720a4c8e2d189360ff1eb9ce1731). ## Acceptance criteria - [x] Toggle CPU, Memory/ZFS, Network and Apps with keys 1-4 and corresponding settings. - [x] Support CPU top/bottom, Apps left/right and Memory above/below Network. - [x] Allocate space for every visible-panel combination, including one or no panels, without losing navigation. - [x] Resize safely without overlap, underflow or out-of-bounds drawing. - [x] Preserve sessions, histories and selected server when changing layouts. - [x] Test panel combinations and alternate positions at compact and larger terminal sizes. ## 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
Author
Owner

Verified against pushed main at 1a17d5f520. Completing commit: e60f7c6f43.

Checked layout allocation and panel-toggle preference routing in src/ui/layout.rs. Tests cover every visibility/position combination, tiny and large areas, no overlap, and retained sessions. Navigation also passes with every panel hidden.

Fresh checks: all 103 Rust/CLI tests, all lint tasks, all-target/all-feature compilation, build, and all 3 Unix installer tests passed on macOS. The owner approved the live UI and panel-border controls. Final cross-platform packaged-binary checks remain in #7.

Closing after verification; the push stopped automatic issue processing at the dependency on #10.

Verified against pushed main at 1a17d5f520b4aee3f38250931223df054858f6fb. Completing commit: e60f7c6f43145fdd0b3358f21e925129c0b178e6. Checked layout allocation and panel-toggle preference routing in src/ui/layout.rs. Tests cover every visibility/position combination, tiny and large areas, no overlap, and retained sessions. Navigation also passes with every panel hidden. Fresh checks: all 103 Rust/CLI tests, all lint tasks, all-target/all-feature compilation, build, and all 3 Unix installer tests passed on macOS. The owner approved the live UI and panel-border controls. Final cross-platform packaged-binary checks remain in #7. Closing after verification; the push stopped automatic issue processing at the dependency on #10.
aaron closed this issue 2026-11-16 17:29:34 +00:00
Sign in to join this conversation.
No description provided.