Repository navigation
fix(tui): keep best-value highlights aligned when reversed - #215
Conversation
Track highlighted maxima by period key instead of display index so reversed aggregate rows retain the correct styling. Add a rendered TUI regression test for issue Piebald-AI#134. Signed-off-by: jimyag <git@jimyag.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe aggregate statistics table now tracks best metrics by period key rather than positional row index. Rendering compares each row’s period to the selected best period, and a reversed-sort TUI test verifies correct highlighting. ChangesAggregate highlighting
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Neato 👌 |
Summary
Fix the aggregate-table best-value highlights so they stay attached to the correct period when sort order is reversed.
Key changes
Validation
cargo build --quietcargo test --quiet(399 passed)cargo clippy --quiet -- -D warningscargo doc --quietcargo fmt --all --quietgit diff --checkCloses #134
Summary by CodeRabbit
Bug Fixes
Tests