Apply and cycle presets from the UI and CLI #21

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

Story

As a TrueNAS user, I want to switch saved monitoring layouts quickly so that monitoring fits my workflow.

Context

Parent scope: #7.

Use the preset parser, graph modes and panel layout. Preserve pool selection through its bracket shortcuts.

Upstream: btop 5d03929a.

Acceptance criteria

  • Cycle forward/back with p/P and corresponding header controls, with mouse actions when available.
  • Add --preset startup selection and clear errors for invalid choices.
  • Apply visibility, positions and graph modes together without restarting sessions or dropping history.
  • Support Off/Default/Custom/All preset-disabling policy and skip disabled choices safely.
  • Show the active preset or manual-layout indication after direct layout edits.
  • Test wrapping, disabled combinations, startup selection and repeated application.

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

Blocked by #9, #18, #19, #20.

## Story As a TrueNAS user, I want to switch saved monitoring layouts quickly so that monitoring fits my workflow. ## Context Parent scope: #7. Use the preset parser, graph modes and panel layout. Preserve pool selection through its bracket shortcuts. Upstream: [btop 5d03929a](https://github.com/aristocratos/btop/tree/5d03929a45e0720a4c8e2d189360ff1eb9ce1731). ## Acceptance criteria - [x] Cycle forward/back with p/P and corresponding header controls, with mouse actions when available. - [x] Add --preset startup selection and clear errors for invalid choices. - [x] Apply visibility, positions and graph modes together without restarting sessions or dropping history. - [x] Support Off/Default/Custom/All preset-disabling policy and skip disabled choices safely. - [x] Show the active preset or manual-layout indication after direct layout edits. - [x] Test wrapping, disabled combinations, startup selection and repeated application. ## 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 Blocked by #9, #18, #19, #20.
aaron added this to the v0.2.0 milestone 2026-11-16 14:41:42 +00:00
Author
Owner

Verified against pushed main at 1a17d5f520. Completing commit: 2ccef3cc9b.

Checked src/ui/preset.rs, CLI startup selection and header controls. Tests cover forward/back wrapping, all disabling policies, duplicate layouts, manual-layout state, invalid startup selection and retained sessions/history.

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: 2ccef3cc9b4a63213f3d3378cdcc76dffe787c49. Checked src/ui/preset.rs, CLI startup selection and header controls. Tests cover forward/back wrapping, all disabling policies, duplicate layouts, manual-layout state, invalid startup selection and retained sessions/history. 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:40 +00:00
Sign in to join this conversation.
No description provided.