feat: add loading page for when dataset is loading

Originally there was a simple "Loading" text, however this looked bad and might lead a user to think that the page had frozen.

There is now a more comprehensive loading animation which users might be happy to sit on for a few minutes.
This commit is contained in:
2026-03-04 18:39:20 +00:00
parent 29c90ddfff
commit b6815c490a
4 changed files with 127 additions and 6 deletions

View File

@@ -55,16 +55,24 @@ type TimeAnalysisResponse = {
}
// Content Analysis
type Emotion = {
emotion_anger: number;
emotion_disgust: number;
emotion_fear: number;
emotion_joy: number;
emotion_sadness: number;
};
type NGram = {
count: number;
ngram: string;
}
type AverageEmotionByTopic = {
topic: string;
n: number;
[emotion: string]: string | number;
}
type AverageEmotionByTopic = Emotion & {
n: number;
topic: string;
};
type ContentAnalysisResponse = {
word_frequencies: FrequencyWord[];