From 04b8edf33d54e58bbadb3c6ff09b40cb4ec1c24c Mon Sep 17 00:00:00 2001 From: webadderall <131426131+webadderall@users.noreply.github.com> Date: Thu, 26 Mar 2026 11:17:39 +1100 Subject: [PATCH] refactor(captions): simplify model controls UI --- src/components/video-editor/SettingsPanel.tsx | 45 ++----------------- 1 file changed, 3 insertions(+), 42 deletions(-) diff --git a/src/components/video-editor/SettingsPanel.tsx b/src/components/video-editor/SettingsPanel.tsx index aad84702..061420d0 100644 --- a/src/components/video-editor/SettingsPanel.tsx +++ b/src/components/video-editor/SettingsPanel.tsx @@ -508,13 +508,11 @@ export function SettingsPanel({ onAnnotationDelete, autoCaptions = [], autoCaptionSettings = DEFAULT_AUTO_CAPTION_SETTINGS, - whisperExecutablePath, whisperModelPath, whisperModelDownloadStatus = "idle", whisperModelDownloadProgress = 0, isGeneratingCaptions = false, onAutoCaptionSettingsChange, - onPickWhisperExecutable, onPickWhisperModel, onGenerateAutoCaptions, onClearAutoCaptions, @@ -545,16 +543,6 @@ export function SettingsPanel({ [builtInWallpapers], ); const captionCueCount = autoCaptions.length; - const getPathDisplayName = (value?: string | null) => { - if (!value) { - return null; - } - - const parts = value.split(/[\\/]/); - return parts[parts.length - 1] || value; - }; - const whisperRuntimeLabel = getPathDisplayName(whisperExecutablePath); - const whisperModelLabel = getPathDisplayName(whisperModelPath); const updateAutoCaptionSettings = (partial: Partial) => { onAutoCaptionSettingsChange?.({ ...autoCaptionSettings, @@ -1347,15 +1335,7 @@ export function SettingsPanel({
-
- +
-
-
- {tSettings("captions.runtimeStatus", "Runtime")}:{" "} - {whisperRuntimeLabel ?? - tSettings("captions.runtimeAuto", "Bundled or system auto-detect")} -
-
- {tSettings("captions.modelStatus", "Model")}:{" "} - {whisperModelLabel ?? tSettings("captions.modelMissing", "No model selected")} -
-
{tSettings("captions.language", "Language")} @@ -1397,7 +1366,7 @@ export function SettingsPanel({
-
+
{whisperModelDownloadStatus === "downloading" ? ( ) : (