Skip to content

Show readable region names in the insights filter - #315

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
Peter7896:peter7896/issue-314-region-display
Jun 29, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
Peter7896:peter7896/issue-314-region-display

Conversation

@Peter7896

Copy link
Copy Markdown
Contributor

Closes #314.

This adds a small region display helper backed by the existing REGIONS config and uses it in the insights Region filter. Known ISO region codes now render as flag plus country name in both the selected value and menu items, while unknown or invalid values fall back to the raw code.

Validation:

  • node_modules/.bin/vitest.cmd run src/lib/region.test.ts -> 3 passed
  • node_modules/.bin/tsc.cmd --noEmit
  • node_modules/.bin/prettier.cmd --check src/**/*.{ts,tsx}
  • git diff --check

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to Ansvisor, and thank you for your first PR! A maintainer will be by soon to review.

In the meantime, two things that make review faster:

  • A short description of why the change matters, not just what it does — most of our PRs link a Fixes #... to the issue that explains the why.
  • A quick local test note if there's anything worth eyeballing in the browser.

If you'd like to keep an eye on where Ansvisor goes next, a ⭐ on the repo helps others discover it (and Watch sends you a ping when related issues land). Either way — looking forward to your next one.

@gkhngyk
gkhngyk merged commit fe0899b into ansvisor:main Jun 29, 2026
3 checks passed
@gkhngyk

gkhngyk commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Merged — thanks for the clean contribution, @Peter7896! 🎉 Nice touch reusing the existing REGIONS config and deriving the flags from the ISO codes with no extra dependency, plus the fallback handling and tests. Looking forward to more from you!

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.

feat(insights): show flags + country names in the Region filter instead of raw codes

2 participants