Skip to content

cherry: share-card all dimensions → main - #1546

Merged
Flotapponnier merged 1 commit into
mainfrom
cherry/share-card-dims-main
Jul 27, 2026
Merged

cherry: share-card all dimensions → main#1546
Flotapponnier merged 1 commit into
mainfrom
cherry/share-card-dims-main

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Cherry of #1545.

…1545)

The share-section UI (client) mirrors the whole live dimension filter
set into the share-card URL (chain / region / venue / kind), but the
route.tsx handler was only reading `?chain=` and ignoring the other
three. A reader on /benchmarks/foo?region=us-east&venue=polymarket
clicked Export and got a cross-region + cross-venue aggregate PNG that
did not match what they were staring at on the dashboard.

Fix: validate every declared dimension against the spec option list
(same guard as chain), pass the full filter set to getBenchmark(), and
concatenate the pill label with ' , ' so a Solana + US-East pin renders
as 'Solana , US-East' on the card watermark. Applies to all 5 templates
(ranking, leaderboard, snapshot, headline, compare) since they share
this route.
@Flotapponnier
Flotapponnier merged commit 206f90c into main Jul 27, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant