google / ground-platform

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

[Job settings] Allow organizers to control whether multiple submissions should be allowed per LOI (default false) #1650

Open gino-m opened 8 months ago

gino-m commented 8 months ago

Add a toggle to the create/edit survey flow below the "free form" toggle to allow survey organizers to control multiple submissions per site. This is currently the default behavior, but I think it confuses a lot of users, esp. those who are only doing "free form" data collection (e.g., drop a pin and answer a question). Multiple submissions per site can be considered an "advanced" feature.

One caveat: the wording here will need to be carefully crafted, since even when "disabled", two users might still add data to the same site if the site was defined by the survey organizer and if the data was collected when they're both offline. This can't happen with free-form data collection, since the offline user is the one adding the site, so other data collectors won't see the new sites to be able to add data to them. @amegantz

amegantz commented 2 months ago

image Here's a rough mock I put together. I'll leave it to @vittorino to decide how to treat this "advanced" option. WDYT?

Allow multiple data submissions per site When enabled, data collectors may submit data multiple times for each site. Note that if this option is disabled, multiple submissions may still occur if data collectors are offline and collecting data at the same time.

gino-m commented 2 months ago

@amegantz Great! Should we remove "Allow" from this option for consistency with other options on this page? Or add "Enable" to "Free form" and "WhISP integration"?

@vittorino Perhaps this should be an independent options (i.e., in its own card)?

amegantz commented 2 months ago

image Good point with "Allow." I removed it from the heading for consistency; the subheads can speak to the "allowing" behavior

vittorino commented 1 month ago

@gino-m Since multiple submissions doesn't depend on free-form, I separated the cards and made them independent.

Image