Repository navigation
Promote: sortable ledger columns + Errors (24h) column - #897
Merged
Merged
Conversation
Numeric column headers in LedgerTable now toggle the table's sort on click. First click on a header descends on its value, second click toggles to ascending. An up/down chevron next to the active header's label marks the direction; hover lifts ink-muted to ink so the headers read as interactive. Sortable columns: Name (A-Z), every customCols entry (per-index key), Value (when a panel tab is active), p50/p90/p99/Mean, Delta field, Success, and Slot delta p50 (when hasSlots). Trend and Number columns stay static. The default sort (sortKey null) preserves the exact prior comparator so OG renders, share cards, and snapshot tests keep matching. A non-null sortKey routes through a new pickSortValue helper instead. Missing values land at +/-Infinity so empty cells consistently sort to the bottom regardless of direction.
Co-authored-by: Florent Tapponnier <contact@mobula.io>
bakabhai993
pushed a commit
to bakabhai993/OpenChainBench
that referenced
this pull request
Sep 12, 2026
* feat(ledger): clickable column headers to sort leaderboard Numeric column headers in LedgerTable now toggle the table's sort on click. First click on a header descends on its value, second click toggles to ascending. An up/down chevron next to the active header's label marks the direction; hover lifts ink-muted to ink so the headers read as interactive. Sortable columns: Name (A-Z), every customCols entry (per-index key), Value (when a panel tab is active), p50/p90/p99/Mean, Delta field, Success, and Slot delta p50 (when hasSlots). Trend and Number columns stay static. The default sort (sortKey null) preserves the exact prior comparator so OG renders, share cards, and snapshot tests keep matching. A non-null sortKey routes through a new pickSortValue helper instead. Missing values land at +/-Infinity so empty cells consistently sort to the bottom regardless of direction. * add sortable Errors (24h) column to ledger table (ChainBench#896) Co-authored-by: Florent Tapponnier <contact@openchainbench.com> --------- Co-authored-by: Florent Tapponnier <contact@openchainbench.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.
Cherry-picks #770/62295ac (clickable column sorting, on staging since June) and #896 (Errors 24h column: absolute failed-probe count next to Success, derived from sampleSize x (1 - successRate)). The errors column depends on the sort machinery, so both promote together.