feat: Unify background task representation and display by introducing generic status, progress, and task type fields across frontend and backend.

This commit is contained in:
2026-03-05 16:58:23 -03:00
parent 935e6b9675
commit c034f7223d
6 changed files with 195 additions and 73 deletions
+3 -3
View File
@@ -974,8 +974,8 @@ export interface BackgroundTask {
id: string;
title: string;
course_title?: string;
transcription_status?: 'idle' | 'queued' | 'processing' | 'failed' | 'completed';
video_generation_status?: 'idle' | 'queued' | 'processing' | 'failed' | 'completed';
generation_progress?: number;
task_type: 'lesson_transcription' | 'lesson_image' | 'course_image';
status: 'idle' | 'queued' | 'processing' | 'failed' | 'completed' | 'error';
progress: number;
updated_at: string;
}