From 770cfc9ff7a96b103ab7d1b141046fb4bf1eec76 Mon Sep 17 00:00:00 2001 From: Lucas Winther Date: Fri, 17 Jul 2026 14:14:43 +0200 Subject: [PATCH] Allow txt export with timestampts --- src/components/TranscriptView.tsx | 23 ++++++++++- src/lib/export.ts | 31 +++++++++++++- tests/export.test.ts | 69 +++++++++++++++++++++++++++++++ 3 files changed, 121 insertions(+), 2 deletions(-) diff --git a/src/components/TranscriptView.tsx b/src/components/TranscriptView.tsx index 5ba0439..d0cb010 100644 --- a/src/components/TranscriptView.tsx +++ b/src/components/TranscriptView.tsx @@ -1,5 +1,10 @@ import { useEffect, useState } from "react"; -import { exportFilename, transcriptToSrt, transcriptToTxt } from "../lib/export"; +import { + exportFilename, + transcriptToSrt, + transcriptToTimestampedTxt, + transcriptToTxt, +} from "../lib/export"; import type { TranscriptChunk } from "../worker/protocol"; interface TranscriptViewProps { @@ -121,6 +126,22 @@ export function TranscriptView({ .srt )} + {result && result.chunks.length > 0 && ( + + )}