Skip to content

Promote: sortable ledger columns + Errors (24h) column - #897

Merged
Flotapponnier merged 2 commits into
mainfrom
promote/errors-column
Jul 3, 2026
Merged

Flotapponnier merged 2 commits into
mainfrom
promote/errors-column

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

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.

Flotapponnier and others added 2 commits July 3, 2026 22:16
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>
@Flotapponnier
Flotapponnier merged commit e79b41a into main Jul 3, 2026
@Flotapponnier
Flotapponnier deleted the promote/errors-column branch July 17, 2026 14:43
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant