Add the option to create/switch to TEMPLATE or REGULAR projects - #825
Open
manylon wants to merge 3 commits into
Open
Add the option to create/switch to TEMPLATE or REGULAR projects#825manylon wants to merge 3 commits into
TEMPLATE or REGULAR projects#825manylon wants to merge 3 commits into
Conversation
- Add a `ProjectType` enum (`regular`/`template`/`shared_datasets`) and a `CloudProject.project_type` property, mirroring QFieldCloud's new `project_type` field - Let users pick `Regular`/`Template` when creating a new project - Let users switch between `Regular`/`Template` when editing an existing project - Show a disabled dropdown reading "Shared datasets" instead, for projects whose type is `shared_datasets` - Fall back to "regular" when talking to older API servers that don't send the `project_type` field yet
Collaborator
suricactus
reviewed
Aug 13, 2026
suricactus
left a comment
Collaborator
There was a problem hiding this comment.
Nice first contribution. A few small comments.
suricactus
reviewed
Aug 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In the past we only had one type of projects in QFieldCloud - "REGULAR". With those projects we can do anything - sync from QField, QGIS, CLI etc.
However, opengisch/QFieldCloud#1735 introduced a new
TEMPLATEproject type.This PR introduces the ability to create a new project and mark it as
TEMPLATE, or change the type of existing project betweenTEMPLATEandREGULAR.ProjectTypeenum (regular/template/shared_datasets) and aCloudProject.project_typeproperty, mirroring QFieldCloud's newproject_typefieldRegular/Templatewhen creating a new projectRegular/Templatewhen editing an existing projectshared_datasetsproject_typefield yet