Skip to content

fix(frontend): show correct breadcrumb label for SDK evals#4619

Open
unfitcoder101 wants to merge 4 commits into
Agenta-AI:mainfrom
unfitcoder101:fix/sdk-eval-breadcrumb-label
Open

fix(frontend): show correct breadcrumb label for SDK evals#4619
unfitcoder101 wants to merge 4 commits into
Agenta-AI:mainfrom
unfitcoder101:fix/sdk-eval-breadcrumb-label

Conversation

@unfitcoder101

@unfitcoder101 unfitcoder101 commented Jun 10, 2026

Copy link
Copy Markdown

Fixes #4549

Summary

The typeMap in EvalRunDetails/components/Page.tsx was missing an
entry for the sdk evaluation type, causing SDK evals to always show
"Auto Evals" in breadcrumbs instead of "SDK Evals".

Added sdk: {label: "SDK Evals", kind: "sdk"} to fix the fallback.

Testing

Verified locally

Traced the bug to the missing sdk key in typeMap. Fix confirmed via grep.

Added or updated tests

N/A

QA follow-up

Verify breadcrumbs show "SDK Evals" when viewing an SDK evaluation run.

Demo

https://www.loom.com/share/ffc00463fcad4161abaad61dde0814f3

Checklist

  • I have included a video or screen recording for UI changes
  • I have signed the CLA

@github-actions

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

✅ Thanks @unfitcoder101! This PR now meets the contribution requirements and has been reopened. A maintainer will review it soon.

@github-actions github-actions Bot added the incomplete-pr PR is missing required template sections or a demo recording label Jun 10, 2026
@github-actions github-actions Bot closed this Jun 10, 2026
@unfitcoder101

Copy link
Copy Markdown
Author

@mmabrouk reopened with full PR template. Setting up local environment for the demo video now.

@coderabbitai

coderabbitai Bot commented Jun 10, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 4090c6c8-7dff-4794-b253-15a6cd287bf7

📥 Commits

Reviewing files that changed from the base of the PR and between 0b197b1 and 3c2a226.

📒 Files selected for processing (1)
  • web/oss/src/components/EvalRunDetails/components/Page.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • web/oss/src/components/EvalRunDetails/components/Page.tsx

📝 Walkthrough

Summary by CodeRabbit

  • New Features
    • Added support for SDK evaluations: navigation now shows an "SDK Evals" breadcrumb and SDK-run listings are correctly identified when browsing evaluation runs, improving discoverability and context when exploring SDK-generated evaluations.

Walkthrough

Adds an "sdk" entry to the evaluation-type breadcrumb mapping so SDK evaluations render "SDK Evals" and include kind="custom" in breadcrumb link queries.

Changes

SDK Breadcrumb Configuration

Layer / File(s) Summary
SDK evaluation breadcrumb mapping
web/oss/src/components/EvalRunDetails/components/Page.tsx
Extends evaluationTypeBreadcrumb typeMap with an "sdk" entry mapping to label "SDK Evals" and URL query kind: "custom".

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: fixing the breadcrumb label display for SDK evaluations.
Description check ✅ Passed The description clearly explains the bug, the fix implemented, and includes verification steps and a demo video.
Linked Issues check ✅ Passed The PR successfully addresses issue #4549 by adding the missing 'sdk' entry to typeMap, ensuring SDK evals display 'SDK Evals' instead of 'Auto Evals' in breadcrumbs.
Out of Scope Changes check ✅ Passed The single-line change only adds the required 'sdk' mapping to fix the identified issue, with no extraneous modifications present.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@unfitcoder101 unfitcoder101 deleted the fix/sdk-eval-breadcrumb-label branch June 10, 2026 20:24
@unfitcoder101 unfitcoder101 restored the fix/sdk-eval-breadcrumb-label branch June 10, 2026 20:27
@github-actions github-actions Bot removed the incomplete-pr PR is missing required template sections or a demo recording label Jun 10, 2026
@github-actions github-actions Bot reopened this Jun 10, 2026
@unfitcoder101

Copy link
Copy Markdown
Author

@mmabrouk I've updated the PR description with a demo video and full template. Please take a look when you get a chance.

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jun 10, 2026
@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown

@unfitcoder101 is attempting to deploy a commit to the agenta projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
web/oss/src/components/EvalRunDetails/components/Page.tsx (1)

53-58: ⚠️ Potential issue | 🔴 Critical

Fix SDK breadcrumb kind to match EvaluationsView (custom not sdk)

