Skip to content

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

fix: improve integrations page design and remove false diarization claims

Gabriel Stein85d09220e009
diff --git a/src/components/IntegrationsView.tsx b/src/components/IntegrationsView.tsx
index 240852306..8fec618f5 100644
--- a/src/components/IntegrationsView.tsx
+++ b/src/components/IntegrationsView.tsx
@@ -1,30 +1,20 @@
import { useState, useEffect, useCallback } from "react";
import { useTranslation } from "react-i18next";
-import { Loader2, Plus, X } from "lucide-react";
+import { Loader2, Mail, Plus, Unlink } from "lucide-react";
import { Button } from "./ui/button";
import { Badge } from "./ui/badge";
+import { SettingsPanel, SettingsPanelRow } from "./ui/SettingsSection";
import { ConfirmDialog } from "./ui/dialog";
import { useSettingsStore } from "../stores/settingsStore";
import { useScreenRecordingPermission } from "../hooks/useScreenRecordingPermission";
import googleCalendarIcon from "../assets/icons/google-calendar.svg";
-function SettingsPanel({ children }: { children: React.ReactNode }) {
- return (
- <div className="rounded-lg border border-border/50 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 backdrop-blur-sm divide-y divide-border/30 dark:divide-border-subtle/50">
- {children}
- </div>
- );
-}
-
-function SettingsPanelRow({ children }: { children: React.ReactNode }) {
- return <div className="px-4 py-3">{children}</div>;
-}
-
export default function IntegrationsView() {
const { t } = useTranslation();
const { gcalAccounts, setGcalAccounts } = useSettingsStore();
const [isConnecting, setIsConnecting] = useState(false);
const [disconnectingEmail, setDisconnectingEmail] = useState<string | null>(null);
+ const [confirmDisconnectEmail, setConfirmDisconnectEmail] = useState<string | null>(null);
const [showPermissionDialog, setShowPermissionDialog] = useState(false);
const screenRecording = useScreenRecordingPermission();
const hasAccounts = gcalAccounts.length > 0;
@@ -55,7 +45,6 @@ export default function IntegrationsView() {
const handleDisconnect = useCallback(
async (email: string) => {
- if (!window.confirm(t("integrations.googleCalendar.disconnectConfirm", { email }))) return;
setDisconnectingEmail(email);
try {
await window.electronAPI?.gcalDisconnect?.(email);
@@ -65,7 +54,7 @@ export default function IntegrationsView() {
setDisconnectingEmail(null);
}
},
- [setGcalAccounts, t]
+ [setGcalAccounts]
);
useEffect(() => {
@@ -136,11 +125,12 @@ export default function IntegrationsView() {
gcalAccounts.map((account) => (
<SettingsPanelRow key={account.email}>
<div className="group flex items-center gap-3 pl-12">
+ <Mail className="h-3.5 w-3.5 text-muted-foreground/50 shrink-0" />
<span className="text-xs text-muted-foreground truncate flex-1">
{account.email}
</span>
<button
- onClick={() => handleDisconnect(account.email)}
+ onClick={() => setConfirmDisconnectEmail(account.email)}
disabled={disconnectingEmail === account.email}
className="opacity-0 group-hover:opacity-100 p-1 rounded-md text-muted-foreground hover:text-destructive hover:bg-destructive/10 transition-all disabled:opacity-50"
aria-label={t("integrations.googleCalendar.disconnect")}
@@ -148,7 +138,7 @@ export default function IntegrationsView() {
{disconnectingEmail === account.email ? (
<Loader2 className="h-3.5 w-3.5 animate-spin" />
) : (
- <X className="h-3.5 w-3.5" />
+ <Unlink className="h-3.5 w-3.5" />
)}
</button>
</div>
@@ -173,6 +163,18 @@ export default function IntegrationsView() {
)}
</SettingsPanel>
+ <ConfirmDialog
+ open={!!confirmDisconnectEmail}
+ onOpenChange={(open) => { if (!open) setConfirmDisconnectEmail(null); }}
+ title={t("integrations.googleCalendar.disconnectConfirm", { email: confirmDisconnectEmail })}
+ description={t("integrations.googleCalendar.disconnectDescription")}
+ confirmText={t("integrations.googleCalendar.disconnect")}
+ variant="destructive"
+ onConfirm={() => {
+ if (confirmDisconnectEmail) handleDisconnect(confirmDisconnectEmail);
+ }}
+ />
+
<ConfirmDialog
open={showPermissionDialog}
onOpenChange={setShowPermissionDialog}
diff --git a/src/locales/de/translation.json b/src/locales/de/translation.json
index 504e8df74..b14d91516 100644
--- a/src/locales/de/translation.json
+++ b/src/locales/de/translation.json
@@ -1416,7 +1416,7 @@
},
"meeting": {
"title": "Besprechungsnotizen",
- "description": "Sprechererkennung und strukturierte Zusammenfassungen",
+ "description": "Transkriptionen und strukturierte Zusammenfassungen",
"comingSoon": "Demnächst verfügbar",
"back": "Zurück"
},
@@ -1653,7 +1653,7 @@
"description": "Verbinde Dienste, um deinen Workflow zu verbessern",
"googleCalendar": {
"title": "Google Calendar",
- "description": "Verbinde deinen Kalender, um Besprechungsnotizen zu aktivieren. OpenWhispr erkennt Meetings und zeichnet mit Sprechererkennung auf — automatisch.",
+ "description": "Verbinde deinen Kalender, um Meetings automatisch zu erkennen und Transkriptionen aufzuzeichnen.",
"connect": "Google Calendar verbinden",
"connecting": "Verbinde...",
"connected": "Verbunden",
diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json
index 5cf9b295b..9a79d84fe 100644
--- a/src/locales/en/translation.json
+++ b/src/locales/en/translation.json
@@ -518,7 +518,7 @@
"notConnectedDescription": "Connect to detect and record meetings",
"connectCta": {
"title": "Calendar Integration",
- "description": "Auto-detect meetings and record with speaker diarization"
+ "description": "Auto-detect meetings and record transcriptions"
},
"connect": "Connect Google Calendar",
"connecting": "Connecting...",
@@ -1529,7 +1529,7 @@
},
"meeting": {
"title": "Meeting Notes",
- "description": "Speaker identification & structured summaries",
+ "description": "Transcriptions & structured summaries",
"comingSoon": "Coming Soon",
"back": "Back"
},
@@ -1729,7 +1729,7 @@
"description": "Connect services to supercharge your workflow",
"googleCalendar": {
"title": "Google Calendar",
- "description": "Connect your calendar to activate meeting notes. OpenWhispr detects meetings and records with speaker diarization — automatically.",
+ "description": "Connect your calendar to auto-detect meetings and record transcriptions.",
"connect": "Connect Google Calendar",
"connecting": "Connecting...",
"connected": "Connected",
diff --git a/src/locales/es/translation.json b/src/locales/es/translation.json
index a6bcd8524..5cbdf57d0 100644
--- a/src/locales/es/translation.json
+++ b/src/locales/es/translation.json
@@ -1420,7 +1420,7 @@
},
"meeting": {
"title": "Notas de reunión",
- "description": "Identificación de hablantes y resúmenes estructurados",
+ "description": "Transcripciones y resúmenes estructurados",
"comingSoon": "Próximamente",
"back": "Atrás"
},
@@ -1657,7 +1657,7 @@
"description": "Conecta servicios para potenciar tu flujo de trabajo",
"googleCalendar": {
"title": "Google Calendar",
- "description": "Conecta tu calendario para activar notas de reuniones. OpenWhispr detecta reuniones y graba con diarización de hablantes — automáticamente.",
+ "description": "Conecta tu calendario para detectar reuniones automáticamente y grabar transcripciones.",
"connect": "Conectar Google Calendar",
"connecting": "Conectando...",
"connected": "Conectado",
diff --git a/src/locales/fr/translation.json b/src/locales/fr/translation.json
index 56299eeda..7d24f0f7d 100644
--- a/src/locales/fr/translation.json
+++ b/src/locales/fr/translation.json
@@ -1457,7 +1457,7 @@
},
"meeting": {
"title": "Notes de réunion",
- "description": "Identification des intervenants et résumés structurés",
+ "description": "Transcriptions et résumés structurés",
"comingSoon": "Bientôt disponible",
"back": "Retour"
},
@@ -1657,7 +1657,7 @@
"description": "Connectez des services pour booster votre productivité",
"googleCalendar": {
"title": "Google Calendar",
- "description": "Connectez votre calendrier pour activer les notes de réunion. OpenWhispr détecte vos réunions et enregistre avec diarisation — automatiquement.",
+ "description": "Connectez votre calendrier pour détecter automatiquement les réunions et enregistrer les transcriptions.",
"connect": "Connecter Google Calendar",
"connecting": "Connexion...",
"connected": "Connecté",
diff --git a/src/locales/it/translation.json b/src/locales/it/translation.json
index 2ca44ce8f..8505374d5 100644
--- a/src/locales/it/translation.json
+++ b/src/locales/it/translation.json
@@ -1420,7 +1420,7 @@
},
"meeting": {
"title": "Note delle riunioni",
- "description": "Identificazione degli interlocutori e riassunti strutturati",
+ "description": "Trascrizioni e riassunti strutturati",
"comingSoon": "Prossimamente",
"back": "Indietro"
},
@@ -1657,7 +1657,7 @@
"description": "Collega servizi per potenziare il tuo flusso di lavoro",
"googleCalendar": {
"title": "Google Calendar",
- "description": "Collega il tuo calendario per attivare le note delle riunioni. OpenWhispr rileva le riunioni e registra con diarizzazione dei parlanti — automaticamente.",
+ "description": "Collega il tuo calendario per rilevare automaticamente le riunioni e registrare le trascrizioni.",
"connect": "Collega Google Calendar",
"connecting": "Connessione...",
"connected": "Connesso",
diff --git a/src/locales/ja/translation.json b/src/locales/ja/translation.json
index 3f0b367b7..3d5cfc84e 100644
--- a/src/locales/ja/translation.json
+++ b/src/locales/ja/translation.json
@@ -1395,7 +1395,7 @@
},
"meeting": {
"title": "議事録",
- "description": "話者識別と構造化されたサマリー",
+ "description": "文字起こしと構造化されたサマリー",
"comingSoon": "近日公開",
"back": "戻る"
},
@@ -1653,7 +1653,7 @@
"description": "サービスを接続してワークフローを強化",
"googleCalendar": {
"title": "Google カレンダー",
- "description": "カレンダーを接続して会議メモを有効にします。OpenWhisprが会議を検出し、話者分離付きで自動的に録音します。",
+ "description": "カレンダーを接続して、会議を自動検出し文字起こしを録音します。",
"connect": "Google カレンダーを接続",
"connecting": "接続中...",
"connected": "接続済み",
diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.json
index 75717ea1e..18a09ea88 100644
--- a/src/locales/pt/translation.json
+++ b/src/locales/pt/translation.json
@@ -1420,7 +1420,7 @@
},
"meeting": {
"title": "Notas de reunião",
- "description": "Identificação de falantes e resumos estruturados",
+ "description": "Transcrições e resumos estruturados",
"comingSoon": "Em breve",
"back": "Voltar"
},
@@ -1657,7 +1657,7 @@
"description": "Conecte serviços para turbinar seu fluxo de trabalho",
"googleCalendar": {
"title": "Google Calendar",
- "description": "Conecte seu calendário para ativar notas de reunião. O OpenWhispr detecta reuniões e grava com diarização de falantes — automaticamente.",
+ "description": "Conecte seu calendário para detectar reuniões automaticamente e gravar transcrições.",
"connect": "Conectar Google Calendar",
"connecting": "Conectando...",
"connected": "Conectado",
diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.json
index 892f65d21..3c3de17a6 100644
--- a/src/locales/ru/translation.json
+++ b/src/locales/ru/translation.json
@@ -1420,7 +1420,7 @@
},
"meeting": {
"title": "Заметки со встреч",
- "description": "Определение говорящих и структурированные резюме",
+ "description": "Транскрипции и структурированные резюме",
"comingSoon": "Скоро",
"back": "Назад"
},
@@ -1657,7 +1657,7 @@
"description": "Подключите сервисы для улучшения рабочего процесса",
"googleCalendar": {
"title": "Google Calendar",
- "description": "Подключите календарь для активации заметок встреч. OpenWhispr определяет встречи и записывает с диаризацией говорящих — автоматически.",
+ "description": "Подключите календарь для автоматического обнаружения встреч и записи транскрипций.",
"connect": "Подключить Google Calendar",
"connecting": "Подключение...",
"connected": "Подключено",
diff --git a/src/locales/zh-CN/translation.json b/src/locales/zh-CN/translation.json
index 7658af482..109d5cf51 100644
--- a/src/locales/zh-CN/translation.json
+++ b/src/locales/zh-CN/translation.json
@@ -1416,7 +1416,7 @@
},
"meeting": {
"title": "会议笔记",
- "description": "说话人识别与结构化摘要",
+ "description": "转录与结构化摘要",
"comingSoon": "即将推出",
"back": "返回"
},
@@ -1653,7 +1653,7 @@
"description": "连接服务以增强您的工作流程",
"googleCalendar": {
"title": "Google 日历",
- "description": "连接日历以启用会议笔记。OpenWhispr 会自动检测会议并进行说话人分离录音。",
+ "description": "连接日历以自动检测会议并录制转录。",
"connect": "连接 Google 日历",
"connecting": "连接中...",
"connected": "已连接",
diff --git a/src/locales/zh-TW/translation.json b/src/locales/zh-TW/translation.json
index 1496539f1..aff8e0545 100644
--- a/src/locales/zh-TW/translation.json
+++ b/src/locales/zh-TW/translation.json
@@ -1416,7 +1416,7 @@
},
"meeting": {
"title": "會議筆記",
- "description": "說話者辨識與結構化摘要",
+ "description": "轉錄與結構化摘要",
"comingSoon": "即將推出",
"back": "返回"
},
@@ -1653,7 +1653,7 @@
"description": "連接服務以增強您的工作流程",
"googleCalendar": {
"title": "Google 日曆",
- "description": "連接日曆以啟用會議筆記。OpenWhispr 會自動偵測會議並進行說話者分離錄音。",
+ "description": "連接日曆以自動偵測會議並錄製轉錄。",
"connect": "連接 Google 日曆",
"connecting": "連接中...",
"connected": "已連接",