"use client"
import type { ComponentType, CSSProperties } from "react"
import { useRouter } from "next/navigation"
import { BarChart3, Boxes, ChevronRight, Sparkles } from "lucide-react"
import { Badge } from "@/components/ui/badge"
import { Button } from "@/components/ui/button"
import { Card, CardContent, CardHeader } from "@/components/ui/card"
import type { DeveloperListItem } from "@/lib/dashboard-data-client"
import { routeIdToPath } from "@/lib/utils"
interface DeveloperCardProps {
developer: DeveloperListItem
delayMs?: number
}
export function DeveloperCard({ developer, delayMs = 0 }: DeveloperCardProps) {
const router = useRouter()
return (
router.push(`/developers/${routeIdToPath(developer.route_id)}`)}
>
Developer Summary
{developer.developer}
Aggregated reporting across published model variants and their most common single benchmarks
Scores From
{developer.popular_evals.length > 0 ? (
developer.popular_evals.map((evaluation) => (
{evaluation.benchmark}
ยท {evaluation.model_count}
))
) : (
No benchmark coverage indexed yet
)}
Open the developer card for model-by-model coverage and benchmark detail.
)
}
function MetricPill({
icon: Icon,
label,
value,
tone,
}: {
icon: ComponentType<{ className?: string }>
label: string
value: string
tone: string
}) {
return (
)
}