umami-software / umami

Umami is a simple, fast, privacy-focused alternative to Google Analytics.
https://umami.is
MIT License
22.86k stars 4.25k forks source link

Allow actual text search on regions and country #2665

Open AkashRajpurohit opened 7 months ago

AkashRajpurohit commented 7 months ago

Describe the Bug

Not sure if this should be logged as bug or feature, however the issue right now is that on the UI we show the country and region as the full string value i.e IN is shown as India and IN-DL as Delhi, India.

Now for a user when they see the string as Delhi, India, the general sense would be that searching for Del would give Delhi, India as response but that is not the case because currently the search is done on the shortcode and not the full text.

Attaching a screencast:

https://github.com/umami-software/umami/assets/30044630/9e0875aa-4305-4493-8d50-0f98bc753b95

Database

PostgreSQL

Relevant log output

No response

Which Umami version are you using? (if relevant)

2.11.1

Which browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

Docker

franciscao633 commented 7 months ago

You summarized the issue perfectly. We've been aware of the issue, and have a current task to fix this. Trying to get it out next release, but we are open to PRs as well.