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
fix: persist agent hotkey to .env and clean up IntegrationsView
Gabriel Stein66664cba56c2
diff --git a/main.js b/main.jsindex 2ccedd5de..923cd4d28 100644--- a/main.js+++ b/main.js@@ -287,7 +287,11 @@ function initializeCoreManagers() {// Phase 2: Non-critical setup after windows are visiblefunction initializeDeferredManagers() {ensureYdotool().catch((err) => {- require("./src/helpers/debugLogger").warn("ydotool setup error", { error: err?.message }, "clipboard");+ require("./src/helpers/debugLogger").warn(+ "ydotool setup error",+ { error: err?.message },+ "clipboard"+ );});clipboardManager.preWarmAccessibility();trayManager = new TrayManager();@@ -544,8 +548,10 @@ async function startApp() {ipcMain.on("agent-hotkey-changed", (_event, hotkey) => {if (hotkey) {hotkeyManager.registerSlot("agent", hotkey, agentHotkeyCallback);+ environmentManager.saveAgentKey(hotkey);} else {hotkeyManager.unregisterSlot("agent");+ environmentManager.saveAgentKey("");}});diff --git a/src/assets/icons/google-calendar.svg b/src/assets/icons/google-calendar.svgindex 680639ba0..c32c0c772 100644--- a/src/assets/icons/google-calendar.svg+++ b/src/assets/icons/google-calendar.svg@@ -1,13 +1,28 @@-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">- <rect x="3" y="3" width="18" height="18" rx="2.5" fill="#fff"/>- <path d="M3 5.5C3 4.12 4.12 3 5.5 3H8V7H3V5.5Z" fill="#4285F4"/>- <rect x="8" y="3" width="8" height="4" fill="#EA4335"/>- <path d="M16 3h2.5C19.88 3 21 4.12 21 5.5V7h-5V3Z" fill="#EA4335"/>- <rect x="3" y="7" width="5" height="5" fill="#4285F4"/>- <rect x="8" y="7" width="8" height="5" fill="#fff"/>- <rect x="16" y="7" width="5" height="5" fill="#FBBC04"/>- <path d="M3 12v6.5C3 19.88 4.12 21 5.5 21H8v-9H3Z" fill="#34A853"/>- <rect x="8" y="12" width="8" height="9" fill="#188038"/>- <path d="M16 12v9h2.5c1.38 0 2.5-1.12 2.5-2.5V12h-5Z" fill="#34A853"/>- <text x="12" y="15.5" text-anchor="middle" font-family="Arial,Helvetica,sans-serif" font-size="7" font-weight="700" fill="#4285F4">31</text>+<?xml version="1.0" encoding="utf-8"?>+<!-- Generator: Adobe Illustrator 23.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->+<svg version="1.1" id="Livello_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"+ viewBox="0 0 200 200" enable-background="new 0 0 200 200" xml:space="preserve">+<g>+ <g transform="translate(3.75 3.75)">+ <path fill="#FFFFFF" d="M148.882,43.618l-47.368-5.263l-57.895,5.263L38.355,96.25l5.263,52.632l52.632,6.579l52.632-6.579+ l5.263-53.947L148.882,43.618z"/>+ <path fill="#1A73E8" d="M65.211,125.276c-3.934-2.658-6.658-6.539-8.145-11.671l9.132-3.763c0.829,3.158,2.276,5.605,4.342,7.342+ c2.053,1.737,4.553,2.592,7.474,2.592c2.987,0,5.553-0.908,7.697-2.724s3.224-4.132,3.224-6.934c0-2.868-1.132-5.211-3.395-7.026+ s-5.105-2.724-8.5-2.724h-5.276v-9.039H76.5c2.921,0,5.382-0.789,7.382-2.368c2-1.579,3-3.737,3-6.487+ c0-2.447-0.895-4.395-2.684-5.855s-4.053-2.197-6.803-2.197c-2.684,0-4.816,0.711-6.395,2.145s-2.724,3.197-3.447,5.276+ l-9.039-3.763c1.197-3.395,3.395-6.395,6.618-8.987c3.224-2.592,7.342-3.895,12.342-3.895c3.697,0,7.026,0.711,9.974,2.145+ c2.947,1.434,5.263,3.421,6.934,5.947c1.671,2.539,2.5,5.382,2.5,8.539c0,3.224-0.776,5.947-2.329,8.184+ c-1.553,2.237-3.461,3.947-5.724,5.145v0.539c2.987,1.25,5.421,3.158,7.342,5.724c1.908,2.566,2.868,5.632,2.868,9.211+ s-0.908,6.776-2.724,9.579c-1.816,2.803-4.329,5.013-7.513,6.618c-3.197,1.605-6.789,2.421-10.776,2.421+ C73.408,129.263,69.145,127.934,65.211,125.276z"/>+ <path fill="#1A73E8" d="M121.25,79.961l-9.974,7.25l-5.013-7.605l17.987-12.974h6.895v61.197h-9.895L121.25,79.961z"/>+ <path fill="#EA4335" d="M148.882,196.25l47.368-47.368l-23.684-10.526l-23.684,10.526l-10.526,23.684L148.882,196.25z"/>+ <path fill="#34A853" d="M33.092,172.566l10.526,23.684h105.263v-47.368H43.618L33.092,172.566z"/>+ <path fill="#4285F4" d="M12.039-3.75C3.316-3.75-3.75,3.316-3.75,12.039v136.842l23.684,10.526l23.684-10.526V43.618h105.263+ l10.526-23.684L148.882-3.75H12.039z"/>+ <path fill="#188038" d="M-3.75,148.882v31.579c0,8.724,7.066,15.789,15.789,15.789h31.579v-47.368H-3.75z"/>+ <path fill="#FBBC04" d="M148.882,43.618v105.263h47.368V43.618l-23.684-10.526L148.882,43.618z"/>+ <path fill="#1967D2" d="M196.25,43.618V12.039c0-8.724-7.066-15.789-15.789-15.789h-31.579v47.368H196.25z"/>+ </g>+</g></svg>diff --git a/src/components/IntegrationsView.tsx b/src/components/IntegrationsView.tsxindex d8edaea92..e67083718 100644--- a/src/components/IntegrationsView.tsx+++ b/src/components/IntegrationsView.tsx@@ -4,7 +4,6 @@ import { Loader2, Plus, X } from "lucide-react";import { Button } from "./ui/button";import { Badge } from "./ui/badge";import { useSettingsStore } from "../stores/settingsStore";-import { useUsage } from "../hooks/useUsage";import googleCalendarIcon from "../assets/icons/google-calendar.svg";function SettingsPanel({ children }: { children: React.ReactNode }) {@@ -15,34 +14,15 @@ function SettingsPanel({ children }: { children: React.ReactNode }) {);}-function SettingsPanelRow({- children,- className = "",-}: {- children: React.ReactNode;- className?: string;-}) {- return <div className={`px-4 py-3 ${className}`}>{children}</div>;+function SettingsPanelRow({ children }: { children: React.ReactNode }) {+ return <div className="px-4 py-3">{children}</div>;}-const PLAN_TIERS = [- { nameKey: "integrations.plan.free", limitKey: "integrations.plan.freeLimit", id: "free" },- {- nameKey: "integrations.plan.essential",- limitKey: "integrations.plan.essentialLimit",- id: "essential",- },- { nameKey: "integrations.plan.pro", limitKey: "integrations.plan.proLimit", id: "pro" },-] as const;-export default function IntegrationsView() {const { t } = useTranslation();const { gcalAccounts, setGcalAccounts } = useSettingsStore();const [isConnecting, setIsConnecting] = useState(false);const [disconnectingEmail, setDisconnectingEmail] = useState<string | null>(null);- const usage = useUsage();-- const currentPlan = usage?.isSubscribed ? "pro" : usage?.isTrial ? "essential" : "free";const hasAccounts = gcalAccounts.length > 0;const handleConnect = useCallback(async () => {@@ -180,33 +160,6 @@ export default function IntegrationsView() {</SettingsPanelRow>)}</SettingsPanel>-- <SettingsPanel>- <SettingsPanelRow>- <p className="text-xs font-semibold text-foreground">{t("integrations.plan.title")}</p>- </SettingsPanelRow>- {PLAN_TIERS.map((tier) => {- const isCurrent = tier.id === currentPlan;- return (- <SettingsPanelRow- key={tier.id}- className={isCurrent ? "bg-primary/5 dark:bg-primary/8" : ""}- >- <div className="flex items-center justify-between">- <div className="flex items-center gap-2">- <span className="text-xs font-medium text-foreground">{t(tier.nameKey)}</span>- {isCurrent && (- <Badge variant="default" className="text-[10px] px-1.5 py-0">- {t("integrations.plan.current")}- </Badge>- )}- </div>- <span className="text-xs text-muted-foreground">{t(tier.limitKey)}</span>- </div>- </SettingsPanelRow>- );- })}- </SettingsPanel></div>);}