From cf383205bfad38751303dfeb19b4c2527b364ba8 Mon Sep 17 00:00:00 2001 From: Aaron Nelson Date: Sun, 26 Apr 2026 18:50:23 -0400 Subject: [PATCH] =?UTF-8?q?Capture=20=E2=80=94=20progress=20bar=20with=20e?= =?UTF-8?q?lapsed/remaining=20time,=2010=20minute=20limit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/capture/page.tsx | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/app/capture/page.tsx b/app/capture/page.tsx index 0de2128..c2c0fd8 100644 --- a/app/capture/page.tsx +++ b/app/capture/page.tsx @@ -204,14 +204,28 @@ export default function CapturePage() { )} {state === 'recording' && ( <> -

+

recording

- {countdown <= 15 && ( -

- {countdown}s -

- )} +
+
+
+

+ {(() => { + const elapsed = MAX_SECONDS - countdown; + const em = Math.floor(elapsed / 60); + const es = elapsed % 60; + const rm = Math.floor(countdown / 60); + const rs = countdown % 60; + return `${em}:${es.toString().padStart(2,'0')} / ${rm}:${rs.toString().padStart(2,'0')} left`; + })()} +

)} {state === 'transcribing' && (