Skip to content

share-card: apply all 4 dimensions (was chain-only) - #1545

Merged
Flotapponnier merged 1 commit into
devfrom
fix/share-card-all-dimensions
Jul 27, 2026
Merged

share-card: apply all 4 dimensions (was chain-only)#1545
Flotapponnier merged 1 commit into
devfrom
fix/share-card-all-dimensions

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Export as Image PNG was rendering the aggregate view even when the user had filtered by region / venue / kind on the dashboard. The share-section client mirrored all 4 params into the URL, but the server-side route.tsx only read chain. Fix parses all 4, validates against spec.dimensions, and shows a combined pill label.

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 61832ad into dev Jul 27, 2026
Flotapponnier added a commit that referenced this pull request Jul 27, 2026
…1545) (#1546)

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 added a commit that referenced this pull request Jul 27, 2026
…1545) (#1548)

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.
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