From 95dd4e120793e55960506efec5e041632821db4d Mon Sep 17 00:00:00 2001
From: "google-labs-jules[bot]"
<161369871+google-labs-jules[bot]@users.noreply.github.com>
Date: Tue, 13 Jan 2026 17:47:21 +0000
Subject: [PATCH] Fix blank screen on empty topics and improve timestamp
handling
- Added "No highlights found" empty state to `app/analyze/[videoId]/page.tsx` to prevent blank screens when AI generates zero topics.
- Updated `lib/ai-processing.ts` to use shared `formatTimestamp` utility, fixing a bug where local `formatTime` incorrectly formatted >60m timestamps as MM:SS (e.g. 70:00), causing validation failures.
- Relaxed `parseTimestamp` validation in `lib/timestamp-utils.ts` to support MM:SS formats where minutes >= 60 as a fallback.
---
app/analyze/[videoId]/page.tsx | 36 ++++++++++++++++++++++++++++++++++
lib/ai-processing.ts | 22 +++++++--------------
lib/timestamp-utils.ts | 5 ++++-
3 files changed, 47 insertions(+), 16 deletions(-)
diff --git a/app/analyze/[videoId]/page.tsx b/app/analyze/[videoId]/page.tsx
index 8ba3af1..31e8d72 100644
--- a/app/analyze/[videoId]/page.tsx
+++ b/app/analyze/[videoId]/page.tsx
@@ -1909,6 +1909,42 @@ export default function AnalyzePage() {
)}
+ {videoId && topics.length === 0 && pageState === 'IDLE' && !error && (
+
+
+
+
+
+ No highlights found
+
+
+ We processed the transcript but couldn't find any standout highlights matching your criteria. This sometimes happens if the video is very short, has no dialogue, or if the AI filters were too strict.
+