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
Folders: start a note in a folder, and add existing meetings to it
Eric Brownroutb26f1b2c55f4
diff --git a/app/e2e/folders.spec.ts b/app/e2e/folders.spec.tsindex a17d6f6f..91fbded8 100644--- a/app/e2e/folders.spec.ts+++ b/app/e2e/folders.spec.ts@@ -118,6 +118,64 @@ test('a folder is made in the sidebar, opens empty, and is renamed in place and} finally { await app.close() }})+for (const theme of ['light', 'dark'] as const) test(`add existing meetings from a folder by keyboard in ${theme}`, async () => {+ const { app, page } = await launch()+ try {+ await page.evaluate(theme => window.yogurt.settings.setTheme(theme), theme)+ await withMeetings(app, page)+ await app.evaluate(({ BrowserWindow }) => BrowserWindow.getAllWindows().find(w => !w.webContents.getURL().includes('#'))!.setSize(720, 520))+ const longTitle = 'Planning'.repeat(25)+ await page.evaluate(async title => {+ const [first] = await window.yogurt.meetings.cards({ limit: 1 })+ await window.yogurt.meetings.rename(first.id, title)+ }, longTitle)+ await newFolder(page, 'Reviews')+ const header = page.locator('.folder-page-heading').getByRole('button', { name: 'Add meetings' })+ const empty = page.getByTestId('folder-empty').getByRole('button', { name: 'Add meetings' })+ const dialog = page.getByRole('dialog', { name: 'Add meetings' })+ const search = dialog.getByRole('textbox', { name: 'Search' })+ const mod = process.platform === 'darwin' ? 'Meta' : 'Control'+ await empty.press('Enter')+ await expect(search).toBeFocused()+ await search.press(mod + '+j')+ await search.press(mod + '+n')+ await expect(search).toBeFocused()+ await expect(dialog.getByText(longTitle, { exact: true })).toBeVisible()+ expect(await dialog.evaluate(el => el.scrollWidth <= el.clientWidth)).toBe(true)+ const list = dialog.getByRole('group', { name: 'Meetings' })+ expect(await list.evaluate(el => el.scrollWidth <= el.clientWidth)).toBe(true)+ await search.press('Escape')+ await expect(empty).toBeFocused()+ await header.press('Enter')+ for (const title of ['Weekly sync', 'Customer call with Acme']) {+ await search.fill(title)+ await search.press('ArrowDown')+ const choice = dialog.getByRole('checkbox', { name: new RegExp(title) })+ await expect(choice).toBeFocused()+ await choice.press('Space')+ await expect(choice).toBeChecked()+ }+ await page.keyboard.press('Tab')+ const confirm = dialog.getByRole('button', { name: 'Add 2 meetings to folder' })+ await expect(confirm).toBeFocused()+ await confirm.press('Enter')+ await expect(dialog).toHaveCount(0)+ await expect(header).toBeFocused()+ await expect(page.getByTestId('past-note')).toHaveText([/Weekly sync/, /Customer call with Acme/])+ await header.click()+ const member = dialog.getByRole('checkbox', { name: /Weekly sync.*In this folder/ })+ await expect(member).toBeDisabled()+ await expect(member).toBeChecked()+ await search.fill('No such meeting')+ await expect(dialog.getByRole('status')).toContainText('Nothing found')+ await search.press('Escape')+ await expect(header).toBeFocused()+ await header.press(mod + '+j')+ await expect(page.getByTestId('chat-page')).toBeVisible()+ await expect(page.getByTestId('ask-scope')).toHaveText('Reviews')+ } finally { await app.close() }+})+test('a note goes into folders from its menu and its chip, and a new folder from the menu takes it at once', async () => {const { app, page } = await launch()try {@@ -133,6 +191,20 @@ test('a note goes into folders from its menu and its chip, and a new folder fromawait expect(suggested).toHaveText('AcmeSuggested')await expect(suggested).toHaveAttribute('aria-checked', 'false')await page.keyboard.press('Escape')+ await app.evaluate(({ ipcMain }) => {+ const handlers = (ipcMain as typeof ipcMain & { _invokeHandlers: Map<string, (...args: unknown[]) => unknown> })._invokeHandlers+ const add = handlers.get('folders:add')!+ let failed = false+ ipcMain.removeHandler('folders:add')+ ipcMain.handle('folders:add', (...args) => {+ if (!failed) { failed = true; throw new Error('fixture write failed') }+ return add(...args)+ })+ })+ await page.getByTestId('folder-suggestion-confirm').click()+ await expect(page.getByTestId('folder-suggestion-error')).toBeVisible()+ await expect(page.getByTestId('folder-suggestion')).toBeVisible()+ await expect(folder(page, 'Acme').getByTestId('sidebar-folder-count')).toHaveText('0')await page.getByTestId('folder-suggestion-confirm').click()await expect(page.getByTestId('folder-suggestion')).toHaveCount(0)await expect(folder(page, 'Acme').getByTestId('sidebar-folder-count')).toHaveText('1')diff --git a/app/e2e/startRecording.spec.ts b/app/e2e/startRecording.spec.tsindex 37e133c3..a6cc0e70 100644--- a/app/e2e/startRecording.spec.ts+++ b/app/e2e/startRecording.spec.ts@@ -93,59 +93,45 @@ test('a live event resumes the same note from the title bar and menu, keeping th} finally { await app.close() }})-test('a folder starts recording immediately and only files the note after a successful confirmation', async () => {+test('recording from a folder files the note immediately and keeps it there after navigation', async () => {const { app, page } = await launch()try {const folder = await folderPage(page)- await expect(page.getByTestId('folder-empty')).toContainText('You can record here')+ const empty = page.getByTestId('folder-empty')+ for (const name of ['Add meetings', 'New note', 'Start recording']) {+ await expect(empty.getByRole('button', { name, exact: true })).toBeVisible()+ }await page.getByTestId('start-recording').click()await expect(page.getByTestId('note-state')).toHaveAttribute('data-state', 'recording')const id = await meetingId(page)- const proposal = page.getByTestId('folder-suggestion')- await expect(proposal).toHaveText('Therapy')- expect(await foldersOf(page, id)).toEqual([])- // The recording reminder is a nonmodal toast, not a folder confirmation.- await expect(page.locator('[role="dialog"]').filter({ hasNot: page.getByText("Let everyone know you're recording.", { exact: true }) })).toHaveCount(0)-- // Navigating away does not silently accept or lose the pending choice.- await page.getByTestId('nav-home').click()- await page.evaluate(id => window.yogurt.nav.go(`/note/${id}`), id)- await expect(proposal).toBeVisible()- expect(await foldersOf(page, id)).toEqual([])- await app.evaluate(({ ipcMain }) => {- const handlers = (ipcMain as typeof ipcMain & { _invokeHandlers: Map<string, (...args: unknown[]) => unknown> })._invokeHandlers- const add = handlers.get('folders:add')!- let failed = false- ipcMain.removeHandler('folders:add')- ipcMain.handle('folders:add', (...args) => {- if (!failed) { failed = true; throw new Error('fixture write failed') }- return add(...args)- })- })- await page.getByTestId('folder-suggestion-confirm').click()- await expect(page.getByTestId('folder-suggestion-error')).toBeVisible()- await expect(proposal).toBeVisible()- expect(await foldersOf(page, id)).toEqual([])- await page.getByTestId('folder-suggestion-confirm').click()- await expect(proposal).toHaveCount(0)await expect(page.getByTestId('note-folders-summary')).toHaveText('Therapy')+ await expect(page.getByTestId('folder-suggestion')).toHaveCount(0)expect(await foldersOf(page, id)).toMatchObject([{ id: folder.id }])+ await expect(page.locator('[role="dialog"]').filter({ hasNot: page.getByText("Let everyone know you're recording.", { exact: true }) })).toHaveCount(0)await stop(page)+ await page.evaluate(id => window.yogurt.nav.go(`/folder/${id}`), folder.id)+ await page.getByTestId('past-note').click()+ await page.reload()+ await expect(page.getByTestId('note-folders-summary')).toHaveText('Therapy')+ expect(await foldersOf(page, id)).toMatchObject([{ id: folder.id }])} finally { await app.close() }})-test('cancelling the folder suggestion leaves the recording unfiled; Meetings and Chat suggest no folder', async () => {+test('a folder note can record later in the same folder; Meetings and Chat create unfiled recordings', async () => {const { app, page } = await launch()try {- await folderPage(page)- await page.getByTestId('start-recording').click()- await expect(page.getByTestId('folder-suggestion')).toBeVisible()+ const folder = await folderPage(page)+ await page.keyboard.press('ControlOrMeta+n')+ await expect(page.getByTestId('note-state')).toHaveAttribute('data-state', 'prepared')+ await expect(page.getByTestId('note-folders-summary')).toHaveText('Therapy')const id = await meetingId(page)- await page.getByTestId('folder-suggestion-cancel').click()- await expect(page.getByTestId('note-folders-summary')).toHaveText('Add to folder')- await expect(page.getByTestId('note-folders')).toBeFocused()- expect(await foldersOf(page, id)).toEqual([])+ const editor = page.getByRole('textbox', { name: 'My notes', exact: true })+ await editor.fill('Written before recording.')+ await page.getByTestId('note-start').click()await expect(page.getByTestId('note-state')).toHaveAttribute('data-state', 'recording')+ expect(await meetingId(page)).toBe(id)+ await expect(editor).toHaveText('Written before recording.')+ expect(await foldersOf(page, id)).toMatchObject([{ id: folder.id }])await stop(page)await page.getByTestId('nav-home').click()@@ -194,7 +180,7 @@ test('an active recording replaces start actions and a raced start identifies thconst handlers = (ipcMain as typeof ipcMain & { _invokeHandlers: Map<string, (...args: unknown[]) => unknown> })._invokeHandlersconst start = handlers.get('meetings:start')!ipcMain.removeHandler('meetings:start')- ipcMain.handle('meetings:start', async (...args) => { await start(...args); return start(...args) })+ ipcMain.handle('meetings:start', async (...args) => { await start(args[0], null); return start(...args) })})await page.getByTestId('start-recording').click()await expect(page.getByTestId('note-state')).toHaveAttribute('data-state', 'recording')diff --git a/app/src/main/foldersIpc.ts b/app/src/main/foldersIpc.tsindex 1cf2541b..44106159 100644--- a/app/src/main/foldersIpc.ts+++ b/app/src/main/foldersIpc.ts@@ -43,6 +43,15 @@ export function hookFolders(d: { store: Store; changed: () => void }) {})// its meetings stayipcMain.handle('folders:delete', (_e, id: unknown) => { if (folder(id)) { store.deleteFolder(id); d.changed() } })+ ipcMain.handle('folders:meeting-choices', (_e, id: unknown) => {+ if (!folder(id)) throw new Error('Folder unavailable')+ return store.folderMeetingChoices(id)+ })+ ipcMain.handle('folders:add-many', (_e, id: unknown, ids: unknown) => {+ if (!folder(id) || !Array.isArray(ids) || !ids.every(isId) || !store.addMeetingsToFolder(id, ids)) return false+ d.changed()+ return true+ })ipcMain.handle('folders:add', (_e, id: unknown, meetingId: unknown) => { if (folder(id) && meeting(meetingId)) { store.addToFolder(id, meetingId); d.changed() } })ipcMain.handle('folders:remove', (_e, id: unknown, meetingId: unknown) => { if (isId(id) && isId(meetingId)) { store.removeFromFolder(id, meetingId); d.changed() } })}diff --git a/app/src/main/index.ts b/app/src/main/index.tsindex 793b0d8c..aa971574 100644--- a/app/src/main/index.ts+++ b/app/src/main/index.ts@@ -53,7 +53,7 @@ import { getCalendar } from './calendarLink/get'import { createSignals } from './detectSignals'import { Watcher } from './watch'import { createPrompts } from './prompts'-import { activeMeeting, bindMeetingApp, getMeeting, initMeetings, onMeetingBound, onMeetingChange, onMeetingStart, onMeetingStop, onMeetingStopSaved, refreshEventSnapshots, linkEvent, unlinkEvent, prepareMeeting, startPreparedMeeting, resumeMeeting, pauseMeetingClock, renameMeeting, retryStopSave, setAttendees, startMeeting, stopMeeting, stopSavePending, withStopState } from './meeting'+import { activeMeeting, bindMeetingApp, getMeeting, initMeetings, onMeetingBound, onMeetingChange, onMeetingStart, onMeetingStop, onMeetingStopSaved, createFolderNote, refreshEventSnapshots, linkEvent, unlinkEvent, prepareMeeting, startPreparedMeeting, resumeMeeting, pauseMeetingClock, renameMeeting, retryStopSave, setAttendees, startMeeting, stopMeeting, stopSavePending, withStopState } from './meeting'import { deleteMeeting } from './deleteMeeting'import { emptyTrash, moveToTrash, purgeTrash } from './trash'import { isId, text, rewriteNote } from './ipcArgs'@@ -372,7 +372,7 @@ function startDetection() {updateWidgetVisibility = widget.visibilityChangedsendWidgetTranscript = widget.transcript/** The one way notes start: the card's Take notes, and home's Start notes and New note. Opens the note. */- function begin(p: { title: string; event: CalEvent | null; app: string | null }) {+ function begin(p: { title: string; event: CalEvent | null; app: string | null; folderId?: string }) {const alreadyRecording = !!activeMeeting()const m = startMeeting(p)const resume = resumesNote(m)@@ -382,7 +382,7 @@ function startDetection() {// home: Start notes for a calendar event (looked up here, never taken from the page), or New note with none; an AI// app's start_recording the same way, with its own title if it gave one// gone: the event left the calendar since the page showed it (moved, cancelled); failed: anything else, in plain words on the page- const startNotes = async (o: { eventId?: string; title?: string }): Promise<StartResult> => {+ const startNotes = async (o: { eventId?: string; title?: string; folderId?: string }): Promise<StartResult> => {try {const cur = activeMeeting()if (cur) { goTo(`/note/${cur.id}`); return { id: cur.id, alreadyRecording: true } }@@ -391,13 +391,20 @@ function startDetection() {event = (await comingUp()).find((e) => matchesEvent(e, o.eventId!)) ?? nullif (!event) return { error: 'gone' }}- return begin({ title: o.title ?? event?.title ?? '', event, app: null })+ return begin({ title: o.title ?? event?.title ?? '', event, app: null, folderId: o.folderId })} catch (e) {console.error('start notes failed', e)return { error: 'failed' }}}- ipcMain.handle('meetings:start', (_e, eventId: unknown) => startNotes(typeof eventId === 'string' ? { eventId } : {}))+ ipcMain.handle('meetings:start', (_e, eventId: unknown, folderId?: unknown): Promise<StartResult> | StartResult => {+ if (folderId !== undefined && !isId(folderId)) return { error: 'failed' }+ return startNotes({ eventId: typeof eventId === 'string' ? eventId : undefined, folderId })+ })+ ipcMain.handle('meetings:folder-note', (_e, folderId: unknown) => {+ if (!isId(folderId)) throw new Error('Invalid folder')+ return createFolderNote(folderId).id+ })ipcMain.handle('meetings:prepare', async (_e, eventId: unknown, at: unknown): Promise<StartResult> => {if (typeof eventId !== 'string' || typeof at !== 'number' || !Number.isFinite(at) || !Number.isFinite(new Date(at).getTime())) return { error: 'gone' }try {diff --git a/app/src/main/meeting.ts b/app/src/main/meeting.tsindex a9a4946a..8f1d206a 100644--- a/app/src/main/meeting.ts+++ b/app/src/main/meeting.ts@@ -54,7 +54,7 @@ export const withStopState = <T extends Meeting>(m: T): T => {return pending ? { ...m, state: 'stopped', endedAt: pending.endedAt, ...(pending.durationMs == null ? {} : { durationMs: pending.durationMs }) } : m}-export function startMeeting(p: { title: string; event: CalEvent | null; app: string | null }): Meeting {+export function startMeeting(p: { title: string; event: CalEvent | null; app: string | null; folderId?: string }): Meeting {if (!store) throw new Error('Meetings are not ready yet')if (active) return activeconst existing = p.event && eventIds(p.event).map((id) => store!.meetingForEvent(id)).find(Boolean)@@ -67,7 +67,7 @@ export function startMeeting(p: { title: string; event: CalEvent | null; app: sttitle, titleSource: sourceOf(title, p.event?.id ?? null), startedAt: Date.now(), endedAt: null, eventId: p.event?.id ?? null,...(p.event ? { eventStartedAt: p.event.start, eventEndedAt: p.event.end, eventTitle: p.event.title, ownEmail: p.event.ownEmail ?? null,...(p.event.calendar ? { eventCalendarName: p.event.calendar.name, eventCalendarSource: p.event.calendar.source } : {}) } : {}),- app: p.app, attendees: p.event?.attendees ?? [], state: 'recording',+ app: p.app, attendees: p.event?.attendees ?? [], state: 'recording', folderId: p.folderId,})active = mclock = { startedAt: Date.now(), before: 0, pausedAt: null, pausedMs: 0, measured: false }@@ -83,6 +83,15 @@ export function bindMeetingApp(id: string, app: string): Meeting | undefined {return m}+/** A hand-written note can start recording later in the same meeting. */+export function createFolderNote(folderId: string): Meeting {+ if (!store) throw new Error('Meetings are not ready yet')+ const m = store.createMeeting({ title: t('Meeting'), startedAt: Date.now(), endedAt: null, eventId: null,+ app: null, attendees: [], state: 'prepared', folderId })+ run(changes, m)+ return m+}+/** Prepare an agenda without opening the microphone or joining the post-recording recovery queue. */export function prepareMeeting(event: CalEvent): Meeting {if (!store) throw new Error('Meetings are not ready yet')diff --git a/app/src/main/store.ts b/app/src/main/store.tsindex e5943e3e..027a9c2f 100644--- a/app/src/main/store.ts+++ b/app/src/main/store.ts@@ -317,15 +317,30 @@ export class Store {}close() { this.db.close() }- createMeeting(m: Omit<Meeting, 'id' | 'language' | 'titleSource'> & { language?: string | null; titleSource?: TitleSource }, id: string = randomUUID()): Meeting {- const language = m.language ?? null- const ownEmail = m.eventId ? ownAddress(m.ownEmail) : null- this.rememberOwnEmail(ownEmail)- const titleSource = m.titleSource ?? sourceOf(m.title, m.eventId)- this.db.prepare('INSERT INTO meetings (id, title, started_at, ended_at, event_id, app, attendees, state, language, title_source, duration_ms, event_started_at, event_ended_at, event_title, event_calendar_name, event_calendar_source, source, source_id, transcription_pending, own_email, keep_attendees) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)')- .run(id, m.title, m.startedAt, m.endedAt, m.eventId, m.app, JSON.stringify(m.attendees), m.state, language, titleSource, m.durationMs ?? null, m.eventStartedAt ?? null, m.eventEndedAt ?? null, m.eventTitle ?? null, m.eventCalendarName ?? null, m.eventCalendarSource ?? null, m.source ?? null, m.sourceId ?? null, Number(!!m.transcriptionPending), ownEmail, Number(!!m.keepAttendees))- rememberPeople(this.db, m.attendees)- return this.meeting(id)!+ private writeAtomically<T>(write: () => T): T {+ this.db.exec('SAVEPOINT meeting_write')+ try {+ const result = write()+ this.db.exec('RELEASE meeting_write')+ return result+ } catch (error) {+ this.db.exec('ROLLBACK TO meeting_write; RELEASE meeting_write')+ throw error+ }+ }++ createMeeting(m: Omit<Meeting, 'id' | 'language' | 'titleSource'> & { language?: string | null; titleSource?: TitleSource; folderId?: string }, id: string = randomUUID()): Meeting {+ return this.writeAtomically(() => {+ const language = m.language ?? null+ const ownEmail = m.eventId ? ownAddress(m.ownEmail) : null+ this.rememberOwnEmail(ownEmail)+ const titleSource = m.titleSource ?? sourceOf(m.title, m.eventId)+ this.db.prepare('INSERT INTO meetings (id, title, started_at, ended_at, event_id, app, attendees, state, language, title_source, duration_ms, event_started_at, event_ended_at, event_title, event_calendar_name, event_calendar_source, source, source_id, transcription_pending, own_email, keep_attendees) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)')+ .run(id, m.title, m.startedAt, m.endedAt, m.eventId, m.app, JSON.stringify(m.attendees), m.state, language, titleSource, m.durationMs ?? null, m.eventStartedAt ?? null, m.eventEndedAt ?? null, m.eventTitle ?? null, m.eventCalendarName ?? null, m.eventCalendarSource ?? null, m.source ?? null, m.sourceId ?? null, Number(!!m.transcriptionPending), ownEmail, Number(!!m.keepAttendees))+ rememberPeople(this.db, m.attendees)+ if (m.folderId !== undefined) this.addToFolder(m.folderId, id)+ return this.meeting(id)!+ })}updateMeeting(id: string, patch: Partial<Omit<Meeting, 'id'>>) {if (patch.ownEmail) this.rememberOwnEmail(patch.ownEmail)@@ -358,7 +373,8 @@ export class Store {const rows = this.db.prepare(`SELECT m.*, n.mine, n.enhanced, n.edited,(SELECT count(*) FROM segments s WHERE s.meeting_id = m.id) AS segments,(SELECT count(*) FROM chat_turns c WHERE c.meeting_id = m.id) AS chats- FROM meetings m LEFT JOIN notes n ON n.meeting_id = m.id WHERE m.state = 'prepared' AND m.trashed_at IS NULL`).all() as Row[]+ FROM meetings m LEFT JOIN notes n ON n.meeting_id = m.id WHERE m.state = 'prepared' AND m.prepared_event_end IS NOT NULL AND m.trashed_at IS NULL+ AND NOT EXISTS (SELECT 1 FROM folder_meetings fm WHERE fm.meeting_id = m.id)`).all() as Row[]let removed = 0for (const r of rows) {if (!unusedPreparedNote({ state: String(r.state), eventEnd: r.prepared_event_end == null ? null : Number(r.prepared_event_end),@@ -752,14 +768,27 @@ export class Store {}/** The folder goes; its meetings stay where they are (only the links go, by ON DELETE CASCADE) */deleteFolder(id: string) { this.db.prepare('DELETE FROM folders WHERE id = ?').run(id) }+ folderMeetingChoices(folderId: string) {+ const rows = this.db.prepare(`SELECT m.id, m.title, m.started_at, fm.folder_id FROM meetings m+ LEFT JOIN folder_meetings fm ON fm.meeting_id = m.id AND fm.folder_id = ?+ WHERE m.trashed_at IS NULL ORDER BY m.started_at DESC, m.id DESC`).all(folderId)+ return rows.map(row => ({ id: String(row.id), title: String(row.title), startedAt: Number(row.started_at), inFolder: row.folder_id != null }))+ }+ addMeetingsToFolder(folderId: string, ids: string[]): boolean {+ return this.writeAtomically(() => {+ const available = this.db.prepare('SELECT 1 FROM meetings WHERE id = ? AND trashed_at IS NULL')+ const selected = [...new Set(ids)]+ if (!selected.length || selected.some(id => !available.get(id))) return false+ for (const id of selected) this.addToFolder(folderId, id)+ return true+ })+ }/** in a folder already: nothing changes */addToFolder(folderId: string, meetingId: string) {- this.db.exec('SAVEPOINT file_meeting')- try {+ this.writeAtomically(() => {this.db.prepare('INSERT OR IGNORE INTO folder_meetings (folder_id, meeting_id, added_at) VALUES (?, ?, ?)').run(folderId, meetingId, Date.now())this.db.prepare("UPDATE meetings SET suggestion_state = CASE WHEN suggested_folder_id = ? THEN 'accepted' ELSE 'dismissed' END WHERE id = ? AND (suggestion_state IS NULL OR suggestion_state = 'pending')").run(folderId, meetingId)- this.db.exec('RELEASE file_meeting')- } catch (e) { this.db.exec('ROLLBACK TO file_meeting; RELEASE file_meeting'); throw e }+ })}folderSuggestion(id: string): FolderSuggestionRecord {const r = this.db.prepare('SELECT suggested_folder_id, suggestion_state, suggestion_confidence, suggestion_attempt FROM meetings WHERE id = ?').get(id) as Row | undefineddiff --git a/app/src/preload/index.ts b/app/src/preload/index.tsindex 9f5b6eac..80dce548 100644--- a/app/src/preload/index.ts+++ b/app/src/preload/index.ts@@ -66,7 +66,8 @@ const api: YogurtApi = {takeRecordingReminder: () => ipcRenderer.invoke('meetings:take-recording-reminder'),get: (id) => ipcRenderer.invoke('meetings:get', id),cards: (o) => ipcRenderer.invoke('meetings:cards', o),- start: (eventId) => ipcRenderer.invoke('meetings:start', eventId),+ start: (eventId, folderId) => ipcRenderer.invoke('meetings:start', eventId, folderId),+ createFolderNote: folderId => ipcRenderer.invoke('meetings:folder-note', folderId),prepare: (eventId, day) => ipcRenderer.invoke('meetings:prepare', eventId, day),startPrepared: (id) => ipcRenderer.invoke('meetings:start-prepared', id),resume: (id) => ipcRenderer.invoke('meetings:resume', id),@@ -273,6 +274,8 @@ const api: YogurtApi = {appearance: (id, appearance) => ipcRenderer.invoke('folders:appearance', id, appearance),rename: (id, name) => ipcRenderer.invoke('folders:rename', id, name),delete: (id) => ipcRenderer.invoke('folders:delete', id),+ meetingChoices: id => ipcRenderer.invoke('folders:meeting-choices', id),+ addMany: (id, ids) => ipcRenderer.invoke('folders:add-many', id, ids),add: (id, meetingId) => ipcRenderer.invoke('folders:add', id, meetingId),remove: (id, meetingId) => ipcRenderer.invoke('folders:remove', id, meetingId),onChange: (cb) => {diff --git a/app/src/renderer/src/App.tsx b/app/src/renderer/src/App.tsxindex 527b2c0d..ef2ec6ff 100644--- a/app/src/renderer/src/App.tsx+++ b/app/src/renderer/src/App.tsx@@ -161,6 +161,11 @@ export function App() {return}if (document.querySelector('[aria-modal="true"]')) return+ if (e.code === 'KeyN') {+ const button = document.getElementById('folder-new-note')+ if (button) { e.preventDefault(); if (!e.repeat) button.click() }+ return+ }if (e.code === 'BracketLeft') { e.preventDefault(); back() }if (e.code === 'BracketRight') { e.preventDefault(); forward() }}@@ -191,7 +196,7 @@ export function App() {const folder = folderId ? folders?.find((s) => s.id === folderId) : undefinedconst suggestedFolder = noteId ? folders?.find((s) => s.id === suggestedFolders[noteId]) : undefined// a folder's page waits for the list; a folder that is gone shows Meetings- const folderScreen = folderId && (folder ? <Folder key={folder.id} folder={folder} open={open} onStarted={(id) => setSuggestedFolders((current) => ({ ...current, [id]: folder.id }))} /> : foldersFailed ? <div className="native-library"><ReadError className="library-empty" testId="folder-list-error" retry={retryFolders} /></div> : !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 folderScreen = folderId && (folder ? <Folder key={folder.id} folder={folder} open={open} onUploaded={(id) => setSuggestedFolders((current) => ({ ...current, [id]: folder.id }))} /> : foldersFailed ? <div className="native-library"><ReadError className="library-empty" testId="folder-list-error" retry={retryFolders} /></div> : !folders ? <div className="native-folder"><StartRecording folderId={folderId} /><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} focus={route.startsWith('/settings/') ? route.slice('/settings/'.length) : undefined} /> : noteId ? <Note key={noteId} id={noteId} onSource={openSource} onTitleChange={setMeeting} at={jump?.id === noteId ? jump : undefined}onResumeRequested={resumeRequested ? () => { setResumeRequested(false); rememberRoute(route) } : undefined}folderSuggestion={suggestedFolder ? { folder: suggestedFolder, dismiss: () => dismissFolderSuggestion(noteId) } : undefined} />diff --git a/app/src/renderer/src/components/AddMeetingsDialog.tsx b/app/src/renderer/src/components/AddMeetingsDialog.tsxnew file mode 100644index 00000000..dbfe0b76--- /dev/null+++ b/app/src/renderer/src/components/AddMeetingsDialog.tsx@@ -0,0 +1,91 @@+import { useEffect, useMemo, useRef, useState, type KeyboardEvent } from 'react'+import type { Folder, FolderMeetingChoice } from '../../../shared/types'+import { language, t } from '../../../shared/i18n'+import { Search } from './Icons'+import { InlineError } from './InlineError'+import { Modal, ModalClose } from './Modal'++export function AddMeetingsDialog({ folder, onDone }: { folder: Folder; onDone(added: boolean): void }) {+ const [rows, setRows] = useState<FolderMeetingChoice[]>()+ const [query, setQuery] = useState('')+ const [chosen, setChosen] = useState(new Set<string>())+ const [focused, setFocused] = useState('')+ const [loadFailed, setLoadFailed] = useState(false)+ const [attempt, setAttempt] = useState(0)+ const [busy, setBusy] = useState(false)+ const [saveFailed, setSaveFailed] = useState(false)+ const [added, setAdded] = useState(false)+ const saving = useRef(false)+ const list = useRef<HTMLDivElement>(null)+ const locale = language()+ const date = useMemo(() => new Intl.DateTimeFormat(locale, { dateStyle: 'medium', timeStyle: 'short' }), [locale])+ useEffect(() => {+ let seq = 0+ const read = () => {+ const mine = ++seq+ void window.yogurt.folders.meetingChoices(folder.id).then(next => {+ if (mine === seq) { setRows(next); setLoadFailed(false) }+ }, () => { if (mine === seq) setLoadFailed(true) })+ }+ read()+ let timer: ReturnType<typeof setTimeout>+ const changed = () => { clearTimeout(timer); timer = setTimeout(read, 150) }+ const offFolders = window.yogurt.folders.onChange(changed), offMeetings = window.yogurt.meetings.onChange(changed)+ return () => { seq++; clearTimeout(timer); offFolders(); offMeetings() }+ }, [folder.id, attempt])++ const selected = (rows ?? []).filter(row => !row.inFolder && chosen.has(row.id)).map(row => row.id)+ const needle = query.trim().toLocaleLowerCase(locale)+ const visible = (rows ?? []).filter(row => (row.title || t('Untitled meeting')).toLocaleLowerCase(locale).includes(needle))+ const tabStop = visible.find(row => row.id === focused && !row.inFolder) ?? visible.find(row => !row.inFolder)+ const arrows = (event: KeyboardEvent) => {+ if (event.key !== 'ArrowDown' && event.key !== 'ArrowUp') return+ const choices = Array.from(list.current?.querySelectorAll<HTMLInputElement>('input:enabled') ?? [])+ if (!choices.length) return+ const index = choices.indexOf(event.target as HTMLInputElement)+ event.preventDefault()+ const next = index < 0 ? (event.key === 'ArrowDown' ? 0 : choices.length - 1) : index + (event.key === 'ArrowDown' ? 1 : -1)+ choices[Math.max(0, Math.min(next, choices.length - 1))].focus()+ }+ const save = async () => {+ if (saving.current || loadFailed || !selected.length) return+ saving.current = true; setBusy(true); setSaveFailed(false)+ try {+ if (!await window.yogurt.folders.addMany(folder.id, selected)) throw new Error('Selection unavailable')+ setAdded(true)+ } catch {+ saving.current = false; setBusy(false); setSaveFailed(true); setAttempt(n => n + 1)+ }+ }+ return <Modal testId="folder-add-meetings" title={t('Add meetings')} description={folder.name}+ closing={added} busy={busy} onCancel={() => onDone(added)}>+ <label className="shortcuts-search"><Search size={16} aria-hidden="true" />+ <input data-dialog-focus aria-label={t('Search')} placeholder={t('Search')} value={query} disabled={busy}+ onChange={e => setQuery(e.target.value)} onKeyDown={arrows} />+ </label>+ <div ref={list} role="group" aria-label={t('Meetings')} className="folder-meeting-choices" onKeyDown={arrows}>+ {loadFailed ? <InlineError testId="folder-meetings-error" retry={() => setAttempt(n => n + 1)} />+ : !rows ? <p role="status">{t('Loading…')}</p>+ : !visible.length ? <p role="status">{needle ? t('Nothing found for “{query}”.', { query: query.trim() }) : t('No meetings here yet')}</p>+ : visible.map(row => <label key={row.id} className="folder-meeting-choice settings-calendar-choice">+ <input type="checkbox" checked={row.inFolder || chosen.has(row.id)} disabled={row.inFolder || busy}+ tabIndex={row.id === tabStop?.id ? 0 : -1} onFocus={() => setFocused(row.id)}+ onChange={e => { const checked = e.target.checked; setChosen(previous => {+ const next = new Set(previous)+ if (checked) next.add(row.id)+ else next.delete(row.id)+ return next+ }) }} />+ <span className="min-w-0"><span className="block [overflow-wrap:anywhere]">{row.title || t('Untitled meeting')}</span>+ <small>{date.format(row.startedAt)}{row.inFolder && <> · {t('In this folder')}</>}</small></span>+ </label>)}+ </div>+ {saveFailed && <p className="modal-error" role="alert">{t("Yogurt couldn't make that change. Try again.")}</p>}+ <div className="modal-actions">+ <button className="modal-button primary" disabled={busy || loadFailed || !selected.length} onClick={() => void save()}>+ {selected.length ? t('Add {count} meetings to folder', { count: selected.length }) : t('Add meetings')}+ </button>+ <ModalClose data-dialog-cancel disabled={busy} className="workspace-button">{t('Cancel')}</ModalClose>+ </div>+ </Modal>+}diff --git a/app/src/renderer/src/components/FolderPicker.tsx b/app/src/renderer/src/components/FolderPicker.tsxindex 03d90a93..72bd20da 100644--- a/app/src/renderer/src/components/FolderPicker.tsx+++ b/app/src/renderer/src/components/FolderPicker.tsx@@ -4,7 +4,7 @@ import { Check, Folder as FolderIcon, Minus, Plus, X } from './Icons'import type { Folder, MeetingCard } from '../../../shared/types'import { moreItems, t } from '../../../shared/i18n'import { compactCount } from '../i18n'-import { setMeetingsInFolder, useFolders } from '../folders'+import { setMeetingsInFolder, useFolderRead, useFolders } from '../folders'import { folderCheck, nextFolderCheck, reconcileFolderChecks, type FolderMemberships, type PendingFolderChecks } from '../folderSelection'import { toasts } from './TrashToast'import { motion, useReducedMotion, usePopoverPresence } from '../motion'@@ -76,7 +76,7 @@ export function FolderChip({ meetingId, onNew, suggestion: manualSuggestion, rowreturn () => { seq++; off(); offMeetings() }}, [meetingId])const suggestion = manualSuggestion ?? (automatic ? { folder: automatic, dismiss: () => setAutomatic(null) } : undefined)- const mine = useFolders(row ? null : meetingId)+ const { folders: mine, failed } = useFolderRead(row ? null : meetingId)const folders = row ? rowFolders : mineconst reduced = useReducedMotion()const [transition, setTransition] = useState<{ folder: Folder; phase: 'saving' | 'accepted' | 'dismissed' | 'settled' } | null>(null)@@ -157,6 +157,7 @@ export function FolderChip({ meetingId, onNew, suggestion: manualSuggestion, row}, [transition, reduced])const appearance = proposed ?? folders?.[0]if (row && !proposed) return children+ if (!row && !mine && !failed) return nullconst trigger = <button ref={chip} data-testid="note-folders" aria-label={more ? `${label} ${moreItems(more)}` : undefined} aria-haspopup="menu" aria-expanded={onChoose ? undefined : !!open} onClick={(e) => { if (onChoose && proposed) onChoose(proposed.id); else setOpen((o) => o ? false : e.detail > 0 ? 'pointer' : 'keyboard') }}title={proposed?.name ?? (folders?.map((s) => s.name).join(', ') || undefined)}className={proposed ? 'note-folder-name' : 'note-chip flex max-w-64 items-center gap-1.5 rounded-md border border-line px-2.5 text-[13px] text-muted'}>diff --git a/app/src/renderer/src/components/Shortcuts.tsx b/app/src/renderer/src/components/Shortcuts.tsxindex 2146d5d5..d21bf90f 100644--- a/app/src/renderer/src/components/Shortcuts.tsx+++ b/app/src/renderer/src/components/Shortcuts.tsx@@ -16,6 +16,7 @@ export function Shortcuts({ onClose }: { onClose(): void }) {const [query, setQuery] = useState('')const groups = [[t('General'), appShortcuts()],+ [t('Folders'), pc([[t('New note'), '⌘N']])],[t('Search and commands'), [[t('Navigate'), '↑ ↓'], [t('Select'), '↵'], [t('Close'), 'esc']]],[t('Transcript'), [[t('Navigate'), '↑ ↓ ↖ ↘'], [t('Play'), '↵ / ␣']]],[t('Edit'), pc([[t('Undo'), '⌘Z'], [t('Redo'), '⇧⌘Z'], [t('Cut'), '⌘X'], [t('Copy'), '⌘C'], [t('Paste'), '⌘V'], [t('Paste and Match Style'), '⌥⇧⌘V'], [t('Select All'), '⌘A'], [t('Bold'), '⌘B'], [t('Italic'), '⌘I'], [t('Text formatting'), '⌥F10']])],diff --git a/app/src/renderer/src/components/StartRecording.tsx b/app/src/renderer/src/components/StartRecording.tsxindex c661363f..7a55218e 100644--- a/app/src/renderer/src/components/StartRecording.tsx+++ b/app/src/renderer/src/components/StartRecording.tsx@@ -14,7 +14,7 @@ import { personName } from './People'let lastRecording: boolean | undefined/** Start or resume from a library destination; main resolves the event's note. */-export function StartRecording({ onStarted, onGone, emptyActions, compact, testId = 'start-recording' }: { compact?: boolean; emptyActions?: HTMLElement | null; onStarted?: (id: string) => void; onGone?: () => void; testId?: string }) {+export function StartRecording({ folderId, onUploaded, onGone, emptyActions, compact, testId = 'start-recording' }: { folderId?: string; compact?: boolean; emptyActions?: HTMLElement | null; onUploaded?: (id: string) => void; onGone?: () => void; testId?: string }) {const [actions, setActions] = useState<HTMLElement | null>(null)const [recording, setRecording] = useState(lastRecording)const [starting, setStarting] = useState(false)@@ -60,13 +60,11 @@ export function StartRecording({ onStarted, onGone, emptyActions, compact, testIif (starting || recording !== false) returnsetStarting(true); setOpen(false); toasts.close('start-recording-message')try {- const result = await window.yogurt.meetings.start(eventId)+ const result = await window.yogurt.meetings.start(eventId, folderId)if ('error' in result) {if (result.error === 'gone') { setEvents([]); void load(); onGone?.() }toasts.add({ id: 'start-recording-message', data: { testId: 'start-recording-message' }, title: result.error === 'gone' ? t('That meeting is no longer on your calendar.') : t("Yogurt couldn't start the notes. Try again in a moment.") })- return}- if (!result.alreadyRecording && !result.resumeRequested) onStarted?.(result.id)} catch {toasts.add({ id: 'start-recording-message', data: { testId: 'start-recording-message' }, title: t("Yogurt couldn't start the notes. Try again in a moment.") })} finally { setStarting(false) }@@ -104,7 +102,7 @@ export function StartRecording({ onStarted, onGone, emptyActions, compact, testI})}{choices.length > 0 && <Menu.Separator className="recording-menu-separator" />}<Menu.Item data-testid="recording-unattached" disabled={starting} onClick={() => void start(null)}><Mic className="flex-none" size={14} aria-hidden="true" />{t('New recording')}</Menu.Item>- <Menu.Item data-testid="recording-upload" disabled={starting} onClick={() => { setOpen(false); void openAudioUpload(onStarted) }}><Upload size={14} aria-hidden="true" />{t('Upload a file')}</Menu.Item>+ <Menu.Item data-testid="recording-upload" disabled={starting} onClick={() => { setOpen(false); void openAudioUpload(onUploaded) }}><Upload size={14} aria-hidden="true" />{t('Upload a file')}</Menu.Item></Menu.Popup></Menu.Positioner></Menu.Portal>diff --git a/app/src/renderer/src/screens/Folder.tsx b/app/src/renderer/src/screens/Folder.tsxindex af188e71..ecd1b4da 100644--- a/app/src/renderer/src/screens/Folder.tsx+++ b/app/src/renderer/src/screens/Folder.tsx@@ -1,5 +1,5 @@import { InlineError } from '../components/InlineError'-import { Folder as FolderIcon } from '../components/Icons'+import { Folder as FolderIcon, Plus } from '../components/Icons'import { LoadingContent } from '../components/LoadingContent'import { LibraryEmpty, MeetingListLoading } from './Home'import { useEffect, useRef, useState } from 'react'@@ -9,20 +9,54 @@ import type { Folder as FolderRow } from '../../../shared/types'import { t } from '../../../shared/i18n'import { useDay } from '../dates'import { PastNotes, usePastNotes } from './Home'+import { AddMeetingsDialog } from '../components/AddMeetingsDialog'+import { keys, onMac } from '../keys'+import { toasts } from '../components/TrashToast'import { StartRecording } from '../components/StartRecording'/** A folder's page: its name (click to rename) and its meetings, newest first, as on Meetings */-export function Folder({ folder, open, onStarted }: { folder: FolderRow; open: (id: string) => void; onStarted: (id: string) => void }) {+export function Folder({ folder, open, onUploaded }: { folder: FolderRow; open: (id: string) => void; onUploaded: (id: string) => void }) {const [appearance, setAppearance] = useState(false)+ const [picker, setPicker] = useState(false)+ const [creating, setCreating] = useState(false)+ const [emptyActions, setEmptyActions] = useState<HTMLDivElement | null>(null)+ const headerAdd = useRef<HTMLButtonElement>(null)+ const opener = useRef<HTMLButtonElement | null>(null)+ const createPending = useRef(false)+ const add = (button: HTMLButtonElement) => { opener.current = button; setPicker(true) }+ const closePicker = (added: boolean) => {+ setPicker(false)+ const target = added ? headerAdd.current : opener.current+ requestAnimationFrame(() => (target?.isConnected ? target : headerAdd.current)?.focus({ preventScroll: true }))+ }+ const newNote = async () => {+ if (createPending.current) return+ createPending.current = true; setCreating(true)+ try { open(await window.yogurt.meetings.createFolderNote(folder.id)) }+ catch { toasts.add({ title: t("Yogurt couldn't start the notes. Try again in a moment.") }) }+ finally { createPending.current = false; setCreating(false) }+ }const past = usePastNotes(folder.id)const day = useDay()return <div data-testid="folder-page" className="native-folder">- <StartRecording onStarted={onStarted} />+ <StartRecording folderId={folder.id} onUploaded={onUploaded} emptyActions={emptyActions} /><div className="native-library" ref={past.setRoot} tabIndex={-1}>- <div className="folder-page-heading"><button className="folder-heading-icon" data-testid="folder-heading-icon" aria-label={t('Change icon')} title={t('Change icon')} onClick={() => setAppearance(true)} data-folder-color={folder.color}><FolderGlyph appearance={folder} size={24} /></button><FolderTitle folder={folder} /></div>+ <div className="folder-page-heading flex-wrap">+ <div className="flex min-w-0 flex-[1_1_12rem] items-center gap-3"><button className="folder-heading-icon" data-testid="folder-heading-icon" aria-label={t('Change icon')} title={t('Change icon')} onClick={() => setAppearance(true)} data-folder-color={folder.color}><FolderGlyph appearance={folder} size={24} /></button><FolderTitle folder={folder} /></div>+ <div className="flex flex-wrap items-center gap-2">+ <button id="folder-new-note" disabled={creating} aria-keyshortcuts={onMac() ? 'Meta+N' : 'Control+N'} title={`${t('New note')} (${keys('⌘N')})`} className="workspace-button" onClick={() => void newNote()}>{t('New note')}</button>+ <button ref={headerAdd} aria-haspopup="dialog" className="workspace-button" onClick={e => add(e.currentTarget)}><Plus size={14} aria-hidden="true" />{t('Add meetings')}</button>+ </div>+ </div>+ {picker && <AddMeetingsDialog folder={folder} onDone={closePicker} />}{appearance && <FolderAppearanceDialog folder={folder} onDone={() => setAppearance(false)} />}{past.failed && !!past.cards?.length && <InlineError testId="meetings-read-error" retry={past.retry} />}- <LoadingContent pending={!past.cards && !past.failed} testId="meetings-loading" skeleton={<MeetingListLoading showFolders={false} />} className="library-load">{!past.cards?.length ? <LibraryEmpty testId="folder-empty" icon={<FolderIcon size={28} aria-hidden="true" />} title={t('No meetings here yet')} description={t('You can record here or add existing meetings to this folder.')} retry={past.failed ? past.retry : undefined} /> : <PastNotes showFolders={false} cards={past.cards ?? []} day={day} more={past.more} sentinel={past.setSentinel} onOpen={open} />}</LoadingContent>+ <LoadingContent pending={!past.cards && !past.failed} testId="meetings-loading" skeleton={<MeetingListLoading showFolders={false} />} className="library-load">{!past.cards?.length ? <LibraryEmpty testId="folder-empty" icon={<FolderIcon size={28} aria-hidden="true" />} title={t('No meetings here yet')} description={t('Notes and recordings started here are saved in this folder.')} retry={past.failed ? past.retry : undefined}>+ <div className="flex flex-wrap justify-center gap-2" ref={setEmptyActions}>+ <button aria-haspopup="dialog" className="workspace-button" onClick={e => add(e.currentTarget)}>{t('Add meetings')}</button>+ <button className="workspace-button" disabled={creating} onClick={() => void newNote()}>{t('New note')}</button>+ </div>+ </LibraryEmpty> : <PastNotes showFolders={false} cards={past.cards ?? []} day={day} more={past.more} sentinel={past.setSentinel} onOpen={open} />}</LoadingContent></div></div>}@@ -34,7 +68,7 @@ function FolderTitle({ folder }: { folder: FolderRow }) {const cancelled = useRef(false)useEffect(() => { if (editing) { setDraft(folder.name); cancelled.current = false } }, [editing, folder.name])if (!editing) {- return <h1 data-testid="folder-title"><button onClick={() => setEditing(true)} title={t('Rename')} className="note-title-btn -mx-1 rounded-lg px-1 text-start">{folder.name}</button></h1>+ return <h1 data-testid="folder-title"><button onClick={() => setEditing(true)} title={t('Rename')} className="note-title-btn -mx-1 max-w-full break-words rounded-lg px-1 text-start">{folder.name}</button></h1>}const done = () => {setEditing(false)diff --git a/app/src/renderer/src/styles.css b/app/src/renderer/src/styles.cssindex 6a5e5b9e..60d992dd 100644--- a/app/src/renderer/src/styles.css+++ b/app/src/renderer/src/styles.css@@ -1053,3 +1053,13 @@ html:not(.widget) button:focus-visible, html:not(.widget) input:focus-visible {/* Native and library focus returns can follow Escape or a click inside a different surface. */[data-quiet-focus]:focus-visible { outline-style:none !important; }:where([data-focus-ring]:not(:focus-visible)) { outline:2px solid var(--focus);outline-offset:2px; }++.app-modal[data-testid=folder-add-meetings] { width:min(440px,calc(100vw - 40px));display:flex;flex-direction:column;overscroll-behavior:contain; }+.app-modal[data-testid=folder-add-meetings] .modal-copy p { display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere; }+.folder-meeting-choices { min-height:0;max-height:42vh;overflow-y:auto;overscroll-behavior:contain;margin:0 12px 12px;padding:2px 0; }+.folder-meeting-choices>p { padding:8px 12px;color:var(--muted);font-size:13px; }+.folder-meeting-choice { display:flex;align-items:center;gap:10px;border-radius:6px;min-height:36px;padding:6px 12px;font-size:13px;line-height:18px; }+.folder-meeting-choice small { color:var(--muted);font-size:11px; }+.folder-meeting-choice:has(:disabled) { cursor:default; }+.folder-meeting-choice:focus-within { background:var(--selected); }+@media (hover:hover) { .folder-meeting-choice:hover:has(:enabled) { background:var(--control-hover); } }diff --git a/app/src/shared/locales/ar.json b/app/src/shared/locales/ar.jsonindex 9c4b1c15..88b08739 100644--- a/app/src/shared/locales/ar.json+++ b/app/src/shared/locales/ar.json@@ -718,7 +718,10 @@"You can add notes here to guide the summary.": "يمكنك إضافة ملاحظات هنا لتوجيه الملخص.","You can back up meetings, notes, transcripts and saved audio in one file.": "يمكنك نسخ الاجتماعات والملاحظات والنصوص والصوت المحفوظ احتياطيًا في ملف واحد.","You can get a reminder when Yogurt detects a call.": "يمكنك تلقي تذكير عندما يكتشف Yogurt مكالمة.",- "You can record here or add existing meetings to this folder.": "يمكنك التسجيل هنا أو إضافة اجتماعات موجودة إلى هذا المجلد.",+ "Add meetings": "إضافة اجتماعات",+ "New note": "ملاحظة جديدة",+ "In this folder": "في هذا المجلد",+ "Notes and recordings started here are saved in this folder.": "تُحفظ الملاحظات والتسجيلات التي تبدأها هنا في هذا المجلد.","You can use calendar events to add meeting titles and attendees to your notes.": "يمكنك استخدام أحداث التقويم لإضافة عناوين الاجتماعات والحاضرين إلى ملاحظاتك.","Your calendar": "تقويمك","Your next recording will use both the microphone and call audio.": "سيستخدم تسجيلك التالي الميكروفون وصوت المكالمة معًا.",diff --git a/app/src/shared/locales/bn.json b/app/src/shared/locales/bn.jsonindex 1aea31db..5bcf65a5 100644--- a/app/src/shared/locales/bn.json+++ b/app/src/shared/locales/bn.json@@ -650,7 +650,10 @@"You can add notes here to guide the summary.": "সারাংশকে দিকনির্দেশ দিতে এখানে নোট যোগ করতে পারেন।","You can back up meetings, notes, transcripts and saved audio in one file.": "মিটিং, নোট, প্রতিলিপি ও রাখা অডিও একটি ফাইলে ব্যাকআপ নিতে পারেন।","You can get a reminder when Yogurt detects a call.": "Yogurt কল শনাক্ত করলে অনুস্মারক পেতে পারেন।",- "You can record here or add existing meetings to this folder.": "এখানে রেকর্ড করতে বা এই ফোল্ডারে পুরোনো মিটিং যোগ করতে পারেন।",+ "Add meetings": "মিটিং যোগ করুন",+ "New note": "নতুন নোট",+ "In this folder": "এই ফোল্ডারে আছে",+ "Notes and recordings started here are saved in this folder.": "এখানে শুরু করা নোট ও রেকর্ডিং এই ফোল্ডারে সংরক্ষিত হয়।","You can use calendar events to add meeting titles and attendees to your notes.": "ক্যালেন্ডারের ইভেন্ট থেকে নোটে মিটিংয়ের শিরোনাম ও অংশগ্রহণকারী যোগ করতে পারেন।","Your calendar": "আপনার ক্যালেন্ডার","Your next recording will use both the microphone and call audio.": "পরের রেকর্ডিংয়ে মাইক্রোফোন ও কলের অডিও দুটোই ব্যবহার হবে।",diff --git a/app/src/shared/locales/cs.json b/app/src/shared/locales/cs.jsonindex e6c6643d..1c1038d7 100644--- a/app/src/shared/locales/cs.json+++ b/app/src/shared/locales/cs.json@@ -693,7 +693,10 @@"You can add notes here to guide the summary.": "Zde můžete přidat poznámky jako vodítko pro souhrn.","You can back up meetings, notes, transcripts and saved audio in one file.": "Schůzky, poznámky, přepisy a uložený zvuk můžete zálohovat do jednoho souboru.","You can get a reminder when Yogurt detects a call.": "Můžete dostat připomenutí, když Yogurt rozpozná hovor.",- "You can record here or add existing meetings to this folder.": "Zde můžete nahrávat nebo do složky přidat existující schůzky.",+ "Add meetings": "Přidat schůzky",+ "New note": "Nová poznámka",+ "In this folder": "V této složce",+ "Notes and recordings started here are saved in this folder.": "Poznámky a nahrávky, které zde začnete, se uloží do této složky.","You can use calendar events to add meeting titles and attendees to your notes.": "Z událostí kalendáře můžete k poznámkám přidat názvy schůzek a účastníky.","Your calendar": "Váš kalendář","Your next recording will use both the microphone and call audio.": "Příští nahrávání využije mikrofon i zvuk hovoru.",diff --git a/app/src/shared/locales/da.json b/app/src/shared/locales/da.jsonindex 092715c4..41618fca 100644--- a/app/src/shared/locales/da.json+++ b/app/src/shared/locales/da.json@@ -662,7 +662,10 @@"You can add notes here to guide the summary.": "Du kan tilføje noter her som hjælp til resuméet.","You can back up meetings, notes, transcripts and saved audio in one file.": "Du kan sikkerhedskopiere møder, noter, transskriptioner og gemt lyd i én fil.","You can get a reminder when Yogurt detects a call.": "Du kan få en påmindelse, når Yogurt opdager et opkald.",- "You can record here or add existing meetings to this folder.": "Du kan optage her eller tilføje eksisterende møder til mappen.",+ "Add meetings": "Tilføj møder",+ "New note": "Ny note",+ "In this folder": "I denne mappe",+ "Notes and recordings started here are saved in this folder.": "Noter og optagelser, du starter her, gemmes i denne mappe.","You can use calendar events to add meeting titles and attendees to your notes.": "Du kan bruge kalenderbegivenheder til at tilføje mødetitler og deltagere til dine noter.","Your calendar": "Din kalender","Your next recording will use both the microphone and call audio.": "Din næste optagelse bruger både mikrofonen og opkaldets lyd.",diff --git a/app/src/shared/locales/de.json b/app/src/shared/locales/de.jsonindex 99ac88bd..3a0d83a4 100644--- a/app/src/shared/locales/de.json+++ b/app/src/shared/locales/de.json@@ -662,7 +662,10 @@"You can add notes here to guide the summary.": "Du kannst hier Notizen als Hinweise für die Zusammenfassung ergänzen.","You can back up meetings, notes, transcripts and saved audio in one file.": "Du kannst Meetings, Notizen, Transkripte und gespeichertes Audio in einer Datei sichern.","You can get a reminder when Yogurt detects a call.": "Du kannst dich erinnern lassen, wenn Yogurt einen Anruf erkennt.",- "You can record here or add existing meetings to this folder.": "Du kannst hier aufnehmen oder vorhandene Meetings zum Ordner hinzufügen.",+ "Add meetings": "Meetings hinzufügen",+ "New note": "Neue Notiz",+ "In this folder": "In diesem Ordner",+ "Notes and recordings started here are saved in this folder.": "Notizen und Aufnahmen, die du hier beginnst, werden in diesem Ordner gespeichert.","You can use calendar events to add meeting titles and attendees to your notes.": "Du kannst Kalendereinträge für Titel und Teilnehmer in deinen Notizen nutzen.","Your calendar": "Dein Kalender","Your next recording will use both the microphone and call audio.": "Deine nächste Aufnahme nutzt Mikrofon und Anrufton.",diff --git a/app/src/shared/locales/el.json b/app/src/shared/locales/el.jsonindex 2b54ac1a..0713a00a 100644--- a/app/src/shared/locales/el.json+++ b/app/src/shared/locales/el.json@@ -665,7 +665,10 @@"You can add notes here to guide the summary.": "Μπορείτε να προσθέσετε σημειώσεις εδώ για να καθοδηγήσετε τη σύνοψη.","You can back up meetings, notes, transcripts and saved audio in one file.": "Μπορείτε να αποθηκεύσετε συσκέψεις, σημειώσεις, απομαγνητοφωνήσεις και αποθηκευμένο ήχο σε ένα αρχείο.","You can get a reminder when Yogurt detects a call.": "Μπορείτε να λαμβάνετε υπενθύμιση όταν το Yogurt εντοπίζει κλήση.",- "You can record here or add existing meetings to this folder.": "Μπορείτε να κάνετε εγγραφή εδώ ή να προσθέσετε υπάρχουσες συσκέψεις στον φάκελο.",+ "Add meetings": "Προσθήκη συναντήσεων",+ "New note": "Νέα σημείωση",+ "In this folder": "Σε αυτόν τον φάκελο",+ "Notes and recordings started here are saved in this folder.": "Οι σημειώσεις και οι εγγραφές που ξεκινάτε εδώ αποθηκεύονται σε αυτόν τον φάκελο.","You can use calendar events to add meeting titles and attendees to your notes.": "Μπορείτε να προσθέσετε τίτλους και συμμετέχοντες στις σημειώσεις από το ημερολόγιο.","Your calendar": "Το ημερολόγιό σας","Your next recording will use both the microphone and call audio.": "Η επόμενη εγγραφή θα χρησιμοποιεί το μικρόφωνο και τον ήχο της κλήσης.",diff --git a/app/src/shared/locales/en.json b/app/src/shared/locales/en.jsonindex 0836e014..5d98c968 100644--- a/app/src/shared/locales/en.json+++ b/app/src/shared/locales/en.json@@ -211,7 +211,10 @@"You can add notes here to guide the summary.": "You can add notes here to guide the summary.","You can back up meetings, notes, transcripts and saved audio in one file.": "You can back up meetings, notes, transcripts and saved audio in one file.","You can get a reminder when Yogurt detects a call.": "You can get a reminder when Yogurt detects a call.",- "You can record here or add existing meetings to this folder.": "You can record here or add existing meetings to this folder.",+ "Add meetings": "Add meetings",+ "New note": "New note",+ "In this folder": "In this folder",+ "Notes and recordings started here are saved in this folder.": "Notes and recordings started here are saved in this folder.","You can use calendar events to add meeting titles and attendees to your notes.": "You can use calendar events to add meeting titles and attendees to your notes.","Your calendar": "Your calendar","Your edits to the summary will be replaced.": "Your edits to the summary will be replaced.",diff --git a/app/src/shared/locales/es.json b/app/src/shared/locales/es.jsonindex 57045a7c..720f6d36 100644--- a/app/src/shared/locales/es.json+++ b/app/src/shared/locales/es.json@@ -675,7 +675,10 @@"You can add notes here to guide the summary.": "Puedes añadir notas aquí para orientar el resumen.","You can back up meetings, notes, transcripts and saved audio in one file.": "Puedes guardar reuniones, notas, transcripciones y audio conservado en un archivo.","You can get a reminder when Yogurt detects a call.": "Puedes recibir un aviso cuando Yogurt detecte una llamada.",- "You can record here or add existing meetings to this folder.": "Puedes grabar aquí o añadir reuniones existentes a esta carpeta.",+ "Add meetings": "Añadir reuniones",+ "New note": "Nueva nota",+ "In this folder": "En esta carpeta",+ "Notes and recordings started here are saved in this folder.": "Las notas y grabaciones que empieces aquí se guardan en esta carpeta.","You can use calendar events to add meeting titles and attendees to your notes.": "Puedes usar eventos del calendario para añadir títulos y asistentes a tus notas.","Your calendar": "Tu calendario","Your next recording will use both the microphone and call audio.": "Tu próxima grabación usará el micrófono y el audio de la llamada.",diff --git a/app/src/shared/locales/fi.json b/app/src/shared/locales/fi.jsonindex e7f2c5f8..0dcb2dd7 100644--- a/app/src/shared/locales/fi.json+++ b/app/src/shared/locales/fi.json@@ -668,7 +668,10 @@"You can add notes here to guide the summary.": "Voit lisätä tähän muistiinpanoja yhteenvedon tueksi.","You can back up meetings, notes, transcripts and saved audio in one file.": "Voit varmuuskopioida kokoukset, muistiinpanot, litteroinnit ja säilytetyn äänen yhteen tiedostoon.","You can get a reminder when Yogurt detects a call.": "Voit saada muistutuksen, kun Yogurt havaitsee puhelun.",- "You can record here or add existing meetings to this folder.": "Voit tallentaa tässä tai lisätä olemassa olevia kokouksia tähän kansioon.",+ "Add meetings": "Lisää kokouksia",+ "New note": "Uusi muistiinpano",+ "In this folder": "Tässä kansiossa",+ "Notes and recordings started here are saved in this folder.": "Täällä aloitetut muistiinpanot ja tallenteet tallennetaan tähän kansioon.","You can use calendar events to add meeting titles and attendees to your notes.": "Voit lisätä kokousten nimet ja osallistujat muistiinpanoihin kalenteritapahtumista.","Your calendar": "Kalenterisi","Your next recording will use both the microphone and call audio.": "Seuraava tallennus käyttää sekä mikrofonia että puhelun ääntä.",diff --git a/app/src/shared/locales/fil.json b/app/src/shared/locales/fil.jsonindex fdcdd2f0..23a627ff 100644--- a/app/src/shared/locales/fil.json+++ b/app/src/shared/locales/fil.json@@ -662,7 +662,10 @@"You can add notes here to guide the summary.": "Puwede kang magdagdag ng tala rito para gabayan ang buod.","You can back up meetings, notes, transcripts and saved audio in one file.": "Puwede mong i-backup ang mga meeting, tala, transcript at na-save na audio sa isang file.","You can get a reminder when Yogurt detects a call.": "Puwede kang makatanggap ng paalala kapag may natukoy na tawag ang Yogurt.",- "You can record here or add existing meetings to this folder.": "Puwede kang mag-record dito o magdagdag ng mga meeting sa folder na ito.",+ "Add meetings": "Magdagdag ng mga meeting",+ "New note": "Bagong tala",+ "In this folder": "Nasa folder na ito",+ "Notes and recordings started here are saved in this folder.": "Dito sa folder na ito mase-save ang mga tala at recording na sisimulan mo rito.","You can use calendar events to add meeting titles and attendees to your notes.": "Puwede mong gamitin ang mga event sa kalendaryo para idagdag ang pamagat at kalahok sa mga tala.","Your calendar": "Kalendaryo mo","Your next recording will use both the microphone and call audio.": "Gagamitin ng susunod mong recording ang mikropono at audio ng tawag.",diff --git a/app/src/shared/locales/fr.json b/app/src/shared/locales/fr.jsonindex b7342841..85efeb5f 100644--- a/app/src/shared/locales/fr.json+++ b/app/src/shared/locales/fr.json@@ -678,7 +678,10 @@"You can add notes here to guide the summary.": "Vous pouvez ajouter ici des notes pour guider le résumé.","You can back up meetings, notes, transcripts and saved audio in one file.": "Vous pouvez sauvegarder réunions, notes, transcriptions et audio conservé dans un fichier.","You can get a reminder when Yogurt detects a call.": "Vous pouvez recevoir un rappel quand Yogurt détecte un appel.",- "You can record here or add existing meetings to this folder.": "Vous pouvez enregistrer ici ou ajouter des réunions existantes à ce dossier.",+ "Add meetings": "Ajouter des réunions",+ "New note": "Nouvelle note",+ "In this folder": "Dans ce dossier",+ "Notes and recordings started here are saved in this folder.": "Les notes et les enregistrements que vous commencez ici sont enregistrés dans ce dossier.","You can use calendar events to add meeting titles and attendees to your notes.": "Vous pouvez utiliser le calendrier pour ajouter titres et participants à vos notes.","Your calendar": "Votre calendrier","Your next recording will use both the microphone and call audio.": "Votre prochain enregistrement utilisera le micro et l’audio de l’appel.",diff --git a/app/src/shared/locales/he.json b/app/src/shared/locales/he.jsonindex 2d349ba2..505413a9 100644--- a/app/src/shared/locales/he.json+++ b/app/src/shared/locales/he.json@@ -672,7 +672,10 @@"You can add notes here to guide the summary.": "אפשר להוסיף כאן הערות כדי להנחות את הסיכום.","You can back up meetings, notes, transcripts and saved audio in one file.": "אפשר לגבות פגישות, הערות, תמלילים ושמע שנשמר בקובץ אחד.","You can get a reminder when Yogurt detects a call.": "אפשר לקבל תזכורת כש-Yogurt מזהה שיחה.",- "You can record here or add existing meetings to this folder.": "אפשר להקליט כאן או להוסיף פגישות קיימות לתיקייה הזו.",+ "Add meetings": "הוספת פגישות",+ "New note": "הערה חדשה",+ "In this folder": "בתיקייה הזו",+ "Notes and recordings started here are saved in this folder.": "הערות והקלטות שמתחילים כאן נשמרות בתיקייה הזו.","You can use calendar events to add meeting titles and attendees to your notes.": "אפשר להשתמש באירועי יומן כדי להוסיף כותרות ומשתתפים להערות.","Your calendar": "היומן שלך","Your next recording will use both the microphone and call audio.": "ההקלטה הבאה תשתמש גם במיקרופון וגם בשמע השיחה.",diff --git a/app/src/shared/locales/hi.json b/app/src/shared/locales/hi.jsonindex 7481ec55..20296421 100644--- a/app/src/shared/locales/hi.json+++ b/app/src/shared/locales/hi.json@@ -650,7 +650,10 @@"You can add notes here to guide the summary.": "सारांश को दिशा देने के लिए आप यहाँ नोट्स जोड़ सकते हैं।","You can back up meetings, notes, transcripts and saved audio in one file.": "आप मीटिंग, नोट्स, ट्रांसक्रिप्ट और सहेजे ऑडियो का एक फ़ाइल में बैकअप ले सकते हैं।","You can get a reminder when Yogurt detects a call.": "Yogurt को कॉल मिलने पर आप रिमाइंडर पा सकते हैं।",- "You can record here or add existing meetings to this folder.": "आप यहाँ रिकॉर्ड कर सकते हैं या मौजूदा मीटिंग इस फ़ोल्डर में जोड़ सकते हैं।",+ "Add meetings": "मीटिंग जोड़ें",+ "New note": "नया नोट",+ "In this folder": "इस फ़ोल्डर में",+ "Notes and recordings started here are saved in this folder.": "यहाँ शुरू किए गए नोट और रिकॉर्डिंग इसी फ़ोल्डर में सहेजे जाते हैं।","You can use calendar events to add meeting titles and attendees to your notes.": "आप कैलेंडर इवेंट से मीटिंग के शीर्षक और प्रतिभागी नोट्स में जोड़ सकते हैं।","Your calendar": "आपका कैलेंडर","Your next recording will use both the microphone and call audio.": "आपकी अगली रिकॉर्डिंग माइक्रोफ़ोन और कॉल ऑडियो दोनों इस्तेमाल करेगी।",diff --git a/app/src/shared/locales/hu.json b/app/src/shared/locales/hu.jsonindex 8a1683ad..91fc2dad 100644--- a/app/src/shared/locales/hu.json+++ b/app/src/shared/locales/hu.json@@ -650,7 +650,10 @@"You can add notes here to guide the summary.": "Itt jegyzetekkel segítheted az összefoglalót.","You can back up meetings, notes, transcripts and saved audio in one file.": "Egy fájlba mentheted a megbeszéléseket, jegyzeteket, átiratokat és megőrzött hangot.","You can get a reminder when Yogurt detects a call.": "Kérhetsz emlékeztetőt, amikor a Yogurt hívást észlel.",- "You can record here or add existing meetings to this folder.": "Itt rögzíthetsz, vagy meglévő megbeszéléseket adhatsz a mappához.",+ "Add meetings": "Megbeszélések hozzáadása",+ "New note": "Új jegyzet",+ "In this folder": "Ebben a mappában",+ "Notes and recordings started here are saved in this folder.": "Az itt elkezdett jegyzetek és felvételek ebbe a mappába kerülnek.","You can use calendar events to add meeting titles and attendees to your notes.": "A naptáreseményekből címeket és résztvevőket adhatsz a jegyzetekhez.","Your calendar": "A naptárad","Your next recording will use both the microphone and call audio.": "A következő felvétel a mikrofont és a hívás hangját is használja.",diff --git a/app/src/shared/locales/id.json b/app/src/shared/locales/id.jsonindex 9a0bb2d9..76351e7d 100644--- a/app/src/shared/locales/id.json+++ b/app/src/shared/locales/id.json@@ -620,7 +620,10 @@"You can add notes here to guide the summary.": "Anda dapat menambah catatan di sini untuk memandu ringkasan.","You can back up meetings, notes, transcripts and saved audio in one file.": "Anda dapat mencadangkan rapat, catatan, transkrip, dan audio tersimpan dalam satu file.","You can get a reminder when Yogurt detects a call.": "Anda dapat menerima pengingat saat Yogurt mendeteksi panggilan.",- "You can record here or add existing meetings to this folder.": "Anda dapat merekam di sini atau menambah rapat yang ada ke folder ini.",+ "Add meetings": "Tambahkan rapat",+ "New note": "Catatan baru",+ "In this folder": "Di folder ini",+ "Notes and recordings started here are saved in this folder.": "Catatan dan rekaman yang Anda mulai di sini disimpan di folder ini.","You can use calendar events to add meeting titles and attendees to your notes.": "Anda dapat memakai acara kalender untuk menambah judul rapat dan peserta ke catatan.","Your calendar": "Kalender Anda","Your next recording will use both the microphone and call audio.": "Rekaman berikutnya akan memakai mikrofon dan audio panggilan.",diff --git a/app/src/shared/locales/it.json b/app/src/shared/locales/it.jsonindex 94980670..1e171c8b 100644--- a/app/src/shared/locales/it.json+++ b/app/src/shared/locales/it.json@@ -681,7 +681,10 @@"You can add notes here to guide the summary.": "Puoi aggiungere note qui per guidare il riepilogo.","You can back up meetings, notes, transcripts and saved audio in one file.": "Puoi salvare riunioni, note, trascrizioni e audio conservato in un solo file.","You can get a reminder when Yogurt detects a call.": "Puoi ricevere un promemoria quando Yogurt rileva una chiamata.",- "You can record here or add existing meetings to this folder.": "Puoi registrare qui o aggiungere riunioni esistenti a questa cartella.",+ "Add meetings": "Aggiungi riunioni",+ "New note": "Nuova nota",+ "In this folder": "In questa cartella",+ "Notes and recordings started here are saved in this folder.": "Le note e le registrazioni che inizi qui vengono salvate in questa cartella.","You can use calendar events to add meeting titles and attendees to your notes.": "Puoi usare gli eventi del calendario per aggiungere titoli e partecipanti alle note.","Your calendar": "Il tuo calendario","Your next recording will use both the microphone and call audio.": "La prossima registrazione userà il microfono e l’audio della chiamata.",diff --git a/app/src/shared/locales/ja.json b/app/src/shared/locales/ja.jsonindex c8d00fd7..761a271b 100644--- a/app/src/shared/locales/ja.json+++ b/app/src/shared/locales/ja.json@@ -620,7 +620,10 @@"You can add notes here to guide the summary.": "ここにメモを追加して要約の参考にできます。","You can back up meetings, notes, transcripts and saved audio in one file.": "会議、ノート、文字起こし、保存済み音声を1つのファイルにバックアップできます。","You can get a reminder when Yogurt detects a call.": "Yogurtが通話を検出したときに通知を受け取れます。",- "You can record here or add existing meetings to this folder.": "ここで録音するか、既存の会議をこのフォルダに追加できます。",+ "Add meetings": "ミーティングを追加",+ "New note": "新規ノート",+ "In this folder": "このフォルダに追加済み",+ "Notes and recordings started here are saved in this folder.": "ここで作成したノートや開始した録音は、このフォルダに保存されます。","You can use calendar events to add meeting titles and attendees to your notes.": "カレンダーの予定から会議のタイトルと参加者をノートに追加できます。","Your calendar": "カレンダー","Your next recording will use both the microphone and call audio.": "次の録音ではマイクと通話音声の両方を使います。",diff --git a/app/src/shared/locales/ko.json b/app/src/shared/locales/ko.jsonindex 7890542a..9549c05e 100644--- a/app/src/shared/locales/ko.json+++ b/app/src/shared/locales/ko.json@@ -620,7 +620,10 @@"You can add notes here to guide the summary.": "여기에 노트를 추가해 요약에 참고하게 할 수 있어요.","You can back up meetings, notes, transcripts and saved audio in one file.": "회의, 노트, 녹취록과 저장된 오디오를 한 파일에 백업할 수 있어요.","You can get a reminder when Yogurt detects a call.": "Yogurt가 통화를 감지하면 알림을 받을 수 있어요.",- "You can record here or add existing meetings to this folder.": "여기서 녹음하거나 기존 회의를 이 폴더에 추가할 수 있어요.",+ "Add meetings": "회의 추가",+ "New note": "새 노트",+ "In this folder": "이 폴더에 있음",+ "Notes and recordings started here are saved in this folder.": "여기에서 시작한 노트와 녹음은 이 폴더에 저장됩니다.","You can use calendar events to add meeting titles and attendees to your notes.": "캘린더 일정으로 노트에 회의 제목과 참석자를 추가할 수 있어요.","Your calendar": "내 캘린더","Your next recording will use both the microphone and call audio.": "다음 녹음에는 마이크와 통화 오디오를 모두 사용해요.",diff --git a/app/src/shared/locales/ms.json b/app/src/shared/locales/ms.jsonindex 9b00b28c..c3c4c1fe 100644--- a/app/src/shared/locales/ms.json+++ b/app/src/shared/locales/ms.json@@ -620,7 +620,10 @@"You can add notes here to guide the summary.": "Anda boleh menambah nota di sini untuk memandu ringkasan.","You can back up meetings, notes, transcripts and saved audio in one file.": "Anda boleh menyandarkan mesyuarat, nota, transkrip dan audio tersimpan dalam satu fail.","You can get a reminder when Yogurt detects a call.": "Anda boleh menerima peringatan apabila Yogurt mengesan panggilan.",- "You can record here or add existing meetings to this folder.": "Anda boleh merakam di sini atau menambah mesyuarat sedia ada ke folder ini.",+ "Add meetings": "Tambah mesyuarat",+ "New note": "Nota baharu",+ "In this folder": "Dalam folder ini",+ "Notes and recordings started here are saved in this folder.": "Nota dan rakaman yang anda mulakan di sini disimpan dalam folder ini.","You can use calendar events to add meeting titles and attendees to your notes.": "Anda boleh menggunakan acara kalendar untuk menambah tajuk mesyuarat dan peserta pada nota.","Your calendar": "Kalendar anda","Your next recording will use both the microphone and call audio.": "Rakaman seterusnya akan menggunakan mikrofon dan audio panggilan.",diff --git a/app/src/shared/locales/nb.json b/app/src/shared/locales/nb.jsonindex 0a080623..b3c1c1bf 100644--- a/app/src/shared/locales/nb.json+++ b/app/src/shared/locales/nb.json@@ -662,7 +662,10 @@"You can add notes here to guide the summary.": "Du kan legge til notater her som hjelp til sammendraget.","You can back up meetings, notes, transcripts and saved audio in one file.": "Du kan sikkerhetskopiere møter, notater, transkripsjoner og lagret lyd i én fil.","You can get a reminder when Yogurt detects a call.": "Du kan få en påminnelse når Yogurt oppdager en samtale.",- "You can record here or add existing meetings to this folder.": "Du kan ta opp her eller legge til eksisterende møter i mappen.",+ "Add meetings": "Legg til møter",+ "New note": "Nytt notat",+ "In this folder": "I denne mappen",+ "Notes and recordings started here are saved in this folder.": "Notater og opptak du starter her, lagres i denne mappen.","You can use calendar events to add meeting titles and attendees to your notes.": "Du kan bruke kalenderhendelser til å legge til møtetitler og deltakere i notatene.","Your calendar": "Kalenderen din","Your next recording will use both the microphone and call audio.": "Neste opptak bruker både mikrofonen og samtalelyden.",diff --git a/app/src/shared/locales/nl.json b/app/src/shared/locales/nl.jsonindex e65e9a0f..d7aea3a3 100644--- a/app/src/shared/locales/nl.json+++ b/app/src/shared/locales/nl.json@@ -662,7 +662,10 @@"You can add notes here to guide the summary.": "Je kunt hier notities toevoegen om de samenvatting te sturen.","You can back up meetings, notes, transcripts and saved audio in one file.": "Je kunt meetings, notities, transcripten en bewaarde audio in één bestand opslaan.","You can get a reminder when Yogurt detects a call.": "Je kunt een herinnering krijgen als Yogurt een gesprek herkent.",- "You can record here or add existing meetings to this folder.": "Je kunt hier opnemen of bestaande meetings aan deze map toevoegen.",+ "Add meetings": "Vergaderingen toevoegen",+ "New note": "Nieuwe notitie",+ "In this folder": "In deze map",+ "Notes and recordings started here are saved in this folder.": "Notities en opnamen die je hier begint, worden in deze map opgeslagen.","You can use calendar events to add meeting titles and attendees to your notes.": "Je kunt agenda-afspraken gebruiken voor titels en deelnemers in je notities.","Your calendar": "Je agenda","Your next recording will use both the microphone and call audio.": "Je volgende opname gebruikt zowel de microfoon als de gespreksaudio.",diff --git a/app/src/shared/locales/pl.json b/app/src/shared/locales/pl.jsonindex 5eefa039..86b9c68e 100644--- a/app/src/shared/locales/pl.json+++ b/app/src/shared/locales/pl.json@@ -698,7 +698,10 @@"You can add notes here to guide the summary.": "Możesz tu dodać notatki jako wskazówki do podsumowania.","You can back up meetings, notes, transcripts and saved audio in one file.": "Możesz zapisać spotkania, notatki, transkrypcje i zachowany dźwięk w jednym pliku.","You can get a reminder when Yogurt detects a call.": "Możesz otrzymać przypomnienie, gdy Yogurt wykryje rozmowę.",- "You can record here or add existing meetings to this folder.": "Możesz tu nagrywać lub dodać istniejące spotkania do tego folderu.",+ "Add meetings": "Dodaj spotkania",+ "New note": "Nowa notatka",+ "In this folder": "W tym folderze",+ "Notes and recordings started here are saved in this folder.": "Notatki i nagrania rozpoczęte tutaj zapisują się w tym folderze.","You can use calendar events to add meeting titles and attendees to your notes.": "Możesz użyć wydarzeń kalendarza, by dodać tytuły i uczestników do notatek.","Your calendar": "Twój kalendarz","Your next recording will use both the microphone and call audio.": "Następne nagranie użyje mikrofonu i dźwięku rozmowy.",diff --git a/app/src/shared/locales/pt-BR.json b/app/src/shared/locales/pt-BR.jsonindex de634a74..87ba176f 100644--- a/app/src/shared/locales/pt-BR.json+++ b/app/src/shared/locales/pt-BR.json@@ -678,7 +678,10 @@"You can add notes here to guide the summary.": "Você pode adicionar notas aqui para orientar o resumo.","You can back up meetings, notes, transcripts and saved audio in one file.": "Você pode salvar reuniões, notas, transcrições e áudio guardado em um só arquivo.","You can get a reminder when Yogurt detects a call.": "Você pode receber um lembrete quando o Yogurt detectar uma chamada.",- "You can record here or add existing meetings to this folder.": "Você pode gravar aqui ou adicionar reuniões existentes a esta pasta.",+ "Add meetings": "Adicionar reuniões",+ "New note": "Nova nota",+ "In this folder": "Nesta pasta",+ "Notes and recordings started here are saved in this folder.": "As notas e gravações que você iniciar aqui serão salvas nesta pasta.","You can use calendar events to add meeting titles and attendees to your notes.": "Você pode usar eventos do calendário para adicionar títulos e participantes às notas.","Your calendar": "Seu calendário","Your next recording will use both the microphone and call audio.": "Sua próxima gravação usará o microfone e o áudio da chamada.",diff --git a/app/src/shared/locales/ro.json b/app/src/shared/locales/ro.jsonindex 17757f7f..5cee4f46 100644--- a/app/src/shared/locales/ro.json+++ b/app/src/shared/locales/ro.json@@ -679,7 +679,10 @@"You can add notes here to guide the summary.": "Puteți adăuga note aici pentru a ghida rezumatul.","You can back up meetings, notes, transcripts and saved audio in one file.": "Puteți salva întâlnirile, notele, transcrierile și sunetul păstrat într-un singur fișier.","You can get a reminder when Yogurt detects a call.": "Puteți primi un memento când Yogurt detectează un apel.",- "You can record here or add existing meetings to this folder.": "Puteți înregistra aici sau adăuga întâlniri existente în acest dosar.",+ "Add meetings": "Adaugă întâlniri",+ "New note": "Notă nouă",+ "In this folder": "În acest dosar",+ "Notes and recordings started here are saved in this folder.": "Notițele și înregistrările pe care le începi aici se salvează în acest dosar.","You can use calendar events to add meeting titles and attendees to your notes.": "Puteți folosi evenimentele din calendar pentru a adăuga titluri și participanți la note.","Your calendar": "Calendarul dvs.","Your next recording will use both the microphone and call audio.": "Următoarea înregistrare va folosi microfonul și sunetul apelului.",diff --git a/app/src/shared/locales/ru.json b/app/src/shared/locales/ru.jsonindex 83fd8124..a8870482 100644--- a/app/src/shared/locales/ru.json+++ b/app/src/shared/locales/ru.json@@ -690,7 +690,10 @@"You can add notes here to guide the summary.": "Здесь можно добавить заметки, чтобы направить сводку.","You can back up meetings, notes, transcripts and saved audio in one file.": "Можно сохранить встречи, заметки, расшифровки и сохранённое аудио в один файл.","You can get a reminder when Yogurt detects a call.": "Можно получать напоминание, когда Yogurt обнаруживает звонок.",- "You can record here or add existing meetings to this folder.": "Здесь можно записать встречу или добавить существующие встречи в папку.",+ "Add meetings": "Добавить встречи",+ "New note": "Новая заметка",+ "In this folder": "В этой папке",+ "Notes and recordings started here are saved in this folder.": "Заметки и записи, которые вы начнёте здесь, сохранятся в этой папке.","You can use calendar events to add meeting titles and attendees to your notes.": "Можно добавлять названия встреч и участников в заметки из событий календаря.","Your calendar": "Ваш календарь","Your next recording will use both the microphone and call audio.": "Следующая запись будет использовать микрофон и звук звонка.",diff --git a/app/src/shared/locales/sv.json b/app/src/shared/locales/sv.jsonindex bf49f95c..b2c5662c 100644--- a/app/src/shared/locales/sv.json+++ b/app/src/shared/locales/sv.json@@ -662,7 +662,10 @@"You can add notes here to guide the summary.": "Du kan lägga till anteckningar här som stöd för sammanfattningen.","You can back up meetings, notes, transcripts and saved audio in one file.": "Du kan säkerhetskopiera möten, anteckningar, transkriptioner och sparat ljud i en fil.","You can get a reminder when Yogurt detects a call.": "Du kan få en påminnelse när Yogurt upptäcker ett samtal.",- "You can record here or add existing meetings to this folder.": "Du kan spela in här eller lägga till befintliga möten i mappen.",+ "Add meetings": "Lägg till möten",+ "New note": "Ny anteckning",+ "In this folder": "I den här mappen",+ "Notes and recordings started here are saved in this folder.": "Anteckningar och inspelningar som du påbörjar här sparas i den här mappen.","You can use calendar events to add meeting titles and attendees to your notes.": "Du kan använda kalenderhändelser för att lägga till mötestitlar och deltagare i anteckningarna.","Your calendar": "Din kalender","Your next recording will use both the microphone and call audio.": "Nästa inspelning använder både mikrofonen och samtalsljudet.",diff --git a/app/src/shared/locales/th.json b/app/src/shared/locales/th.jsonindex dd5167f7..f4248a44 100644--- a/app/src/shared/locales/th.json+++ b/app/src/shared/locales/th.json@@ -620,7 +620,10 @@"You can add notes here to guide the summary.": "คุณเพิ่มโน้ตที่นี่เพื่อเป็นแนวทางให้สรุปได้","You can back up meetings, notes, transcripts and saved audio in one file.": "คุณสำรองการประชุม โน้ต ข้อความถอดเสียง และเสียงที่เก็บไว้ในไฟล์เดียวได้","You can get a reminder when Yogurt detects a call.": "คุณรับการเตือนได้เมื่อ Yogurt ตรวจพบสาย",- "You can record here or add existing meetings to this folder.": "คุณบันทึกที่นี่หรือเพิ่มการประชุมที่มีอยู่ลงในโฟลเดอร์นี้ได้",+ "Add meetings": "เพิ่มการประชุม",+ "New note": "โน้ตใหม่",+ "In this folder": "อยู่ในโฟลเดอร์นี้",+ "Notes and recordings started here are saved in this folder.": "โน้ตและการบันทึกที่คุณเริ่มที่นี่จะถูกเก็บไว้ในโฟลเดอร์นี้","You can use calendar events to add meeting titles and attendees to your notes.": "คุณใช้กิจกรรมในปฏิทินเพิ่มชื่อการประชุมและผู้เข้าร่วมลงในโน้ตได้","Your calendar": "ปฏิทินของคุณ","Your next recording will use both the microphone and call audio.": "การบันทึกครั้งถัดไปจะใช้ทั้งไมโครโฟนและเสียงการโทร",diff --git a/app/src/shared/locales/tr.json b/app/src/shared/locales/tr.jsonindex 7480b87f..91cdb6bc 100644--- a/app/src/shared/locales/tr.json+++ b/app/src/shared/locales/tr.json@@ -650,7 +650,10 @@"You can add notes here to guide the summary.": "Özete yön vermek için buraya not ekleyebilirsiniz.","You can back up meetings, notes, transcripts and saved audio in one file.": "Toplantıları, notları, dökümleri ve saklanan sesi tek dosyada yedekleyebilirsiniz.","You can get a reminder when Yogurt detects a call.": "Yogurt bir görüşme algıladığında hatırlatma alabilirsiniz.",- "You can record here or add existing meetings to this folder.": "Burada kayıt yapabilir veya mevcut toplantıları bu klasöre ekleyebilirsiniz.",+ "Add meetings": "Toplantı ekle",+ "New note": "Yeni not",+ "In this folder": "Bu klasörde",+ "Notes and recordings started here are saved in this folder.": "Burada başlattığınız notlar ve kayıtlar bu klasöre kaydedilir.","You can use calendar events to add meeting titles and attendees to your notes.": "Notlara toplantı başlıklarını ve katılımcıları eklemek için takvim etkinliklerini kullanabilirsiniz.","Your calendar": "Takviminiz","Your next recording will use both the microphone and call audio.": "Sonraki kaydınız mikrofonu ve görüşme sesini kullanacak.",diff --git a/app/src/shared/locales/uk.json b/app/src/shared/locales/uk.jsonindex 4d47c4f0..1ac3e942 100644--- a/app/src/shared/locales/uk.json+++ b/app/src/shared/locales/uk.json@@ -690,7 +690,10 @@"You can add notes here to guide the summary.": "Тут можна додати нотатки, щоб спрямувати підсумок.","You can back up meetings, notes, transcripts and saved audio in one file.": "Можна зберегти зустрічі, нотатки, розшифровки й збережене аудіо в одному файлі.","You can get a reminder when Yogurt detects a call.": "Можна отримувати нагадування, коли Yogurt виявляє дзвінок.",- "You can record here or add existing meetings to this folder.": "Тут можна записувати або додавати наявні зустрічі до цієї папки.",+ "Add meetings": "Додати зустрічі",+ "New note": "Нова нотатка",+ "In this folder": "У цій папці",+ "Notes and recordings started here are saved in this folder.": "Нотатки й записи, які ви почнете тут, зберігатимуться в цій папці.","You can use calendar events to add meeting titles and attendees to your notes.": "Можна додавати назви зустрічей та учасників до нотаток із подій календаря.","Your calendar": "Ваш календар","Your next recording will use both the microphone and call audio.": "Наступний запис використовуватиме мікрофон і звук дзвінка.",diff --git a/app/src/shared/locales/vi.json b/app/src/shared/locales/vi.jsonindex bf6e1adb..7d9d44fc 100644--- a/app/src/shared/locales/vi.json+++ b/app/src/shared/locales/vi.json@@ -620,7 +620,10 @@"You can add notes here to guide the summary.": "Bạn có thể thêm ghi chú ở đây để định hướng tóm tắt.","You can back up meetings, notes, transcripts and saved audio in one file.": "Bạn có thể sao lưu cuộc họp, ghi chú, bản chép lời và âm thanh đã lưu vào một tệp.","You can get a reminder when Yogurt detects a call.": "Bạn có thể nhận lời nhắc khi Yogurt phát hiện cuộc gọi.",- "You can record here or add existing meetings to this folder.": "Bạn có thể ghi âm ở đây hoặc thêm cuộc họp có sẵn vào thư mục này.",+ "Add meetings": "Thêm cuộc họp",+ "New note": "Ghi chú mới",+ "In this folder": "Trong thư mục này",+ "Notes and recordings started here are saved in this folder.": "Ghi chú và bản ghi âm bạn bắt đầu ở đây sẽ được lưu vào thư mục này.","You can use calendar events to add meeting titles and attendees to your notes.": "Bạn có thể dùng sự kiện lịch để thêm tiêu đề cuộc họp và người tham dự vào ghi chú.","Your calendar": "Lịch của bạn","Your next recording will use both the microphone and call audio.": "Bản ghi tiếp theo sẽ dùng cả micrô và âm thanh cuộc gọi.",diff --git a/app/src/shared/locales/zh-CN.json b/app/src/shared/locales/zh-CN.jsonindex c878b510..495f8564 100644--- a/app/src/shared/locales/zh-CN.json+++ b/app/src/shared/locales/zh-CN.json@@ -620,7 +620,10 @@"You can add notes here to guide the summary.": "你可以在这里添加笔记,为摘要提供参考。","You can back up meetings, notes, transcripts and saved audio in one file.": "你可以将会议、笔记、转录和已保存的音频备份到一个文件中。","You can get a reminder when Yogurt detects a call.": "你可以在 Yogurt 检测到通话时收到提醒。",- "You can record here or add existing meetings to this folder.": "你可以在这里录音,或将现有会议添加到此文件夹。",+ "Add meetings": "添加会议",+ "New note": "新建笔记",+ "In this folder": "已在此文件夹中",+ "Notes and recordings started here are saved in this folder.": "在此处创建的笔记和开始的录音都会保存到此文件夹。","You can use calendar events to add meeting titles and attendees to your notes.": "你可以使用日历事件为笔记添加会议标题和参会者。","Your calendar": "你的日历","Your next recording will use both the microphone and call audio.": "下次录音将同时使用麦克风和通话音频。",diff --git a/app/src/shared/locales/zh-TW.json b/app/src/shared/locales/zh-TW.jsonindex 34e08c6d..71b0eec8 100644--- a/app/src/shared/locales/zh-TW.json+++ b/app/src/shared/locales/zh-TW.json@@ -620,7 +620,10 @@"You can add notes here to guide the summary.": "你可以在這裡新增筆記,為摘要提供參考。","You can back up meetings, notes, transcripts and saved audio in one file.": "你可以將會議、筆記、逐字稿和已儲存的音訊備份到一個檔案中。","You can get a reminder when Yogurt detects a call.": "你可以在 Yogurt 偵測到通話時收到提醒。",- "You can record here or add existing meetings to this folder.": "你可以在這裡錄音,或將現有會議加入此資料夾。",+ "Add meetings": "加入會議",+ "New note": "新增筆記",+ "In this folder": "已在此資料夾中",+ "Notes and recordings started here are saved in this folder.": "在這裡建立的筆記和開始的錄音都會儲存在此資料夾。","You can use calendar events to add meeting titles and attendees to your notes.": "你可以使用行事曆活動為筆記加入會議標題和與會者。","Your calendar": "你的行事曆","Your next recording will use both the microphone and call audio.": "下次錄音將同時使用麥克風和通話音訊。",diff --git a/app/src/shared/types.ts b/app/src/shared/types.tsindex 8d2ee187..765a3a2b 100644--- a/app/src/shared/types.ts+++ b/app/src/shared/types.ts@@ -24,6 +24,7 @@ export type Theme = 'light' | 'dark' | 'system'export type AppVisibility = 'both' | 'menu-bar' | 'dock'/** The capture has stopped, but its final database state may still need an explicit retry. */export type MeetingView = Meeting & { stopSavePending?: true; paused?: true }+export type FolderMeetingChoice = Pick<Meeting, 'id' | 'title' | 'startedAt'> & { inFolder: boolean }export type MeetingCard = StoredMeetingCard & { paused?: true }/** What the window sees of the app: window.yogurt (the preload bridge, contextIsolation on) */@@ -77,8 +78,10 @@ export type YogurtApi = {get(id: string): Promise<MeetingView | undefined>/** past and current meetings for home, newest first, a page at a time (before: the last card already shown) */cards(o: { before?: { at: number; id: string }; limit: number; /** only the meetings in this folder */ folder?: string }): Promise<MeetingCard[]>+ /** creates a written note without starting the microphone */+ createFolderNote(folderId: string): Promise<string>/** starts notes or opens the event's existing note with a guarded resume request */- start(eventId: string | null): Promise<StartResult>+ start(eventId: string | null, folderId?: string): Promise<StartResult>/** opens the note for this occurrence, creating a prepared note if needed; never records */prepare(eventId: string, day: number): Promise<StartResult>/** records into an existing prepared note, keeping its title, people and typed notes */@@ -317,6 +320,8 @@ export type YogurtApi = {appearance(id: string, appearance: FolderAppearance): Promise<boolean>rename(id: string, name: string): Promise<void>delete(id: string): Promise<void>+ meetingChoices(id: string): Promise<FolderMeetingChoice[]>+ addMany(id: string, meetingIds: string[]): Promise<boolean>add(id: string, meetingId: string): Promise<void>remove(id: string, meetingId: string): Promise<void>onChange(cb: () => void): () => voiddiff --git a/app/test/addMeetingsDialog.test.ts b/app/test/addMeetingsDialog.test.tsnew file mode 100644index 00000000..87a0c9f1--- /dev/null+++ b/app/test/addMeetingsDialog.test.ts@@ -0,0 +1,61 @@+import { afterEach, expect, it, vi } from 'vitest'+import { isValidElement, type ReactNode, type ReactElement } from 'react'+import { renderToStaticMarkup } from 'react-dom/server'+import { AddMeetingsDialog } from '../src/renderer/src/components/AddMeetingsDialog'+import type { Folder, FolderMeetingChoice } from '../src/shared/types'++const hooks = vi.hoisted(() => ({ values: [] as unknown[], i: 0, load: () => {} }))+vi.mock('react', async original => ({ ...await original<typeof import('react')>(),+ useState(initial: unknown) {+ const i = hooks.i+++ if (!(i in hooks.values)) hooks.values[i] = initial+ return [hooks.values[i], (v: unknown) => { hooks.values[i] = typeof v === 'function' ? v(hooks.values[i]) : v }]+ },+ useRef(initial: unknown) { const i = hooks.i++; return hooks.values[i] ??= { current: initial } },+ useMemo: (read: () => unknown) => read(),+ useEffect: (load: () => void) => { hooks.load = load },+}))+type Element = ReactElement<Record<string, unknown>>+function controls(node: ReactNode): Element[] {+ if (Array.isArray(node)) return node.flatMap(controls)+ return isValidElement<Record<string, unknown>>(node) ? [node, ...controls(node.props.children as ReactNode)] : []+}+const folder: Folder = { id: 'f', name: 'Reviews', color: 'violet', icon: 'folder', createdAt: 0, count: 0 }+const render = () => { hooks.i = 0; return AddMeetingsDialog({ folder, onDone: vi.fn() }) }+const change = (el: Element, target: object) => (el.props.onChange as (e: { target: object }) => void)({ target })+afterEach(() => { vi.unstubAllGlobals(); hooks.values = [] })++it('keeps selections across searches and a failed save, and skips meetings already filed', async () => {+ let rows: FolderMeetingChoice[] = []+ const addMany = vi.fn().mockResolvedValueOnce(false).mockResolvedValueOnce(true)+ const onChange = () => () => {}+ vi.stubGlobal('window', { yogurt: { folders: { meetingChoices: async () => rows, addMany, onChange }, meetings: { onChange } } })+ const choices = () => controls(render()).filter(el => el.props.type === 'checkbox')+ const search = () => controls(render()).find(el => el.props['data-dialog-focus'])!+ const confirm = () => controls(render()).find(el => el.type === 'button' && el.props.className === 'modal-button primary')!+ const refresh = async () => { render(); hooks.load(); await Promise.resolve() }+ const save = async () => { (confirm().props.onClick as () => void)(); await Promise.resolve() }+ await refresh()+ expect(choices()).toHaveLength(0)+ expect(confirm().props.disabled).toBe(true)+ rows = [{ id: '0', title: 'A'.repeat(200), startedAt: 0, inFolder: true }]+ await refresh()+ expect(choices()[0].props).toMatchObject({ checked: true, disabled: true, tabIndex: -1 })+ expect(renderToStaticMarkup(controls(render()).find(el => el.props.className === 'folder-meeting-choice settings-calendar-choice')!.props.children as ReactNode)).toContain(rows[0].title)+ rows.push(...Array.from({ length: 199 }, (_, i) => ({ id: String(i + 1), title: 'Review ' + (i + 1), startedAt: i, inFolder: false })))+ await refresh()+ expect(choices()).toHaveLength(200)+ expect(choices().filter(el => el.props.tabIndex === 0)).toHaveLength(1)+ change(choices()[1], { checked: true })+ change(search(), { value: ' REVIEW 199 ' })+ expect(choices()).toHaveLength(1)+ change(choices()[0], { checked: true })+ expect(confirm().props.children).toBe('Add 2 meetings to folder')+ await save()+ expect(controls(render()).some(el => el.props.role === 'alert')).toBe(true)+ expect(confirm().props.disabled).toBe(false)+ await save()+ expect(addMany).toHaveBeenCalledTimes(2)+ expect(addMany).toHaveBeenLastCalledWith('f', ['1', '199'])+ expect(render().props.closing).toBe(true)+})diff --git a/app/test/agendaNote.test.ts b/app/test/agendaNote.test.tsindex 7c6117e6..5eac5904 100644--- a/app/test/agendaNote.test.ts+++ b/app/test/agendaNote.test.ts@@ -30,12 +30,13 @@ describe('unused prepared notes', () => {const store = openStore(':memory:')try {const create = () => { const m = store.createMeeting({ title: 'Review', titleSource: 'calendar', startedAt: 0, endedAt: null, eventId: 'event', app: null, attendees: [], state: 'prepared' }); store.markPrepared(m.id, 0); store.db.prepare('UPDATE meetings SET last_opened_at = 0 WHERE id = ?').run(m.id); return m.id }- const emptyId = create(), written = create(), recorded = create(), protectedId = create()+ const emptyId = create(), written = create(), recorded = create(), protectedId = create(), filed = create()+ expect(store.addMeetingsToFolder(store.createFolder('Keep').id, [filed])).toBe(true)store.setNotes(written, { mine: 'Keep' })store.addSegments([{ meetingId: recorded, track: 'me', startMs: 0, endMs: 100, text: 'Keep', speaker: null, hidden: true }])expect(store.tidyPrepared(DAY_MS + 1, id => id === protectedId)).toBe(1)expect(store.meeting(emptyId)).toBeUndefined()- for (const id of [written, recorded, protectedId]) expect(store.meeting(id)).toBeDefined()+ for (const id of [written, recorded, protectedId, filed]) expect(store.meeting(id)).toBeDefined()} finally { store.close() }})})diff --git a/app/test/folderChip.test.ts b/app/test/folderChip.test.tsindex d805d194..140ba800 100644--- a/app/test/folderChip.test.ts+++ b/app/test/folderChip.test.ts@@ -8,7 +8,7 @@ import { PastNotes } from '../src/renderer/src/screens/Home'import { FolderChip, FolderPicker } from '../src/renderer/src/components/FolderPicker'const state = vi.hoisted(() => ({ all: [] as Folder[], mine: [] as Folder[] }))-vi.mock('../src/renderer/src/folders', () => ({ useFolders: (id?: string) => id ? state.mine : state.all, setMeetingsInFolder: vi.fn() }))+vi.mock('../src/renderer/src/folders', () => ({ useFolderRead: () => ({ folders: state.mine }), useFolders: (id?: string) => id ? state.mine : state.all, setMeetingsInFolder: vi.fn() }))vi.mock('../src/renderer/src/i18n', async original => ({ ...await original<typeof import('../src/renderer/src/i18n')>(), useLanguage: () => 'en' }))vi.mock('../src/renderer/src/motion', async original => ({ ...await original<typeof import('../src/renderer/src/motion')>(), useReducedMotion: () => false }))vi.mock('../src/renderer/src/components/TrashToast', () => ({ toasts: { add: vi.fn(), close: vi.fn() } }))diff --git a/app/test/folderPickerFocus.test.ts b/app/test/folderPickerFocus.test.tsindex 82137eea..f18251f4 100644--- a/app/test/folderPickerFocus.test.ts+++ b/app/test/folderPickerFocus.test.ts@@ -9,7 +9,7 @@ vi.mock('react', async importOriginal => {const react = await importOriginal<typeof import('react')>()return { ...react, useEffect: vi.fn(), useLayoutEffect: vi.fn(), useRef: vi.fn(react.useRef) }})-vi.mock('../src/renderer/src/folders', () => ({ useFolders: (id?: string) => id ? [] : state.all, setMeetingsInFolder: vi.fn() }))+vi.mock('../src/renderer/src/folders', () => ({ useFolderRead: () => ({ folders: [] }), useFolders: (id?: string) => id ? [] : state.all, setMeetingsInFolder: vi.fn() }))vi.mock('../src/renderer/src/components/TrashToast', () => ({ toasts: { add: vi.fn(), close: vi.fn() } }))vi.mock('../src/renderer/src/motion', () => ({ useReducedMotion: () => false, usePopoverPresence: () => ({ value: false, props: {} }) }))afterEach(() => vi.unstubAllGlobals())diff --git a/app/test/foldersIpc.test.ts b/app/test/foldersIpc.test.tsindex 6eb1fd56..21a534bd 100644--- a/app/test/foldersIpc.test.ts+++ b/app/test/foldersIpc.test.ts@@ -20,6 +20,35 @@ beforeEach(() => {afterEach(() => { store.close(); rmSync(dir, { recursive: true, force: true }) })describe('folders IPC', () => {+ it('lists all eligible meetings newest first and adds a selection once, preserving other folders', () => {+ const dest = store.createFolder('Reviews'), other = store.createFolder('Planning')+ const ids = Array.from({ length: 201 }, (_, i) => store.createMeeting({ title: i === 0 ? 'A'.repeat(200) : 'Review', startedAt: i, endedAt: i, eventId: null, app: null, attendees: [], state: 'done' }).id)+ store.trashMeeting(ids[200])+ store.addToFolder(other.id, ids[0])+ expect(store.folderMeetingIds(dest.id)).toHaveLength(0)+ expect(call('folders:add-many', dest.id, [ids[1]])).toBe(true)+ expect(store.folderMeetingIds(dest.id)).toHaveLength(1)+ const choices = call('folders:meeting-choices', dest.id) as { id: string; title: string; inFolder: boolean }[]+ expect(choices.map(row => row.id)).toEqual(ids.slice(0, 200).reverse())+ expect(choices.at(-1)).toMatchObject({ title: 'A'.repeat(200), inFolder: false })+ expect(choices.at(-2)?.inFolder).toBe(true)+ for (const stale of [ids[200], 'missing', '../bad']) {+ expect(call('folders:add-many', dest.id, [ids[0], stale])).toBe(false)+ expect(store.folderMeetingIds(dest.id)).toEqual([ids[1]])+ }+ store.saveFolderSuggestion(ids[2], { folderId: dest.id, confidence: 1 }, 'folders-v1')+ const write = store.addToFolder.bind(store)+ const add = vi.spyOn(store, 'addToFolder').mockImplementationOnce(write)+ add.mockImplementationOnce(() => { throw new Error('write failed') })+ expect(() => call('folders:add-many', dest.id, [ids[2], ids[0]])).toThrow('write failed')+ add.mockRestore()+ expect(store.folderMeetingIds(dest.id)).toEqual([ids[1]])+ expect(store.folderSuggestion(ids[2]).state).toBe('pending')+ expect(call('folders:add-many', dest.id, [...ids.slice(0, 200), ids[0]])).toBe(true)+ expect(changed).toHaveBeenCalledTimes(2)+ expect(store.folderMeetingIds(dest.id)).toHaveLength(200)+ expect(store.folderMeetingIds(other.id)).toEqual([ids[0]])+ })it('never returns a pending suggestion for a meeting in any folder', async () => {const suggested = store.createFolder('Customers'), other = store.createFolder('Planning')const m = store.createMeeting({ title: 'Kickoff', startedAt: 1, endedAt: 2, eventId: null, app: null, attendees: [], state: 'done' })diff --git a/app/test/meeting.test.ts b/app/test/meeting.test.tsindex fcf8fdd3..70db8dcf 100644--- a/app/test/meeting.test.ts+++ b/app/test/meeting.test.ts@@ -3,7 +3,7 @@ import { EventEmitter } from 'node:events'import { PassThrough } from 'node:stream'import { Capture, activeCapture, hookCapture, recordingFinished, type CaptureProc } from '../src/main/capture'import { openStore, type Store } from '../src/main/store'-import { activeMeeting, bindMeetingApp, getMeeting, initMeetings, onMeetingChange, onMeetingStart, onMeetingStop, onMeetingStopSaved, prepareMeeting, startPreparedMeeting, resumeMeeting, pauseMeetingClock, renameMeeting, retryStopSave, setAttendees, refreshEventSnapshots, linkEvent, unlinkEvent, startMeeting, stopMeeting, withStopState } from '../src/main/meeting'+import { activeMeeting, bindMeetingApp, getMeeting, initMeetings, onMeetingChange, onMeetingStart, onMeetingStop, onMeetingStopSaved, createFolderNote, prepareMeeting, startPreparedMeeting, resumeMeeting, pauseMeetingClock, renameMeeting, retryStopSave, setAttendees, refreshEventSnapshots, linkEvent, unlinkEvent, startMeeting, stopMeeting, withStopState } from '../src/main/meeting'let store: StorebeforeEach(() => { store = openStore(':memory:'); initMeetings(store) })@@ -11,6 +11,35 @@ beforeEach(() => { store = openStore(':memory:'); initMeetings(store) })const event = { id: 'e1', title: 'Design review', start: 1000, end: 2000, attendees: [{ name: 'Ann', email: '[email protected]' }], url: null }describe('meeting lifecycle', () => {+ it('files new notes and recordings before their first change, and reuses a written note when recording', () => {+ const folder = store.createFolder('Reviews')+ const firstRead: string[][] = []+ const off = onMeetingChange(m => firstRead.push(store.foldersOf(m.id).map(f => f.id)))+ try {+ const draft = createFolderNote(folder.id)+ expect(draft.state).toBe('prepared')+ expect(activeMeeting()).toBeNull()+ store.setNotes(draft.id, { mine: 'First question' })+ expect(startPreparedMeeting(draft.id)?.id).toBe(draft.id)+ stopMeeting(draft.id)+ const recording = startMeeting({ title: event.title, event, app: null, folderId: folder.id })+ expect(store.folderMeetingIds(folder.id)).toEqual(expect.arrayContaining([draft.id, recording.id]))+ expect(store.notes(draft.id).mine).toBe('First question')+ expect(firstRead).toEqual(Array(4).fill([folder.id]))+ } finally { off() }+ })+ it('rolls back a missing destination before recording, and never refiles an existing recording or event', () => {+ const folder = store.createFolder('Reviews')+ expect(() => createFolderNote('missing')).toThrow()+ expect(() => startMeeting({ title: '', event, app: null, folderId: 'missing' })).toThrow()+ expect(activeMeeting()).toBeNull()+ expect(store.meetings({ limit: 10 })).toEqual([])+ const original = startMeeting({ title: '', event, app: null })+ expect(startMeeting({ title: '', event: null, app: null, folderId: folder.id }).id).toBe(original.id)+ stopMeeting(original.id)+ expect(startMeeting({ title: '', event, app: null, folderId: folder.id }).id).toBe(original.id)+ expect(store.folderMeetingIds(folder.id)).toEqual([])+ })it.each(['stopped', 'done'] as const)('returns the existing %s event note without starting capture before the guarded resume', state => {const original = startMeeting({ title: event.title, event, app: null })stopMeeting(original.id)diff --git a/app/test/startRecordingActions.test.ts b/app/test/startRecordingActions.test.tsindex 435fbc32..d0460d4e 100644--- a/app/test/startRecordingActions.test.ts+++ b/app/test/startRecordingActions.test.ts@@ -29,16 +29,16 @@ const now = new Date(2026, 10, 13, 12).getTime()const event = (id: string, start = now - 60_000, end = now + 30 * 60_000): AgendaEvent => ({ id, title: `Planning ${id}`, start, end, url: null, attendees: [{ name: 'Robin Vale', email: null }] })const start = vi.fn()const day = vi.fn()-const started = vi.fn()+const uploaded = vi.fn()const gone = vi.fn()let calendarChanged: () => voidlet meetingsChanged: () => voidlet widgetChanged: (view: WidgetView | null) => voidlet cleanups: (() => void)[]const flush = async () => { await Promise.resolve(); await Promise.resolve() }-const render = (emptyActions?: HTMLElement) => {+const render = (emptyActions?: HTMLElement, folderId?: string) => {hooks.state = 0; hooks.ref = 0; hooks.effects = []; hooks.layout = []- return StartRecording({ onStarted: started, onGone: gone, emptyActions }) as ReactElement<Record<string, unknown>> | null+ return StartRecording({ folderId, onUploaded: uploaded, onGone: gone, emptyActions }) as ReactElement<Record<string, unknown>> | null}const run = (effect: () => (() => void) | void) => { const cleanup = effect(); if (cleanup) cleanups.push(cleanup) }type Element = ReactElement<Record<string, unknown>>@@ -76,7 +76,7 @@ it('keeps upload and the unattached action available outside the live/15-minuteexpect(find(tree, 'recording-choices').type).toBe(Menu.Trigger)expect(find(tree, 'recording-upload')).toBeDefined()await click(find(tree, 'start-recording'))- expect(start).toHaveBeenLastCalledWith(null)+ expect(start).toHaveBeenLastCalledWith(null, undefined)}})it('starts an unattached recording from the empty library even during a calendar event', async () => {@@ -85,7 +85,16 @@ it('starts an unattached recording from the empty library even during a calendarconst cta = find(tree, 'empty-start-recording')expect(renderToStaticMarkup(cta.props.children as ReactNode)).toContain('Start recording')await click(cta)- expect(start).toHaveBeenCalledExactlyOnceWith(null)+ expect(start).toHaveBeenCalledExactlyOnceWith(null, undefined)+})++it('carries the folder through the toolbar, calendar, unattached and empty-state record actions', async () => {+ await calendar([event('live')])+ const tree = render(document.getElementById('empty')!, 'reviews')+ for (const [action, eventId] of [['start-recording', 'live'], ['recording-meeting', 'live'], ['recording-unattached', null], ['empty-start-recording', null]] as const) {+ await click(find(tree, action))+ expect(start).toHaveBeenLastCalledWith(eventId, 'reviews')+ }})it('attaches the one live meeting and preserves its full title while CSS truncates the label', async () => {@@ -95,8 +104,8 @@ it('attaches the one live meeting and preserves its full title while CSS truncatexpect(find(tree, 'start-recording').props.title).toBe(`Take notes · ${live.title}`)expect(find(tree, 'recording-choices').type).toBe(Menu.Trigger)await click(find(tree, 'start-recording'))- expect(start).toHaveBeenCalledExactlyOnceWith(live.id)- expect(started).toHaveBeenCalledExactlyOnceWith('note')+ expect(start).toHaveBeenCalledExactlyOnceWith(live.id, undefined)+ expect(uploaded).not.toHaveBeenCalled()const css = readFileSync(new URL('../src/renderer/src/workspace.css', import.meta.url), 'utf8')expect(css).toMatch(/\.recording-label \{[^}]*max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap/)expect(css).toMatch(/\.recording-split \{[^}]*max-width:min\(100%,276px\)/)@@ -115,16 +124,16 @@ it('uses the menu trigger for two live meetings, with live choices first, New reexpect(renderToStaticMarkup(items[0].props.children as ReactNode)).toContain('Now')const soon = renderToStaticMarkup(items[2].props.children as ReactNode)expect(soon).toContain('in 8 min'); expect(soon).toContain('Robin Vale')- await click(items[2]); expect(start).toHaveBeenLastCalledWith('soon')+ await click(items[2]); expect(start).toHaveBeenLastCalledWith('soon', undefined)expect(render()!.props.open).toBe(false)- await click(find(render(), 'recording-unattached')); expect(start).toHaveBeenLastCalledWith(null)+ await click(find(render(), 'recording-unattached')); expect(start).toHaveBeenLastCalledWith(null, undefined)})it('suggests an upcoming meeting but keeps the main action unattached', async () => {const tree = await calendar([event('soon', now + 8 * 60_000)])expect(label(tree)).toContain('Start recording')expect(find(tree, 'recording-choices').type).toBe(Menu.Trigger)await click(find(tree, 'start-recording'))- expect(start).toHaveBeenCalledExactlyOnceWith(null)+ expect(start).toHaveBeenCalledExactlyOnceWith(null, undefined)})it.each(['stopped', 'done'] as const)('labels a %s note for resume in the title bar and menu without suggesting a new folder', async state => {const live = { ...event('live'), note: { id: 'existing', state } }@@ -142,8 +151,8 @@ it.each(['stopped', 'done'] as const)('labels a %s note for resume in the titleawait click(find(tree, 'start-recording'))await click(row)expect(start).toHaveBeenCalledTimes(2)- expect(start).toHaveBeenLastCalledWith(live.id)- expect(started).not.toHaveBeenCalled()+ expect(start).toHaveBeenLastCalledWith(live.id, undefined)+ expect(uploaded).not.toHaveBeenCalled()})it('keeps the take-notes label and start path for a prepared note', async () => {const tree = await calendar([{ ...event('prepared'), note: { id: 'prepared-note', state: 'prepared' } }])@@ -153,7 +162,7 @@ it('keeps the take-notes label and start path for a prepared note', async () =>expect(html).not.toContain('data-icon="RotateCcw"')expect(html).toContain('<svg')await click(find(tree, 'start-recording'))- expect(start).toHaveBeenCalledExactlyOnceWith('prepared')+ expect(start).toHaveBeenCalledExactlyOnceWith('prepared', undefined)})it('refreshes the resume label when the linked note changes or is trashed', async () => {const live = event('live')@@ -213,10 +222,10 @@ it('reports a removed event, refreshes choices, and never reports a failed or raexpect(toasts.add).toHaveBeenLastCalledWith(expect.objectContaining({ title: 'That meeting is no longer on your calendar.' }))expect(gone).toHaveBeenCalledOnce()expect(find(render(), 'recording-meeting')).toBeUndefined()- expect(started).not.toHaveBeenCalled()+ expect(uploaded).not.toHaveBeenCalled()start.mockResolvedValueOnce({ id: 'existing', alreadyRecording: true })await click(find(render(), 'start-recording'))- expect(started).not.toHaveBeenCalled()+ expect(uploaded).not.toHaveBeenCalled()start.mockRejectedValueOnce(new Error('fixture start failure'))await click(find(render(), 'start-recording'))expect(toasts.add).toHaveBeenLastCalledWith(expect.objectContaining({ title: "Yogurt couldn't start the notes. Try again in a moment." }))@@ -241,5 +250,5 @@ it('opens the upload flow with the current destination callback without startingexpect(start).not.toHaveBeenCalled()expect(pick).toHaveBeenCalledOnce()expect(dispatchEvent).toHaveBeenCalledOnce()- expect(dispatchEvent.mock.calls[0][0]).toMatchObject({ type: 'audio-upload-open', detail: { file, onCreated: started } })+ expect(dispatchEvent.mock.calls[0][0]).toMatchObject({ type: 'audio-upload-open', detail: { file, onCreated: uploaded } })})