diff --git a/frontend/src/components/EmotionalStats.tsx b/frontend/src/components/EmotionalStats.tsx index ecc588f..a0a66f3 100644 --- a/frontend/src/components/EmotionalStats.tsx +++ b/frontend/src/components/EmotionalStats.tsx @@ -9,6 +9,9 @@ type EmotionalStatsProps = { const EmotionalStats = ({contentData}: EmotionalStatsProps) => { const rows = contentData.average_emotion_by_topic ?? []; + const overallEmotionAverage = contentData.overall_emotion_average ?? []; + const dominantEmotionDistribution = contentData.dominant_emotion_distribution ?? []; + const emotionBySource = contentData.emotion_by_source ?? []; const lowSampleThreshold = 20; const stableSampleThreshold = 50; const emotionKeys = rows.length @@ -64,39 +67,104 @@ const EmotionalStats = ({contentData}: EmotionalStatsProps) => { return (
Read confidence together with sample size. Topics with fewer than {lowSampleThreshold} events are usually noisy and less reliable.
+Use the strength score together with post count. Topics with fewer than {lowSampleThreshold} events are often noisy.
- Confidence reflects how strongly one emotion leads within a topic, not model accuracy. Use larger samples for stronger conclusions. + Strength means how far the top emotion is ahead in that topic. It does not mean model accuracy.
Average score for each emotion.
+ {!overallEmotionAverage.length ? ( +How often each emotion is dominant.
+ {!dominantEmotionDistribution.length ? ( +Leading emotion in each source.
+ {!emotionBySource.length ? ( +Per-topic mood with strength and post count.
+