Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

fix(ui): let the progress bar own its spacing, and name the model download

Etienne Lescotf9bc5a4ad8f4
diff --git a/src/components/ai-edition/TranscriptionStatus.tsx b/src/components/ai-edition/TranscriptionStatus.tsx
index cd7618b61..5d74dd55f 100644
--- a/src/components/ai-edition/TranscriptionStatus.tsx
+++ b/src/components/ai-edition/TranscriptionStatus.tsx
@@ -24,10 +24,15 @@ export function useTranscriptionLabel(): (view: AssetTranscriptionView) => strin
case "queued":
return t("mediaStage.pendingTranscription");
case "running": {
+ // The first-run model download is a 253 MB wait with nothing else on
+ // screen to explain it, so it gets its own words rather than being
+ // labelled "Transcribing" — this is the phase most often mistaken for
+ // a hang, and the one `phase` was carried through the store for.
+ if (view.phase === "loading-model") return t("mediaStage.downloadingModel");
// Transcribing a long recording runs for minutes. A bare
// "Transcribing…" for that whole time is indistinguishable from a
// hang, so append the percentage as soon as the main process reports
- // chunk progress — and only then (see `TranscriptionProgress`).
+ // chunk progress — and only then (see `TranscriptionProgressBar`).
const fraction = progressFraction(view.progress);
return fraction === null
? t("mediaStage.transcribing")
@@ -96,20 +101,26 @@ export function TranscriptionStatusDot({
* the job actually reports measurable progress — a job that is queued,
* extracting audio or downloading the model has no meaningful fraction, and a
* bar pinned at 0% reads as "stuck" where the spinner reads as "working".
+ *
+ * It owns its own spacing on purpose. A wrapper in the caller cannot render
+ * itself away with the bar, and in a flex column (where margins don't collapse)
+ * an empty one still takes its margins — 8px of dead gap under every media card
+ * that isn't transcribing.
*/
export function TranscriptionProgressBar({ view }: { view: AssetTranscriptionView }) {
- const label = useTranscriptionLabel()(view);
+ const label = useTranscriptionLabel();
const fraction = view.status === "running" ? progressFraction(view.progress) : null;
if (fraction === null) return null;
return (
<div
role="progressbar"
- aria-label={label}
+ aria-label={label(view)}
aria-valuemin={0}
aria-valuemax={100}
aria-valuenow={Math.round(fraction * 100)}
style={{
height: 4,
+ margin: "-8px 0 16px",
borderRadius: 999,
background: "var(--surface-3)",
overflow: "hidden",
diff --git a/src/components/ai-edition/v4/MediaStage.tsx b/src/components/ai-edition/v4/MediaStage.tsx
index cd3e2e424..13cdef7b8 100644
--- a/src/components/ai-edition/v4/MediaStage.tsx
+++ b/src/components/ai-edition/v4/MediaStage.tsx
@@ -272,10 +272,8 @@ export function MediaStage() {
</span>
</div>
- {/* Renders itself away unless the run reports measurable progress. */}
- <div style={{ margin: "-8px 0 16px" }}>
- <TranscriptionProgressBar view={selectedTranscription} />
- </div>
+ {/* Renders itself away — spacing included — unless the run reports progress. */}
+ <TranscriptionProgressBar view={selectedTranscription} />
{selectedTranscription.failure ? (
<p
diff --git a/src/i18n/locales/ar/editor.json b/src/i18n/locales/ar/editor.json
index 255bad4c1..81f5fe6ca 100644
--- a/src/i18n/locales/ar/editor.json
+++ b/src/i18n/locales/ar/editor.json
@@ -140,6 +140,7 @@
"transcriptEmpty": "النص فارغ.",
"notGeneratedHint": "لم يُنشأ بعد — اختر لغة وانقر على إعادة الإنشاء.",
"transcribing": "جارٍ النسخ",
+ "downloadingModel": "جارٍ تنزيل نموذج الكلام",
"transcribingEllipsis": "جارٍ النسخ…",
"pendingTranscription": "بانتظار النسخ",
"transcriptionFailed": "فشل النسخ",
diff --git a/src/i18n/locales/en/editor.json b/src/i18n/locales/en/editor.json
index 2e270ffb3..ae85f0954 100644
--- a/src/i18n/locales/en/editor.json
+++ b/src/i18n/locales/en/editor.json
@@ -134,6 +134,7 @@
"close": "Close",
"transcriptReady": "Transcript ready",
"transcribing": "Transcribing",
+ "downloadingModel": "Downloading speech model",
"transcribingEllipsis": "Transcribing…",
"pendingTranscription": "Pending transcription",
"transcriptionFailed": "Transcription failed",
diff --git a/src/i18n/locales/es/editor.json b/src/i18n/locales/es/editor.json
index 8f5ba5bec..a5773c4b7 100644
--- a/src/i18n/locales/es/editor.json
+++ b/src/i18n/locales/es/editor.json
@@ -140,6 +140,7 @@
"transcriptEmpty": "La transcripción está vacía.",
"notGeneratedHint": "Aún no generada — elige un idioma y haz clic en regenerar.",
"transcribing": "Transcribiendo",
+ "downloadingModel": "Descargando modelo de voz",
"transcribingEllipsis": "Transcribiendo…",
"pendingTranscription": "Transcripción pendiente",
"transcriptionFailed": "Error de transcripción",
diff --git a/src/i18n/locales/fr/editor.json b/src/i18n/locales/fr/editor.json
index 5cda995b1..ba0afda62 100644
--- a/src/i18n/locales/fr/editor.json
+++ b/src/i18n/locales/fr/editor.json
@@ -140,6 +140,7 @@
"transcriptEmpty": "La transcription est vide.",
"notGeneratedHint": "Pas encore générée — choisissez une langue et cliquez sur régénérer.",
"transcribing": "Transcription en cours",
+ "downloadingModel": "Téléchargement du modèle vocal",
"transcribingEllipsis": "Transcription en cours…",
"pendingTranscription": "Transcription en attente",
"transcriptionFailed": "Échec de la transcription",
diff --git a/src/i18n/locales/it/editor.json b/src/i18n/locales/it/editor.json
index ecc998b7d..926b5638c 100644
--- a/src/i18n/locales/it/editor.json
+++ b/src/i18n/locales/it/editor.json
@@ -140,6 +140,7 @@
"transcriptEmpty": "La trascrizione è vuota.",
"notGeneratedHint": "Non ancora generata — scegli una lingua e clicca su rigenera.",
"transcribing": "Trascrizione in corso",
+ "downloadingModel": "Download del modello vocale",
"transcribingEllipsis": "Trascrizione in corso…",
"pendingTranscription": "Trascrizione in attesa",
"transcriptionFailed": "Trascrizione non riuscita",
diff --git a/src/i18n/locales/ja-JP/editor.json b/src/i18n/locales/ja-JP/editor.json
index 615cf15a5..7f83fcc59 100644
--- a/src/i18n/locales/ja-JP/editor.json
+++ b/src/i18n/locales/ja-JP/editor.json
@@ -140,6 +140,7 @@
"transcriptEmpty": "文字起こしは空です。",
"notGeneratedHint": "まだ生成されていません — 言語を選んで再生成をクリックしてください。",
"transcribing": "文字起こし中",
+ "downloadingModel": "音声モデルをダウンロード中",
"transcribingEllipsis": "文字起こし中…",
"pendingTranscription": "文字起こし待機中",
"transcriptionFailed": "文字起こしに失敗しました",
diff --git a/src/i18n/locales/ko-KR/editor.json b/src/i18n/locales/ko-KR/editor.json
index 190b9af0b..6e2bc4659 100644
--- a/src/i18n/locales/ko-KR/editor.json
+++ b/src/i18n/locales/ko-KR/editor.json
@@ -140,6 +140,7 @@
"transcriptEmpty": "대본이 비어 있습니다.",
"notGeneratedHint": "아직 생성되지 않음 — 언어를 선택하고 재생성을 클릭하세요.",
"transcribing": "받아쓰는 중",
+ "downloadingModel": "음성 모델 다운로드 중",
"transcribingEllipsis": "받아쓰는 중…",
"pendingTranscription": "받아쓰기 대기 중",
"transcriptionFailed": "받아쓰기 실패",
diff --git a/src/i18n/locales/pt-BR/editor.json b/src/i18n/locales/pt-BR/editor.json
index b7d90914d..bf26c473c 100644
--- a/src/i18n/locales/pt-BR/editor.json
+++ b/src/i18n/locales/pt-BR/editor.json
@@ -140,6 +140,7 @@
"transcriptEmpty": "A transcrição está vazia.",
"notGeneratedHint": "Ainda não gerada — escolha um idioma e clique em regenerar.",
"transcribing": "Transcrevendo",
+ "downloadingModel": "Baixando modelo de voz",
"transcribingEllipsis": "Transcrevendo…",
"pendingTranscription": "Transcrição pendente",
"transcriptionFailed": "Falha na transcrição",
diff --git a/src/i18n/locales/ru/editor.json b/src/i18n/locales/ru/editor.json
index b50d5a986..ccd84010e 100644
--- a/src/i18n/locales/ru/editor.json
+++ b/src/i18n/locales/ru/editor.json
@@ -140,6 +140,7 @@
"transcriptEmpty": "Транскрипт пуст.",
"notGeneratedHint": "Ещё не создан — выберите язык и нажмите «Пересоздать».",
"transcribing": "Расшифровка",
+ "downloadingModel": "Загрузка речевой модели",
"transcribingEllipsis": "Расшифровка…",
"pendingTranscription": "Ожидает расшифровки",
"transcriptionFailed": "Ошибка расшифровки",
diff --git a/src/i18n/locales/tr/editor.json b/src/i18n/locales/tr/editor.json
index 0c1d77344..cc11d3c00 100644
--- a/src/i18n/locales/tr/editor.json
+++ b/src/i18n/locales/tr/editor.json
@@ -140,6 +140,7 @@
"transcriptEmpty": "Metin dökümü boş.",
"notGeneratedHint": "Henüz oluşturulmadı — bir dil seçin ve yeniden oluştur'a tıklayın.",
"transcribing": "Metne dökülüyor",
+ "downloadingModel": "Konuşma modeli indiriliyor",
"transcribingEllipsis": "Metne dökülüyor…",
"pendingTranscription": "Metne dökme bekliyor",
"transcriptionFailed": "Metne dökme başarısız oldu",
diff --git a/src/i18n/locales/vi/editor.json b/src/i18n/locales/vi/editor.json
index 0ad0a044c..ba7acfc61 100644
--- a/src/i18n/locales/vi/editor.json
+++ b/src/i18n/locales/vi/editor.json
@@ -140,6 +140,7 @@
"transcriptEmpty": "Bản ghi lời thoại trống.",
"notGeneratedHint": "Chưa được tạo — chọn ngôn ngữ và nhấp vào tạo lại.",
"transcribing": "Đang phiên âm",
+ "downloadingModel": "Đang tải mô hình giọng nói",
"transcribingEllipsis": "Đang phiên âm…",
"pendingTranscription": "Đang chờ phiên âm",
"transcriptionFailed": "Phiên âm thất bại",
diff --git a/src/i18n/locales/zh-CN/editor.json b/src/i18n/locales/zh-CN/editor.json
index 35610a0b6..d4dfe1792 100644
--- a/src/i18n/locales/zh-CN/editor.json
+++ b/src/i18n/locales/zh-CN/editor.json
@@ -140,6 +140,7 @@
"transcriptEmpty": "转录内容为空。",
"notGeneratedHint": "尚未生成 — 选择语言并点击重新生成。",
"transcribing": "正在转录",
+ "downloadingModel": "正在下载语音模型",
"transcribingEllipsis": "正在转录…",
"pendingTranscription": "等待转录",
"transcriptionFailed": "转录失败",
diff --git a/src/i18n/locales/zh-TW/editor.json b/src/i18n/locales/zh-TW/editor.json
index c3e7e55e4..46017c8ab 100644
--- a/src/i18n/locales/zh-TW/editor.json
+++ b/src/i18n/locales/zh-TW/editor.json
@@ -140,6 +140,7 @@
"transcriptEmpty": "逐字稿為空。",
"notGeneratedHint": "尚未產生 — 選擇語言並點擊重新產生。",
"transcribing": "轉錄中",
+ "downloadingModel": "正在下載語音模型",
"transcribingEllipsis": "轉錄中…",
"pendingTranscription": "等待轉錄",
"transcriptionFailed": "轉錄失敗",