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
style: format chat components, command search, and locale files
Gabriel Stein833b73da3f1f
diff --git a/src/components/CommandSearch.tsx b/src/components/CommandSearch.tsxindex b7f8c13ce..3dfdfd98b 100644--- a/src/components/CommandSearch.tsx+++ b/src/components/CommandSearch.tsx@@ -89,7 +89,15 @@ export default function CommandSearch({setSelectedIndex(0);if (isConversationsMode) {window.electronAPI?.getAgentConversationsWithPreview?.(20, 0, false).then((r) => {- if (r) setConversations(r.map((c) => ({ id: c.id, title: c.title || "Untitled", last_message: c.last_message, updated_at: c.updated_at })));+ if (r)+ setConversations(+ r.map((c) => ({+ id: c.id,+ title: c.title || "Untitled",+ last_message: c.last_message,+ updated_at: c.updated_at,+ }))+ );});} else {window.electronAPI@@ -107,7 +115,14 @@ export default function CommandSearch({if (!query.trim()) {window.electronAPI?.getAgentConversationsWithPreview?.(20, 0, false).then((r) => {if (searchVersionRef.current === version && r) {- setConversations(r.map((c) => ({ id: c.id, title: c.title || "Untitled", last_message: c.last_message, updated_at: c.updated_at })));+ setConversations(+ r.map((c) => ({+ id: c.id,+ title: c.title || "Untitled",+ last_message: c.last_message,+ updated_at: c.updated_at,+ }))+ );}});return;@@ -116,9 +131,18 @@ export default function CommandSearch({try {const r = await window.electronAPI?.semanticSearchConversations?.(query, 20);if (searchVersionRef.current === version && r) {- setConversations(r.map((c) => ({ id: c.id, title: c.title || "Untitled", last_message: c.last_message, updated_at: c.updated_at })));+ setConversations(+ r.map((c) => ({+ id: c.id,+ title: c.title || "Untitled",+ last_message: c.last_message,+ updated_at: c.updated_at,+ }))+ );}- } catch { /* keep current */ }+ } catch {+ /* keep current */+ }}, 200);} else {if (!query.trim()) {@@ -132,7 +156,9 @@ export default function CommandSearch({try {const results = await window.electronAPI.searchNotes(query);setNotes(results);- } catch { /* keep current */ }+ } catch {+ /* keep current */+ }}, 200);}@@ -280,7 +306,11 @@ export default function CommandSearch({{!hasResults ? (<div className="flex items-center justify-center py-10"><p className="text-xs text-muted-foreground/50">- {query.trim() ? t("commandSearch.noResults") : isConversationsMode ? t("chat.noConversations") : t("commandSearch.emptyState")}+ {query.trim()+ ? t("commandSearch.noResults")+ : isConversationsMode+ ? t("chat.noConversations")+ : t("commandSearch.emptyState")}</p></div>) : isConversationsMode ? (diff --git a/src/components/chat/ChatView.tsx b/src/components/chat/ChatView.tsxindex d90a46030..a65e656f1 100644--- a/src/components/chat/ChatView.tsx+++ b/src/components/chat/ChatView.tsx@@ -124,13 +124,16 @@ export default function ChatView() {[activeConversationId, persistence, streaming]);- const handleArchive = useCallback(async (id: number) => {- await window.electronAPI?.archiveAgentConversation?.(id);- if (activeConversationId === id) {- handleNewChat();- }- setRefreshKey((k) => k + 1);- }, [activeConversationId, handleNewChat]);+ const handleArchive = useCallback(+ async (id: number) => {+ await window.electronAPI?.archiveAgentConversation?.(id);+ if (activeConversationId === id) {+ handleNewChat();+ }+ setRefreshKey((k) => k + 1);+ },+ [activeConversationId, handleNewChat]+ );const handleDelete = useCallback((id: number) => {@@ -162,7 +165,8 @@ export default function ChatView() {return () => window.removeEventListener("keydown", handleKeyDown);}, [handleNewChat]);- const hasActiveChat = activeConversationId !== null || persistence.messages.length > 0 || isNewChat;+ const hasActiveChat =+ activeConversationId !== null || persistence.messages.length > 0 || isNewChat;return (<>diff --git a/src/components/chat/ConversationList.tsx b/src/components/chat/ConversationList.tsxindex 4a346f6f7..df95768ff 100644--- a/src/components/chat/ConversationList.tsx+++ b/src/components/chat/ConversationList.tsx@@ -112,7 +112,14 @@ export default function ConversationList({window.electronAPI?.getAgentConversationsWithPreview?.(200, 0, false),window.electronAPI?.getAgentConversationsWithPreview?.(200, 0, true),]);- const toPreview = (c: { id: number; title: string; last_message?: string; created_at: string; updated_at: string; archived_at?: string }) => ({+ const toPreview = (c: {+ id: number;+ title: string;+ last_message?: string;+ created_at: string;+ updated_at: string;+ archived_at?: string;+ }) => ({id: c.id,title: c.title || "Untitled",preview: c.last_message,@@ -120,10 +127,7 @@ export default function ConversationList({updated_at: c.updated_at,is_archived: !!c.archived_at,});- setConversations([- ...(active ?? []).map(toPreview),- ...(archived ?? []).map(toPreview),- ]);+ setConversations([...(active ?? []).map(toPreview), ...(archived ?? []).map(toPreview)]);} catch {// silently fail} finally {diff --git a/src/components/chat/toolIcons.ts b/src/components/chat/toolIcons.tsindex c01881107..3155c8da1 100644--- a/src/components/chat/toolIcons.ts+++ b/src/components/chat/toolIcons.ts@@ -1,12 +1,4 @@-import {- Search,- Globe,- ClipboardCheck,- Calendar,- FileText,- FilePlus,- FilePen,-} from "lucide-react";+import { Search, Globe, ClipboardCheck, Calendar, FileText, FilePlus, FilePen } from "lucide-react";export const toolIcons: Record<string, typeof Search> = {search_notes: Search,diff --git a/src/helpers/ipcHandlers.js b/src/helpers/ipcHandlers.jsindex c2e0f301b..400f24abb 100644--- a/src/helpers/ipcHandlers.js+++ b/src/helpers/ipcHandlers.js@@ -747,7 +747,12 @@ class IPCHandlers {ipcMain.handle("db-add-agent-message",async (event, conversationId, role, content, metadata) => {- const result = this.databaseManager.addAgentMessage(conversationId, role, content, metadata);+ const result = this.databaseManager.addAgentMessage(+ conversationId,+ role,+ content,+ metadata+ );if (this.vectorIndex?.isReady?.()) {const conv = this.databaseManager.getAgentConversation(conversationId);if (conv && conv.messages?.length % 3 === 0) {diff --git a/src/locales/zh-CN/translation.json b/src/locales/zh-CN/translation.jsonindex 31258abc9..86be4715f 100644--- a/src/locales/zh-CN/translation.json+++ b/src/locales/zh-CN/translation.json@@ -992,12 +992,7 @@"annualEquivalent": "$16.67","includesPrefix": "所有 Pro 功能 +","badge": "最受欢迎",- "features": [- "无限会议录制",- "代理模式",- "与您的数据对话(即将推出)",- "优先支持"- ],+ "features": ["无限会议录制", "代理模式", "与您的数据对话(即将推出)", "优先支持"],"cta": "开始使用","switchToAnnual": "切换为年付"},diff --git a/src/locales/zh-TW/translation.json b/src/locales/zh-TW/translation.jsonindex 29a254802..7a742e568 100644--- a/src/locales/zh-TW/translation.json+++ b/src/locales/zh-TW/translation.json@@ -992,12 +992,7 @@"annualEquivalent": "$16.67","includesPrefix": "所有 Pro 功能 +","badge": "最熱門",- "features": [- "無限會議錄製",- "代理模式",- "與您的資料對話(即將推出)",- "優先支援"- ],+ "features": ["無限會議錄製", "代理模式", "與您的資料對話(即將推出)", "優先支援"],"cta": "開始使用","switchToAnnual": "切換為年付"},