Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

fix: show full raw transcript in history and add copy raw transcript action (#1289)

Gabriel Steina5505350c715
diff --git a/src/components/ui/TranscriptionItem.tsx b/src/components/ui/TranscriptionItem.tsx
index 2e645dcec..0c946fece 100644
--- a/src/components/ui/TranscriptionItem.tsx
+++ b/src/components/ui/TranscriptionItem.tsx
@@ -75,7 +75,8 @@ export default function TranscriptionItem({
item.audio_duration_ms && item.audio_duration_ms > 0
? formatMmSs(Math.round(item.audio_duration_ms / 1000))
: null;
- const hasRawText = item.raw_text !== null;
+ const rawText = item.raw_text;
+ const hasRawText = rawText !== null;
const hasAudio = item.has_audio === 1;
const showUtilityGroup = hasRawText || hasAudio;
@@ -298,23 +299,38 @@ export default function TranscriptionItem({
</div>
</div>
- {!isFailed && !isDiscarded && (
+ {!isFailed && !isDiscarded && rawText !== null && (
<div
+ inert={!isExpanded}
className={cn(
- "overflow-hidden transition-all duration-200",
- isExpanded ? "max-h-96" : "max-h-0"
+ "grid transition-[grid-template-rows] duration-200",
+ isExpanded ? "grid-rows-[1fr]" : "grid-rows-[0fr]"
)}
>
- <div className="border-t border-border/20 mt-2 pt-2">
- <span className="text-[10px] font-medium text-muted-foreground uppercase tracking-wider">
- {t("controlPanel.history.rawTranscript")}
- </span>
- <p className="text-xs text-muted-foreground/80 leading-relaxed mt-1">{item.raw_text}</p>
- {item.raw_text === item.text && (
- <p className="text-[10px] text-muted-foreground/50 italic mt-1">
- {t("controlPanel.history.noAiProcessing")}
- </p>
- )}
+ <div className="min-h-0 overflow-hidden">
+ <div className="border-t border-border/20 mt-2 pt-2">
+ <div className="flex items-center justify-between">
+ <span className="text-[10px] font-medium text-muted-foreground uppercase tracking-wider">
+ {t("controlPanel.history.rawTranscript")}
+ </span>
+ <Tooltip content={t("controlPanel.history.copyRawTranscript")}>
+ <Button
+ size="icon"
+ variant="ghost"
+ onClick={() => onCopy(rawText)}
+ className="h-5 w-5 rounded-sm text-muted-foreground hover:text-foreground hover:bg-foreground/10"
+ >
+ <Copy size={10} />
+ </Button>
+ </Tooltip>
+ </div>
+ <p className="text-xs text-muted-foreground/80 leading-relaxed mt-1">{rawText}</p>
+ {rawText === item.text && (
+ <p className="text-[10px] text-muted-foreground/50 italic mt-1">
+ {t("controlPanel.history.noAiProcessing")}
+ </p>
+ )}
+ </div>
</div>
</div>
)}
diff --git a/src/locales/de/translation.json b/src/locales/de/translation.json
index 000b49d35..86877f6b4 100644
--- a/src/locales/de/translation.json
+++ b/src/locales/de/translation.json
@@ -379,6 +379,7 @@
"clearAllErrorTitle": "Verlauf konnte nicht gelöscht werden",
"clearAllErrorDescription": "Etwas ist schiefgelaufen. Bitte versuchen Sie es erneut.",
"copyText": "Text kopieren",
+ "copyRawTranscript": "Rohtranskript kopieren",
"deleteItem": "Löschen",
"viewRawTranscript": "Rohtranskript anzeigen",
"showInFolder": "Im Finder anzeigen",
diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json
index f15c9f9e3..fbdf427b0 100644
--- a/src/locales/en/translation.json
+++ b/src/locales/en/translation.json
@@ -367,6 +367,7 @@
"yesterday": "Yesterday"
},
"copyText": "Copy text",
+ "copyRawTranscript": "Copy raw transcript",
"deleteItem": "Delete",
"viewRawTranscript": "View raw transcript",
"showInFolder": "Reveal in Finder",
diff --git a/src/locales/es/translation.json b/src/locales/es/translation.json
index dae209f8f..f7d224dba 100644
--- a/src/locales/es/translation.json
+++ b/src/locales/es/translation.json
@@ -388,6 +388,7 @@
"clearAllErrorTitle": "No se pudo borrar el historial",
"clearAllErrorDescription": "Algo salió mal. Inténtalo de nuevo.",
"copyText": "Copiar texto",
+ "copyRawTranscript": "Copiar transcripción sin procesar",
"deleteItem": "Eliminar",
"viewRawTranscript": "Ver transcripción sin procesar",
"showInFolder": "Mostrar en Finder",
diff --git a/src/locales/fr/translation.json b/src/locales/fr/translation.json
index a8c88a8a6..54de337e3 100644
--- a/src/locales/fr/translation.json
+++ b/src/locales/fr/translation.json
@@ -379,6 +379,7 @@
"clearAllErrorTitle": "Impossible d'effacer l'historique",
"clearAllErrorDescription": "Une erreur est survenue. Veuillez réessayer.",
"copyText": "Copier le texte",
+ "copyRawTranscript": "Copier la transcription brute",
"deleteItem": "Supprimer",
"viewRawTranscript": "Voir la transcription brute",
"showInFolder": "Afficher dans le Finder",
diff --git a/src/locales/it/translation.json b/src/locales/it/translation.json
index 92b58a183..c7abc93a4 100644
--- a/src/locales/it/translation.json
+++ b/src/locales/it/translation.json
@@ -379,6 +379,7 @@
"clearAllErrorTitle": "Impossibile cancellare la cronologia",
"clearAllErrorDescription": "Qualcosa è andato storto. Riprova.",
"copyText": "Copia testo",
+ "copyRawTranscript": "Copia trascrizione grezza",
"deleteItem": "Elimina",
"viewRawTranscript": "Visualizza trascrizione grezza",
"showInFolder": "Mostra nel Finder",
diff --git a/src/locales/ja/translation.json b/src/locales/ja/translation.json
index c7e6972c0..7160283a0 100644
--- a/src/locales/ja/translation.json
+++ b/src/locales/ja/translation.json
@@ -379,6 +379,7 @@
"clearAllErrorTitle": "履歴を削除できませんでした",
"clearAllErrorDescription": "問題が発生しました。もう一度お試しください。",
"copyText": "テキストをコピー",
+ "copyRawTranscript": "生の文字起こしをコピー",
"deleteItem": "削除",
"viewRawTranscript": "生の文字起こしを表示",
"showInFolder": "Finderで表示",
diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.json
index 0329a6bdf..292fce248 100644
--- a/src/locales/pt/translation.json
+++ b/src/locales/pt/translation.json
@@ -358,6 +358,7 @@
"clearAllErrorTitle": "Não foi possível limpar o histórico",
"clearAllErrorDescription": "Algo deu errado. Tente novamente.",
"copyText": "Copiar texto",
+ "copyRawTranscript": "Copiar transcrição bruta",
"deleteItem": "Excluir",
"viewRawTranscript": "Ver transcrição bruta",
"showInFolder": "Mostrar no Finder",
diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.json
index cce1cd683..aea7d3853 100644
--- a/src/locales/ru/translation.json
+++ b/src/locales/ru/translation.json
@@ -379,6 +379,7 @@
"clearAllErrorTitle": "Не удалось очистить историю",
"clearAllErrorDescription": "Что-то пошло не так. Попробуйте ещё раз.",
"copyText": "Копировать текст",
+ "copyRawTranscript": "Копировать исходную расшифровку",
"deleteItem": "Удалить",
"viewRawTranscript": "Показать исходную расшифровку",
"showInFolder": "Показать в Finder",
diff --git a/src/locales/zh-CN/translation.json b/src/locales/zh-CN/translation.json
index 9216d642c..bf4b88457 100644
--- a/src/locales/zh-CN/translation.json
+++ b/src/locales/zh-CN/translation.json
@@ -379,6 +379,7 @@
"clearAllErrorTitle": "无法清除历史记录",
"clearAllErrorDescription": "出了点问题,请重试。",
"copyText": "复制文本",
+ "copyRawTranscript": "复制原始转录",
"deleteItem": "删除",
"viewRawTranscript": "查看原始转录",
"showInFolder": "在访达中显示",
diff --git a/src/locales/zh-TW/translation.json b/src/locales/zh-TW/translation.json
index 5c120286f..531bbde85 100644
--- a/src/locales/zh-TW/translation.json
+++ b/src/locales/zh-TW/translation.json
@@ -379,6 +379,7 @@
"clearAllErrorTitle": "無法清除歷史紀錄",
"clearAllErrorDescription": "發生錯誤,請重試。",
"copyText": "複製文字",
+ "copyRawTranscript": "複製原始轉錄",
"deleteItem": "刪除",
"viewRawTranscript": "檢視原始轉錄",
"showInFolder": "在 Finder 中顯示",