Skip to content

Add geotrace support #308

@lognaturel

Description

@lognaturel

Description

Collect has 3 recording modes for creating a trace: manual, automatic, and placement. Web Forms will differ slightly and support placement and manual modes.

When a user opens a geotrace question in Web Forms, they won’t see a location overlay because we are not requesting permissions up front. If they want to manually add a point using their current location, they can tap the “Find location” button to enable it.

The goal is for them to create a trace using placement or manual modes and not have to worry about saving (continuous saving).


Checklist

  • Does it need UI/UX design?
    • Yes. Describe the UI/UX requirements or attach a Figma link in the "Design" section.
    • [] No
  • Does it need API design?
    • Yes. Specify the endpoints, methods, or data structures needed.
    • No
  • Does it need design around state flow?
    • Yes. Outline the state flow requirements.
      Need to make a decision on when that case is identified and how it's communicated down (e.g. would manually forcing the placement-map appearance feel appropriate)
    • No
  • Does it need a test plan?
    • Yes. Add the test plan as a comment in this task or attach the document.
    • No

User Stories

Starting a trace

  • As a user, I want to start adding points in placement mode without granting location permissions, as I may not want to map my physical location.
  • As a user, I only want to share my location when needed (e.g., for manual mode), so that I can map my physical location
  • As a user, I want to see a clear status such as “No points saved” when I begin, so that I know the trace hasn’t started yet. And it updates once I place points.

Adding/editing points

  • As a user, I want to add points by long-pressing on the map, so that I can precisely define the line I want to capture.
  • As a user, I want to move a point by long-pressing and dragging, so that I can correct mistakes or refine the trace.
  • As a user, I want points to autosave as I add them, so that my work is never lost.
  • As a user, I want the most recently added point to be selected and visually larger, so that I can easily identify and adjust it.

Delete or undo

  • As a user, I want to delete the entire shape by selecting the trace (not individual points) and tap the delete button with a confirmation, so that I can start over.
  • As a user, I want to delete/undo a single point by selecting the point and tapping the trash icon, so I can delete easily
  • As a user, I want undo to remove only the most recently added point, so that I can quickly correct mistakes.

Design


Dependencies


Additional Notes


Related Issues

Metadata

Metadata

Assignees

Labels

front-endTasks for Web Forms front-end package

Projects

Status

In Progress

Relationships

None yet

Development

No branches or pull requests

Issue actions