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

Warn user if they create a new geometry that is far from their geolocation #1988

Closed
spwoodcock opened this issue Dec 12, 2024 · 2 comments
Closed
Labels
effort:low Likely a few hours enhancement New feature or request frontend Related to frontend code priority:low Backlog of tasks that will be addressed in time

Comments

@spwoodcock
Copy link
Member

Is your feature request related to a problem? Please describe.

  • If the user clicks to create a new map feature, but the point is very far from their location, we should warn them.

Describe the solution you'd like

  • Currently when the user clicks for the point, it redirects to ODK Collect immediately.
  • We should add a check before that:
    • if geolocation is enabled && if clicked point is more than 50m from current location, do not redirect.
    • Instead open a confirmation dialog / modal: 'The created geometry is far away from your current location. Are you sure you wish to proceed?'
    • If the user clicks 'Yes', then continue with the ODK Collect redirect / intent, if 'No', then remove the point from the map (but keep drawing enabled!)
@spwoodcock spwoodcock added effort:low Likely a few hours enhancement New feature or request frontend Related to frontend code priority:low Backlog of tasks that will be addressed in time labels Dec 12, 2024
@manjitapandey
Copy link
Contributor

duplicate of #1985

@spwoodcock
Copy link
Member Author

Thanks!

Closing this

@spwoodcock spwoodcock closed this as not planned Won't fix, can't repro, duplicate, stale Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort:low Likely a few hours enhancement New feature or request frontend Related to frontend code priority:low Backlog of tasks that will be addressed in time
Projects
Development

No branches or pull requests

2 participants