Skip to content

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

Notes UI enhancements: gradient send/mic, voice-note chat drafts, liquid-glass bottom bar, sidebar cleanup (#1651)

Gabriel Stein36c9bafea456
diff --git a/preload.js b/preload.js
index d3564115b..dc4f60006 100644
--- a/preload.js
+++ b/preload.js
@@ -311,6 +311,10 @@ contextBridge.exposeInMainWorld("electronAPI", {
writeClipboard: (text) => ipcRenderer.invoke("write-clipboard", text),
checkPasteTools: () => ipcRenderer.invoke("check-paste-tools"),
+ // Voice drafts (chat input recordings)
+ saveTempAudio: (buffer) => ipcRenderer.invoke("save-temp-audio", buffer),
+ deleteTempAudio: (tempPath) => ipcRenderer.invoke("delete-temp-audio", tempPath),
+
// Local Whisper functions (whisper.cpp)
transcribeLocalWhisper: (audioBlob, options) =>
ipcRenderer.invoke("transcribe-local-whisper", audioBlob, options),
diff --git a/src/components/ControlPanel.tsx b/src/components/ControlPanel.tsx
index 6dbbe8b6e..a59e1a1bc 100644
--- a/src/components/ControlPanel.tsx
+++ b/src/components/ControlPanel.tsx
@@ -1215,7 +1215,6 @@ export default function ControlPanel({ initialSettingsSection }: ControlPanelPro
setSettingsSection(section);
setShowSettings(true);
}}
- onOpenSearch={() => setShowSearch(true)}
meetingRecordingRequest={meetingRecordingRequest}
onMeetingRecordingRequestHandled={handleMeetingRecordingRequestHandled}
invitationEntry={invitationNotesEntry}
diff --git a/src/components/CreateWorkspaceDialog.tsx b/src/components/CreateWorkspaceDialog.tsx
index d2d54cfbf..dac887aeb 100644
--- a/src/components/CreateWorkspaceDialog.tsx
+++ b/src/components/CreateWorkspaceDialog.tsx
@@ -79,9 +79,6 @@ export default function CreateWorkspaceDialog({ open, onOpenChange, onCreated }:
placeholder={t("workspaces.create.namePlaceholder")}
maxLength={80}
/>
- <p className="text-[11px] text-muted-foreground">
- {t("workspaces.create.freePlanNote")}
- </p>
</div>
<DialogFooter className="pt-2">
<Button
diff --git a/src/components/SettingsModal.tsx b/src/components/SettingsModal.tsx
index 9afa0e429..9e854b7ca 100644
--- a/src/components/SettingsModal.tsx
+++ b/src/components/SettingsModal.tsx
@@ -13,7 +13,7 @@ import {
Users,
} from "lucide-react";
import SidebarModal, { type SidebarItem } from "./ui/SidebarModal";
-import SettingsPage, { SettingsSectionType } from "./SettingsPage";
+import SettingsPage, { AccountAvatar, SettingsSectionType } from "./SettingsPage";
import { useAuth } from "../hooks/useAuth";
export type { SettingsSectionType };
@@ -58,7 +58,7 @@ interface SettingsModalProps {
export default function SettingsModal({ open, onOpenChange, initialSection }: SettingsModalProps) {
const { t } = useTranslation();
- const { isSignedIn } = useAuth();
+ const { isSignedIn, user } = useAuth();
const policyManaged = usePolicyStore((s) => s.managed);
const sidebarItems: SidebarItem<SettingsSectionType>[] = useMemo(() => {
const items: SidebarItem<SettingsSectionType>[] = [
@@ -164,6 +164,19 @@ export default function SettingsModal({ open, onOpenChange, initialSection }: Se
sidebarItems={sidebarItems}
activeSection={activeSection}
onSectionChange={handleSectionChange}
+ header={
+ isSignedIn && user ? (
+ <div className="flex flex-col items-center gap-2 pb-2 text-center">
+ <AccountAvatar image={user.image} name={user.name || t("settingsPage.account.user")} />
+ <div className="min-w-0 w-full">
+ <p className="text-[13px] font-semibold text-foreground truncate">
+ {user.name || t("settingsPage.account.user")}
+ </p>
+ <p className="text-xs text-muted-foreground truncate">{user.email}</p>
+ </div>
+ </div>
+ ) : undefined
+ }
>
{policyManaged && (
<div className="mx-4 mt-4 rounded-md border border-blue-200 bg-blue-50 px-3 py-2 text-sm text-blue-800 dark:border-blue-900 dark:bg-blue-950/40 dark:text-blue-200">
diff --git a/src/components/SettingsPage.tsx b/src/components/SettingsPage.tsx
index e1944960b..e1174a80e 100644
--- a/src/components/SettingsPage.tsx
+++ b/src/components/SettingsPage.tsx
@@ -103,6 +103,7 @@ import type { InferenceModeOption } from "./ui/SettingsSection";
import { useSettingsLayout } from "./ui/useSettingsLayout";
import { useUsage } from "../hooks/useUsage";
import { cn } from "./lib/utils";
+import { GRADIENT_CIRCLE } from "./ui/gradientCircle";
import { Popover, PopoverContent, PopoverTrigger } from "./ui/popover";
import { startMigration, useMigration } from "../stores/noteStore.js";
import { syncService } from "../services/SyncService.js";
@@ -563,12 +564,26 @@ function TabPanel({ active, children }: { active: boolean; children: React.React
return <div className={active ? undefined : "hidden"}>{children}</div>;
}
-function AccountAvatar({ image, name }: { image?: string | null; name: string }) {
+// "Gabriel Stein" → "GS"; single names fall back to their first letter.
+function nameInitials(name: string): string {
+ const parts = name.trim().split(/\s+/);
+ const first = parts[0]?.[0] ?? "";
+ const last = parts.length > 1 ? (parts[parts.length - 1][0] ?? "") : "";
+ return (first + last).toUpperCase();
+}
+
+export function AccountAvatar({ image, name }: { image?: string | null; name: string }) {
// Same stale-URL fallback as MemberAvatar: OAuth-hosted images expire, and a
- // bare <img> would render the broken-image glyph instead of the icon.
+ // bare <img> would render the broken-image glyph instead of the initials.
const [failedSrc, setFailedSrc] = useState<string | null>(null);
+ const initials = nameInitials(name);
return (
- <div className="w-10 h-10 rounded-full flex items-center justify-center shrink-0 overflow-hidden bg-primary/10 dark:bg-primary/15">
+ <div
+ className={cn(
+ "w-10 h-10 rounded-full flex items-center justify-center shrink-0 overflow-hidden",
+ GRADIENT_CIRCLE
+ )}
+ >
{image && image !== failedSrc ? (
<img
src={image}
@@ -578,8 +593,10 @@ function AccountAvatar({ image, name }: { image?: string | null; name: string })
onError={() => setFailedSrc(image)}
className="w-10 h-10 rounded-full object-cover"
/>
+ ) : initials ? (
+ <span className="text-[13px] font-semibold leading-none select-none">{initials}</span>
) : (
- <UserCircle className="w-5 h-5 text-primary" />
+ <UserCircle className="w-5 h-5" />
)}
</div>
);
@@ -1724,24 +1741,6 @@ export default function SettingsPage({
) : isLoaded && isSignedIn && user ? (
<>
<SectionHeader title={t("settingsPage.account.title")} />
- <SettingsPanel>
- <SettingsPanelRow>
- <div className="flex items-center gap-3">
- <AccountAvatar
- image={user.image}
- name={user.name || t("settingsPage.account.user")}
- />
- <div className="min-w-0 flex-1">
- <p className="text-xs font-medium text-foreground truncate">
- {user.name || t("settingsPage.account.user")}
- </p>
- <p className="text-xs text-muted-foreground truncate">{user.email}</p>
- </div>
- <Badge variant="success">{t("settingsPage.account.signedIn")}</Badge>
- </div>
- </SettingsPanelRow>
- </SettingsPanel>
-
<ProfileSection
name={user.name || ""}
onSessionRefresh={() => {
diff --git a/src/components/chat/ChatInput.tsx b/src/components/chat/ChatInput.tsx
index 2705e43f5..5f0c81fb9 100644
--- a/src/components/chat/ChatInput.tsx
+++ b/src/components/chat/ChatInput.tsx
@@ -1,7 +1,14 @@
import { useState, useRef, useCallback, useEffect } from "react";
-import { SendHorizontal, Square } from "lucide-react";
+import { Mic, Square, X } from "lucide-react";
import { useTranslation } from "react-i18next";
import { cn } from "../lib/utils";
+import { SendIcon } from "../ui/SendIcon";
+import { LiveWaveform } from "../ui/LiveWaveform";
+import { GRADIENT_CIRCLE } from "../ui/gradientCircle";
+import { GLASS_SURFACE } from "../ui/glass";
+import { useToast } from "../ui/useToast";
+import { formatMmSs } from "../../utils/formatDuration";
+import { useVoiceDraft } from "./useVoiceDraft";
import type { AgentState } from "./types";
interface ChatInputProps {
@@ -11,6 +18,8 @@ interface ChatInputProps {
onCancel?: () => void;
autoFocus?: boolean;
placeholder?: string;
+ /** Offer a mic when the input is empty; recordings transcribe into the input. */
+ voiceDraft?: boolean;
}
function RecordingIndicator() {
@@ -48,11 +57,29 @@ export function ChatInput({
onCancel,
autoFocus = false,
placeholder,
+ voiceDraft = false,
}: ChatInputProps) {
const { t } = useTranslation();
+ const { toast } = useToast();
const [inputText, setInputText] = useState("");
const inputRef = useRef<HTMLInputElement>(null);
+ const voice = useVoiceDraft({
+ onTranscript: (text) => {
+ setInputText((prev) => (prev.trim() ? `${prev.trim()} ${text}` : text));
+ requestAnimationFrame(() => inputRef.current?.focus());
+ },
+ onError: (message) => {
+ toast({
+ title: t("notes.upload.transcriptionFailed"),
+ description: message || undefined,
+ variant: "destructive",
+ });
+ },
+ });
+ const isVoiceRecording = voice.status === "recording";
+ const isVoiceTranscribing = voice.status === "transcribing";
+
const handleSubmit = useCallback(() => {
const text = inputText.trim();
if (!text || !onTextSubmit) return;
@@ -87,10 +114,12 @@ export function ChatInput({
<div className="shrink-0 px-3 pb-3 pt-1">
<div
className={cn(
- "flex items-center gap-2 min-h-11 px-3 rounded-lg",
- "bg-surface-1 border border-border/30",
- "transition-colors duration-150",
- isIdle && "focus-within:border-primary/30"
+ "flex items-center gap-2 min-h-11 pl-4 pr-1.5 rounded-full",
+ GLASS_SURFACE,
+ "border border-black/10 dark:border-white/14",
+ "transition-all duration-200",
+ isIdle &&
+ "focus-within:border-black/15 dark:focus-within:border-white/22 focus-within:ring-[3px] focus-within:ring-primary/8"
)}
>
{isListening && (
@@ -111,7 +140,57 @@ export function ChatInput({
</>
)}
- {(isIdle || isBusy) && (
+ {isVoiceRecording && (
+ <div className="flex items-center gap-2.5 w-full py-1.5 animate-[fade-in-content_0.3s_ease-out_backwards]">
+ <LiveWaveform
+ readLevel={voice.readLevel}
+ bars="auto"
+ className="flex-1 overflow-hidden"
+ />
+ <span className="text-[13px] font-semibold tabular-nums tracking-[0.08em] text-foreground/85 shrink-0">
+ {formatMmSs(voice.elapsed)}
+ </span>
+ <button
+ onClick={voice.cancel}
+ aria-label={t("common.cancel")}
+ title={t("common.cancel")}
+ className={cn(
+ "flex items-center justify-center w-7 h-7 rounded-full shrink-0",
+ "text-muted-foreground/60 hover:text-foreground hover:bg-foreground/8",
+ "focus:outline-none focus-visible:ring-1 focus-visible:ring-ring/30",
+ "transition-colors duration-100"
+ )}
+ >
+ <X size={14} />
+ </button>
+ <button
+ onClick={voice.stop}
+ aria-label={t("notes.editor.stop")}
+ title={t("notes.editor.stop")}
+ className={cn(
+ "flex items-center justify-center w-7 h-7 rounded-full shrink-0",
+ "animate-[scale-in_0.15s_ease-out_backwards]",
+ GRADIENT_CIRCLE,
+ "hover:brightness-110 active:scale-95",
+ "focus:outline-none focus-visible:ring-1 focus-visible:ring-ring/30",
+ "transition-all duration-100"
+ )}
+ >
+ <Square size={10} fill="currentColor" />
+ </button>
+ </div>
+ )}
+
+ {isVoiceTranscribing && (
+ <>
+ <ProcessingIndicator />
+ <span className="text-[12px] text-muted-foreground select-none">
+ {t("agentMode.input.transcribing")}
+ </span>
+ </>
+ )}
+
+ {(isIdle || isBusy) && !isVoiceRecording && !isVoiceTranscribing && (
<div className="flex items-center gap-2 w-full">
<input
ref={inputRef}
@@ -123,7 +202,7 @@ export function ChatInput({
autoFocus={autoFocus}
placeholder={placeholder ?? t("agentMode.input.typeMessage")}
className={cn(
- "input-inline flex-1 outline-none bg-transparent",
+ "input-inline flex-1 outline-none bg-transparent caret-primary",
"text-[13px] text-foreground placeholder:text-muted-foreground/40",
"min-w-0 p-0",
isBusy && "text-muted-foreground/30 cursor-not-allowed"
@@ -133,7 +212,7 @@ export function ChatInput({
<button
onClick={onCancel}
className={cn(
- "p-1 rounded-sm shrink-0",
+ "flex items-center justify-center w-7 h-7 rounded-full shrink-0",
"text-muted-foreground/60 hover:text-foreground hover:bg-foreground/8",
"focus:outline-none focus-visible:ring-1 focus-visible:ring-ring/30",
"transition-colors duration-100"
@@ -141,20 +220,37 @@ export function ChatInput({
>
<Square size={12} className="fill-current" />
</button>
- ) : isIdle ? (
+ ) : isIdle && (inputText.trim() || !voiceDraft) ? (
<button
onClick={handleSubmit}
disabled={!inputText.trim()}
+ aria-label={t("agentMode.input.send")}
className={cn(
- "p-1 rounded-sm shrink-0",
+ "rounded-full shrink-0",
+ voiceDraft && "animate-[scale-in_0.15s_ease-out_backwards]",
"focus:outline-none focus-visible:ring-1 focus-visible:ring-ring/30",
- "transition-colors duration-100",
+ "transition-all duration-100",
inputText.trim()
- ? "text-primary hover:text-primary/80"
- : "text-muted-foreground/25 cursor-default"
+ ? "hover:brightness-110 active:scale-95"
+ : "opacity-30 saturate-0 cursor-default"
+ )}
+ >
+ <SendIcon size={28} className="block" />
+ </button>
+ ) : isIdle ? (
+ <button
+ onClick={voice.start}
+ aria-label={t("notes.editor.transcribe")}
+ title={t("notes.editor.transcribe")}
+ className={cn(
+ "flex items-center justify-center w-7 h-7 rounded-full shrink-0",
+ GRADIENT_CIRCLE,
+ "hover:brightness-110 active:scale-95",
+ "focus:outline-none focus-visible:ring-1 focus-visible:ring-ring/30",
+ "transition-all duration-100"
)}
>
- <SendHorizontal size={14} />
+ <Mic size={14} />
</button>
) : null}
</div>
diff --git a/src/components/chat/ChatView.tsx b/src/components/chat/ChatView.tsx
index 26684eab2..0ffd40e51 100644
--- a/src/components/chat/ChatView.tsx
+++ b/src/components/chat/ChatView.tsx
@@ -170,6 +170,7 @@ export default function ChatView() {
onTextSubmit={handleTextSubmit}
onCancel={streaming.cancelStream}
autoFocus={isNewChat}
+ voiceDraft
/>
</>
) : (
diff --git a/src/components/chat/useVoiceDraft.ts b/src/components/chat/useVoiceDraft.ts
new file mode 100644
index 000000000..5b2c8a73f
--- /dev/null
+++ b/src/components/chat/useVoiceDraft.ts
@@ -0,0 +1,192 @@
+import { useCallback, useEffect, useRef, useState } from "react";
+import { useAuth } from "../../hooks/useAuth";
+import { useSettings } from "../../hooks/useSettings";
+import { useSettingsStore } from "../../stores/settingsStore";
+import { getBaseLanguageCode } from "../../utils/languageSupport";
+import {
+ transcribeFile,
+ getTranscriptionApiKey,
+ type FileTranscriptionConfig,
+} from "../../services/fileTranscription";
+import { analyserRms } from "../../utils/audioLevel";
+
+export type VoiceDraftStatus = "idle" | "recording" | "transcribing";
+
+interface UseVoiceDraftOptions {
+ onTranscript: (text: string) => void;
+ onError: (message: string) => void;
+}
+
+/**
+ * Records a mic take in the chat input and runs it through the regular
+ * transcription pipeline (all providers, no LLM pass). The transcript is
+ * handed back for the caller to place into the input.
+ */
+export function useVoiceDraft({ onTranscript, onError }: UseVoiceDraftOptions) {
+ const { isSignedIn } = useAuth();
+ const settings = useSettings();
+ const {
+ useLocalWhisper,
+ whisperModel,
+ localTranscriptionProvider,
+ parakeetModel,
+ cloudTranscriptionMode,
+ cloudTranscriptionProvider,
+ cloudTranscriptionBaseUrl,
+ cloudTranscriptionModel,
+ preferredLanguage,
+ transcriptionMode,
+ remoteTranscriptionUrl,
+ remoteTranscriptionModel,
+ } = settings;
+ const cortiEnvironment = useSettingsStore((s) => s.cortiEnvironment);
+ const cortiTenant = useSettingsStore((s) => s.cortiTenant);
+
+ const [status, setStatus] = useState<VoiceDraftStatus>("idle");
+ const [elapsed, setElapsed] = useState(0);
+
+ const recorderRef = useRef<MediaRecorder | null>(null);
+ const streamRef = useRef<MediaStream | null>(null);
+ const contextRef = useRef<AudioContext | null>(null);
+ const analyserRef = useRef<AnalyserNode | null>(null);
+ const levelBufRef = useRef<Float32Array<ArrayBuffer> | null>(null);
+ const chunksRef = useRef<Blob[]>([]);
+ const discardRef = useRef(false);
+
+ const buildConfig = (): FileTranscriptionConfig => ({
+ useLocalWhisper,
+ localTranscriptionProvider: localTranscriptionProvider as string,
+ whisperModel,
+ parakeetModel,
+ isOpenWhisprCloud: isSignedIn && cloudTranscriptionMode === "openwhispr" && !useLocalWhisper,
+ getApiKey: () => getTranscriptionApiKey(cloudTranscriptionProvider as string, settings),
+ cloudTranscriptionProvider: cloudTranscriptionProvider as string,
+ cloudTranscriptionBaseUrl: cloudTranscriptionBaseUrl || "",
+ cloudTranscriptionModel,
+ // Empty = auto-detect; the resolver supplies a default where one is required.
+ language: getBaseLanguageCode(preferredLanguage) || "",
+ cortiEnvironment,
+ cortiTenant,
+ transcriptionMode,
+ remoteTranscriptionUrl,
+ remoteTranscriptionModel,
+ });
+
+ // Latest-value refs so the recorder's onstop (bound at start time) uses
+ // current settings and callbacks.
+ const buildConfigRef = useRef(buildConfig);
+ buildConfigRef.current = buildConfig;
+ const onTranscriptRef = useRef(onTranscript);
+ onTranscriptRef.current = onTranscript;
+ const onErrorRef = useRef(onError);
+ onErrorRef.current = onError;
+
+ useEffect(() => {
+ if (status !== "recording") return;
+ setElapsed(0);
+ const id = setInterval(() => setElapsed((s) => s + 1), 1000);
+ return () => clearInterval(id);
+ }, [status]);
+
+ const readLevel = useCallback(() => {
+ const analyser = analyserRef.current;
+ if (!analyser) return 0;
+ return analyserRms(analyser, levelBufRef);
+ }, []);
+
+ const teardownCapture = useCallback(() => {
+ recorderRef.current = null;
+ streamRef.current?.getTracks().forEach((track) => track.stop());
+ streamRef.current = null;
+ analyserRef.current = null;
+ contextRef.current?.close().catch(() => {});
+ contextRef.current = null;
+ }, []);
+
+ const finishRecording = useCallback(async () => {
+ const blob = new Blob(chunksRef.current, { type: "audio/webm" });
+ chunksRef.current = [];
+ teardownCapture();
+
+ if (discardRef.current || blob.size === 0) {
+ setStatus("idle");
+ return;
+ }
+
+ setStatus("transcribing");
+ let tempPath: string | null = null;
+ try {
+ const buffer = await blob.arrayBuffer();
+ const saved = await window.electronAPI.saveTempAudio(buffer);
+ tempPath = saved.path;
+ const result = await transcribeFile(tempPath, buildConfigRef.current(), false);
+ const text = result.text?.trim();
+ if (!result.success || !text) {
+ onErrorRef.current(result.error || "");
+ } else {
+ onTranscriptRef.current(text);
+ }
+ } catch (error) {
+ onErrorRef.current(error instanceof Error ? error.message : String(error));
+ } finally {
+ if (tempPath) void window.electronAPI.deleteTempAudio(tempPath);
+ setStatus("idle");
+ }
+ }, [teardownCapture]);
+
+ const start = useCallback(async () => {
+ if (recorderRef.current) return;
+ try {
+ const stream = await navigator.mediaDevices.getUserMedia({ audio: true });
+ const context = new AudioContext();
+ const source = context.createMediaStreamSource(stream);
+ const analyser = context.createAnalyser();
+ analyser.fftSize = 256;
+ // Chrome's pull-based renderer only fills the analyser when the graph
+ // reaches the destination; route through a muted gain.
+ const sink = context.createGain();
+ sink.gain.value = 0;
+ source.connect(analyser);
+ analyser.connect(sink);
+ sink.connect(context.destination);
+
+ chunksRef.current = [];
+ discardRef.current = false;
+ const recorder = new MediaRecorder(stream, { mimeType: "audio/webm;codecs=opus" });
+ recorder.ondataavailable = (e) => {
+ if (e.data.size > 0) chunksRef.current.push(e.data);
+ };
+ recorder.onstop = () => void finishRecording();
+ recorder.start(1000);
+
+ recorderRef.current = recorder;
+ streamRef.current = stream;
+ contextRef.current = context;
+ analyserRef.current = analyser;
+ setStatus("recording");
+ } catch (error) {
+ teardownCapture();
+ onErrorRef.current(error instanceof Error ? error.message : String(error));
+ }
+ }, [finishRecording, teardownCapture]);
+
+ const stop = useCallback(() => {
+ recorderRef.current?.stop();
+ }, []);
+
+ const cancel = useCallback(() => {
+ discardRef.current = true;
+ recorderRef.current?.stop();
+ }, []);
+
+ // Discard silently if the surface unmounts mid-take.
+ useEffect(
+ () => () => {
+ discardRef.current = true;
+ recorderRef.current?.stop();
+ },
+ []
+ );
+
+ return { status, elapsed, readLevel, start, stop, cancel };
+}
diff --git a/src/components/notes/ActionPicker.tsx b/src/components/notes/ActionPicker.tsx
index b30037a34..6895b193d 100644
--- a/src/components/notes/ActionPicker.tsx
+++ b/src/components/notes/ActionPicker.tsx
@@ -50,20 +50,26 @@ export default function ActionPicker({
if (!activeAction) return null;
return (
- <div className="flex items-center shrink-0">
+ <div
+ className={cn(
+ "flex items-center shrink-0 rounded-full overflow-hidden",
+ "bg-white/60 dark:bg-white/8",
+ "backdrop-blur-lg transform-gpu",
+ "border border-black/10 dark:border-white/14",
+ "shadow-(--shadow-glass)",
+ disabled && "opacity-40 pointer-events-none"
+ )}
+ >
<button
onClick={() => handleRun(activeAction)}
disabled={disabled}
aria-label={t("notes.actions.runAction", { name: getActionName(activeAction, t) })}
className={cn(
- "flex items-center gap-1.5 h-7 pl-2.5 pr-1.5 rounded-l-lg",
- "bg-accent/6 dark:bg-accent/10",
- "text-accent/60 dark:text-accent/50",
+ "flex items-center gap-1.5 h-7 pl-3 pr-1.5",
+ "text-accent/70 dark:text-accent/60",
"transition-colors duration-150",
- "hover:bg-accent/10 dark:hover:bg-accent/15",
- "hover:text-accent/80 dark:hover:text-accent/70",
- "active:scale-[0.98]",
- "disabled:opacity-30 disabled:pointer-events-none"
+ "hover:bg-accent/8 dark:hover:bg-accent/12",
+ "hover:text-accent/90 dark:hover:text-accent/80"
)}
>
<Sparkles size={11} />
@@ -78,13 +84,12 @@ export default function ActionPicker({
disabled={disabled}
aria-label={t("notes.actions.selectAction")}
className={cn(
- "flex items-center justify-center h-7 w-5 rounded-r-lg",
- "bg-accent/6 dark:bg-accent/10",
- "text-accent/35 dark:text-accent/25",
+ "flex items-center justify-center h-7 w-6 pr-0.5",
+ "border-l border-black/6 dark:border-white/8",
+ "text-accent/40 dark:text-accent/30",
"transition-colors duration-150",
- "hover:bg-accent/10 dark:hover:bg-accent/15",
- "hover:text-accent/60",
- "disabled:opacity-30 disabled:pointer-events-none"
+ "hover:bg-accent/8 dark:hover:bg-accent/12",
+ "hover:text-accent/70"
)}
>
<ChevronDown size={10} />
diff --git a/src/components/notes/EmbeddedChat.tsx b/src/components/notes/EmbeddedChat.tsx
index 1d36d85e1..639cc87cc 100644
--- a/src/components/notes/EmbeddedChat.tsx
+++ b/src/components/notes/EmbeddedChat.tsx
@@ -135,6 +135,7 @@ export default function EmbeddedChat({
partialTranscript=""
onTextSubmit={onTextSubmit}
onCancel={onCancel}
+ voiceDraft
/>
</>
);
@@ -143,11 +144,12 @@ export default function EmbeddedChat({
return (
<div
className={cn(
- "absolute bottom-4 left-5 right-5 z-20",
+ "absolute bottom-4 left-5 right-5 z-20 mx-auto max-w-[600px]",
"max-h-[calc(100%-2rem)] min-h-50",
"flex flex-col",
"bg-background/95 dark:bg-surface-2/95",
- "border border-border/20 dark:border-white/8",
+ "border border-black/15 dark:border-white/18",
+ "ring-1 ring-inset ring-white/60 dark:ring-white/8",
"rounded-xl",
"shadow-elevated",
"backdrop-blur-2xl",
@@ -163,7 +165,7 @@ export default function EmbeddedChat({
<div
className={cn(
"w-85 shrink-0",
- "border-l border-border/25 dark:border-white/10",
+ "border-l border-black/12 dark:border-white/14",
"bg-surface-1 dark:bg-surface-2",
"flex flex-col",
"min-h-0"
diff --git a/src/components/notes/MeetingTranscriptChat.tsx b/src/components/notes/MeetingTranscriptChat.tsx
index a1ae4e808..f7282a873 100644
--- a/src/components/notes/MeetingTranscriptChat.tsx
+++ b/src/components/notes/MeetingTranscriptChat.tsx
@@ -1,6 +1,6 @@
import { useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
import { useTranslation } from "react-i18next";
-import { Check, Loader2, Sparkles, Users, X } from "lucide-react";
+import { Check, Loader2, ShieldCheck, Sparkles, Users, X } from "lucide-react";
import { Popover, PopoverTrigger, PopoverContent } from "../ui/popover";
import { Toggle } from "../ui/toggle";
import { cn } from "../lib/utils";
@@ -612,7 +612,6 @@ export function MeetingTranscriptChat({
const { t } = useTranslation();
const scrollRef = useRef<HTMLDivElement>(null);
const shouldStickToBottomRef = useRef(true);
- const [hintDismissed, setHintDismissed] = useState(false);
useEffect(() => {
const el = scrollRef.current;
@@ -660,12 +659,22 @@ export function MeetingTranscriptChat({
return map;
}, [segments, speakerMappings]);
+ const consentNotice = (
+ <div className="shrink-0 flex items-center justify-center gap-1 px-4 pt-2 pb-1 text-[10px] text-muted-foreground/50 select-none">
+ <ShieldCheck size={10} className="shrink-0" />
+ <span>{t("notes.speaker.consentNotice")}</span>
+ </div>
+ );
+
if (!hasContent) {
return (
- <div className="h-full flex items-center justify-center px-5">
- <p className="text-xs text-muted-foreground/40 select-none">
- {t("notes.editor.conversationWillAppear")}
- </p>
+ <div className="h-full flex flex-col">
+ {consentNotice}
+ <div className="flex-1 flex items-center justify-center px-5">
+ <p className="text-xs text-muted-foreground/40 select-none">
+ {t("notes.editor.conversationWillAppear")}
+ </p>
+ </div>
</div>
);
}
@@ -678,78 +687,94 @@ export function MeetingTranscriptChat({
return segment.source === "mic";
};
- const others = Math.max(0, sessionExpectedCount - 1);
+ const showAssumedHint =
+ !isDiarizing &&
+ sessionDiarizationEnabled &&
+ sessionExpectedCount === 2 &&
+ !(participants && participants.length > 0) &&
+ !userTouchedStepper;
return (
- <div className="h-full relative">
- {(isRecording || isDiarizing) && !hintDismissed && (
- <div className="absolute top-2 left-1/2 -translate-x-1/2 z-10 flex items-center gap-2 px-2.5 py-1 rounded-md border border-border bg-background/95 backdrop-blur shadow-sm text-xs text-foreground">
- {isDiarizing ? (
- <Loader2 size={12} className="animate-spin text-muted-foreground" />
- ) : (
- <Sparkles
- size={12}
- className={cn(sessionDiarizationEnabled ? "text-primary" : "text-muted-foreground")}
- />
- )}
- <span>
- {isDiarizing
- ? t("notes.speaker.pill.finalizing")
- : sessionDiarizationEnabled
- ? others === 1 && !(participants && participants.length > 0) && !userTouchedStepper
- ? t("notes.speaker.pill.defaultingHint")
- : t("notes.speaker.pill.identifying")
- : t("notes.speaker.pill.notLabeled")}
- </span>
- {!isDiarizing && sessionDiarizationEnabled && (
- <>
- <span className="text-muted-foreground">
- {others === 0
- ? t("notes.speaker.pill.justYou")
- : t("notes.speaker.pill.othersInCall", { count: others })}
+ <div className="h-full flex flex-col">
+ {consentNotice}
+ {(isRecording || isDiarizing) && (
+ <div className="shrink-0 flex flex-wrap items-center gap-x-3 gap-y-1 mx-4 mb-1.5 px-3 py-1.5 rounded-lg border border-border/60 bg-surface-2/40 text-xs text-foreground">
+ <div className="flex items-center gap-1.5 min-w-0">
+ {isDiarizing ? (
+ <Loader2 size={12} className="animate-spin text-muted-foreground shrink-0" />
+ ) : (
+ <Sparkles
+ size={12}
+ className={cn(
+ "shrink-0",
+ sessionDiarizationEnabled ? "text-primary" : "text-muted-foreground"
+ )}
+ />
+ )}
+ <span className="truncate">
+ {isDiarizing
+ ? t("notes.speaker.pill.finalizing")
+ : sessionDiarizationEnabled
+ ? t("notes.speaker.pill.identifying")
+ : t("notes.speaker.pill.notLabeled")}
+ </span>
+ {showAssumedHint && (
+ <span className="text-muted-foreground truncate">
+ {t("notes.speaker.pill.assumedHint")}
</span>
+ )}
+ </div>
+ <div className="flex-1" />
+ {!isDiarizing && sessionDiarizationEnabled && (
+ <div className="flex items-center gap-1.5">
+ <span className="text-muted-foreground">{t("notes.speaker.pill.speakersLabel")}</span>
<div className="flex items-center gap-0.5 rounded-md border border-border bg-surface-2/60">
<button
onClick={() => onSetSessionExpectedCount?.(sessionExpectedCount - 1)}
- disabled={others <= 0}
+ disabled={sessionExpectedCount <= 1}
className="px-1.5 py-0.5 rounded-l-md hover:bg-accent focus-visible:bg-accent focus-visible:outline-none disabled:opacity-30 disabled:pointer-events-none transition-colors"
aria-label={t("notes.speaker.pill.decAria")}
>
−
</button>
<span className="px-1.5 tabular-nums" aria-live="polite">
- {others}
+ {sessionExpectedCount === 1
+ ? t("notes.speaker.pill.justYou")
+ : sessionExpectedCount}
</span>
<button
onClick={() => onSetSessionExpectedCount?.(sessionExpectedCount + 1)}
- disabled={others >= MAX_SPEAKER_COUNT - 1}
+ disabled={sessionExpectedCount >= MAX_SPEAKER_COUNT}
className="px-1.5 py-0.5 rounded-r-md hover:bg-accent focus-visible:bg-accent focus-visible:outline-none disabled:opacity-30 disabled:pointer-events-none transition-colors"
aria-label={t("notes.speaker.pill.incAria")}
>
+
</button>
</div>
- </>
+ </div>
)}
{!isDiarizing && (
- <div className="scale-75">
- <Toggle
- checked={sessionDiarizationEnabled}
- onChange={(next) => onSetSessionDiarizationEnabled?.(next)}
- />
+ <div className="flex items-center gap-1.5">
+ <button
+ onClick={() => onSetSessionDiarizationEnabled?.(!sessionDiarizationEnabled)}
+ className="text-muted-foreground hover:text-foreground transition-colors focus-visible:outline-none focus-visible:underline"
+ aria-label={t("notes.speaker.pill.toggleAria")}
+ >
+ {t("notes.speaker.pill.labelToggle")}
+ </button>
+ <div className="scale-75 -my-1">
+ <Toggle
+ checked={sessionDiarizationEnabled}
+ onChange={(next) => onSetSessionDiarizationEnabled?.(next)}
+ />
+ </div>
</div>
)}
- <button
- onClick={() => setHintDismissed(true)}
- className="text-foreground/40 hover:text-foreground/70 transition-colors"
- >
- <X size={12} />
- </button>
</div>
)}
<div
ref={scrollRef}
- className="h-full overflow-y-auto px-4 pt-3 pb-24 flex flex-col gap-1.5 agent-chat-scroll"
+ className="flex-1 min-h-0 overflow-y-auto px-4 pt-2 pb-24 flex flex-col gap-1.5 agent-chat-scroll"
>
{segments.map((segment, i) => {
const selfSide = isSelfSide(segment);
diff --git a/src/components/notes/NoteBottomBar.tsx b/src/components/notes/NoteBottomBar.tsx
index 6fa812b78..896718f0b 100644
--- a/src/components/notes/NoteBottomBar.tsx
+++ b/src/components/notes/NoteBottomBar.tsx
@@ -1,10 +1,23 @@
import { useState, useRef, useCallback, useEffect } from "react";
import { useTranslation } from "react-i18next";
-import { Mic, ArrowUp, Square, Loader2 } from "lucide-react";
+import { Mic, Square, Loader2 } from "lucide-react";
import { cn } from "../lib/utils";
+import { SendIcon } from "../ui/SendIcon";
+import { LiveWaveform } from "../ui/LiveWaveform";
+import { analyserRms } from "../../utils/audioLevel";
+import { GRADIENT_CIRCLE } from "../ui/gradientCircle";
+import { GLASS_SURFACE } from "../ui/glass";
import { formatMmSs } from "../../utils/formatDuration";
+import { getMicAnalyser, useMeetingRecordingStore } from "../../stores/meetingRecordingStore";
-const BAR_COUNT = 5;
+// Module-level buffer: there is a single meeting mic analyser at a time.
+const micLevelBuf: { current: Float32Array<ArrayBuffer> | null } = { current: null };
+
+function readMeetingMicLevel(): number {
+ const analyser = getMicAnalyser();
+ if (!analyser) return useMeetingRecordingStore.getState().currentMicLevel;
+ return analyserRms(analyser, micLevelBuf);
+}
interface NoteBottomBarProps {
isRecording: boolean;
@@ -84,6 +97,14 @@ export default function NoteBottomBar({
onInputFocus?.();
}, [onInputFocus]);
+ const micHidden = !hideInput && isExpanded && !isRecording;
+
+ // Chat panel opening hides the input; drop the expanded state so the bar
+ // comes back in its idle layout (mic visible) when the panel closes.
+ useEffect(() => {
+ if (hideInput) setIsExpanded(false);
+ }, [hideInput]);
+
useEffect(() => {
if (!isExpanded) return;
const handleClickOutside = (e: MouseEvent) => {
@@ -98,132 +119,128 @@ export default function NoteBottomBar({
return (
<div
ref={containerRef}
- className="absolute bottom-0 left-0 right-0 z-10 px-5 pb-4 pt-3 pointer-events-none bg-background"
+ className="absolute bottom-0 left-0 right-0 z-10 px-5 pb-4 pt-6 pointer-events-none bg-gradient-to-t from-background from-45% to-transparent"
>
- <div
- className={cn("flex items-end gap-2 pointer-events-auto", hideInput && "justify-center")}
- >
+ <div className="flex items-end pointer-events-auto w-full max-w-[600px] mx-auto">
{canRecord && (
<div
className={cn(
- "shrink-0 transition-all duration-300 ease-out overflow-hidden",
- !hideInput && isExpanded && !isRecording ? "w-0 opacity-0" : "w-auto opacity-100"
+ "shrink-0 overflow-hidden",
+ "transition-all duration-500 [transition-timing-function:cubic-bezier(0.22,1,0.36,1)]",
+ isRecording ? "w-[284px]" : micHidden ? "w-0" : "w-11",
+ !hideInput && !micHidden ? "mr-2" : "mr-0"
)}
>
{isRecording ? (
<button
onClick={onStopRecording}
+ aria-label={t("notes.editor.stop")}
+ title={t("notes.editor.stop")}
className={cn(
- "flex items-center gap-2 h-10 pl-3.5 pr-3 rounded-xl",
- "bg-primary/6 dark:bg-primary/10",
- "border border-primary/20 dark:border-primary/25",
- "transition-colors duration-150",
- "hover:bg-primary/10 dark:hover:bg-primary/15"
+ "group flex items-center gap-2.5 w-full h-11 pl-0.5 pr-3.5 rounded-full",
+ GLASS_SURFACE,
+ "border border-primary/15 dark:border-primary/25",
+ "transition-[border-color] duration-200",
+ "hover:border-primary/30 dark:hover:border-primary/40"
)}
>
- <div className="flex items-end gap-0.5 h-3.5">
- {Array.from({ length: BAR_COUNT }, (_, i) => (
- <div
- key={i}
- className="w-0.5 rounded-full bg-primary/60 dark:bg-primary/70 origin-bottom"
- style={{
- height: "100%",
- animation: `waveform-bar ${0.5 + i * 0.07}s ease-in-out infinite`,
- animationDelay: `${i * 0.04}s`,
- }}
- />
- ))}
- </div>
- <span className="text-[11px] font-medium tabular-nums text-primary/60 dark:text-primary/70">
+ <span
+ className={cn(
+ "flex items-center justify-center w-8 h-8 rounded-full shrink-0",
+ GRADIENT_CIRCLE,
+ "transition-[filter] duration-150 group-hover:brightness-110"
+ )}
+ >
+ <Square size={11} fill="currentColor" />
+ </span>
+ <LiveWaveform readLevel={readMeetingMicLevel} />
+ <span className="text-[13px] font-semibold tabular-nums tracking-[0.08em] text-foreground/85 shrink-0">
{elapsedLabel}
</span>
- <Square size={9} fill="currentColor" className="text-primary/50" />
</button>
- ) : isProcessing ? (
- <div
- className={cn(
- "flex items-center justify-center w-10 h-10 rounded-xl",
- "bg-foreground/3 dark:bg-white/4",
- "border border-border/20 dark:border-white/6"
- )}
- >
- <Loader2 size={14} className="animate-spin text-foreground/25" />
- </div>
) : (
<button
onClick={onStartRecording}
- disabled={recordingDisabled}
+ disabled={recordingDisabled || isProcessing}
+ tabIndex={micHidden ? -1 : undefined}
className={cn(
- "flex items-center justify-center w-10 h-10 rounded-xl",
- "bg-foreground/3 dark:bg-white/4",
- "border border-border/20 dark:border-white/6",
- "text-foreground/30 dark:text-foreground/20",
- "transition-all duration-200",
- "hover:bg-foreground/6 dark:hover:bg-white/8",
- "hover:text-foreground/50 dark:hover:text-foreground/35",
- "hover:border-border/30 dark:hover:border-white/10",
+ "flex items-center justify-center w-11 h-11 rounded-full",
+ GRADIENT_CIRCLE,
+ "transition-all duration-500 [transition-timing-function:cubic-bezier(0.22,1,0.36,1)]",
+ "hover:brightness-110",
"active:scale-95",
- "disabled:pointer-events-none disabled:opacity-40"
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30",
+ recordingDisabled && "opacity-40 saturate-0 pointer-events-none",
+ isProcessing && "pointer-events-none",
+ micHidden
+ ? "translate-x-10 opacity-0 pointer-events-none"
+ : "translate-x-0 opacity-100"
)}
aria-label={t("notes.editor.transcribe")}
title={recordingDisabled ? t("common.managedByOrg") : undefined}
>
- <Mic size={15} />
+ {isProcessing ? (
+ <Loader2 size={16} className="animate-spin text-white/90" />
+ ) : (
+ <Mic size={20} />
+ )}
</button>
)}
</div>
)}
- {!hideInput && (
- <div
+ <div
+ aria-hidden={hideInput}
+ className={cn(
+ "flex-1 min-w-0 flex items-center h-11 gap-2 rounded-full",
+ GLASS_SURFACE,
+ "border",
+ "transition-all duration-500 [transition-timing-function:cubic-bezier(0.22,1,0.36,1)]",
+ hideInput
+ ? "max-w-0 opacity-0 pl-0 pr-0 border-transparent shadow-none pointer-events-none"
+ : "max-w-[600px] opacity-100 pl-4 pr-1.5",
+ isExpanded
+ ? "border-black/15 dark:border-white/22 ring-[3px] ring-primary/8"
+ : !hideInput && "border-black/10 dark:border-white/14"
+ )}
+ >
+ <input
+ ref={inputRef}
+ type="text"
+ value={inputText}
+ onChange={(e) => setInputText(e.target.value)}
+ onKeyDown={handleKeyDown}
+ onFocus={handleInputFocus}
+ disabled={askDisabled}
+ tabIndex={hideInput ? -1 : undefined}
+ placeholder={t("embeddedChat.askPlaceholder")}
className={cn(
- "flex-1 min-w-0 flex items-center h-10 px-3 gap-2",
- "rounded-xl",
- "bg-foreground/3 dark:bg-white/4",
- "border",
- "transition-all duration-200",
- isExpanded
- ? "border-foreground/12 dark:border-white/10 shadow-[0_0_0_3px_rgba(0,0,0,0.02)] dark:shadow-[0_0_0_3px_rgba(255,255,255,0.02)]"
- : "border-border/20 dark:border-white/6"
+ "input-inline flex-1 bg-transparent outline-none min-w-0 p-0 caret-primary",
+ "text-[13px] text-foreground",
+ "placeholder:text-foreground/25 dark:placeholder:text-foreground/15"
)}
- >
- <input
- ref={inputRef}
- type="text"
- value={inputText}
- onChange={(e) => setInputText(e.target.value)}
- onKeyDown={handleKeyDown}
- onFocus={handleInputFocus}
+ />
+
+ {hasText ? (
+ <button
+ onClick={handleSubmit}
disabled={askDisabled}
- placeholder={t("embeddedChat.askPlaceholder")}
className={cn(
- "input-inline flex-1 bg-transparent outline-none min-w-0 p-0",
- "text-[13px] text-foreground",
- "placeholder:text-foreground/25 dark:placeholder:text-foreground/15"
+ "flex items-center justify-center w-7 h-7 rounded-full shrink-0",
+ "animate-[scale-in_0.15s_ease-out_backwards]",
+ "transition-all duration-150",
+ "hover:brightness-110",
+ "active:scale-90",
+ "disabled:opacity-30"
)}
- />
-
- {hasText ? (
- <button
- onClick={handleSubmit}
- disabled={askDisabled}
- className={cn(
- "flex items-center justify-center w-6 h-6 rounded-md shrink-0",
- "bg-foreground dark:bg-foreground/90 text-background",
- "transition-all duration-150",
- "hover:bg-foreground/85 dark:hover:bg-foreground/80",
- "active:scale-90",
- "disabled:opacity-30"
- )}
- aria-label={t("embeddedChat.send")}
- >
- <ArrowUp size={13} strokeWidth={2.5} />
- </button>
- ) : !isExpanded ? (
- <div className="shrink-0">{actionPicker}</div>
- ) : null}
- </div>
- )}
+ aria-label={t("embeddedChat.send")}
+ >
+ <SendIcon size={28} className="block" />
+ </button>
+ ) : !isExpanded ? (
+ <div className="shrink-0">{actionPicker}</div>
+ ) : null}
+ </div>
</div>
</div>
);
diff --git a/src/components/notes/NoteEditor.tsx b/src/components/notes/NoteEditor.tsx
index 7320ea71c..c70120546 100644
--- a/src/components/notes/NoteEditor.tsx
+++ b/src/components/notes/NoteEditor.tsx
@@ -23,6 +23,7 @@ import {
resolveNotePermission,
type NoteAclState,
} from "../../lib/notePermissions";
+import { ownsNote } from "../../lib/spacePermissions";
import SpaceMembersDialog from "./SpaceMembersDialog";
import {
useShareCacheEntry,
@@ -259,6 +260,7 @@ export default function NoteEditor({
cachedPermission: shareCache?.access?.my_permission,
aclState,
isTeamNote,
+ locallyOwned: ownsNote(note, user?.id),
});
const shareCapabilities = noteCapabilities(notePermission);
const canShare =
diff --git a/src/components/notes/PersonalNotesView.tsx b/src/components/notes/PersonalNotesView.tsx
index 2cb16b811..339f502a9 100644
--- a/src/components/notes/PersonalNotesView.tsx
+++ b/src/components/notes/PersonalNotesView.tsx
@@ -1,7 +1,7 @@
import { useState, useEffect, useRef, useCallback, useMemo } from "react";
import { useTranslation } from "react-i18next";
import { useShallow } from "zustand/react/shallow";
-import { Plus, SquarePen, Search, Sparkles } from "lucide-react";
+import { Plus, Sparkles } from "lucide-react";
import { useToast } from "../ui/useToast";
import NoteEditor from "./NoteEditor";
import SpacesTree from "./SpacesTree";
@@ -97,7 +97,6 @@ type PendingSaveReason = "switch" | "overview" | "unmount";
interface PersonalNotesViewProps {
onOpenSettings?: (section: string) => void;
- onOpenSearch?: () => void;
meetingRecordingRequest?: {
noteId: number;
folderId: number;
@@ -110,7 +109,6 @@ interface PersonalNotesViewProps {
export default function PersonalNotesView({
onOpenSettings,
- onOpenSearch,
meetingRecordingRequest,
onMeetingRecordingRequestHandled,
invitationEntry,
@@ -711,32 +709,6 @@ export default function PersonalNotesView({
>
<div className="w-52 shrink-0 border-r border-border/15 dark:border-white/4 flex flex-col h-full">
<div className="px-2 pt-2 pb-1 shrink-0 space-y-0.5">
- <button
- onClick={handleNewNoteInPrivate}
- className={cn(
- "flex items-center gap-2 w-full px-2 py-1.5 rounded-md text-xs",
- "text-muted-foreground/80 hover:text-foreground hover:bg-foreground/5",
- "transition-colors duration-150",
- "focus:outline-none focus-visible:ring-1 focus-visible:ring-ring/30"
- )}
- >
- <SquarePen size={14} className="shrink-0" />
- {t("notes.sidebar.newNote")}
- </button>
- {onOpenSearch && (
- <button
- onClick={onOpenSearch}
- className={cn(
- "flex items-center gap-2 w-full px-2 py-1.5 rounded-md text-xs",
- "text-muted-foreground/80 hover:text-foreground hover:bg-foreground/5",
- "transition-colors duration-150",
- "focus:outline-none focus-visible:ring-1 focus-visible:ring-ring/30"
- )}
- >
- <Search size={14} className="shrink-0" />
- {t("notes.sidebar.searchNotes")}
- </button>
- )}
<button
onClick={() => setShowActionManager(true)}
className={cn(
diff --git a/src/components/notes/SpacesTree.tsx b/src/components/notes/SpacesTree.tsx
index 425fe0a12..98f6dcf37 100644
--- a/src/components/notes/SpacesTree.tsx
+++ b/src/components/notes/SpacesTree.tsx
@@ -56,7 +56,6 @@ import { localMutationErrorKey } from "../../lib/localMutationError";
import { deleteSpace, renameSpace } from "../../services/spaceActions";
import { useSettingsStore } from "../../stores/settingsStore";
import { cn } from "../lib/utils";
-import { formatRelativeTime } from "../../utils/dateFormatting";
import { getCachedPlatform } from "../../utils/platform";
import CreateSpaceDialog from "./CreateSpaceDialog";
import DeleteSpaceDialog from "./DeleteSpaceDialog";
@@ -171,6 +170,7 @@ function getFileManagerName(): string {
function SectionHeader({
label,
+ icon,
action,
className,
expanded,
@@ -181,6 +181,8 @@ function SectionHeader({
isDropSuccess,
}: {
label: string;
+ /** Resting icon shown in the chevron slot; the chevron appears on hover. */
+ icon?: React.ReactNode;
action?: React.ReactNode;
className?: string;
expanded?: boolean;
@@ -198,7 +200,7 @@ function SectionHeader({
role="none"
{...dropHandlers}
className={cn(
- "flex items-center justify-between h-6 px-2 mt-1 rounded-md",
+ "group flex items-center justify-between h-6 px-2 mt-1 rounded-md",
isDragOver && DROP_TARGET_CLASS,
isDropSuccess && DROP_SUCCESS_CLASS,
className
@@ -212,14 +214,24 @@ function SectionHeader({
onClick={onToggle}
className="flex h-full min-w-0 items-center gap-1 rounded-sm outline-none hover:text-foreground focus-visible:ring-1 focus-visible:ring-ring/30"
>
- <ChevronRight
- size={11}
+ <span
aria-hidden="true"
- className={cn(
- "shrink-0 text-foreground/40 transition-transform duration-150",
- expanded && "rotate-90"
+ className="relative h-3.5 w-3.5 flex items-center justify-center shrink-0"
+ >
+ {icon && (
+ <span className="absolute inset-0 flex items-center justify-center transition-opacity duration-150 group-hover:opacity-0">
+ {icon}
+ </span>
)}
- />
+ <ChevronRight
+ size={11}
+ className={cn(
+ "text-foreground/40 transition-all duration-150",
+ expanded && "rotate-90",
+ icon && "opacity-0 group-hover:opacity-100"
+ )}
+ />
+ </span>
<span className={labelClassName}>{label}</span>
</button>
) : (
@@ -260,7 +272,19 @@ function TreeChildren({
);
}
-function Chevron({ isExpanded, onToggle }: { isExpanded: boolean; onToggle: () => void }) {
+/**
+ * Expand/collapse toggle. With `icon`, the icon is the resting state and the
+ * chevron fades in when the row (a `group`) is hovered.
+ */
+function RowToggle({
+ isExpanded,
+ onToggle,
+ icon,
+}: {
+ isExpanded: boolean;
+ onToggle: () => void;
+ icon?: React.ReactNode;
+}) {
return (
<span
aria-hidden="true"
@@ -268,42 +292,32 @@ function Chevron({ isExpanded, onToggle }: { isExpanded: boolean; onToggle: () =
e.stopPropagation();
onToggle();
}}
- className="h-4 w-4 flex items-center justify-center shrink-0 rounded-sm text-foreground/30 hover:text-foreground/60 transition-colors duration-150"
+ className="relative h-4 w-4 flex items-center justify-center shrink-0 rounded-sm text-foreground/30 hover:text-foreground/60 transition-colors duration-150"
>
+ {icon && (
+ <span className="absolute inset-0 flex items-center justify-center transition-opacity duration-150 group-hover:opacity-0">
+ {icon}
+ </span>
+ )}
<ChevronRight
size={12}
- className={cn("transition-transform duration-150", isExpanded && "rotate-90")}
+ className={cn(
+ "transition-all duration-150",
+ isExpanded && "rotate-90",
+ icon && "opacity-0 group-hover:opacity-100"
+ )}
/>
</span>
);
}
-function ContainerRowTrailing({
- count,
- isActive,
- isDropSuccess,
-}: {
- count: number;
- isActive: boolean;
- isDropSuccess: boolean;
-}) {
- return isDropSuccess ? (
+function DropSuccessCheck({ isDropSuccess }: { isDropSuccess: boolean }) {
+ if (!isDropSuccess) return null;
+ return (
<Check
size={10}
className="text-emerald-500 dark:text-emerald-400 shrink-0 animate-[scale-in_200ms_ease-out]"
/>
- ) : (
- <span
- aria-hidden="true"
- className={cn(
- "text-xs tabular-nums shrink-0 transition-opacity group-hover:opacity-0",
- isActive
- ? "text-foreground/50 dark:text-foreground/30"
- : "text-foreground/35 dark:text-foreground/15"
- )}
- >
- {count > 0 ? count : ""}
- </span>
);
}
@@ -429,7 +443,7 @@ function SpaceRow({
onKeyDown={a11y.onKeyDown}
onFocus={a11y.onFocus}
onClick={onActivate}
- title={displayName}
+ title={isPrivate ? t("notes.spaces.privateTooltip") : displayName}
{...dropHandlers}
className={cn(
ROW_BASE_CLASS,
@@ -441,32 +455,35 @@ function SpaceRow({
isDropSuccess && DROP_SUCCESS_CLASS
)}
>
- <Chevron isExpanded={isExpanded} onToggle={onToggle} />
- {isPrivate ? (
- <span title={t("notes.spaces.privateTooltip")} className="flex shrink-0">
- <Lock
- size={14}
- role="img"
- aria-label={t("notes.spaces.privateTooltip")}
- className={cn(
- "transition-colors duration-150",
- isActive ? "text-primary" : "text-foreground/35 dark:text-foreground/20"
- )}
- />
- </span>
- ) : space.emoji ? (
- <span className="text-[13px] leading-none shrink-0" aria-hidden="true">
- {space.emoji}
- </span>
- ) : (
- <Users
- size={14}
- className={cn(
- "shrink-0 transition-colors duration-150",
- isDragOver || isActive ? "text-primary" : "text-foreground/35 dark:text-foreground/20"
- )}
- />
- )}
+ <RowToggle
+ isExpanded={isExpanded}
+ onToggle={onToggle}
+ icon={
+ isPrivate ? (
+ <Lock
+ size={13}
+ className={cn(
+ "transition-colors duration-150",
+ isActive ? "text-primary" : "text-foreground/35 dark:text-foreground/20"
+ )}
+ />
+ ) : space.emoji ? (
+ <span className="text-[12px] leading-none" aria-hidden="true">
+ {space.emoji}
+ </span>
+ ) : (
+ <Users
+ size={13}
+ className={cn(
+ "transition-colors duration-150",
+ isDragOver || isActive
+ ? "text-primary"
+ : "text-foreground/35 dark:text-foreground/20"
+ )}
+ />
+ )
+ }
+ />
<span
className={cn(
"text-xs truncate flex-1 transition-colors duration-150",
@@ -475,7 +492,7 @@ function SpaceRow({
>
{displayName}
</span>
- <ContainerRowTrailing count={count} isActive={isActive} isDropSuccess={isDropSuccess} />
+ <DropSuccessCheck isDropSuccess={isDropSuccess} />
<span className="absolute right-1.5 flex items-center gap-px">
<Button
variant="ghost"
@@ -647,15 +664,18 @@ function FolderRow({
isDropSuccess && DROP_SUCCESS_CLASS
)}
>
- <Chevron isExpanded={isExpanded} onToggle={onToggle} />
- <Folder
- size={14}
- className={cn(
- "shrink-0 transition-colors duration-150",
- isDragOver || isActive
- ? "text-primary"
- : "text-foreground/35 dark:text-foreground/20 group-hover:text-foreground/50 dark:group-hover:text-foreground/35"
- )}
+ <RowToggle
+ isExpanded={isExpanded}
+ onToggle={onToggle}
+ icon={
+ <Folder
+ size={13}
+ className={cn(
+ "transition-colors duration-150",
+ isDragOver || isActive ? "text-primary" : "text-foreground/35 dark:text-foreground/20"
+ )}
+ />
+ }
/>
<span
className={cn(
@@ -667,7 +687,7 @@ function FolderRow({
>
{folder.name}
</span>
- <ContainerRowTrailing count={count} isActive={isActive} isDropSuccess={isDropSuccess} />
+ <DropSuccessCheck isDropSuccess={isDropSuccess} />
<span className="absolute right-1.5 flex items-center gap-px">
<Button
variant="ghost"
@@ -940,12 +960,6 @@ function NoteLeaf({
className="text-foreground/40 shrink-0 transition-opacity group-hover:opacity-0"
/>
)}
- <span
- aria-hidden="true"
- className="text-[10px] tabular-nums shrink-0 text-foreground/35 dark:text-foreground/15 transition-opacity group-hover:opacity-0"
- >
- {formatRelativeTime(note.updated_at, t)}
- </span>
{(noteFilesEnabled || canMove || canDelete) && (
<DropdownMenu
onOpenChange={(open) => {
@@ -1831,7 +1845,7 @@ export default function SpacesTree({
level={level}
spaces={moveTargetsBySpace.get(folder.space_id) ?? []}
isExpanded={isExpanded}
- isActive={activeContext?.folderId === folder.id}
+ isActive={activeNoteId == null && activeContext?.folderId === folder.id}
count={folderCounts[folder.id] ?? 0}
isDragOver={dragState.dragOverKey === folderKey}
isDropSuccess={dragState.dropSuccessKey === folderKey}
@@ -1992,7 +2006,11 @@ export default function SpacesTree({
space={space}
displayName={displayName}
isExpanded={isExpanded}
- isActive={activeContext?.spaceId === space.id && activeContext.folderId == null}
+ isActive={
+ activeNoteId == null &&
+ activeContext?.spaceId === space.id &&
+ activeContext.folderId == null
+ }
count={noteCount}
isDragOver={dragState.dragOverKey === spaceKey}
isDropSuccess={dragState.dropSuccessKey === spaceKey}
@@ -2037,6 +2055,7 @@ export default function SpacesTree({
<div role="none" className="group/section">
<SectionHeader
label={t("notes.spaces.privateSpaces")}
+ icon={<Lock size={11} className="text-foreground/40" />}
expanded={privateSectionExpanded}
onToggle={() => {
if (privateSpace) toggleContainerExpanded(spaceContainerKey(privateSpace.id));
diff --git a/src/components/notes/UploadAudioView.tsx b/src/components/notes/UploadAudioView.tsx
index 67dd11d83..c4333171c 100644
--- a/src/components/notes/UploadAudioView.tsx
+++ b/src/components/notes/UploadAudioView.tsx
@@ -50,7 +50,11 @@ import {
} from "../../stores/settingsStore";
import { useBatchQueue } from "../../stores/batchQueueStore";
import type { TranscribeOptions } from "../../stores/batchQueueStore";
-import { transcribeFileWithSpeakers, shouldUseByokDiarize } from "../../services/fileTranscription";
+import {
+ transcribeFileWithSpeakers,
+ shouldUseByokDiarize,
+ getTranscriptionApiKey,
+} from "../../services/fileTranscription";
import type {
FileTranscriptionConfig,
FileTranscriptionResult,
@@ -243,6 +247,7 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: Uploa
// entitlement should not block a payer's upload.
const isProUser = usage?.hasPaidAccessOptimistic ?? false;
+ const apiKeys = useSettings();
const {
openaiApiKey,
groqApiKey,
@@ -250,7 +255,7 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: Uploa
mistralApiKey,
tinfoilApiKey,
customTranscriptionApiKey,
- } = useSettings();
+ } = apiKeys;
const policyState = usePolicySnapshot();
const {
@@ -394,19 +399,17 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: Uploa
} else if (cloudTranscriptionProvider === "corti") {
if (!cancelled) setProviderReady(!!(cortiClientId && cortiClientSecret));
} else {
- const key =
- cloudTranscriptionProvider === "openai"
- ? openaiApiKey
- : cloudTranscriptionProvider === "groq"
- ? groqApiKey
- : cloudTranscriptionProvider === "xai"
- ? xaiApiKey
- : cloudTranscriptionProvider === "mistral"
- ? mistralApiKey
- : cloudTranscriptionProvider === "tinfoil"
- ? tinfoilApiKey
- : customTranscriptionApiKey;
- if (!cancelled) setProviderReady(!!key);
+ if (!cancelled)
+ setProviderReady(
+ !!getTranscriptionApiKey(cloudTranscriptionProvider, {
+ openaiApiKey,
+ groqApiKey,
+ xaiApiKey,
+ mistralApiKey,
+ tinfoilApiKey,
+ customTranscriptionApiKey,
+ })
+ );
}
return;
}
@@ -465,32 +468,13 @@ export default function UploadAudioView({ onNoteCreated, onOpenSettings }: Uploa
return `${name} · ${model}`;
};
- const getActiveApiKey = (): string => {
- switch (cloudTranscriptionProvider) {
- case "openai":
- return openaiApiKey;
- case "groq":
- return groqApiKey;
- case "xai":
- return xaiApiKey;
- case "mistral":
- return mistralApiKey;
- case "tinfoil":
- return tinfoilApiKey;
- case "custom":
- return customTranscriptionApiKey || "";
- default:
- return "";
- }
- };
-
const buildTranscriptionConfig = (): FileTranscriptionConfig => ({
useLocalWhisper,
localTranscriptionProvider: localTranscriptionProvider as string,
whisperModel,
parakeetModel,
isOpenWhisprCloud,
- getApiKey: getActiveApiKey,
+ getApiKey: () => getTranscriptionApiKey(cloudTranscriptionProvider, apiKeys),
cloudTranscriptionProvider: cloudTranscriptionProvider as string,
cloudTranscriptionBaseUrl: cloudTranscriptionBaseUrl || "",
cloudTranscriptionModel,
diff --git a/src/components/settings/WorkspaceSection.tsx b/src/components/settings/WorkspaceSection.tsx
index 21e7e749b..6bc72b203 100644
--- a/src/components/settings/WorkspaceSection.tsx
+++ b/src/components/settings/WorkspaceSection.tsx
@@ -9,7 +9,7 @@ import { useDialogs } from "../../hooks/useDialogs";
import { useLocalStorage } from "../../hooks/useLocalStorage";
import { Button } from "../ui/button";
import { Input } from "../ui/input";
-import { Label } from "../ui/label";
+import { SettingsPanel, SettingsPanelRow, SettingsRow } from "../ui/SettingsSection";
import { useToast } from "../ui/useToast";
import { ConfirmDialog } from "../ui/dialog";
import CreateWorkspaceDialog from "../CreateWorkspaceDialog";
@@ -322,87 +322,80 @@ function GeneralTab({ workspace }: { workspace: Workspace }) {
return (
<div className="space-y-4">
- <div className="space-y-3 rounded-lg border border-border/50 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 p-4">
- <div className="space-y-1.5">
- <Label htmlFor="ws-name" className="text-xs font-medium">
- {t("settingsPage.workspace.general.nameLabel")}
- </Label>
- <Input
- id="ws-name"
- value={name}
- onChange={(e) => setName(e.target.value)}
- disabled={!canEdit}
- maxLength={80}
- />
- </div>
- {canEdit && (
- <div className="pt-1">
- <Button
- onClick={handleSave}
- size="sm"
- disabled={!dirty || !name.trim() || saving}
- >
- {saving && <Loader2 className="mr-1.5 h-3.5 w-3.5 animate-spin" />}
- {saving ? t("common.saving") : t("common.save")}
- </Button>
- </div>
- )}
- </div>
+ <SettingsPanel>
+ <SettingsPanelRow>
+ <SettingsRow label={t("settingsPage.workspace.general.nameLabel")}>
+ <div className="flex gap-2">
+ <Input
+ value={name}
+ onChange={(e) => setName(e.target.value)}
+ aria-label={t("settingsPage.workspace.general.nameLabel")}
+ disabled={!canEdit || saving}
+ maxLength={80}
+ className="h-8 w-56 text-xs"
+ />
+ {canEdit && (
+ <Button size="sm" onClick={handleSave} disabled={!dirty || !name.trim() || saving}>
+ {saving ? t("common.saving") : t("common.save")}
+ </Button>
+ )}
+ </div>
+ </SettingsRow>
+ </SettingsPanelRow>
+ </SettingsPanel>
{isOwner ? (
- <div className="rounded-lg border border-destructive/30 bg-destructive/3 dark:bg-destructive/6 p-4 space-y-3">
- <div>
- <p className="text-xs font-medium text-foreground">
- {t("settingsPage.workspace.general.dangerTitle")}
- </p>
- <p className="text-xs text-muted-foreground mt-0.5">
- {t("settingsPage.workspace.general.dangerDescription")}
- </p>
- </div>
- <Button
- variant="outline"
- size="sm"
- onClick={confirmDelete}
- disabled={deleting}
- className="text-destructive border-destructive/30 hover:bg-destructive/10 hover:border-destructive/50"
- >
- {deleting ? (
- <Loader2 className="mr-1.5 h-3.5 w-3.5 animate-spin" />
- ) : (
- <Trash2 className="mr-1.5 h-3.5 w-3.5" />
- )}
- {deleting
- ? t("settingsPage.workspace.general.deleting")
- : t("settingsPage.workspace.general.delete")}
- </Button>
- </div>
+ <SettingsPanel>
+ <SettingsPanelRow>
+ <SettingsRow
+ label={t("settingsPage.workspace.general.dangerTitle")}
+ description={t("settingsPage.workspace.general.dangerDescription")}
+ >
+ <Button
+ variant="outline"
+ size="sm"
+ onClick={confirmDelete}
+ disabled={deleting}
+ className="text-destructive border-destructive/30 hover:bg-destructive/10 hover:border-destructive"
+ >
+ {deleting ? (
+ <Loader2 className="mr-1.5 h-3.5 w-3.5 animate-spin" />
+ ) : (
+ <Trash2 className="mr-1.5 h-3.5 w-3.5" />
+ )}
+ {deleting
+ ? t("settingsPage.workspace.general.deleting")
+ : t("settingsPage.workspace.general.delete")}
+ </Button>
+ </SettingsRow>
+ </SettingsPanelRow>
+ </SettingsPanel>
) : (
- <div className="rounded-lg border border-destructive/30 bg-destructive/3 dark:bg-destructive/6 p-4 space-y-3">
- <div>
- <p className="text-xs font-medium text-foreground">
- {t("settingsPage.workspace.general.leaveTitle")}
- </p>
- <p className="text-xs text-muted-foreground mt-0.5">
- {t("settingsPage.workspace.general.leaveDescription")}
- </p>
- </div>
- <Button
- variant="outline"
- size="sm"
- onClick={confirmLeave}
- disabled={leaving}
- className="text-destructive border-destructive/30 hover:bg-destructive/10 hover:border-destructive/50"
- >
- {leaving ? (
- <Loader2 className="mr-1.5 h-3.5 w-3.5 animate-spin" />
- ) : (
- <LogOut className="mr-1.5 h-3.5 w-3.5" />
- )}
- {leaving
- ? t("settingsPage.workspace.general.leaving")
- : t("settingsPage.workspace.general.leave")}
- </Button>
- </div>
+ <SettingsPanel>
+ <SettingsPanelRow>
+ <SettingsRow
+ label={t("settingsPage.workspace.general.leaveTitle")}
+ description={t("settingsPage.workspace.general.leaveDescription")}
+ >
+ <Button
+ variant="outline"
+ size="sm"
+ onClick={confirmLeave}
+ disabled={leaving}
+ className="text-destructive border-destructive/30 hover:bg-destructive/10 hover:border-destructive"
+ >
+ {leaving ? (
+ <Loader2 className="mr-1.5 h-3.5 w-3.5 animate-spin" />
+ ) : (
+ <LogOut className="mr-1.5 h-3.5 w-3.5" />
+ )}
+ {leaving
+ ? t("settingsPage.workspace.general.leaving")
+ : t("settingsPage.workspace.general.leave")}
+ </Button>
+ </SettingsRow>
+ </SettingsPanelRow>
+ </SettingsPanel>
)}
<ConfirmDialog
diff --git a/src/components/ui/LiveWaveform.tsx b/src/components/ui/LiveWaveform.tsx
new file mode 100644
index 000000000..988f3bde4
--- /dev/null
+++ b/src/components/ui/LiveWaveform.tsx
@@ -0,0 +1,90 @@
+import { useState, useRef, useEffect } from "react";
+import { cn } from "../lib/utils";
+
+const DEFAULT_BAR_COUNT = 40;
+const WAVE_SAMPLE_MS = 150;
+const WAVE_MAX_PX = 20;
+const WAVE_MIN_PX = 2;
+// Bar width 2px + gap 2px — used to derive the count in "auto" mode.
+const WAVE_BAR_PITCH = 4;
+const WAVE_MIN_AUTO_BARS = 16;
+// Bars scale against a decaying session peak, so any mic gain fills the range.
+const WAVE_PEAK_FLOOR = 0.01;
+const WAVE_PEAK_DECAY = 0.99;
+const WAVE_QUIET_NORM = 0.14;
+
+function waveBarStyle(norm: number, index: number, count: number): React.CSSProperties {
+ if (norm < WAVE_QUIET_NORM) {
+ return { height: WAVE_MIN_PX, backgroundColor: "rgba(143,170,255,0.35)" };
+ }
+ // Periwinkle (#8FAAFF) → orange (#FFA23E) across the strip, louder = more opaque
+ const t = index / (count - 1);
+ const r = Math.round(143 + 112 * t);
+ const g = Math.round(170 - 8 * t);
+ const b = Math.round(255 - 193 * t);
+ const alpha = 0.55 + 0.45 * Math.min(1, norm);
+ return {
+ height: Math.max(WAVE_MIN_PX, Math.round(Math.sqrt(norm) * WAVE_MAX_PX)),
+ backgroundColor: `rgba(${r},${g},${b},${alpha})`,
+ };
+}
+
+interface LiveWaveformProps {
+ /** Returns the current level (RMS, 0..1-ish); sampled every 150ms. */
+ readLevel: () => number;
+ /** Fixed bar count, or "auto" to fill the container's width. */
+ bars?: number | "auto";
+ className?: string;
+}
+
+export function LiveWaveform({
+ readLevel,
+ bars = DEFAULT_BAR_COUNT,
+ className,
+}: LiveWaveformProps) {
+ const [samples, setSamples] = useState<number[]>([]);
+ const peakRef = useRef(WAVE_PEAK_FLOOR);
+ const containerRef = useRef<HTMLDivElement>(null);
+ const [autoCount, setAutoCount] = useState(DEFAULT_BAR_COUNT);
+
+ const count = bars === "auto" ? autoCount : bars;
+ const countRef = useRef(count);
+ countRef.current = count;
+
+ useEffect(() => {
+ if (bars !== "auto") return;
+ const el = containerRef.current;
+ if (!el) return;
+ const observer = new ResizeObserver(() => {
+ setAutoCount(Math.max(WAVE_MIN_AUTO_BARS, Math.floor((el.clientWidth + 2) / WAVE_BAR_PITCH)));
+ });
+ observer.observe(el);
+ return () => observer.disconnect();
+ }, [bars]);
+
+ useEffect(() => {
+ const id = setInterval(() => {
+ const level = readLevel();
+ peakRef.current = Math.max(level, peakRef.current * WAVE_PEAK_DECAY, WAVE_PEAK_FLOOR);
+ const norm = Math.min(1, level / peakRef.current);
+ setSamples((prev) => [...prev.slice(-(countRef.current - 1)), norm]);
+ }, WAVE_SAMPLE_MS);
+ return () => clearInterval(id);
+ }, [readLevel]);
+
+ const recent = samples.slice(-count);
+ const padded =
+ recent.length < count ? [...Array<number>(count - recent.length).fill(0), ...recent] : recent;
+
+ return (
+ <div ref={containerRef} className={cn("flex items-center gap-0.5 h-5", className)}>
+ {padded.map((norm, i) => (
+ <div
+ key={i}
+ className="w-0.5 rounded-full shrink-0 transition-[height,background-color] duration-150 ease-out"
+ style={waveBarStyle(norm, i, count)}
+ />
+ ))}
+ </div>
+ );
+}
diff --git a/src/components/ui/SendIcon.tsx b/src/components/ui/SendIcon.tsx
new file mode 100644
index 000000000..9b9ef53d0
--- /dev/null
+++ b/src/components/ui/SendIcon.tsx
@@ -0,0 +1,42 @@
+import { useId } from "react";
+
+interface SendIconProps {
+ size?: number;
+ className?: string;
+}
+
+export function SendIcon({ size = 24, className }: SendIconProps) {
+ const gradientId = useId();
+
+ return (
+ <svg
+ width={size}
+ height={size}
+ viewBox="0 0 48 48"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+ className={className}
+ aria-hidden="true"
+ >
+ <circle cx="24" cy="24" r="24" fill={`url(#${gradientId})`} />
+ <path
+ d="M17.4649 13.9601C17.7495 13.9338 18.0356 13.9949 18.2847 14.1351L33.0521 22.5638L33.0549 22.5605C33.2721 22.6832 33.4531 22.8616 33.5787 23.0772C33.7043 23.2928 33.7699 23.538 33.7695 23.7875C33.769 24.037 33.7023 24.282 33.576 24.4972C33.4496 24.7124 33.2682 24.8903 33.0505 25.0123L18.2902 33.4551C18.0776 33.5756 17.8373 33.6393 17.593 33.6399C17.3681 33.6398 17.1462 33.5858 16.9465 33.4823C16.7468 33.3789 16.5749 33.2289 16.445 33.0452C16.3152 32.8615 16.2312 32.6493 16.2003 32.4265C16.1694 32.2038 16.1924 31.9768 16.2673 31.7648L18.5492 25.0092C18.64 24.7403 18.8922 24.5593 19.176 24.5593H25.3964C25.8588 24.5593 26.2337 24.1845 26.2337 23.7221C26.2337 23.2597 25.8588 22.8848 25.3964 22.8848H19.1301C18.8444 22.8848 18.5905 22.7026 18.4991 22.432L16.2673 15.8254C16.1729 15.5556 16.1627 15.2632 16.2385 14.9876C16.3142 14.712 16.4723 14.4658 16.6914 14.2823C16.9105 14.0988 17.1803 13.9865 17.4649 13.9601Z"
+ fill="white"
+ />
+ <defs>
+ <linearGradient
+ id={gradientId}
+ x1="50.7188"
+ y1="-8.36719"
+ x2="3.16412"
+ y2="47.0156"
+ gradientUnits="userSpaceOnUse"
+ >
+ <stop stopColor="#5B81E4" />
+ <stop offset="0.528846" stopColor="#154BD4" />
+ <stop offset="0.908654" stopColor="#163992" />
+ </linearGradient>
+ </defs>
+ </svg>
+ );
+}
diff --git a/src/components/ui/SidebarModal.tsx b/src/components/ui/SidebarModal.tsx
index e6debe670..2a0953e6b 100644
--- a/src/components/ui/SidebarModal.tsx
+++ b/src/components/ui/SidebarModal.tsx
@@ -25,6 +25,8 @@ interface SidebarModalProps<T extends string> {
children: React.ReactNode;
sidebarWidth?: string;
version?: string;
+ /** Rendered above the nav (hidden in compact mode), e.g. account identity. */
+ header?: React.ReactNode;
}
export default function SidebarModal<T extends string>({
@@ -37,6 +39,7 @@ export default function SidebarModal<T extends string>({
children,
sidebarWidth = "w-52",
version,
+ header,
}: SidebarModalProps<T>) {
const { t } = useTranslation();
@@ -122,17 +125,20 @@ export default function SidebarModal<T extends string>({
<div
className={`${actualSidebarWidth} shrink-0 border-r border-border/40 dark:border-border-subtle flex flex-col bg-surface-1 dark:bg-surface-0 transition-[width] duration-200 ease-out`}
>
+ {/* Identity / custom header */}
+ {header && !isCompact && <div className="px-4 pt-5 pb-1">{header}</div>}
+
{/* Navigation */}
<nav
className={`relative flex-1 pb-2 overflow-y-auto ${
- isCompact ? "px-1.5 pt-4" : "px-2 pt-4"
+ isCompact ? "px-1.5 pt-4" : "px-2 pt-3"
}`}
>
{groupedItems.map((group, groupIndex) => (
- <div key={groupIndex} className={groupIndex > 0 ? "mt-3" : ""}>
+ <div key={groupIndex} className={groupIndex > 0 ? "mt-4" : ""}>
{!isCompact && group.label && (
- <div className="px-2 pb-0.5 pt-1.5">
- <span className="text-xs font-medium tracking-[0.08em] uppercase text-muted-foreground/60 dark:text-muted-foreground/65">
+ <div className="px-2 pb-1">
+ <span className="text-[11px] font-medium text-muted-foreground/70 dark:text-muted-foreground/65">
{group.label}
</span>
</div>
@@ -148,27 +154,21 @@ export default function SidebarModal<T extends string>({
data-section-id={item.id}
onClick={() => onSectionChange(item.id)}
title={isCompact ? item.label : undefined}
- className={`group relative w-full flex items-center text-left text-xs rounded-lg transition-colors duration-100 outline-none ${
- isCompact ? "justify-center px-0 py-2" : "gap-2.5 px-2.5 py-2"
+ className={`group relative w-full flex items-center text-left text-xs rounded-md transition-colors duration-100 outline-none ${
+ isCompact ? "justify-center px-0 py-2" : "gap-2 px-2 py-1.5"
} ${
isActive
? "text-foreground bg-muted dark:bg-surface-raised"
: "text-muted-foreground dark:text-foreground/75 hover:text-foreground hover:bg-muted/50 dark:hover:bg-surface-2"
}`}
>
- <div
- className={`flex items-center justify-center h-6 w-6 rounded-md shrink-0 transition-colors duration-100 ${
- isActive ? "bg-primary/10 dark:bg-primary/15" : "bg-transparent"
+ <Icon
+ className={`h-4 w-4 shrink-0 transition-colors duration-100 ${
+ isActive
+ ? "text-primary"
+ : "text-muted-foreground/70 dark:text-foreground/55 group-hover:text-foreground/80"
}`}
- >
- <Icon
- className={`h-4 w-4 shrink-0 transition-colors duration-100 ${
- isActive
- ? "text-primary"
- : "text-muted-foreground/70 dark:text-foreground/55 group-hover:text-foreground/80"
- }`}
- />
- </div>
+ />
{!isCompact && (
<>
<span
diff --git a/src/components/ui/TranscriptionItem.tsx b/src/components/ui/TranscriptionItem.tsx
index 2db02dc51..10815832c 100644
--- a/src/components/ui/TranscriptionItem.tsx
+++ b/src/components/ui/TranscriptionItem.tsx
@@ -92,16 +92,14 @@ export default function TranscriptionItem({
return (
<div
className={cn(
- "group rounded-md border border-l-2 px-3 py-2.5 transition-colors duration-150",
+ "group rounded-md border px-3 py-2.5 transition-colors duration-150",
isFailed
? "border-destructive/30 bg-destructive/5 hover:bg-destructive/10"
: isDiscarded
? "border-border/30 bg-muted/20 hover:bg-muted/30 opacity-80"
: "border-border/40 dark:border-border-subtle/60 bg-card/50 dark:bg-surface-2/60 hover:bg-muted/30 dark:hover:bg-surface-2/80",
- // Subtle left accent for translation records; transparent keeps others pixel-aligned.
- item.route_kind === "translation"
- ? "border-l-primary/70 dark:border-l-primary/70"
- : "border-l-transparent dark:border-l-transparent"
+ // Translation rows get a 2px primary accent; pl-[11px] keeps text pixel-aligned with 1px-bordered rows.
+ item.route_kind === "translation" && "border-l-2 border-l-primary/70 pl-[11px]"
)}
onMouseEnter={() => setIsHovered(true)}
onMouseLeave={() => setIsHovered(false)}
diff --git a/src/components/ui/glass.ts b/src/components/ui/glass.ts
new file mode 100644
index 000000000..edda930bf
--- /dev/null
+++ b/src/components/ui/glass.ts
@@ -0,0 +1,5 @@
+// Liquid-glass capsule surface (pairs with the --shadow-glass token in index.css).
+// transform-gpu keeps the surface on its own compositing layer from first paint —
+// without it, Chromium can flash a black first frame when backdrop-blur mounts.
+export const GLASS_SURFACE =
+ "bg-white/55 dark:bg-white/6 backdrop-blur-xl backdrop-saturate-150 shadow-(--shadow-glass) transform-gpu";
diff --git a/src/components/ui/gradientCircle.ts b/src/components/ui/gradientCircle.ts
new file mode 100644
index 000000000..a746842f5
--- /dev/null
+++ b/src/components/ui/gradientCircle.ts
@@ -0,0 +1,5 @@
+// Brand gradient from the Figma mic/send assets (#5B81E4 → #154BD4 → #163992, top-right to bottom-left).
+// transform-gpu keeps each circle on its own compositing layer from first paint —
+// without it, Chromium can flash a black first frame when one mounts over backdrop-blur.
+export const GRADIENT_CIRCLE =
+ "bg-[linear-gradient(221deg,#5B81E4_0%,#154BD4_55%,#163992_100%)] text-white transform-gpu";
diff --git a/src/helpers/ipcHandlers.js b/src/helpers/ipcHandlers.js
index eccfdd78e..4de6743bc 100644
--- a/src/helpers/ipcHandlers.js
+++ b/src/helpers/ipcHandlers.js
@@ -2502,6 +2502,32 @@ class IPCHandlers {
return this.clipboardManager.checkPasteTools();
});
+ // Voice drafts (chat input): persist a recorded buffer so the file-based
+ // transcription pipeline (all providers) can consume it, then delete it.
+ ipcMain.handle("save-temp-audio", async (event, buffer) => {
+ const tempPath = path.join(
+ os.tmpdir(),
+ `ow-voice-draft-${Date.now()}-${crypto.randomBytes(4).toString("hex")}.webm`
+ );
+ fs.writeFileSync(tempPath, Buffer.from(buffer));
+ return { success: true, path: tempPath };
+ });
+
+ ipcMain.handle("delete-temp-audio", async (event, tempPath) => {
+ // Only files this handler family created are deletable.
+ const resolved = path.resolve(tempPath);
+ const validPrefix = path.join(os.tmpdir(), "ow-voice-draft-");
+ if (!resolved.startsWith(validPrefix)) {
+ return { success: false, error: "Invalid temp path" };
+ }
+ try {
+ fs.unlinkSync(resolved);
+ } catch {
+ // Already gone — fine.
+ }
+ return { success: true };
+ });
+
ipcMain.handle("transcribe-local-whisper", async (event, audioBlob, options = {}) => {
debugLogger.log("transcribe-local-whisper called", {
audioBlobType: typeof audioBlob,
diff --git a/src/index.css b/src/index.css
index 2bc2a69f2..99784dc0e 100644
--- a/src/index.css
+++ b/src/index.css
@@ -77,6 +77,11 @@
/* Model picker premium effects (light mode) */
--shadow-metallic-light: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 3px rgba(0, 0, 0, 0.08);
--shadow-card-hover-subtle: 0 2px 8px -2px rgba(0, 0, 0, 0.1);
+
+ /* Liquid-glass edge — bright inner rim + top highlight + soft lift */
+ --shadow-glass:
+ inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.45),
+ 0 2px 10px rgba(15, 23, 42, 0.06);
}
.dark {
@@ -133,6 +138,11 @@
--shadow-selected-glow:
inset 0 0 0 1px oklch(0.65 0.2 260 / 0.2), 0 0 16px -4px oklch(0.65 0.2 260 / 0.2);
--shadow-card-hover-subtle: 0 2px 8px -2px rgba(0, 0, 0, 0.12);
+
+ /* Liquid-glass edge — faint rim on charcoal, deeper lift */
+ --shadow-glass:
+ inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.05),
+ 0 2px 12px rgba(0, 0, 0, 0.35);
}
@layer base {
diff --git a/src/lib/notePermissions.ts b/src/lib/notePermissions.ts
index 030b01713..35f4d29a3 100644
--- a/src/lib/notePermissions.ts
+++ b/src/lib/notePermissions.ts
@@ -59,18 +59,23 @@ export function resolveNotePermission({
cachedPermission,
aclState,
isTeamNote,
+ locallyOwned = false,
}: {
cachedPermission?: NotePermission;
aclState: NoteAclState;
isTeamNote: boolean;
+ locallyOwned?: boolean;
}): NotePermission | null {
if (cachedPermission) return cachedPermission;
// A personal cloud note may belong to this user or may be a view-only grant.
// Fail closed only while an authenticated ACL request is active, rather
// than making the local editor permanently read-only while signed out or
- // offline. Loaded legacy responses and unavailable ACLs retain the old
- // ownership fallback for compatibility and offline editing.
- if (!isTeamNote && aclState === "loading") return null;
+ // offline. When the local row already proves ownership (owner_user_id
+ // matches the signed-in user), resolve immediately instead of holding the
+ // editor read-only for a network round trip. Loaded legacy responses and
+ // unavailable ACLs retain the old ownership fallback for compatibility and
+ // offline editing.
+ if (!isTeamNote && aclState === "loading") return locallyOwned ? "owner" : null;
return isTeamNote ? "editor" : "owner";
}
diff --git a/src/locales/de/translation.json b/src/locales/de/translation.json
index 2b8176713..673970429 100644
--- a/src/locales/de/translation.json
+++ b/src/locales/de/translation.json
@@ -1214,7 +1214,7 @@
"sections": {
"account": {
"description": "Profil & Anmeldung",
- "label": "Konto"
+ "label": "Profil"
},
"plansBilling": {
"description": "Tarife, Nutzung & Abrechnung",
@@ -1552,7 +1552,7 @@
"Notizen per öffentlichem Link teilen",
"Persönlicher API-Zugang",
"MCP-Integration in all deinen Apps",
- "Mobile App (iOS demnächst verfügbar)",
+ "Mobile App",
"E-Mail-Support"
],
"cta": "Jetzt starten",
@@ -1568,9 +1568,8 @@
"includesPrefix": "Alle Pro-Funktionen +",
"badge": "Beliebteste Wahl",
"features": [
- "Team-Bereiche für gemeinsame Notizen",
- "Workspace-Rollen & Mitgliederverwaltung",
"Unbegrenzte Meeting-Aufnahmen",
+ "Workspace-Rollen & Mitgliederverwaltung",
"Agentenmodus",
"Chat über Ihre Daten",
"Prioritäts-Support"
@@ -1619,7 +1618,6 @@
"signOut": "Abmelden",
"signingOut": "Abmeldung läuft..."
},
- "signedIn": "Angemeldet",
"title": "Konto",
"toasts": {
"approachingLimit": {
@@ -2077,7 +2075,7 @@
"usageAnalytics": "Nutzungsanalysen",
"usageAnalyticsDescription": "Helfen Sie uns, OpenWhispr zu verbessern, indem Sie anonyme Leistungsdaten teilen. Wir senden niemals Transkriptionsinhalte – nur Timing- und Fehlerdaten.",
"audioRetention": "Audio-Aufbewahrung",
- "audioRetentionDescription": "Audioaufnahmen lokal für erneute Transkription und Download speichern. Dateien werden nach Ablauf der Aufbewahrungsfrist automatisch gelöscht.",
+ "audioRetentionDescription": "Diktat-Audio lokal für erneute Transkription und Download speichern. Dateien werden nach Ablauf der Aufbewahrungsfrist automatisch gelöscht. Meeting-Audio wird niemals gespeichert.",
"audioRetentionDisabled": "Deaktiviert",
"retentionDays_one": "{{count}} Tag",
"retentionDays_other": "{{count}} Tage",
@@ -2395,7 +2393,6 @@
"description": "Ein Workspace bündelt die Mitglieder und Abrechnung Ihrer Organisation. Darin erstellen Sie Team-Bereiche für gemeinsame Notizen.",
"nameLabel": "Workspace-Name",
"namePlaceholder": "Acme Corp",
- "freePlanNote": "Neue Workspaces starten im Free-Tarif. Team-Bereiche erfordern einen Workspace-Tarif.",
"submit": "Workspace erstellen",
"submitting": "Erstelle…",
"errorTitle": "Workspace konnte nicht erstellt werden"
@@ -2573,8 +2570,8 @@
"actions": "Aktionen"
},
"spaces": {
- "privateSpaces": "Private Bereiche",
- "teamSpaces": "Team-Bereiche",
+ "privateSpaces": "Private Notizen",
+ "teamSpaces": "Teamspaces",
"personal": "Persönlich",
"privateTooltip": "Nur du kannst deinen persönlichen Bereich sehen",
"newSpace": "Neuer Team-Bereich",
@@ -2960,14 +2957,15 @@
"identifying": "Sprecher werden identifiziert",
"notLabeled": "Sprecher nicht beschriftet",
"finalizing": "Sprecher werden finalisiert…",
- "justYou": "nur du",
- "defaultingHint": "standardmäßig 1 weitere Person",
+ "justYou": "Nur du",
+ "assumedHint": "Standard: 2 — bei Bedarf anpassen",
+ "speakersLabel": "Sprecher",
+ "labelToggle": "Sprecher beschriften",
"toggleAria": "Sprechererkennung für diese Aufnahme umschalten",
"incAria": "Erwartete Sprecheranzahl erhöhen",
- "decAria": "Erwartete Sprecheranzahl verringern",
- "othersInCall_one": "{{count}} weitere Person im Gespräch",
- "othersInCall_other": "{{count}} weitere Personen im Gespräch"
- }
+ "decAria": "Erwartete Sprecheranzahl verringern"
+ },
+ "consentNotice": "Hole immer die Zustimmung ein, wenn du andere aufnimmst"
},
"overview": {
"subtitle": {
diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json
index 01169dbc6..ff2bd4948 100644
--- a/src/locales/en/translation.json
+++ b/src/locales/en/translation.json
@@ -1214,7 +1214,7 @@
"sections": {
"account": {
"description": "Profile & sign in",
- "label": "Account"
+ "label": "Profile"
},
"plansBilling": {
"description": "Plans, usage & billing",
@@ -1552,7 +1552,7 @@
"Share notes with public links",
"Personal API access",
"MCP integration in all your apps",
- "Mobile app (iOS Coming Soon)",
+ "Mobile app",
"Email support"
],
"cta": "Get Started",
@@ -1568,9 +1568,8 @@
"includesPrefix": "All Pro features +",
"badge": "Most Popular",
"features": [
- "Team spaces for shared notes",
- "Workspace roles & member management",
"Unlimited meeting recordings",
+ "Workspace roles & member management",
"Agent mode",
"Chat over your data",
"Priority support"
@@ -1619,7 +1618,6 @@
"signOut": "Sign Out",
"signingOut": "Signing out..."
},
- "signedIn": "Signed in",
"title": "Account",
"toasts": {
"approachingLimit": {
@@ -2077,7 +2075,7 @@
"usageAnalytics": "Usage analytics",
"usageAnalyticsDescription": "Help us improve OpenWhispr by sharing anonymous performance metrics. We never send transcription content — only timing and error data.",
"audioRetention": "Audio Retention",
- "audioRetentionDescription": "Store audio recordings locally for re-transcription and download. Files are automatically deleted after the retention period.",
+ "audioRetentionDescription": "Store dictation audio locally for re-transcription and download. Files are automatically deleted after the retention period. Meeting audio is never stored.",
"audioRetentionDisabled": "Disabled",
"retentionDays_one": "{{count}} day",
"retentionDays_other": "{{count}} days",
@@ -2395,7 +2393,6 @@
"description": "A workspace brings your organization's members and billing together. Create team spaces inside it for shared notes.",
"nameLabel": "Workspace name",
"namePlaceholder": "Acme Corp",
- "freePlanNote": "New workspaces start on the Free plan. Team spaces require a workspace plan.",
"submit": "Create workspace",
"submitting": "Creating…",
"errorTitle": "Couldn't create workspace"
@@ -2573,8 +2570,8 @@
"actions": "Actions"
},
"spaces": {
- "privateSpaces": "Private spaces",
- "teamSpaces": "Team spaces",
+ "privateSpaces": "Private notes",
+ "teamSpaces": "Teamspaces",
"personal": "Personal",
"privateTooltip": "Only you can see your Personal space",
"newSpace": "New team space",
@@ -2960,14 +2957,15 @@
"identifying": "Identifying speakers",
"notLabeled": "Speakers not labeled",
"finalizing": "Finalizing speakers…",
- "justYou": "just you",
- "defaultingHint": "defaulting to 1 other — change if more",
+ "justYou": "Just you",
+ "assumedHint": "assuming 2 — adjust if more",
+ "speakersLabel": "Speakers",
+ "labelToggle": "Label speakers",
"toggleAria": "Toggle speaker identification for this recording",
"incAria": "Increase expected speaker count",
- "decAria": "Decrease expected speaker count",
- "othersInCall_one": "{{count}} other in call",
- "othersInCall_other": "{{count}} others in call"
- }
+ "decAria": "Decrease expected speaker count"
+ },
+ "consentNotice": "Always get consent when recording others"
},
"overview": {
"subtitle": {
diff --git a/src/locales/es/translation.json b/src/locales/es/translation.json
index 4d943a96c..40573498e 100644
--- a/src/locales/es/translation.json
+++ b/src/locales/es/translation.json
@@ -1174,7 +1174,7 @@
"sections": {
"account": {
"description": "Perfil e inicio de sesión",
- "label": "Cuenta"
+ "label": "Perfil"
},
"plansBilling": {
"description": "Planes, uso y facturación",
@@ -1317,7 +1317,7 @@
"Comparte notas con enlaces públicos",
"Acceso personal a la API",
"Integración MCP en todas tus apps",
- "Aplicación móvil (iOS próximamente)",
+ "Aplicación móvil",
"Soporte por correo electrónico"
],
"cta": "Comenzar",
@@ -1333,9 +1333,8 @@
"includesPrefix": "Todas las funciones de Pro +",
"badge": "Más popular",
"features": [
- "Espacios de equipo para notas compartidas",
- "Roles y gestión de miembros del espacio de trabajo",
"Grabaciones de reuniones ilimitadas",
+ "Roles y gestión de miembros del espacio de trabajo",
"Modo agente",
"Chatea sobre tus datos",
"Soporte prioritario"
@@ -1384,7 +1383,6 @@
"signOut": "Cerrar sesión",
"signingOut": "Cerrando sesión..."
},
- "signedIn": "Sesión iniciada",
"signedOutPlans": {
"button": "Crear cuenta gratuita"
},
@@ -1851,7 +1849,7 @@
"lastSynced": "Última sincronización {{time}}",
"minutesAgo": "hace {{count}}m",
"audioRetention": "Retención de audio",
- "audioRetentionDescription": "Almacena grabaciones de audio localmente para volver a transcribir y descargar. Los archivos se eliminan automáticamente tras el periodo de retención.",
+ "audioRetentionDescription": "Almacena el audio de dictado localmente para volver a transcribir y descargar. Los archivos se eliminan automáticamente tras el periodo de retención. El audio de las reuniones nunca se almacena.",
"saveDiscarded": "Guardar dictados descartados",
"saveDiscardedDescription": "Cuando cancelas un dictado con Escape, conserva su audio en el historial para poder recuperarlo. Requiere tener activadas la retención de datos y de audio.",
"audioRetentionDisabled": "Desactivado",
@@ -2413,8 +2411,8 @@
"actions": "Acciones"
},
"spaces": {
- "privateSpaces": "Espacios privados",
- "teamSpaces": "Espacios de equipo",
+ "privateSpaces": "Notas privadas",
+ "teamSpaces": "Teamspaces",
"personal": "Personal",
"privateTooltip": "Solo tú puedes ver tu espacio personal",
"newSpace": "Nuevo espacio de equipo",
@@ -2800,14 +2798,15 @@
"identifying": "Identificando participantes",
"notLabeled": "Participantes sin etiquetar",
"finalizing": "Finalizando participantes…",
- "justYou": "solo tú",
- "defaultingHint": "por defecto 1 otra persona",
+ "justYou": "Solo tú",
+ "assumedHint": "se asumen 2 — ajústalo si hay más",
+ "speakersLabel": "Participantes",
+ "labelToggle": "Etiquetar participantes",
"toggleAria": "Alternar identificación de participantes para esta grabación",
"incAria": "Aumentar número de participantes esperados",
- "decAria": "Disminuir número de participantes esperados",
- "othersInCall_one": "{{count}} otra persona en la llamada",
- "othersInCall_other": "{{count}} otras personas en la llamada"
- }
+ "decAria": "Disminuir número de participantes esperados"
+ },
+ "consentNotice": "Pide siempre consentimiento al grabar a otras personas"
},
"overview": {
"subtitle": {
@@ -3422,7 +3421,6 @@
"description": "Un espacio de trabajo reúne a los miembros y la facturación de tu organización. Crea dentro espacios de equipo para notas compartidas.",
"nameLabel": "Nombre del espacio de trabajo",
"namePlaceholder": "Acme Corp",
- "freePlanNote": "Los espacios de trabajo nuevos empiezan en el plan Free. Los espacios de equipo requieren un plan del espacio de trabajo.",
"submit": "Crear espacio de trabajo",
"submitting": "Creando…",
"errorTitle": "No se pudo crear el espacio de trabajo"
diff --git a/src/locales/fr/translation.json b/src/locales/fr/translation.json
index 0b73a8dc8..0f059945f 100644
--- a/src/locales/fr/translation.json
+++ b/src/locales/fr/translation.json
@@ -1214,7 +1214,7 @@
"sections": {
"account": {
"description": "Profil & connexion",
- "label": "Compte"
+ "label": "Profil"
},
"plansBilling": {
"description": "Forfaits, utilisation & facturation",
@@ -1552,7 +1552,7 @@
"Partagez des notes via des liens publics",
"Accès personnel à l'API",
"Intégration MCP dans toutes vos apps",
- "Application mobile (iOS bientôt disponible)",
+ "Application mobile",
"Support par e-mail"
],
"cta": "Commencer",
@@ -1568,9 +1568,8 @@
"includesPrefix": "Toutes les fonctionnalités Pro +",
"badge": "Le plus populaire",
"features": [
- "Espaces d'équipe pour des notes partagées",
- "Rôles et gestion des membres de l'espace de travail",
"Enregistrements de réunions illimités",
+ "Rôles et gestion des membres de l'espace de travail",
"Mode agent",
"Discutez avec vos données",
"Support prioritaire"
@@ -1619,7 +1618,6 @@
"signOut": "Se déconnecter",
"signingOut": "Déconnexion..."
},
- "signedIn": "Connecté",
"title": "Compte",
"toasts": {
"approachingLimit": {
@@ -2077,7 +2075,7 @@
"usageAnalytics": "Analyse d'utilisation",
"usageAnalyticsDescription": "Aidez-nous à améliorer OpenWhispr en partageant des métriques de performance anonymes. Nous n'envoyons jamais le contenu de vos transcriptions — uniquement des données de performance et d'erreurs.",
"audioRetention": "Conservation de l'audio",
- "audioRetentionDescription": "Stocke les enregistrements audio localement pour la retranscription et le téléchargement. Les fichiers sont automatiquement supprimés après la période de conservation.",
+ "audioRetentionDescription": "Stocke l'audio de dictée localement pour la retranscription et le téléchargement. Les fichiers sont automatiquement supprimés après la période de conservation. L'audio des réunions n'est jamais stocké.",
"audioRetentionDisabled": "Désactivé",
"retentionDays_one": "{{count}} jour",
"retentionDays_other": "{{count}} jours",
@@ -2395,7 +2393,6 @@
"description": "Un espace de travail réunit les membres et la facturation de votre organisation. Créez-y des espaces d'équipe pour les notes partagées.",
"nameLabel": "Nom de l'espace de travail",
"namePlaceholder": "Acme Corp",
- "freePlanNote": "Les nouveaux espaces de travail démarrent sur le forfait Free. Les espaces d'équipe nécessitent un forfait d'espace de travail.",
"submit": "Créer l'espace",
"submitting": "Création…",
"errorTitle": "Impossible de créer l'espace"
@@ -2573,8 +2570,8 @@
"actions": "Actions"
},
"spaces": {
- "privateSpaces": "Espaces privés",
- "teamSpaces": "Espaces d'équipe",
+ "privateSpaces": "Notes privées",
+ "teamSpaces": "Teamspaces",
"personal": "Personnel",
"privateTooltip": "Vous seul pouvez voir votre espace personnel",
"newSpace": "Nouvel espace d'équipe",
@@ -2960,14 +2957,15 @@
"identifying": "Identification des intervenants",
"notLabeled": "Intervenants non étiquetés",
"finalizing": "Finalisation des intervenants…",
- "justYou": "juste vous",
- "defaultingHint": "par défaut 1 autre",
+ "justYou": "Juste vous",
+ "assumedHint": "2 par défaut — ajustez si plus",
+ "speakersLabel": "Intervenants",
+ "labelToggle": "Étiqueter les intervenants",
"toggleAria": "Activer l'identification des intervenants pour cet enregistrement",
"incAria": "Augmenter le nombre d'intervenants attendus",
- "decAria": "Diminuer le nombre d'intervenants attendus",
- "othersInCall_one": "{{count}} autre dans l'appel",
- "othersInCall_other": "{{count}} autres dans l'appel"
- }
+ "decAria": "Diminuer le nombre d'intervenants attendus"
+ },
+ "consentNotice": "Obtenez toujours le consentement avant d'enregistrer d'autres personnes"
},
"overview": {
"subtitle": {
diff --git a/src/locales/it/translation.json b/src/locales/it/translation.json
index 5581e3807..ee4fe07e6 100644
--- a/src/locales/it/translation.json
+++ b/src/locales/it/translation.json
@@ -1126,7 +1126,7 @@
"sections": {
"account": {
"description": "Profilo e accesso",
- "label": "Account"
+ "label": "Profilo"
},
"plansBilling": {
"description": "Piani, utilizzo e fatturazione",
@@ -1241,7 +1241,6 @@
"signOut": "Disconnetti",
"signingOut": "Disconnessione..."
},
- "signedIn": "Accesso effettuato",
"title": "Account",
"toasts": {
"approachingLimit": {
@@ -1289,7 +1288,7 @@
"Condividi note con link pubblici",
"Accesso personale all'API",
"Integrazione MCP in tutte le tue app",
- "App mobile (iOS in arrivo)",
+ "App mobile",
"Supporto via e-mail"
],
"cta": "Inizia",
@@ -1305,9 +1304,8 @@
"includesPrefix": "Tutte le funzionalità Pro +",
"badge": "Più popolare",
"features": [
- "Spazi del team per note condivise",
- "Ruoli e gestione dei membri dell'area di lavoro",
"Registrazioni riunioni illimitate",
+ "Ruoli e gestione dei membri dell'area di lavoro",
"Modalità agente",
"Chatta con i tuoi dati",
"Supporto prioritario"
@@ -1803,7 +1801,7 @@
"lastSynced": "Ultima sincronizzazione {{time}}",
"minutesAgo": "{{count}}m fa",
"audioRetention": "Conservazione audio",
- "audioRetentionDescription": "Salva le registrazioni audio localmente per la ritrascrizione e il download. I file vengono eliminati automaticamente al termine del periodo di conservazione.",
+ "audioRetentionDescription": "Salva l'audio di dettatura localmente per la ritrascrizione e il download. I file vengono eliminati automaticamente al termine del periodo di conservazione. L'audio delle riunioni non viene mai salvato.",
"audioRetentionDisabled": "Disattivato",
"retentionDays_one": "{{count}} giorno",
"retentionDays_other": "{{count}} giorni",
@@ -2365,8 +2363,8 @@
"actions": "Azioni"
},
"spaces": {
- "privateSpaces": "Spazi privati",
- "teamSpaces": "Spazi del team",
+ "privateSpaces": "Note private",
+ "teamSpaces": "Teamspaces",
"personal": "Personale",
"privateTooltip": "Solo tu puoi vedere il tuo spazio personale",
"newSpace": "Nuovo spazio del team",
@@ -2752,14 +2750,15 @@
"identifying": "Identificazione dei partecipanti",
"notLabeled": "Partecipanti non etichettati",
"finalizing": "Finalizzazione dei partecipanti…",
- "justYou": "solo tu",
- "defaultingHint": "predefinito 1 altra persona",
+ "justYou": "Solo tu",
+ "assumedHint": "si presumono 2 — modifica se sono di più",
+ "speakersLabel": "Partecipanti",
+ "labelToggle": "Etichetta i partecipanti",
"toggleAria": "Attiva/disattiva l'identificazione dei partecipanti per questa registrazione",
"incAria": "Aumenta il numero di partecipanti previsti",
- "decAria": "Diminuisci il numero di partecipanti previsti",
- "othersInCall_one": "{{count}} altra persona in chiamata",
- "othersInCall_other": "{{count}} altre persone in chiamata"
- }
+ "decAria": "Diminuisci il numero di partecipanti previsti"
+ },
+ "consentNotice": "Ottieni sempre il consenso quando registri altre persone"
},
"overview": {
"subtitle": {
@@ -3422,7 +3421,6 @@
"description": "Un'area di lavoro riunisce membri e fatturazione della tua organizzazione. Crea al suo interno spazi del team per le note condivise.",
"nameLabel": "Nome dell'area di lavoro",
"namePlaceholder": "Acme Corp",
- "freePlanNote": "Le nuove aree di lavoro partono dal piano Free. Gli spazi del team richiedono un piano dell'area di lavoro.",
"submit": "Crea area di lavoro",
"submitting": "Creazione…",
"errorTitle": "Impossibile creare l'area di lavoro"
diff --git a/src/locales/ja/translation.json b/src/locales/ja/translation.json
index c74cd288e..e74a47329 100644
--- a/src/locales/ja/translation.json
+++ b/src/locales/ja/translation.json
@@ -1126,7 +1126,7 @@
"sections": {
"account": {
"description": "プロフィールとサインイン",
- "label": "アカウント"
+ "label": "プロフィール"
},
"plansBilling": {
"description": "プラン、使用状況、請求",
@@ -1269,7 +1269,7 @@
"公開リンクでノートを共有",
"個人APIアクセス",
"すべてのアプリでMCP統合",
- "モバイルアプリ(iOS 近日公開)",
+ "モバイルアプリ",
"メールサポート"
],
"cta": "始める",
@@ -1285,9 +1285,8 @@
"includesPrefix": "Pro の全機能 +",
"badge": "一番人気",
"features": [
- "共有ノートのためのチームスペース",
- "ワークスペースのロールとメンバー管理",
"無制限の会議録音",
+ "ワークスペースのロールとメンバー管理",
"エージェントモード",
"データとチャット",
"優先サポート"
@@ -1336,7 +1335,6 @@
"signOut": "サインアウト",
"signingOut": "サインアウト中..."
},
- "signedIn": "サインイン済み",
"signedOutPlans": {
"button": "無料アカウントを作成"
},
@@ -2293,8 +2291,8 @@
"actions": "アクション"
},
"spaces": {
- "privateSpaces": "プライベートスペース",
- "teamSpaces": "チームスペース",
+ "privateSpaces": "プライベートノート",
+ "teamSpaces": "Teamspaces",
"personal": "個人",
"privateTooltip": "パーソナルスペースはあなただけが見られます",
"newSpace": "新しいチームスペース",
@@ -2675,13 +2673,14 @@
"notLabeled": "話者ラベルなし",
"finalizing": "話者を確定中…",
"justYou": "あなたのみ",
- "defaultingHint": "他の参加者を1人と想定 — 違う場合は変更してください",
+ "assumedHint": "2人と想定 — 違う場合は変更してください",
+ "speakersLabel": "話者数",
+ "labelToggle": "話者をラベル付け",
"toggleAria": "この録音の話者識別を切り替える",
"incAria": "想定する話者数を増やす",
- "decAria": "想定する話者数を減らす",
- "othersInCall_one": "他{{count}}人が通話中",
- "othersInCall_other": "他{{count}}人が通話中"
+ "decAria": "想定する話者数を減らす"
},
+ "consentNotice": "他の人を録音するときは必ず同意を得てください",
"createNewPrefix": "作成",
"emailPlaceholder": "[email protected]",
"nameOrEmailPlaceholder": "名前またはメールを入力",
@@ -3422,7 +3421,6 @@
"description": "ワークスペースには組織のメンバーと請求がまとまります。その中に共有ノート用のチームスペースを作成できます。",
"nameLabel": "ワークスペース名",
"namePlaceholder": "Acme Corp",
- "freePlanNote": "新しいワークスペースは Free プランで始まります。チームスペースにはワークスペースのプランが必要です。",
"submit": "ワークスペースを作成",
"submitting": "作成中…",
"errorTitle": "ワークスペースを作成できませんでした"
diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.json
index faeffee0b..57c883ac3 100644
--- a/src/locales/pt/translation.json
+++ b/src/locales/pt/translation.json
@@ -1105,7 +1105,7 @@
"sections": {
"account": {
"description": "Perfil e login",
- "label": "Conta"
+ "label": "Perfil"
},
"plansBilling": {
"description": "Planos, uso e cobrança",
@@ -1220,7 +1220,6 @@
"signOut": "Sair",
"signingOut": "Saindo..."
},
- "signedIn": "Conectado",
"title": "Conta",
"toasts": {
"approachingLimit": {
@@ -1268,7 +1267,7 @@
"Compartilhe notas com links públicos",
"Acesso pessoal à API",
"Integração MCP em todos os seus apps",
- "Aplicativo móvel (iOS em breve)",
+ "Aplicativo móvel",
"Suporte por e-mail"
],
"cta": "Começar",
@@ -1284,9 +1283,8 @@
"includesPrefix": "Todos os recursos do Pro +",
"badge": "Mais popular",
"features": [
- "Espaços de equipe para notas compartilhadas",
- "Funções e gestão de membros do espaço de trabalho",
"Gravações de reuniões ilimitadas",
+ "Funções e gestão de membros do espaço de trabalho",
"Modo agente",
"Converse com seus dados",
"Suporte prioritário"
@@ -1782,7 +1780,7 @@
"lastSynced": "Última sincronização {{time}}",
"minutesAgo": "há {{count}}min",
"audioRetention": "Retenção de áudio",
- "audioRetentionDescription": "Armazena gravações de áudio localmente para retranscrição e download. Os arquivos são excluídos automaticamente após o período de retenção.",
+ "audioRetentionDescription": "Armazena o áudio de ditado localmente para retranscrição e download. Os arquivos são excluídos automaticamente após o período de retenção. O áudio de reuniões nunca é armazenado.",
"audioRetentionDisabled": "Desativado",
"retentionDays_one": "{{count}} dia",
"retentionDays_other": "{{count}} dias",
@@ -2365,8 +2363,8 @@
"actions": "Ações"
},
"spaces": {
- "privateSpaces": "Espaços privados",
- "teamSpaces": "Espaços de equipe",
+ "privateSpaces": "Notas privadas",
+ "teamSpaces": "Teamspaces",
"personal": "Pessoal",
"privateTooltip": "Somente você pode ver seu espaço pessoal",
"newSpace": "Novo espaço de equipe",
@@ -2752,14 +2750,15 @@
"identifying": "Identificando participantes",
"notLabeled": "Participantes sem rótulo",
"finalizing": "Finalizando participantes…",
- "justYou": "só você",
- "defaultingHint": "assumindo 1 outra pessoa",
+ "justYou": "Só você",
+ "assumedHint": "assumindo 2 — ajuste se houver mais",
+ "speakersLabel": "Participantes",
+ "labelToggle": "Rotular participantes",
"toggleAria": "Alternar identificação de participantes para esta gravação",
"incAria": "Aumentar número esperado de participantes",
- "decAria": "Diminuir número esperado de participantes",
- "othersInCall_one": "{{count}} outra pessoa na chamada",
- "othersInCall_other": "{{count}} outras pessoas na chamada"
- }
+ "decAria": "Diminuir número esperado de participantes"
+ },
+ "consentNotice": "Sempre obtenha consentimento ao gravar outras pessoas"
},
"overview": {
"subtitle": {
@@ -3422,7 +3421,6 @@
"description": "Um espaço de trabalho reúne os membros e a cobrança da sua organização. Crie espaços de equipe dentro dele para notas compartilhadas.",
"nameLabel": "Nome do espaço de trabalho",
"namePlaceholder": "Acme Corp",
- "freePlanNote": "Novos espaços de trabalho começam no plano Free. Os espaços de equipe exigem um plano do espaço de trabalho.",
"submit": "Criar espaço de trabalho",
"submitting": "Criando…",
"errorTitle": "Não foi possível criar o espaço de trabalho"
diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.json
index eed035b71..7e0627d9f 100644
--- a/src/locales/ru/translation.json
+++ b/src/locales/ru/translation.json
@@ -1126,7 +1126,7 @@
"sections": {
"account": {
"description": "Профиль и вход",
- "label": "Аккаунт"
+ "label": "Профиль"
},
"plansBilling": {
"description": "Тарифы, использование и оплата",
@@ -1245,7 +1245,6 @@
"signOut": "Выйти",
"signingOut": "Выход..."
},
- "signedIn": "Вы вошли",
"title": "Аккаунт",
"toasts": {
"approachingLimit": {
@@ -1293,7 +1292,7 @@
"Делитесь заметками по публичным ссылкам",
"Персональный доступ к API",
"Интеграция MCP во всех ваших приложениях",
- "Мобильное приложение (iOS скоро)",
+ "Мобильное приложение",
"Поддержка по электронной почте"
],
"cta": "Начать",
@@ -1309,9 +1308,8 @@
"includesPrefix": "Все функции Pro +",
"badge": "Самый популярный",
"features": [
- "Командные пространства для общих заметок",
- "Роли и управление участниками рабочего пространства",
"Безлимитные записи встреч",
+ "Роли и управление участниками рабочего пространства",
"Режим агента",
"Чат с вашими данными",
"Приоритетная поддержка"
@@ -1807,7 +1805,7 @@
"lastSynced": "Последняя синхронизация {{time}}",
"minutesAgo": "{{count}}мин назад",
"audioRetention": "Хранение аудио",
- "audioRetentionDescription": "Сохранять аудиозаписи локально для повторной расшифровки и скачивания. Файлы автоматически удаляются по истечении срока хранения.",
+ "audioRetentionDescription": "Сохранять аудио диктовки локально для повторной расшифровки и скачивания. Файлы автоматически удаляются по истечении срока хранения. Аудио встреч никогда не сохраняется.",
"audioRetentionDisabled": "Отключено",
"retentionDays_one": "{{count}} день",
"retentionDays_few": "{{count}} дня",
@@ -2379,8 +2377,8 @@
"actions": "Действия"
},
"spaces": {
- "privateSpaces": "Личные пространства",
- "teamSpaces": "Командные пространства",
+ "privateSpaces": "Личные заметки",
+ "teamSpaces": "Teamspaces",
"personal": "Личное",
"privateTooltip": "Только вы видите своё личное пространство",
"newSpace": "Новое командное пространство",
@@ -2772,16 +2770,15 @@
"identifying": "Определение участников",
"notLabeled": "Участники не подписаны",
"finalizing": "Завершение определения участников…",
- "justYou": "только вы",
- "defaultingHint": "по умолчанию 1 собеседник",
+ "justYou": "Только вы",
+ "assumedHint": "по умолчанию 2 — измените, если больше",
+ "speakersLabel": "Участники",
+ "labelToggle": "Подписывать участников",
"toggleAria": "Переключить распознавание участников для этой записи",
"incAria": "Увеличить ожидаемое число участников",
- "decAria": "Уменьшить ожидаемое число участников",
- "othersInCall_one": "{{count}} собеседник в разговоре",
- "othersInCall_few": "{{count}} собеседника в разговоре",
- "othersInCall_many": "{{count}} собеседников в разговоре",
- "othersInCall_other": "{{count}} собеседника в разговоре"
- }
+ "decAria": "Уменьшить ожидаемое число участников"
+ },
+ "consentNotice": "Всегда получайте согласие при записи других людей"
},
"overview": {
"subtitle": {
@@ -3450,7 +3447,6 @@
"description": "Рабочее пространство объединяет участников и оплату вашей организации. Создавайте в нём командные пространства для общих заметок.",
"nameLabel": "Название рабочего пространства",
"namePlaceholder": "Acme Corp",
- "freePlanNote": "Новые рабочие пространства начинают с тарифа Free. Командные пространства требуют тарифа рабочего пространства.",
"submit": "Создать рабочее пространство",
"submitting": "Создание…",
"errorTitle": "Не удалось создать рабочее пространство"
diff --git a/src/locales/zh-CN/translation.json b/src/locales/zh-CN/translation.json
index 6e6ebd13b..a5821b4e5 100644
--- a/src/locales/zh-CN/translation.json
+++ b/src/locales/zh-CN/translation.json
@@ -1126,7 +1126,7 @@
"sections": {
"account": {
"description": "个人资料与登录",
- "label": "账户"
+ "label": "个人资料"
},
"plansBilling": {
"description": "套餐、用量与账单",
@@ -1241,7 +1241,6 @@
"signOut": "退出登录",
"signingOut": "正在退出..."
},
- "signedIn": "已登录",
"title": "账户",
"toasts": {
"approachingLimit": {
@@ -1289,7 +1288,7 @@
"通过公开链接分享笔记",
"个人 API 访问",
"在所有应用中集成 MCP",
- "移动应用(iOS 即将推出)",
+ "移动应用",
"邮件支持"
],
"cta": "开始使用",
@@ -1305,9 +1304,8 @@
"includesPrefix": "所有 Pro 功能 +",
"badge": "最受欢迎",
"features": [
- "用于共享笔记的团队空间",
- "工作区角色与成员管理",
"无限会议录制",
+ "工作区角色与成员管理",
"代理模式",
"与您的数据对话",
"优先支持"
@@ -1803,7 +1801,7 @@
"lastSynced": "上次同步 {{time}}",
"minutesAgo": "{{count}}分钟前",
"audioRetention": "音频保留",
- "audioRetentionDescription": "在本地存储音频录制文件以便重新转录和下载。文件会在保留期过后自动删除。",
+ "audioRetentionDescription": "在本地存储听写音频以便重新转录和下载。文件会在保留期过后自动删除。会议音频绝不会被存储。",
"audioRetentionDisabled": "已禁用",
"retentionDays_one": "{{count}} 天",
"retentionDays_other": "{{count}} 天",
@@ -2365,8 +2363,8 @@
"actions": "操作"
},
"spaces": {
- "privateSpaces": "私人空间",
- "teamSpaces": "团队空间",
+ "privateSpaces": "私人笔记",
+ "teamSpaces": "Teamspaces",
"personal": "个人",
"privateTooltip": "只有你可以看到你的个人空间",
"newSpace": "新建团队空间",
@@ -2753,13 +2751,14 @@
"notLabeled": "发言者未标记",
"finalizing": "正在完成发言者识别…",
"justYou": "只有你",
- "defaultingHint": "默认 1 位其他人",
+ "assumedHint": "默认 2 人——如有更多请调整",
+ "speakersLabel": "发言人数",
+ "labelToggle": "标记发言者",
"toggleAria": "切换本次录音的发言者识别",
"incAria": "增加预计发言人数",
- "decAria": "减少预计发言人数",
- "othersInCall_one": "通话中还有 {{count}} 人",
- "othersInCall_other": "通话中还有 {{count}} 人"
- }
+ "decAria": "减少预计发言人数"
+ },
+ "consentNotice": "录制他人时请务必征得同意"
},
"overview": {
"subtitle": {
@@ -3422,7 +3421,6 @@
"description": "工作区集中管理组织的成员和账单。你可以在其中创建团队空间来共享笔记。",
"nameLabel": "工作区名称",
"namePlaceholder": "Acme Corp",
- "freePlanNote": "新工作区默认使用 Free 方案。团队空间需要工作区方案。",
"submit": "创建工作区",
"submitting": "创建中…",
"errorTitle": "无法创建工作区"
diff --git a/src/locales/zh-TW/translation.json b/src/locales/zh-TW/translation.json
index 2300878e3..71a4acae5 100644
--- a/src/locales/zh-TW/translation.json
+++ b/src/locales/zh-TW/translation.json
@@ -1126,7 +1126,7 @@
"sections": {
"account": {
"description": "個人資料與登入",
- "label": "帳號"
+ "label": "個人資料"
},
"plansBilling": {
"description": "方案、用量與帳單",
@@ -1241,7 +1241,6 @@
"signOut": "登出",
"signingOut": "登出中..."
},
- "signedIn": "已登入",
"title": "帳號",
"toasts": {
"approachingLimit": {
@@ -1289,7 +1288,7 @@
"透過公開連結分享筆記",
"個人 API 存取",
"在所有應用程式中整合 MCP",
- "行動應用程式(iOS 即將推出)",
+ "行動應用程式",
"電子郵件支援"
],
"cta": "開始使用",
@@ -1305,9 +1304,8 @@
"includesPrefix": "所有 Pro 功能 +",
"badge": "最熱門",
"features": [
- "用於共享筆記的團隊空間",
- "工作區角色與成員管理",
"無限會議錄製",
+ "工作區角色與成員管理",
"代理模式",
"與您的資料對話",
"優先支援"
@@ -1803,7 +1801,7 @@
"lastSynced": "上次同步 {{time}}",
"minutesAgo": "{{count}}分鐘前",
"audioRetention": "音訊保留",
- "audioRetentionDescription": "將音訊錄製檔案儲存在本機以便重新轉錄和下載。檔案會在保留期限過後自動刪除。",
+ "audioRetentionDescription": "將語音輸入音訊儲存在本機以便重新轉錄和下載。檔案會在保留期限過後自動刪除。會議音訊絕不會被儲存。",
"audioRetentionDisabled": "已停用",
"retentionDays_one": "{{count}} 天",
"retentionDays_other": "{{count}} 天",
@@ -2365,8 +2363,8 @@
"actions": "動作"
},
"spaces": {
- "privateSpaces": "私人空間",
- "teamSpaces": "團隊空間",
+ "privateSpaces": "私人筆記",
+ "teamSpaces": "Teamspaces",
"personal": "個人",
"privateTooltip": "只有你可以看到你的個人空間",
"newSpace": "新增團隊空間",
@@ -2753,13 +2751,14 @@
"notLabeled": "發言者未標記",
"finalizing": "正在完成發言者辨識…",
"justYou": "只有你",
- "defaultingHint": "預設 1 位其他人",
+ "assumedHint": "預設 2 人——如有更多請調整",
+ "speakersLabel": "發言人數",
+ "labelToggle": "標記發言者",
"toggleAria": "切換此錄音的發言者辨識",
"incAria": "增加預期發言人數",
- "decAria": "減少預期發言人數",
- "othersInCall_one": "通話中還有 {{count}} 人",
- "othersInCall_other": "通話中還有 {{count}} 人"
- }
+ "decAria": "減少預期發言人數"
+ },
+ "consentNotice": "錄製他人時請務必徵得同意"
},
"overview": {
"subtitle": {
@@ -3422,7 +3421,6 @@
"description": "工作區集中管理組織的成員和帳單。你可以在其中建立團隊空間來分享筆記。",
"nameLabel": "工作區名稱",
"namePlaceholder": "Acme Corp",
- "freePlanNote": "新工作區預設使用 Free 方案。團隊空間需要工作區方案。",
"submit": "建立工作區",
"submitting": "建立中…",
"errorTitle": "無法建立工作區"
diff --git a/src/services/fileTranscription.ts b/src/services/fileTranscription.ts
index 8835684be..9e2024765 100644
--- a/src/services/fileTranscription.ts
+++ b/src/services/fileTranscription.ts
@@ -42,6 +42,34 @@ export interface FileTranscriptionConfig {
remoteTranscriptionModel?: string;
}
+export interface TranscriptionApiKeys {
+ openaiApiKey: string;
+ groqApiKey: string;
+ xaiApiKey: string;
+ mistralApiKey: string;
+ tinfoilApiKey: string;
+ customTranscriptionApiKey?: string;
+}
+
+export function getTranscriptionApiKey(provider: string, keys: TranscriptionApiKeys): string {
+ switch (provider) {
+ case "openai":
+ return keys.openaiApiKey;
+ case "groq":
+ return keys.groqApiKey;
+ case "xai":
+ return keys.xaiApiKey;
+ case "mistral":
+ return keys.mistralApiKey;
+ case "tinfoil":
+ return keys.tinfoilApiKey;
+ case "custom":
+ return keys.customTranscriptionApiKey || "";
+ default:
+ return "";
+ }
+}
+
// Single provider dispatch shared by the single-file flow and the batch queue,
// so BYOK providers receive identical options in both.
export async function transcribeFile(
diff --git a/src/types/electron.ts b/src/types/electron.ts
index 8f787507f..e94699d18 100644
--- a/src/types/electron.ts
+++ b/src/types/electron.ts
@@ -1200,6 +1200,8 @@ declare global {
onActionDeleted?: (callback: (payload: { id: number }) => void) => () => void;
// Audio file operations
+ saveTempAudio: (buffer: ArrayBuffer) => Promise<{ success: boolean; path: string }>;
+ deleteTempAudio: (tempPath: string) => Promise<{ success: boolean; error?: string }>;
selectAudioFile: (options?: { multiple?: boolean }) => Promise<{
canceled: boolean;
filePath?: string;
diff --git a/src/utils/audioLevel.ts b/src/utils/audioLevel.ts
new file mode 100644
index 000000000..3a9057394
--- /dev/null
+++ b/src/utils/audioLevel.ts
@@ -0,0 +1,16 @@
+/** RMS of an analyser's current time-domain window, reusing `buf` across reads. */
+export function analyserRms(
+ analyser: AnalyserNode,
+ buf: { current: Float32Array<ArrayBuffer> | null }
+): number {
+ if (!buf.current || buf.current.length !== analyser.fftSize) {
+ buf.current = new Float32Array(analyser.fftSize);
+ }
+ analyser.getFloatTimeDomainData(buf.current);
+ let sumSquares = 0;
+ for (let i = 0; i < buf.current.length; i++) {
+ const v = buf.current[i];
+ sumSquares += v * v;
+ }
+ return Math.sqrt(sumSquares / buf.current.length);
+}
diff --git a/test/lib/notePermissions.test.js b/test/lib/notePermissions.test.js
index a8972efc3..d07453634 100644
--- a/test/lib/notePermissions.test.js
+++ b/test/lib/notePermissions.test.js
@@ -54,6 +54,30 @@ test("unknown ACLs keep the owner fallback for personal notes", () => {
assert.equal(canOrganizeNote(fallback, sharedPersonal), true);
});
+test("loading ACLs fail closed unless the local row proves ownership", () => {
+ // A personal cloud note mid-ACL-fetch stays read-only by default…
+ assert.equal(
+ resolveNotePermission({
+ cachedPermission: undefined,
+ aclState: "loading",
+ isTeamNote: false,
+ }),
+ null
+ );
+ // …but when owner_user_id already matches the signed-in user, the editor
+ // (mic, generate notes, content editing) unlocks without waiting on the
+ // network round trip.
+ assert.equal(
+ resolveNotePermission({
+ cachedPermission: undefined,
+ aclState: "loading",
+ isTeamNote: false,
+ locallyOwned: true,
+ }),
+ "owner"
+ );
+});
+
test("loaded ACLs drive the veto end to end", () => {
const editor = resolveNotePermission({
cachedPermission: "editor",