Skip to content

added CE multipurpose template#197

Merged
SteRiccio merged 4 commits intomasterfrom
feat/ce-multipurpose-template
Mar 25, 2026
Merged

added CE multipurpose template#197
SteRiccio merged 4 commits intomasterfrom
feat/ce-multipurpose-template

Conversation

@SteRiccio
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new “Collect Earth (Multipurpose)” survey template option, wiring it through the frontend template selector, server-side template creation, and English UI labels.

Changes:

  • Add COLLECT_EARTH_MULTIPURPOSE as a selectable survey template type in the web UI.
  • Add English labels + description for the new template type.
  • Add a new IDM template file and update server-side template handling to treat it as a Collect Earth target.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
collect-webapp/frontend/src/surveydesigner/newSurvey/components/NewSurveyParametersForm.js Adds the new template type to the template dropdown options (plus formatting changes).
collect-webapp/frontend/public/assets/locales/labels_en.json Adds label + description strings for COLLECT_EARTH_MULTIPURPOSE.
collect-server/src/main/resources/org/openforis/collect/designer/templates/collect_earth_multipurpose.idm.xml Introduces the new Collect Earth multipurpose IDM template content.
collect-server/src/main/java/org/openforis/collect/web/service/SurveyService.java Ensures the new template type sets SurveyTarget.COLLECT_EARTH.
collect-server/src/main/java/org/openforis/collect/web/controller/SurveyController.java Adds COLLECT_EARTH_MULTIPURPOSE to the server-side template enum.
collect-server/src/main/java/org/openforis/collect/manager/SessionManager.java Changes dev-mode session initialization to auto-login as admin.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 6 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@SteRiccio SteRiccio merged commit 77e9c93 into master Mar 25, 2026
1 check failed
@SteRiccio SteRiccio deleted the feat/ce-multipurpose-template branch March 25, 2026 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants