diff --git a/apps/dashboard/src/components/RunDetail.tsx b/apps/dashboard/src/components/RunDetail.tsx index f33747f00..6eddbd472 100644 --- a/apps/dashboard/src/components/RunDetail.tsx +++ b/apps/dashboard/src/components/RunDetail.tsx @@ -18,6 +18,7 @@ import { Link } from '@tanstack/react-router'; import type { EvalResult } from '~/lib/types'; import { isPassing, useRunLog, useStudioConfig } from '~/lib/api'; +import { formatCategoryDisplay } from '~/lib/run-detail-context'; import { PassRatePill } from './PassRatePill'; import { StatsCards } from './StatsCards'; @@ -38,6 +39,8 @@ interface SuiteStats { interface CategoryGroup { name: string; + displayName: string; + mutedDisplayName?: string; suites: SuiteStats[]; total: number; passed: number; @@ -80,8 +83,12 @@ function buildCategoryGroups(results: EvalResult[], passThreshold: number): Cate const failed = suites.reduce((s, d) => s + d.failed, 0); const scoreSum = suites.reduce((s, d) => s + d.avgScore * d.total, 0); + const display = formatCategoryDisplay(catName); + return { name: catName, + displayName: display.label, + mutedDisplayName: display.mutedLabel, suites, total, passed, @@ -141,39 +148,59 @@ export function RunDetail({ results, runId, projectId }: RunDetailProps) {
- {categories.map((cat) => ( -{meta}
+{header.meta}
: null} + {header.sourceContext.length > 0 ? ( +{meta}
+{header.meta}
: null} + {header.sourceContext.length > 0 ? ( +