Skip to content

Allow to disable surveys #9349

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions models/all/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ import {
serverDocumentsId,
createModel as serverDocumentsModel
} from '@hcengineering/model-server-controlled-documents'
import { surveyId, createModel as surveyModel } from '@hcengineering/model-survey'
import survey, { surveyId, createModel as surveyModel } from '@hcengineering/model-survey'
import { presenceId, createModel as presenceModel } from '@hcengineering/model-presence'
import chat, { chatId, createModel as chatModel } from '@hcengineering/model-chat'
import processes, { processId, createModel as processModel } from '@hcengineering/model-process'
Expand Down Expand Up @@ -456,7 +456,17 @@ export default function buildModel (): Builder {
classFilter: defaultFilter
}
],
[surveyModel, surveyId],
[
surveyModel,
surveyId,
{
label: survey.string.ConfigLabel,
description: survey.string.ConfigDescription,
enabled: false,
beta: true,
classFilter: defaultFilter
}
],
[presenceModel, presenceId],
[
chatModel,
Expand Down
4 changes: 3 additions & 1 deletion plugins/survey-assets/lang/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
"SurveySubmitConfirm": "Po odeslání nebude možné odpovědi změnit. Opravdu chcete odeslat nyní?",
"ValidateFail": "Některé povinné otázky nejsou zodpovězeny",
"ValidateInfo": "Takto bude formulář vypadat pro uživatele. Vyzkoušejte zadat odpovědi a vybrat možnosti, abyste si otestovali průzkum. Zelená ikona v horním záhlaví ukazuje, že je formulář správně vyplněn.",
"ValidateOk": "Formulář je správně vyplněn"
"ValidateOk": "Formulář je správně vyplněn",
"ConfigLabel": "Průzkumy",
"ConfigDescription": "Rozšíření pro správu průzkumů"
}
}
4 changes: 3 additions & 1 deletion plugins/survey-assets/lang/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
"SurveySubmitConfirm": "Nach dem Absenden können die Antworten nicht mehr geändert werden. Möchten Sie jetzt wirklich absenden?",
"ValidateFail": "Einige Pflichtfragen wurden nicht beantwortet",
"ValidateInfo": "So wird das Formular für die Benutzer aussehen. Versuchen Sie, Antworten einzugeben und Optionen auszuwählen, um die Umfrage zu testen. Das grüne Symbol oben zeigt an, dass das Formular korrekt ausgefüllt ist.",
"ValidateOk": "Das Formular ist korrekt ausgefüllt"
"ValidateOk": "Das Formular ist korrekt ausgefüllt",
"ConfigLabel": "Umfragen",
"ConfigDescription": "Erweiterung zur Verwaltung von Umfragen"
}
}
4 changes: 3 additions & 1 deletion plugins/survey-assets/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
"ValidateFail": "Some required questions are not answered",
"ValidateInfo": "This is how the form will look like for an user. Try to type answers and select options to test your survey. A green icon in the header above shows the form is filled properly",
"ValidateOk": "Form is filled correctly",
"EditAnswers": "Edit answers"
"EditAnswers": "Edit answers",
"ConfigLabel": "Surveys",
"ConfigDescription": "Extension to manage surveys"
}
}
4 changes: 3 additions & 1 deletion plugins/survey-assets/lang/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
"SurveySubmitConfirm": "Una vez enviado, no se podrán modificar las respuestas. ¿Seguro que desea enviarlo ahora?",
"ValidateFail": "Faltan respuestas a algunas preguntas obligatorias",
"ValidateInfo": "Así es como verán los usuarios el formulario. Pruebe ingresando respuestas y seleccionando opciones para probar la encuesta. El icono verde en la parte superior indica que el formulario está correctamente completado.",
"ValidateOk": "El formulario está correctamente completado"
"ValidateOk": "El formulario está correctamente completado",
"ConfigLabel": "Encuestas",
"ConfigDescription": "Extensión para gestionar encuestas"
}
}
4 changes: 3 additions & 1 deletion plugins/survey-assets/lang/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
"SurveySubmitConfirm": "Une fois soumis, les réponses ne pourront pas être modifiées. Voulez-vous vraiment soumettre maintenant ?",
"ValidateFail": "Certaines questions obligatoires n'ont pas été répondues",
"ValidateInfo": "Voici à quoi ressemblera le formulaire pour les utilisateurs. Essayez de saisir des réponses et de sélectionner des options pour tester le sondage. L'icône verte en haut indique que le formulaire est correctement rempli.",
"ValidateOk": "Le formulaire est correctement rempli"
"ValidateOk": "Le formulaire est correctement rempli",
"ConfigLabel": "Enquêtes",
"ConfigDescription": "Extension pour gérer les enquêtes"
}
}
4 changes: 3 additions & 1 deletion plugins/survey-assets/lang/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
"SurveySubmitConfirm": "Una volta inviato, non sarà possibile modificare le risposte. Sei sicuro di voler inviare ora?",
"ValidateFail": "Alcune domande obbligatorie non sono state risposte",
"ValidateInfo": "Ecco come apparirà il modulo per gli utenti. Prova a inserire risposte e selezionare opzioni per testare il sondaggio. L'icona verde in alto indica che il modulo è correttamente compilato.",
"ValidateOk": "Il modulo è correttamente compilato"
"ValidateOk": "Il modulo è correttamente compilato",
"ConfigLabel": "Sondaggi",
"ConfigDescription": "Estensione per gestire i sondaggi"
}
}
4 changes: 3 additions & 1 deletion plugins/survey-assets/lang/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
"ValidateFail": "未回答の必須質問があります",
"ValidateInfo": "ユーザーに表示されるフォームの見た目はこのようになります。回答や選択肢を入力してアンケートをテストしてください。ヘッダーの緑色のアイコンはフォームが正しく入力されていることを示します",
"ValidateOk": "フォームは正しく入力されています",
"EditAnswers": "回答を編集"
"EditAnswers": "回答を編集",
"ConfigLabel": "アンケート",
"ConfigDescription": "アンケートを管理する拡張機能"
}
}
4 changes: 3 additions & 1 deletion plugins/survey-assets/lang/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
"SurveySubmitConfirm": "Você não poderá alterar as respostas após o envio. Tem certeza de que deseja enviar agora?",
"ValidateFail": "Algumas perguntas obrigatórias não foram respondidas",
"ValidateInfo": "É assim que o formulário será exibido para um usuário. Tente digitar respostas e selecionar opções para testar sua pesquisa. Um ícone verde no cabeçalho acima indica que o formulário está preenchido corretamente",
"ValidateOk": "Formulário preenchido corretamente"
"ValidateOk": "Formulário preenchido corretamente",
"ConfigLabel": "Pesquisas",
"ConfigDescription": "Extensão para gerenciar pesquisas"
}
}
4 changes: 3 additions & 1 deletion plugins/survey-assets/lang/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
"ValidateFail": "Нет ответов на некоторые обязательные вопросы",
"ValidateInfo": "Так будет выглядеть форма для пользователя. Для проверки анкеты попробуйте вводить ответы и выбирать варианты. Зеленый значок в заголовке покажет, что форма заполнена правильно",
"ValidateOk": "Форма заполнена правильно",
"EditAnswers": "Редактировать ответы"
"EditAnswers": "Редактировать ответы",
"ConfigLabel": "Опросы",
"ConfigDescription": "Расширение реализующее опросы"
}
}
4 changes: 3 additions & 1 deletion plugins/survey-assets/lang/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
"SurveySubmitConfirm": "提交后无法更改答案。您确定现在提交吗?",
"ValidateFail": "某些必填问题未作答",
"ValidateInfo": "这是用户看到的表单样式。请尝试输入答案并选择选项来测试调查。顶部的绿色图标表示表单已正确填写。",
"ValidateOk": "表单填写正确"
"ValidateOk": "表单填写正确",
"ConfigLabel": "调查",
"ConfigDescription": "管理调查的扩展"
}
}
4 changes: 3 additions & 1 deletion plugins/survey/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ const survey = plugin(surveyId, {
ValidateFail: '' as IntlString,
ValidateInfo: '' as IntlString,
ValidateOk: '' as IntlString,
EditAnswers: '' as IntlString
EditAnswers: '' as IntlString,
ConfigLabel: '' as IntlString,
ConfigDescription: '' as IntlString
},
component: {
CreateSurvey: '' as AnyComponent,
Expand Down