diff --git a/src/app/benchmarks/[slug]/share-card/route.tsx b/src/app/benchmarks/[slug]/share-card/route.tsx index e1229881..c750e0b1 100644 --- a/src/app/benchmarks/[slug]/share-card/route.tsx +++ b/src/app/benchmarks/[slug]/share-card/route.tsx @@ -370,7 +370,7 @@ function CardHeader({ benchmark: Benchmark; showCategory?: boolean; chainLabel?: string | null; - filterPills?: string[]; + filterPills?: { kind: string; value: string }[]; }) { return (
{benchmark.category}} {chainLabel && {chainLabel}} {filterPills.map((p) => ( - {p} + + {p.value} + ))}
- CHAIN + {label} {children}
); @@ -488,7 +496,7 @@ function CardShell({ rightText?: string; showCategory?: boolean; chainLabel?: string | null; - filterPills?: string[]; + filterPills?: { kind: string; value: string }[]; }) { return (
, chainLabel?: string | null, - filterPills: string[] = [] + filterPills: { kind: string; value: string }[] = [] ) { const sorted = sortByP50(benchmark); const maxP50 = Math.max(...sorted.map((r) => r.ms.p50)) || 1; @@ -850,7 +858,7 @@ async function renderLeaderboard( benchmark: Benchmark, colors: Map, chainLabel?: string | null, - filterPills: string[] = [] + filterPills: { kind: string; value: string }[] = [] ) { // Row height ~55px + gap 14 = ~70px per row. Content area is // ~450px when title fits on 1 line and ~390px when it wraps to 2. @@ -1020,7 +1028,7 @@ async function renderSnapshot( benchmark: Benchmark, colors: Map, chainLabel?: string | null, - filterPills: string[] = [] + filterPills: { kind: string; value: string }[] = [] ) { // Cap dynamically by title length: long titles (>=90 chars, 2 lines) // eat the vertical space that would otherwise fit the 2nd legend row, @@ -1224,7 +1232,7 @@ async function renderHeadline( colors: Map, featured?: Benchmark["results"][number], chainLabel?: string | null, - filterPills: string[] = [] + filterPills: { kind: string; value: string }[] = [] ) { const sorted = sortByP50(benchmark); const winner = featured ?? sorted[0]; @@ -1343,7 +1351,7 @@ async function renderCompare( paneA?: Benchmark["results"][number], paneB?: Benchmark["results"][number], chainLabel?: string | null, - filterPills: string[] = [] + filterPills: { kind: string; value: string }[] = [] ) { const sorted = sortByP50(benchmark); const a = paneA ?? sorted[0];