From 155d25a7ebb72d83c9bbb61e895559df768945e4 Mon Sep 17 00:00:00 2001
From: Arthur Dodin
Date: Sun, 23 Aug 2026 09:57:30 +0200
Subject: [PATCH 1/7] feat: 2026 billetweb links
---
.../components/WEI_SDI_Food/foodSection.tsx | 19 +++++++++++++------
.../components/WEI_SDI_Food/sdiSection.tsx | 2 +-
.../components/WEI_SDI_Food/weiSection.tsx | 2 +-
3 files changed, 15 insertions(+), 8 deletions(-)
diff --git a/frontend/src/components/WEI_SDI_Food/foodSection.tsx b/frontend/src/components/WEI_SDI_Food/foodSection.tsx
index 6c11a73..ccd4fb0 100644
--- a/frontend/src/components/WEI_SDI_Food/foodSection.tsx
+++ b/frontend/src/components/WEI_SDI_Food/foodSection.tsx
@@ -1,7 +1,7 @@
import { useEffect, useState } from 'react';
import { checkFoodStatus } from '../../services/requests/event.service';
-import { getPermission } from '../../services/requests/user.service';
+// import { getPermission } from '../../services/requests/user.service';
import { checkUploadAvailability } from '../../utils/utils';
import { Card, CardContent, CardHeader, CardTitle } from '../ui/card';
@@ -10,7 +10,7 @@ export const FoodSection = () => {
const [isMenuAvailable, setIsMenuAvailable] = useState(false);
const [isAllergensAvailable, setIsAllergensAvailable] = useState(false);
- const permission = getPermission();
+ // const permission = getPermission();
const menuUrl = `${import.meta.env.VITE_API_URL}/uploads/foodmenu/menu.pdf`;
const allergensUrl = `${import.meta.env.VITE_API_URL}/uploads/foodmenu/allergens.pdf`;
@@ -103,11 +103,18 @@ export const FoodSection = () => {
- {(permission === 'Student' || permission === 'Admin') && (
+
+
+
+ {/* {(permission === 'Student' || permission === 'Admin') && (
La billetterie du repas test est réservée aux Chefs d'Equipe et Organisateurs de
@@ -119,7 +126,7 @@ export const FoodSection = () => {
className="w-full h-[600px] border-none"
/>
- )}
+ )} */}
>
)}
diff --git a/frontend/src/components/WEI_SDI_Food/sdiSection.tsx b/frontend/src/components/WEI_SDI_Food/sdiSection.tsx
index 7711c83..572359d 100644
--- a/frontend/src/components/WEI_SDI_Food/sdiSection.tsx
+++ b/frontend/src/components/WEI_SDI_Food/sdiSection.tsx
@@ -94,7 +94,7 @@ export const SdiSection = () => {
diff --git a/frontend/src/components/WEI_SDI_Food/weiSection.tsx b/frontend/src/components/WEI_SDI_Food/weiSection.tsx
index 0ad9bbb..749c209 100644
--- a/frontend/src/components/WEI_SDI_Food/weiSection.tsx
+++ b/frontend/src/components/WEI_SDI_Food/weiSection.tsx
@@ -93,7 +93,7 @@ export const WeiSection = () => {
From 9cce6d9559ddfc4b0db32d2bff7ef6792826d4ea Mon Sep 17 00:00:00 2001
From: Antoine
Date: Sun, 23 Aug 2026 10:44:33 +0200
Subject: [PATCH 2/7] feat: add parental authorization notice for minors in WEI
section (wrong link)
---
.../components/WEI_SDI_Food/weiSection.tsx | 26 ++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
diff --git a/frontend/src/components/WEI_SDI_Food/weiSection.tsx b/frontend/src/components/WEI_SDI_Food/weiSection.tsx
index 749c209..4195300 100644
--- a/frontend/src/components/WEI_SDI_Food/weiSection.tsx
+++ b/frontend/src/components/WEI_SDI_Food/weiSection.tsx
@@ -1,6 +1,7 @@
import { useEffect, useState } from 'react';
import { useOnboarding } from '../../contexts/onboarding';
+import { useUser } from '../../contexts/user';
import { decodeToken, getToken } from '../../services/requests/auth.service';
import { checkWEIStatus } from '../../services/requests/event.service';
import { Card, CardContent, CardHeader, CardTitle } from '../ui/card';
@@ -18,6 +19,8 @@ export const WeiSection = () => {
const { status: onboardingStatus, loading: onboardingLoading } = useOnboarding();
+ const { user, loading: userLoading } = useUser();
+
useEffect(() => {
const script = document.createElement('script');
script.src = 'https://www.billetweb.fr/js/export.js';
@@ -30,10 +33,11 @@ export const WeiSection = () => {
useEffect(() => {
if (!roles.includes('Nouveau')) return;
if (onboardingLoading) return;
+ if (userLoading) return;
setHasContactInformation(onboardingStatus?.hasemergencyContactInformation ?? true);
setHasVssForm(onboardingStatus ? onboardingStatus.vss_form == 'validated' : true);
setNeedsVssForm(onboardingStatus?.needsVssForm ?? false);
- }, [roles, onboardingLoading, onboardingStatus]);
+ }, [roles, onboardingLoading, onboardingStatus, userLoading]);
const fetchStatus = async () => {
try {
@@ -55,6 +59,26 @@ export const WeiSection = () => {
d'Intégration 2025 !
+ {!user?.majeur && (
+
+
+
+ ⚠️ Attention, pour participer au WEI en étant mineur tu as besoin d'une autorisation
+ parentale!
+
+
+ Tu la trouvera en{' '}
+
+ cliquant ici
+
+ , une fois complétée il faudra la renvoyer à{' '}
+
+ lucie.fritig@utt.fr
+
+
+
+
+ )}
{!isWEIOpen ? (
From ef800c3d0c4fcae43ffaca50941055fa16fcb8de Mon Sep 17 00:00:00 2001
From: Antoine
Date: Sun, 23 Aug 2026 11:54:54 +0200
Subject: [PATCH 3/7] feat: add parental authorization upload and link in WEI
section
---
backend/server.ts | 1 +
backend/src/middlewares/multer.middleware.ts | 3 +++
frontend/src/components/Admin/adminExportImport.tsx | 13 +++++++++++++
frontend/src/components/WEI_SDI_Food/weiSection.tsx | 4 +++-
frontend/src/pages/admin/adminExport.tsx | 5 +++++
5 files changed, 25 insertions(+), 1 deletion(-)
diff --git a/backend/server.ts b/backend/server.ts
index 2530fe2..5f5b6dc 100644
--- a/backend/server.ts
+++ b/backend/server.ts
@@ -73,6 +73,7 @@ async function startServer() {
app.use('/api/uploads/notebooks', express.static(path.join(__dirname, '/uploads/notebooks')));
app.use('/api/uploads/foodmenu', express.static(path.join(__dirname, '/uploads/foodmenu')));
app.use('/api/uploads/plannings', express.static(path.join(__dirname, '/uploads/plannings')));
+ app.use('/api/uploads/other', express.static(path.join(__dirname, '/uploads/other')));
app.use('/api/exports/bus', express.static(path.join(__dirname, '/exports/bus')));
app.use('/api/exports/teammembers', express.static(path.join(__dirname, '/exports/teammembers')));
diff --git a/backend/src/middlewares/multer.middleware.ts b/backend/src/middlewares/multer.middleware.ts
index 193ab05..4528876 100644
--- a/backend/src/middlewares/multer.middleware.ts
+++ b/backend/src/middlewares/multer.middleware.ts
@@ -30,6 +30,9 @@ const acceptedMIMETypesByItem: Record> = {
fisea: [MIMEType.PDF],
master: [MIMEType.PDF],
},
+ other: {
+ parental_authorization: [MIMEType.PDF],
+ },
};
export const createUploadMiddleware = () => {
diff --git a/frontend/src/components/Admin/adminExportImport.tsx b/frontend/src/components/Admin/adminExportImport.tsx
index 5f155e8..e59f204 100644
--- a/frontend/src/components/Admin/adminExportImport.tsx
+++ b/frontend/src/components/Admin/adminExportImport.tsx
@@ -155,3 +155,16 @@ export const AdminImportNotebooks = () => {
);
};
+
+export const AdminImportOther = () => {
+ return (
+
+
+ Autres imports
+
+
+
+
+
+ );
+};
diff --git a/frontend/src/components/WEI_SDI_Food/weiSection.tsx b/frontend/src/components/WEI_SDI_Food/weiSection.tsx
index 4195300..aaa91ce 100644
--- a/frontend/src/components/WEI_SDI_Food/weiSection.tsx
+++ b/frontend/src/components/WEI_SDI_Food/weiSection.tsx
@@ -68,7 +68,9 @@ export const WeiSection = () => {
Tu la trouvera en{' '}
-
+
cliquant ici
, une fois complétée il faudra la renvoyer à{' '}
diff --git a/frontend/src/pages/admin/adminExport.tsx b/frontend/src/pages/admin/adminExport.tsx
index a44d62c..f372843 100644
--- a/frontend/src/pages/admin/adminExport.tsx
+++ b/frontend/src/pages/admin/adminExport.tsx
@@ -2,6 +2,7 @@ import {
AdminExportConnect,
AdminImportFoodMenu,
AdminImportNotebooks,
+ AdminImportOther,
AdminImportPlannings,
} from '../../components/Admin/adminExportImport';
import { AdminLayout } from '../../components/Admin/adminLayout';
@@ -25,6 +26,10 @@ const AdminPageExport: React.FC = () => (
+
+
+
+
);
From 4cc5033c587338d403a4a13a3506925f26111e6a Mon Sep 17 00:00:00 2001
From: Antoine D <106921102+Suboyyy@users.noreply.github.com>
Date: Sun, 23 Aug 2026 12:12:16 +0200
Subject: [PATCH 4/7] Update
frontend/src/components/WEI_SDI_Food/weiSection.tsx
Co-authored-by: Arthur Dodin <52950784+tuturd@users.noreply.github.com>
---
frontend/src/components/WEI_SDI_Food/weiSection.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/frontend/src/components/WEI_SDI_Food/weiSection.tsx b/frontend/src/components/WEI_SDI_Food/weiSection.tsx
index aaa91ce..fae72a8 100644
--- a/frontend/src/components/WEI_SDI_Food/weiSection.tsx
+++ b/frontend/src/components/WEI_SDI_Food/weiSection.tsx
@@ -67,7 +67,7 @@ export const WeiSection = () => {
parentale!
- Tu la trouvera en{' '}
+ Tu la trouveras en{' '}
From 3a8675d30ac71e7e6ccec932b6dec5cd851b541e Mon Sep 17 00:00:00 2001
From: Antoine D <106921102+Suboyyy@users.noreply.github.com>
Date: Sun, 23 Aug 2026 12:12:28 +0200
Subject: [PATCH 5/7] Update
frontend/src/components/WEI_SDI_Food/weiSection.tsx
Co-authored-by: Arthur Dodin <52950784+tuturd@users.noreply.github.com>
---
frontend/src/components/WEI_SDI_Food/weiSection.tsx | 1 +
1 file changed, 1 insertion(+)
diff --git a/frontend/src/components/WEI_SDI_Food/weiSection.tsx b/frontend/src/components/WEI_SDI_Food/weiSection.tsx
index fae72a8..ca142d0 100644
--- a/frontend/src/components/WEI_SDI_Food/weiSection.tsx
+++ b/frontend/src/components/WEI_SDI_Food/weiSection.tsx
@@ -70,6 +70,7 @@ export const WeiSection = () => {
Tu la trouveras en{' '}
cliquant ici
From 06de25a98a7a7f6ded78d340918ac18feb30a997 Mon Sep 17 00:00:00 2001
From: Antoine D <106921102+Suboyyy@users.noreply.github.com>
Date: Sun, 23 Aug 2026 12:12:36 +0200
Subject: [PATCH 6/7] Update
frontend/src/components/WEI_SDI_Food/weiSection.tsx
Co-authored-by: Arthur Dodin <52950784+tuturd@users.noreply.github.com>
---
frontend/src/components/WEI_SDI_Food/weiSection.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/frontend/src/components/WEI_SDI_Food/weiSection.tsx b/frontend/src/components/WEI_SDI_Food/weiSection.tsx
index ca142d0..1deabfc 100644
--- a/frontend/src/components/WEI_SDI_Food/weiSection.tsx
+++ b/frontend/src/components/WEI_SDI_Food/weiSection.tsx
@@ -76,7 +76,7 @@ export const WeiSection = () => {
, une fois complétée il faudra la renvoyer à{' '}
- lucie.fritig@utt.fr
+ lucie.fritig+inte26-documents-wei@utt.fr
From 40e9044687785d2451fabf57a94524e8321b1561 Mon Sep 17 00:00:00 2001
From: Antoine
Date: Sun, 23 Aug 2026 12:16:43 +0200
Subject: [PATCH 7/7] fix: lint
---
frontend/src/components/WEI_SDI_Food/weiSection.tsx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/frontend/src/components/WEI_SDI_Food/weiSection.tsx b/frontend/src/components/WEI_SDI_Food/weiSection.tsx
index 1deabfc..c728b01 100644
--- a/frontend/src/components/WEI_SDI_Food/weiSection.tsx
+++ b/frontend/src/components/WEI_SDI_Food/weiSection.tsx
@@ -71,7 +71,8 @@ export const WeiSection = () => {
+ href={`${import.meta.env.VITE_API_URL}/uploads/other/parental_authorization.pdf`}
+ rel="noreferrer">
cliquant ici
, une fois complétée il faudra la renvoyer à{' '}