From d0dcb8a98bcba26d9a494ba84adcb8808ee36d50 Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Tue, 24 Mar 2026 23:53:51 +0530 Subject: [PATCH] refactor: simplify video presentation UI components and enhance loading/error states --- .../video-presentation/combined-player.tsx | 2 +- .../generate-video-presentation.tsx | 294 +++++++----------- 2 files changed, 119 insertions(+), 177 deletions(-) diff --git a/surfsense_web/components/tool-ui/video-presentation/combined-player.tsx b/surfsense_web/components/tool-ui/video-presentation/combined-player.tsx index f8e79f677..84147e94e 100644 --- a/surfsense_web/components/tool-ui/video-presentation/combined-player.tsx +++ b/surfsense_web/components/tool-ui/video-presentation/combined-player.tsx @@ -119,7 +119,7 @@ export function CombinedPlayer({ slides }: CombinedPlayerProps) { ); return ( -
{title}
+- Failed to generate video presentation -
-{error}
-Video Generation Failed
+{title}
+{error}
{title}
+- {compiledSlides.length} slides · {totalDuration.toFixed(1)}s ·{" "} - {FPS}fps -
-{title}
+
+ {compiledSlides.length} slides
Download Failed
-- {renderError} -
-
-
Presentation Cancelled
++ Presentation generation was cancelled +
+- Presentation already in progress -
-- Please wait for the current presentation to complete. -
-Presentation already in progress
++ Please wait for the current presentation to complete. +