feat(tui): improve header, op box layout, and fix RPM freeze bug - #31
Merged
Conversation
- Add styled title block with wider padding (3 spaces each side) - Add state-coloured status box (RUNNING/DONE/ERROR) in header - Dynamic progress bar width (≥50% of remaining space), centered time text - Module sections wrapped in rounded border boxes with 'Module:' prefix - Op boxes: three-column layout (Rate|Calls|Timing) with bold headers, aligned values, 'Operation:' prefix, blank line before columns - Fix: freeze observedRPM when trafficDoneMsg received so actual rate stops declining after the test ends - Fix: nil-pointer guard when an op has not yet received any calls Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Rename inner ok to opOK to avoid shadowing the outer ok from the modStats lookup. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.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.
Summary
A polish pass on the interactive TUI reporter.
Header
test status RUNNING/DONE/ERRORon one line (green/yellow/red border + text)Module sections
Module:prefix on the headerOperation boxes
Rateheader bold-blue; configured rate appended in plain whiteavg:,min:,max:)Operation:Bug fixes
observedRPMnow receives a frozen elapsed duration whentrafficDoneMsgis received — the actual rate no longer declines after the test endsrenderOpnow safely skips stats for ops that haven't received any calls yet