Update guest v2 home and tasks experience

This commit is contained in:
Codex Agent
2026-02-03 18:59:30 +01:00
parent a820ef2e8b
commit 7f1e6c06fb
31 changed files with 753 additions and 259 deletions

View File

@@ -11,6 +11,7 @@ export interface EventBrandingPayload {
heading_font?: string | null;
body_font?: string | null;
font_size?: 's' | 'm' | 'l' | null;
welcome_message?: string | null;
icon?: string | null;
logo_mode?: 'emoticon' | 'upload' | null;
logo_value?: string | null;
@@ -123,6 +124,8 @@ export interface EventPackage {
export interface EventStats {
onlineGuests: number;
tasksSolved: number;
guestCount: number;
likesCount: number;
latestPhotoAt: string | null;
}
@@ -339,6 +342,8 @@ export async function fetchStats(eventKey: string): Promise<EventStats> {
return {
onlineGuests: json.online_guests ?? json.onlineGuests ?? 0,
tasksSolved: json.tasks_solved ?? json.tasksSolved ?? 0,
guestCount: json.guest_count ?? json.guestCount ?? 0,
likesCount: json.likes_count ?? json.likesCount ?? 0,
latestPhotoAt: json.latest_photo_at ?? json.latestPhotoAt ?? null,
};
}