Closed dabreegster closed 1 year ago
This looks as easy to user as streetmix.net, if not more so. And it's simpler which is good (and more relevant to OSM). Transport focused OSM editing functionality here we come?
Sorry I haven't been following development here that closely, so feel free to ignore me if I'm off base.
I felt pretty good about the UI we iterated on for the abstreet lane editor, where you could drag-and-drop lanes to re-order them, but deleting was a click-button action.
Maybe that's a reasonable route to work towards for this web implementation:
https://user-images.githubusercontent.com/217057/199624454-1bbce7b6-11fb-4e80-a514-94d3d26575a6.mp4
I felt pretty good about the UI we iterated on for the abstreet lane editor, where you could drag-and-drop lanes to re-order them, but deleting was a click-button action.
Good feedback, thanks! I think the A/B Street behavior is what we want to build towards here. This JS editor died off for a few months, and I want to get the ball rolling again by attempting https://github.com/a-b-street/osm2lanes/issues/240#issuecomment-1288582528. Drag-and-drop will come back, but maybe not with sortable.js. And having a separate button for deletion (instead of dragging a lane <-> a trash can) sounds like simpler UX too.
PTAL, I switched over to always building up DOM elements, and using buttons.
https://user-images.githubusercontent.com/1664407/199611654-8e9d39aa-a323-4a4e-b285-5abaf9fb0d82.mp4
Remove drag-and-drop for now, since it complicates the code, we were using a library I'm not sure is the right choice, and the UX of dragging a trash can to a lane vs a lane to a trash can is a bit unclear to me. Instead, just have some buttons inline to each card, and add new lanes to the end always.