Repository navigation
feat(tui): full-screen layout, clearer graphs, layout/nav polish (v1.3.0) - #104
Merged
Merged
Conversation
…3.0) Overhaul the TUI front-end so it behaves like a real full-screen dashboard (btop-style) instead of a fixed inline block. Full-screen: - launch.tsx switches to the alternate screen buffer + hides the cursor on start and restores on exit (finally + process exit/SIGTERM), so the dashboard owns the whole window and leaves scrollback untouched. - root Box fills the terminal height; the layout reflows on resize (subscribes to stdout "resize"); a "terminal too small" guard below 72×18. Layout: - pin the header/tabs/footer with flexShrink 0 and let the body flex + clip (overflow hidden) so content never compresses into garbled/overlapping text; panels stretch to fill the height; least-important section (SLA) clips first on short terminals. Footer truncates instead of wrapping. Graphs: - brailleChart now draws an interpolated, connected line (fills vertical runs between samples) instead of scattered dots — far clearer; LatencyGraph gains a │ y-axis with max / mid / min labels. Nav: ←/→ also cycle views (alongside Tab and 1–4). Verified headlessly at 24 rows (worst case): header/graph/footer clean, no compression; overview + monitors detail render correctly. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reworks the TUI front-end so it behaves like a real full-screen dashboard (btop-style). Addresses the reported issues: doesn't open in a full terminal window, graphs aren't clear, and layout / navigation.
Full-screen (like btop)
launch.tsxswitches to the alternate screen buffer + hides the cursor on start, restoring both on exit (finally+ processexit/SIGTERM) — the dashboard owns the whole window and your scrollback stays untouched. Gated onisTTY(never garbles a pipe)."resize").Layout (no more garble)
Previously, content that didn't fit got compressed into overlapping/garbled text. Now the header/tabs/footer are pinned (
flexShrink: 0) and only the body flexes and clips (overflow: hidden) — content never compresses. Panels stretch to fill the height; the least-important section (SLA) clips first on a short terminal. The footer truncates instead of wrapping to a second line.Clearer graphs
brailleChartnow draws an interpolated, connected line (fills the vertical run between adjacent samples) instead of scattered dots — a continuous curve.LatencyGraphgained a│y-axis with max / mid / min labels.Navigation
←/→now also cycle views (alongsideTaband1–4).Verification
Typecheck + build + mock smoke green. Driven headlessly at 24 rows (the cramped worst case): header, connected graph, NOW/PERCENTILES and footer all render cleanly with no compression; Overview fills the height. Larger terminals only get more room (less clipping). Bumped to 1.3.0.
🤖 Generated with Claude Code