Skip to content

Make world map countries clickable to filter - #443

Open
smehmood wants to merge 1 commit into
masterfrom
smehmood/task-implementation-2a5t6y
Open

Make world map countries clickable to filter#443
smehmood wants to merge 1 commit into
masterfrom
smehmood/task-implementation-2a5t6y

Conversation

@smehmood

@smehmood smehmood commented Jun 29, 2026

Copy link
Copy Markdown

Summary

Clicking a country on the WorldMap now filters all website analytics down to that country.

  • Adds an onClick handler that navigates with a country=eq.<code> filter (same param the country metrics table uses), so the rest of the dashboard updates to that country's data.
  • Countries now show a pointer cursor on hover to signal they're clickable.
  • Antarctica (AQ) is a no-op — it returns early and keeps the default cursor, matching the existing fill/hover/tooltip handling that already skipped it.

Verification

Verified in the browser: clicking Russia applied a "Country Is Russia" filter chip and all metrics updated accordingly.

Screenshots

🤖 Generated with Claude Code

🌒 Run on Niteshift: View Task

Clicking a country on the world map applies a `country=eq.<code>` filter,
updating all metrics to that country's data. Antarctica is excluded (no-op,
default cursor), matching the existing fill/hover/tooltip handling.

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

mesa-dot-dev Bot commented Jun 29, 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