Private AI meeting notes that stay on your computer. No meeting bot. Free and open source for Mac, Windows and Linux. An alternative to Granola, Otter and Fireflies.
TypeScript ai-meeting-assistantai-notetakerelectrongranola-alternativelinuxllama-cpplocal-ailocal-firstmacosmcpmeeting-minutesmeeting-notesoffline-firstopen-sourceprivacyspeech-to-texttranscriptionwhisperwhisper-cppwindows
Recordings: delete one from the player's menu, or stop keeping them for new meetings in Settings
Eric Brownrout1ccebd3f8e44
diff --git a/app/e2e/deleteRecording.spec.ts b/app/e2e/deleteRecording.spec.tsnew file mode 100644index 00000000..f8d408a7--- /dev/null+++ b/app/e2e/deleteRecording.spec.ts@@ -0,0 +1,165 @@+import { _electron as electron, expect, test, type ElectronApplication } from '@playwright/test'+import { existsSync, mkdtempSync, readFileSync } from 'node:fs'+import { tmpdir } from 'node:os'+import { join } from 'node:path'++const main = join(import.meta.dirname, '../out/main/index.js')+async function launch(env: Record<string, string> = {}) {+ const userData = mkdtempSync(join(tmpdir(), 'yogurt-audio-delete-'))+ const app = await electron.launch({ args: [main], env: { ...process.env, YOGURT_FAKE: '1', YOGURT_USER_DATA: userData, ...env } })+ const page = await app.firstWindow()+ await expect(page.getByTestId('home')).toBeVisible()+ return { app, page, userData }+}+const fake = <T>(app: ElectronApplication, fn: string, arg?: unknown): Promise<T> =>+ app.evaluate((_e, [fn, arg]) => (globalThis as unknown as Record<string, Record<string, (a?: unknown) => unknown>>).__fake__[fn as string](arg), [fn, arg] as const) as Promise<T>++test('deleting audio asks first, preserves the note and search, and survives Trash restore and reopening', async () => {+ const { app, page, userData } = await launch()+ try {+ const id = await fake<string>(app, 'bigMeeting', 8)+ await page.evaluate(async id => { await window.yogurt.notes.setMine(id, 'Keep the launch decision.', 1); await window.yogurt.notes.setEnhanced(id, '## Launch\n- Keep the summary.', 1) }, id)+ await fake(app, 'go', `/note/${id}`)+ await page.getByRole('tab', { name: 'Transcript', exact: true }).click()+ const before = await page.evaluate(async id => ({ meeting: await window.yogurt.meetings.get(id), notes: await window.yogurt.notes.get(id), lines: await window.yogurt.transcript.get(id) }), id)+ await page.getByTestId('recording-menu').click()+ await page.getByTestId('recording-delete').click()+ await expect(page.getByTestId('recording-delete-cancel')).toBeFocused()+ await page.keyboard.press('Escape')+ await expect(page.getByTestId('recording-delete-confirm')).toHaveCount(0)+ expect(existsSync(join(userData, 'meetings', id, 'me.wav'))).toBe(true)+ await page.getByTestId('recording-menu').click()+ await page.getByTestId('recording-delete').click()+ await page.getByTestId('recording-delete-yes').click()+ await expect(page.getByTestId('player')).toHaveCount(0)+ await expect(page.getByTestId('recording-delete-confirm')).toHaveCount(0)+ expect(existsSync(join(userData, 'meetings', id, 'me.wav'))).toBe(false)+ expect(await page.evaluate(id => window.yogurt.audio.tracks(id), id)).toEqual([])+ const toast = page.getByTestId('recording-deleted-toast')+ await expect(toast).toContainText('Recording deleted')+ await expect(page.getByTestId('recording-settings')).toHaveText('Turn off in Settings')+ expect(await toast.evaluate(el => ['.app-toast-title', '.app-toast-action'].every(selector => {+ const text = el.querySelector(selector)!, range = document.createRange(); range.selectNodeContents(text)+ return new Set(Array.from(range.getClientRects()).map(r => r.top)).size === 1 && text.scrollWidth <= text.clientWidth+ }))).toBe(true)+ await page.getByTestId('recording-settings').click()+ await expect(page.getByTestId('settings')).toBeVisible()+ await expect(page.getByTestId('keep-recordings-toggle')).toBeFocused()+ await expect(page.getByTestId('keep-recordings-toggle')).toHaveAttribute('aria-checked', 'true')+ expect((await page.evaluate(() => window.yogurt.settings.get())).keepRecordings).toBe(true)+ expect(await page.getByTestId('recording-setting').evaluate(el => {+ const row = el.getBoundingClientRect(), viewport = el.closest('.settings-scroll')!.getBoundingClientRect()+ return row.top >= viewport.top && row.bottom <= viewport.bottom+ })).toBe(true)+ expect(await page.getByTestId('recording-setting').locator('.settings-description').evaluate(el => el.getBoundingClientRect().height)).toBeLessThanOrEqual(18)+ const after = await page.evaluate(async id => ({ meeting: await window.yogurt.meetings.get(id), notes: await window.yogurt.notes.get(id), lines: await window.yogurt.transcript.get(id) }), id)+ expect(after).toEqual(before)+ await page.evaluate(async id => { await window.yogurt.meetings.trash(id); await window.yogurt.meetings.restore(id) }, id)+ await fake(app, 'go', '/')+ await fake(app, 'go', `/note/${id}`)+ await page.getByRole('tab', { name: 'Transcript', exact: true }).click()+ await expect(page.getByTestId('transcript-line')).toHaveCount(8)+ await expect(page.getByTestId('player')).toHaveCount(0)+ await page.getByTestId('chat-open').click()+ await page.getByTestId('chat-input').fill('What was discussed?')+ await page.getByTestId('chat-input').press('Enter')+ await expect.poll(async () => (await page.evaluate(id => window.yogurt.chat.get(id), id))?.turns.at(-1)?.answer, { timeout: 30_000 }).toBeTruthy()+ expect((await page.evaluate(() => window.yogurt.search.query('launch'))).some(hit => hit.meetingId === id)).toBe(true)+ } finally { await app.close() }+})++test('turning retention off deletes only after saved transcript and summary and updates the open player', async () => {+ const { app, page, userData } = await launch({ YOGURT_FAKE_NOTES_MODEL_MS: '16000' })+ try {+ await page.getByTestId('settings-open').click()+ const toggle = page.getByTestId('keep-recordings-toggle')+ await expect(toggle).toHaveAttribute('aria-checked', 'true')+ await toggle.click(); await expect(toggle).toHaveAttribute('aria-checked', 'false')+ expect(JSON.parse(readFileSync(join(userData, 'settings.json'), 'utf8')).keepRecordings).toBe(false)+ await page.getByTestId('nav-home').click()+ await page.getByRole('button', { name: 'Start recording', exact: true }).click()+ const id = (await page.evaluate(() => window.yogurt.nav.current())).slice('/note/'.length)+ await expect.poll(async () => (await page.evaluate(id => window.yogurt.transcript.get(id), id)).length, { timeout: 30_000 }).toBeGreaterThan(0)+ await page.getByTestId('note-stop').click()+ await page.getByRole('tab', { name: 'Transcript', exact: true }).click()+ await expect(page.getByTestId('player')).toBeVisible()+ expect(existsSync(join(userData, 'meetings', id, 'me.wav'))).toBe(true)+ await expect.poll(async () => (await page.evaluate(id => window.yogurt.notes.get(id), id)).status, { timeout: 40_000 }).toBe('done')+ await expect(page.getByTestId('player')).toHaveCount(0)+ expect(existsSync(join(userData, 'meetings', id, 'me.wav'))).toBe(false)+ expect((await page.evaluate(id => window.yogurt.transcript.get(id), id)).length).toBeGreaterThan(0)+ } finally { await app.close() }+})++test('@everywhere a backup with deleted audio restores text without recreating recordings', async () => {+ const file = join(mkdtempSync(join(tmpdir(), 'yogurt-audio-backup-')), 'backup.zip')+ const a = await launch({ YOGURT_BACKUP_PATH: file })+ let id: string+ try {+ id = await fake<string>(a.app, 'bigMeeting', 4)+ expect(await a.page.evaluate(id => window.yogurt.audio.delete(id), id)).toBe('deleted')+ await a.page.getByTestId('settings-open').click(); await a.page.getByTestId('backup-export').click()+ await expect(a.page.getByTestId('backup-said')).toContainText('Exported 1 meeting')+ } finally { await a.app.close() }+ const b = await launch({ YOGURT_BACKUP_PATH: file })+ try {+ await b.page.getByTestId('settings-open').click(); await b.page.getByTestId('backup-import').click()+ await expect(b.page.getByTestId('backup-said')).toHaveText('Added 1 meeting.')+ expect(await b.page.evaluate(id => window.yogurt.audio.tracks(id), id)).toEqual([])+ expect((await b.page.evaluate(id => window.yogurt.transcript.get(id), id)).length).toBe(4)+ } finally { await b.app.close() }+})++test('a meeting with deleted audio resumes after its retained transcript', async () => {+ const { app, page } = await launch({ YOGURT_FAKE_LLM_MS: '1' })+ try {+ await page.getByRole('button', { name: 'Start recording', exact: true }).click()+ const id = (await page.evaluate(() => window.yogurt.nav.current())).slice('/note/'.length)+ await expect.poll(async () => (await page.evaluate(id => window.yogurt.transcript.get(id), id)).length, { timeout: 20_000 }).toBeGreaterThan(0)+ await page.getByTestId('note-stop').click()+ await expect.poll(async () => (await page.evaluate(id => window.yogurt.notes.get(id), id)).status).toBe('done')+ const before = await page.evaluate(id => window.yogurt.transcript.get(id), id)+ expect(await page.evaluate(id => window.yogurt.audio.delete(id), id)).toBe('deleted')+ expect(await page.evaluate(id => window.yogurt.meetings.resume(id), id)).toEqual({ id })+ await expect.poll(async () => (await page.evaluate(id => window.yogurt.transcript.get(id), id)).length, { timeout: 20_000 }).toBeGreaterThan(before.length)+ await page.getByTestId('note-stop').click()+ await expect.poll(async () => (await page.evaluate(id => window.yogurt.notes.get(id), id)).status).toBe('done')+ const after = await page.evaluate(id => window.yogurt.transcript.get(id), id)+ expect(after.slice(0, before.length)).toEqual(before)+ expect(after[before.length].startMs).toBeGreaterThanOrEqual(Math.max(...before.map(s => s.endMs)))+ expect(await page.evaluate(id => window.yogurt.audio.tracks(id), id)).toEqual(['me', 'them'])+ } finally { await app.close() }+})+++test('turning retention off leaves older recordings even when their summaries are generated later', async () => {+ const { app, page, userData } = await launch({ YOGURT_FAKE_LLM_MS: '1' })+ try {+ const id = await fake<string>(app, 'bigMeeting', 4)+ await page.getByTestId('settings-open').click()+ await expect(page.getByText("When off, new meetings' audio is deleted once the summary is saved.")).toBeVisible()+ await page.getByTestId('keep-recordings-toggle').click()+ await expect(page.getByTestId('keep-recordings-toggle')).toHaveAttribute('aria-checked', 'false')+ await page.evaluate(id => window.yogurt.notes.writeAgain(id), id)+ await expect.poll(async () => (await page.evaluate(id => window.yogurt.notes.get(id), id)).status).toBe('done')+ expect(await page.evaluate(id => window.yogurt.audio.tracks(id), id)).toEqual(['me', 'them'])+ expect(existsSync(join(userData, 'meetings', id, 'me.wav'))).toBe(true)+ } finally { await app.close() }+})+++test('manual deletion with retention off confirms without offering Settings', async () => {+ const { app, page } = await launch()+ try {+ const id = await fake<string>(app, 'bigMeeting', 4)+ await page.evaluate(() => window.yogurt.settings.setKeepRecordings(false))+ await fake(app, 'go', `/note/${id}`)+ await page.getByRole('tab', { name: 'Transcript', exact: true }).click()+ await page.getByTestId('recording-menu').click()+ await page.getByTestId('recording-delete').click()+ await page.getByTestId('recording-delete-yes').click()+ await expect(page.getByTestId('recording-deleted-toast')).toContainText('Recording deleted')+ await expect(page.getByTestId('recording-settings')).toHaveCount(0)+ expect((await page.evaluate(() => window.yogurt.settings.get())).keepRecordings).toBe(false)+ } finally { await app.close() }+})diff --git a/app/src/main/asr/index.ts b/app/src/main/asr/index.tsindex 7c1acd0c..a2957b9c 100644--- a/app/src/main/asr/index.ts+++ b/app/src/main/asr/index.ts@@ -17,7 +17,7 @@ import type { Chunk } from './chunker'* echo check) that saves lines to the store and tells the window. A meeting's session is found by its id, whichever of* "meeting started" and "capture started" comes first, so the order the hooks were registered in does not matter.*/-type Session = { pipeline: Pipeline | null; priorLines: Set<number>; done?: Promise<void>; store?: SessionStore; refresh?: (id: string) => void+type Session = { complete?: () => boolean; pipeline: Pipeline | null; priorLines: Set<number>; done?: Promise<void>; store?: SessionStore; refresh?: (id: string) => void/** Apple's speech listens in this locale for the meeting (null: whisper only); off once whisper hears another language */speech?: string | null }@@ -168,6 +168,10 @@ export function hookTranscription(p: {const open = (id: string): Session => {const have = sessions.get(id)if (have) return have+ // A later live session cannot finish audio awaiting deferred transcription.+ const pendingBefore = p.store.meeting?.(id)?.transcriptionPending+ p.store.updateMeeting(id, { transcriptionPending: true })+ let saveFailed = falseconst warned = new Set<TranscribeWarn>()const warnOnce = (k: TranscribeWarn) => { if (!warned.has(k)) { warned.add(k); p.warn(k) } }let transcribe: Transcribe | undefined@@ -197,9 +201,10 @@ export function hookTranscription(p: {}}const s: Session = {+ complete: () => !!transcribe && !pendingBefore && !saveFailed && !warned.has('transcribe-failed'),store: p.store, refresh: p.refresh, speech: speechLocaleFor(id), priorLines: new Set(p.store.segments?.(id).map((s) => s.id) ?? []),pipeline: transcribe ? createPipeline({ meetingId: id, transcribe, save: (segs) => {- p.store.addSegments(segs)+ try { p.store.addSegments(segs) } catch (e) { saveFailed = true; throw e }if (segs.some(s => s.hidden)) p.refresh?.(id)}, emit: p.send, emitPartial: p.sendPartial, holdMs: p.holdMs, extraWaitMs: p.extraWaitMs, onWarn: warnOnce,nameOf: p.nameOf && ((a, b) => p.nameOf!(id, a, b)),@@ -268,7 +273,10 @@ function sweepEcho(id: string, s: Session) {/** After the recorder is done (no more audio coming), the pipeline finishes what it has, then echoes are swept */function finishSession(id: string, s: Session, audioDone: () => Promise<void> = () => Promise.resolve(), store?: SessionStore): Promise<void> {s.store ??= store- s.done ??= audioDone().then(() => s.pipeline?.finish()).then(() => sweepEcho(id, s)).catch((e) => console.error('finishing the transcript failed', e)).finally(() => {+ s.done ??= audioDone().then(() => s.pipeline?.finish()).then(() => {+ sweepEcho(id, s)+ if (s.complete?.()) s.store?.updateMeeting(id, { transcriptionPending: false })+ }).catch((e) => console.error('finishing the transcript failed', e)).finally(() => {// the meeting's main language is kept with it, for notes written later (after a restart too)const lang = meetingLanguage(id)if (lang) { try { s.store?.updateMeeting(id, { language: lang }) } catch (e) { console.error('saving the language failed', e) } }diff --git a/app/src/main/backup.ts b/app/src/main/backup.tsindex 089fb28e..b8fb0b03 100644--- a/app/src/main/backup.ts+++ b/app/src/main/backup.ts@@ -153,7 +153,12 @@ export async function exportBackup(o: { db: DatabaseSync; meetingsDir: string; oconst src = join(o.meetingsDir, id)if (!existsSync(src)) continue// a clone on the Mac's disk: instant, and no extra space until one side changes- await cp(src, join(work, 'meetings', id), { recursive: true, mode: constants.COPYFILE_FICLONE, filter: (s) => !scratch(s) })+ try {+ await cp(src, join(work, 'meetings', id), { recursive: true, mode: constants.COPYFILE_FICLONE, filter: (s) => !scratch(s) })+ } catch (e) {+ // Recordings can be deleted during export; the saved text still makes a complete backup.+ if ((e as NodeJS.ErrnoException).code !== 'ENOENT') throw e+ }}const manifest: Manifest = { format: BACKUP_FORMAT, app: o.appVersion, createdAt: o.now ?? Date.now(), meetings: ids.length }await writeFile(join(work, 'manifest.json'), JSON.stringify(manifest, null, 2))diff --git a/app/src/main/deleteRecording.ts b/app/src/main/deleteRecording.tsnew file mode 100644index 00000000..71ea7bd8--- /dev/null+++ b/app/src/main/deleteRecording.ts@@ -0,0 +1,54 @@+import { readdirSync, rmSync, unlinkSync } from 'node:fs'+import { join } from 'node:path'+import type { Store } from './store'+import { isId } from './ipcArgs'+import type { DeleteRecordingResult } from '../shared/types'++/** Only audio files go away. No meeting rows, text, people or folder links change. */+export async function deleteRecording(id: string, p: {+ store: Pick<Store, 'meeting' | 'segments' | 'notes'>+ dirOf: (id: string) => string+ busy: (id: string) => boolean+ settle: (id: string) => Promise<void>+ removed: (id: string) => void+ /** Supplied only for automatic deletion, checked again after the recorder settles. */+ keep?: (endedAt: number | null) => boolean+}): Promise<DeleteRecordingResult> {+ if (!isId(id)) return 'missing'+ const blocked = (): DeleteRecordingResult | undefined => {+ const m = p.store.meeting(id)+ if (!m) return 'missing'+ if (m.state === 'recording' || p.busy(id)) return 'recording'+ if (p.keep && (p.keep(m.endedAt) || !p.store.notes(id).enhanced?.trim())) return 'kept'+ if (m.transcriptionPending || !p.store.segments(id).some(s => s.text.trim())) return 'not-transcribed'+ }+ try {+ const before = blocked()+ if (before) return before+ let timer: NodeJS.Timeout | undefined+ try {+ await Promise.race([p.settle(id), new Promise<never>((_resolve, reject) => {+ timer = setTimeout(() => reject(new Error('recording is still being written')), 30_000)+ })])+ } finally { clearTimeout(timer) }+ const after = blocked()+ if (after) return after+ const dir = p.dirOf(id)+ let files: string[]+ try { files = readdirSync(dir) } catch (e) {+ if ((e as NodeJS.ErrnoException).code !== 'ENOENT') throw e+ files = []+ }+ // A failed join may still contain words missing from the saved transcript.+ if (files.some(f => /^part\.\d+\.json$|^(me|them)\.\d+\.(m4a|ogg|wav)$/.test(f))) return 'failed'+ // Native joins retain exact audio inputs here, sometimes as hard links.+ rmSync(join(dir, 'original'), { recursive: true, force: true })+ // Unlink synchronously so a resumed recording cannot start between the guard and deletion.+ for (const f of files) if (/^(me|them)(\.joined)?\.(m4a|ogg|wav|f32)(\.joined|\.tmp)?$/.test(f)) unlinkSync(join(dir, f))+ try { p.removed(id) } catch (e) { console.warn('recording deleted; window refresh failed', id, e) }+ return 'deleted'+ } catch (e) {+ console.error('deleting the recording failed', id, e)+ return 'failed'+ }+}diff --git a/app/src/main/index.ts b/app/src/main/index.tsindex 2b091302..b02068f8 100644--- a/app/src/main/index.ts+++ b/app/src/main/index.ts@@ -17,7 +17,7 @@ import { basename, join } from 'node:path'import { pathToFileURL } from 'node:url'import { isFake, userDataDir } from './paths'import { logToFile } from './log'-import { loadSettings, localeOf, recordingReminderOn, spokenSetting, stopsWhenCallEnds, updateSettings } from './settings'+import { loadSettings, localeOf, keepsRecording, recordingReminderOn, spokenSetting, stopsWhenCallEnds, updateSettings } from './settings'import { CALL_GONE_MS, useCallApps } from './detect'import { systemLocale } from './locale'import { language as uiLanguage, onLanguage, setLanguage, t } from '../shared/i18n'@@ -72,6 +72,7 @@ import { hookBackup } from './backupIpc'import { hookFolders } from './foldersIpc'import { hookMcp } from './mcp'import { startedHidden } from './mcp/paths'+import { deleteRecording } from './deleteRecording'import { AUDIO_SCHEME, audioExts, createAudioHandler, trackFile, type AudioExt } from './audio'import { finishQuit, hookUpdates, isPreviewBuild, updateOfferChanged, updatesOn } from './updates'import type { NoteSaveResult, StartResult } from '../shared/types'@@ -580,8 +581,16 @@ app.whenReady().then(() => {transcribed: async (id) => { await recordingFinished(id); await transcriptFinished(id) }, onStart: onMeetingStart, onStop: onMeetingStop,})const folderSuggestions = createFolderSuggestions({ store, queue, model, changed: () => win?.webContents.send('folders:changed') })+ let resumingId: string | null = null+ const removeRecording = (id: string, automatic = false) => deleteRecording(id, {+ store, dirOf: id => join(userDataDir(), 'meetings', id),+ busy: id => resumingId === id || stopSavePending(id),+ settle: async id => { await rejoined; await recordingFinished(id); await transcriptFinished(id) },+ removed: id => { for (const w of BrowserWindow.getAllWindows()) w.webContents.send('audio:deleted', id) },+ ...(automatic ? { keep: endedAt => keepsRecording(loadSettings(settingsFile), endedAt) } : {}),+ })const notes = hookNotes({- summarized: id => folderSuggestions.schedule(id),+ summarized: id => { folderSuggestions.schedule(id); void removeRecording(id, true) },// Windows and Linux: a note waiting while the model loads says so (a Mac shows what it always did)showLoading: platform !== 'darwin',store, queue, model, language: meetingLanguage, onStop: onMeetingStopSaved, named: (id) => callNames.finished(id), earlier: (id) => readAhead.parts(id), me,@@ -590,7 +599,6 @@ app.whenReady().then(() => {// the notes are written: the meeting goes into the library for chat across meetingschanged: () => { win?.webContents.send('meetings:changed'); void indexer.schedule() },})- let resumingId: string | null = nullipcMain.handle('meetings:resume', async (_e, id: unknown): Promise<StartResult> => {if (!isId(id)) return { error: 'gone' }const current = activeMeeting()@@ -610,6 +618,8 @@ app.whenReady().then(() => {await rejoinedif (finishing || !store.meeting(id)) return { error: 'failed' }const append = await prepareAppend(join(userDataDir(), 'meetings', id))+ // Deleted audio must not restart a retained transcript at zero.+ if (!append.startMs) append.startMs = store.segments(id, { hidden: true }).reduce((end, s) => Math.max(end, s.endMs), Math.max(append.startMs, store.meeting(id)?.durationMs ?? 0))// Another explicit start may have happened while the old files were settling.if (finishing || activeMeeting()) return { error: 'failed' }const m = resumeMeeting(id, append)@@ -677,6 +687,7 @@ app.whenReady().then(() => {const meetingDir = (id: string) => join(userDataDir(), 'meetings', id)const finishedMeeting = (id: string) => { const m = store.meeting(id); return !!m && m.state !== 'recording' }protocol.handle(AUDIO_SCHEME, createAudioHandler({ dirOf: meetingDir, known: finishedMeeting, ready: async (id) => { await rejoined; await recordingSettled(id); if (isFake()) await waitForFakeAudioMetadata() }, exts: audioKinds }))+ ipcMain.handle('audio:delete', (_e, id: unknown) => isId(id) ? removeRecording(id) : 'missing')ipcMain.handle('audio:tracks', async (_e, id: unknown) => {if (!isId(id) || !finishedMeeting(id)) return []// a join (after the meeting, or left over from a crash and redone at launch) rewrites the files: wait for it, 30 s at mostdiff --git a/app/src/main/preferences.ts b/app/src/main/preferences.tsindex 79f097e9..9ed6b37c 100644--- a/app/src/main/preferences.ts+++ b/app/src/main/preferences.ts@@ -49,7 +49,7 @@ export function hookPreferences(d: { file: string; permissions: Permissions; ask// what the Mac says, so a change in System Settings shows here// locale: every window (main, card, widget) shows the interface language// language: the one picked ('' is the Mac's); locale: the one in use; systemLocale: the Mac's, for the picker- return { theme: s.theme ?? 'system', openAtLogin: d.loginOn(s.openAtLogin), showInMenuBar: s.showInMenuBar !== false, language: isLocale(s.language) ? s.language : '', locale: localeOf(s, systemLocale()), systemLocale: systemLocale(), myName: s.myName?.trim() || d.macName(), macName: d.macName(), stopWhenCallEnds: stopsWhenCallEnds(s), recordingReminder: recordingReminderOn(s), jargon: cleanJargon(s.jargon), spoken: spokenSetting(s) }+ return { theme: s.theme ?? 'system', openAtLogin: d.loginOn(s.openAtLogin), showInMenuBar: s.showInMenuBar !== false, language: isLocale(s.language) ? s.language : '', locale: localeOf(s, systemLocale()), systemLocale: systemLocale(), myName: s.myName?.trim() || d.macName(), macName: d.macName(), stopWhenCallEnds: stopsWhenCallEnds(s), recordingReminder: recordingReminderOn(s), keepRecordings: s.keepRecordings !== false, jargon: cleanJargon(s.jargon), spoken: spokenSetting(s) }})// what the person is called in meetings (who "You" is when naming voices); blank: the Mac's full name againipcMain.handle('settings:name', (_e, v: unknown) => {@@ -79,6 +79,12 @@ export function hookPreferences(d: { file: string; permissions: Permissions; askif (typeof on !== 'boolean') returnupdateSettings(d.file, { recordingReminder: on ? undefined : false })})+ ipcMain.handle('settings:keep-recordings', (_e, on: unknown) => {+ if (typeof on !== 'boolean') return+ const s = loadSettings(d.file)+ updateSettings(d.file, { keepRecordings: on ? undefined : false,+ recordingsOffAt: on ? undefined : s.keepRecordings === false && s.recordingsOffAt != null ? s.recordingsOffAt : Date.now() })+ })// the whole list each time, cleaned the same way the page cleans it; what was kept comes backipcMain.handle('settings:jargon', (_e, v: unknown) => {const jargon = cleanJargon(v)diff --git a/app/src/main/settings.ts b/app/src/main/settings.tsindex 345d82d3..814dea88 100644--- a/app/src/main/settings.ts+++ b/app/src/main/settings.ts@@ -28,6 +28,10 @@ export type Settings = { theme?: 'light' | 'dark'; language?: string; /** what tstopWhenCallEnds?: boolean/** a quiet reminder to ask everyone before recording; on unless turned off */recordingReminder?: boolean+ /** keep audio after its transcript and summary are saved; on unless turned off */+ keepRecordings?: boolean+ /** Only meetings ending after this opt-out may lose their audio automatically. */+ recordingsOffAt?: number/** the mic to record with (its Core Audio UID); Auto, the Mac's own input, when left out or not plugged in */mic?: string/** Calendars excluded from Yogurt's agenda and meeting detection. Others stay visible. */@@ -45,6 +49,10 @@ export const spokenSetting = (s: Settings): Spoken => spokenOf(s.spoken)/** "Finish recording when the call ends": on by default */export const stopsWhenCallEnds = (s: Settings): boolean => s.stopWhenCallEnds !== falseexport const recordingReminderOn = (s: Settings): boolean => s.recordingReminder !== false+/** Old recordings stay, even if their summaries are saved or rewritten after opting out. */+export const keepsRecording = (s: Settings, endedAt: number | null): boolean =>+ s.keepRecordings !== false || typeof s.recordingsOffAt !== 'number' || !Number.isFinite(s.recordingsOffAt) || endedAt == null || endedAt <= s.recordingsOffAt+export const autoUpdateOn = (s: Settings): boolean => s.autoUpdate !== falseexport function loadSettings(path: string): Settings {diff --git a/app/src/main/store.ts b/app/src/main/store.tsindex fac4aa60..a2047025 100644--- a/app/src/main/store.ts+++ b/app/src/main/store.ts@@ -28,6 +28,8 @@ export type Meeting = {titleSource: TitleSource/** Recorded duration when pauses or resumed sessions make wall duration inaccurate. */durationMs?: number+ /** Some recorded audio still needs a saved transcript, including earlier sessions. */+ transcriptionPending?: boolean/** when it was moved to the Trash; there it is out of every list, search and chat until restored */trashedAt?: number}@@ -42,6 +44,7 @@ export type Segment = { id: number; meetingId: string; track: 'me' | 'them'; staexport type Notes = { mine: string; enhanced: string | null; edited: boolean }const toMeeting = (r: Row): Meeting => ({+ ...(r.transcription_pending ? { transcriptionPending: true } : {}),id: String(r.id), title: String(r.title), startedAt: Number(r.started_at), endedAt: r.ended_at == null ? null : Number(r.ended_at),eventId: r.event_id == null ? null : String(r.event_id), app: r.app == null ? null : String(r.app),attendees: JSON.parse(String(r.attendees)), state: r.state as Meeting['state'], language: r.language == null ? null : String(r.language),@@ -193,6 +196,7 @@ export class Store {if (!meetingCols.includes('speaker_order')) this.db.exec("ALTER TABLE meetings ADD COLUMN speaker_order TEXT NOT NULL DEFAULT '[]'")for (const name of ['source', 'source_id']) if (!meetingCols.includes(name)) this.db.exec(`ALTER TABLE meetings ADD COLUMN ${name} TEXT`)if (!meetingCols.includes('event_started_at')) this.db.exec('ALTER TABLE meetings ADD COLUMN event_started_at INTEGER')+ if (!meetingCols.includes('transcription_pending')) this.db.exec('ALTER TABLE meetings ADD COLUMN transcription_pending INTEGER NOT NULL DEFAULT 0')if (!meetingCols.includes('duration_ms')) this.db.exec('ALTER TABLE meetings ADD COLUMN duration_ms INTEGER')if (!meetingCols.includes('language')) this.db.exec('ALTER TABLE meetings ADD COLUMN language TEXT')if (!meetingCols.includes('trashed_at')) this.db.exec('ALTER TABLE meetings ADD COLUMN trashed_at INTEGER')@@ -274,10 +278,10 @@ export class Store {}updateMeeting(id: string, patch: Partial<Omit<Meeting, 'id'>>) {if (patch.attendees) rememberPeople(this.db, patch.attendees)- const col: Record<string, string> = { title: 'title', startedAt: 'started_at', endedAt: 'ended_at', eventId: 'event_id', eventStartedAt: 'event_started_at', app: 'app', attendees: 'attendees', state: 'state', language: 'language', titleSource: 'title_source', durationMs: 'duration_ms' }+ const col: Record<string, string> = { title: 'title', startedAt: 'started_at', endedAt: 'ended_at', eventId: 'event_id', eventStartedAt: 'event_started_at', app: 'app', attendees: 'attendees', state: 'state', language: 'language', titleSource: 'title_source', durationMs: 'duration_ms', transcriptionPending: 'transcription_pending' }const keys = Object.keys(patch).filter((k) => k in col && (patch as Row)[k] !== undefined)if (!keys.length) return- const vals = keys.map((k) => (k === 'attendees' ? JSON.stringify(patch.attendees) : (patch as Row)[k]) as string | number | null)+ const vals = keys.map((k) => (k === 'attendees' ? JSON.stringify(patch.attendees) : k === 'transcriptionPending' ? Number(patch.transcriptionPending) : (patch as Row)[k]) as string | number | null)this.db.prepare(`UPDATE meetings SET ${keys.map((k) => `${col[k]} = ?`).join(', ')} WHERE id = ?`).run(...vals, id)}/** Gone for good: its lines, notes and chat go with it (ON DELETE CASCADE; the search tables follow by trigger) */diff --git a/app/src/preload/index.ts b/app/src/preload/index.tsindex ce2763ce..6cd23a18 100644--- a/app/src/preload/index.ts+++ b/app/src/preload/index.ts@@ -130,6 +130,12 @@ const api: YogurtApi = {save: (id, side) => ipcRenderer.invoke('share:save', id, side),},audio: {+ delete: (id) => ipcRenderer.invoke('audio:delete', id),+ onDeleted: (cb) => {+ const on = (_e: Electron.IpcRendererEvent, id: string) => cb(id)+ ipcRenderer.on('audio:deleted', on)+ return () => { ipcRenderer.removeListener('audio:deleted', on) }+ },tracks: (id) => ipcRenderer.invoke('audio:tracks', id),mics: () => ipcRenderer.invoke('audio:mics'),setMic: (id) => ipcRenderer.invoke('audio:set-mic', id),@@ -223,6 +229,7 @@ const api: YogurtApi = {setName: (name) => ipcRenderer.invoke('settings:name', name),setStopWhenCallEnds: (on) => ipcRenderer.invoke('settings:auto-stop', on),setRecordingReminder: (on) => ipcRenderer.invoke('settings:recording-reminder', on),+ setKeepRecordings: (on) => ipcRenderer.invoke('settings:keep-recordings', on),setJargon: (terms) => ipcRenderer.invoke('settings:jargon', terms),setLanguage: (id) => ipcRenderer.invoke('settings:language', id),onLanguage: (cb) => { const f = (_e: unknown, locale: string) => cb(locale); ipcRenderer.on('settings:language', f); return () => { ipcRenderer.off('settings:language', f) } },diff --git a/app/src/renderer/src/App.tsx b/app/src/renderer/src/App.tsxindex bd7ae79f..179942da 100644--- a/app/src/renderer/src/App.tsx+++ b/app/src/renderer/src/App.tsx@@ -172,7 +172,7 @@ export function App() {// still starting, or checking what is on disk: the launch screen, so a finished install never flashes the first-run screenif (!setup || !plan || holding) return <div data-testid="app-shell" className="h-full bg-bg"><TitleBar /><BootScreen /></div>const noteId = route.startsWith('/note/') ? route.slice(6) : null- const settings = route === '/settings'+ const settings = route === '/settings' || route === '/settings/recordings'const trash = route === '/trash'const chatId = route === '/chat' ? null : route.startsWith('/chat/') ? route.slice(6) : undefinedconst folderId = route.startsWith('/folder/') ? route.slice('/folder/'.length) : null@@ -180,7 +180,7 @@ export function App() {const suggestedFolder = noteId ? folders?.find((s) => s.id === suggestedFolders[noteId]) : undefined// a folder's page waits for the list; a folder that is gone shows Meetingsconst folderScreen = folderId && (folder ? <Folder key={folder.id} folder={folder} open={open} onStarted={(id) => setSuggestedFolders((current) => ({ ...current, [id]: folder.id }))} /> : !folders ? <div className="native-folder"><StartRecording /><div className="native-library"><LoadingContent pending testId="meetings-loading" skeleton={<><div className="folder-page-heading"><h1><span className="loading-bar" style={{ width: 140 }} /></h1></div><MeetingListLoading showFolders={false} /></>} /></div></div> : null)- const screen = settings ? <Settings revision={settingsRevision} /> : noteId ? <Note key={noteId} id={noteId} onSource={openSource} onTitleChange={setMeeting} at={jump?.id === noteId ? jump : undefined}+ const screen = settings ? <Settings revision={settingsRevision} focusRecording={route === '/settings/recordings'} /> : noteId ? <Note key={noteId} id={noteId} onSource={openSource} onTitleChange={setMeeting} at={jump?.id === noteId ? jump : undefined}folderSuggestion={suggestedFolder ? { folder: suggestedFolder, dismiss: () => dismissFolderSuggestion(noteId) } : undefined} />: chatId !== undefined ? <ChatPage id={chatId} go={go} openSource={openSource} />: trash ? <Trash open={open} /> : folderScreen || <Home open={open} openFolder={(id) => go(`/folder/${id}`)} />diff --git a/app/src/renderer/src/components/Player.tsx b/app/src/renderer/src/components/Player.tsxindex a3a702ef..9e01c299 100644--- a/app/src/renderer/src/components/Player.tsx+++ b/app/src/renderer/src/components/Player.tsx@@ -1,8 +1,12 @@import { useEffect, useImperativeHandle, useRef, useState, type Ref } from 'react'-import { Pause, Play } from 'lucide-react'+import { Menu } from '@base-ui/react/menu'+import { Modal, ModalClose } from './Modal'+import { InlineError } from './InlineError'+import { Ellipsis, Pause, Play, Trash2 } from 'lucide-react'import { language, t } from '../../../shared/i18n'import { clock } from '../../../shared/transcript'import { Swap } from './Swap'+import { recordingDeletedToast } from './TrashToast'type Track = 'me' | 'them'export type PlayerHandle = { playFrom: (ms: number) => void }@@ -20,8 +24,11 @@ const DRIFT_S = 0.08* with `seek` for an explicit move, and null once the meeting or panel changes; `onPlaying` whether any side is playing.*/type PlayerProps = { id: string; tracks: Track[]; ref?: Ref<PlayerHandle>; onTime?: (ms: number | null, seek?: boolean) => void; onPlaying?: (on: boolean) => void }-export function Player(props: PlayerProps) { return <MeetingPlayer key={props.id} {...props} /> }+export function Player(props: PlayerProps) { return props.tracks.length ? <MeetingPlayer key={props.id} {...props} /> : null }function MeetingPlayer({ id, tracks, ref, onTime, onPlaying }: PlayerProps) {+ const [confirm, setConfirm] = useState(false)+ const [deleted, setDeleted] = useState(false)+ const menuButton = useRef<HTMLButtonElement>(null)const els = useRef<Partial<Record<Track, HTMLAudioElement>>>({})const owned = useRef(new Set<HTMLAudioElement>())/** tracks that could not be read: dropped, and the other plays on */@@ -104,6 +111,7 @@ function MeetingPlayer({ id, tracks, ref, onTime, onPlaying }: PlayerProps) {const rateText = t('{rate}×', { rate: new Intl.NumberFormat(language()).format(rate) })const fill = duration ? (time / duration) * 100 : 0const note = broken.length === 0 ? null : shown.length === 0 ? t("This recording can't be played.") : t("Part of this recording can't be played.")+ if (deleted) return nullreturn (<div data-testid="player" className="mx-4 mb-4 rounded-xl border border-line bg-float p-2 text-xs text-muted shadow-[var(--shadow-soft)]">{shown.map((tr) => (@@ -116,8 +124,8 @@ function MeetingPlayer({ id, tracks, ref, onTime, onPlaying }: PlayerProps) {onError={(e) => { failed(tr, e.currentTarget); changed() }} />))}{note && <p data-testid="player-note" role="status" className={shown.length ? 'px-1.5 pb-1.5' : 'px-1.5 py-1'}>{note}</p>}- {shown.length > 0 && (- <div className="flex items-center gap-2.5">+ <div className="flex items-center gap-2.5">+ {shown.length > 0 && <><button data-testid="player-toggle" aria-label={playing ? t('Pause') : t('Play')} onClick={() => (playing ? pause() : play())}className="player-btn flex size-7 shrink-0 items-center justify-center rounded-md bg-accent text-accent-ink"><Swap show={playing ? 'pause' : 'play'} options={{ play: <Play size={13} fill="currentColor" strokeWidth={0} className="ms-0.5" />, pause: <Pause size={13} fill="currentColor" strokeWidth={0} /> }} />@@ -131,8 +139,48 @@ function MeetingPlayer({ id, tracks, ref, onTime, onPlaying }: PlayerProps) {className="ghost-btn h-7 w-10 shrink-0 justify-center !px-0 tabular-nums">{rateText}</button>- </div>- )}+ </>}+ <Menu.Root modal={false}>+ <Menu.Trigger ref={menuButton} data-testid="recording-menu" aria-label={t('More')} title={t('More')}+ className="bar-btn ms-auto grid size-7 shrink-0 place-items-center rounded-md text-muted"><Ellipsis size={17} aria-hidden="true" /></Menu.Trigger>+ <Menu.Portal>+ <Menu.Positioner side="top" align="end" sideOffset={6} className="ask-menu-positioner">+ <Menu.Popup className="menu-entry ask-actions-menu" aria-label={t('More')} finalFocus={confirm ? false : menuButton} onKeyDown={e => { if (e.key === 'Escape') e.stopPropagation() }}>+ <Menu.Item data-testid="recording-delete" className="text-danger" onClick={() => { pause(); menuButton.current?.focus(); setConfirm(true) }}>+ <Trash2 size={14} aria-hidden="true" />{t('Delete recording')}+ </Menu.Item>+ </Menu.Popup>+ </Menu.Positioner>+ </Menu.Portal>+ </Menu.Root>+ </div>+ {confirm && <DeleteRecording id={id} onCancel={() => { setConfirm(false); menuButton.current?.focus() }} onDeleted={() => {+ for (const a of owned.current) { a.pause(); a.removeAttribute('src'); a.load() }+ setConfirm(false); setDeleted(true); setPlaying(false); onTimeRef.current?.(null); onPlayingRef.current?.(false)+ }} />}</div>)}++export function DeleteRecording({ id, onCancel, onDeleted }: { id: string; onCancel: () => void; onDeleted: () => void }) {+ const [busy, setBusy] = useState(false)+ const [failed, setFailed] = useState<'not-transcribed' | 'recording' | 'failed'>()+ const yes = async () => {+ if (busy) return+ setBusy(true); setFailed(undefined)+ const result = await window.yogurt.audio.delete(id).catch(() => 'failed' as const)+ setBusy(false)+ if (result === 'deleted') void recordingDeletedToast()+ if (result === 'deleted' || result === 'missing') onDeleted()+ else setFailed(result === 'not-transcribed' || result === 'recording' ? result : 'failed')+ }+ return <Modal testId="recording-delete-confirm" role="alertdialog" title={t('Delete recording?')}+ description={t('The audio is deleted for good. Your transcript and notes stay.')} busy={busy} onCancel={onCancel}>+ {failed && <InlineError testId="recording-delete-failed" className="inline-error-in-dialog"><span>{failed === 'not-transcribed' ? t('Keep the audio until the transcript is saved.')+ : failed === 'recording' ? t('Stop the recording first, then try again.') : t("Couldn't delete the recording. Try again.")}</span></InlineError>}+ <div className="modal-actions">+ <button data-testid="recording-delete-yes" className="modal-button danger" disabled={busy} onClick={() => void yes()}>{t('Delete recording')}</button>+ <ModalClose data-testid="recording-delete-cancel" data-dialog-cancel className="modal-button" disabled={busy}>{t('Cancel')}</ModalClose>+ </div>+ </Modal>+}diff --git a/app/src/renderer/src/components/Transcript.tsx b/app/src/renderer/src/components/Transcript.tsxindex a0fcc50d..a94e4218 100644--- a/app/src/renderer/src/components/Transcript.tsx+++ b/app/src/renderer/src/components/Transcript.tsx@@ -165,8 +165,16 @@ export function Transcript({ id, recording, inline = false, active = true, onClosetTracks([])if (recording) returnlet on = true- void window.yogurt.audio.tracks(id).then((t) => { if (on) setTracks(t) })- return () => { on = false }+ let deleted = false+ const off = window.yogurt.audio.onDeleted(changed => {+ if (changed !== id) return+ if (document.activeElement?.closest('[data-testid="player"], [data-testid="recording-delete-confirm"]')) {+ list.current?.setAttribute('tabindex', '-1'); list.current?.focus({ preventScroll: true })+ }+ deleted = true; setTracks([]); setAudioOn(false); onTime(null)+ })+ void window.yogurt.audio.tracks(id).then((t) => { if (on && !deleted) setTracks(t) })+ return () => { on = false; off() }}, [id, recording])const player = useRef<PlayerHandle>(null)const playable = tracks.length > 0diff --git a/app/src/renderer/src/components/TrashToast.tsx b/app/src/renderer/src/components/TrashToast.tsxindex ddab446e..afe0a50f 100644--- a/app/src/renderer/src/components/TrashToast.tsx+++ b/app/src/renderer/src/components/TrashToast.tsx@@ -16,6 +16,19 @@ type Shown = { ids: string[]; bulk?: boolean; error?: string; /** the note it walet show: ((s: Shown) => void) | undefinedexport const toasts = Toast.createToastManager<{ testId?: string; actionTestId?: string }>()+/** Confirm manual audio deletion without changing the retention preference. */+export async function recordingDeletedToast() {+ const prefs = await window.yogurt.settings.get().catch(() => undefined)+ const id = toasts.add({ title: t('Recording deleted'), timeout: 8000,+ data: { testId: 'recording-deleted-toast', actionTestId: 'recording-settings' },+ actionProps: prefs?.keepRecordings ? { children: t('Turn off in Settings'), onClick: () => {+ window.yogurt.nav.go('/settings/recordings')+ toasts.close(id)+ } } : undefined,+ })+ return id+}+/*** Delete in a list or a note: the meeting goes to the Trash at once, no question asked, and a toast* says so with Undo. from: the route it was deleted on, when that was its own note (main has already gone home).@@ -123,7 +136,7 @@ export function TrashToast({ go }: { go: (route: string) => void }) {function ToastList() {const { toasts: shown } = Toast.useToastManager<{ testId?: string; actionTestId?: string }>()return shown.map(item => <Toast.Root key={item.id} toast={item} className="app-toast" swipeDirection={['down', 'right']}- data-testid={item.transitionStatus === 'ending' ? undefined : item.data?.testId ?? 'app-toast'}>+ data-kind={item.data?.testId} data-testid={item.transitionStatus === 'ending' ? undefined : item.data?.testId ?? 'app-toast'}><Toast.Content className="app-toast-content"><Toast.Title className="app-toast-title" />{item.actionProps && <Toast.Action className="app-toast-action" data-testid={item.data?.actionTestId} />}diff --git a/app/src/renderer/src/components/Workspace.tsx b/app/src/renderer/src/components/Workspace.tsxindex fea829b4..db25b666 100644--- a/app/src/renderer/src/components/Workspace.tsx+++ b/app/src/renderer/src/components/Workspace.tsx@@ -30,7 +30,7 @@ export function Workspace({ route, meeting, folders, go, back, forward, search,const sidebarTransition = { duration: sidebarMotion ? 0.2 : 0, ease: [0.22, 1, 0.36, 1] as [number, number, number, number] }const note = route.startsWith('/note/')// a saved chat (/chat/<id>) is still under Chat- const section = route.startsWith('/chat/') ? '/chat' : route+ const section = route === '/settings/recordings' ? '/settings' : route.startsWith('/chat/') ? '/chat' : routeconst returnToRecording = recording?.kind === 'recording' && route !== `/note/${recording.meetingId}`useEffect(() => {const ask = () => {@@ -61,7 +61,7 @@ export function Workspace({ route, meeting, folders, go, back, forward, search,]const folder = route.startsWith('/folder/') ? folders?.find((s) => route === `/folder/${s.id}`) : undefinedconst current = links.find((link) => link.route === section) ?? (route.startsWith('/folder/') ? { label: folder?.name ?? t('Folder') } : undefined)- const label = note ? (meeting && route === `/note/${meeting.id}` ? meeting.title : t('Meeting')) : route === '/settings' ? t('Settings') : current?.label ?? t('Meetings')+ const label = note ? (meeting && route === `/note/${meeting.id}` ? meeting.title : t('Meeting')) : route.startsWith('/settings') ? t('Settings') : current?.label ?? t('Meetings')const nav = (link: typeof links[number]) => <button key={link.route} data-testid={link.route === '' ? 'nav-home' : link.route === '/chat' ? 'nav-chat' : link.route === '/settings' ? 'settings-open' : 'nav-trash'}data-sidebar="menu-button" aria-label={link.label} title={collapsed ? link.label : undefined} className={`workspace-nav${link.route === '/trash' ? ' workspace-trash' : ''}`} aria-current={section === link.route || link.route === '' && route === '/meetings' ? 'page' : undefined} onClick={() => go(link.route)}><link.Icon size={16} strokeWidth={1.75} aria-hidden="true" /><span>{link.label}</span>diff --git a/app/src/renderer/src/screens/Settings.tsx b/app/src/renderer/src/screens/Settings.tsxindex 3feb26fe..ad0f14c1 100644--- a/app/src/renderer/src/screens/Settings.tsx+++ b/app/src/renderer/src/screens/Settings.tsx@@ -1,5 +1,5 @@import { LoadingContent } from '../components/LoadingContent'-import { useCallback, useEffect, useState } from 'react'+import { useCallback, useEffect, useRef, useState } from 'react'import { Check, ChevronDown, Copy, Download, ExternalLink, Globe, Lock, Upload } from 'lucide-react'import type { Access, McpStatus, PermissionKind, PermissionStatus, SetupState, Theme, UpdateStatus } from '../../../shared/types'import { notesDownloadText, notesUpgradeSize } from '../notesSetup'@@ -22,10 +22,11 @@ const loginLabel = () => osWords({ mac: t('Open Yogurt when your Mac starts'), wconst trayLabel = () => osWords({ mac: t('Show Yogurt in the menu bar'), windows: t('Show Yogurt in the notification area'), linux: t('Show Yogurt in the tray') })/** Settings, kept small: what Yogurt may use, your name, open at login, stop when the call ends, light or dark, a backup and updates. Nothing technical. */-export function Settings({ revision = 0 }: { revision?: number }) {+export function Settings({ revision = 0, focusRecording = false }: { revision?: number; focusRecording?: boolean }) {const [perms, setPerms] = useState<PermissionStatus>()- const [prefs, setPrefs] = useState<{ theme: Theme; openAtLogin: boolean; showInMenuBar: boolean; myName: string; macName: string; stopWhenCallEnds: boolean; recordingReminder: boolean }>()+ const [prefs, setPrefs] = useState<{ theme: Theme; openAtLogin: boolean; showInMenuBar: boolean; myName: string; macName: string; stopWhenCallEnds: boolean; recordingReminder: boolean; keepRecordings: boolean }>()const [name, setName] = useState('')+ const [generalReady, setGeneralReady] = useState(false)const scroll = useScrollMemory<HTMLDivElement>('settings', !!prefs && !!perms)useEffect(() => { void window.yogurt.settings.get().then(setPrefs) }, [revision])const reload = useCallback(() => { void window.yogurt.permissions.status().then(setPerms) }, [])@@ -65,7 +66,7 @@ export function Settings({ revision = 0 }: { revision?: number }) {<p className="settings-intro">{osWords({ mac: t('Make Yogurt feel at home on your Mac.'), other: t('Make Yogurt feel at home on your computer.') })}</p><h2 className="settings-section-heading">{t('General')}</h2>- <div className="settings-group"><LoadingContent pending={!prefs} testId="settings-loading">+ <div className="settings-group"><LoadingContent pending={!prefs} testId="settings-loading" onReady={() => setGeneralReady(true)}><div className="settings-row"><label htmlFor="settings-theme" className="settings-label settings-row-copy">{t('Appearance')}</label><span className="settings-select-wrap">@@ -120,6 +121,10 @@ export function Settings({ revision = 0 }: { revision?: number }) {onClick={() => { if (!prefs) return; const on = !prefs.recordingReminder; setPrefs({ ...prefs, recordingReminder: on }); void window.yogurt.settings.setRecordingReminder(on) }}className="settings-toggle"><span className="settings-toggle-knob" /></button></div>+ <RecordingSetting reveal={focusRecording && generalReady && !!perms} on={prefs?.keepRecordings ?? true} disabled={!prefs} onChange={async on => {+ await window.yogurt.settings.setKeepRecordings(on)+ setPrefs(p => p && { ...p, keepRecordings: on })+ }} /><NotesModel /></LoadingContent></div>@@ -410,3 +415,27 @@ function Updates() {</>)}++/** The recording preference uses the same switch row as the other meeting settings. */+export function RecordingSetting({ on, disabled, onChange, reveal = false }: { on: boolean; disabled?: boolean; onChange: (on: boolean) => Promise<void>; reveal?: boolean }) {+ const [busy, setBusy] = useState(false)+ const [failed, setFailed] = useState(false)+ const row = useRef<HTMLDivElement>(null)+ useEffect(() => {+ if (!reveal || disabled) return+ row.current?.scrollIntoView({ block: 'center', behavior: 'instant' })+ row.current?.querySelector<HTMLButtonElement>('[role="switch"]')?.focus({ preventScroll: true })+ }, [reveal, disabled])+ return <div ref={row} data-testid="recording-setting" className="settings-row">+ <div className="settings-row-copy">+ <p className="settings-label">{t('Keep recordings after meetings')}</p>+ <p className="settings-description">{t("When off, new meetings' audio is deleted once the summary is saved.")}</p>+ {failed && <p role="alert" className="text-danger text-xs">{t("Couldn't save your changes")}</p>}+ </div>+ <button data-testid="keep-recordings-toggle" role="switch" aria-checked={on} aria-label={t('Keep recordings after meetings')}+ disabled={disabled || busy} onClick={async () => {+ setBusy(true); setFailed(false)+ try { await onChange(!on) } catch { setFailed(true) } finally { setBusy(false) }+ }} className="settings-toggle"><span className="settings-toggle-knob" /></button>+ </div>+}diff --git a/app/src/renderer/src/workspace.css b/app/src/renderer/src/workspace.cssindex af9d6c84..77aba4a0 100644--- a/app/src/renderer/src/workspace.css+++ b/app/src/renderer/src/workspace.css@@ -649,3 +649,7 @@ body:has(.chat-panel[open]) .app-toast-viewport { inset-inline-end:460px; }.meeting-selection-menu { position:absolute;width:240px;max-width:calc(100vw - 16px);max-height:min(320px,60vh);overflow:auto;border:1px solid var(--line); }.meeting-selection-bar button:focus-visible { outline:2px solid var(--focus);outline-offset:2px; }.meeting-drag-count { border-radius:5px;padding:2px 6px;background:var(--primary);color:#FFFFFF;font-size:11px; }++/* This confirmation and its Settings shortcut stay on one line. */+.app-toast[data-kind=recording-deleted-toast] { inset-inline-start:auto;width:max-content;max-width:calc(100vw - 40px); }+.app-toast[data-kind=recording-deleted-toast] :is(.app-toast-title,.app-toast-action) { white-space:nowrap; }diff --git a/app/src/shared/locales/ar.json b/app/src/shared/locales/ar.jsonindex 768b561a..151f9b85 100644--- a/app/src/shared/locales/ar.json+++ b/app/src/shared/locales/ar.json@@ -723,5 +723,14 @@"AI upgrade skipped": "تم تخطي ترقية الذكاء الاصطناعي","Get it in Settings": "نزّلها من الإعدادات","Suggested": "مقترح",- "Dismiss suggestion": "تجاهل الاقتراح"+ "Dismiss suggestion": "تجاهل الاقتراح",+ "Delete recording": "حذف التسجيل",+ "Delete recording?": "حذف التسجيل؟",+ "The audio is deleted for good. Your transcript and notes stay.": "يُحذف الصوت نهائيًا. يبقى النص والملاحظات.",+ "Keep the audio until the transcript is saved.": "احتفظ بالصوت حتى يُحفظ النص.",+ "Couldn't delete the recording. Try again.": "تعذر حذف التسجيل. حاول مجددًا.",+ "Keep recordings after meetings": "الاحتفاظ بالتسجيلات بعد الاجتماعات",+ "Recording deleted": "تم حذف التسجيل",+ "Turn off in Settings": "إيقافه في الإعدادات",+ "When off, new meetings' audio is deleted once the summary is saved.": "عند إيقافه، يُحذف صوت الاجتماعات الجديدة بعد حفظ الملخص."}diff --git a/app/src/shared/locales/bn.json b/app/src/shared/locales/bn.jsonindex afb1f180..2900d518 100644--- a/app/src/shared/locales/bn.json+++ b/app/src/shared/locales/bn.json@@ -653,5 +653,14 @@"AI upgrade skipped": "AI আপগ্রেড বাদ দেওয়া হয়েছে","Get it in Settings": "সেটিংস থেকে নিন","Suggested": "প্রস্তাবিত",- "Dismiss suggestion": "প্রস্তাব বাতিল করুন"+ "Dismiss suggestion": "প্রস্তাব বাতিল করুন",+ "Delete recording": "রেকর্ডিং মুছুন",+ "Delete recording?": "রেকর্ডিং মুছবেন?",+ "The audio is deleted for good. Your transcript and notes stay.": "অডিও স্থায়ীভাবে মুছে যাবে। প্রতিলিপি ও নোট থাকবে।",+ "Keep the audio until the transcript is saved.": "প্রতিলিপি সংরক্ষণ না হওয়া পর্যন্ত অডিও রাখুন।",+ "Couldn't delete the recording. Try again.": "রেকর্ডিং মোছা যায়নি। আবার চেষ্টা করুন।",+ "Keep recordings after meetings": "মিটিংয়ের পরে রেকর্ডিং রাখুন",+ "Recording deleted": "রেকর্ডিং মোছা হয়েছে",+ "Turn off in Settings": "সেটিংসে বন্ধ করুন",+ "When off, new meetings' audio is deleted once the summary is saved.": "বন্ধ থাকলে সারাংশ সেভের পর নতুন মিটিংয়ের অডিও মুছবে।"}diff --git a/app/src/shared/locales/cs.json b/app/src/shared/locales/cs.jsonindex 14af44e8..ebb00339 100644--- a/app/src/shared/locales/cs.json+++ b/app/src/shared/locales/cs.json@@ -696,5 +696,14 @@"AI upgrade skipped": "Upgrade AI přeskočen","Get it in Settings": "Stáhnout v nastavení","Suggested": "Doporučeno",- "Dismiss suggestion": "Odmítnout návrh"+ "Dismiss suggestion": "Odmítnout návrh",+ "Delete recording": "Smazat nahrávku",+ "Delete recording?": "Smazat nahrávku?",+ "The audio is deleted for good. Your transcript and notes stay.": "Zvuk se trvale smaže. Přepis a poznámky zůstanou.",+ "Keep the audio until the transcript is saved.": "Zvuk ponechte, dokud se neuloží přepis.",+ "Couldn't delete the recording. Try again.": "Nahrávku se nepodařilo smazat. Zkuste to znovu.",+ "Keep recordings after meetings": "Ponechat nahrávky po schůzkách",+ "Recording deleted": "Nahrávka smazána",+ "Turn off in Settings": "Vypnout v nastavení",+ "When off, new meetings' audio is deleted once the summary is saved.": "Při vypnutí se zvuk nových schůzek smaže po uložení shrnutí."}diff --git a/app/src/shared/locales/da.json b/app/src/shared/locales/da.jsonindex 0c49ef10..17f4e272 100644--- a/app/src/shared/locales/da.json+++ b/app/src/shared/locales/da.json@@ -662,5 +662,14 @@"AI upgrade skipped": "AI-opgradering sprunget over","Get it in Settings": "Hent i Indstillinger","Suggested": "Foreslået",- "Dismiss suggestion": "Afvis forslag"+ "Dismiss suggestion": "Afvis forslag",+ "Delete recording": "Slet optagelse",+ "Delete recording?": "Slet optagelse?",+ "The audio is deleted for good. Your transcript and notes stay.": "Lyden slettes permanent. Transskription og noter bevares.",+ "Keep the audio until the transcript is saved.": "Behold lyden, indtil transskriptionen er gemt.",+ "Couldn't delete the recording. Try again.": "Optagelsen kunne ikke slettes. Prøv igen.",+ "Keep recordings after meetings": "Behold optagelser efter møder",+ "Recording deleted": "Optagelse slettet",+ "Turn off in Settings": "Slå fra i Indstillinger",+ "When off, new meetings' audio is deleted once the summary is saved.": "Når slået fra, slettes nye møders lyd, når resuméet er gemt."}diff --git a/app/src/shared/locales/de.json b/app/src/shared/locales/de.jsonindex 798d10c9..a0000cbe 100644--- a/app/src/shared/locales/de.json+++ b/app/src/shared/locales/de.json@@ -662,5 +662,14 @@"AI upgrade skipped": "KI-Upgrade übersprungen","Get it in Settings": "In Einstellungen laden","Suggested": "Vorgeschlagen",- "Dismiss suggestion": "Vorschlag verwerfen"+ "Dismiss suggestion": "Vorschlag verwerfen",+ "Delete recording": "Aufnahme löschen",+ "Delete recording?": "Aufnahme löschen?",+ "The audio is deleted for good. Your transcript and notes stay.": "Die Audiodatei wird endgültig gelöscht. Transkript und Notizen bleiben.",+ "Keep the audio until the transcript is saved.": "Audio behalten, bis das Transkript gespeichert ist.",+ "Couldn't delete the recording. Try again.": "Aufnahme konnte nicht gelöscht werden. Erneut versuchen.",+ "Keep recordings after meetings": "Aufnahmen nach Meetings behalten",+ "Recording deleted": "Aufnahme gelöscht",+ "Turn off in Settings": "In Einstellungen ausschalten",+ "When off, new meetings' audio is deleted once the summary is saved.": "Wenn aus, wird Audio neuer Meetings nach Speichern der Zusammenfassung gelöscht."}diff --git a/app/src/shared/locales/el.json b/app/src/shared/locales/el.jsonindex 54bd8f87..96cb4793 100644--- a/app/src/shared/locales/el.json+++ b/app/src/shared/locales/el.json@@ -665,5 +665,14 @@"AI upgrade skipped": "Η αναβάθμιση AI παραλείφθηκε","Get it in Settings": "Λήψη στις Ρυθμίσεις","Suggested": "Προτεινόμενο",- "Dismiss suggestion": "Απόρριψη πρότασης"+ "Dismiss suggestion": "Απόρριψη πρότασης",+ "Delete recording": "Διαγραφή ηχογράφησης",+ "Delete recording?": "Διαγραφή ηχογράφησης;",+ "The audio is deleted for good. Your transcript and notes stay.": "Ο ήχος διαγράφεται οριστικά. Η απομαγνητοφώνηση και οι σημειώσεις μένουν.",+ "Keep the audio until the transcript is saved.": "Κρατήστε τον ήχο μέχρι να αποθηκευτεί η απομαγνητοφώνηση.",+ "Couldn't delete the recording. Try again.": "Η διαγραφή απέτυχε. Δοκιμάστε ξανά.",+ "Keep recordings after meetings": "Διατήρηση ηχογραφήσεων μετά τις συναντήσεις",+ "Recording deleted": "Η ηχογράφηση διαγράφηκε",+ "Turn off in Settings": "Απενεργοποίηση στις Ρυθμίσεις",+ "When off, new meetings' audio is deleted once the summary is saved.": "Αν κλείσει, ο ήχος νέων συναντήσεων διαγράφεται μόλις σωθεί η σύνοψη."}diff --git a/app/src/shared/locales/en.json b/app/src/shared/locales/en.jsonindex 229a527f..c14fe052 100644--- a/app/src/shared/locales/en.json+++ b/app/src/shared/locales/en.json@@ -103,5 +103,14 @@"AI upgrade skipped": "AI upgrade skipped","Get it in Settings": "Get it in Settings","Suggested": "Suggested",- "Dismiss suggestion": "Dismiss suggestion"+ "Dismiss suggestion": "Dismiss suggestion",+ "Delete recording": "Delete recording",+ "Delete recording?": "Delete recording?",+ "The audio is deleted for good. Your transcript and notes stay.": "The audio is deleted for good. Your transcript and notes stay.",+ "Keep the audio until the transcript is saved.": "Keep the audio until the transcript is saved.",+ "Couldn't delete the recording. Try again.": "Couldn't delete the recording. Try again.",+ "Keep recordings after meetings": "Keep recordings after meetings",+ "Recording deleted": "Recording deleted",+ "Turn off in Settings": "Turn off in Settings",+ "When off, new meetings' audio is deleted once the summary is saved.": "When off, new meetings' audio is deleted once the summary is saved."}diff --git a/app/src/shared/locales/es.json b/app/src/shared/locales/es.jsonindex 4abfcf05..a702ec3a 100644--- a/app/src/shared/locales/es.json+++ b/app/src/shared/locales/es.json@@ -677,5 +677,14 @@"AI upgrade skipped": "Mejora de IA omitida","Get it in Settings": "Descargar en Ajustes","Suggested": "Sugerida",- "Dismiss suggestion": "Descartar sugerencia"+ "Dismiss suggestion": "Descartar sugerencia",+ "Delete recording": "Eliminar grabación",+ "Delete recording?": "¿Eliminar grabación?",+ "The audio is deleted for good. Your transcript and notes stay.": "El audio se borra para siempre. La transcripción y las notas se conservan.",+ "Keep the audio until the transcript is saved.": "Conserva el audio hasta que se guarde la transcripción.",+ "Couldn't delete the recording. Try again.": "No se pudo eliminar la grabación. Inténtalo de nuevo.",+ "Keep recordings after meetings": "Conservar grabaciones tras las reuniones",+ "Recording deleted": "Grabación eliminada",+ "Turn off in Settings": "Desactivar en Ajustes",+ "When off, new meetings' audio is deleted once the summary is saved.": "Si se desactiva, el audio de nuevas reuniones se borra al guardar el resumen."}diff --git a/app/src/shared/locales/fi.json b/app/src/shared/locales/fi.jsonindex 8fd78f56..a4d5fbcc 100644--- a/app/src/shared/locales/fi.json+++ b/app/src/shared/locales/fi.json@@ -665,5 +665,14 @@"AI upgrade skipped": "Tekoälypäivitys ohitettu","Get it in Settings": "Lataa asetuksista","Suggested": "Ehdotettu",- "Dismiss suggestion": "Hylkää ehdotus"+ "Dismiss suggestion": "Hylkää ehdotus",+ "Delete recording": "Poista tallenne",+ "Delete recording?": "Poistetaanko tallenne?",+ "The audio is deleted for good. Your transcript and notes stay.": "Ääni poistetaan pysyvästi. Litterointi ja muistiinpanot säilyvät.",+ "Keep the audio until the transcript is saved.": "Säilytä ääni, kunnes litterointi on tallennettu.",+ "Couldn't delete the recording. Try again.": "Tallennetta ei voitu poistaa. Yritä uudelleen.",+ "Keep recordings after meetings": "Säilytä tallenteet kokousten jälkeen",+ "Recording deleted": "Tallenne poistettu",+ "Turn off in Settings": "Poista käytöstä asetuksissa",+ "When off, new meetings' audio is deleted once the summary is saved.": "Pois päältä uusien kokousten ääni poistetaan yhteenvedon tallennuttua."}diff --git a/app/src/shared/locales/fil.json b/app/src/shared/locales/fil.jsonindex e9bbf967..822148cb 100644--- a/app/src/shared/locales/fil.json+++ b/app/src/shared/locales/fil.json@@ -662,5 +662,14 @@"AI upgrade skipped": "Nilaktawan ang AI upgrade","Get it in Settings": "Kunin sa Mga Setting","Suggested": "Iminungkahi",- "Dismiss suggestion": "Balewalain ang mungkahi"+ "Dismiss suggestion": "Balewalain ang mungkahi",+ "Delete recording": "Burahin ang recording",+ "Delete recording?": "Burahin ang recording?",+ "The audio is deleted for good. Your transcript and notes stay.": "Permanenteng mabubura ang audio. Mananatili ang transcript at mga tala.",+ "Keep the audio until the transcript is saved.": "Itago ang audio hanggang ma-save ang transcript.",+ "Couldn't delete the recording. Try again.": "Hindi mabura ang recording. Subukan ulit.",+ "Keep recordings after meetings": "Itago ang recordings pagkatapos ng pulong",+ "Recording deleted": "Nabura ang recording",+ "Turn off in Settings": "I-off sa Settings",+ "When off, new meetings' audio is deleted once the summary is saved.": "Kapag naka-off, buburahin ang audio ng bagong pulong pag na-save ang buod."}diff --git a/app/src/shared/locales/fr.json b/app/src/shared/locales/fr.jsonindex 44b38d3a..1b8a6500 100644--- a/app/src/shared/locales/fr.json+++ b/app/src/shared/locales/fr.json@@ -677,5 +677,14 @@"AI upgrade skipped": "Amélioration IA ignorée","Get it in Settings": "Obtenir dans Réglages","Suggested": "Suggéré",- "Dismiss suggestion": "Ignorer la suggestion"+ "Dismiss suggestion": "Ignorer la suggestion",+ "Delete recording": "Supprimer l’enregistrement",+ "Delete recording?": "Supprimer l’enregistrement ?",+ "The audio is deleted for good. Your transcript and notes stay.": "L’audio est supprimé définitivement. La transcription et les notes restent.",+ "Keep the audio until the transcript is saved.": "Gardez l’audio jusqu’à l’enregistrement de la transcription.",+ "Couldn't delete the recording. Try again.": "Impossible de supprimer l’enregistrement. Réessayez.",+ "Keep recordings after meetings": "Garder les enregistrements après les réunions",+ "Recording deleted": "Enregistrement supprimé",+ "Turn off in Settings": "Désactiver dans Réglages",+ "When off, new meetings' audio is deleted once the summary is saved.": "Si désactivé, l’audio des nouvelles réunions est supprimé après sauvegarde du résumé."}diff --git a/app/src/shared/locales/he.json b/app/src/shared/locales/he.jsonindex 5be0dda0..4fdb9adb 100644--- a/app/src/shared/locales/he.json+++ b/app/src/shared/locales/he.json@@ -674,5 +674,14 @@"AI upgrade skipped": "שדרוג ה־AI דולג","Get it in Settings": "הורדה בהגדרות","Suggested": "מוצע",- "Dismiss suggestion": "דחיית ההצעה"+ "Dismiss suggestion": "דחיית ההצעה",+ "Delete recording": "מחיקת הקלטה",+ "Delete recording?": "למחוק את ההקלטה?",+ "The audio is deleted for good. Your transcript and notes stay.": "השמע יימחק לצמיתות. התמליל וההערות יישארו.",+ "Keep the audio until the transcript is saved.": "יש לשמור את השמע עד לשמירת התמליל.",+ "Couldn't delete the recording. Try again.": "לא ניתן למחוק את ההקלטה. נסו שוב.",+ "Keep recordings after meetings": "שמירת הקלטות אחרי פגישות",+ "Recording deleted": "ההקלטה נמחקה",+ "Turn off in Settings": "כיבוי בהגדרות",+ "When off, new meetings' audio is deleted once the summary is saved.": "כשכבוי, השמע של פגישות חדשות נמחק לאחר שמירת הסיכום."}diff --git a/app/src/shared/locales/hi.json b/app/src/shared/locales/hi.jsonindex 2340cbdb..08eea257 100644--- a/app/src/shared/locales/hi.json+++ b/app/src/shared/locales/hi.json@@ -653,5 +653,14 @@"AI upgrade skipped": "AI अपग्रेड छोड़ दिया","Get it in Settings": "सेटिंग्स से लें","Suggested": "सुझाया गया",- "Dismiss suggestion": "सुझाव खारिज करें"+ "Dismiss suggestion": "सुझाव खारिज करें",+ "Delete recording": "रिकॉर्डिंग मिटाएँ",+ "Delete recording?": "रिकॉर्डिंग मिटाएँ?",+ "The audio is deleted for good. Your transcript and notes stay.": "ऑडियो हमेशा के लिए मिट जाएगा। प्रतिलिपि और नोट्स रहेंगे।",+ "Keep the audio until the transcript is saved.": "प्रतिलिपि सेव होने तक ऑडियो रखें।",+ "Couldn't delete the recording. Try again.": "रिकॉर्डिंग नहीं मिट सकी। फिर कोशिश करें।",+ "Keep recordings after meetings": "मीटिंग के बाद रिकॉर्डिंग रखें",+ "Recording deleted": "रिकॉर्डिंग मिटा दी गई",+ "Turn off in Settings": "सेटिंग्स में बंद करें",+ "When off, new meetings' audio is deleted once the summary is saved.": "बंद होने पर नई मीटिंग का ऑडियो सारांश सेव होने के बाद मिटेगा।"}diff --git a/app/src/shared/locales/hu.json b/app/src/shared/locales/hu.jsonindex de568d66..1ceb9253 100644--- a/app/src/shared/locales/hu.json+++ b/app/src/shared/locales/hu.json@@ -653,5 +653,14 @@"AI upgrade skipped": "AI-frissítés kihagyva","Get it in Settings": "Letöltés a Beállításokban","Suggested": "Javasolt",- "Dismiss suggestion": "Javaslat elvetése"+ "Dismiss suggestion": "Javaslat elvetése",+ "Delete recording": "Felvétel törlése",+ "Delete recording?": "Törli a felvételt?",+ "The audio is deleted for good. Your transcript and notes stay.": "A hang végleg törlődik. Az átirat és a jegyzetek megmaradnak.",+ "Keep the audio until the transcript is saved.": "Tartsa meg a hangot az átirat mentéséig.",+ "Couldn't delete the recording. Try again.": "A felvételt nem sikerült törölni. Próbálja újra.",+ "Keep recordings after meetings": "Felvételek megőrzése a megbeszélések után",+ "Recording deleted": "Felvétel törölve",+ "Turn off in Settings": "Kikapcsolás a beállításokban",+ "When off, new meetings' audio is deleted once the summary is saved.": "Kikapcsolva az új megbeszélések hangja az összefoglaló mentése után törlődik."}diff --git a/app/src/shared/locales/id.json b/app/src/shared/locales/id.jsonindex d7252ad8..c6365be3 100644--- a/app/src/shared/locales/id.json+++ b/app/src/shared/locales/id.json@@ -617,5 +617,14 @@"AI upgrade skipped": "Upgrade AI dilewati","Get it in Settings": "Unduh di Pengaturan","Suggested": "Disarankan",- "Dismiss suggestion": "Abaikan saran"+ "Dismiss suggestion": "Abaikan saran",+ "Delete recording": "Hapus rekaman",+ "Delete recording?": "Hapus rekaman?",+ "The audio is deleted for good. Your transcript and notes stay.": "Audio dihapus permanen. Transkrip dan catatan tetap ada.",+ "Keep the audio until the transcript is saved.": "Simpan audio hingga transkrip tersimpan.",+ "Couldn't delete the recording. Try again.": "Rekaman gagal dihapus. Coba lagi.",+ "Keep recordings after meetings": "Simpan rekaman setelah rapat",+ "Recording deleted": "Rekaman dihapus",+ "Turn off in Settings": "Matikan di Pengaturan",+ "When off, new meetings' audio is deleted once the summary is saved.": "Jika dimatikan, audio rapat baru dihapus setelah ringkasan tersimpan."}diff --git a/app/src/shared/locales/it.json b/app/src/shared/locales/it.jsonindex 51569e90..8baee40c 100644--- a/app/src/shared/locales/it.json+++ b/app/src/shared/locales/it.json@@ -680,5 +680,14 @@"AI upgrade skipped": "Upgrade IA saltato","Get it in Settings": "Scarica in Impostazioni","Suggested": "Suggerita",- "Dismiss suggestion": "Ignora suggerimento"+ "Dismiss suggestion": "Ignora suggerimento",+ "Delete recording": "Elimina registrazione",+ "Delete recording?": "Eliminare la registrazione?",+ "The audio is deleted for good. Your transcript and notes stay.": "L’audio viene eliminato per sempre. Trascrizione e note restano.",+ "Keep the audio until the transcript is saved.": "Conserva l’audio finché la trascrizione non è salvata.",+ "Couldn't delete the recording. Try again.": "Impossibile eliminare la registrazione. Riprova.",+ "Keep recordings after meetings": "Conserva le registrazioni dopo le riunioni",+ "Recording deleted": "Registrazione eliminata",+ "Turn off in Settings": "Disattiva nelle Impostazioni",+ "When off, new meetings' audio is deleted once the summary is saved.": "Se disattivato, l’audio delle nuove riunioni si elimina dopo aver salvato il riepilogo."}diff --git a/app/src/shared/locales/ja.json b/app/src/shared/locales/ja.jsonindex e7a7c775..d54b76d3 100644--- a/app/src/shared/locales/ja.json+++ b/app/src/shared/locales/ja.json@@ -617,5 +617,14 @@"AI upgrade skipped": "AIアップグレードをスキップ","Get it in Settings": "設定からダウンロード","Suggested": "おすすめ",- "Dismiss suggestion": "提案を非表示"+ "Dismiss suggestion": "提案を非表示",+ "Delete recording": "録音を削除",+ "Delete recording?": "録音を削除しますか?",+ "The audio is deleted for good. Your transcript and notes stay.": "音声は完全に削除されます。文字起こしとメモは残ります。",+ "Keep the audio until the transcript is saved.": "文字起こしが保存されるまで音声を残してください。",+ "Couldn't delete the recording. Try again.": "録音を削除できませんでした。もう一度お試しください。",+ "Keep recordings after meetings": "会議後も録音を保存",+ "Recording deleted": "録音を削除しました",+ "Turn off in Settings": "設定でオフにする",+ "When off, new meetings' audio is deleted once the summary is saved.": "オフにすると、新しい会議の音声は要約の保存後に削除されます。"}diff --git a/app/src/shared/locales/ko.json b/app/src/shared/locales/ko.jsonindex 2ce41bf4..2ac75fa4 100644--- a/app/src/shared/locales/ko.json+++ b/app/src/shared/locales/ko.json@@ -617,5 +617,14 @@"AI upgrade skipped": "AI 업그레이드 건너뜀","Get it in Settings": "설정에서 다운로드","Suggested": "추천",- "Dismiss suggestion": "추천 닫기"+ "Dismiss suggestion": "추천 닫기",+ "Delete recording": "녹음 삭제",+ "Delete recording?": "녹음을 삭제할까요?",+ "The audio is deleted for good. Your transcript and notes stay.": "오디오가 영구 삭제됩니다. 대화록과 메모는 유지됩니다.",+ "Keep the audio until the transcript is saved.": "대화록이 저장될 때까지 오디오를 보관하세요.",+ "Couldn't delete the recording. Try again.": "녹음을 삭제하지 못했습니다. 다시 시도하세요.",+ "Keep recordings after meetings": "회의 후 녹음 보관",+ "Recording deleted": "녹음이 삭제되었습니다",+ "Turn off in Settings": "설정에서 끄기",+ "When off, new meetings' audio is deleted once the summary is saved.": "끄면 새 회의의 오디오가 요약 저장 후 삭제됩니다."}diff --git a/app/src/shared/locales/ms.json b/app/src/shared/locales/ms.jsonindex 16fde7e6..eff636a4 100644--- a/app/src/shared/locales/ms.json+++ b/app/src/shared/locales/ms.json@@ -617,5 +617,14 @@"AI upgrade skipped": "Naik taraf AI dilangkau","Get it in Settings": "Muat turun di Tetapan","Suggested": "Dicadangkan",- "Dismiss suggestion": "Abaikan cadangan"+ "Dismiss suggestion": "Abaikan cadangan",+ "Delete recording": "Padam rakaman",+ "Delete recording?": "Padam rakaman?",+ "The audio is deleted for good. Your transcript and notes stay.": "Audio dipadam secara kekal. Transkrip dan nota dikekalkan.",+ "Keep the audio until the transcript is saved.": "Simpan audio sehingga transkrip disimpan.",+ "Couldn't delete the recording. Try again.": "Rakaman tidak dapat dipadam. Cuba lagi.",+ "Keep recordings after meetings": "Simpan rakaman selepas mesyuarat",+ "Recording deleted": "Rakaman dipadam",+ "Turn off in Settings": "Matikan dalam Tetapan",+ "When off, new meetings' audio is deleted once the summary is saved.": "Jika dimatikan, audio mesyuarat baharu dipadam selepas ringkasan disimpan."}diff --git a/app/src/shared/locales/nb.json b/app/src/shared/locales/nb.jsonindex 9742d684..8c753023 100644--- a/app/src/shared/locales/nb.json+++ b/app/src/shared/locales/nb.json@@ -662,5 +662,14 @@"AI upgrade skipped": "AI-oppgradering hoppet over","Get it in Settings": "Hent i Innstillinger","Suggested": "Foreslått",- "Dismiss suggestion": "Avvis forslag"+ "Dismiss suggestion": "Avvis forslag",+ "Delete recording": "Slett opptak",+ "Delete recording?": "Slette opptaket?",+ "The audio is deleted for good. Your transcript and notes stay.": "Lyden slettes for godt. Transkripsjonen og notatene beholdes.",+ "Keep the audio until the transcript is saved.": "Behold lyden til transkripsjonen er lagret.",+ "Couldn't delete the recording. Try again.": "Kunne ikke slette opptaket. Prøv igjen.",+ "Keep recordings after meetings": "Behold opptak etter møter",+ "Recording deleted": "Opptak slettet",+ "Turn off in Settings": "Slå av i Innstillinger",+ "When off, new meetings' audio is deleted once the summary is saved.": "Når avslått, slettes lyd fra nye møter etter at sammendraget er lagret."}diff --git a/app/src/shared/locales/nl.json b/app/src/shared/locales/nl.jsonindex 056a8b6c..aa679066 100644--- a/app/src/shared/locales/nl.json+++ b/app/src/shared/locales/nl.json@@ -662,5 +662,14 @@"AI upgrade skipped": "AI-upgrade overgeslagen","Get it in Settings": "Download in Instellingen","Suggested": "Voorgesteld",- "Dismiss suggestion": "Suggestie afwijzen"+ "Dismiss suggestion": "Suggestie afwijzen",+ "Delete recording": "Opname verwijderen",+ "Delete recording?": "Opname verwijderen?",+ "The audio is deleted for good. Your transcript and notes stay.": "De audio wordt voorgoed verwijderd. Transcript en notities blijven.",+ "Keep the audio until the transcript is saved.": "Bewaar de audio totdat het transcript is opgeslagen.",+ "Couldn't delete the recording. Try again.": "Opname kon niet worden verwijderd. Probeer opnieuw.",+ "Keep recordings after meetings": "Opnamen na vergaderingen bewaren",+ "Recording deleted": "Opname verwijderd",+ "Turn off in Settings": "Uitzetten in Instellingen",+ "When off, new meetings' audio is deleted once the summary is saved.": "Indien uit, wordt audio van nieuwe vergaderingen gewist zodra de samenvatting is opgeslagen."}diff --git a/app/src/shared/locales/pl.json b/app/src/shared/locales/pl.jsonindex f7807067..a288fca0 100644--- a/app/src/shared/locales/pl.json+++ b/app/src/shared/locales/pl.json@@ -695,5 +695,14 @@"AI upgrade skipped": "Ulepszenie AI pominięte","Get it in Settings": "Pobierz w Ustawieniach","Suggested": "Sugerowany",- "Dismiss suggestion": "Odrzuć sugestię"+ "Dismiss suggestion": "Odrzuć sugestię",+ "Delete recording": "Usuń nagranie",+ "Delete recording?": "Usunąć nagranie?",+ "The audio is deleted for good. Your transcript and notes stay.": "Dźwięk zostanie trwale usunięty. Transkrypcja i notatki pozostaną.",+ "Keep the audio until the transcript is saved.": "Zachowaj dźwięk do zapisania transkrypcji.",+ "Couldn't delete the recording. Try again.": "Nie udało się usunąć nagrania. Spróbuj ponownie.",+ "Keep recordings after meetings": "Zachowuj nagrania po spotkaniach",+ "Recording deleted": "Nagranie usunięte",+ "Turn off in Settings": "Wyłącz w Ustawieniach",+ "When off, new meetings' audio is deleted once the summary is saved.": "Po wyłączeniu dźwięk nowych spotkań znika po zapisaniu podsumowania."}diff --git a/app/src/shared/locales/pt-BR.json b/app/src/shared/locales/pt-BR.jsonindex 7ecccf63..c519d947 100644--- a/app/src/shared/locales/pt-BR.json+++ b/app/src/shared/locales/pt-BR.json@@ -677,5 +677,14 @@"AI upgrade skipped": "Melhoria de IA ignorada","Get it in Settings": "Baixe nos Ajustes","Suggested": "Sugerida",- "Dismiss suggestion": "Dispensar sugestão"+ "Dismiss suggestion": "Dispensar sugestão",+ "Delete recording": "Excluir gravação",+ "Delete recording?": "Excluir gravação?",+ "The audio is deleted for good. Your transcript and notes stay.": "O áudio será excluído para sempre. A transcrição e as notas ficam.",+ "Keep the audio until the transcript is saved.": "Mantenha o áudio até a transcrição ser salva.",+ "Couldn't delete the recording. Try again.": "Não foi possível excluir a gravação. Tente novamente.",+ "Keep recordings after meetings": "Manter gravações após as reuniões",+ "Recording deleted": "Gravação excluída",+ "Turn off in Settings": "Desativar nos Ajustes",+ "When off, new meetings' audio is deleted once the summary is saved.": "Se desativado, o áudio de novas reuniões é excluído após salvar o resumo."}diff --git a/app/src/shared/locales/ro.json b/app/src/shared/locales/ro.jsonindex 8e2cd1ec..bb170ab6 100644--- a/app/src/shared/locales/ro.json+++ b/app/src/shared/locales/ro.json@@ -680,5 +680,14 @@"AI upgrade skipped": "Actualizare AI omisă","Get it in Settings": "Descărcați din Setări","Suggested": "Sugerat",- "Dismiss suggestion": "Respinge sugestia"+ "Dismiss suggestion": "Respinge sugestia",+ "Delete recording": "Șterge înregistrarea",+ "Delete recording?": "Ștergi înregistrarea?",+ "The audio is deleted for good. Your transcript and notes stay.": "Sunetul se șterge definitiv. Transcrierea și notițele rămân.",+ "Keep the audio until the transcript is saved.": "Păstrează sunetul până la salvarea transcrierii.",+ "Couldn't delete the recording. Try again.": "Înregistrarea nu a putut fi ștearsă. Încearcă din nou.",+ "Keep recordings after meetings": "Păstrează înregistrările după întâlniri",+ "Recording deleted": "Înregistrare ștearsă",+ "Turn off in Settings": "Dezactivează din Setări",+ "When off, new meetings' audio is deleted once the summary is saved.": "Când e oprit, sunetul întâlnirilor noi se șterge după salvarea rezumatului."}diff --git a/app/src/shared/locales/ru.json b/app/src/shared/locales/ru.jsonindex 2d4790ff..9d7736d5 100644--- a/app/src/shared/locales/ru.json+++ b/app/src/shared/locales/ru.json@@ -692,5 +692,14 @@"AI upgrade skipped": "Обновление ИИ пропущено","Get it in Settings": "Скачать в настройках","Suggested": "Предложено",- "Dismiss suggestion": "Отклонить предложение"+ "Dismiss suggestion": "Отклонить предложение",+ "Delete recording": "Удалить запись",+ "Delete recording?": "Удалить запись?",+ "The audio is deleted for good. Your transcript and notes stay.": "Аудио удалится навсегда. Расшифровка и заметки останутся.",+ "Keep the audio until the transcript is saved.": "Сохраните аудио до сохранения расшифровки.",+ "Couldn't delete the recording. Try again.": "Не удалось удалить запись. Попробуйте ещё раз.",+ "Keep recordings after meetings": "Хранить записи после встреч",+ "Recording deleted": "Запись удалена",+ "Turn off in Settings": "Выключить в настройках",+ "When off, new meetings' audio is deleted once the summary is saved.": "Если выключено, аудио новых встреч удаляется после сохранения сводки."}diff --git a/app/src/shared/locales/sv.json b/app/src/shared/locales/sv.jsonindex d97659bb..33df67ef 100644--- a/app/src/shared/locales/sv.json+++ b/app/src/shared/locales/sv.json@@ -665,5 +665,14 @@"AI upgrade skipped": "AI-uppgradering överhoppad","Get it in Settings": "Hämta i Inställningar","Suggested": "Föreslagen",- "Dismiss suggestion": "Avvisa förslag"+ "Dismiss suggestion": "Avvisa förslag",+ "Delete recording": "Radera inspelning",+ "Delete recording?": "Radera inspelningen?",+ "The audio is deleted for good. Your transcript and notes stay.": "Ljudet raderas permanent. Transkriptionen och anteckningarna finns kvar.",+ "Keep the audio until the transcript is saved.": "Behåll ljudet tills transkriptionen har sparats.",+ "Couldn't delete the recording. Try again.": "Kunde inte radera inspelningen. Försök igen.",+ "Keep recordings after meetings": "Behåll inspelningar efter möten",+ "Recording deleted": "Inspelning raderad",+ "Turn off in Settings": "Stäng av i Inställningar",+ "When off, new meetings' audio is deleted once the summary is saved.": "När avstängt raderas nya mötens ljud när sammanfattningen har sparats."}diff --git a/app/src/shared/locales/th.json b/app/src/shared/locales/th.jsonindex 4df8d498..bebf3314 100644--- a/app/src/shared/locales/th.json+++ b/app/src/shared/locales/th.json@@ -617,5 +617,14 @@"AI upgrade skipped": "ข้ามการอัปเกรด AI แล้ว","Get it in Settings": "ดาวน์โหลดในการตั้งค่า","Suggested": "แนะนำ",- "Dismiss suggestion": "ปิดคำแนะนำ"+ "Dismiss suggestion": "ปิดคำแนะนำ",+ "Delete recording": "ลบเสียงบันทึก",+ "Delete recording?": "ลบเสียงบันทึกไหม",+ "The audio is deleted for good. Your transcript and notes stay.": "เสียงจะถูกลบถาวร ข้อความถอดเสียงและโน้ตจะยังอยู่",+ "Keep the audio until the transcript is saved.": "เก็บเสียงไว้จนกว่าจะบันทึกข้อความถอดเสียงแล้ว",+ "Couldn't delete the recording. Try again.": "ลบเสียงบันทึกไม่ได้ ลองอีกครั้ง",+ "Keep recordings after meetings": "เก็บเสียงบันทึกหลังประชุม",+ "Recording deleted": "ลบเสียงบันทึกแล้ว",+ "Turn off in Settings": "ปิดในการตั้งค่า",+ "When off, new meetings' audio is deleted once the summary is saved.": "เมื่อปิด เสียงของการประชุมใหม่จะถูกลบหลังบันทึกสรุปแล้ว"}diff --git a/app/src/shared/locales/tr.json b/app/src/shared/locales/tr.jsonindex 83124cee..4a52ff46 100644--- a/app/src/shared/locales/tr.json+++ b/app/src/shared/locales/tr.json@@ -653,5 +653,14 @@"AI upgrade skipped": "AI yükseltmesi atlandı","Get it in Settings": "Ayarlardan indir","Suggested": "Önerilen",- "Dismiss suggestion": "Öneriyi reddet"+ "Dismiss suggestion": "Öneriyi reddet",+ "Delete recording": "Kaydı sil",+ "Delete recording?": "Kayıt silinsin mi?",+ "The audio is deleted for good. Your transcript and notes stay.": "Ses kalıcı olarak silinir. Döküm ve notlar kalır.",+ "Keep the audio until the transcript is saved.": "Döküm kaydedilene kadar sesi saklayın.",+ "Couldn't delete the recording. Try again.": "Kayıt silinemedi. Yeniden deneyin.",+ "Keep recordings after meetings": "Toplantılardan sonra kayıtları sakla",+ "Recording deleted": "Kayıt silindi",+ "Turn off in Settings": "Ayarlardan kapat",+ "When off, new meetings' audio is deleted once the summary is saved.": "Kapalıyken yeni toplantıların sesi özet kaydedilince silinir."}diff --git a/app/src/shared/locales/uk.json b/app/src/shared/locales/uk.jsonindex 4303682b..52e6bbb3 100644--- a/app/src/shared/locales/uk.json+++ b/app/src/shared/locales/uk.json@@ -692,5 +692,14 @@"AI upgrade skipped": "Оновлення ШІ пропущено","Get it in Settings": "Завантажити в налаштуваннях","Suggested": "Запропоновано",- "Dismiss suggestion": "Відхилити пропозицію"+ "Dismiss suggestion": "Відхилити пропозицію",+ "Delete recording": "Видалити запис",+ "Delete recording?": "Видалити запис?",+ "The audio is deleted for good. Your transcript and notes stay.": "Аудіо видалиться назавжди. Розшифровка й нотатки залишаться.",+ "Keep the audio until the transcript is saved.": "Зберігайте аудіо до збереження розшифровки.",+ "Couldn't delete the recording. Try again.": "Не вдалося видалити запис. Спробуйте ще раз.",+ "Keep recordings after meetings": "Зберігати записи після зустрічей",+ "Recording deleted": "Запис видалено",+ "Turn off in Settings": "Вимкнути в налаштуваннях",+ "When off, new meetings' audio is deleted once the summary is saved.": "Якщо вимкнено, аудіо нових зустрічей видаляється після збереження підсумку."}diff --git a/app/src/shared/locales/vi.json b/app/src/shared/locales/vi.jsonindex 206ada75..9f7a774b 100644--- a/app/src/shared/locales/vi.json+++ b/app/src/shared/locales/vi.json@@ -617,5 +617,14 @@"AI upgrade skipped": "Đã bỏ qua nâng cấp AI","Get it in Settings": "Tải trong Cài đặt","Suggested": "Được đề xuất",- "Dismiss suggestion": "Bỏ qua đề xuất"+ "Dismiss suggestion": "Bỏ qua đề xuất",+ "Delete recording": "Xóa bản ghi",+ "Delete recording?": "Xóa bản ghi?",+ "The audio is deleted for good. Your transcript and notes stay.": "Âm thanh sẽ bị xóa vĩnh viễn. Bản chép lời và ghi chú vẫn còn.",+ "Keep the audio until the transcript is saved.": "Giữ âm thanh cho đến khi lưu bản chép lời.",+ "Couldn't delete the recording. Try again.": "Không thể xóa bản ghi. Hãy thử lại.",+ "Keep recordings after meetings": "Giữ bản ghi sau cuộc họp",+ "Recording deleted": "Đã xóa bản ghi",+ "Turn off in Settings": "Tắt trong Cài đặt",+ "When off, new meetings' audio is deleted once the summary is saved.": "Khi tắt, âm thanh cuộc họp mới sẽ bị xóa sau khi lưu tóm tắt."}diff --git a/app/src/shared/locales/zh-CN.json b/app/src/shared/locales/zh-CN.jsonindex cc338b36..1b23dcc9 100644--- a/app/src/shared/locales/zh-CN.json+++ b/app/src/shared/locales/zh-CN.json@@ -617,5 +617,14 @@"AI upgrade skipped": "已跳过 AI 升级","Get it in Settings": "前往设置下载","Suggested": "建议",- "Dismiss suggestion": "忽略建议"+ "Dismiss suggestion": "忽略建议",+ "Delete recording": "删除录音",+ "Delete recording?": "删除录音?",+ "The audio is deleted for good. Your transcript and notes stay.": "音频将永久删除。转录文本和笔记会保留。",+ "Keep the audio until the transcript is saved.": "请保留音频,直到转录文本保存完成。",+ "Couldn't delete the recording. Try again.": "无法删除录音。请重试。",+ "Keep recordings after meetings": "会后保留录音",+ "Recording deleted": "录音已删除",+ "Turn off in Settings": "在设置中关闭",+ "When off, new meetings' audio is deleted once the summary is saved.": "关闭后,新会议的音频将在摘要保存后删除。"}diff --git a/app/src/shared/locales/zh-TW.json b/app/src/shared/locales/zh-TW.jsonindex d41ed61a..3df5e237 100644--- a/app/src/shared/locales/zh-TW.json+++ b/app/src/shared/locales/zh-TW.json@@ -617,5 +617,14 @@"AI upgrade skipped": "已略過 AI 升級","Get it in Settings": "前往設定下載","Suggested": "建議",- "Dismiss suggestion": "忽略建議"+ "Dismiss suggestion": "忽略建議",+ "Delete recording": "刪除錄音",+ "Delete recording?": "刪除錄音?",+ "The audio is deleted for good. Your transcript and notes stay.": "音訊將永久刪除。逐字稿和筆記會保留。",+ "Keep the audio until the transcript is saved.": "請保留音訊,直到逐字稿儲存完成。",+ "Couldn't delete the recording. Try again.": "無法刪除錄音。請重試。",+ "Keep recordings after meetings": "會後保留錄音",+ "Recording deleted": "錄音已刪除",+ "Turn off in Settings": "在設定中關閉",+ "When off, new meetings' audio is deleted once the summary is saved.": "關閉後,新會議的音訊將在摘要儲存後刪除。"}diff --git a/app/src/shared/routes.ts b/app/src/shared/routes.tsindex 3282068c..d8848954 100644--- a/app/src/shared/routes.ts+++ b/app/src/shared/routes.ts@@ -1,3 +1,3 @@/** The renderer can navigate only within this workspace. */export const isAppRoute = (route: unknown): route is string => typeof route === 'string' &&- (['', '/meetings', '/chat', '/trash', '/settings'].includes(route) || /^\/(?:note|chat|folder)\/[\w-]+$/.test(route))+ (['', '/meetings', '/chat', '/trash', '/settings', '/settings/recordings'].includes(route) || /^\/(?:note|chat|folder)\/[\w-]+$/.test(route))diff --git a/app/src/shared/types.ts b/app/src/shared/types.tsindex 48f0201a..24863286 100644--- a/app/src/shared/types.ts+++ b/app/src/shared/types.ts@@ -13,6 +13,8 @@ export type OnboardingStep = { kind: PermissionKind; status: Access }export type OnboardingPlan = { intro: boolean; steps: OnboardingStep[] }/** a permission still off after the first run, for home's Finish setup */export type MissingPermission = { kind: PermissionKind; status: Access; essential: boolean }+export type DeleteRecordingResult = 'deleted' | 'missing' | 'recording' | 'not-transcribed' | 'kept' | 'failed'+export type Theme = 'light' | 'dark' | 'system'/** The capture has stopped, but its final database state may still need an explicit retry. */export type MeetingView = Meeting & { stopSavePending?: true; paused?: true }@@ -170,6 +172,8 @@ export type YogurtApi = {}/** a meeting's recording, played at yogurt-audio://<meetingId>/<track> */audio: {+ delete(id: string): Promise<DeleteRecordingResult>+ onDeleted(cb: (id: string) => void): () => void/** the tracks there are to play, once the recording is finished (none while it records) */tracks(meetingId: string): Promise<Array<'me' | 'them'>>/** every microphone, the one chosen (null: Auto) and the one in use; while recording, what the recorder uses */@@ -243,7 +247,7 @@ export type YogurtApi = {}settings: {/** myName: what the person is called in meetings (their Mac's full name, macName, when they never changed it) */- get(): Promise<{ theme: Theme; openAtLogin: boolean; showInMenuBar: boolean; /** the language picked; '' follows the Mac */ language: string; /** the language in use */ locale: string; /** the Mac's language, among Yogurt's */ systemLocale: string; myName: string; macName: string; /** a recording stops by itself when its call ends (off: ask first) */ stopWhenCallEnds: boolean; recordingReminder: boolean; /** personal jargon, spelled as typed */ jargon: string[]; /** the language people speak in meetings */ spoken: import('./spoken').Spoken }>+ get(): Promise<{ theme: Theme; openAtLogin: boolean; showInMenuBar: boolean; /** the language picked; '' follows the Mac */ language: string; /** the language in use */ locale: string; /** the Mac's language, among Yogurt's */ systemLocale: string; myName: string; macName: string; /** a recording stops by itself when its call ends (off: ask first) */ stopWhenCallEnds: boolean; recordingReminder: boolean; keepRecordings: boolean; /** personal jargon, spelled as typed */ jargon: string[]; /** the language people speak in meetings */ spoken: import('./spoken').Spoken }>/** blank goes back to the Mac's full name */setName(name: string): Promise<void>setTheme(v: Theme): Promise<void>@@ -251,6 +255,7 @@ export type YogurtApi = {setShowInMenuBar(on: boolean): Promise<void>setStopWhenCallEnds(on: boolean): Promise<void>setRecordingReminder(on: boolean): Promise<void>+ setKeepRecordings(on: boolean): Promise<void>/** saves the whole list; gives back what was kept */setJargon(terms: string[]): Promise<string[]>/** the interface language ('' follows the Mac); gives back the one now in use */diff --git a/app/test/backup.test.ts b/app/test/backup.test.tsindex 9a4823d7..78e71d1f 100644--- a/app/test/backup.test.ts+++ b/app/test/backup.test.ts@@ -1,6 +1,6 @@import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'import { existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, rmSync, writeFileSync } from 'node:fs'-import { mkdtemp, rm } from 'node:fs/promises'+import { cp, mkdtemp, rm } from 'node:fs/promises'import { tmpdir } from 'node:os'import { join } from 'node:path'import { DatabaseSync } from 'node:sqlite'@@ -15,7 +15,7 @@ vi.mock('../src/main/zip', async (original) => {})vi.mock('node:fs/promises', async (original) => {const actual = await original<typeof import('node:fs/promises')>()- return { ...actual, mkdtemp: vi.fn(actual.mkdtemp), rm: vi.fn(actual.rm) }+ return { ...actual, cp: vi.fn(actual.cp), mkdtemp: vi.fn(actual.mkdtemp), rm: vi.fn(actual.rm) }})const dirs: string[] = []@@ -356,3 +356,40 @@ describe('backup file', { timeout: 20_000 }, () => {expect(b.meeting('m2')).toBeUndefined()})})+++it('backs up and restores meetings without audio, retaining text, folders and pending transcription', async () => {+ const from = fresh(), into = fresh(), root = tmp(), meetingsDir = join(root, 'meetings')+ const absent = fill(from, 'No audio folder', 'launch'), empty = fill(from, 'Deleted audio', 'design')+ mkdirSync(join(meetingsDir, empty.id), { recursive: true })+ const folder = from.createFolder('Work'); from.addToFolder(folder.id, absent.id)+ from.updateMeeting(absent.id, { transcriptionPending: true })+ const zip = join(root, 'backup.zip'), restored = join(tmp(), 'meetings')+ await exportBackup({ db: from.db, meetingsDir, out: zip, appVersion: 'test' })+ expect(await importBackup({ db: into.db, meetingsDir: restored, zip })).toEqual({ ok: true, added: 2, skipped: 0 })+ for (const m of [absent, empty]) {+ expect(into.notes(m.id)).toEqual(from.notes(m.id))+ expect(into.segments(m.id).map(s => s.text)).toEqual(from.segments(m.id).map(s => s.text))+ expect(into.chatTurns(m.id)[0].question).toBe(from.chatTurns(m.id)[0].question)+ expect(existsSync(join(restored, m.id, 'me.m4a'))).toBe(false)+ expect(into.trashMeeting(m.id)).toBe(true)+ into.restoreMeeting(m.id)+ expect(into.notes(m.id)).toEqual(from.notes(m.id))+ }+ expect(into.folders()[0].count).toBe(1)+ expect(into.meeting(absent.id)?.transcriptionPending).toBe(true)+ expect(into.search('launch plan', 10).map(h => h.meetingId)).toContain(absent.id)+})+++it('still exports saved text if recording deletion races with copying its files', async () => {+ const from = fresh(), into = fresh(), root = tmp(), meetingsDir = join(root, 'meetings')+ const m = fill(from, 'Deleted during export', 'roadmap')+ mkdirSync(join(meetingsDir, m.id), { recursive: true })+ vi.mocked(cp).mockRejectedValueOnce(Object.assign(new Error('recording removed'), { code: 'ENOENT' }))+ const zip = join(root, 'backup.zip')+ await exportBackup({ db: from.db, meetingsDir, out: zip, appVersion: 'test' })+ expect(await importBackup({ db: into.db, meetingsDir: join(tmp(), 'meetings'), zip })).toEqual({ ok: true, added: 1, skipped: 0 })+ expect(into.notes(m.id)).toEqual(from.notes(m.id))+ expect(into.segments(m.id).map(s => s.text)).toEqual(from.segments(m.id).map(s => s.text))+})diff --git a/app/test/deleteRecording.test.ts b/app/test/deleteRecording.test.tsnew file mode 100644index 00000000..a3b10210--- /dev/null+++ b/app/test/deleteRecording.test.ts@@ -0,0 +1,155 @@+import { afterEach, describe, expect, it, vi } from 'vitest'+import { existsSync, linkSync, mkdirSync, mkdtempSync, readdirSync, rmSync, writeFileSync } from 'node:fs'+import { tmpdir } from 'node:os'+import { join } from 'node:path'+import { openStore, type Store } from '../src/main/store'+import { keepsRecording, loadSettings, updateSettings } from '../src/main/settings'+import { deleteRecording } from '../src/main/deleteRecording'+import { trackFile, createAudioHandler } from '../src/main/audio'+import { hookNotes } from '../src/main/notes'+import { createQueue } from '../src/main/notes/queue'++const roots: string[] = [], stores: Store[] = []+afterEach(() => { vi.useRealTimers(); stores.splice(0).forEach(s => s.close()); roots.splice(0).forEach(d => rmSync(d, { recursive: true, force: true })) })+function setup({ transcript = true, summary = true } = {}) {+ const root = mkdtempSync(join(tmpdir(), 'yogurt-recording-')); roots.push(root)+ const store = openStore(join(root, 'yogurt.db')); stores.push(store)+ const m = store.createMeeting({ title: 'Launch', startedAt: 1, endedAt: 2000, eventId: null, app: null, state: 'done', attendees: [{ name: 'Ann', email: '[email protected]' }] })+ if (transcript) store.addSegments([{ meetingId: m.id, track: 'them', startMs: 0, endMs: 1000, text: 'Launch on Tuesday', speaker: 'Ann' }])+ store.setNotes(m.id, { mine: 'My launch notes', ...(summary ? { enhanced: '## Launch\nTuesday' } : {}) })+ const folder = store.createFolder('Launch'); store.addToFolder(folder.id, m.id)+ store.addChatTurn(m.id, 'When is launch?')+ const dir = join(root, m.id); mkdirSync(dir)+ for (const name of ['me.m4a', 'them.ogg', 'me.wav', 'them.f32', 'me.m4a.joined', 'me.joined.m4a', 'them.joined.ogg', 'metadata.json']) writeFileSync(join(dir, name), 'fixture')+ mkdirSync(join(dir, 'original'))+ linkSync(join(dir, 'me.m4a'), join(dir, 'original', 'previous-me.m4a'))+ writeFileSync(join(dir, 'original', 'previous-them.1.ogg'), 'original recording')+ const deps = { store, dirOf: () => dir, busy: () => false, settle: async () => {}, removed: vi.fn() }+ const remove = (keep?: (endedAt: number | null) => boolean) => deleteRecording(m.id, { ...deps, ...(keep ? { keep } : {}) })+ return { root, store, m, dir, deps, remove }+}++describe('deleting only a recording', () => {+ it('removes every audio format and keeps text, people, folders, search, chat and Trash restore', async () => {+ const s = setup(), before = s.store.db.prepare('SELECT * FROM meetings').all()+ const notes = s.store.notes(s.m.id), lines = s.store.segments(s.m.id), folders = s.store.folders(), people = s.store.db.prepare('SELECT * FROM people').all()+ expect(await s.remove()).toBe('deleted')+ expect(readdirSync(s.dir)).toEqual(['metadata.json'])+ expect(s.store.db.prepare('SELECT * FROM meetings').all()).toEqual(before)+ expect(s.store.notes(s.m.id)).toEqual(notes)+ expect(s.store.segments(s.m.id)).toEqual(lines)+ expect(s.store.folders()).toEqual(folders)+ expect(s.store.db.prepare('SELECT * FROM people').all()).toEqual(people)+ expect(s.store.chatTurns(s.m.id)[0].question).toBe('When is launch?')+ expect(s.store.search('launch', 10).map(h => h.meetingId)).toContain(s.m.id)+ expect(s.store.trashMeeting(s.m.id)).toBe(true)+ s.store.restoreMeeting(s.m.id)+ expect(s.store.notes(s.m.id)).toEqual(notes)+ expect(trackFile(s.dir, 'me', ['m4a', 'wav', 'ogg'])).toBeNull()+ const handle = createAudioHandler({ dirOf: () => s.dir, known: () => true, ready: async () => {}, exts: ['m4a'] })+ expect((await handle(new Request(`yogurt-audio://${s.m.id}/me`))).status).toBe(404)+ expect(await s.remove()).toBe('deleted')+ })+ it('never deletes without a saved transcript, even with typed notes and a summary', async () => {+ const s = setup({ transcript: false })+ expect(await s.remove()).toBe('not-transcribed')+ expect(await s.remove(() => false)).toBe('not-transcribed')+ expect(existsSync(join(s.dir, 'me.m4a'))).toBe(true)+ })+ it('retains audio while transcription is pending, including old transcripts from a resumed meeting', async () => {+ const s = setup()+ s.store.updateMeeting(s.m.id, { transcriptionPending: true })+ expect(await s.remove()).toBe('not-transcribed')+ expect(await s.remove(() => false)).toBe('not-transcribed')+ const reopened = openStore(join(s.root, 'yogurt.db')); stores.push(reopened)+ expect(reopened.meeting(s.m.id)?.transcriptionPending).toBe(true)+ expect(existsSync(join(s.dir, 'me.m4a'))).toBe(true)+ })+ it('keeps recordings by default and until a nonempty summary is saved', async () => {+ const s = setup({ summary: false })+ expect(await s.remove(() => true)).toBe('kept')+ expect(await s.remove(() => false)).toBe('kept')+ s.store.setNotes(s.m.id, { enhanced: ' ' })+ expect(await s.remove(() => false)).toBe('kept')+ s.store.setNotes(s.m.id, { enhanced: 'Summary saved' })+ expect(await s.remove(() => true)).toBe('kept')+ expect(await s.remove(() => false)).toBe('deleted')+ })+ it('keeps older recordings when delayed summaries arrive, and deletes only after the current opt-out time', async () => {+ const s = setup({ summary: false }), file = join(s.root, 'settings.json')+ const keep = (endedAt: number | null) => keepsRecording(loadSettings(file), endedAt)+ updateSettings(file, { keepRecordings: false, recordingsOffAt: 2000 })+ // The meeting ended before opting out; its summary arrives afterward.+ s.store.updateMeeting(s.m.id, { endedAt: 1999 })+ s.store.setNotes(s.m.id, { enhanced: 'Delayed summary' })+ expect(await s.remove(keep)).toBe('kept')+ s.store.setNotes(s.m.id, { enhanced: 'Rewritten summary' })+ expect(await s.remove(keep)).toBe('kept')+ for (const endedAt of [null, 2000]) {+ s.store.updateMeeting(s.m.id, { endedAt })+ expect(await s.remove(keep)).toBe('kept')+ }+ // Turning it on and off again starts a new window, never a retrospective cleanup.+ s.store.updateMeeting(s.m.id, { endedAt: 3000 })+ updateSettings(file, { keepRecordings: false, recordingsOffAt: 4000 })+ expect(await s.remove(keep)).toBe('kept')+ expect(existsSync(join(s.dir, 'me.m4a'))).toBe(true)+ s.store.updateMeeting(s.m.id, { endedAt: 4001 })+ expect(await s.remove(keep)).toBe('deleted')+ })+ it('keeps recordings without a valid opt-out time, while explicit deletion still works', async () => {+ const s = setup()+ for (const recordingsOffAt of [undefined, NaN, Infinity]) {+ expect(await s.remove(endedAt => keepsRecording({ keepRecordings: false, recordingsOffAt }, endedAt))).toBe('kept')+ }+ expect(await s.remove()).toBe('deleted')+ })+ it('waits for finishing and rechecks both the preference and a resumed recording', async () => {+ const s = setup(); let release!: () => void, keep = false+ s.deps.settle = () => new Promise<void>(resolve => { release = resolve })+ const pending = s.remove(() => keep)+ expect(existsSync(join(s.dir, 'me.m4a'))).toBe(true)+ keep = true; release(); expect(await pending).toBe('kept')+ const manual = s.remove()+ s.store.updateMeeting(s.m.id, { state: 'recording' }); release()+ expect(await manual).toBe('recording')+ expect(existsSync(join(s.dir, 'me.m4a'))).toBe(true)+ })+ it('refuses live recordings, pending saves, invalid IDs and failed joins', async () => {+ const s = setup()+ expect(await deleteRecording('../outside', s.deps)).toBe('missing')+ s.deps.busy = () => true; expect(await s.remove()).toBe('recording')+ s.deps.busy = () => false+ writeFileSync(join(s.dir, 'part.1.json'), '{}')+ expect(await s.remove()).toBe('failed')+ expect(existsSync(join(s.dir, 'me.m4a'))).toBe(true)+ })+ it('a stuck recorder times out safely without deleting audio', async () => {+ vi.useFakeTimers()+ const s = setup(); s.deps.settle = () => new Promise(() => {})+ const pending = s.remove()+ await vi.advanceTimersByTimeAsync(30_000)+ expect(await pending).toBe('failed')+ expect(existsSync(join(s.dir, 'me.m4a'))).toBe(true)+ })+ it('automatic deletion runs only after the actual transcript and summary save', async () => {+ const s = setup({ transcript: false, summary: false })+ let stopped!: () => void, transcribed!: () => void, generated!: () => void+ const transcript = new Promise<void>(r => { transcribed = r }), generation = new Promise<void>(r => { generated = r })+ const removed: Promise<unknown>[] = []+ const queue = createQueue({ recording: () => false, smallMac: false })+ const notes = hookNotes({ store: s.store, queue, model: { llm: async () => ({ contextSize: 32_000, count: async xs => xs.map(x => x.length),+ chat: async (_prompt, token) => { await generation; token('## Summary\n- Launch Tuesday'); return '## Summary\n- Launch Tuesday' } }) },+ language: () => null, transcribed: () => transcript, onStop: fn => { stopped = () => fn(s.m) }, send: () => {}, changed: () => {}, summarized: () => { removed.push(s.remove(() => false)) } })+ stopped()+ expect(existsSync(join(s.dir, 'me.m4a'))).toBe(true)+ s.store.addSegments([{ meetingId: s.m.id, track: 'me', startMs: 0, endMs: 1000, text: 'Launch Tuesday', speaker: null }])+ transcribed(); await Promise.resolve()+ expect(s.store.notes(s.m.id).enhanced).toBeNull()+ expect(existsSync(join(s.dir, 'me.m4a'))).toBe(true)+ generated(); await notes.written(s.m.id); await Promise.all(removed)+ expect(removed).toHaveLength(1)+ expect(s.store.notes(s.m.id).enhanced).toContain('Launch Tuesday')+ expect(existsSync(join(s.dir, 'me.m4a'))).toBe(false)+ })+})diff --git a/app/test/i18n-tables.test.ts b/app/test/i18n-tables.test.tsindex 752692a7..3be3707e 100644--- a/app/test/i18n-tables.test.ts+++ b/app/test/i18n-tables.test.ts@@ -117,3 +117,12 @@ describe.each(LOCALES.filter((l) => l.id !== 'en'))('$english', ({ id }) => {expect(wrong).toEqual([])})})++it('translates recording deletion and retention in every locale', () => {+ for (const { id } of LOCALES) for (const old of ['Turn off to delete audio after the transcript and summary are saved.', 'Only applies to meetings that finish from now on.']) expect(load(id)[old]).toBeUndefined()+ for (const { id } of LOCALES) for (const key of ["Recording deleted", "Turn off in Settings", "Delete recording", "Delete recording?", "The audio is deleted for good. Your transcript and notes stay.", "Keep the audio until the transcript is saved.", "Couldn't delete the recording. Try again.", "Keep recordings after meetings", "When off, new meetings' audio is deleted once the summary is saved."]) {+ expect(keys).toContain(key)+ expect(load(id)[key]).toBeTypeOf('string')+ if (id !== 'en') expect(load(id)[key]).not.toBe(key)+ }+})diff --git a/app/test/menuBarPreference.test.ts b/app/test/menuBarPreference.test.tsindex 72d5b71f..30864237 100644--- a/app/test/menuBarPreference.test.ts+++ b/app/test/menuBarPreference.test.ts@@ -9,7 +9,7 @@ import { hookPreferences } from '../src/main/preferences'import { loadSettings, updateSettings } from '../src/main/settings'const dirs: string[] = []-afterEach(() => { dirs.splice(0).forEach((dir) => rmSync(dir, { recursive: true, force: true })); handlers.clear() })+afterEach(() => { dirs.splice(0).forEach((dir) => rmSync(dir, { recursive: true, force: true })); handlers.clear(); vi.restoreAllMocks() })it('defaults on, persists off across reloads, rejects non-booleans and applies changes immediately', () => {const dir = mkdtempSync(join(tmpdir(), 'yogurt-menu-pref-')); dirs.push(dir)const file = join(dir, 'settings.json')@@ -32,3 +32,28 @@ it('defaults on, persists off across reloads, rejects non-booleans and applies cexpect(loadSettings(file).showInMenuBar).toBeUndefined()expect(setTrayVisible).toHaveBeenLastCalledWith(true)})+++it('keeps recordings by default and persists only a valid retention preference', () => {+ const dir = mkdtempSync(join(tmpdir(), 'yogurt-audio-pref-')); dirs.push(dir)+ const file = join(dir, 'settings.json')+ const deps = { file, permissions: {} as Parameters<typeof hookPreferences>[0]['permissions'], ask: false, setLogin: vi.fn(), loginOn: () => false, macName: () => 'Dana', relaunch: () => false, setTrayVisible: vi.fn() }+ hookPreferences(deps)+ const get = () => handlers.get('settings:get')!().keepRecordings+ const set = (on: unknown) => handlers.get('settings:keep-recordings')!(null, on)+ expect(get()).toBe(true)+ const now = vi.spyOn(Date, 'now').mockReturnValue(2000)+ set(false); hookPreferences(deps)+ expect(loadSettings(file).recordingsOffAt).toBe(2000)+ expect(get()).toBe(false)+ for (const value of [null, 'false', 0, undefined]) set(value)+ expect(get()).toBe(false)+ now.mockReturnValue(3000); set(false)+ expect(loadSettings(file).recordingsOffAt).toBe(2000)+ set(true)+ expect(get()).toBe(true)+ expect(loadSettings(file).keepRecordings).toBeUndefined()+ expect(loadSettings(file).recordingsOffAt).toBeUndefined()+ now.mockReturnValue(4000); set(false)+ expect(loadSettings(file).recordingsOffAt).toBe(4000)+})diff --git a/app/test/recordingToast.test.ts b/app/test/recordingToast.test.tsnew file mode 100644index 00000000..86369982--- /dev/null+++ b/app/test/recordingToast.test.ts@@ -0,0 +1,39 @@+import { afterEach, describe, expect, it, vi } from 'vitest'+import { recordingDeletedToast, toasts } from '../src/renderer/src/components/TrashToast'++afterEach(() => { vi.restoreAllMocks(); vi.unstubAllGlobals() })+function setup(keepRecordings: boolean) {+ const get = vi.fn(async () => ({ keepRecordings })), go = vi.fn(), setKeepRecordings = vi.fn()+ vi.stubGlobal('window', { yogurt: { settings: { get, setKeepRecordings }, nav: { go } } })+ const add = vi.spyOn(toasts, 'add').mockReturnValue('recording-toast')+ const close = vi.spyOn(toasts, 'close').mockImplementation(() => {})+ return { get, go, setKeepRecordings, add, close }+}+describe('recording deletion confirmation', () => {+ it('uses an eight second toast and only navigates when its Settings action is clicked', async () => {+ const s = setup(true)+ await recordingDeletedToast()+ const toast = s.add.mock.calls[0][0]+ expect(toast).toMatchObject({ title: 'Recording deleted', timeout: 8000, data: { testId: 'recording-deleted-toast', actionTestId: 'recording-settings' } })+ expect(toast.actionProps?.children).toBe('Turn off in Settings')+ expect(s.go).not.toHaveBeenCalled()+ toast.actionProps?.onClick?.({} as never)+ expect(s.go).toHaveBeenCalledWith('/settings/recordings')+ expect(s.close).toHaveBeenCalledWith('recording-toast')+ expect(s.setKeepRecordings).not.toHaveBeenCalled()+ })+ it('confirms deletion without a Settings action when retention is off', async () => {+ const s = setup(false)+ await recordingDeletedToast()+ expect(s.add.mock.calls[0][0]).toMatchObject({ title: 'Recording deleted', timeout: 8000 })+ expect(s.add.mock.calls[0][0].actionProps).toBeUndefined()+ expect(s.go).not.toHaveBeenCalled()+ expect(s.setKeepRecordings).not.toHaveBeenCalled()+ })+ it('still confirms deletion if reading the current preference fails', async () => {+ const s = setup(true); s.get.mockRejectedValueOnce(new Error('unavailable'))+ await recordingDeletedToast()+ expect(s.add.mock.calls[0][0]).toMatchObject({ title: 'Recording deleted', timeout: 8000 })+ expect(s.add.mock.calls[0][0].actionProps).toBeUndefined()+ })+})diff --git a/app/test/transcription.test.ts b/app/test/transcription.test.tsindex 22170c4a..5f16bff6 100644--- a/app/test/transcription.test.ts+++ b/app/test/transcription.test.ts@@ -1,6 +1,6 @@import { EventEmitter } from 'node:events'import { PassThrough } from 'node:stream'-import { afterEach, beforeEach, describe, expect, it } from 'vitest'+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'import { Capture, encodeFrame, hookCapture, recordingFinished, type CaptureProc } from '../src/main/capture'import { hookTranscription, settleTranscription, speechLocaleFor, spokenChanged, stopTranscriptionServer, transcribing } from '../src/main/asr'import type { Spoken } from '../src/shared/spoken'@@ -68,6 +68,28 @@ function rig(order: 'capture-first' | 'transcription-first', t: { transcriber?:}describe('live transcription of a meeting', () => {+ it('only clears pending audio after transcription saves, and retains older unfinished sessions', async () => {+ const r = rig('transcription-first'), m = meeting()+ r.begin(m)+ expect(store.meeting(m.id)?.transcriptionPending).toBe(true)+ r.procs[0].say('them', 500)+ await r.stop(m)+ expect(store.segments(m.id).length).toBeGreaterThan(0)+ expect(store.meeting(m.id)?.transcriptionPending).not.toBe(true)+ store.updateMeeting(m.id, { transcriptionPending: true })+ r.begin(m); r.procs[1].say('them', 500)+ await r.stop(m)+ expect(store.meeting(m.id)?.transcriptionPending).toBe(true)+ })+ it('keeps audio pending when a transcript write fails', async () => {+ const r = rig('transcription-first'), m = meeting()+ r.begin(m)+ const save = vi.spyOn(store, 'addSegments').mockImplementation(() => { throw new Error('disk full') })+ r.procs[0].say('them', 500)+ await r.stop(m)+ save.mockRestore()+ expect(store.meeting(m.id)?.transcriptionPending).toBe(true)+ })it('a resumed recording spells new words from the current invite without rewriting retained transcript', async () => {const r = rig('transcription-first', { transcriber: (c) => [{ track: c.track, startMs: c.startMs, endMs: c.startMs + 1000, text: 'Zentric ships Tuesday.' }] })const m = meeting()@@ -179,6 +201,7 @@ describe('live transcription of a meeting', () => {await tick()await r.stop(a)expect(r.warns).toEqual(['transcribe-failed'])+ expect(store.meeting(a.id)?.transcriptionPending).toBe(true)const b = meeting()r.begin(b)r.procs[1].say('them', 500)@@ -197,6 +220,7 @@ describe('live transcription of a meeting', () => {expect(r.warns).toEqual(['no-speech-model'])await r.stop(m)expect(store.segments(m.id)).toEqual([])+ expect(store.meeting(m.id)?.transcriptionPending).toBe(true)})})diff --git a/app/test/workspace.test.ts b/app/test/workspace.test.tsindex 33661155..4d5f3ce9 100644--- a/app/test/workspace.test.ts+++ b/app/test/workspace.test.ts@@ -4,8 +4,8 @@ import { shiftDay, weekDates, eventPhase } from '../src/renderer/src/agenda'describe('workspace routes', () => {it('accepts only local destinations and meeting IDs', () => {- for (const route of ['', '/meetings', '/chat', '/trash', '/settings', '/note/a-123', '/chat/c-123', '/folder/b-456']) expect(isAppRoute(route)).toBe(true)- for (const route of [null, 1, '/note/', '/note/../secrets', '/note/a?x=1', '/folder/', '/folder/../x', '/folders', 'https://example.com', '/other']) expect(isAppRoute(route)).toBe(false)+ for (const route of ['', '/meetings', '/chat', '/trash', '/settings', '/settings/recordings', '/note/a-123', '/chat/c-123', '/folder/b-456']) expect(isAppRoute(route)).toBe(true)+ for (const route of [null, 1, '/note/', '/note/../secrets', '/note/a?x=1', '/folder/', '/folder/../x', '/folders', '/settings/unknown', 'https://example.com', '/other']) expect(isAppRoute(route)).toBe(false)})})describe('agenda dates', () => {