Skip to content

[OPIK-4449] [FE] Fix eval suite Assertions tab and Go to traces button#5752

Open
awkoy wants to merge 3 commits intomainfrom
awkoy/OPIK-4449-eval-suites-go-to-traces-fix
Open

[OPIK-4449] [FE] Fix eval suite Assertions tab and Go to traces button#5752
awkoy wants to merge 3 commits intomainfrom
awkoy/OPIK-4449-eval-suites-go-to-traces-fix

Conversation

@awkoy
Copy link
Contributor

@awkoy awkoy commented Mar 19, 2026

Details

Fix two eval suite issues on CompareExperimentsPage:

  1. Assertions tab not showing: After BE PR [OPIK-4942] [BE] Option E — Separate assertion_results table #5716 changed the API response from assertion_aggregations to assertion_scores with shape {name, value}, the FE silently dropped the data. Renamed FE types/fields to match the new BE contract.
  2. Go to traces button: Updated sidebar button from a full Button to a compact Tag with "Go to traces" label for consistency.

Change checklist

  • User facing
  • Documentation update

Issues

  • OPIK-4449

AI-WATERMARK

AI-WATERMARK: yes

  • If yes:
    • Tools: Claude Code
    • Model(s): Claude Opus 4.6
    • Scope: Implementation of type renames and field mapping
    • Human verification: TypeScript type check (tsc --noEmit), test suite, code review agents

Testing

  • cd apps/opik-frontend && npx tsc --noEmit — passes with zero errors
  • cd apps/opik-frontend && npm test -- --run — all tests pass (pre-existing failures in ls-migrations/engine.test.ts unrelated)
  • Grep confirms zero remaining references to old AssertionAggregation/assertion_aggregations names

Documentation

awkoy added 2 commits March 19, 2026 18:28
Replace Tag with Button+TooltipWrapper for the trace link in
ExperimentItemContent, and guard openTrace with isFunction check
to prevent crashes when the callback is undefined.
Rename FE types/fields from assertion_aggregations to assertion_scores
to match the BE API response shape after PR #5716. The BE now serves
per-assertion average pass rates as {name, value} instead of
{name, pass_rate, passed_count, total_count}.
@awkoy awkoy requested a review from a team as a code owner March 19, 2026 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant