Collect: Multiple projects support

We propose introducing a profile concept that combines all form files, general settings and administrator settings. Profiles would be identified by a name, color and unicode character (including emoji). The profile indicator replaces the overflow menu on the Collect landing screen:

Screen Shot 2021-01-13 at 10.40.14 AM

Tapping on this profile icon reveals a dialog that is anchored to the top of the screen and provides options to modify settings for the current profile, switch profiles or add a new profile:

The preferred way to add a profile is by scanning a QR code with the additional option to manually enter server details:

The configuration QR code may contain a profile name, color and character. If no name is specified, it defaults to the server domain. If no color is specified, one is computed from the profile name (this ensures the default color is consistent across devices). If no character is specified, the first character of the name is used. On upgrade, the currently-configured server is used to set those defaults. opendatakit.appspot.com is a special case and gets named “Demo”.

Once a profile has been created, all of its settings may be changed including profile name and server. An admin password can be used to restrict who can make those changes. Profile options for the current profile are accessible from Admin Settings > Profile. The current profile can be modified by scanning a QR code from Admin Settings > Profile > Configure via QR Code.

Profiles are deleted from the profile section in Admin Settings. If the current profile is the only profile, deletion is not available. A profile can only be deleted if it has no unsent submissions.

7 Likes