sufone / layl

🌙 Calculator for tahajjud, qiyam, and worship & sleep in an Islamic night!
https://layl.app
GNU Affero General Public License v3.0
21 stars 3 forks source link

Improve user location UI display #40

Open mr-islam opened 3 years ago

mr-islam commented 3 years ago

Progressive feature where advanced users can access it

Might allow clicking on location name / coordinates (if geocode failed) to open the relevant location on google maps (using a simple url thing. The benefit of this is that the user can visually confirm that the detected location is accurate, more than just the city name. (though maybe a more detailed label in Layl could help too!)

The tooltip can also mention that clicking the location will open it on a map.

mr-islam commented 3 years ago

A more detailed location label on Layl is a bad idea, because people are used to prayer times on a city level, and any greater precision can be

  1. misleading, if there sensor is slightly off and the wrong area is identified
  2. scary for privacy

so just city, country is good -- and exposing coordinates for power users

mr-islam commented 3 years ago

Opening google maps on click is not good, because that's too easy to do accidentally. Instead, only apply it to the coordinates wherever they appear (whether on the tooltip from hovering on the geocoded location name, or directly when geocode fails and the co-ordinates are displayed directly). Make sure there's a hyperlink icon or some indication that clicking will navigate to a new page.