@@ -4,7 +4,6 @@ import { Button } from "@/components/ui/button"
44import type { ColumnDef } from "@tanstack/react-table"
55import { ArrowUpDown , ExternalLink , Clock , Loader2 , CheckCircle2 , XCircle , Trash2 , Check , ListFilter } from "lucide-react"
66import Image from "next/image"
7- import { Badge } from "@/components/ui/badge"
87import { Tooltip , TooltipContent , TooltipProvider , TooltipTrigger } from "@/components/ui/tooltip"
98import { cn , getRepoImageSrc } from "@/lib/utils"
109import { RepoIndexingStatus } from "@sourcebot/db" ;
@@ -14,10 +13,6 @@ export type RepositoryColumnInfo = {
1413 repoId : number
1514 name : string
1615 imageUrl ?: string
17- connections : {
18- id : number
19- name : string
20- } [ ]
2116 repoIndexingStatus : RepoIndexingStatus
2217 lastIndexed : string
2318 url : string
@@ -136,35 +131,6 @@ export const columns = (domain: string): ColumnDef<RepositoryColumnInfo>[] => [
136131 )
137132 } ,
138133 } ,
139- {
140- accessorKey : "connections" ,
141- header : ( ) => < div className = "w-[200px]" > Connections</ div > ,
142- cell : ( { row } ) => {
143- const connections = row . original . connections
144-
145- if ( ! connections || connections . length === 0 ) {
146- return < div className = "text-muted-foreground text-sm" > —</ div >
147- }
148-
149- return (
150- < div className = "flex flex-wrap gap-1.5" >
151- { connections . map ( ( connection ) => (
152- < Badge
153- key = { connection . id }
154- variant = "outline"
155- className = "text-xs px-2 py-0.5 hover:bg-muted cursor-pointer group flex items-center gap-1"
156- onClick = { ( ) => {
157- window . location . href = `/${ domain } /connections/${ connection . id } `
158- } }
159- >
160- { connection . name }
161- < ExternalLink className = "h-3 w-3 text-muted-foreground opacity-50 group-hover:opacity-100 transition-opacity" />
162- </ Badge >
163- ) ) }
164- </ div >
165- )
166- } ,
167- } ,
168134 {
169135 accessorKey : "repoIndexingStatus" ,
170136 header : ( { column } ) => {
0 commit comments