diff --git a/.changeset/0000-fix-trace-row-link-search-param.md b/.changeset/0000-fix-trace-row-link-search-param.md new file mode 100644 index 00000000..7290be94 --- /dev/null +++ b/.changeset/0000-fix-trace-row-link-search-param.md @@ -0,0 +1,5 @@ +--- +"evalite": patch +--- + +Fix: clicking a trace row in the eval detail view now navigates to the per-trace panel. Previously the row's `Link` omitted `search: { trace }`, so the URL never changed and the right panel stayed on the eval-level view. Users had to manually append `?trace=N` to the URL as a workaround. diff --git a/apps/evalite-ui/app/routes/suite.$name.eval.$evalIndex.tsx b/apps/evalite-ui/app/routes/suite.$name.eval.$evalIndex.tsx index d298dedc..f242ddc5 100644 --- a/apps/evalite-ui/app/routes/suite.$name.eval.$evalIndex.tsx +++ b/apps/evalite-ui/app/routes/suite.$name.eval.$evalIndex.tsx @@ -409,6 +409,10 @@ const TraceMenuItem = (props: { name: props.name, evalIndex: props.evalIndex, }} + search={(prev) => ({ + ...prev, + trace: props.traceIndex, + })} className={ "px-3 py-2 hover:bg-foreground/10 transition-colors border-l-4" }