Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
refactor: unify cloud backup into a single toggle
Gabriel Stein875ac33f0513
diff --git a/src/components/HistoryView.tsx b/src/components/HistoryView.tsxindex 3ab008d5a..504c8e240 100644--- a/src/components/HistoryView.tsx+++ b/src/components/HistoryView.tsx@@ -245,9 +245,7 @@ export default function HistoryView({<div>{groupedHistory.map((group, index) => (<div key={group.label} className={index > 0 ? "mt-4" : ""}>- <div- className="sticky -top-1 z-10 -mx-4 px-5 pt-2 pb-2 bg-background"- >+ <div className="sticky -top-1 z-10 -mx-4 px-5 pt-2 pb-2 bg-background"><span className="text-[11px] font-semibold text-muted-foreground dark:text-muted-foreground uppercase tracking-wide">{group.label}</span>diff --git a/src/components/SettingsPage.tsx b/src/components/SettingsPage.tsxindex bd51458d2..73e7c4c7a 100644--- a/src/components/SettingsPage.tsx+++ b/src/components/SettingsPage.tsx@@ -680,8 +680,6 @@ export default function SettingsPage({ activeSection = "general" }: SettingsPagesetFloatingIconAutoHide,cloudBackupEnabled,setCloudBackupEnabled,- cloudNotesEnabled,- setCloudNotesEnabled,telemetryEnabled,setTelemetryEnabled,customDictionary,@@ -2354,19 +2352,11 @@ export default function SettingsPage({ activeSection = "general" }: SettingsPage<SettingsRowlabel={t("settingsPage.privacy.cloudBackup")}description={t("settingsPage.privacy.cloudBackupDescription")}- >- <Toggle checked={cloudBackupEnabled} onChange={setCloudBackupEnabled} />- </SettingsRow>- </SettingsPanelRow>- <SettingsPanelRow>- <SettingsRow- label={t("settingsPage.privacy.cloudNotesBackup")}- description={t("settingsPage.privacy.cloudNotesBackupDescription")}><Toggle- checked={cloudNotesEnabled}+ checked={cloudBackupEnabled}onChange={(v) => {- setCloudNotesEnabled(v);+ setCloudBackupEnabled(v);if (v) startMigration().catch(console.error);}}/>@@ -2393,7 +2383,7 @@ export default function SettingsPage({ activeSection = "general" }: SettingsPage</div></div>)}- {!migration && cloudNotesEnabled && isSignedIn && (+ {!migration && cloudBackupEnabled && isSignedIn && (<p className="mt-1 text-xs text-muted-foreground">{t("settingsPage.privacy.cloudNotesMigrationDone")}</p>diff --git a/src/hooks/useSettings.ts b/src/hooks/useSettings.tsindex 34a5d2dba..230576d8f 100644--- a/src/hooks/useSettings.ts+++ b/src/hooks/useSettings.ts@@ -52,7 +52,6 @@ export interface ApiKeySettings {export interface PrivacySettings {cloudBackupEnabled: boolean;- cloudNotesEnabled: boolean;telemetryEnabled: boolean;}@@ -224,8 +223,6 @@ function useSettingsInternal() {setAutoLearnCorrections,cloudBackupEnabled: store.cloudBackupEnabled,setCloudBackupEnabled: store.setCloudBackupEnabled,- cloudNotesEnabled: store.cloudNotesEnabled,- setCloudNotesEnabled: store.setCloudNotesEnabled,telemetryEnabled: store.telemetryEnabled,setTelemetryEnabled: store.setTelemetryEnabled,updateTranscriptionSettings: store.updateTranscriptionSettings,diff --git a/src/locales/de/translation.json b/src/locales/de/translation.jsonindex 594469ed0..6433272aa 100644--- a/src/locales/de/translation.json+++ b/src/locales/de/translation.json@@ -920,11 +920,7 @@"enterprise": {"name": "Enterprise","price": "Individuell",- "features": [- "Cloud-Synchronisation",- "Team-Funktionen (demnächst)",- "SSO & Compliance"- ],+ "features": ["Cloud-Synchronisation", "Team-Funktionen (demnächst)", "SSO & Compliance"],"cta": "Kontakt aufnehmen"},"currentPlan": "Aktueller Tarif"@@ -1162,9 +1158,7 @@},"privacy": {"cloudBackup": "Cloud-Backup",- "cloudBackupDescription": "Speichern Sie Ihre Transkriptionen in der Cloud, damit sie nicht verloren gehen.",- "cloudNotesBackup": "Notizen in der Cloud sichern",- "cloudNotesBackupDescription": "Synchronisieren Sie Ihre Notizen mit der Cloud für semantische Suche und geräteübergreifenden Zugriff.",+ "cloudBackupDescription": "Sichern Sie Ihre Transkriptionen und Notizen in der Cloud für nahtlosen Zugriff auf allen Geräten.","cloudNotesMigration": "Notizen werden gesichert… {{done}} / {{total}}","cloudNotesMigrationDone": "Alle Notizen gesichert","description": "Steuern Sie, welche Daten Ihr Gerät verlassen. Standardmäßig ist alles deaktiviert.",diff --git a/src/locales/en/translation.json b/src/locales/en/translation.jsonindex 1e5b9fdf8..45abebd5e 100644--- a/src/locales/en/translation.json+++ b/src/locales/en/translation.json@@ -1158,9 +1158,7 @@},"privacy": {"cloudBackup": "Cloud backup",- "cloudBackupDescription": "Save your transcriptions to the cloud so you never lose them.",- "cloudNotesBackup": "Back up notes to the cloud",- "cloudNotesBackupDescription": "Sync your notes to the cloud to enable semantic search and cross-device access.",+ "cloudBackupDescription": "Back up your transcriptions and notes to the cloud for seamless access across devices.","cloudNotesMigration": "Backing up notes… {{done}} / {{total}}","cloudNotesMigrationDone": "All notes backed up","description": "Control what data leaves your device. Everything is off by default.",diff --git a/src/locales/es/translation.json b/src/locales/es/translation.jsonindex b6a693e32..65b11ad5f 100644--- a/src/locales/es/translation.json+++ b/src/locales/es/translation.json@@ -1162,9 +1162,7 @@},"privacy": {"cloudBackup": "Respaldo en la nube",- "cloudBackupDescription": "Guarda tus transcripciones en la nube para no perderlas nunca.",- "cloudNotesBackup": "Respaldar notas en la nube",- "cloudNotesBackupDescription": "Sincroniza tus notas con la nube para habilitar búsqueda semántica y acceso desde cualquier dispositivo.",+ "cloudBackupDescription": "Respalda tus transcripciones y notas en la nube para acceder desde cualquier dispositivo.","cloudNotesMigration": "Respaldando notas… {{done}} / {{total}}","cloudNotesMigrationDone": "Todas las notas respaldadas","description": "Controla qué datos salen de tu dispositivo. Todo está desactivado por defecto.",diff --git a/src/locales/fr/translation.json b/src/locales/fr/translation.jsonindex 34241587b..810dac907 100644--- a/src/locales/fr/translation.json+++ b/src/locales/fr/translation.json@@ -1162,9 +1162,7 @@},"privacy": {"cloudBackup": "Sauvegarde cloud",- "cloudBackupDescription": "Sauvegardez vos transcriptions dans le cloud pour ne jamais les perdre.",- "cloudNotesBackup": "Sauvegarder les notes dans le cloud",- "cloudNotesBackupDescription": "Synchronisez vos notes avec le cloud pour activer la recherche sémantique et l'accès multi-appareils.",+ "cloudBackupDescription": "Sauvegardez vos transcriptions et notes dans le cloud pour un accès fluide sur tous vos appareils.","cloudNotesMigration": "Sauvegarde des notes… {{done}} / {{total}}","cloudNotesMigrationDone": "Toutes les notes sauvegardées","description": "Contrôlez quelles données quittent votre appareil. Tout est désactivé par défaut.",diff --git a/src/locales/it/translation.json b/src/locales/it/translation.jsonindex 885c720fc..6f12e6cc8 100644--- a/src/locales/it/translation.json+++ b/src/locales/it/translation.json@@ -1162,9 +1162,7 @@},"privacy": {"cloudBackup": "Backup cloud",- "cloudBackupDescription": "Salva le trascrizioni nel cloud per non perderle mai.",- "cloudNotesBackup": "Esegui il backup delle note nel cloud",- "cloudNotesBackupDescription": "Sincronizza le tue note con il cloud per abilitare la ricerca semantica e l'accesso da più dispositivi.",+ "cloudBackupDescription": "Salva trascrizioni e note nel cloud per un accesso senza interruzioni da tutti i dispositivi.","cloudNotesMigration": "Backup delle note in corso… {{done}} / {{total}}","cloudNotesMigrationDone": "Tutte le note salvate nel cloud","description": "Controlla quali dati escono dal tuo dispositivo. Tutto è disattivato per impostazione predefinita.",diff --git a/src/locales/ja/translation.json b/src/locales/ja/translation.jsonindex e275f041b..10c5b9a84 100644--- a/src/locales/ja/translation.json+++ b/src/locales/ja/translation.json@@ -920,11 +920,7 @@"enterprise": {"name": "Enterprise","price": "カスタム",- "features": [- "クラウド同期",- "チーム機能(近日公開)",- "SSO & コンプライアンス"- ],+ "features": ["クラウド同期", "チーム機能(近日公開)", "SSO & コンプライアンス"],"cta": "お問い合わせ"},"currentPlan": "現在のプラン"@@ -1162,9 +1158,7 @@},"privacy": {"cloudBackup": "クラウドバックアップ",- "cloudBackupDescription": "文字起こしをクラウドに保存してデータを失わないようにします。",- "cloudNotesBackup": "ノートをクラウドにバックアップ",- "cloudNotesBackupDescription": "ノートをクラウドに同期してセマンティック検索と複数デバイスでのアクセスを有効にします。",+ "cloudBackupDescription": "文字起こしとノートをクラウドにバックアップして、すべてのデバイスからシームレスにアクセスできます。","cloudNotesMigration": "ノートをバックアップ中… {{done}} / {{total}}","cloudNotesMigrationDone": "すべてのノートがバックアップされました","description": "デバイスからのデータ送信を管理します。初期設定ではすべてオフです。",diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.jsonindex 8b9301abb..f738005ab 100644--- a/src/locales/pt/translation.json+++ b/src/locales/pt/translation.json@@ -1134,9 +1134,7 @@},"privacy": {"cloudBackup": "Backup na nuvem",- "cloudBackupDescription": "Salve suas transcrições na nuvem para nunca perdê-las.",- "cloudNotesBackup": "Fazer backup das notas na nuvem",- "cloudNotesBackupDescription": "Sincronize suas notas com a nuvem para ativar pesquisa semântica e acesso em múltiplos dispositivos.",+ "cloudBackupDescription": "Salve suas transcrições e notas na nuvem para acesso contínuo em todos os dispositivos.","cloudNotesMigration": "Fazendo backup das notas… {{done}} / {{total}}","cloudNotesMigrationDone": "Todas as notas salvas na nuvem","description": "Controle quais dados saem do seu dispositivo. Tudo está desativado por padrão.",diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.jsonindex e2cc5c54a..968005163 100644--- a/src/locales/ru/translation.json+++ b/src/locales/ru/translation.json@@ -1162,9 +1162,7 @@},"privacy": {"cloudBackup": "Облачное резервное копирование",- "cloudBackupDescription": "Сохраняйте транскрипции в облаке, чтобы никогда их не потерять.",- "cloudNotesBackup": "Резервное копирование заметок в облако",- "cloudNotesBackupDescription": "Синхронизируйте заметки с облаком для семантического поиска и доступа с разных устройств.",+ "cloudBackupDescription": "Сохраняйте транскрипции и заметки в облаке для удобного доступа со всех устройств.","cloudNotesMigration": "Резервное копирование заметок… {{done}} / {{total}}","cloudNotesMigrationDone": "Все заметки скопированы в облако","description": "Контролируйте, какие данные покидают ваше устройство. По умолчанию всё отключено.",diff --git a/src/locales/zh-CN/translation.json b/src/locales/zh-CN/translation.jsonindex 9cd353988..b9200f75b 100644--- a/src/locales/zh-CN/translation.json+++ b/src/locales/zh-CN/translation.json@@ -940,11 +940,7 @@"enterprise": {"name": "企业版","price": "自定义",- "features": [- "云端同步",- "团队功能(即将推出)",- "SSO 与合规"- ],+ "features": ["云端同步", "团队功能(即将推出)", "SSO 与合规"],"cta": "联系我们"},"currentPlan": "当前套餐"@@ -1162,9 +1158,7 @@},"privacy": {"cloudBackup": "云端备份",- "cloudBackupDescription": "将转录记录保存到云端,确保永不丢失。",- "cloudNotesBackup": "将笔记备份到云端",- "cloudNotesBackupDescription": "将笔记同步到云端,以启用语义搜索和跨设备访问。",+ "cloudBackupDescription": "将转录记录和笔记备份到云端,实现跨设备无缝访问。","cloudNotesMigration": "正在备份笔记… {{done}} / {{total}}","cloudNotesMigrationDone": "所有笔记已备份","description": "控制哪些数据会离开你的设备。默认全部关闭。",diff --git a/src/locales/zh-TW/translation.json b/src/locales/zh-TW/translation.jsonindex 3088b8589..914a3a692 100644--- a/src/locales/zh-TW/translation.json+++ b/src/locales/zh-TW/translation.json@@ -940,11 +940,7 @@"enterprise": {"name": "企業版","price": "自訂",- "features": [- "雲端同步",- "團隊功能(即將推出)",- "SSO 與合規"- ],+ "features": ["雲端同步", "團隊功能(即將推出)", "SSO 與合規"],"cta": "聯絡我們"},"currentPlan": "目前方案"@@ -1162,9 +1158,7 @@},"privacy": {"cloudBackup": "雲端備份",- "cloudBackupDescription": "將轉錄記錄儲存至雲端,確保不會遺失。",- "cloudNotesBackup": "將筆記備份至雲端",- "cloudNotesBackupDescription": "將筆記同步至雲端,啟用語義搜尋及跨裝置存取。",+ "cloudBackupDescription": "將轉錄記錄和筆記備份至雲端,實現跨裝置無縫存取。","cloudNotesMigration": "正在備份筆記… {{done}} / {{total}}","cloudNotesMigrationDone": "所有筆記已備份","description": "控制哪些資料會離開你的裝置。預設全部關閉。",diff --git a/src/stores/settingsStore.ts b/src/stores/settingsStore.tsindex 2eee4602f..583487d2f 100644--- a/src/stores/settingsStore.ts+++ b/src/stores/settingsStore.ts@@ -52,7 +52,6 @@ const BOOLEAN_SETTINGS = new Set(["useReasoningModel","preferBuiltInMic","cloudBackupEnabled",- "cloudNotesEnabled","telemetryEnabled","audioCuesEnabled","floatingIconAutoHide",@@ -123,7 +122,6 @@ export interface SettingsStatesetTheme: (value: "light" | "dark" | "auto") => void;setCloudBackupEnabled: (value: boolean) => void;- setCloudNotesEnabled: (value: boolean) => void;setTelemetryEnabled: (value: boolean) => void;setAudioCuesEnabled: (value: boolean) => void;setFloatingIconAutoHide: (enabled: boolean) => void;@@ -235,7 +233,6 @@ export const useSettingsStore = create<SettingsState>()((set, get) => ({return "auto" as const;})(),cloudBackupEnabled: readBoolean("cloudBackupEnabled", false),- cloudNotesEnabled: readBoolean("cloudNotesEnabled", false),telemetryEnabled: readBoolean("telemetryEnabled", false),audioCuesEnabled: readBoolean("audioCuesEnabled", true),floatingIconAutoHide: readBoolean("floatingIconAutoHide", false),@@ -360,7 +357,6 @@ export const useSettingsStore = create<SettingsState>()((set, get) => ({},setCloudBackupEnabled: createBooleanSetter("cloudBackupEnabled"),- setCloudNotesEnabled: createBooleanSetter("cloudNotesEnabled"),setTelemetryEnabled: createBooleanSetter("telemetryEnabled"),setAudioCuesEnabled: createBooleanSetter("audioCuesEnabled"),