EvaluationsView drives its tabs/filter strictly from the kind query param with tab keys all | auto | human | online | custom (SDK Evals uses key: "custom"). The SDK breadcrumb currently links to /evaluations?kind=sdk, so the page won’t select the correct tab and will set an invalid evaluation kind.

Proposed fix
-            sdk: {label: "SDK Evals", kind: "sdk"},
+            sdk: {label: "SDK Evals", kind: "custom"},

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 0b8f543c-c705-42e6-8d7c-8da19c96d92f

📥 Commits

Reviewing files that changed from the base of the PR and between 787ed8b and 1d5adbd.

📒 Files selected for processing (1)
  • web/oss/src/components/EvalRunDetails/components/Page.tsx

@mmabrouk

Copy link
Copy Markdown
Member

Thanks @unfitcoder101 for the video. You are supposed however to demo the fix not show the code :)

How can we know if the fix works if you did not try it?

@mmabrouk mmabrouk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see prev comment

@unfitcoder101

Copy link
Copy Markdown
Author

@mmabrouk you're right, my apologies. I'm setting up the local environment now to record an actual UI demo. Will update within a few hours.

@unfitcoder101

Copy link
Copy Markdown
Author

@mmabrouk Updated with a proper UI demo showing the breadcrumb correctly displaying "SDK Evals" when navigating to the SDK Evals tab in the local environment. https://www.loom.com/share/ffc00463fcad4161abaad61dde0814f3

@mmabrouk mmabrouk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @unfitcoder101 Looks great!

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jun 11, 2026
@mmabrouk

Copy link
Copy Markdown
Member

@all-contributors please add @unfitcoder101 for bug fix

@allcontributors

Copy link
Copy Markdown
Contributor

@mmabrouk

I've put up a pull request to add @unfitcoder101! 🎉

@unfitcoder101

Copy link
Copy Markdown
Author

Thanks @mmabrouk! Happy to contribute. Looking forward to picking up more issues — let me know if there's anything specific the team needs help with.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
web/oss/src/components/EvalRunDetails/components/Page.tsx (1)

66-72: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Use kind=custom for SDK breadcrumb links to match /evaluations filter contract.

Line 66 sets kind: "sdk", but the downstream evaluations tab/filter contract uses custom for “SDK Evals”. This sends users to a mismatched query state when clicking the breadcrumb.

Suggested fix
 const evaluationTypeBreadcrumb = useMemo(() => {
     const typeMap: Record<string, {label: string; kind: string}> = {
         auto: {label: "Auto Evals", kind: "auto"},
         human: {label: "Human Evals", kind: "human"},
         online: {label: "Live Evals", kind: "online"},
-        sdk: {label: "SDK Evals", kind: "sdk"},
+        sdk: {label: "SDK Evals", kind: "custom"},
     }

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 562859fb-671d-45c7-ac8d-4e5ada98faac

📥 Commits

Reviewing files that changed from the base of the PR and between 1d5adbd and 0b197b1.

📒 Files selected for processing (1)
  • web/oss/src/components/EvalRunDetails/components/Page.tsx

@unfitcoder101

Copy link
Copy Markdown
Author

@coderabbitai good catch — verified locally. The entire EvaluationRunsTablePOC codebase uses kind="custom" for SDK evals. Pushed a follow-up commit changing the SDK breadcrumb to use kind="custom" so the link routes correctly.

@mmabrouk PR is ready for re-review whenever you have a moment. Thanks!

@coderabbitai

coderabbitai Bot commented Jun 12, 2026

Copy link
Copy Markdown

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check the current state of the Page.tsx file and the typeMap
rg -n "typeMap|sdk|kind" web/oss/src/components/EvalRunDetails/components/Page.tsx -A2 -B2

Length of output: 1092



@unfitcoder101 Thanks for the follow-up! Confirmed the fix looks correct in the current state of the file:

sdk: {label: "SDK Evals", kind: "custom"},

The breadcrumb will now display "SDK Evals" and route to evaluations?kind=custom, which aligns with how the EvaluationRunsTablePOC handles SDK evaluation runs. Everything looks good! 🐇

@unfitcoder101

Copy link
Copy Markdown
Author

Thanks @coderabbitai for the confirmation! @mmabrouk - all checks should be green now, ready to merge whenever you have a moment. Looking forward to picking up the next task.

@coderabbitai

coderabbitai Bot commented Jun 12, 2026

Copy link
Copy Markdown

Tip

For best results, initiate chat on the files or code changes.

@unfitcoder101 You're welcome! The fix is clean and well-verified — great work on the contribution. Hope the merge goes smoothly and looking forward to seeing your future contributions! 🐇 ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix SDK eval breadcrumbs showing Auto Evals

2 participants