From 6e83e90cf01cc453b5d554419778aedef32439fe Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Tue, 7 Nov 2023 12:26:23 -0500 Subject: [PATCH] feat: add open managed group type --- plugins/course-apps/teams/GroupEditor.jsx | 4 ++++ plugins/course-apps/teams/messages.js | 8 ++++++++ src/data/constants.js | 1 + 3 files changed, 13 insertions(+) diff --git a/plugins/course-apps/teams/GroupEditor.jsx b/plugins/course-apps/teams/GroupEditor.jsx index 3eaedeb04..8d0688fbe 100644 --- a/plugins/course-apps/teams/GroupEditor.jsx +++ b/plugins/course-apps/teams/GroupEditor.jsx @@ -22,6 +22,10 @@ const TeamTypeNameMessage = { label: messages.groupTypePrivateManaged, description: messages.groupTypePrivateManagedDescription, }, + [GroupTypes.OPEN_MANAGED]: { + label: messages.groupTypeOpenManaged, + description: messages.groupTypeOpenManagedDescription, + }, }; const GroupEditor = ({ diff --git a/plugins/course-apps/teams/messages.js b/plugins/course-apps/teams/messages.js index eeb809c96..7616d9ba9 100644 --- a/plugins/course-apps/teams/messages.js +++ b/plugins/course-apps/teams/messages.js @@ -93,6 +93,14 @@ const messages = defineMessages({ id: 'authoring.pagesAndResources.teams.group.types.open', defaultMessage: 'Open', }, + groupTypeOpenManaged: { + id: 'authoring.pagesAndResources.teams.group.types.open_managed', + defaultMessage: 'Open managed', + }, + groupTypeOpenManagedDescription: { + id: 'authoring.pagesAndResources.teams.group.types.open_managed.description', + defaultMessage: 'Only course staff can control teams. Learners can see other teams and choose it.', + }, groupTypeOpenDescription: { id: 'authoring.pagesAndResources.teams.group.types.open.description', defaultMessage: 'Learners can create, join, leave, and see other teams', diff --git a/src/data/constants.js b/src/data/constants.js index a1b6a906b..2a630af9a 100644 --- a/src/data/constants.js +++ b/src/data/constants.js @@ -37,6 +37,7 @@ export const GroupTypes = /** @type {const} */ ({ OPEN: 'open', PUBLIC_MANAGED: 'public_managed', PRIVATE_MANAGED: 'private_managed', + OPEN_MANAGED: 'open_managed', }); export const DivisionSchemes = /** @type {const} */ ({