From a807183e2b8bfb9aa4ff923a0efe81e6ffbfc893 Mon Sep 17 00:00:00 2001 From: Manus Sandbox Date: Sun, 23 Nov 2025 16:42:38 -0500 Subject: [PATCH] =?UTF-8?q?Checkpoint:=20Correction=20de=20l'incoh=C3=A9re?= =?UTF-8?q?nce=20dans=20les=20statistiques=20de=20r=C3=A9partition=20des?= =?UTF-8?q?=20apprenants=20par=20fonction.=20Le=20tableau=20de=20bord=20pr?= =?UTF-8?q?incipal=20et=20le=20tableau=20de=20bord=20analytique=20affichen?= =?UTF-8?q?t=20maintenant=20les=20m=C3=AAmes=20pourcentages=20car=20ils=20?= =?UTF-8?q?comptent=20tous=20les=20deux=20le=20nombre=20d'apprenants=20(et?= =?UTF-8?q?=20non=20le=20nombre=20d'inscriptions).=20Les=20deux=20graphiqu?= =?UTF-8?q?es=20sont=20maintenant=20coh=C3=A9rents.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/pages/AdminAnalytics.tsx | 2 +- todo.md | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/client/src/pages/AdminAnalytics.tsx b/client/src/pages/AdminAnalytics.tsx index 841967e..5c6e187 100644 --- a/client/src/pages/AdminAnalytics.tsx +++ b/client/src/pages/AdminAnalytics.tsx @@ -90,7 +90,7 @@ export default function AdminAnalytics() { const fonctionData = participationFonction?.map(item => ({ name: item.fonction === 'directeur' ? 'Directeurs' : item.fonction === 'chef_service' ? 'Chefs de service' : 'Autres', - value: Number(item.totalInscriptions), + value: Number(item.totalApprenants), confirmees: Number(item.inscriptionsConfirmees), })) || []; diff --git a/todo.md b/todo.md index d5977c7..1c605e8 100644 --- a/todo.md +++ b/todo.md @@ -529,3 +529,9 @@ - [x] Créer le schéma de base de données pour les alertes - [ ] Créer l'interface de configuration des alertes (fonctionnalité future) - [ ] Implémenter le système de vérification et d'envoi des alertes (fonctionnalité future) + +## Correction incohérence statistiques + +- [x] Identifier la source de l'incohérence entre tableau de bord principal et analytique +- [x] Uniformiser les calculs de répartition par fonction +- [x] Vérifier la cohérence des données affichées