pietervdvn / MapComplete

An easy-to-use webapp to edit OpenStreetMap
https://mapcomplete.org
194 stars 89 forks source link

Studio: Have the previously chosen option selected when editing #1922

Closed tordans closed 2 months ago

tordans commented 2 months ago

I picked "allow search" which the UI knows and shows me as title:

image

However when click edit, my previous choice is not selected:

image

It should be selected to clarify what is the currently active option.

tordans commented 2 months ago

It looks like the same issue is present in the main app, where the selected answer is not active/selected when I click on edit

image
pietervdvn commented 2 months ago

Studio reuses the 'question'-component from the rest of the codebase, so will indeed behave the same.

thibaultmol commented 2 months ago

Studio reuses the 'question'-component from the rest of the codebase, so will indeed behave the same.

Which tbf... is fine.. and honestly what Tobias is pointing out is something that I mentioned to you at some as well. How in mapcomplete it's annoying when editing an existing answer, that the answer is not actually selected if you open it.

I think reusing this ui component is fine, you just need to have (both in studio and MC itself) actually show the filled in question based on the previously given answer Screenshot 2024-04-27 at 08-37-38 Restaurants and fast food Restaurant De Nieuwe Lekkerbek Screenshot 2024-04-27 at 08-37-41 Restaurants and fast food Restaurant De Nieuwe Lekkerbek