Add Memory and ZFS display options #25

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

Story

As a TrueNAS user, I want to choose how memory and ARC are displayed so that monitoring fits my workflow.

Context

Parent scope: #7.

Use existing physical total/available, ARC-size and ARC-free data. ARC overlaps RAM; do not sum overlapping categories or invent missing readings.

Upstream: btop 5d03929a.

Acceptance criteria

  • Switch memory values between graphs and meters without changing their meaning.
  • Show/hide storage and use the available memory-panel space.
  • Provide the applicable ARC/cache presentation choice only where current fields support a truthful calculation; explain overlap.
  • Keep missing values unavailable rather than zero.
  • Apply and persist changes through shared preferences.
  • Test memory calculations, ARC overlap, graph/meter switching, storage visibility and missing fields.

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

## Story As a TrueNAS user, I want to choose how memory and ARC are displayed so that monitoring fits my workflow. ## Context Parent scope: #7. Use existing physical total/available, ARC-size and ARC-free data. ARC overlaps RAM; do not sum overlapping categories or invent missing readings. Upstream: [btop 5d03929a](https://github.com/aristocratos/btop/tree/5d03929a45e0720a4c8e2d189360ff1eb9ce1731). ## Acceptance criteria - [x] Switch memory values between graphs and meters without changing their meaning. - [x] Show/hide storage and use the available memory-panel space. - [x] Provide the applicable ARC/cache presentation choice only where current fields support a truthful calculation; explain overlap. - [x] Keep missing values unavailable rather than zero. - [x] Apply and persist changes through shared preferences. - [x] Test memory calculations, ARC overlap, graph/meter switching, storage visibility and missing fields. ## 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 #10, #18.
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: f120d74795.

Checked graph/meter rendering and storage visibility in src/ui/view/memory.rs. Used remains total minus available; ARC/cache values remain separate overlapping readings and missing ARC-free stays unavailable. Calculation, visibility and missing-field tests pass.

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: f120d747955358eb37a1e2a35468abad7adc2fee. Checked graph/meter rendering and storage visibility in src/ui/view/memory.rs. Used remains total minus available; ARC/cache values remain separate overlapping readings and missing ARC-free stays unavailable. Calculation, visibility and missing-field tests pass. 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:51 +00:00
Sign in to join this conversation.
No description provided.