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
Home: Start recording in the empty state
Eric Brownrout213ed6032df9
diff --git a/app/e2e/callControls.spec.ts b/app/e2e/callControls.spec.tsindex 9c1cff49..8f1004ee 100644--- a/app/e2e/callControls.spec.ts+++ b/app/e2e/callControls.spec.ts@@ -15,7 +15,7 @@ test('paused recording controls fit the minimum window and keep focus inside eacconst { app, page } = await launch()try {await app.evaluate(({ BrowserWindow }) => BrowserWindow.getAllWindows()[0].setSize(720, 520))- await page.getByRole('button', { name: 'Start recording', exact: true }).click()+ await page.locator('#workspace-actions').getByRole('button', { name: 'Start recording', exact: true }).click()await page.getByTestId('note-pause').click()await expect(page.getByTestId('rec-mic')).toHaveText('Recording paused')await page.keyboard.press('Tab')diff --git a/app/e2e/deleteRecording.spec.ts b/app/e2e/deleteRecording.spec.tsindex f92744d5..4f57b384 100644--- a/app/e2e/deleteRecording.spec.ts+++ b/app/e2e/deleteRecording.spec.ts@@ -77,7 +77,7 @@ test('turning retention off deletes only after saved transcript and summary andawait toggle.click(); await expect(toggle).toHaveAttribute('aria-checked', 'false')expect(JSON.parse(readFileSync(join(userData, 'settings.json'), 'utf8')).keepRecordings).toBe(false)await page.getByTestId('nav-home').click()- await page.getByRole('button', { name: 'Start recording', exact: true }).click()+ await page.locator('#workspace-actions').getByRole('button', { name: 'Start recording', exact: true }).click()const id = (await page.evaluate(() => window.yogurt.nav.current())).slice('/note/'.length)await expect.poll(async () => (await page.evaluate(id => window.yogurt.transcript.get(id), id)).length, { timeout: 30_000 }).toBeGreaterThan(0)await page.getByTestId('note-stop').click()@@ -113,7 +113,7 @@ test('@everywhere a backup with deleted audio restores text without recreating rtest('a meeting with deleted audio resumes after its retained transcript', async () => {const { app, page } = await launch({ YOGURT_FAKE_LLM_MS: '1' })try {- await page.getByRole('button', { name: 'Start recording', exact: true }).click()+ await page.locator('#workspace-actions').getByRole('button', { name: 'Start recording', exact: true }).click()const id = (await page.evaluate(() => window.yogurt.nav.current())).slice('/note/'.length)await expect.poll(async () => (await page.evaluate(id => window.yogurt.transcript.get(id), id)).length, { timeout: 20_000 }).toBeGreaterThan(0)await page.getByTestId('note-stop').click()diff --git a/app/e2e/home.spec.ts b/app/e2e/home.spec.tsindex 6f7fb558..5c48a55c 100644--- a/app/e2e/home.spec.ts+++ b/app/e2e/home.spec.ts@@ -204,9 +204,9 @@ test('no meetings yet: plain words and one button', async () => {try {const empty = page.getByTestId('past-empty')await expect(empty).toBeVisible()- await expect(empty.getByRole('button')).toHaveCount(0)- await expect(page.getByRole('button', { name: 'Start recording', exact: true })).toHaveCount(1)- await page.getByTestId('new-note').click()+ await expect(empty.getByRole('button')).toHaveCount(1)+ await expect(page.getByTestId('new-note')).toBeVisible()+ await empty.getByRole('button', { name: 'Start recording', exact: true }).click()await expect(page.getByTestId('note-state')).toHaveAttribute('data-state', 'recording')} finally { await app.close() }})diff --git a/app/e2e/meterSleep.spec.ts b/app/e2e/meterSleep.spec.tsindex 15f91705..198f657b 100644--- a/app/e2e/meterSleep.spec.ts+++ b/app/e2e/meterSleep.spec.ts@@ -12,7 +12,7 @@ test('the level meter stops drawing while its window is hidden and once the roomtry {const page = await app.firstWindow()await expect(page.getByTestId('home')).toBeVisible()- await page.getByRole('button', { name: 'Start recording', exact: true }).click()+ await page.locator('#workspace-actions').getByRole('button', { name: 'Start recording', exact: true }).click()const wave = page.getByTestId('note-wave')// the fake mic talks for its first 16.5 sawait expect(wave).toHaveAttribute('data-live', '1')diff --git a/app/e2e/micPicker.spec.ts b/app/e2e/micPicker.spec.tsindex b9c50053..e9ed5cf4 100644--- a/app/e2e/micPicker.spec.ts+++ b/app/e2e/micPicker.spec.ts@@ -12,7 +12,7 @@ test('the mic picker lists the mics, switches the live recording, remembers thetry {const page = await app.firstWindow()await expect(page.getByTestId('home')).toBeVisible()- await page.getByRole('button', { name: 'Start recording', exact: true }).click()+ await page.locator('#workspace-actions').getByRole('button', { name: 'Start recording', exact: true }).click()await expect(page.getByTestId('note-state')).toHaveAttribute('data-state', 'recording')const id = (await page.evaluate(() => window.yogurt.nav.current())).slice('/note/'.length)const chip = page.getByTestId('rec-mic-chip')@@ -76,7 +76,7 @@ test('the mic picker lists the mics, switches the live recording, remembers theawait page.getByTestId('note-stop').click()await expect(page.getByTestId('note-state')).toHaveAttribute('data-state', /^(stopped|done)$/)await page.getByTestId('nav-home').click()- await page.getByRole('button', { name: 'Start recording', exact: true }).click()+ await page.locator('#workspace-actions').getByRole('button', { name: 'Start recording', exact: true }).click()await expect(page.getByTestId('note-state')).toHaveAttribute('data-state', 'recording')await expect(page.getByTestId('rec-mic')).toHaveText('iPhone Microphone')await expect.poll(async () => (await page.evaluate(() => window.yogurt.audio.mics())).choice).toBe('fake-iphone')@@ -86,7 +86,7 @@ test('the mic picker lists the mics, switches the live recording, remembers theawait fake(app, 'micDevices', [{ uid: 'BuiltInMicrophoneDevice', name: 'MacBook Pro Microphone', default: true }])await expect(page.getByTestId('note-state')).toHaveAttribute('data-state', /^(stopped|done)$/)await page.getByTestId('nav-home').click()- await page.getByRole('button', { name: 'Start recording', exact: true }).click()+ await page.locator('#workspace-actions').getByRole('button', { name: 'Start recording', exact: true }).click()await expect(page.getByTestId('note-state')).toHaveAttribute('data-state', 'recording')await expect(page.getByTestId('rec-mic')).toHaveText('MacBook Pro Microphone')await expect.poll(async () => (await page.evaluate(() => window.yogurt.audio.mics())).choice).toBeNull()diff --git a/app/e2e/noteFooter.spec.ts b/app/e2e/noteFooter.spec.tsindex 3149f457..5f2e8bb6 100644--- a/app/e2e/noteFooter.spec.ts+++ b/app/e2e/noteFooter.spec.ts@@ -10,7 +10,7 @@ test('recording controls stay in the header and Ask lives in the footer with statry {const page = await app.firstWindow()await expect(page.getByTestId('home')).toBeVisible()- await page.getByRole('button', { name: 'Start recording', exact: true }).click()+ await page.locator('#workspace-actions').getByRole('button', { name: 'Start recording', exact: true }).click()await expect(page.getByTestId('note-notes-tab')).toHaveAttribute('aria-selected', 'true')await page.getByTestId('note-transcript-toggle').click()const header = page.locator('.note-header'), controls = header.getByTestId('note-state')diff --git a/app/e2e/noteNavigation.spec.ts b/app/e2e/noteNavigation.spec.tsindex e0c2eaa8..a62e1cdc 100644--- a/app/e2e/noteNavigation.spec.ts+++ b/app/e2e/noteNavigation.spec.ts@@ -40,7 +40,7 @@ test('post-call navigation shows Transcript, My notes and Summary without hiddentest('primary tabs preserve the editor and its latest text through pause, resume and Stop', async () => {const { app, page } = await launch()try {- await page.getByRole('button', { name: 'Start recording', exact: true }).click()+ await page.locator('#workspace-actions').getByRole('button', { name: 'Start recording', exact: true }).click()const transcript = page.getByTestId('note-transcript-toggle'), notes = page.getByTestId('note-notes-tab')await expect(notes).toHaveAttribute('aria-selected', 'true')await expect(page.getByTestId('note-mine')).toBeVisible()@@ -86,7 +86,7 @@ test('primary tabs preserve the editor and its latest text through pause, resumetest('Stop opens and streams Summary; reopening keeps the completed summary', async () => {const { app, page } = await launch()try {- await page.getByRole('button', { name: 'Start recording', exact: true }).click()+ await page.locator('#workspace-actions').getByRole('button', { name: 'Start recording', exact: true }).click()const id = (await page.evaluate(() => window.yogurt.nav.current())).slice('/note/'.length)await expect.poll(async () => (await page.evaluate((id) => window.yogurt.transcript.get(id), id)).length, { timeout: 20_000 }).toBeGreaterThan(0)await page.getByTestId('note-stop').click()@@ -155,7 +155,7 @@ for (const reducedMotion of ['reduce', 'no-preference'] as const) for (const froconst { app, page } = await launch()try {await page.emulateMedia({ reducedMotion })- await page.getByRole('button', { name: 'Start recording', exact: true }).click()+ await page.locator('#workspace-actions').getByRole('button', { name: 'Start recording', exact: true }).click()const id = (await page.evaluate(() => window.yogurt.nav.current())).slice('/note/'.length)await page.getByTestId('note-mine').fill('Keep the trial date on Friday.')if (from === 'transcript') await page.getByTestId('note-transcript-toggle').click()@@ -192,7 +192,7 @@ test('choosing another tab cancels the pending Stop arrival', async () => {const { app, page } = await launch()try {await page.emulateMedia({ reducedMotion: 'no-preference' })- await page.getByRole('button', { name: 'Start recording', exact: true }).click()+ await page.locator('#workspace-actions').getByRole('button', { name: 'Start recording', exact: true }).click()await page.getByTestId('note-transcript-toggle').click()await page.evaluate(() => {const observer = new MutationObserver(() => {diff --git a/app/e2e/pauseRecording.spec.ts b/app/e2e/pauseRecording.spec.tsindex 77a6bb3b..d11ffa08 100644--- a/app/e2e/pauseRecording.spec.ts+++ b/app/e2e/pauseRecording.spec.ts@@ -11,7 +11,7 @@ test('Pause keeps the same note and frozen captured time; Resume continues and Sconst page = await app.firstWindow()page.setDefaultTimeout(5000)await expect(page.getByTestId('home')).toBeVisible()- await page.getByRole('button', { name: 'Start recording', exact: true }).click()+ await page.locator('#workspace-actions').getByRole('button', { name: 'Start recording', exact: true }).click()await expect(page.getByTestId('note-state')).toHaveAttribute('data-state', 'recording')const id = (await page.evaluate(() => window.yogurt.nav.current())).slice('/note/'.length)await page.getByTestId('note-notes-tab').click()diff --git a/app/e2e/recordingReminder.spec.ts b/app/e2e/recordingReminder.spec.tsindex c3eb9849..31b34ad3 100644--- a/app/e2e/recordingReminder.spec.ts+++ b/app/e2e/recordingReminder.spec.ts@@ -18,7 +18,7 @@ for (const theme of ['light', 'dark'] as const) test(`standard recording remindeObject.defineProperty(document, 'hasFocus', { configurable: true, value: () => true })window.dispatchEvent(new Event('focus'))})- await page.getByRole('button', { name: 'Start recording', exact: true }).click()+ await page.locator('#workspace-actions').getByRole('button', { name: 'Start recording', exact: true }).click()await expect(page.getByTestId('note-state')).toHaveAttribute('data-state', 'recording')const toast = page.getByTestId('recording-reminder')await expect(toast).toHaveText("Let everyone know you're recording.")@@ -80,7 +80,7 @@ for (const theme of ['light', 'dark'] as const) test(`standard recording remindeawait page.reload()await expect(toggle).toHaveAttribute('aria-checked', 'false')await page.getByTestId('nav-home').click()- await page.getByRole('button', { name: 'Start recording', exact: true }).click()+ await page.locator('#workspace-actions').getByRole('button', { name: 'Start recording', exact: true }).click()await expect(page.getByTestId('note-state')).toHaveAttribute('data-state', 'recording')await expect(toast).toHaveCount(0)await page.getByTestId('settings-open').click()@@ -89,7 +89,7 @@ for (const theme of ['light', 'dark'] as const) test(`standard recording remindeawait expect(toast).toHaveCount(0)await page.getByTestId('note-stop').click()await page.getByTestId('nav-home').click()- await page.getByRole('button', { name: 'Start recording', exact: true }).click()+ await page.locator('#workspace-actions').getByRole('button', { name: 'Start recording', exact: true }).click()await expect(toast).toBeVisible()} finally { await app.close() }})diff --git a/app/e2e/resumeRecording.spec.ts b/app/e2e/resumeRecording.spec.tsindex fd28905a..c55bce32 100644--- a/app/e2e/resumeRecording.spec.ts+++ b/app/e2e/resumeRecording.spec.ts@@ -49,7 +49,7 @@ test('a finished note resumes after reopening, preserves original data, confirmsconst profile = mkdtempSync(join(tmpdir(), 'yogurt-resume-'))let { app, page } = await launch(profile)try {- await page.getByRole('button', { name: 'Start recording', exact: true }).click()+ await page.locator('#workspace-actions').getByRole('button', { name: 'Start recording', exact: true }).click()const id = (await page.evaluate(() => window.yogurt.nav.current())).slice('/note/'.length)await page.evaluate((id) => window.yogurt.meetings.rename(id, 'Resume safety fixture'), id)await page.getByTestId('note-notes-tab').click()@@ -111,7 +111,7 @@ test('Stop offers Stop summary and Generate summary before recording resumes', aconst profile = mkdtempSync(join(tmpdir(), 'yogurt-resume-writing-'))const { app, page } = await launch(profile, { YOGURT_FAKE_LLM_MS: '120' })try {- await page.getByRole('button', { name: 'Start recording', exact: true }).click()+ await page.locator('#workspace-actions').getByRole('button', { name: 'Start recording', exact: true }).click()const id = (await page.evaluate(() => window.yogurt.nav.current())).slice('/note/'.length)await page.getByTestId('note-notes-tab').click()await page.getByRole('textbox', { name: 'My notes', exact: true }).fill('First session manual note.')diff --git a/app/e2e/speakerColors.spec.ts b/app/e2e/speakerColors.spec.tsindex 6c69a86f..06c9c4f5 100644--- a/app/e2e/speakerColors.spec.ts+++ b/app/e2e/speakerColors.spec.ts@@ -17,7 +17,7 @@ for (const theme of ['light', 'dark'] as const) test(`speaker colours agree acroawait page.emulateMedia({ colorScheme: theme, reducedMotion: 'reduce' })const win = await app.browserWindow(page)await win.evaluate(w => w.setContentSize(1200, 850))- await page.getByRole('button', { name: 'Start recording', exact: true }).click()+ await page.locator('#workspace-actions').getByRole('button', { name: 'Start recording', exact: true }).click()await expect(page.getByTestId('note-state')).toHaveAttribute('data-state', 'recording')const id = await page.evaluate(async () => (await window.yogurt.nav.current()).slice('/note/'.length))db = new DatabaseSync(join(userData, 'yogurt.db'), { timeout: 5000 })diff --git a/app/e2e/spokenLanguage.spec.ts b/app/e2e/spokenLanguage.spec.tsindex 28e64e67..8ee132f4 100644--- a/app/e2e/spokenLanguage.spec.ts+++ b/app/e2e/spokenLanguage.spec.ts@@ -20,7 +20,7 @@ test('the spoken language picker: English only by default, Multi-language for thconst a = await launch()const { app, page } = atry {- await page.getByRole('button', { name: 'Start recording', exact: true }).click()+ await page.locator('#workspace-actions').getByRole('button', { name: 'Start recording', exact: true }).click()await expect(page.getByTestId('note-state')).toHaveAttribute('data-state', 'recording')await expect(page.getByTestId('spoken-name')).toHaveText('English')// whisper is told English, nothing is detected@@ -71,7 +71,7 @@ test('the spoken language picker: English only by default, Multi-language for th// after a relaunch the next recording starts in Multi-languageconst b = await launch(a.userData)try {- await b.page.getByRole('button', { name: 'Start recording', exact: true }).click()+ await b.page.locator('#workspace-actions').getByRole('button', { name: 'Start recording', exact: true }).click()await expect(b.page.getByTestId('spoken-name')).toHaveText('Multi-language')await expect.poll(async () => (await languages(b.app)).length, { timeout: 30_000 }).toBeGreaterThan(0)expect(new Set(await languages(b.app))).toEqual(new Set(['auto']))diff --git a/app/src/renderer/src/components/StartRecording.tsx b/app/src/renderer/src/components/StartRecording.tsxindex 907fa8d8..839ae298 100644--- a/app/src/renderer/src/components/StartRecording.tsx+++ b/app/src/renderer/src/components/StartRecording.tsx@@ -15,7 +15,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, testId = 'start-recording' }: { onStarted?: (id: string) => void; onGone?: () => void; testId?: string }) {+export function StartRecording({ onStarted, onGone, emptyActions, testId = 'start-recording' }: { emptyActions?: HTMLElement | null; onStarted?: (id: string) => void; onGone?: () => void; testId?: string }) {const [actions, setActions] = useState<HTMLElement | null>(null)const [recording, setRecording] = useState(lastRecording)const [starting, setStarting] = useState(false)@@ -83,6 +83,9 @@ export function StartRecording({ onStarted, onGone, testId = 'start-recording' }const content = <><Mic size={14} aria-hidden="true" /><span className="recording-label">{label}</span></>const button = { 'data-testid': testId, disabled: starting, title: label, className: 'workspace-button primary recording-main no-drag' }return createPortal(<Menu.Root modal={false} open={open} onOpenChange={setOpen}>+ {emptyActions && createPortal(<button type="button" disabled={starting} data-testid="empty-start-recording" className="workspace-button" onClick={() => void start(null)}>+ <Mic size={14} aria-hidden="true" />{t('Start recording')}+ </button>, emptyActions)}<div ref={root} className="recording-split no-drag" data-split={true}>{live.length > 1 ? <Menu.Trigger {...button}>{content}</Menu.Trigger>: <button {...button} onClick={() => void start(live[0]?.id ?? null)}>{content}</button>}diff --git a/app/src/renderer/src/screens/Home.tsx b/app/src/renderer/src/screens/Home.tsxindex b7f02e88..2741caa7 100644--- a/app/src/renderer/src/screens/Home.tsx+++ b/app/src/renderer/src/screens/Home.tsx@@ -38,20 +38,21 @@ export function Home({ open, openFolder, agendaJump }: { open: (id: string) => vif (r.error === 'gone') setCalendarRevision((revision) => revision + 1)toasts.add({ id: 'home-message', data: { testId: 'home-message' }, title: r.error === 'gone' ? t('That meeting is no longer on your calendar.') : t("Yogurt couldn't start the notes. Try again in a moment.") })}+ const [emptyActions, setEmptyActions] = useState<HTMLDivElement | null>(null)const calendar = window.yogurt.capabilities.calendarreturn <div data-testid="home" className={calendar ? 'native-home' : 'native-home no-agenda'}>- <StartRecording testId="new-note" onGone={() => setCalendarRevision(revision => revision + 1)} />+ <StartRecording testId="new-note" emptyActions={emptyActions} onGone={() => setCalendarRevision(revision => revision + 1)} /><div className="native-library" ref={past.setRoot} tabIndex={-1}><h1>{t('Your meetings')}</h1>{past.failed && !!past.cards?.length && <InlineError testId="meetings-read-error" retry={past.retry} />}- <LoadingContent pending={!past.cards && !past.failed} testId="meetings-loading" skeleton={<MeetingListLoading />} className="library-load">{!past.cards?.length ? <LibraryEmpty testId="past-empty" icon={<FileText size={28} strokeWidth={1.5} aria-hidden="true" />} title={t('Your notes will show up here')} description={t('Your summary appears after you stop recording.')} retry={past.failed ? past.retry : undefined} /> : <PastNotes cards={past.cards ?? []} day={day} more={past.more} sentinel={past.setSentinel} onOpen={open} openFolder={openFolder} />}</LoadingContent>+ <LoadingContent pending={!past.cards && !past.failed} testId="meetings-loading" skeleton={<MeetingListLoading />} className="library-load">{!past.cards?.length ? <LibraryEmpty testId="past-empty" icon={<FileText size={28} strokeWidth={1.5} aria-hidden="true" />} title={t('Your notes will show up here')} description={t('Your summary appears after you stop recording.')} retry={past.failed ? past.retry : undefined}><div ref={setEmptyActions} /></LibraryEmpty> : <PastNotes cards={past.cards ?? []} day={day} more={past.more} sentinel={past.setSentinel} onOpen={open} openFolder={openFolder} />}</LoadingContent></div>{calendar && <Agenda revision={calendarRevision} recording={recording} onStart={start} onOpen={open} jumpTo={agendaJump} />}</div>}-export function LibraryEmpty({ testId, icon, title, description, retry }: {- testId: string; icon: ReactNode; title: string; description: string; retry?: () => void+export function LibraryEmpty({ testId, icon, title, description, retry, children }: {+ testId: string; icon: ReactNode; title: string; description: string; retry?: () => void; children?: ReactNode}) {if (retry) return <ReadError testId="meetings-read-error" retry={retry} className="library-empty" />return <section data-testid={testId} className="library-empty empty-state">@@ -59,6 +60,7 @@ export function LibraryEmpty({ testId, icon, title, description, retry }: {<div className="empty-tile">{icon}</div><h2>{title}</h2><p>{description}</p>+ {children}</div></section>}diff --git a/app/test/startRecordingActions.test.ts b/app/test/startRecordingActions.test.tsindex f96f3e21..4469c6f0 100644--- a/app/test/startRecordingActions.test.ts+++ b/app/test/startRecordingActions.test.ts@@ -36,9 +36,9 @@ let meetingsChanged: () => voidlet widgetChanged: (view: WidgetView | null) => voidlet cleanups: (() => void)[]const flush = async () => { await Promise.resolve(); await Promise.resolve() }-const render = () => {+const render = (emptyActions?: HTMLElement) => {hooks.state = 0; hooks.ref = 0; hooks.effects = []; hooks.layout = []- return StartRecording({ onStarted: started, onGone: gone }) as ReactElement<Record<string, unknown>> | null+ return StartRecording({ onStarted: started, 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>>@@ -79,6 +79,15 @@ it('keeps upload and the unattached action available outside the live/15-minuteexpect(start).toHaveBeenLastCalledWith(null)}})+it('starts an unattached recording from the empty library even during a calendar event', async () => {+ await calendar([event('live')])+ const tree = render(document.getElementById('empty')!)+ const cta = find(tree, 'empty-start-recording')+ expect(renderToStaticMarkup(cta.props.children as ReactNode)).toContain('Start recording')+ await click(cta)+ expect(start).toHaveBeenCalledExactlyOnceWith(null)+})+it('attaches the one live meeting and preserves its full title while CSS truncates the label', async () => {const live = { ...event('live'), title: 'Planning the next release and reviewing every open question '.repeat(4) }const tree = await calendar([event('soon', now + 8 * 60_000), live])