tidbyt / community

A publishing platform for apps developed by the Tidbyt community 🚀
Apache License 2.0
382 stars 656 forks source link

Schema.Location is buggy (and confusing) in local development #1787

Closed kylebolstad closed 11 months ago

kylebolstad commented 1 year ago

Pixlet version: v0.28.3

DEFAULT_LOCATION = json.encode({"lat": 52.0406, "lng": -0.7594, "locality": "Milton Keynes, UK", "timezone": "Europe/London"}) location = json.decode(config.get("location", DEFAULT_LOCATION))

Screenshot 2023-08-30 at 12 50 11 PM

The web development version of schema.Location looks nothing like the final end-user version in the app. As the locality search functionality doesn't seem to work, the latitude and longitude need to be manually entered. Additionally, the locality and timezone don't seem to sync with the latitude and longitude.

In the end, the correct latitude and longitude are sent but the UI makes it terribly confusing to troubleshoot.

stale[bot] commented 11 months ago

We're automatically closing this issue because it hasn't had any activity in 30 days. If that seems like a mistake, please feel free to re-open. Thanks!