From 3b0f27f5d9800ef281bec34feaa0839ed6c315bd Mon Sep 17 00:00:00 2001 From: iamdoubz <> Date: Mon, 6 Jul 2026 17:55:04 -0500 Subject: [PATCH] feat(ui): Cancel button to discard an accidental recording --- src/App.svelte | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/src/App.svelte b/src/App.svelte index 2684b58..abf5137 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -14,7 +14,7 @@ import { api, type NoteTemplate } from "./lib/api"; import { onMount } from "svelte"; import ThemeToggle from "./lib/components/ThemeToggle.svelte"; - import { Circle, Square, Settings as SettingsIcon, AlertTriangle } from "@lucide/svelte"; + import { Circle, Square, Trash2, Settings as SettingsIcon, AlertTriangle } from "@lucide/svelte"; let showSettings = $state(false); let showConsent = $state(false); @@ -99,6 +99,12 @@ else recording.stop(); } + async function cancelRecording() { + if (!confirm("Discard this recording? Its audio and transcript will be deleted.")) return; + await recording.cancel(); + meetings.deselect(); + } + // Global shortcuts (T7.4, FR-UX-3): record start/stop, view toggles. function isEditableTarget(target: EventTarget | null): boolean { if (!(target instanceof HTMLElement)) return false; @@ -199,6 +205,14 @@