MushroomObserver / mushroom-observer

A website for sharing observations of mushrooms.
https://mushroomobserver.org
MIT License
77 stars 25 forks source link

Create/Edit Obs: new create location flow #2230

Closed nimmolo closed 3 days ago

nimmolo commented 2 weeks ago

The create or edit observation form should now either

On save,

coveralls commented 2 weeks ago

Coverage Status

coverage: 94.412% (-0.05%) from 94.461% when pulling a5ba194b448e7a0d4c2469c049b10a9fcc9c17df on create-location-modal into 3049a8dafa7a12e4a1b62c11d2b098a59c3dfd06 on main.

JoeCohen commented 1 week ago

if this is possible *and easy modify new location names as follows. (If not eay (but possible) do it in the future.)

Screenshot 2024-07-18 at 6 17 10 PM

With the above input, it correctly found the boundaries of Costilla County, Colorado. (The photo did not have location info.) But it doesn't get the location name perfect. Since it figured out the bounding box, it seems like there should be enough information to get the name MO style. (Costilla Co., Colorado, USA.)

JoeCohen commented 1 week ago

I also don't understand why the CI tests aren't running.

Screenshot 2024-07-18 at 6 25 11 PM
nimmolo commented 1 week ago

Thanks @JoeCohen - i didn't even check that, since it's using the same formatting function as the lat/lng matcher, which does format locations correctly for MO.

It's very unexpected that the country component is missing - i'm assembling the string from separate address components that I assumed to be in the object returned. Will check.

JoeCohen commented 1 week ago

Another "nice to have if easy" and seeming bug. Update the Locality window after this sequence: enter something in that window, Create Location, bounding box found. Example:

It would be nice to automatically update that window.

JoeCohen commented 1 week ago

Bug: The changes to Observation break the /location/new Find on Map button. Ex:

nimmolo commented 1 week ago

@JoeCohen Thank you for all these! Very helpful. I'm checking what I think is fixed here, feel free to un-check and this will serve as the TODO list:

Can't fix: