Apply refresh, background-update and logging options #23

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

Story

As a TrueNAS user, I want to control refresh behavior and diagnostics so that monitoring fits my workflow.

Context

Parent scope: #7.

update_ms currently affects redraw and collection startup. Preserve the API collection floor; do not promise more frequent data than the server provides.

Upstream: btop 5d03929a.

Acceptance criteria

  • Apply update_ms live from Options and +/- within the existing 100..86400000 ms bounds.
  • Keep redraw cadence and API minimum interval explicit; update active collection without duplicate tasks or lost history.
  • Allow background_update to stop dashboard painting behind menus while data collection continues.
  • Expose supported log levels without printing diagnostics into the active TUI; document their destination.
  • Restore logging state and terminal state on exit/errors.
  • Test bounds, live intervals, collector lifecycle, menu redraw policy and logging.

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 #8, #9, #10.

## Story As a TrueNAS user, I want to control refresh behavior and diagnostics so that monitoring fits my workflow. ## Context Parent scope: #7. update_ms currently affects redraw and collection startup. Preserve the API collection floor; do not promise more frequent data than the server provides. Upstream: [btop 5d03929a](https://github.com/aristocratos/btop/tree/5d03929a45e0720a4c8e2d189360ff1eb9ce1731). ## Acceptance criteria - [x] Apply update_ms live from Options and +/- within the existing 100..86400000 ms bounds. - [x] Keep redraw cadence and API minimum interval explicit; update active collection without duplicate tasks or lost history. - [x] Allow background_update to stop dashboard painting behind menus while data collection continues. - [x] Expose supported log levels without printing diagnostics into the active TUI; document their destination. - [x] Restore logging state and terminal state on exit/errors. - [x] Test bounds, live intervals, collector lifecycle, menu redraw policy and logging. ## 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 #8, #9, #10.
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: 2ef15a0e07.

Checked live interval updates through the existing session watch channel, the 2000 ms collection floor, retained collector history, background painting and logging guards. Collector lifecycle, bounds, background and log-restoration tests pass; earlier PTY checks covered interval bounds and terminal restoration.

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: 2ef15a0e075d70bc403ded9fbb3b7bd7218282e9. Checked live interval updates through the existing session watch channel, the 2000 ms collection floor, retained collector history, background painting and logging guards. Collector lifecycle, bounds, background and log-restoration tests pass; earlier PTY checks covered interval bounds and terminal restoration. 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:45 +00:00
Sign in to join this conversation.
No description provided.