Handle no-tasks mode in guest v2
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

This commit is contained in:
Codex Agent
2026-02-05 18:12:29 +01:00
parent 5f75c7ca6a
commit ba56cb4e61
7 changed files with 76 additions and 10 deletions

View File

@@ -55,7 +55,7 @@ export interface EventData {
slug: string;
name: string;
default_locale: string;
engagement_mode?: 'tasks' | 'photo_only';
engagement_mode?: 'tasks' | 'photo_only' | 'no_tasks';
created_at: string;
updated_at: string;
join_token?: string | null;
@@ -283,7 +283,7 @@ export async function fetchEvent(eventKey: string): Promise<EventData> {
default_locale: typeof json?.default_locale === 'string' && json.default_locale.trim() !== ''
? json.default_locale
: DEFAULT_LOCALE,
engagement_mode: (json?.engagement_mode as 'tasks' | 'photo_only' | undefined) ?? 'tasks',
engagement_mode: (json?.engagement_mode as 'tasks' | 'photo_only' | 'no_tasks' | undefined) ?? 'tasks',
guest_upload_visibility:
json?.guest_upload_visibility === 'immediate' ? 'immediate' : 'review',
live_show: {