Skip to content

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

fix(transcription): show retry button on failed transcriptions

Gabriel Steinbf51dbfa9947
diff --git a/src/components/ui/TranscriptionItem.tsx b/src/components/ui/TranscriptionItem.tsx
index eb1f0ff9d..bfaf78b8d 100644
--- a/src/components/ui/TranscriptionItem.tsx
+++ b/src/components/ui/TranscriptionItem.tsx
@@ -69,7 +69,6 @@ export default function TranscriptionItem({
errorCode === "API_KEY_MISSING" ||
errorCode === "INVALID_KEY" ||
errorCode === "MODEL_NOT_AVAILABLE";
- const isAuthError = errorCode === "AUTH_EXPIRED" || errorCode === "AUTH_REQUIRED";
const isLimitError = errorCode === "LIMIT_REACHED";
const isOfflineError = errorCode === "OFFLINE";
@@ -125,16 +124,6 @@ export default function TranscriptionItem({
)}
</p>
)}
- {isAuthError && (
- <p className="text-xs text-muted-foreground mt-1">
- <button
- onClick={() => onOpenSettings?.()}
- className="text-primary hover:underline cursor-pointer"
- >
- {t("controlPanel.history.failedCtaSignIn")}
- </button>
- </p>
- )}
{isLimitError && (
<p className="text-xs text-muted-foreground mt-1">
{t("controlPanel.history.failedLimitReached")}
diff --git a/src/helpers/ipcHandlers.js b/src/helpers/ipcHandlers.js
index 0c3018be9..db2c54809 100644
--- a/src/helpers/ipcHandlers.js
+++ b/src/helpers/ipcHandlers.js
@@ -516,6 +516,8 @@ class IPCHandlers {
provider: metadata?.provider || null,
model: metadata?.model || null,
});
+ const updated = this.databaseManager.getTranscriptionById(id);
+ if (updated) this.broadcastToWindows("transcription-updated", updated);
}
return result;
});
@@ -938,33 +940,69 @@ class IPCHandlers {
// Notes sync
ipcMain.handle("db-get-pending-notes", () => this.databaseManager.getPendingNotes());
- ipcMain.handle("db-get-pending-note-deletes", () => this.databaseManager.getPendingNoteDeletes());
- ipcMain.handle("db-get-note-by-client-id", (_, clientNoteId) => this.databaseManager.getNoteByClientId(clientNoteId));
- ipcMain.handle("db-upsert-note-from-cloud", (_, cloudNote, localFolderId) => this.databaseManager.upsertNoteFromCloud(cloudNote, localFolderId));
- ipcMain.handle("db-mark-note-synced", (_, id, cloudId) => this.databaseManager.markNoteSynced(id, cloudId));
- ipcMain.handle("db-mark-note-sync-error", (_, id) => this.databaseManager.markNoteSyncError(id));
+ ipcMain.handle("db-get-pending-note-deletes", () =>
+ this.databaseManager.getPendingNoteDeletes()
+ );
+ ipcMain.handle("db-get-note-by-client-id", (_, clientNoteId) =>
+ this.databaseManager.getNoteByClientId(clientNoteId)
+ );
+ ipcMain.handle("db-upsert-note-from-cloud", (_, cloudNote, localFolderId) =>
+ this.databaseManager.upsertNoteFromCloud(cloudNote, localFolderId)
+ );
+ ipcMain.handle("db-mark-note-synced", (_, id, cloudId) =>
+ this.databaseManager.markNoteSynced(id, cloudId)
+ );
+ ipcMain.handle("db-mark-note-sync-error", (_, id) =>
+ this.databaseManager.markNoteSyncError(id)
+ );
ipcMain.handle("db-hard-delete-note", (_, id) => this.databaseManager.hardDeleteNote(id));
// Folders sync
ipcMain.handle("db-get-pending-folders", () => this.databaseManager.getPendingFolders());
- ipcMain.handle("db-get-folder-by-client-id", (_, clientFolderId) => this.databaseManager.getFolderByClientId(clientFolderId));
- ipcMain.handle("db-upsert-folder-from-cloud", (_, cloudFolder) => this.databaseManager.upsertFolderFromCloud(cloudFolder));
- ipcMain.handle("db-mark-folder-synced", (_, id, cloudId) => this.databaseManager.markFolderSynced(id, cloudId));
+ ipcMain.handle("db-get-folder-by-client-id", (_, clientFolderId) =>
+ this.databaseManager.getFolderByClientId(clientFolderId)
+ );
+ ipcMain.handle("db-upsert-folder-from-cloud", (_, cloudFolder) =>
+ this.databaseManager.upsertFolderFromCloud(cloudFolder)
+ );
+ ipcMain.handle("db-mark-folder-synced", (_, id, cloudId) =>
+ this.databaseManager.markFolderSynced(id, cloudId)
+ );
ipcMain.handle("db-get-folder-id-map", () => this.databaseManager.getFolderIdMap());
// Conversations sync
- ipcMain.handle("db-get-pending-conversations", () => this.databaseManager.getPendingConversations());
- ipcMain.handle("db-get-pending-conversation-deletes", () => this.databaseManager.getPendingConversationDeletes());
- ipcMain.handle("db-get-conversation-by-client-id", (_, clientId) => this.databaseManager.getConversationByClientId(clientId));
- ipcMain.handle("db-upsert-conversation-from-cloud", (_, cloudConv, messages) => this.databaseManager.upsertConversationFromCloud(cloudConv, messages));
- ipcMain.handle("db-mark-conversation-synced", (_, id, cloudId) => this.databaseManager.markConversationSynced(id, cloudId));
- ipcMain.handle("db-hard-delete-conversation", (_, id) => this.databaseManager.hardDeleteConversation(id));
+ ipcMain.handle("db-get-pending-conversations", () =>
+ this.databaseManager.getPendingConversations()
+ );
+ ipcMain.handle("db-get-pending-conversation-deletes", () =>
+ this.databaseManager.getPendingConversationDeletes()
+ );
+ ipcMain.handle("db-get-conversation-by-client-id", (_, clientId) =>
+ this.databaseManager.getConversationByClientId(clientId)
+ );
+ ipcMain.handle("db-upsert-conversation-from-cloud", (_, cloudConv, messages) =>
+ this.databaseManager.upsertConversationFromCloud(cloudConv, messages)
+ );
+ ipcMain.handle("db-mark-conversation-synced", (_, id, cloudId) =>
+ this.databaseManager.markConversationSynced(id, cloudId)
+ );
+ ipcMain.handle("db-hard-delete-conversation", (_, id) =>
+ this.databaseManager.hardDeleteConversation(id)
+ );
// Transcriptions sync
- ipcMain.handle("db-get-pending-transcriptions", () => this.databaseManager.getPendingTranscriptions());
- ipcMain.handle("db-get-transcription-by-client-id", (_, clientId) => this.databaseManager.getTranscriptionByClientId(clientId));
- ipcMain.handle("db-upsert-transcription-from-cloud", (_, cloudTranscription) => this.databaseManager.upsertTranscriptionFromCloud(cloudTranscription));
- ipcMain.handle("db-mark-transcription-synced", (_, id, cloudId) => this.databaseManager.markTranscriptionSynced(id, cloudId));
+ ipcMain.handle("db-get-pending-transcriptions", () =>
+ this.databaseManager.getPendingTranscriptions()
+ );
+ ipcMain.handle("db-get-transcription-by-client-id", (_, clientId) =>
+ this.databaseManager.getTranscriptionByClientId(clientId)
+ );
+ ipcMain.handle("db-upsert-transcription-from-cloud", (_, cloudTranscription) =>
+ this.databaseManager.upsertTranscriptionFromCloud(cloudTranscription)
+ );
+ ipcMain.handle("db-mark-transcription-synced", (_, id, cloudId) =>
+ this.databaseManager.markTranscriptionSynced(id, cloudId)
+ );
ipcMain.handle("export-note", async (event, noteId, format) => {
try {
diff --git a/src/locales/de/translation.json b/src/locales/de/translation.json
index 46fd3826b..ba819c499 100644
--- a/src/locales/de/translation.json
+++ b/src/locales/de/translation.json
@@ -251,7 +251,6 @@
"failedCtaSettings": "Richten Sie Ihren Transkriptionsanbieter ein",
"failedCtaAndRetry": "und klicken Sie dann auf Wiederholen",
"failedCtaSettingsOnly": "Richten Sie Ihren Transkriptionsanbieter in den Einstellungen ein",
- "failedCtaSignIn": "Erneut anmelden",
"failedLimitReached": "Tageslimit erreicht",
"failedOffline": "Offline",
"clearAll": "Alle löschen",
diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json
index 7562d32cd..93833d0b2 100644
--- a/src/locales/en/translation.json
+++ b/src/locales/en/translation.json
@@ -263,7 +263,6 @@
"failedCtaSettings": "Set up your transcription provider",
"failedCtaAndRetry": "then click retry",
"failedCtaSettingsOnly": "Set up your transcription provider in Settings",
- "failedCtaSignIn": "Sign in again",
"failedLimitReached": "Daily limit reached",
"failedOffline": "You're offline",
"rawTranscript": "Raw Transcript",
diff --git a/src/locales/es/translation.json b/src/locales/es/translation.json
index 2c098fc47..b31aad151 100644
--- a/src/locales/es/translation.json
+++ b/src/locales/es/translation.json
@@ -251,7 +251,6 @@
"failedCtaSettings": "Configura tu proveedor de transcripción",
"failedCtaAndRetry": "y luego haz clic en reintentar",
"failedCtaSettingsOnly": "Configura tu proveedor de transcripción en Ajustes",
- "failedCtaSignIn": "Iniciar sesión de nuevo",
"failedLimitReached": "Límite diario alcanzado",
"failedOffline": "Sin conexión",
"clearAll": "Borrar todo",
diff --git a/src/locales/fr/translation.json b/src/locales/fr/translation.json
index 582e15532..b3a736001 100644
--- a/src/locales/fr/translation.json
+++ b/src/locales/fr/translation.json
@@ -251,7 +251,6 @@
"failedCtaSettings": "Configurez votre fournisseur de transcription",
"failedCtaAndRetry": "puis cliquez sur réessayer",
"failedCtaSettingsOnly": "Configurez votre fournisseur de transcription dans les Paramètres",
- "failedCtaSignIn": "Se reconnecter",
"failedLimitReached": "Limite quotidienne atteinte",
"failedOffline": "Hors ligne",
"clearAll": "Tout effacer",
diff --git a/src/locales/it/translation.json b/src/locales/it/translation.json
index 985ea46ed..fb2cf2e2b 100644
--- a/src/locales/it/translation.json
+++ b/src/locales/it/translation.json
@@ -251,7 +251,6 @@
"failedCtaSettings": "Configura il tuo provider di trascrizione",
"failedCtaAndRetry": "poi clicca su riprova",
"failedCtaSettingsOnly": "Configura il tuo provider di trascrizione nelle Impostazioni",
- "failedCtaSignIn": "Accedi di nuovo",
"failedLimitReached": "Limite giornaliero raggiunto",
"failedOffline": "Offline",
"clearAll": "Cancella tutto",
diff --git a/src/locales/ja/translation.json b/src/locales/ja/translation.json
index 003fc66f7..ed4299c86 100644
--- a/src/locales/ja/translation.json
+++ b/src/locales/ja/translation.json
@@ -251,7 +251,6 @@
"failedCtaSettings": "文字起こしプロバイダーを設定してください",
"failedCtaAndRetry": "その後、再試行をクリックしてください",
"failedCtaSettingsOnly": "設定で文字起こしプロバイダーを設定してください",
- "failedCtaSignIn": "もう一度サインインしてください",
"failedLimitReached": "1日の上限に達しました",
"failedOffline": "オフラインです",
"clearAll": "すべて削除",
diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.json
index b42799dec..91549730c 100644
--- a/src/locales/pt/translation.json
+++ b/src/locales/pt/translation.json
@@ -223,7 +223,6 @@
"failedCtaSettings": "Configure seu provedor de transcrição",
"failedCtaAndRetry": "e depois clique em tentar novamente",
"failedCtaSettingsOnly": "Configure seu provedor de transcrição nas Configurações",
- "failedCtaSignIn": "Entrar novamente",
"failedLimitReached": "Limite diário atingido",
"failedOffline": "Sem conexão",
"clearAll": "Limpar tudo",
diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.json
index bd5be84ab..98433f479 100644
--- a/src/locales/ru/translation.json
+++ b/src/locales/ru/translation.json
@@ -251,7 +251,6 @@
"failedCtaSettings": "Настройте провайдер транскрипции",
"failedCtaAndRetry": "затем нажмите повторить",
"failedCtaSettingsOnly": "Настройте провайдер транскрипции в Настройках",
- "failedCtaSignIn": "Войти снова",
"failedLimitReached": "Дневной лимит достигнут",
"failedOffline": "Нет подключения",
"clearAll": "Очистить все",
diff --git a/src/locales/zh-CN/translation.json b/src/locales/zh-CN/translation.json
index f16d1ec00..168933093 100644
--- a/src/locales/zh-CN/translation.json
+++ b/src/locales/zh-CN/translation.json
@@ -251,7 +251,6 @@
"failedCtaSettings": "设置您的转录服务商",
"failedCtaAndRetry": "然后点击重试",
"failedCtaSettingsOnly": "在设置中配置您的转录服务商",
- "failedCtaSignIn": "重新登录",
"failedLimitReached": "已达每日限额",
"failedOffline": "离线",
"clearAll": "全部清除",
diff --git a/src/locales/zh-TW/translation.json b/src/locales/zh-TW/translation.json
index e5e7f8060..c9c07b8f5 100644
--- a/src/locales/zh-TW/translation.json
+++ b/src/locales/zh-TW/translation.json
@@ -251,7 +251,6 @@
"failedCtaSettings": "設定您的轉錄服務供應商",
"failedCtaAndRetry": "然後點擊重試",
"failedCtaSettingsOnly": "在設定中配置您的轉錄服務供應商",
- "failedCtaSignIn": "重新登入",
"failedLimitReached": "已達每日限額",
"failedOffline": "離線",
"clearAll": "全部清除",