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