Skip to content

Make WorldMap countries clickable to filter#396

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

Make WorldMap countries clickable to filter#396
smehmood wants to merge 1 commit into
masterfrom
smehmood/niteshift-v5j159

Conversation

@smehmood
Copy link
Copy Markdown

Summary

  • Clicking a country on the WorldMap now adds country=eq.<CODE> to the URL, filtering the dashboard to data from that country
  • Matches the existing FilterLink pattern used elsewhere (countries table, regions, cities, browsers, etc.)
  • Adds a pointer cursor on hover for countries that have a valid ISO code

Test plan

  • Navigate to a website dashboard
  • Click on a country in the WorldMap (tested with USA)
  • Verify URL updates to ?country=eq.US
  • Verify "Country is United States" filter chip appears and metrics update

🤖 Generated with Claude Code
🌒 Run on Niteshift: View Task

Clicking a country on the WorldMap updates the URL with
`country=eq.<CODE>`, matching the existing FilterLink pattern used
throughout the app.

Run-on: Niteshift

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@niteshift-dev
Copy link
Copy Markdown

niteshift-dev Bot commented Apr 23, 2026

After clicking USA on the WorldMap: URL updates to ?country=eq.US, a "Country is United States" filter chip appears, and metrics drop from 9.40k to 4.22k visitors (US-only data).

Screenshot


Posted by 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