Skip to content

Make world map countries clickable to filter - #453

Open
smehmood wants to merge 1 commit into
masterfrom
smehmood/task-4v1f21
Open

Make world map countries clickable to filter#453
smehmood wants to merge 1 commit into
masterfrom
smehmood/task-4v1f21

Conversation

@smehmood

@smehmood smehmood commented Jul 17, 2026

Copy link
Copy Markdown

Summary

Clicking a country on the WorldMap now filters the dashboard down to data from that country.

Previously the world map was display-only — hovering showed a tooltip but clicking did nothing. This adds a click handler that applies a country=eq.<code> filter, reusing the same filtering mechanism as the country metrics table (FilterLink). Clickable countries also get a pointer cursor.

Verification

Verified in the browser: clicking the United States on the map applied the "Country is United States" filter chip and the metrics updated to US-only data (Visitors 9.81k → 4.44k, matching the country table).

Screenshots

🌒 Run on Niteshift: View Task

🤖 Generated with Claude Code

Clicking a country on the world map now applies a `country=eq.<code>`
filter, matching the existing FilterLink behavior used in the country
metrics table. Adds a pointer cursor over clickable countries.

Run-on: Niteshift
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mesa-dot-dev

mesa-dot-dev Bot commented Jul 17, 2026

Copy link
Copy Markdown

You do not have enough credits to review this pull request. Please purchase more credits to continue.

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