Skip to content

fix(ui): trace-row click navigates to per-trace view#392

Open
emilkallioniemi wants to merge 1 commit into
mattpocock:v1from
emilkallioniemi:fix/trace-row-link-search-param
Open

fix(ui): trace-row click navigates to per-trace view#392
emilkallioniemi wants to merge 1 commit into
mattpocock:v1from
emilkallioniemi:fix/trace-row-link-search-param

Conversation

@emilkallioniemi
Copy link
Copy Markdown

Closes #391

The TraceMenuItem Link accepted a traceIndex prop but never forwarded it to the route's search params. As a result, clicking a trace row left the URL unchanged and the right-hand panel stayed on the eval-level view; users could only reach the per-trace view by manually editing the URL to add ?trace=N.

Forward traceIndex via TanStack Router's function-form search prop so the URL gains ?trace=N on click while preserving other search params (e.g. timestamp). The top "Eval" row has no traceIndex, so trace becomes undefined and is dropped from the URL, returning the view to the eval-level panel. The existing schema already types trace as z.number().optional(), so no schema change is required.

The TraceMenuItem `Link` accepted a `traceIndex` prop but never forwarded
it to the route's search params. As a result, clicking a trace row left
the URL unchanged and the right-hand panel stayed on the eval-level
view; users could only reach the per-trace view by manually editing the
URL to add `?trace=N`.

Forward `traceIndex` via TanStack Router's function-form `search` prop
so the URL gains `?trace=N` on click while preserving other search
params (e.g. `timestamp`). The top "Eval" row has no `traceIndex`, so
`trace` becomes `undefined` and is dropped from the URL, returning the
view to the eval-level panel. The existing schema already types
`trace` as `z.number().optional()`, so no schema change is required.
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 21, 2026

🦋 Changeset detected

Latest commit: f0fc8fa

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 21, 2026

@emilkallioniemi is attempting to deploy a commit to the Skill Recordings Team on Vercel.

A member of the Team first needs to authorize it.

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