Skip to content

Filter dashboard by country on WorldMap click#395

Open
smehmood wants to merge 2 commits into
masterfrom
smehmood/task-branch-6s3i19
Open

Filter dashboard by country on WorldMap click#395
smehmood wants to merge 2 commits into
masterfrom
smehmood/task-branch-6s3i19

Conversation

@smehmood
Copy link
Copy Markdown

Summary

  • Clicking a country on the WorldMap now updates the URL with country=eq.<code>, filtering the dashboard to that country
  • Pointer cursor shown on clickable countries; Antarctica / unknown regions remain non-interactive
  • Uses the existing useNavigation / router.replace(updateParams(...)) pattern (same as FilterLink)

Test plan

  • Open a website page with the world map visible
  • Click on a country (e.g., United States) -> URL becomes ?country=eq.US and metrics/filters update
  • Antarctica / unknown regions do not trigger navigation

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

Clicking a country on the world map now updates the URL with a
country=eq.<code> filter, matching the FilterLink behavior used
elsewhere in the dashboard.

Run-on: Niteshift

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

mesa-dot-dev Bot commented Apr 23, 2026

You do not have enough credits to review this pull request. Please purchase more credits to continue.

Addresses PR review: don't special-case Antarctica in the click
handler.

Run-on: Niteshift

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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