Skip to content

Filter dashboard by country on world map click - #455

Open
smehmood wants to merge 1 commit into
masterfrom
smehmood/task-branch-2a4933
Open

Filter dashboard by country on world map click#455
smehmood wants to merge 1 commit into
masterfrom
smehmood/task-branch-2a4933

Conversation

@smehmood

@smehmood smehmood commented Jul 21, 2026

Copy link
Copy Markdown

Summary

Clicking a country on the world map now filters the dashboard down to data from that country — the same behavior as clicking a country in the Countries table.

  • Added an onClick handler to each Geography in WorldMap that applies a country=eq.<code> URL filter via useNavigation.
  • Clicking the currently-selected country again clears the filter (toggle).
  • Added a pointer cursor over clickable countries; unresolved/Antarctica shapes stay non-interactive.

Verification

Verified in the browser: clicking the United States updates the URL to ?country=eq.US and the dashboard shows a "Country Is United States" filter chip with all metrics scoped to that country.

Screenshots

🌒 Run on Niteshift: View Task

🤖 Generated with Claude Code

Clicking a country on the WorldMap now applies a `country=eq.<code>`
URL filter (matching the country table's FilterLink behavior), and
clicking the already-selected country clears the filter. Added a
pointer cursor on 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 21, 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