Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
fix(meetings): Add swipe dismissal to meeting reminders (#1897)
Chad Pihaa30bec505a15
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 66ed5bd8c..6f2f01ce1 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -51,6 +51,7 @@ The chat agent and the voice agent become one Voice Assistant behind a redesigne### Meetings & speakers+- **Meeting reminders swipe away like desktop notifications.** A horizontal pointer swipe now dismisses meeting-detected and calendar reminder cards, while the **Keep recording** countdown remains protected.- **Forgotten recordings end themselves.** When the call is over — the meeting app releases your microphone, or both audio channels go quiet, or the app exits — a 60-second countdown starts, cancellable with **Keep recording**, and the card tells you which signal fired. Remote voices still playing defer the countdown, so a quiet-but-live meeting is never cut short. (#1494)- **Meeting notes know who is who.** Every transcript line carries its resolved speaker name and the mic track carries your own name, a Meeting Context block names the note owner and invited participants, and the prompt is forbidden from inventing identities — so notes stop assuming you're whoever got named in conversation. (#1741)- **In-person meetings get speaker labels.** Recordings with everyone in the room and no call ended with zero diarized segments, because only the (silent) system-audio channel was ever diarized. Those sessions now diarize the microphone track. (#1726)diff --git a/src/components/MeetingNotificationOverlay.tsx b/src/components/MeetingNotificationOverlay.tsxindex 99a51596d..48be1a7c2 100644--- a/src/components/MeetingNotificationOverlay.tsx+++ b/src/components/MeetingNotificationOverlay.tsx@@ -1,19 +1,33 @@-import { useState, useEffect, useCallback } from "react";+import {+ useCallback,+ useEffect,+ useRef,+ useState,+ type PointerEvent as ReactPointerEvent,+ type ReactElement,+} from "react";import { useTranslation } from "react-i18next";import type { MeetingNotificationData } from "../types/electron";import { MeetingNotificationCard } from "./MeetingNotificationCard";import {getMeetingNotificationPresentation,initializeMeetingNotificationOverlay,+ shouldDismissMeetingNotificationSwipe,subscribeMeetingAutoEndCountdown,} from "./meetingNotificationModel";-export default function MeetingNotificationOverlay() {+interface PointerSwipe {+ pointerId: number;+ startX: number;+}++export default function MeetingNotificationOverlay(): ReactElement {const { t } = useTranslation();const [data, setData] = useState<MeetingNotificationData | null>(null);const [isVisible, setIsVisible] = useState(false);const [isHovered, setIsHovered] = useState(false);const [secondsRemaining, setSecondsRemaining] = useState(0);+ const pointerSwipeRef = useRef<PointerSwipe | null>(null);useEffect(() => {return initializeMeetingNotificationOverlay({@@ -33,32 +47,88 @@ export default function MeetingNotificationOverlay() {return subscribeMeetingAutoEndCountdown(data.expiresAt, setSecondsRemaining);}, [data]);+ const presentation = getMeetingNotificationPresentation(data, secondsRemaining);+const respond = useCallback(- async (action: string) => {+ async (action: string): Promise<void> => {if (data?.kind !== "detection") return;setIsVisible(false);- await new Promise((r) => setTimeout(r, 200));+ await new Promise<void>((resolve) => setTimeout(resolve, 200));window.electronAPI?.meetingNotificationRespond?.(data.detectionId, action);},[data]);- const keepRecording = useCallback(() => {+ const keepRecording = useCallback((): void => {if (data?.kind !== "auto-end") return;void window.electronAPI?.meetingAutoEndKeep?.(data.sessionId);}, [data]);- const handleMouseEnter = useCallback(() => {+ const handleMouseEnter = useCallback((): void => {setIsHovered(true);window.electronAPI?.setNotificationInteractivity?.(true);}, []);- const handleMouseLeave = useCallback(() => {+ const handleMouseLeave = useCallback((): void => {setIsHovered(false);+ if (pointerSwipeRef.current) return;window.electronAPI?.setNotificationInteractivity?.(false);}, []);- const presentation = getMeetingNotificationPresentation(data, secondsRemaining);+ const handlePointerDown = useCallback(+ (event: ReactPointerEvent<HTMLDivElement>): void => {+ if (+ !presentation.dismissible ||+ !isVisible ||+ !event.isPrimary ||+ event.button !== 0 ||+ (event.target instanceof Element && event.target.closest("button"))+ ) {+ return;+ }++ pointerSwipeRef.current = {+ pointerId: event.pointerId,+ startX: event.clientX,+ };+ event.currentTarget.setPointerCapture(event.pointerId);+ },+ [isVisible, presentation.dismissible]+ );++ const handlePointerUp = useCallback(+ (event: ReactPointerEvent<HTMLDivElement>): void => {+ const swipe = pointerSwipeRef.current;+ if (!swipe || swipe.pointerId !== event.pointerId) return;++ pointerSwipeRef.current = null;+ if (event.currentTarget.hasPointerCapture(event.pointerId)) {+ event.currentTarget.releasePointerCapture(event.pointerId);+ }++ if (+ shouldDismissMeetingNotificationSwipe(+ presentation.dismissible,+ event.clientX - swipe.startX+ )+ ) {+ void respond("dismiss");+ } else if (!isHovered) {+ window.electronAPI?.setNotificationInteractivity?.(false);+ }+ },+ [isHovered, presentation.dismissible, respond]+ );++ const handlePointerCancel = useCallback(+ (event: ReactPointerEvent<HTMLDivElement>): void => {+ if (pointerSwipeRef.current?.pointerId !== event.pointerId) return;+ pointerSwipeRef.current = null;+ if (!isHovered) window.electronAPI?.setNotificationInteractivity?.(false);+ },+ [isHovered]+ );+const title = "title" in presentation ? presentation.title : t(presentation.titleKey);const body ="bodyValues" in presentation@@ -68,7 +138,13 @@ export default function MeetingNotificationOverlay() {presentation.action === "keep" ? keepRecording : () => respond(presentation.action);return (- <div className="meeting-notification-window w-full h-full bg-transparent p-3">+ <div+ className="meeting-notification-window w-full h-full bg-transparent p-3"+ style={{ touchAction: presentation.dismissible ? "pan-y" : "auto" }}+ onPointerDown={handlePointerDown}+ onPointerUp={handlePointerUp}+ onPointerCancel={handlePointerCancel}+ ><MeetingNotificationCardtitle={title}body={body}diff --git a/src/components/meetingNotificationModel.ts b/src/components/meetingNotificationModel.tsindex edd10cd2a..ad577d4d9 100644--- a/src/components/meetingNotificationModel.ts+++ b/src/components/meetingNotificationModel.ts@@ -36,6 +36,15 @@ interface DetectionPresentation {export type MeetingNotificationPresentation = AutoEndPresentation | DetectionPresentation;+const MEETING_NOTIFICATION_SWIPE_DISTANCE_PX = 80;++export function shouldDismissMeetingNotificationSwipe(+ dismissible: boolean,+ horizontalDistance: number+): boolean {+ return dismissible && Math.abs(horizontalDistance) >= MEETING_NOTIFICATION_SWIPE_DISTANCE_PX;+}+export function getMeetingNotificationPresentation(data: MeetingNotificationData | null,secondsRemaining: numberdiff --git a/test/helpers/meetingNotificationModel.test.js b/test/helpers/meetingNotificationModel.test.jsindex aafa864ea..5b89b97cb 100644--- a/test/helpers/meetingNotificationModel.test.js+++ b/test/helpers/meetingNotificationModel.test.js@@ -64,6 +64,20 @@ test("detection presentation preserves event title, join action, and dismissal",);});+test("a dismissible meeting notification closes after an 80px horizontal swipe", async () => {+ const { shouldDismissMeetingNotificationSwipe } = await load();++ assert.equal(shouldDismissMeetingNotificationSwipe(true, 80), true);+ assert.equal(shouldDismissMeetingNotificationSwipe(true, -80), true);+ assert.equal(shouldDismissMeetingNotificationSwipe(true, 79), false);+});++test("non-dismissible meeting notifications ignore horizontal swipes", async () => {+ const { shouldDismissMeetingNotificationSwipe } = await load();++ assert.equal(shouldDismissMeetingNotificationSwipe(false, 200), false);+});+test("countdown rounds up and emits updated seconds until expiration", async () => {const { subscribeMeetingAutoEndCountdown } = await load();let now = 10_000;