Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

By default, don't keep appending points to the end of a route #202

Merged
merged 2 commits into from
Jun 1, 2023

Conversation

dabreegster
Copy link
Contributor

See dabreegster/route_snapper#30 for context. I haven't done UX testing with anyone, but I suspect this'll make the default experience much less weird. It's much easier to drag intermediate waypoints this way.

For people who want to change the default, combined with #201 would let them make the setting sticky.

@dabreegster
Copy link
Contributor Author

@Pete-Y-CS
Copy link
Contributor

Pete-Y-CS commented May 31, 2023

Preview at https://acteng.github.io/atip/extend_route/scheme.html?authority=Stoke-on-Trent

I just had a quick play and think this is really good but have a suggestion: it defaults to adding points to end, except when you 'edit geometry'.
Also maybe a feature to add points to start might be nice

@dabreegster
Copy link
Contributor Author

it defaults to adding points to end, except when you 'edit geometry'.

Wait, really? The "Add points to end" checkbox should be off by default and this should not happen.

Also maybe a feature to add points to start might be nice

That could be nice. Even visually distinguishing the "last" point seems useful! These changes would go in https://github.com/dabreegster/route_snapper/, I'd say they're out of scope for Friday, but would like to think about how to implement them

@Pete-Y-CS
Copy link
Contributor

Wait, really? The "Add points to end" checkbox should be off by default and this should not happen.
I don't mean it does this I meant to say it might be a more expected way for it to behave: when making a new route it defaults to adding new waypoints, when editing a previous route it defaults to only allowing you to change existing waypoints

@dabreegster
Copy link
Contributor Author

when making a new route it defaults to adding new waypoints, when editing a previous route it defaults to only allowing you to change existing waypoints

Ah, I see. This makes sense and may be a gentler transition for users used to the old behavior. Changed it to do that.

@dabreegster
Copy link
Contributor Author

It will make #201 confusing though -- if the user manually ticks the box, do we then override this automatic behavior? Maybe we just don't let them change that setting then?

@Pete-Y-CS
Copy link
Contributor

Yeah not sure what's best for this. Maybe we could have a default for each type of editing geometry: existing or new route, on a per user basis. I could also just see not having user preference here.

Copy link
Contributor

@Sparrow0hawk Sparrow0hawk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find the UX of this a little tricky, I find it too easy to delete a red waypoint when trying to grab it and drag it. I found myself accidentally deleting red waypoints when trying to click and drag them and then having no way to undo it which was frustrating.

Is it feasible to:

  • Change the interaction that triggers a waypoint deletion i.e. right mouse click?
  • Make a click on a waypoint make it sticky to the cursor, so I don't have to drag I can just click and move it about (realise this would depend on changing waypoint deletion event)

@Sparrow0hawk Sparrow0hawk self-requested a review June 1, 2023 13:24
@Sparrow0hawk
Copy link
Contributor

Sparrow0hawk commented Jun 1, 2023

I find the UX of this a little tricky, I find it too easy to delete a red waypoint when trying to grab it and drag it. I found myself accidentally deleting red waypoints when trying to click and drag them and then having no way to undo it which was frustrating.

Is it feasible to:

  • Change the interaction that triggers a waypoint deletion i.e. right mouse click?
  • Make a click on a waypoint make it sticky to the cursor, so I don't have to drag I can just click and move it about (realise this would depend on changing waypoint deletion event)

On chat with @Pete-Y-CS the points I raise here are slightly separate to this PR. This PR rather surfaces these UX issues in a more obvious way as this is behaviour that exists in the main branch you just can't tell as much because you're always appending to the route.

I'm going to raise this as a separate issue (#211 (comment)) and approve this PR as I don't think its a problem with this PR inasmuch the UX of editing routes.

@dabreegster
Copy link
Contributor Author

Thanks for the reviews! Rebased and tested everything again, so merging now

@dabreegster dabreegster merged commit 3a868cd into main Jun 1, 2023
@dabreegster dabreegster deleted the extend_route branch June 1, 2023 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants