google / ground-platform

Ground hosted components: Web console, Cloud Functions, db config
http://groundplatform.org
Apache License 2.0
204 stars 84 forks source link

Per-survey data sharing agreement in create/edit survey #1856

Closed jcqli closed 1 month ago

jcqli commented 3 months ago

Adding agreement information in the create / edit survey flow

Have some multiple choice options or enabling custom text for survey creators to inform collectors of agreement

gino-m commented 3 months ago

Detailed FR:

@vittorino @rawbzz @amegantz for your attention.

gino-m commented 2 months ago

@vittorino Could you please paste the designs for changes to create/edit survey flow to allow the organizer to select or specify the data sharing agreement? See latest comment in Figma thread with @rawbzz for details.

rawbzz commented 2 months ago

Here's the screenshot for android Screenshot 2024-07-16 at 11 10 17 AM FYI, copy is still WIP

amegantz commented 2 months ago

image image PTAL

gino-m commented 2 months ago

@amegantz @vittorino This looks great!!! Perhaps it would be helpful to show the survey organizers the exact text the data collectors will see, along with an explanation that that's what they're looking at?

vittorino commented 2 months ago

Do you think it's still unclear that the text is what they will see? If so, I would recommend explaining in the instructions rather than simulating a preview because it would be weird if we don't show the same for all 3 options. In my opinion we would be making the UI more complex than what it needs to be.

vittorino commented 2 months ago

FYI, small change in the dialog (no horizontal margins) to match the design for mobile: image

amegantz commented 2 months ago

Do you think it's still unclear that the text is what they will see? If so, I would recommend explaining in the instructions rather than simulating a preview because it would be weird if we don't show the same for all 3 options. In my opinion we would be making the UI more complex than what it needs to be.

Like this? image

gino-m commented 2 months ago

@nwkotto Would you like to take this one on?

nwkotto commented 2 months ago

Just for reference, this should be a helpful PR to base this off of: https://github.com/google/ground-platform/pull/1190

nwkotto commented 2 months ago

Updating the survey proto:

Creating the data-agreement component:

Integrating component into create-survey:

nwkotto commented 1 month ago

Forgot to tag this, but this PR is the next step for this issue: https://github.com/google/ground-platform/pull/1959

jcqli commented 1 month ago

This is currently displayed during the onboarding flow, need to add selected option in the survey settings

gino-m commented 1 month ago

image

jcqli commented 1 month ago

Is this closed with https://github.com/google/ground-platform/pull/1984 now? @nwkotto