feat(studio): add multi-column sort to evaluation sessions table [ASE-591] - #795
Merged
Conversation
…-591] Enable sorting on 7 columns (test_case_id, started_at, ended_at, latency_ms, status, tokens, cost_total_usd). Input, output, and evaluator score columns remain non-sortable. - SESSION_SORT_FIELD_MAP: column id → API sort field (all 1:1) - getSessionSortParam: converts sorting state to comma-separated sort string; returns undefined when nothing is sorted (preserves default order) - useStudioDataViewState: multiSort: true (shift-click for secondary keys) - sessionParams: sort included when non-empty; sorting.state in useMemo deps Signed-off-by: Nathan Walston <[email protected]>
walston
force-pushed
the
nwalston/ase-591-fe-sort
branch
from
July 20, 2026 20:21
b0c8354 to
1251324
Compare
shanaiabuggy
approved these changes
Jul 20, 2026
Signed-off-by: Nathan Walston <[email protected]>
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughEvaluation session tables now send multi-column sorting to the API, enable sorting on additional fields, and correctly render latency values. ChangesEvaluation session sorting
Sequence Diagram(s)sequenceDiagram
participant EvaluationSessionsTable
participant EvaluationSessionsDataView
participant SessionListAPI
EvaluationSessionsTable->>EvaluationSessionsDataView: Provide multi-sort state
EvaluationSessionsDataView->>SessionListAPI: Request sessions with sort parameter
SessionListAPI-->>EvaluationSessionsDataView: Return sorted sessions
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Contributor
|
walston
enabled auto-merge
July 20, 2026 20:29
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
Wires the FE sort UI to the sessions endpoint added in #780.
Changes
getSessionSortParam: converts TanStack Table sorting state to the comma-separatedsortparam; returnsundefinedwhen nothing is sorted so the API uses its default ordermultiSort: trueonuseStudioDataViewState— enables shift-click for secondary sort keystest_case_id,started_at,ended_at,latency_ms,status,tokens,cost_total_usdinput,output, and evaluator score columns remain non-sortable (out of scope per ticket)sortincluded insessionParamswhen non-empty;dataViewState.sorting.stateadded touseMemodepsDepends on
#780 (BE endpoint) must be merged before this branch is merged. This branch is cut from
nwalston/ase-591-column-sorting— once #780 lands on main, rebase onto main before merging.Closes ASE-591 (FE)
Summary by CodeRabbit
New Features
Bug Fixes