Skip to content

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

fix(quality): production readiness cleanup — i18n, types, dead code, and StrictMode bug

Gabriel Steinb58e47c034e1
diff --git a/src/components/ControlPanel.tsx b/src/components/ControlPanel.tsx
index 598f90fa9..020b5d4b0 100644
--- a/src/components/ControlPanel.tsx
+++ b/src/components/ControlPanel.tsx
@@ -193,7 +193,7 @@ export default function ControlPanel() {
description: t("controlPanel.history.couldNotDeleteDescription"),
});
}
- } catch (error) {
+ } catch {
showAlertDialog({
title: t("controlPanel.history.couldNotDeleteTitle"),
description: t("controlPanel.history.couldNotDeleteDescriptionGeneric"),
@@ -337,7 +337,7 @@ export default function ControlPanel() {
userImage={user?.image}
isSignedIn={isSignedIn}
authLoaded={authLoaded}
- isProUser={usage?.isSubscribed || usage?.isTrial}
+ isProUser={!!(usage?.isSubscribed || usage?.isTrial)}
usageLoaded={usage?.hasLoaded ?? false}
updateAction={
!updateStatus.isDevelopment &&
diff --git a/src/components/ControlPanelSidebar.tsx b/src/components/ControlPanelSidebar.tsx
index 0925b127e..89bd57cea 100644
--- a/src/components/ControlPanelSidebar.tsx
+++ b/src/components/ControlPanelSidebar.tsx
@@ -159,7 +159,7 @@ export default function ControlPanelSidebar({
setUpgradeDismissed(true);
localStorage.setItem("upgradeProDismissed", "true");
}}
- aria-label="Dismiss"
+ aria-label={t("common.dismiss")}
className="absolute top-1.5 right-1.5 p-0.5 rounded-sm text-muted-foreground hover:text-foreground hover:bg-black/5 dark:hover:bg-white/5 transition-colors"
>
<X size={12} />
diff --git a/src/components/ReasoningModelSelector.tsx b/src/components/ReasoningModelSelector.tsx
index 486dc9eed..3b2154860 100644
--- a/src/components/ReasoningModelSelector.tsx
+++ b/src/components/ReasoningModelSelector.tsx
@@ -66,7 +66,6 @@ interface ReasoningModelSelectorProps {
setGroqApiKey: (key: string) => void;
customReasoningApiKey?: string;
setCustomReasoningApiKey?: (key: string) => void;
- showAlertDialog: (dialog: { title: string; description: string }) => void;
}
export default function ReasoningModelSelector({
@@ -524,7 +523,6 @@ export default function ReasoningModelSelector({
<div className="p-3">
{selectedCloudProvider === "custom" ? (
<>
- {/* 1. Endpoint URL - TOP */}
<div className="space-y-2">
<h4 className="font-medium text-foreground">
{t("reasoning.custom.endpointTitle")}
@@ -545,7 +543,6 @@ export default function ReasoningModelSelector({
</p>
</div>
- {/* 2. API Key - SECOND */}
<div className="space-y-2 pt-3">
<h4 className="font-medium text-foreground">
{t("reasoning.custom.apiKeyOptional")}
@@ -558,7 +555,6 @@ export default function ReasoningModelSelector({
/>
</div>
- {/* 3. Model Selection - THIRD */}
<div className="space-y-2 pt-3">
<div className="flex items-center justify-between">
<h4 className="text-sm font-medium text-foreground">
@@ -635,7 +631,6 @@ export default function ReasoningModelSelector({
</>
) : (
<>
- {/* 1. API Key - TOP */}
{selectedCloudProvider === "openai" && (
<div className="space-y-2">
<div className="flex items-baseline justify-between">
@@ -734,7 +729,6 @@ export default function ReasoningModelSelector({
</div>
)}
- {/* 2. Model Selection - BOTTOM */}
<div className="pt-3 space-y-2">
<h4 className="text-sm font-medium text-foreground">
{t("reasoning.selectModel")}
diff --git a/src/components/ReferralDashboard.tsx b/src/components/ReferralDashboard.tsx
index 2bac83d75..b28446599 100644
--- a/src/components/ReferralDashboard.tsx
+++ b/src/components/ReferralDashboard.tsx
@@ -489,7 +489,7 @@ export function ReferralDashboard() {
</div>
{/* Friends section — actual signups with word progress */}
- {stats.referrals && stats.referrals.length > 0 && (
+ {stats.referrals.length > 0 && (
<div className="mt-5">
<h4 className="text-xs font-medium text-foreground/25 uppercase tracking-wider mb-2">
{t("referral.friends.title")}
diff --git a/src/components/ReferralModal.tsx b/src/components/ReferralModal.tsx
index a5d0c1bab..3bd017bb6 100644
--- a/src/components/ReferralModal.tsx
+++ b/src/components/ReferralModal.tsx
@@ -24,7 +24,7 @@ export default function ReferralModal({ open, onOpenChange }: ReferralModalProps
/>
<DialogPrimitive.Content
className={cn(
- "fixed left-[50%] top-[50%] z-50 w-full max-w-[500px] min-h-130",
+ "fixed left-[50%] top-[50%] z-50 w-full max-w-[500px] min-h-[520px]",
"translate-x-[-50%] translate-y-[-50%]",
"rounded-xl border overflow-hidden shadow-2xl duration-200",
"bg-card border-border",
@@ -42,7 +42,7 @@ export default function ReferralModal({ open, onOpenChange }: ReferralModalProps
<DialogPrimitive.Close className="absolute right-3 top-3 z-20 rounded-full p-1.5 opacity-40 transition-[opacity,background-color] hover:opacity-80 hover:bg-foreground/10 focus:outline-none focus:ring-2 focus:ring-foreground/20 focus:ring-offset-0">
<X className="h-4 w-4 text-foreground" />
- <span className="sr-only">Close</span>
+ <span className="sr-only">{t("common.close")}</span>
</DialogPrimitive.Close>
<ReferralDashboard />
diff --git a/src/components/SettingsPage.tsx b/src/components/SettingsPage.tsx
index 1fd9f7513..891249474 100644
--- a/src/components/SettingsPage.tsx
+++ b/src/components/SettingsPage.tsx
@@ -1,4 +1,4 @@
-import React, { useState, useCallback, useEffect, useRef, useMemo } from "react";
+import React, { useState, useCallback, useEffect, useRef } from "react";
import { useTranslation } from "react-i18next";
import { Button } from "./ui/button";
import { Input } from "./ui/input";
@@ -47,7 +47,7 @@ import { HotkeyInput } from "./ui/HotkeyInput";
import HotkeyGuidanceAccordion from "./ui/HotkeyGuidanceAccordion";
import { useHotkeyRegistration } from "../hooks/useHotkeyRegistration";
import { getValidationMessage } from "../utils/hotkeyValidator";
-import { getPlatform } from "../utils/platform";
+import { getPlatform, getCachedPlatform } from "../utils/platform";
import { getDefaultHotkey, formatHotkeyLabel } from "../utils/hotkeys";
import { ActivationModeSelector } from "./ui/ActivationModeSelector";
import { Toggle } from "./ui/toggle";
@@ -594,7 +594,6 @@ function AiModelsSection({
setGroqApiKey={setGroqApiKey}
customReasoningApiKey={customReasoningApiKey}
setCustomReasoningApiKey={setCustomReasoningApiKey}
- showAlertDialog={showAlertDialog}
/>
)}
</>
@@ -746,12 +745,7 @@ export default function SettingsPage({ activeSection = "general" }: SettingsPage
const [isUsingGnomeHotkeys, setIsUsingGnomeHotkeys] = useState(false);
- const platform = useMemo(() => {
- if (typeof window !== "undefined" && window.electronAPI?.getPlatform) {
- return window.electronAPI.getPlatform();
- }
- return "linux";
- }, []);
+ const platform = getCachedPlatform();
const [autoStartEnabled, setAutoStartEnabled] = useState(false);
const [autoStartLoading, setAutoStartLoading] = useState(true);
@@ -809,7 +803,7 @@ export default function SettingsPage({ activeSection = "general" }: SettingsPage
mounted = false;
clearTimeout(timer);
};
- }, [whisperHook, getAppVersion]);
+ }, [whisperHook.checkWhisperInstallation, getAppVersion]);
useEffect(() => {
const checkHotkeyMode = async () => {
@@ -1810,7 +1804,6 @@ export default function SettingsPage({ activeSection = "general" }: SettingsPage
setCloudReasoningMode={setCloudReasoningMode}
useReasoningModel={useReasoningModel}
setUseReasoningModel={(value) => {
- setUseReasoningModel(value);
updateReasoningSettings({ useReasoningModel: value });
}}
reasoningModel={reasoningModel}
@@ -1906,15 +1899,21 @@ export default function SettingsPage({ activeSection = "general" }: SettingsPage
<div className="space-y-2.5">
{[
{
- input: `Hey ${agentName}, write a formal email about the budget`,
+ input: t("settingsPage.agentConfig.examples.formalEmail", {
+ agentName,
+ }),
mode: t("settingsPage.agentConfig.instructionMode"),
},
{
- input: `Hey ${agentName}, make this more professional`,
+ input: t("settingsPage.agentConfig.examples.professional", {
+ agentName,
+ }),
mode: t("settingsPage.agentConfig.instructionMode"),
},
{
- input: `Hey ${agentName}, convert this to bullet points`,
+ input: t("settingsPage.agentConfig.examples.bulletPoints", {
+ agentName,
+ }),
mode: t("settingsPage.agentConfig.instructionMode"),
},
{
@@ -2135,7 +2134,7 @@ export default function SettingsPage({ activeSection = "general" }: SettingsPage
t("settingsPage.general.updates.dialogs.noUpdates.description"),
});
}
- } catch (error: any) {
+ } catch {
showAlertDialog({
title: t("settingsPage.general.updates.dialogs.checkFailed.title"),
description: t(
@@ -2164,7 +2163,7 @@ export default function SettingsPage({ activeSection = "general" }: SettingsPage
onClick={async () => {
try {
await downloadUpdate();
- } catch (error: any) {
+ } catch {
showAlertDialog({
title: t(
"settingsPage.general.updates.dialogs.downloadFailed.title"
@@ -2221,7 +2220,7 @@ export default function SettingsPage({ activeSection = "general" }: SettingsPage
onConfirm: async () => {
try {
await installUpdateAction();
- } catch (error: any) {
+ } catch {
showAlertDialog({
title: t(
"settingsPage.general.updates.dialogs.installFailed.title"
diff --git a/src/components/TranscriptionModelPicker.tsx b/src/components/TranscriptionModelPicker.tsx
index 19f3292fd..7fee18d4f 100644
--- a/src/components/TranscriptionModelPicker.tsx
+++ b/src/components/TranscriptionModelPicker.tsx
@@ -828,7 +828,7 @@ export default function TranscriptionModelPicker({
openai: "https://platform.openai.com/api-keys",
}[selectedCloudProvider] || "https://platform.openai.com/api-keys"
)}
- className="text-xs text-white/70 hover:text-white transition-colors cursor-pointer"
+ className="text-xs text-primary/70 hover:text-primary transition-colors cursor-pointer"
>
{t("transcription.getKey")}
</button>
diff --git a/src/components/notes/ActionManagerDialog.tsx b/src/components/notes/ActionManagerDialog.tsx
index c5d713dae..1ec3166a6 100644
--- a/src/components/notes/ActionManagerDialog.tsx
+++ b/src/components/notes/ActionManagerDialog.tsx
@@ -10,7 +10,7 @@ import {
getActionName,
getActionDescription,
} from "../../stores/actionStore";
-import { notesInputClass } from "./shared";
+import { notesInputClass, notesTextareaClass } from "./shared";
import type { ActionItem } from "../../types/electron";
interface ActionManagerDialogProps {
@@ -109,13 +109,7 @@ export default function ActionManagerDialog({ open, onOpenChange }: ActionManage
placeholder={t("notes.actions.promptPlaceholder")}
rows={3}
disabled={isSaving}
- className={cn(
- "w-full px-3 py-2 rounded-md text-xs leading-relaxed resize-none",
- "bg-foreground/3 dark:bg-white/4 border border-border/30 dark:border-white/6",
- "text-foreground/80 placeholder:text-foreground/20 outline-none",
- "focus:border-primary/30 transition-colors duration-150",
- "disabled:opacity-40"
- )}
+ className={cn(notesTextareaClass, "disabled:opacity-40")}
/>
<div className="flex items-center justify-end gap-2">
{editingId !== null && (
diff --git a/src/components/notes/ActionProcessingOverlay.tsx b/src/components/notes/ActionProcessingOverlay.tsx
index 65107a310..fe628700b 100644
--- a/src/components/notes/ActionProcessingOverlay.tsx
+++ b/src/components/notes/ActionProcessingOverlay.tsx
@@ -25,7 +25,7 @@ export default function ActionProcessingOverlay({
}
}, [state]);
- if (!visible && state === "idle") return null;
+ if (!visible) return null;
const isSuccess = state === "success";
const isFadingOut = state === "idle";
@@ -56,8 +56,8 @@ export default function ActionProcessingOverlay({
style={{
animation: isSuccess ? "none" : "scanner-sweep 2.5s ease-in-out infinite",
boxShadow: isSuccess
- ? "0 0 24px 8px oklch(0.7 0.18 145 / 0.2)"
- : "0 0 24px 8px oklch(0.55 0.22 285 / 0.15)",
+ ? "0 0 24px 8px color-mix(in oklch, var(--color-success) 20%, transparent)"
+ : "0 0 24px 8px color-mix(in oklch, var(--color-accent) 15%, transparent)",
...(isSuccess ? { top: "50%" } : {}),
}}
/>
diff --git a/src/components/notes/NoteEditor.tsx b/src/components/notes/NoteEditor.tsx
index 3bc9d65ff..1d54cae2b 100644
--- a/src/components/notes/NoteEditor.tsx
+++ b/src/components/notes/NoteEditor.tsx
@@ -13,10 +13,10 @@ import type { NoteItem } from "../../types/electron";
import type { ActionProcessingState } from "../../hooks/useActionProcessing";
import ActionProcessingOverlay from "./ActionProcessingOverlay";
import DictationWidget from "./DictationWidget";
+import { normalizeDbDate } from "../../utils/dateFormatting";
function formatNoteDate(dateStr: string): string {
- const source = dateStr.endsWith("Z") ? dateStr : `${dateStr}Z`;
- const date = new Date(source);
+ const date = normalizeDbDate(dateStr);
if (Number.isNaN(date.getTime())) return "";
const datePart = date.toLocaleDateString(undefined, {
month: "short",
@@ -410,8 +410,6 @@ export default function NoteEditor({
document.execCommand("insertText", false, text);
}, []);
- // --- Dictation lifecycle ---
-
const handleStartRecording = useCallback(() => {
if (textareaRef.current) {
syncSelectionRefs(textareaRef.current.selectionStart, textareaRef.current.selectionEnd);
diff --git a/src/components/notes/NoteListItem.tsx b/src/components/notes/NoteListItem.tsx
index ec18986a2..988cb29ad 100644
--- a/src/components/notes/NoteListItem.tsx
+++ b/src/components/notes/NoteListItem.tsx
@@ -14,6 +14,7 @@ import {
} from "../ui/dropdown-menu";
import { cn } from "../lib/utils";
import type { NoteItem, FolderItem } from "../../types/electron";
+import { normalizeDbDate } from "../../utils/dateFormatting";
const RE_HEADING = /#{1,6}\s+/g;
const RE_EMPHASIS = /[*_~`]+/g;
@@ -54,8 +55,7 @@ function relativeTime(
dateStr: string,
t: (key: string, options?: Record<string, unknown>) => string
): string {
- const source = dateStr.endsWith("Z") ? dateStr : `${dateStr}Z`;
- const date = new Date(source);
+ const date = normalizeDbDate(dateStr);
if (Number.isNaN(date.getTime())) return dateStr;
const diff = Date.now() - date.getTime();
@@ -115,8 +115,8 @@ export default function NoteListItem({
<div className="flex items-center justify-between gap-2">
<p
className={cn(
- "text-xs truncate transition-colors duration-150",
- isActive ? "text-foreground font-medium" : "text-foreground"
+ "text-xs truncate transition-colors duration-150 text-foreground",
+ isActive && "font-medium"
)}
>
{note.title || t("notes.list.untitled")}
diff --git a/src/components/notes/NotesOnboarding.tsx b/src/components/notes/NotesOnboarding.tsx
index 8ddae3c0f..e06369eaf 100644
--- a/src/components/notes/NotesOnboarding.tsx
+++ b/src/components/notes/NotesOnboarding.tsx
@@ -11,7 +11,7 @@ import {
getActionName,
getActionDescription,
} from "../../stores/actionStore";
-import { notesInputClass } from "./shared";
+import { notesInputClass, notesTextareaClass } from "./shared";
import { useDialogs } from "../../hooks/useDialogs";
import { AlertDialog } from "../ui/dialog";
import ReasoningModelSelector from "../ReasoningModelSelector";
@@ -49,7 +49,7 @@ export default function NotesOnboarding({ onComplete }: NotesOnboardingProps) {
const customReasoningApiKey = useSettingsStore((s) => s.customReasoningApiKey);
const setCustomReasoningApiKey = useSettingsStore((s) => s.setCustomReasoningApiKey);
- const { alertDialog, showAlertDialog, hideAlertDialog } = useDialogs();
+ const { alertDialog, hideAlertDialog } = useDialogs();
useEffect(() => {
initializeActions();
@@ -162,7 +162,6 @@ export default function NotesOnboarding({ onComplete }: NotesOnboardingProps) {
setGroqApiKey={setGroqApiKey}
customReasoningApiKey={customReasoningApiKey}
setCustomReasoningApiKey={setCustomReasoningApiKey}
- showAlertDialog={showAlertDialog}
/>
</div>
)}
@@ -281,13 +280,7 @@ export default function NotesOnboarding({ onComplete }: NotesOnboardingProps) {
aria-label={t("notes.actions.promptPlaceholder")}
rows={3}
disabled={isSaving}
- className={cn(
- "w-full px-3 py-2 rounded-md text-xs leading-relaxed resize-none",
- "bg-foreground/3 dark:bg-white/4 border border-border/30 dark:border-white/6",
- "text-foreground/80 placeholder:text-foreground/20 outline-none",
- "focus:border-primary/30 transition-colors duration-150",
- "disabled:opacity-40"
- )}
+ className={cn(notesTextareaClass, "disabled:opacity-40")}
/>
<div className="flex justify-end">
<Button
diff --git a/src/components/notes/PersonalNotesView.tsx b/src/components/notes/PersonalNotesView.tsx
index ce71d36a3..943398fed 100644
--- a/src/components/notes/PersonalNotesView.tsx
+++ b/src/components/notes/PersonalNotesView.tsx
@@ -17,14 +17,12 @@ import ActionManagerDialog from "./ActionManagerDialog";
import AddNotesToFolderDialog from "./AddNotesToFolderDialog";
import { useNoteRecording } from "../../hooks/useNoteRecording";
import { useActionProcessing } from "../../hooks/useActionProcessing";
-import {
- useSettingsStore,
- selectEffectiveReasoningModel,
- selectIsCloudReasoningMode,
-} from "../../stores/settingsStore";
+import { useSettingsStore, selectIsCloudReasoningMode } from "../../stores/settingsStore";
import { useFolderManagement } from "../../hooks/useFolderManagement";
import { useNoteDragAndDrop } from "../../hooks/useNoteDragAndDrop";
import { cn } from "../lib/utils";
+import { MEETINGS_FOLDER_NAME } from "./shared";
+import logger from "../../utils/logger";
import {
useNotes,
useActiveNoteId,
@@ -40,6 +38,10 @@ import RealtimeTranscriptionBanner from "./RealtimeTranscriptionBanner";
const FOLDER_INPUT_CLASS =
"w-full h-6 bg-foreground/5 dark:bg-white/5 rounded px-2 text-xs text-foreground outline-none border border-primary/30 focus:border-primary/50";
+function makeContentHash(content: string): string {
+ return String(content.length) + "-" + content.slice(0, 50);
+}
+
interface PersonalNotesViewProps {
onOpenSettings?: (section: string) => void;
}
@@ -64,7 +66,7 @@ export default function PersonalNotesView({ onOpenSettings }: PersonalNotesViewP
localTitleRef.current = localTitle;
const { toast } = useToast();
const isCloudMode = useSettingsStore(selectIsCloudReasoningMode);
- const effectiveModelId = useSettingsStore(selectEffectiveReasoningModel);
+ const effectiveModelId = useSettingsStore((s) => s.reasoningModel);
const {
isComplete: isOnboardingComplete,
isProUser,
@@ -96,7 +98,7 @@ export default function PersonalNotesView({ onOpenSettings }: PersonalNotesViewP
const activeNote = notes.find((n) => n.id === activeNoteId) ?? null;
const isMeetingsFolder = useMemo(
- () => folders.find((f) => f.id === activeFolderId)?.name === "Meetings",
+ () => folders.find((f) => f.id === activeFolderId)?.name === MEETINGS_FOLDER_NAME,
[folders, activeFolderId]
);
@@ -120,6 +122,8 @@ export default function PersonalNotesView({ onOpenSettings }: PersonalNotesViewP
),
});
+ const handleFinalTranscriptConsumed = useCallback(() => setFinalTranscript(null), []);
+
useEffect(() => {
if (activeNote && activeNote.id !== activeNoteRef.current) {
activeNoteRef.current = activeNote.id;
@@ -138,6 +142,8 @@ export default function PersonalNotesView({ onOpenSettings }: PersonalNotesViewP
setIsSaving(true);
try {
await window.electronAPI.updateNote(noteId, { title, content });
+ } catch (err) {
+ logger.warn("Failed to save note", { error: (err as Error).message }, "notes");
} finally {
setIsSaving(false);
}
@@ -255,8 +261,7 @@ export default function PersonalNotesView({ onOpenSettings }: PersonalNotesViewP
async (enhancedContent: string, prompt: string) => {
if (!activeNoteId) return;
setLocalEnhancedContent(enhancedContent);
- const hash =
- String(localContentRef.current.length) + "-" + localContentRef.current.slice(0, 50);
+ const hash = makeContentHash(localContentRef.current);
setIsSaving(true);
try {
await window.electronAPI.updateNote(activeNoteId, {
@@ -301,7 +306,7 @@ export default function PersonalNotesView({ onOpenSettings }: PersonalNotesViewP
const isEnhancementStale = useMemo(() => {
if (!activeNote?.enhanced_content || !activeNote?.enhanced_at_content_hash) return false;
- const currentHash = String(localContent.length) + "-" + localContent.slice(0, 50);
+ const currentHash = makeContentHash(localContent);
return currentHash !== activeNote.enhanced_at_content_hash;
}, [activeNote?.enhanced_content, activeNote?.enhanced_at_content_hash, localContent]);
@@ -343,7 +348,7 @@ export default function PersonalNotesView({ onOpenSettings }: PersonalNotesViewP
<div className="px-1.5 space-y-px">
{folders.map((folder) => {
const isActive = folder.id === activeFolderId;
- const isMeetings = folder.name === "Meetings";
+ const isMeetings = folder.name === MEETINGS_FOLDER_NAME;
const count = folderCounts[folder.id] || 0;
const isRenaming = renamingFolderId === folder.id;
@@ -747,7 +752,7 @@ export default function PersonalNotesView({ onOpenSettings }: PersonalNotesViewP
isProcessing={isProcessing}
partialTranscript={partialTranscript}
finalTranscript={finalTranscript}
- onFinalTranscriptConsumed={() => setFinalTranscript(null)}
+ onFinalTranscriptConsumed={handleFinalTranscriptConsumed}
streamingCommit={streamingCommit}
onStreamingCommitConsumed={consumeStreamingCommit}
onStartRecording={startRecording}
diff --git a/src/components/notes/UploadAudioView.tsx b/src/components/notes/UploadAudioView.tsx
index 09e493fb9..e62a0d7b0 100644
--- a/src/components/notes/UploadAudioView.tsx
+++ b/src/components/notes/UploadAudioView.tsx
@@ -25,13 +25,14 @@ import {
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from "../ui/dialog";
import { Input } from "../ui/input";
import type { FolderItem } from "../../types/electron";
+import { findDefaultFolder, MEETINGS_FOLDER_NAME } from "./shared";
import { useAuth } from "../../hooks/useAuth";
import { useUsage } from "../../hooks/useUsage";
import { useSettings } from "../../hooks/useSettings";
import { withSessionRefresh } from "../../lib/neonAuth";
import reasoningService from "../../services/ReasoningService";
import { getAllReasoningModels } from "../../models/ModelRegistry";
-import { useSettingsStore, selectEffectiveReasoningModel } from "../../stores/settingsStore";
+import { useSettingsStore } from "../../stores/settingsStore";
const TranscriptionModelPicker = React.lazy(() => import("../TranscriptionModelPicker"));
@@ -109,7 +110,7 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: Uploa
updateTranscriptionSettings,
} = useSettings();
- const effectiveReasoningModel = useSettingsStore(selectEffectiveReasoningModel);
+ const effectiveReasoningModel = useSettingsStore((s) => s.reasoningModel);
const useReasoningModel = useSettingsStore((s) => s.useReasoningModel);
const isOpenWhisprCloud =
@@ -128,7 +129,7 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: Uploa
useEffect(() => {
window.electronAPI.getFolders?.().then((f) => {
setFolders(f);
- const personal = f.find((x) => x.name === "Personal" && x.is_default);
+ const personal = findDefaultFolder(f);
if (personal) setSelectedFolderId(String(personal.id));
});
}, []);
@@ -259,7 +260,7 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: Uploa
setNoteId(null);
setError(null);
setProgress(0);
- const personal = folders.find((f) => f.name === "Personal" && f.is_default);
+ const personal = findDefaultFolder(folders);
if (personal) setSelectedFolderId(String(personal.id));
};
@@ -286,9 +287,9 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: Uploa
res = await withSessionRefresh(async () => {
const r = await window.electronAPI.transcribeAudioFileCloud!(file.path);
if (!r.success && r.code) {
- const err = new Error(r.error || "Cloud transcription failed");
- (err as any).code = r.code;
- throw err;
+ throw Object.assign(new Error(r.error || "Cloud transcription failed"), {
+ code: r.code,
+ });
}
return r;
});
@@ -462,7 +463,7 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: Uploa
{showSetup && (
<div className="mb-6" style={{ animation: "float-up 0.3s ease-out" }}>
<div className="flex flex-col items-center mb-5">
- <div className="w-10 h-10 rounded-[10px] bg-gradient-to-b from-primary/10 to-primary/[0.03] dark:from-primary/15 dark:to-primary/5 border border-primary/15 dark:border-primary/20 flex items-center justify-center mb-3">
+ <div className="w-10 h-10 rounded-[10px] bg-linear-to-b from-primary/10 to-primary/[0.03] dark:from-primary/15 dark:to-primary/5 border border-primary/15 dark:border-primary/20 flex items-center justify-center mb-3">
<Upload size={17} strokeWidth={1.5} className="text-primary/50" />
</div>
<h2 className="text-xs font-semibold text-foreground mb-1">
@@ -686,7 +687,7 @@ function IdleView({
return (
<>
<div className="flex flex-col items-center mb-5">
- <div className="w-10 h-10 rounded-[10px] bg-gradient-to-b from-foreground/5 to-foreground/[0.02] dark:from-white/8 dark:to-white/3 border border-foreground/8 dark:border-white/8 flex items-center justify-center mb-4">
+ <div className="w-10 h-10 rounded-[10px] bg-linear-to-b from-foreground/5 to-foreground/[0.02] dark:from-white/8 dark:to-white/3 border border-foreground/8 dark:border-white/8 flex items-center justify-center mb-4">
<Upload
size={17}
strokeWidth={1.5}
@@ -936,7 +937,7 @@ function CompleteView({
</SelectTrigger>
<SelectContent>
{folders.map((f) => {
- const isMeetings = f.name === "Meetings" && !!f.is_default;
+ const isMeetings = f.name === MEETINGS_FOLDER_NAME && !!f.is_default;
return (
<SelectItem
key={f.id}
diff --git a/src/components/notes/shared.ts b/src/components/notes/shared.ts
index 2fcfbc595..af1cb6f07 100644
--- a/src/components/notes/shared.ts
+++ b/src/components/notes/shared.ts
@@ -1,4 +1,12 @@
import { cn } from "../lib/utils";
+import type { FolderItem } from "../../types/electron";
+
+export const DEFAULT_FOLDER_NAME = "Personal";
+export const MEETINGS_FOLDER_NAME = "Meetings";
+
+export function findDefaultFolder(folders: FolderItem[]): FolderItem | undefined {
+ return folders.find((f) => f.name === DEFAULT_FOLDER_NAME && f.is_default);
+}
export const notesInputClass = cn(
"w-full h-8 px-3 rounded-md text-xs",
@@ -6,3 +14,10 @@ export const notesInputClass = cn(
"text-foreground/80 placeholder:text-foreground/20 outline-none",
"focus:border-primary/30 transition-colors duration-150"
);
+
+export const notesTextareaClass = cn(
+ "w-full px-3 py-2 rounded-md text-xs leading-relaxed resize-none",
+ "bg-foreground/3 dark:bg-white/4 border border-border/30 dark:border-white/6",
+ "text-foreground/80 placeholder:text-foreground/20 outline-none",
+ "focus:border-primary/30 transition-colors duration-150"
+);
diff --git a/src/components/ui/ApiKeyInput.tsx b/src/components/ui/ApiKeyInput.tsx
index 14546d4f5..3daf66d7b 100644
--- a/src/components/ui/ApiKeyInput.tsx
+++ b/src/components/ui/ApiKeyInput.tsx
@@ -2,6 +2,7 @@ import React, { useState, useEffect, useRef } from "react";
import { useTranslation } from "react-i18next";
import { Check, X, KeyRound } from "lucide-react";
import { Input } from "./input";
+import logger from "../../utils/logger";
interface ApiKeyInputProps {
apiKey: string;
@@ -56,8 +57,8 @@ export default function ApiKeyInput({
const save = () => {
try {
setApiKey(draft.trim());
- } catch {
- // Store setter may throw (e.g. cache invalidation in renderer)
+ } catch (err) {
+ logger.warn("Failed to save API key", { error: (err as Error).message }, "settings");
}
setIsEditing(false);
};
diff --git a/src/components/ui/PromptStudio.tsx b/src/components/ui/PromptStudio.tsx
index 438de39da..63dde076c 100644
--- a/src/components/ui/PromptStudio.tsx
+++ b/src/components/ui/PromptStudio.tsx
@@ -1,4 +1,4 @@
-import React, { useState, useEffect } from "react";
+import { useState, useEffect } from "react";
import { useTranslation } from "react-i18next";
import { Button } from "./button";
import { Textarea } from "./textarea";
@@ -20,11 +20,7 @@ import ReasoningService from "../../services/ReasoningService";
import { getModelProvider } from "../../models/ModelRegistry";
import logger from "../../utils/logger";
import { UNIFIED_SYSTEM_PROMPT } from "../../config/prompts";
-import {
- useSettingsStore,
- selectEffectiveReasoningModel,
- selectIsCloudReasoningMode,
-} from "../../stores/settingsStore";
+import { useSettingsStore, selectIsCloudReasoningMode } from "../../stores/settingsStore";
interface PromptStudioProps {
className?: string;
@@ -74,7 +70,7 @@ export default function PromptStudio({ className = "" }: PromptStudioProps) {
const { alertDialog, showAlertDialog, hideAlertDialog } = useDialogs();
const { agentName } = useAgentName();
- const effectiveModel = useSettingsStore(selectEffectiveReasoningModel);
+ const effectiveModel = useSettingsStore((s) => s.reasoningModel);
const isCloudMode = useSettingsStore(selectIsCloudReasoningMode);
const useReasoningModel = useSettingsStore((s) => s.useReasoningModel);
const reasoningModel = useSettingsStore((s) => s.reasoningModel);
@@ -172,7 +168,10 @@ export default function PromptStudio({ className = "" }: PromptStudioProps) {
if (!baseUrl) {
setTestResult(
t("promptStudio.test.baseUrlMissing", {
- provider: providerConfig.label,
+ provider:
+ reasoningProvider === "custom"
+ ? t("promptStudio.test.customEndpoint")
+ : providerConfig.label,
})
);
return;
@@ -372,7 +371,10 @@ export default function PromptStudio({ className = "" }: PromptStudioProps) {
const displayModel = isCloudMode
? t("promptStudio.test.openwhisprCloud")
: reasoningModel || t("promptStudio.test.none");
- const displayProvider = providerConfig.label;
+ const displayProvider =
+ reasoningProvider === "custom"
+ ? t("promptStudio.test.customEndpoint")
+ : providerConfig.label;
return (
<div className="divide-y divide-border/40 dark:divide-border-subtle">
diff --git a/src/helpers/database.js b/src/helpers/database.js
index fdad8f7d5..423c8faa7 100644
--- a/src/helpers/database.js
+++ b/src/helpers/database.js
@@ -135,7 +135,6 @@ class DatabaseManager {
);
}
- // Back-fill translation_key for existing installs
this.db
.prepare(
"UPDATE actions SET translation_key = ? WHERE is_builtin = 1 AND name = ? AND translation_key IS NULL"
diff --git a/src/helpers/ipcHandlers.js b/src/helpers/ipcHandlers.js
index 8f6450074..3d2665fcd 100644
--- a/src/helpers/ipcHandlers.js
+++ b/src/helpers/ipcHandlers.js
@@ -124,7 +124,6 @@ class IPCHandlers {
}
setupHandlers() {
- // Window control handlers
ipcMain.handle("window-minimize", () => {
if (this.windowManager.controlPanelWindow) {
this.windowManager.controlPanelWindow.minimize();
@@ -187,7 +186,6 @@ class IPCHandlers {
return this.windowManager.resizeMainWindow(sizeKey);
});
- // Environment handlers
ipcMain.handle("get-openai-key", async (event) => {
return this.environmentManager.getOpenAIKey();
});
@@ -236,7 +234,6 @@ class IPCHandlers {
return result;
});
- // Dictionary handlers
ipcMain.handle("db-get-dictionary", async () => {
return this.databaseManager.getDictionary();
});
@@ -248,7 +245,6 @@ class IPCHandlers {
return this.databaseManager.setDictionary(words);
});
- // Note handlers
ipcMain.handle(
"db-save-note",
async (event, title, content, noteType, sourceFile, audioDuration, folderId) => {
@@ -297,7 +293,6 @@ class IPCHandlers {
return result;
});
- // Folder handlers
ipcMain.handle("db-get-folders", async () => {
return this.databaseManager.getFolders();
});
@@ -336,7 +331,6 @@ class IPCHandlers {
return this.databaseManager.getFolderNoteCounts();
});
- // Action handlers
ipcMain.handle("db-get-actions", async () => {
return this.databaseManager.getActions();
});
@@ -446,7 +440,6 @@ class IPCHandlers {
}
});
- // Clipboard handlers
ipcMain.handle("paste-text", async (event, text, options) => {
// If the floating dictation panel currently has focus, blur it first so the
// paste keystroke lands in the user's target app instead of the overlay.
@@ -470,7 +463,6 @@ class IPCHandlers {
return this.clipboardManager.checkPasteTools();
});
- // Whisper handlers
ipcMain.handle("transcribe-local-whisper", async (event, audioBlob, options = {}) => {
debugLogger.log("transcribe-local-whisper called", {
audioBlobType: typeof audioBlob,
@@ -602,7 +594,6 @@ class IPCHandlers {
return this.whisperManager.cancelDownload();
});
- // Whisper server handlers (for faster repeated transcriptions)
ipcMain.handle("whisper-server-start", async (event, modelName) => {
return this.whisperManager.startServer(modelName);
});
@@ -619,7 +610,6 @@ class IPCHandlers {
return this.whisperManager.checkFFmpegAvailability();
});
- // Parakeet (NVIDIA) handlers
ipcMain.handle("transcribe-local-parakeet", async (event, audioBlob, options = {}) => {
debugLogger.log("transcribe-local-parakeet called", {
audioBlobType: typeof audioBlob,
@@ -722,7 +712,6 @@ class IPCHandlers {
return this.parakeetManager.getDiagnostics();
});
- // Parakeet server handlers (for faster repeated transcriptions)
ipcMain.handle("parakeet-server-start", async (event, modelName) => {
const result = await this.parakeetManager.startServer(modelName);
process.env.LOCAL_TRANSCRIPTION_PROVIDER = "nvidia";
@@ -743,7 +732,6 @@ class IPCHandlers {
return this.parakeetManager.getServerStatus();
});
- // Utility handlers
ipcMain.handle("cleanup-app", async (event) => {
AppUtils.cleanup(this.windowManager.mainWindow);
return { success: true, message: "Cleanup completed successfully" };
@@ -857,7 +845,6 @@ class IPCHandlers {
return await this.windowManager.stopWindowDrag();
});
- // External link handler
ipcMain.handle("open-external", async (event, url) => {
try {
await shell.openExternal(url);
@@ -867,7 +854,6 @@ class IPCHandlers {
}
});
- // Auto-start handlers
ipcMain.handle("get-auto-start-enabled", async () => {
try {
const loginSettings = app.getLoginItemSettings();
@@ -892,7 +878,6 @@ class IPCHandlers {
}
});
- // Model management handlers
ipcMain.handle("model-get-all", async () => {
try {
debugLogger.debug("model-get-all called", undefined, "ipc");
@@ -1024,7 +1009,6 @@ class IPCHandlers {
return this.environmentManager.saveMistralKey(key);
});
- // Proxy Mistral transcription through main process to avoid CORS
ipcMain.handle(
"proxy-mistral-transcription",
async (event, { audioBuffer, model, language, contextBias }) => {
@@ -1079,7 +1063,6 @@ class IPCHandlers {
return this.environmentManager.saveCustomReasoningKey(key);
});
- // Dictation key handlers for reliable persistence across restarts
ipcMain.handle("get-dictation-key", async () => {
return this.environmentManager.getDictationKey();
});
@@ -1153,7 +1136,6 @@ class IPCHandlers {
this._syncStartupEnv(setVars, clearVars);
});
- // Local reasoning handler
ipcMain.handle("process-local-reasoning", async (event, text, modelId, _agentName, config) => {
try {
const LocalReasoningService = require("../services/localReasoningBridge").default;
@@ -1164,7 +1146,6 @@ class IPCHandlers {
}
});
- // Anthropic reasoning handler
ipcMain.handle(
"process-anthropic-reasoning",
async (event, text, modelId, _agentName, config) => {
@@ -1224,7 +1205,6 @@ class IPCHandlers {
}
);
- // Check if local reasoning is available
ipcMain.handle("check-local-reasoning-available", async () => {
try {
const LocalReasoningService = require("../services/localReasoningBridge").default;
@@ -1234,7 +1214,6 @@ class IPCHandlers {
}
});
- // llama.cpp installation handlers
ipcMain.handle("llama-cpp-check", async () => {
try {
const llamaCppInstaller = require("./llamaCppInstaller").default;
@@ -1266,7 +1245,6 @@ class IPCHandlers {
}
});
- // llama-server management handlers
ipcMain.handle("llama-server-start", async (event, modelId) => {
try {
const modelManager = require("./modelManagerBridge").default;
@@ -1389,8 +1367,6 @@ class IPCHandlers {
}
});
- // --- OpenWhispr Cloud API handlers ---
-
// In production, VITE_* env vars aren't available in the main process because
// Vite only inlines them into the renderer bundle at build time. Load the
// runtime-env.json that the Vite build writes to src/dist/ as a fallback.
@@ -1759,7 +1735,6 @@ class IPCHandlers {
}
);
- // Referral stats handler
ipcMain.handle("get-referral-stats", async (event) => {
try {
const apiUrl = getApiUrl();
@@ -1775,7 +1750,6 @@ class IPCHandlers {
const response = await fetch(`${apiUrl}/api/referrals/stats`, {
headers: {
Cookie: cookieHeader,
- "Content-Type": "application/json",
},
});
@@ -1815,12 +1789,16 @@ class IPCHandlers {
body: JSON.stringify({ email }),
});
- const data = await response.json();
-
if (!response.ok) {
- throw new Error(data.error || `Failed to send invite: ${response.status}`);
+ let errorMessage = `Failed to send invite: ${response.status}`;
+ try {
+ const errorData = await response.json();
+ if (errorData.error) errorMessage = errorData.error;
+ } catch (_) {}
+ throw new Error(errorMessage);
}
+ const data = await response.json();
return data;
} catch (error) {
debugLogger.error("Error sending referral invite:", error);
@@ -1843,7 +1821,6 @@ class IPCHandlers {
const response = await fetch(`${apiUrl}/api/referrals/invites`, {
headers: {
Cookie: cookieHeader,
- "Content-Type": "application/json",
},
});
@@ -1873,7 +1850,6 @@ class IPCHandlers {
}
});
- // Debug logging handlers
ipcMain.handle("get-debug-state", async () => {
try {
return {
@@ -1955,7 +1931,6 @@ class IPCHandlers {
}
});
- // Update handlers
ipcMain.handle("check-for-updates", async () => {
return this.updateManager.checkForUpdates();
});
@@ -1980,9 +1955,6 @@ class IPCHandlers {
return this.updateManager.getUpdateInfo();
});
- // --- Assembly AI Streaming handlers ---
-
- // Helper to fetch streaming token
const fetchStreamingToken = async (event) => {
const apiUrl = getApiUrl();
if (!apiUrl) {
@@ -2183,8 +2155,6 @@ class IPCHandlers {
return this.assemblyAiStreaming.getStatus();
});
- // --- Deepgram Streaming handlers ---
-
let deepgramTokenWindowId = null;
const fetchDeepgramStreamingTokenFromWindow = async (windowId) => {
diff --git a/src/hooks/useActionProcessing.ts b/src/hooks/useActionProcessing.ts
index 107f22ae3..5d68ed26a 100644
--- a/src/hooks/useActionProcessing.ts
+++ b/src/hooks/useActionProcessing.ts
@@ -1,4 +1,5 @@
import { useState, useEffect, useRef, useCallback } from "react";
+import { useTranslation } from "react-i18next";
import reasoningService from "../services/ReasoningService";
import type { ActionItem } from "../types/electron";
import { getEffectiveReasoningModel } from "../stores/settingsStore";
@@ -14,6 +15,7 @@ interface UseActionProcessingOptions {
}
export function useActionProcessing({ onSuccess, onError }: UseActionProcessingOptions) {
+ const { t } = useTranslation();
const [state, setState] = useState<ActionProcessingState>("idle");
const [actionName, setActionName] = useState<string | null>(null);
const cancelledRef = useRef(false);
@@ -37,7 +39,7 @@ export function useActionProcessing({ onSuccess, onError }: UseActionProcessingO
const modelId = getEffectiveReasoningModel() || options.modelId;
if (!modelId && !options.isCloudMode) {
- onError("No AI model selected. Configure one in Settings.");
+ onError(t("notes.actions.errors.noModel"));
return;
}
@@ -68,10 +70,10 @@ export function useActionProcessing({ onSuccess, onError }: UseActionProcessingO
processingRef.current = false;
setState("idle");
setActionName(null);
- onError(err instanceof Error ? err.message : "Action failed");
+ onError(err instanceof Error ? err.message : t("notes.actions.errors.actionFailed"));
}
},
- [onSuccess, onError]
+ [onSuccess, onError, t]
);
const cancel = useCallback(() => {
diff --git a/src/hooks/useFolderManagement.ts b/src/hooks/useFolderManagement.ts
index dcbd2ca3c..90c4412f9 100644
--- a/src/hooks/useFolderManagement.ts
+++ b/src/hooks/useFolderManagement.ts
@@ -1,7 +1,9 @@
import { useState, useEffect, useRef, useCallback } from "react";
import { useTranslation } from "react-i18next";
import { useToast } from "../components/ui/Toast";
+import logger from "../utils/logger";
import type { FolderItem } from "../types/electron";
+import { findDefaultFolder } from "../components/notes/shared";
import {
useActiveFolderId,
setActiveFolderId,
@@ -66,13 +68,15 @@ export function useFolderManagement(): UseFolderManagementReturn {
});
setFolderCounts(countMap);
return items;
- } catch {
+ } catch (err) {
+ logger.warn("Failed to load folders", { error: (err as Error).message }, "notes");
return [];
}
}, []);
// Load folders on mount, determine initial active folder
useEffect(() => {
+ isMountedRef.current = true;
const load = async () => {
try {
setIsLoading(true);
@@ -85,7 +89,7 @@ export function useFolderManagement(): UseFolderManagementReturn {
const initialFolderId = isPresetValid
? presetFolderId
- : (items.find((f) => f.name === "Personal" && f.is_default)?.id ?? items[0]?.id ?? null);
+ : (findDefaultFolder(items)?.id ?? items[0]?.id ?? null);
if (initialFolderId !== presetFolderId) {
setActiveFolderId(initialFolderId);
@@ -185,7 +189,7 @@ export function useFolderManagement(): UseFolderManagementReturn {
async (folderId: number) => {
const result = await window.electronAPI.deleteFolder(folderId);
if (result.success) {
- const personalFolder = folders.find((f) => f.name === "Personal" && f.is_default);
+ const personalFolder = findDefaultFolder(folders);
if (activeFolderId === folderId && personalFolder) {
setActiveFolderId(personalFolder.id);
}
diff --git a/src/hooks/useNoteDragAndDrop.ts b/src/hooks/useNoteDragAndDrop.ts
index 6b3a8d301..667247c5e 100644
--- a/src/hooks/useNoteDragAndDrop.ts
+++ b/src/hooks/useNoteDragAndDrop.ts
@@ -1,4 +1,5 @@
import { useState, useCallback, useRef, useEffect } from "react";
+import { MEETINGS_FOLDER_NAME } from "../components/notes/shared";
interface DragState {
draggingNoteId: number | null;
@@ -40,12 +41,12 @@ export function useNoteDragAndDrop({ onMoveToFolder, currentFolderId }: UseNoteD
ghost.style.cssText = `
position: fixed; top: -200px; left: -200px;
padding: 4px 12px;
- background: oklch(0.27 0.008 260 / 0.95);
- color: oklch(0.9 0 0);
+ background: color-mix(in oklch, var(--color-popover) 95%, transparent);
+ color: var(--color-popover-foreground);
font-size: 11px;
font-weight: 500;
border-radius: 6px;
- border: 1px solid oklch(0.38 0.008 260);
+ border: 1px solid var(--color-border);
white-space: nowrap;
pointer-events: none;
`;
@@ -70,7 +71,7 @@ export function useNoteDragAndDrop({ onMoveToFolder, currentFolderId }: UseNoteD
const folderDropHandlers = useCallback(
(folderId: number, folderName: string) => {
- const isMeetings = folderName === "Meetings";
+ const isMeetings = folderName === MEETINGS_FOLDER_NAME;
const isSameFolder = folderId === currentFolderId;
const canDrop = !isMeetings && !isSameFolder;
diff --git a/src/hooks/useNotesOnboarding.ts b/src/hooks/useNotesOnboarding.ts
index 292f1632d..fdf8f4bd3 100644
--- a/src/hooks/useNotesOnboarding.ts
+++ b/src/hooks/useNotesOnboarding.ts
@@ -1,9 +1,5 @@
import { useState, useCallback } from "react";
-import {
- useSettingsStore,
- selectEffectiveReasoningModel,
- selectIsCloudReasoningMode,
-} from "../stores/settingsStore";
+import { useSettingsStore, selectIsCloudReasoningMode } from "../stores/settingsStore";
import { useUsage } from "./useUsage";
interface UseNotesOnboardingReturn {
@@ -19,7 +15,7 @@ export function useNotesOnboarding(): UseNotesOnboardingReturn {
const isProUser = !!(usage?.isSubscribed || usage?.isTrial);
const isProLoading = usage !== null && !usage.hasLoaded;
const useReasoningModel = useSettingsStore((s) => s.useReasoningModel);
- const effectiveModel = useSettingsStore(selectEffectiveReasoningModel);
+ const effectiveModel = useSettingsStore((s) => s.reasoningModel);
const isCloudReasoning = useSettingsStore(selectIsCloudReasoningMode);
const [isComplete, setIsComplete] = useState(
diff --git a/src/index.css b/src/index.css
index b53ac24c1..d99400912 100644
--- a/src/index.css
+++ b/src/index.css
@@ -61,7 +61,7 @@
--radius-sm: 0.25rem; /* 4px - minimal rounding */
--radius-md: 0.375rem; /* 6px - standard */
--radius-lg: 0.5rem; /* 8px - cards, panels */
- --radius-xl: 0.5rem; /* 8px - large cards (reduced from 10px) */
+ --radius-xl: 0.625rem; /* 10px - large cards */
/* Custom Light Mode Brand Colors (Parchment Theme) */
--color-parchment-bg: #f9f6f1;
@@ -230,7 +230,9 @@ button {
button:hover,
[role="button"]:hover,
.cursor-pointer:hover,
-svg:hover,
+button svg:hover,
+[role="button"] svg:hover,
+a svg:hover,
[data-icon]:hover,
.icon:hover {
cursor: pointer;
diff --git a/src/locales/de/translation.json b/src/locales/de/translation.json
index 0687f5822..a22635c35 100644
--- a/src/locales/de/translation.json
+++ b/src/locales/de/translation.json
@@ -6,19 +6,7 @@
"uiLabel": "Sprache der Oberfläche",
"uiDescription": "Wählen Sie die Sprache für die OpenWhispr-Oberfläche",
"transcriptionLabel": "Transkriptionssprache",
- "transcriptionDescription": "Wählen Sie die Sprache, die Sie sprechen, für genauere Transkription",
- "uiOption": {
- "en": "English",
- "es": "Espanol",
- "fr": "Francais",
- "de": "Deutsch",
- "pt": "Portugues",
- "it": "Italiano",
- "zh-CN": "简体中文",
- "zh-TW": "繁體中文",
- "ru": "Русский",
- "ja": "日本語"
- }
+ "transcriptionDescription": "Wählen Sie die Sprache, die Sie sprechen, für genauere Transkription"
}
},
"tray": {
@@ -346,7 +334,7 @@
"rateLimited": "Download-Server begrenzt Anfragen. Bitte warten Sie einige Minuten und versuchen Sie es erneut.",
"server": "Serverfehler ({{error}}). Bitte versuchen Sie es später erneut.",
"generic": "Download fehlgeschlagen: {{error}}",
- "extractionFailed": "Modell heruntergeladen, aber Installation fehlgeschlagen. Klicken Sie auf \u201EHerunterladen\u201C, um die Installation ohne erneuten Download zu wiederholen.",
+ "extractionFailed": "Modell heruntergeladen, aber Installation fehlgeschlagen. Klicken Sie auf „Herunterladen“, um die Installation ohne erneuten Download zu wiederholen.",
"unknown": "Unbekannter Fehler"
},
"downloadFailed": {
@@ -758,7 +746,8 @@
"processing": "Verarbeitung...",
"openwhisprCloud": "OpenWhispr Cloud",
"providerLabel": "Anbieter",
- "run": "Test ausführen"
+ "run": "Test ausführen",
+ "customEndpoint": "Benutzerdefinierter Endpoint"
},
"view": {
"customPrompt": "Benutzerdefinierter Prompt",
@@ -973,7 +962,12 @@
"instructionMode": "Anweisung",
"placeholder": "z. B. Jarvis, Nova, Atlas...",
"save": "Speichern",
- "title": "Sprachagent"
+ "title": "Sprachagent",
+ "examples": {
+ "formalEmail": "Hey {{agentName}}, schreibe eine formelle E-Mail zum Thema Budget",
+ "professional": "Hey {{agentName}}, mach das professioneller",
+ "bulletPoints": "Hey {{agentName}}, wandle das in Stichpunkte um"
+ }
},
"aiModels": {
"customSetup": "Benutzerdefinierte Einrichtung",
@@ -1401,6 +1395,10 @@
"name": "Notizen bereinigen",
"description": "Grammatik, Struktur und Formatierung verbessern"
}
+ },
+ "errors": {
+ "noModel": "Kein KI-Modell ausgewählt. Konfigurieren Sie eins in den Einstellungen.",
+ "actionFailed": "Aktion fehlgeschlagen"
}
},
"empty": {
@@ -1417,9 +1415,7 @@
"addExisting": "Vorhandene hinzufügen",
"addCount": "{{count}} Notizen hinzufügen",
"noResults": "Keine passenden Notizen",
- "noNotesAvailable": "Keine weiteren Notizen verfügbar",
- "today": "Heute",
- "yesterday": "Gestern"
+ "noNotesAvailable": "Keine weiteren Notizen verfügbar"
},
"onboarding": {
"llm": {
diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json
index 5587424a7..29734035e 100644
--- a/src/locales/en/translation.json
+++ b/src/locales/en/translation.json
@@ -6,19 +6,7 @@
"uiLabel": "Interface language",
"uiDescription": "Choose the language used throughout OpenWhispr's interface",
"transcriptionLabel": "Transcription language",
- "transcriptionDescription": "Choose the language you speak for more accurate transcription",
- "uiOption": {
- "en": "English",
- "es": "Espanol",
- "fr": "Francais",
- "de": "Deutsch",
- "pt": "Portugues",
- "it": "Italiano",
- "zh-CN": "简体中文",
- "zh-TW": "繁體中文",
- "ru": "Русский",
- "ja": "日本語"
- }
+ "transcriptionDescription": "Choose the language you speak for more accurate transcription"
}
},
"tray": {
@@ -758,7 +746,8 @@
"processing": "Processing...",
"openwhisprCloud": "OpenWhispr Cloud",
"providerLabel": "Provider",
- "run": "Run Test"
+ "run": "Run Test",
+ "customEndpoint": "Custom endpoint"
},
"view": {
"customPrompt": "Custom prompt",
@@ -973,7 +962,12 @@
"instructionMode": "Instruction",
"placeholder": "e.g. Jarvis, Nova, Atlas...",
"save": "Save",
- "title": "Voice Agent"
+ "title": "Voice Agent",
+ "examples": {
+ "formalEmail": "Hey {{agentName}}, write a formal email about the budget",
+ "professional": "Hey {{agentName}}, make this more professional",
+ "bulletPoints": "Hey {{agentName}}, convert this to bullet points"
+ }
},
"aiModels": {
"customSetup": "Custom Setup",
@@ -1422,9 +1416,7 @@
"addExisting": "Add existing",
"addCount": "Add {{count}} notes",
"noResults": "No matching notes",
- "noNotesAvailable": "No other notes available",
- "today": "Today",
- "yesterday": "Yesterday"
+ "noNotesAvailable": "No other notes available"
},
"context": {
"moveToFolder": "Move to folder",
@@ -1455,6 +1447,10 @@
"name": "Clean Up Notes",
"description": "Fix grammar, structure, and formatting"
}
+ },
+ "errors": {
+ "noModel": "No AI model selected. Configure one in Settings.",
+ "actionFailed": "Action failed"
}
},
"onboarding": {
diff --git a/src/locales/es/translation.json b/src/locales/es/translation.json
index fe5f08768..03ead7aef 100644
--- a/src/locales/es/translation.json
+++ b/src/locales/es/translation.json
@@ -6,19 +6,7 @@
"uiLabel": "Idioma de la interfaz",
"uiDescription": "Elige el idioma usado en la interfaz de OpenWhispr",
"transcriptionLabel": "Idioma de transcripción",
- "transcriptionDescription": "Elige el idioma que hablas para mejorar la precisión",
- "uiOption": {
- "en": "English",
- "es": "Español",
- "fr": "Français",
- "de": "Deutsch",
- "pt": "Português",
- "it": "Italiano",
- "zh-CN": "简体中文",
- "zh-TW": "繁體中文",
- "ru": "Русский",
- "ja": "日本語"
- }
+ "transcriptionDescription": "Elige el idioma que hablas para mejorar la precisión"
}
},
"tray": {
@@ -758,7 +746,8 @@
"processing": "Procesando...",
"openwhisprCloud": "OpenWhispr Cloud",
"providerLabel": "Proveedor",
- "run": "Ejecutar prueba"
+ "run": "Ejecutar prueba",
+ "customEndpoint": "Endpoint personalizado"
},
"view": {
"customPrompt": "Prompt personalizado",
@@ -977,7 +966,12 @@
"instructionMode": "Instrucción",
"placeholder": "p. ej. Jarvis, Nova, Atlas...",
"save": "Guardar",
- "title": "Agente de voz"
+ "title": "Agente de voz",
+ "examples": {
+ "formalEmail": "Hey {{agentName}}, escribe un correo formal sobre el presupuesto",
+ "professional": "Hey {{agentName}}, hazlo más profesional",
+ "bulletPoints": "Hey {{agentName}}, convierte esto en viñetas"
+ }
},
"aiModels": {
"customSetup": "Configuración personalizada",
@@ -1405,6 +1399,10 @@
"name": "Limpiar notas",
"description": "Corregir gramática, estructura y formato"
}
+ },
+ "errors": {
+ "noModel": "No hay modelo de IA seleccionado. Configura uno en Ajustes.",
+ "actionFailed": "La acción falló"
}
},
"empty": {
@@ -1421,9 +1419,7 @@
"addExisting": "Añadir existentes",
"addCount": "Añadir {{count}} notas",
"noResults": "No hay notas coincidentes",
- "noNotesAvailable": "No hay otras notas disponibles",
- "today": "Hoy",
- "yesterday": "Ayer"
+ "noNotesAvailable": "No hay otras notas disponibles"
},
"onboarding": {
"llm": {
diff --git a/src/locales/fr/translation.json b/src/locales/fr/translation.json
index 9a59eb10c..e20bfb72c 100644
--- a/src/locales/fr/translation.json
+++ b/src/locales/fr/translation.json
@@ -6,19 +6,7 @@
"uiLabel": "Langue de l'interface",
"uiDescription": "Choisissez la langue utilisée dans l'interface OpenWhispr",
"transcriptionLabel": "Langue de transcription",
- "transcriptionDescription": "Choisissez la langue que vous parlez pour une transcription plus précise",
- "uiOption": {
- "en": "English",
- "es": "Espanol",
- "fr": "Francais",
- "de": "Deutsch",
- "pt": "Portugues",
- "it": "Italiano",
- "zh-CN": "简体中文",
- "zh-TW": "繁體中文",
- "ru": "Русский",
- "ja": "日本語"
- }
+ "transcriptionDescription": "Choisissez la langue que vous parlez pour une transcription plus précise"
}
},
"tray": {
@@ -758,7 +746,8 @@
"processing": "Traitement...",
"openwhisprCloud": "OpenWhispr Cloud",
"providerLabel": "Fournisseur",
- "run": "Lancer le test"
+ "run": "Lancer le test",
+ "customEndpoint": "Endpoint personnalisé"
},
"view": {
"customPrompt": "Prompt personnalisé",
@@ -977,7 +966,12 @@
"instructionMode": "Instruction",
"placeholder": "ex. Jarvis, Nova, Atlas...",
"save": "Enregistrer",
- "title": "Agent vocal"
+ "title": "Agent vocal",
+ "examples": {
+ "formalEmail": "Hey {{agentName}}, rédige un e-mail formel sur le budget",
+ "professional": "Hey {{agentName}}, rends ça plus professionnel",
+ "bulletPoints": "Hey {{agentName}}, convertis ça en liste à puces"
+ }
},
"aiModels": {
"customSetup": "Configuration personnalisée",
@@ -1426,9 +1420,7 @@
"addExisting": "Ajouter des notes existantes",
"addCount": "Ajouter {{count}} notes",
"noResults": "Aucune note correspondante",
- "noNotesAvailable": "Aucune autre note disponible",
- "today": "Aujourd'hui",
- "yesterday": "Hier"
+ "noNotesAvailable": "Aucune autre note disponible"
},
"context": {
"moveToFolder": "Déplacer vers un dossier",
@@ -1459,6 +1451,10 @@
"name": "Nettoyer les notes",
"description": "Corriger la grammaire, la structure et la mise en forme"
}
+ },
+ "errors": {
+ "noModel": "Aucun modèle IA sélectionné. Configurez-en un dans les Paramètres.",
+ "actionFailed": "L'action a échoué"
}
},
"onboarding": {
diff --git a/src/locales/it/translation.json b/src/locales/it/translation.json
index c8590505b..4817be33d 100644
--- a/src/locales/it/translation.json
+++ b/src/locales/it/translation.json
@@ -6,19 +6,7 @@
"uiLabel": "Lingua dell'interfaccia",
"uiDescription": "Scegli la lingua usata nell'interfaccia di OpenWhispr",
"transcriptionLabel": "Lingua di trascrizione",
- "transcriptionDescription": "Scegli la lingua che parli per una trascrizione più accurata",
- "uiOption": {
- "en": "English",
- "es": "Espanol",
- "fr": "Francais",
- "de": "Deutsch",
- "pt": "Portugues",
- "it": "Italiano",
- "zh-CN": "简体中文",
- "zh-TW": "繁體中文",
- "ru": "Русский",
- "ja": "日本語"
- }
+ "transcriptionDescription": "Scegli la lingua che parli per una trascrizione più accurata"
}
},
"tray": {
@@ -758,7 +746,8 @@
"processing": "Elaborazione...",
"openwhisprCloud": "OpenWhispr Cloud",
"providerLabel": "Provider",
- "run": "Esegui test"
+ "run": "Esegui test",
+ "customEndpoint": "Endpoint personalizzato"
},
"view": {
"customPrompt": "Prompt personalizzato",
@@ -977,7 +966,12 @@
"instructionMode": "Istruzione",
"placeholder": "es. Jarvis, Nova, Atlas...",
"save": "Salva",
- "title": "Agente vocale"
+ "title": "Agente vocale",
+ "examples": {
+ "formalEmail": "Hey {{agentName}}, scrivi un'email formale sul budget",
+ "professional": "Hey {{agentName}}, rendi questo più professionale",
+ "bulletPoints": "Hey {{agentName}}, converti questo in elenco puntato"
+ }
},
"aiModels": {
"customSetup": "Configurazione personalizzata",
@@ -1405,6 +1399,10 @@
"name": "Pulisci note",
"description": "Correggere grammatica, struttura e formattazione"
}
+ },
+ "errors": {
+ "noModel": "Nessun modello IA selezionato. Configurane uno nelle Impostazioni.",
+ "actionFailed": "Azione non riuscita"
}
},
"empty": {
@@ -1421,9 +1419,7 @@
"addExisting": "Aggiungi esistenti",
"addCount": "Aggiungi {{count}} note",
"noResults": "Nessuna nota corrispondente",
- "noNotesAvailable": "Nessun'altra nota disponibile",
- "today": "Oggi",
- "yesterday": "Ieri"
+ "noNotesAvailable": "Nessun'altra nota disponibile"
},
"onboarding": {
"llm": {
diff --git a/src/locales/ja/translation.json b/src/locales/ja/translation.json
index e6f792f91..a27a398c0 100644
--- a/src/locales/ja/translation.json
+++ b/src/locales/ja/translation.json
@@ -6,19 +6,7 @@
"uiLabel": "インターフェース言語",
"uiDescription": "OpenWhispr のインターフェースで使用する言語を選択",
"transcriptionLabel": "文字起こし言語",
- "transcriptionDescription": "より正確な文字起こしのために話す言語を選択",
- "uiOption": {
- "en": "English",
- "es": "Español",
- "fr": "Français",
- "de": "Deutsch",
- "pt": "Português",
- "it": "Italiano",
- "zh-CN": "简体中文",
- "zh-TW": "繁體中文",
- "ru": "Русский",
- "ja": "日本語"
- }
+ "transcriptionDescription": "より正確な文字起こしのために話す言語を選択"
}
},
"tray": {
@@ -758,7 +746,8 @@
"processing": "処理中...",
"openwhisprCloud": "OpenWhispr Cloud",
"providerLabel": "プロバイダー",
- "run": "テスト実行"
+ "run": "テスト実行",
+ "customEndpoint": "カスタムエンドポイント"
},
"view": {
"customPrompt": "カスタムプロンプト",
@@ -973,7 +962,12 @@
"instructionMode": "指示",
"placeholder": "例: ジャービス、ノヴァ、アトラス...",
"save": "保存",
- "title": "音声エージェント"
+ "title": "音声エージェント",
+ "examples": {
+ "formalEmail": "Hey {{agentName}}、予算についてフォーマルなメールを書いて",
+ "professional": "Hey {{agentName}}、これをもっとプロフェッショナルにして",
+ "bulletPoints": "Hey {{agentName}}、これを箇条書きに変換して"
+ }
},
"aiModels": {
"customSetup": "カスタム設定",
@@ -1274,6 +1268,10 @@
"name": "ノートを整理",
"description": "文法、構成、書式を修正する"
}
+ },
+ "errors": {
+ "noModel": "AIモデルが選択されていません。設定で構成してください。",
+ "actionFailed": "アクションに失敗しました"
}
},
"empty": {
@@ -1290,9 +1288,7 @@
"addExisting": "既存を追加",
"addCount": "{{count}}件のノートを追加",
"noResults": "一致するノートがありません",
- "noNotesAvailable": "他のノートはありません",
- "today": "今日",
- "yesterday": "昨日"
+ "noNotesAvailable": "他のノートはありません"
},
"folders": {
"title": "フォルダ",
diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.json
index 9b4c575f6..a6cb46ea7 100644
--- a/src/locales/pt/translation.json
+++ b/src/locales/pt/translation.json
@@ -6,19 +6,7 @@
"uiLabel": "Idioma da interface",
"uiDescription": "Escolha o idioma usado na interface do OpenWhispr",
"transcriptionLabel": "Idioma de transcrição",
- "transcriptionDescription": "Escolha o idioma que você fala para maior precisão",
- "uiOption": {
- "en": "English",
- "es": "Espanol",
- "fr": "Francais",
- "de": "Deutsch",
- "pt": "Portugues",
- "it": "Italiano",
- "zh-CN": "简体中文",
- "zh-TW": "繁體中文",
- "ru": "Русский",
- "ja": "日本語"
- }
+ "transcriptionDescription": "Escolha o idioma que você fala para maior precisão"
}
},
"tray": {
@@ -730,7 +718,8 @@
"processing": "Processando...",
"openwhisprCloud": "OpenWhispr Cloud",
"providerLabel": "Provedor",
- "run": "Executar teste"
+ "run": "Executar teste",
+ "customEndpoint": "Endpoint personalizado"
},
"view": {
"customPrompt": "Prompt personalizado",
@@ -949,7 +938,12 @@
"instructionMode": "Instrução",
"placeholder": "ex.: Jarvis, Nova, Atlas...",
"save": "Salvar",
- "title": "Agente de voz"
+ "title": "Agente de voz",
+ "examples": {
+ "formalEmail": "Hey {{agentName}}, escreva um e-mail formal sobre o orçamento",
+ "professional": "Hey {{agentName}}, torne isso mais profissional",
+ "bulletPoints": "Hey {{agentName}}, converta isso em tópicos"
+ }
},
"aiModels": {
"customSetup": "Configuração personalizada",
@@ -1405,6 +1399,10 @@
"name": "Limpar notas",
"description": "Corrigir gramática, estrutura e formatação"
}
+ },
+ "errors": {
+ "noModel": "Nenhum modelo de IA selecionado. Configure um nas Configurações.",
+ "actionFailed": "A ação falhou"
}
},
"empty": {
@@ -1421,9 +1419,7 @@
"addExisting": "Adicionar existentes",
"addCount": "Adicionar {{count}} notas",
"noResults": "Nenhuma nota encontrada",
- "noNotesAvailable": "Nenhuma outra nota disponível",
- "today": "Hoje",
- "yesterday": "Ontem"
+ "noNotesAvailable": "Nenhuma outra nota disponível"
},
"onboarding": {
"llm": {
diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.json
index f973dab46..c9f57b2b3 100644
--- a/src/locales/ru/translation.json
+++ b/src/locales/ru/translation.json
@@ -6,19 +6,7 @@
"uiLabel": "Язык интерфейса",
"uiDescription": "Выберите язык интерфейса OpenWhispr",
"transcriptionLabel": "Язык транскрипции",
- "transcriptionDescription": "Выберите язык, на котором вы говорите, для более точной транскрипции",
- "uiOption": {
- "en": "English",
- "es": "Espanol",
- "fr": "Francais",
- "de": "Deutsch",
- "pt": "Portugues",
- "it": "Italiano",
- "zh-CN": "简体中文",
- "zh-TW": "繁體中文",
- "ru": "Русский",
- "ja": "日本語"
- }
+ "transcriptionDescription": "Выберите язык, на котором вы говорите, для более точной транскрипции"
}
},
"tray": {
@@ -758,7 +746,8 @@
"processing": "Обработка...",
"openwhisprCloud": "OpenWhispr Cloud",
"providerLabel": "Провайдер",
- "run": "Запустить тест"
+ "run": "Запустить тест",
+ "customEndpoint": "Пользовательская конечная точка"
},
"view": {
"customPrompt": "Пользовательский промпт",
@@ -977,7 +966,12 @@
"instructionMode": "Инструкция",
"placeholder": "например, Джарвис, Нова, Атлас...",
"save": "Сохранить",
- "title": "Голосовой агент"
+ "title": "Голосовой агент",
+ "examples": {
+ "formalEmail": "Hey {{agentName}}, напиши официальное письмо о бюджете",
+ "professional": "Hey {{agentName}}, сделай это более профессиональным",
+ "bulletPoints": "Hey {{agentName}}, преобразуй это в маркированный список"
+ }
},
"aiModels": {
"customSetup": "Пользовательская настройка",
@@ -1405,6 +1399,10 @@
"name": "Очистить заметки",
"description": "Исправить грамматику, структуру и форматирование"
}
+ },
+ "errors": {
+ "noModel": "Модель ИИ не выбрана. Настройте её в разделе Настройки.",
+ "actionFailed": "Действие не выполнено"
}
},
"empty": {
@@ -1421,9 +1419,7 @@
"addExisting": "Добавить существующие",
"addCount": "Добавить: {{count}}",
"noResults": "Не найдено",
- "noNotesAvailable": "Нет доступных заметок",
- "today": "Сегодня",
- "yesterday": "Вчера"
+ "noNotesAvailable": "Нет доступных заметок"
},
"onboarding": {
"llm": {
diff --git a/src/locales/zh-CN/translation.json b/src/locales/zh-CN/translation.json
index 34b835211..ce1ee0394 100644
--- a/src/locales/zh-CN/translation.json
+++ b/src/locales/zh-CN/translation.json
@@ -6,19 +6,7 @@
"uiLabel": "界面语言",
"uiDescription": "选择 OpenWhispr 界面使用的语言",
"transcriptionLabel": "转录语言",
- "transcriptionDescription": "选择你说话的语言,以提高转录准确率",
- "uiOption": {
- "en": "English",
- "es": "Espanol",
- "fr": "Francais",
- "de": "Deutsch",
- "pt": "Portugues",
- "it": "Italiano",
- "zh-CN": "简体中文",
- "zh-TW": "繁體中文",
- "ru": "Русский",
- "ja": "日本語"
- }
+ "transcriptionDescription": "选择你说话的语言,以提高转录准确率"
}
},
"tray": {
@@ -758,7 +746,8 @@
"processing": "处理中...",
"openwhisprCloud": "OpenWhispr Cloud",
"providerLabel": "服务商",
- "run": "运行测试"
+ "run": "运行测试",
+ "customEndpoint": "自定义端点"
},
"view": {
"customPrompt": "自定义提示词",
@@ -973,7 +962,12 @@
"instructionMode": "指令",
"placeholder": "例如 Jarvis、Nova、Atlas...",
"save": "保存",
- "title": "语音助手"
+ "title": "语音助手",
+ "examples": {
+ "formalEmail": "Hey {{agentName}},写一封关于预算的正式邮件",
+ "professional": "Hey {{agentName}},让这个更专业",
+ "bulletPoints": "Hey {{agentName}},把这个转换成要点列表"
+ }
},
"aiModels": {
"customSetup": "自定义设置",
@@ -1401,6 +1395,10 @@
"name": "整理笔记",
"description": "修正语法、结构和格式"
}
+ },
+ "errors": {
+ "noModel": "未选择 AI 模型。请在设置中配置。",
+ "actionFailed": "操作失败"
}
},
"empty": {
@@ -1417,9 +1415,7 @@
"addExisting": "添加已有笔记",
"addCount": "添加 {{count}} 条笔记",
"noResults": "没有匹配的笔记",
- "noNotesAvailable": "没有其他可用笔记",
- "today": "今天",
- "yesterday": "昨天"
+ "noNotesAvailable": "没有其他可用笔记"
},
"onboarding": {
"llm": {
diff --git a/src/locales/zh-TW/translation.json b/src/locales/zh-TW/translation.json
index 1d9af3a60..f5df0d459 100644
--- a/src/locales/zh-TW/translation.json
+++ b/src/locales/zh-TW/translation.json
@@ -6,19 +6,7 @@
"uiLabel": "介面語言",
"uiDescription": "選擇 OpenWhispr 介面使用的語言",
"transcriptionLabel": "轉錄語言",
- "transcriptionDescription": "選擇你說話的語言,以提高轉錄準確度",
- "uiOption": {
- "en": "English",
- "es": "Espanol",
- "fr": "Francais",
- "de": "Deutsch",
- "pt": "Portugues",
- "it": "Italiano",
- "zh-CN": "简体中文",
- "zh-TW": "繁體中文",
- "ru": "Русский",
- "ja": "日本語"
- }
+ "transcriptionDescription": "選擇你說話的語言,以提高轉錄準確度"
}
},
"tray": {
@@ -758,7 +746,8 @@
"processing": "處理中...",
"openwhisprCloud": "OpenWhispr Cloud",
"providerLabel": "供應商",
- "run": "執行測試"
+ "run": "執行測試",
+ "customEndpoint": "自訂端點"
},
"view": {
"customPrompt": "自訂提示詞",
@@ -973,7 +962,12 @@
"instructionMode": "指令",
"placeholder": "例如 Jarvis、Nova、Atlas...",
"save": "儲存",
- "title": "語音助理"
+ "title": "語音助理",
+ "examples": {
+ "formalEmail": "Hey {{agentName}},撰寫一封關於預算的正式郵件",
+ "professional": "Hey {{agentName}},讓這個更專業",
+ "bulletPoints": "Hey {{agentName}},將這個轉換成要點列表"
+ }
},
"aiModels": {
"customSetup": "自訂設定",
@@ -1401,6 +1395,10 @@
"name": "整理筆記",
"description": "修正文法、結構和格式"
}
+ },
+ "errors": {
+ "noModel": "未選擇 AI 模型。請在設定中進行配置。",
+ "actionFailed": "操作失敗"
}
},
"empty": {
@@ -1417,9 +1415,7 @@
"addExisting": "新增現有筆記",
"addCount": "新增 {{count}} 則筆記",
"noResults": "沒有符合的筆記",
- "noNotesAvailable": "沒有其他可用的筆記",
- "today": "今天",
- "yesterday": "昨天"
+ "noNotesAvailable": "沒有其他可用的筆記"
},
"onboarding": {
"llm": {
diff --git a/src/main.jsx b/src/main.jsx
index 83309f2f3..1ab95172e 100644
--- a/src/main.jsx
+++ b/src/main.jsx
@@ -391,7 +391,7 @@ function AppRouter() {
function LoadingFallback({ message }) {
const { t } = useTranslation();
- const fallbackMessage = message || t("app.loading");
+ const fallbackMessage = message || t("common.loading");
return (
<div className="min-h-screen bg-background flex items-center justify-center">
diff --git a/src/stores/settingsStore.ts b/src/stores/settingsStore.ts
index 1a2d79eb7..fb2e205cb 100644
--- a/src/stores/settingsStore.ts
+++ b/src/stores/settingsStore.ts
@@ -431,8 +431,6 @@ export const useSettingsStore = create<SettingsState>()((set) => ({
export const selectIsCloudReasoningMode = (state: SettingsState) =>
state.isSignedIn && state.cloudReasoningMode === "openwhispr";
-export const selectEffectiveReasoningModel = (state: SettingsState) => state.reasoningModel;
-
export const selectEffectiveReasoningProvider = (state: SettingsState) =>
selectIsCloudReasoningMode(state) ? "openwhispr" : state.reasoningProvider;
@@ -443,7 +441,7 @@ export function getSettings() {
}
export function getEffectiveReasoningModel() {
- return selectEffectiveReasoningModel(useSettingsStore.getState());
+ return useSettingsStore.getState().reasoningModel;
}
export function isCloudReasoningMode() {
@@ -507,8 +505,12 @@ export async function initializeSettings(): Promise<void> {
if (envKey && envKey !== state.dictationKey) {
createStringSetter("dictationKey")(envKey);
}
- } catch {
- // ignore
+ } catch (err) {
+ logger.warn(
+ "Failed to sync dictation key on startup",
+ { error: (err as Error).message },
+ "settings"
+ );
}
// Sync activation mode from main process
@@ -518,8 +520,12 @@ export async function initializeSettings(): Promise<void> {
if (isBrowser) localStorage.setItem("activationMode", envMode);
useSettingsStore.setState({ activationMode: envMode });
}
- } catch {
- // ignore
+ } catch (err) {
+ logger.warn(
+ "Failed to sync activation mode on startup",
+ { error: (err as Error).message },
+ "settings"
+ );
}
// Sync UI language from main process
@@ -540,8 +546,6 @@ export async function initializeSettings(): Promise<void> {
void i18n.changeLanguage(normalizeUiLanguage(state.uiLanguage));
}
- // Migrate preferred language
- migratePreferredLanguage();
const migratedLang = isBrowser ? localStorage.getItem("preferredLanguage") : null;
if (migratedLang && migratedLang !== state.preferredLanguage) {
useSettingsStore.setState({ preferredLanguage: migratedLang });
diff --git a/src/types/electron.ts b/src/types/electron.ts
index 3c052d921..032f34320 100644
--- a/src/types/electron.ts
+++ b/src/types/electron.ts
@@ -405,10 +405,31 @@ declare global {
// Local AI model management
modelGetAll: () => Promise<any[]>;
modelCheck: (modelId: string) => Promise<boolean>;
- modelDownload: (modelId: string) => Promise<void>;
- modelDelete: (modelId: string) => Promise<void>;
- modelDeleteAll: () => Promise<{ success: boolean; error?: string; code?: string }>;
- modelCheckRuntime: () => Promise<boolean>;
+ modelDownload: (modelId: string) => Promise<{
+ success: boolean;
+ path?: string;
+ error?: string;
+ code?: string;
+ details?: string;
+ }>;
+ modelDelete: (modelId: string) => Promise<{
+ success: boolean;
+ error?: string;
+ code?: string;
+ details?: string;
+ }>;
+ modelDeleteAll: () => Promise<{
+ success: boolean;
+ error?: string;
+ code?: string;
+ details?: string;
+ }>;
+ modelCheckRuntime: () => Promise<{
+ available: boolean;
+ error?: string;
+ code?: string;
+ details?: string;
+ }>;
modelCancelDownload: (modelId: string) => Promise<{ success: boolean; error?: string }>;
onModelDownloadProgress: (callback: (event: any, data: any) => void) => () => void;
@@ -665,10 +686,7 @@ declare global {
error?: string;
code?: string;
}>;
- assemblyAiStreamingSend?: (audioBuffer: ArrayBuffer) => Promise<{
- success: boolean;
- error?: string;
- }>;
+ assemblyAiStreamingSend?: (audioBuffer: ArrayBuffer) => void;
assemblyAiStreamingForceEndpoint?: () => void;
assemblyAiStreamingStop?: () => Promise<{
success: boolean;
diff --git a/src/utils/dateFormatting.ts b/src/utils/dateFormatting.ts
index 89cbf0b72..a5e8c99fe 100644
--- a/src/utils/dateFormatting.ts
+++ b/src/utils/dateFormatting.ts
@@ -1,3 +1,8 @@
+export function normalizeDbDate(dateStr: string): Date {
+ const source = dateStr.endsWith("Z") ? dateStr : `${dateStr}Z`;
+ return new Date(source);
+}
+
export function formatDateGroup(date: Date | string, t: (key: string) => string): string {
const d = typeof date === "string" ? new Date(date) : date;
const now = new Date();