feat(frontend): create emotional stats page

This commit is contained in:
2026-02-09 18:47:01 +00:00
parent 8f9e30be4a
commit 2666670f56
2 changed files with 106 additions and 7 deletions

View File

@@ -10,6 +10,12 @@ type FrequencyWord = {
count: number;
}
type AverageEmotionByTopic = {
topic: string;
n: number;
[emotion: string]: string | number;
}
type Vocab = {
author: string;
events: number;
@@ -55,6 +61,7 @@ type TimeAnalysisResponse = {
// Content Analysis
type ContentAnalysisResponse = {
word_frequencies: FrequencyWord[];
average_emotion_by_topic: AverageEmotionByTopic[];
}
// Summary
@@ -84,8 +91,9 @@ export type {
User,
UserAnalysisResponse,
FrequencyWord,
AverageEmotionByTopic,
SummaryResponse,
TimeAnalysisResponse,
ContentAnalysisResponse,
FilterResponse
}
}