Skip to content

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

fix: meeting recording UX — bottom widget shows recording state, remove top banner

Gabriel Stein3f193dc7b16f
diff --git a/src/components/ControlPanel.tsx b/src/components/ControlPanel.tsx
index 0bd89837a..994fda34d 100644
--- a/src/components/ControlPanel.tsx
+++ b/src/components/ControlPanel.tsx
@@ -434,12 +434,12 @@ export default function ControlPanel() {
<button
onClick={() => setIsMeetingMode(false)}
className={cn(
- "flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors",
- platform === "darwin" ? "pl-20" : "pl-3"
+ "flex items-center gap-1 text-xs font-medium text-muted-foreground/70 hover:text-foreground transition-colors",
+ platform === "darwin" ? "ml-19" : "ml-3"
)}
style={{ WebkitAppRegion: "no-drag" } as React.CSSProperties}
>
- <ArrowLeft size={14} />
+ <ArrowLeft size={13} strokeWidth={2} />
{t("notes.meeting.back")}
</button>
)}
diff --git a/src/components/notes/NoteEditor.tsx b/src/components/notes/NoteEditor.tsx
index 7001c4e31..b1241332c 100644
--- a/src/components/notes/NoteEditor.tsx
+++ b/src/components/notes/NoteEditor.tsx
@@ -705,24 +705,6 @@ export default function NoteEditor({
</div>
</div>
- {isMeetingTranscribing && meetingEvent && (
- <div className="flex items-center gap-2 px-4 py-1.5 border-b border-destructive/10 bg-destructive/3">
- <span className="relative flex h-2 w-2">
- <span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-destructive/75" />
- <span className="relative inline-flex rounded-full h-2 w-2 bg-destructive" />
- </span>
- <span className="text-[11px] font-medium text-destructive/70 flex-1 truncate">
- Recording: {meetingEvent.summary}
- </span>
- <button
- onClick={onStopMeetingRecording}
- className="text-[11px] font-medium text-destructive/60 hover:text-destructive transition-colors"
- >
- Stop
- </button>
- </div>
- )}
-
<div className="flex-1 relative min-h-0">
<div className="h-full overflow-y-auto">
{viewMode === "enhanced" && enhancement ? (
@@ -747,11 +729,11 @@ export default function NoteEditor({
style={{ background: "linear-gradient(to bottom, transparent, var(--color-background))" }}
/>
<DictationWidget
- isRecording={isRecording}
+ isRecording={isRecording || !!isMeetingTranscribing}
isProcessing={isProcessing}
onStart={handleStartRecording}
- onStop={onStopRecording}
- actionPicker={actionPicker}
+ onStop={isMeetingTranscribing ? onStopMeetingRecording! : onStopRecording}
+ actionPicker={isMeetingTranscribing ? undefined : actionPicker}
/>
</div>
diff --git a/src/hooks/useMeetingTranscription.ts b/src/hooks/useMeetingTranscription.ts
index 184b8986b..d5cbc8f57 100644
--- a/src/hooks/useMeetingTranscription.ts
+++ b/src/hooks/useMeetingTranscription.ts
@@ -141,11 +141,18 @@ export function useMeetingTranscription(): UseMeetingTranscriptionReturn {
const startTranscription = useCallback(async () => {
if (isTranscribingRef.current) return;
+ logger.info("Meeting transcription starting...", {}, "meeting");
+
const stream = await getSystemAudioStream();
if (!stream) {
logger.error("Could not capture system audio for meeting transcription", {}, "meeting");
return;
}
+ logger.info(
+ "System audio stream captured",
+ { tracks: stream.getAudioTracks().length },
+ "meeting"
+ );
streamRef.current = stream;
try {
@@ -166,19 +173,38 @@ export function useMeetingTranscription(): UseMeetingTranscriptionReturn {
const processor = new AudioWorkletNode(audioContext, "pcm-meeting-processor");
processorRef.current = processor;
+ let chunkCount = 0;
processor.port.onmessage = (event) => {
if (!isTranscribingRef.current) return;
+ chunkCount++;
+ if (chunkCount <= 3 || chunkCount % 50 === 0) {
+ logger.debug(
+ "Audio chunk sent",
+ { chunk: chunkCount, bytes: event.data.byteLength },
+ "meeting"
+ );
+ }
window.electronAPI?.deepgramStreamingSend?.(event.data);
};
source.connect(processor);
const partialCleanup = window.electronAPI?.onDeepgramPartialTranscript?.((text) => {
+ logger.debug(
+ "Meeting partial transcript",
+ { length: text.length, preview: text.slice(-80) },
+ "meeting"
+ );
setPartialTranscript(text);
});
if (partialCleanup) ipcCleanupsRef.current.push(partialCleanup);
const finalCleanup = window.electronAPI?.onDeepgramFinalTranscript?.((text) => {
+ logger.info(
+ "Meeting final transcript",
+ { length: text.length, preview: text.slice(-80) },
+ "meeting"
+ );
setTranscript(text);
setPartialTranscript("");
});
@@ -188,6 +214,12 @@ export function useMeetingTranscription(): UseMeetingTranscriptionReturn {
sampleRate: 16000,
});
+ logger.info(
+ "Deepgram streaming start result",
+ { success: result?.success, error: result?.error },
+ "meeting"
+ );
+
if (!result?.success) {
logger.error(
"Failed to start Deepgram streaming",
@@ -200,7 +232,7 @@ export function useMeetingTranscription(): UseMeetingTranscriptionReturn {
isTranscribingRef.current = true;
setIsTranscribing(true);
- logger.info("Meeting transcription started", {}, "meeting");
+ logger.info("Meeting transcription started successfully", {}, "meeting");
} catch (err) {
logger.error(
"Meeting transcription setup failed",