ground-android icon indicating copy to clipboard operation
ground-android copied to clipboard

[Add point/polygon] Prompt user whether to add point, draw perimeter, or capture location as allowed by organizer

Open gino-m opened this issue 1 year ago • 6 comments

@rawbzz @vittorino FYI

gino-m avatar May 13 '24 15:05 gino-m

Screenshot 2024-05-13 at 11 53 38 AM

rawbzz avatar May 13 '24 19:05 rawbzz

@shobhitagarwal1612 Are you able to take one this issue?

jcqli avatar Jun 28 '24 14:06 jcqli

I have a couple of tasks already ongoing. We can take this one up once the proto migration is done.

shobhitagarwal1612 avatar Jun 28 '24 17:06 shobhitagarwal1612

@anandwana001 can you please coordinate with @rfontanarosa, who is working on https://github.com/google/ground-platform/issues/1744?

You only need to show to pictured UI if more than one value is specified in DrawGeometry.allowed_methods.

gino-m avatar Sep 04 '24 15:09 gino-m

Screenshot 2024-05-13 at 11 53 38 AM

@gino-m could you please help me with the figma access for this design? earlier password no more working

anandwana001 avatar Sep 05 '24 12:09 anandwana001

@anandwana001 did you get access to the figma? Anything else needed for this one?

kenstershiro avatar Oct 23 '24 14:10 kenstershiro

@anandwana001 did you get access to the figma? Anything else needed for this one?

@anandwana001 Gentle ping!

gino-m avatar Nov 04 '24 17:11 gino-m

@anandwana001 did you get access to the figma? Anything else needed for this one?

Sorry for the late response

Yes, got the figma access. Got all doubts cleared now. Thanks.

anandwana001 avatar Nov 04 '24 18:11 anandwana001

@anandwana001 We spoke. Let's try to implement this first, but eventually start creating tasks dynamically as they're needed rather than at the start of the data collection flow. Related to #2829 and likely other data collection issues. @shobhitagarwal1612 FYI

gino-m avatar Nov 25 '24 15:11 gino-m

@rawbzz A few edge case questions:

  • How does the user change the geometry type if they change their mind?
  • What happens when they click "Close"? Are they transported to the previous task? What if this is the first task?
  • In this design, the dialog appears before the user has seen the user-defined instructions for the task. They can see them behind the dialog, but this seems counterintuitive.
  • We need to add back "capture location", as discussed https://github.com/google/ground-platform/issues/1744#issuecomment-2303565052

All of this considered, should we be showing this selector directly on the task screen somehow, eg in place of the map?

@amegantz Can we think of a better prompt than "How will you map this site?" Note we already show "Map a new site" above, so we could just remove the title all together and just show the buttons where the map is currently?

gino-m avatar Dec 06 '24 21:12 gino-m

Image

rawbzz avatar Dec 17 '24 16:12 rawbzz

@rawbzz Looks great, thank you! Added a few variants to the Figma for your input when you have a sec 🙏

gino-m avatar Dec 18 '24 17:12 gino-m

@rawbzz, thanks for your feedback on Figma. @anandwana001 Latest tweaked designs:

Image

gino-m avatar Dec 18 '24 19:12 gino-m

@gino-m IIUC, only "drop a pin" and "draw area" should be the valid task types for addLoiTask flow. Why do we have "Capture Location" in the above mock?

shobhitagarwal1612 avatar Jan 06 '25 16:01 shobhitagarwal1612

This feature was recently deproritized by @lecrabe and others in favor of creating two jobs with different geometry tasks.

The presence of Capture location here refers to a separate FR by @n-clinton to allow new Lois to be added using that task. @kenstershiro can you please file or link to that here?

gino-m avatar Jan 06 '25 16:01 gino-m

Thanks for clarification. Clearing the assignee for now.

shobhitagarwal1612 avatar Jan 06 '25 17:01 shobhitagarwal1612

As discussed @lecrabe and others, this same capability can be approximated by adding two jobs with different geometry task types. Closing for now.

gino-m avatar Jan 06 '25 18:01 gino-m