@@ -11,8 +11,7 @@ import {
1111} from "@/components/ui/resizable" ;
1212import { useSharedAppState } from "@/state/app-state-context" ;
1313import { useCiEvalsRoute , navigateToCiEvalsRoute } from "@/lib/ci-evals-router" ;
14- import { aggregateSuite , groupSuitesByTag , groupRunsByCommit } from "./evals/helpers" ;
15- import { OverviewPanel } from "./evals/overview-panel" ;
14+ import { aggregateSuite , groupRunsByCommit } from "./evals/helpers" ;
1615import { useEvalMutations } from "./evals/use-eval-mutations" ;
1716import { useEvalQueries } from "./evals/use-eval-queries" ;
1817import { useEvalHandlers } from "./evals/use-eval-handlers" ;
@@ -35,7 +34,6 @@ export function CiEvalsTab({ convexWorkspaceId }: CiEvalsTabProps) {
3534
3635 const [ deletingSuiteId , setDeletingSuiteId ] = useState < string | null > ( null ) ;
3736 const [ deletingRunId , setDeletingRunId ] = useState < string | null > ( null ) ;
38- const [ filterTag , setFilterTag ] = useState < string | null > ( null ) ;
3937 const [ sidebarMode , setSidebarMode ] = useState < SidebarMode > ( "runs" ) ;
4038 const [ hasAutoSwitchedMode , setHasAutoSwitchedMode ] = useState ( false ) ;
4139
@@ -89,9 +87,6 @@ export function CiEvalsTab({ convexWorkspaceId }: CiEvalsTabProps) {
8987 [ queries . sortedSuites ] ,
9088 ) ;
9189
92- const tagGroups = useMemo ( ( ) => groupSuitesByTag ( sdkSuites ) , [ sdkSuites ] ) ;
93- const hasTags = tagGroups . some ( ( g ) => g . tag !== "Untagged" ) ;
94-
9590 const commitGroups = useMemo (
9691 ( ) => groupRunsByCommit ( sdkSuites ) ,
9792 [ sdkSuites ] ,
@@ -117,12 +112,6 @@ export function CiEvalsTab({ convexWorkspaceId }: CiEvalsTabProps) {
117112 commitGroups . find ( ( g ) => g . commitSha === selectedCommitSha ) ?? null
118113 ) ;
119114 } , [ commitGroups , selectedCommitSha ] ) ;
120- const allTags = useMemo (
121- ( ) =>
122- Array . from ( new Set ( sdkSuites . flatMap ( ( e ) => e . suite . tags ?? [ ] ) ) ) . sort ( ) ,
123- [ sdkSuites ] ,
124- ) ;
125-
126115 const selectedSuiteEntry = useMemo ( ( ) => {
127116 if ( ! selectedSuiteId ) return null ;
128117 return (
@@ -166,10 +155,6 @@ export function CiEvalsTab({ convexWorkspaceId }: CiEvalsTabProps) {
166155 navigateToCiEvalsRoute ( { type : "suite-overview" , suiteId } ) ;
167156 } , [ ] ) ;
168157
169- const handleSelectOverview = useCallback ( ( ) => {
170- navigateToCiEvalsRoute ( { type : "list" } ) ;
171- } , [ ] ) ;
172-
173158 const handleSelectCommit = useCallback ( ( commitSha : string ) => {
174159 navigateToCiEvalsRoute ( { type : "commit-detail" , commitSha } ) ;
175160 } , [ ] ) ;
@@ -293,11 +278,7 @@ export function CiEvalsTab({ convexWorkspaceId }: CiEvalsTabProps) {
293278 suites = { sdkSuites }
294279 selectedSuiteId = { selectedSuiteId }
295280 onSelectSuite = { handleSelectSuite }
296- onSelectOverview = { handleSelectOverview }
297- isOverviewSelected = { ! selectedSuiteId && route . type !== "commit-detail" }
298281 isLoading = { queries . isOverviewLoading }
299- filterTag = { filterTag }
300- hasTags = { true }
301282 sidebarMode = { sidebarMode }
302283 onSidebarModeChange = { setSidebarMode }
303284 commitGroups = { commitGroups }
@@ -333,18 +314,19 @@ export function CiEvalsTab({ convexWorkspaceId }: CiEvalsTabProps) {
333314 </ div >
334315 </ div >
335316 ) : route . type === "list" || ! selectedSuite ? (
336- < OverviewPanel
337- suites = { sdkSuites }
338- allTags = { allTags }
339- filterTag = { filterTag }
340- onFilterTagChange = { setFilterTag }
341- onSelectSuite = { handleSelectSuite }
342- onRerunSuite = { ( suiteId ) => {
343- const entry = sdkSuites . find ( ( e ) => e . suite . _id === suiteId ) ;
344- if ( entry ) handlers . handleRerun ( entry . suite ) ;
345- } }
346- allCommitGroups = { commitGroups }
347- />
317+ < div className = "flex-1 flex items-center justify-center" >
318+ < div className = "text-center max-w-md mx-auto p-8" >
319+ < div className = "w-20 h-20 bg-muted rounded-full flex items-center justify-center mx-auto mb-6" >
320+ < GitBranch className = "h-10 w-10 text-muted-foreground" />
321+ </ div >
322+ < h2 className = "text-2xl font-semibold text-foreground mb-2" >
323+ Select a suite
324+ </ h2 >
325+ < p className = "text-sm text-muted-foreground" >
326+ Choose a CI suite or commit from the sidebar to inspect runs and test iterations.
327+ </ p >
328+ </ div >
329+ </ div >
348330 ) : queries . isSuiteDetailsLoading ? (
349331 < div className = "flex h-full items-center justify-center" >
350332 < div className = "text-center" >
0 commit comments