Skip to content

Click a country on the WorldMap to filter the dashboard by location - #451

Open
smehmood wants to merge 1 commit into
masterfrom
smehmood/niteshift-61h4i1
Open

Click a country on the WorldMap to filter the dashboard by location#451
smehmood wants to merge 1 commit into
masterfrom
smehmood/niteshift-61h4i1

Conversation

@smehmood

Copy link
Copy Markdown

Summary

  • Clicking a country on the WorldMap now filters the entire dashboard to that country by navigating to ?country=eq.<code> (consumed by useFilterParameters, which feeds every metrics query).
  • Clicking the already-active country again clears the filter.
  • Adds a pointer cursor on country paths to signal they are clickable.

Verification

  • Clicked US on the map → URL became ?country=eq.US, the map reduced to a single highlighted country, and the Countries table showed only "United States".
  • Clicked US again → filter cleared, map restored to all countries.
  • TypeScript: no errors in WorldMap.tsx.

Media

  • Demo (14s): /tmp/recordings/worldmap-click-filter.webm
  • Screenshots: /tmp/map-initial.png, /tmp/map-filtered-us.png, /tmp/map-filtered-table.png

Clicking a country on the WorldMap navigates to ?country=eq.<code>, which
filters all dashboard panels via useFilterParameters. Clicking the active
country again clears the filter. Adds a pointer cursor for affordance.
@mesa-dot-dev

mesa-dot-dev Bot commented Jul 16, 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