+
+
Suivi des Questionnaires
+
+ Tableau de bord de suivi des questionnaires avec taux de réponse et statistiques
+
+
+
+ {/* Statistiques globales */}
+
+
+
+ Questionnaires
+
+
+
+ {statsGlobales?.totalQuestionnaires || 0}
+ Total créés
+
+
+
+
+
+ Envois
+
+
+
+ {statsGlobales?.totalEnvois || 0}
+ Total envoyés
+
+
+
+
+
+ Réponses
+
+
+
+ {statsGlobales?.totalReponses || 0}
+ Total reçues
+
+
+
+
+
+ Taux de réponse
+
+
+
+ {statsGlobales?.tauxReponseGlobal?.toFixed(1) || 0}%
+ Global
+
+
+
+
+ {/* Taux de réponse par formation */}
+
+
+ Taux de réponse par formation
+ Comparaison des taux de réponse entre les différentes formations
+
+
+ {statsByFormation && statsByFormation.length > 0 ? (
+
+
+
+
+
+
+
+
+
+
+
+ ) : (
+ Aucune donnée disponible
+ )}
+
+
+
+
+ {/* Évolution temporelle */}
+
+
+ Évolution dans le temps
+ Évolution mensuelle des envois et réponses
+
+
+ {evolutionTemporelle && evolutionTemporelle.length > 0 ? (
+
+
+
+
+
+
+
+
+
+
+
+ ) : (
+ Aucune donnée disponible
+ )}
+
+
+
+ {/* Taux de réponse par formation (camembert) */}
+
+
+ Répartition des réponses
+ Distribution des réponses par formation
+
+
+ {statsByFormation && statsByFormation.length > 0 ? (
+
+
+ `${entry.formationNom}: ${entry.tauxReponse}%`}
+ >
+ {statsByFormation.map((entry, index) => (
+ |
+ ))}
+
+
+
+
+ ) : (
+ Aucune donnée disponible
+ )}
+
+
+
+
+ {/* Comparaison par formateur */}
+
+
+ Comparaison par formateur
+ Taux de réponse et satisfaction moyenne par formateur
+
+
+ {statsByFormateur && statsByFormateur.length > 0 ? (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {/* Tableau détaillé */}
+
+
+
+
+ | Formateur |
+ Envois |
+ Réponses |
+ Taux |
+ Satisfaction |
+
+
+
+ {statsByFormateur.map((formateur) => (
+
+ | {formateur.formateurNom} |
+ {formateur.totalEnvois} |
+ {formateur.totalReponses} |
+
+ = 70 ? 'text-green-600' :
+ formateur.tauxReponse >= 50 ? 'text-orange-600' :
+ 'text-red-600'
+ }`}>
+ {formateur.tauxReponse}%
+
+ |
+
+ {formateur.moyenneSatisfaction ? (
+ {formateur.moyenneSatisfaction}/10
+ ) : (
+ -
+ )}
+ |
+
+ ))}
+
+
+
+
+ ) : (
+ Aucune donnée disponible
+ )}
+
+
+
+