From 4350088321443a9ad7b1e06e46b53dcc7e6f3edb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Poncin?= Date: Mon, 24 Aug 2026 20:20:50 +0200 Subject: [PATCH] feat: bachelor branch type --- backend/src/services/team.service.ts | 10 ++++++++-- frontend/src/components/Admin/adminUser.tsx | 1 + frontend/src/components/profil/profilForm.tsx | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/backend/src/services/team.service.ts b/backend/src/services/team.service.ts index aba6cf5..b476237 100644 --- a/backend/src/services/team.service.ts +++ b/backend/src/services/team.service.ts @@ -298,7 +298,7 @@ export const teamDistribution = async () => { // Filtrer les utilisateurs en fonction de la spécialité const tcStudents: StudentRow[] = filteredStudents - .filter((student) => student.branch === 'TC') + .filter((student) => student.branch === 'TC' || student.branch === 'IA_BACH') .map((student) => ({ userId: student.userId, email: student.email, @@ -324,7 +324,13 @@ export const teamDistribution = async () => { })); const otherStudents: StudentRow[] = filteredStudents - .filter((student) => student.branch !== 'TC' && student.branch !== 'RI' && student.branch !== 'MM') + .filter( + (student) => + student.branch !== 'TC' && + student.branch !== 'RI' && + student.branch !== 'MM' && + student.branch !== 'IA_BACH', + ) .map((student) => ({ userId: student.userId, email: student.email, diff --git a/frontend/src/components/Admin/adminUser.tsx b/frontend/src/components/Admin/adminUser.tsx index f0b632b..1bbf1fd 100644 --- a/frontend/src/components/Admin/adminUser.tsx +++ b/frontend/src/components/Admin/adminUser.tsx @@ -35,6 +35,7 @@ const branchOptions = [ { value: 'GM_APPR', label: 'Génie Mécanique en Apprentissage' }, { value: 'SN_APPR', label: 'Système Numérique en Apprentissage' }, { value: 'Branch', label: 'Branche' }, + { value: 'IA_BACH', label: 'Intelligence Artificielle en bachelor' }, { value: 'MM', label: 'Mécanique et Matériaux' }, { value: 'MA', label: 'Master' }, { value: 'RI', label: 'Ressources Internationales' }, diff --git a/frontend/src/components/profil/profilForm.tsx b/frontend/src/components/profil/profilForm.tsx index 1209b90..2af7538 100644 --- a/frontend/src/components/profil/profilForm.tsx +++ b/frontend/src/components/profil/profilForm.tsx @@ -20,6 +20,7 @@ const branchOptions = [ { value: 'GM_APPR', label: 'Génie Mécanique en Apprentissage' }, { value: 'SN_APPR', label: 'Systeme Numérique en Apprentissage' }, { value: 'Branch', label: 'Branche' }, + { value: 'IA_BACH', label: 'Intelligence Artificielle en bachelor' }, { value: 'MM', label: 'Mécanique et Matériaux' }, { value: 'Master', label: 'Master' }, { value: 'RI', label: 'Ressources International' },