Skip to content

Filter analytics by country when clicking the World Map - #446

Open
smehmood wants to merge 1 commit into
masterfrom
smehmood/task-branch-3m51e1
Open

Filter analytics by country when clicking the World Map#446
smehmood wants to merge 1 commit into
masterfrom
smehmood/task-branch-3m51e1

Conversation

@smehmood

@smehmood smehmood commented Jul 2, 2026

Copy link
Copy Markdown

Summary

Clicking a country on the World Map now filters the current website view down to data from that country — matching the existing click-to-filter behavior of the Countries table.

Changes

  • Added an onClick handler to each country geography in WorldMap.tsx that navigates with a country=eq.<CODE> filter param via useNavigation.
  • Added a pointer cursor on hover for clickable countries (skips Antarctica).

Verification

Clicked the United States on the map — a "Country is United States" filter chip appeared and all metrics/charts/tables updated to that country's data (Visitors 7.92k → 3.65k, matching the country table).

Screenshots

🌒 Run on Niteshift: View Task

Clicking a country on the WorldMap now applies a country filter (eq.<code>)
to the current view, matching the behavior of the Countries table. Added a
pointer cursor on hover for clickable countries.

Run-on: Niteshift
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