Add block and TTY graph rendering #18

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

Story

As a TrueNAS user, I want to choose graph symbols supported by my font so that monitoring fits my workflow.

Context

Parent scope: #7.

src/ui/view.rs currently renders braille only. Presets need a global graph style and per-panel overrides, including sparklines.

Upstream: btop 5d03929a.

Acceptance criteria

  • Render braille, block and TTY graphs with global defaults and per-panel default/style overrides.
  • Preserve gradients, inversion and right-aligned history.
  • Respect each symbol mode's sample resolution so graphs retain truthful scales/history.
  • Expose graph choices in Options when available and make them usable by presets.
  • Handle empty data, missing samples and zero/small drawing areas safely.
  • Test every style, inheritance, inversion, capacity and switching without history loss.

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 graph symbols supported by my font so that monitoring fits my workflow. ## Context Parent scope: #7. src/ui/view.rs currently renders braille only. Presets need a global graph style and per-panel overrides, including sparklines. Upstream: [btop 5d03929a](https://github.com/aristocratos/btop/tree/5d03929a45e0720a4c8e2d189360ff1eb9ce1731). ## Acceptance criteria - [x] Render braille, block and TTY graphs with global defaults and per-panel default/style overrides. - [x] Preserve gradients, inversion and right-aligned history. - [x] Respect each symbol mode's sample resolution so graphs retain truthful scales/history. - [x] Expose graph choices in Options when available and make them usable by presets. - [x] Handle empty data, missing samples and zero/small drawing areas safely. - [x] Test every style, inheritance, inversion, capacity and switching without history loss. ## 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:42 +00:00
Author
Owner

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

Checked shared graph and sparkline rendering in src/ui/view.rs and graph choices in Options. Tests cover braille/block/TTY, inheritance, inversion, sample capacity, missing samples, empty areas and retained 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: bc0458bab99787e13d4c3eba6d9f976303ed6ce8. Checked shared graph and sparkline rendering in src/ui/view.rs and graph choices in Options. Tests cover braille/block/TTY, inheritance, inversion, sample capacity, missing samples, empty areas and retained 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:20 +00:00
Sign in to join this conversation.
No description provided.