From 72c7f077aed580ba78c5051b1d6cb6b3a3c46658 Mon Sep 17 00:00:00 2001 From: Manus Date: Wed, 21 Jan 2026 12:37:01 -0500 Subject: [PATCH] =?UTF-8?q?Checkpoint:=20Modification=20de=20l'affichage?= =?UTF-8?q?=20de=20la=20fen=C3=AAtre=20des=20rappels=20automatiques=20:=20?= =?UTF-8?q?regroupement=20des=20informations=20de=20formation/s=C3=A9quenc?= =?UTF-8?q?e/dates=20sur=20une=20seule=20ligne=20au=20lieu=20de=20plusieur?= =?UTF-8?q?s=20badges,=20et=20resserrement=20des=20colonnes=20du=20tableau?= =?UTF-8?q?=20pour=20une=20meilleure=20lisibilit=C3=A9.=20Format=20compact?= =?UTF-8?q?=20:=20"Formation=20=E2=80=BA=20S=C3=A9quence=20:=20Date1,=20Da?= =?UTF-8?q?te2".=20D=C3=A9ploy=C3=A9=20sur=20le=20serveur=20de=20productio?= =?UTF-8?q?n.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/pages/AdminRappels.tsx | 62 +++++++++++++++++++++++++++---- todo.md | 8 ++++ 2 files changed, 63 insertions(+), 7 deletions(-) diff --git a/client/src/pages/AdminRappels.tsx b/client/src/pages/AdminRappels.tsx index fe4d716..dc024d2 100644 --- a/client/src/pages/AdminRappels.tsx +++ b/client/src/pages/AdminRappels.tsx @@ -282,6 +282,54 @@ export default function AdminRappels() { return acc; }, {}); + return ( +
+ {Object.values(grouped).map((group: any, groupIdx: number) => ( +
+ {group.formationNom} + + {group.sequenceNom} + : + + {group.dates.map((d: any, idx: number) => ( + + {idx > 0 && ", "} + Date {d.ordre} + + ))} + +
+ ))} +
+ ); + }; + + const formatDatesInfoOLD = (rappel: any) => { + if (!rappel.datesDetails || rappel.datesDetails.length === 0) { + return ( +
+ + + Toutes les dates + +
+ ); + } + + // Grouper par formation et séquence + const grouped = rappel.datesDetails.reduce((acc: any, date: any) => { + const key = `${date.formationNom}|||${date.sequenceNom}`; + if (!acc[key]) { + acc[key] = { + formationNom: date.formationNom, + sequenceNom: date.sequenceNom, + dates: [] + }; + } + acc[key].dates.push(date); + return acc; + }, {}); + return (
{Object.values(grouped).map((group: any, groupIdx: number) => ( @@ -384,14 +432,14 @@ export default function AdminRappels() { - Nom - Template d'email - Délai - Heure + Nom + Template + Délai + Heure Dates concernées - Pièce jointe - Statut - Actions + Pièce jointe + Statut + Actions diff --git a/todo.md b/todo.md index e7f0f40..46c995f 100644 --- a/todo.md +++ b/todo.md @@ -1114,3 +1114,11 @@ - [x] Vérifier que le déploiement fonctionne correctement (PROBLÈME: modifications non visibles) - [x] Identifier la cause du problème (classes Tailwind arbitraires non compilées) - [x] Corriger et redéployer (utilisation de la classe .page-title dans index.css) + +## Modification affichage rappels automatiques + +- [x] Analyser la structure actuelle de la fenêtre des rappels automatiques +- [x] Regrouper les informations de la même formation/séquence sur une seule ligne +- [x] Resserrer les colonnes pour une meilleure lisibilité +- [x] Tester les modifications sur sandbox +- [x] Déployer sur le serveur de production