feat: integrate AI growth analyst experience

This commit is contained in:
2026-08-21 01:16:57 +03:30
parent 7a495b04c2
commit c79a1219bf
12 changed files with 2441 additions and 1421 deletions

View File

@@ -0,0 +1,11 @@
export type GrowthDisplayMode = 'loading' | 'content' | 'error';
export function reportDisplayMode(
status: string | undefined,
hasCurrentEvidence: boolean,
hasPreviousEvidence: boolean,
): GrowthDisplayMode {
if (hasCurrentEvidence || hasPreviousEvidence) return 'content';
if (status === 'QUEUED' || status === 'ANALYZING' || status === 'GENERATING') return 'loading';
return 'error';
}