Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
6c6aab0
feat(pm): add polymarket-us to PM_VENUES seed list
Flotapponnier Jul 29, 2026
e280e0e
feat: add /data-api hub — 9 benches, by-benchmark + by-provider views
Flotapponnier Jul 29, 2026
be95f23
debug: catch and expose render errors in share-card route
Flotapponnier Jul 29, 2026
da63fc0
fix: allow all long-range tabs in panel views, map archive field by p…
Flotapponnier Jul 29, 2026
7652024
feat(pm-cohort-stats): add polymarket-us active market counter
Flotapponnier Jul 29, 2026
f9a5b2c
fix: drop DefiLlama from dex-network-coverage, fix hub value formatting
Flotapponnier Jul 29, 2026
7bf663b
merge dev
Flotapponnier Jul 29, 2026
83aa937
fix: resolve CSS vars in share-card chip fallback, cap snapshot to 16…
Flotapponnier Jul 29, 2026
34480e7
feat(data-api): regional sub-scores in bench + provider pivot
Flotapponnier Jul 29, 2026
fa32417
fix(data-api): cap chain strip to 3 pills + overflow count
Flotapponnier Jul 29, 2026
b2bbaa0
fix(export): capture only chart body to remove header/pills whitespace
Flotapponnier Jul 29, 2026
d1f9767
fix(pm): add polymarket-us logo (reuse polymarket.png)
Flotapponnier Jul 29, 2026
7fad1cd
feat: dexpaprika product page + compact specialist chain-chips + prov…
Flotapponnier Jul 29, 2026
4c09fdd
merge dev + keep compact specialist chain-chips
Flotapponnier Jul 29, 2026
3da3e43
fix: leaderboard truncation line overflows footer when 9 rows shown
Flotapponnier Jul 29, 2026
024e482
fix: separate Region/Chain labels in breakdown col + Data APIs footer
Flotapponnier Jul 29, 2026
f5422f6
fix: merge conflicts + data-api-cohort cache purge on worker publish
Flotapponnier Jul 29, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/app/api/internal/revalidate-aggregate/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@ export async function POST(req: Request): Promise<NextResponse> {
// can serve different values than the hub for up to 5 minutes after a
// worker publish.
revalidateTag("benchmarks", "default");
return NextResponse.json({ revalidated: true, tags: ["bench-aggregate", "benchmarks"] });
revalidateTag("data-api-cohort", "default");
return NextResponse.json({ revalidated: true, tags: ["bench-aggregate", "benchmarks", "data-api-cohort"] });
}
8 changes: 6 additions & 2 deletions src/app/benchmarks/[slug]/share-card/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -885,8 +885,12 @@ async function renderLeaderboard(
// the 630px canvas (weekend-drift 11 rows + long title case).
const count = sorted.length;
const titleLen = benchmark.title.length;
const dense = count >= 8 || titleLen > 55;
const veryDense = count >= 10 || titleLen > 70;
// The "and N more" line counts as an extra row for density — 9 rows +
// truncation line overflows the 630px canvas at dense (not veryDense)
// sizing, pushing the text on top of the CardFooter border.
const effectiveCount = count + (truncatedCount > 0 ? 1 : 0);
const dense = effectiveCount >= 8 || titleLen > 55;
const veryDense = effectiveCount >= 10 || titleLen > 70;
const titleSize = veryDense ? 32 : dense ? 40 : 50;
const rankSize = veryDense ? 18 : dense ? 20 : 24;
const nameSize = veryDense ? 18 : dense ? 20 : 24;
Expand Down
14 changes: 10 additions & 4 deletions src/components/data-api-bench-groups.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function DataApiBenchGroups({ groups }: { groups: DataApiGroupRow[] }) {
<Th className="px-3 py-3 text-right w-[60px]">Providers</Th>
<Th className="px-3 py-3 text-left">Leader</Th>
<Th className="px-3 py-3 text-left hidden sm:table-cell">Runners-up</Th>
<Th className="pl-3 pr-5 py-3 text-left hidden md:table-cell">By region / chain</Th>
<Th className="pl-3 pr-5 py-3 text-left hidden md:table-cell">Breakdown</Th>
</tr>
</thead>
<tbody className="divide-y divide-ink/5">
Expand Down Expand Up @@ -167,10 +167,16 @@ function BenchRow({
{showRegionChain ? (
<div className="flex flex-col gap-2">
{hasRegions && (
<RegionStrip leaders={bench.regionLeaders} unit={bench.unit} />
<div className="flex flex-col gap-1">
<span className="label-mono text-[8px] text-ink-faint uppercase tracking-wider" style={{ fontFamily: "var(--font-mono, monospace)" }}>Region</span>
<RegionStrip leaders={bench.regionLeaders} unit={bench.unit} />
</div>
)}
{hasChains && !hasRegions && (
<ChainStrip leaders={bench.chainLeaders} unit={bench.unit} />
{hasChains && (
<div className="flex flex-col gap-1">
<span className="label-mono text-[8px] text-ink-faint uppercase tracking-wider" style={{ fontFamily: "var(--font-mono, monospace)" }}>Chain</span>
<ChainStrip leaders={bench.chainLeaders} unit={bench.unit} />
</div>
)}
</div>
) : (
Expand Down
Loading