fix(frontend): show correct breadcrumb label for SDK evals#4619
fix(frontend): show correct breadcrumb label for SDK evals#4619unfitcoder101 wants to merge 4 commits into
Conversation
|
✅ Thanks @unfitcoder101! This PR now meets the contribution requirements and has been reopened. A maintainer will review it soon. |
|
@mmabrouk reopened with full PR template. Setting up local environment for the demo video now. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughAdds an "sdk" entry to the evaluation-type breadcrumb mapping so SDK evaluations render "SDK Evals" and include ChangesSDK Breadcrumb Configuration
🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
@mmabrouk I've updated the PR description with a demo video and full template. Please take a look when you get a chance. |
|
@unfitcoder101 is attempting to deploy a commit to the agenta projects Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
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 | 🔴 CriticalFix SDK breadcrumb
kindto match EvaluationsView (customnotsdk)
EvaluationsViewdrives its tabs/filter strictly from thekindquery param with tab keysall | auto | human | online | custom(SDK Evals useskey: "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
📒 Files selected for processing (1)
web/oss/src/components/EvalRunDetails/components/Page.tsx
|
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 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. |
|
@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
left a comment
There was a problem hiding this comment.
Thanks @unfitcoder101 Looks great!
|
@all-contributors please add @unfitcoder101 for bug fix |
|
I've put up a pull request to add @unfitcoder101! 🎉 |
|
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. |
There was a problem hiding this comment.
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 winUse
kind=customfor SDK breadcrumb links to match/evaluationsfilter contract.Line 66 sets
kind: "sdk", but the downstream evaluations tab/filter contract usescustomfor “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
📒 Files selected for processing (1)
web/oss/src/components/EvalRunDetails/components/Page.tsx
… evaluations page contract
|
@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! |
|
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 -B2Length of output: 1092
The breadcrumb will now display "SDK Evals" and route to |
|
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. |
|
Tip For best results, initiate chat on the files or code changes.
|
Fixes #4549
Summary
The
typeMapinEvalRunDetails/components/Page.tsxwas missing anentry for the
sdkevaluation 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
sdkkey 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