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
Note tabs: text only, with a mark on Summary while it is on its way
Eric Brownrout5d26b70edf46
diff --git a/app/e2e/noteNavigation.spec.ts b/app/e2e/noteNavigation.spec.tsindex a62e1cdc..a59572c6 100644--- a/app/e2e/noteNavigation.spec.ts+++ b/app/e2e/noteNavigation.spec.ts@@ -117,7 +117,12 @@ test('the underline slides on pointer tab changes without moving the reading panawait page.evaluate(dir => document.documentElement.dir = dir, dir)for (const tab of [transcript, notes, page.getByTestId('note-summary-tab')]) {await tab.hover()- if (process.env.YOGURT_UI_REVIEW !== 'before') expect(await tab.locator('svg, svg path').evaluateAll(els => els.every(el => getComputedStyle(el).animationName === 'none'))).toBe(true)+ if (process.env.YOGURT_UI_REVIEW !== 'before') {+ await expect(tab.locator('svg')).toHaveCount(0)+ await expect(tab).toHaveCSS('padding-inline-start', '4px')+ await expect(tab).toHaveCSS('padding-inline-end', '4px')+ await expect(tab).toHaveCSS('column-gap', '4px')+ }await tab.click()await expect(pane).toHaveCSS('animation-name', 'none')await expect(pane).toHaveCSS('transform', 'none')diff --git a/app/e2e/resumeRecording.spec.ts b/app/e2e/resumeRecording.spec.tsindex c55bce32..8570b4cc 100644--- a/app/e2e/resumeRecording.spec.ts+++ b/app/e2e/resumeRecording.spec.ts@@ -12,7 +12,7 @@ async function launch(profile: string, env: Record<string, string> = {}) {return { app, page }}-test('Stop summary preserves a saved rewrite and the header label stays still on hover and focus', async () => {+test('Stop summarizing preserves a saved rewrite and the header label stays still on hover and focus', async () => {const { app, page } = await launch(mkdtempSync(join(tmpdir(), 'yogurt-summary-stop-')), { YOGURT_FAKE_LLM_MS: '120' })try {const id = await app.evaluate(async () => (await (globalThis as unknown as { __fake__: { chatMeetings(): Promise<string[]> } }).__fake__.chatMeetings())[0])@@ -21,17 +21,17 @@ test('Stop summary preserves a saved rewrite and the header label stays still onconst before = await page.evaluate(id => window.yogurt.notes.get(id), id)await page.evaluate(id => window.yogurt.notes.writeAgain(id), id)const button = page.getByTestId('note-resume')- await expect(button).toHaveText('Summarizing…')+ await expect(button).toHaveText('Stop summarizing')// the button eases to its label's width first; measure once the label's box has reached the words' own widthawait expect.poll(() => button.locator('.swap-text').evaluate(el => Math.abs(el.getBoundingClientRect().width - el.firstElementChild!.getBoundingClientRect().width) < 0.5)).toBe(true)const width = (await button.boundingBox())!.widthawait button.hover()- await expect(button).toHaveAccessibleName('Stop summary')- await expect(button).toHaveText('Summarizing…')+ await expect(button).toHaveAccessibleName('Stop summarizing')+ await expect(button).toHaveText('Stop summarizing')// the same width, give or take how a display rounds the words (#93: 0.4 px apart on an M5's built-in screen)expect(Math.abs((await button.boundingBox())!.width - width)).toBeLessThan(1)await button.focus()- await expect(page.locator('.summary-stop-square')).toHaveCSS('opacity', '1')+ await expect(button.locator('svg, .summary-stop-square')).toHaveCount(0)await button.press('Enter')await expect.poll(async () => (await page.evaluate(id => window.yogurt.notes.get(id), id)).status).toBe('stopped')const after = await page.evaluate(id => window.yogurt.notes.get(id), id)@@ -107,7 +107,7 @@ test('a finished note resumes after reopening, preserves original data, confirms} finally { await app.close() }})-test('Stop offers Stop summary and Generate summary before recording resumes', async () => {+test('Stop offers Stop summarizing and Generate summary before recording resumes', async () => {const profile = mkdtempSync(join(tmpdir(), 'yogurt-resume-writing-'))const { app, page } = await launch(profile, { YOGURT_FAKE_LLM_MS: '120' })try {@@ -119,20 +119,20 @@ test('Stop offers Stop summary and Generate summary before recording resumes', aawait page.getByTestId('note-stop').click()await expect.poll(async () => (await page.evaluate((id) => window.yogurt.notes.get(id), id)).status).toBe('writing')await expect(page.getByTestId('note-resume')).toBeEnabled()- await expect(page.getByTestId('note-resume')).toHaveAccessibleName('Stop summary')- await expect(page.getByTestId('note-resume')).toHaveText('Summarizing…')+ await expect(page.getByTestId('note-resume')).toHaveAccessibleName('Stop summarizing')+ await expect(page.getByTestId('note-resume')).toHaveText('Stop summarizing')await page.getByTestId('nav-chat').click()await page.evaluate((id) => window.yogurt.nav.go(`/note/${id}`), id)await expect(page.getByTestId('note-resume')).toBeEnabled()await page.getByTestId('note-resume').hover()- await expect(page.getByTestId('note-resume')).toHaveText('Summarizing…')- await expect(page.locator('.summary-stop-square')).toHaveCSS('opacity', '1')+ await expect(page.getByTestId('note-resume')).toHaveText('Stop summarizing')+ await expect(page.getByTestId('note-resume').locator('svg, .summary-stop-square')).toHaveCount(0)await page.getByTestId('note-resume').click()await page.getByTestId('note-summary-tab').click()await expect(page.getByText('Summary stopped.', { exact: true })).toBeVisible()expect((await page.evaluate(id => window.yogurt.notes.get(id), id)).enhanced).toBeNull()await page.locator('.summary-generate').click()- await expect(page.getByTestId('note-resume')).toHaveAccessibleName('Stop summary')+ await expect(page.getByTestId('note-resume')).toHaveAccessibleName('Stop summarizing')await expect(page.getByTestId('note-resume')).toHaveText('Resume recording', { timeout: 30_000 })await page.getByTestId('note-resume').click()await expect(page.getByTestId('note-state')).toHaveAttribute('data-state', 'recording')@@ -160,8 +160,9 @@ test('queued summaries offer Stop and completed, unsuccessful or empty summaries}, { ...notes, status })const busy = status === 'waiting' || status === 'writing'await expect(page.getByTestId('note-resume')).toBeEnabled()- await expect(page.getByTestId('note-resume')).toHaveAccessibleName(busy ? 'Stop summary' : 'Resume recording')- await expect(page.getByTestId('note-resume')).toHaveAttribute('aria-busy', String(busy))+ await expect(page.getByTestId('note-resume')).toHaveAccessibleName(busy ? 'Stop summarizing' : 'Resume recording')+ await expect(page.getByRole('tab', { name: 'Summary', exact: true })).toHaveAccessibleDescription(status === 'waiting' ? 'Preparing…' : status === 'writing' ? 'Writing the summary' : '')+ await expect(page.getByTestId('note-resume')).not.toHaveAttribute('aria-busy', 'true')await expect(page.getByTestId('note-state')).not.toHaveAttribute('data-state', 'recording')}} finally { await app.close() }diff --git a/app/e2e/startRecording.spec.ts b/app/e2e/startRecording.spec.tsindex 52abcac9..37e133c3 100644--- a/app/e2e/startRecording.spec.ts+++ b/app/e2e/startRecording.spec.ts@@ -51,9 +51,9 @@ test('a live event resumes the same note from the title bar and menu, keeping thawait page.getByTestId('nav-home').click()await expect(page.getByTestId('new-note')).toHaveText('Resume notes · Resume fixture')await page.getByTestId('new-note').click()- await expect(page.getByTestId('note-resume')).toHaveAccessibleName('Stop summary')+ await expect(page.getByTestId('note-resume')).toHaveAccessibleName('Stop summarizing')await expect(page.getByTestId('note-resume')).toBeEnabled()- await expect(page.getByTestId('note-resume')).toHaveAttribute('aria-busy', 'true')+ await expect(page.getByRole('tab', { name: 'Summary', exact: true })).toHaveAccessibleDescription('Writing the summary')await expect(page.getByTestId('note-state')).not.toHaveAttribute('data-state', 'recording')await expect(page.getByTestId('note-state')).toHaveAttribute('data-state', 'recording', { timeout: 30_000 })await app.evaluate(() => { process.env.YOGURT_FAKE_LLM_MS = '1' })diff --git a/app/e2e/summaryRim.spec.ts b/app/e2e/summaryRim.spec.tsindex a17ab01d..64f998b9 100644--- a/app/e2e/summaryRim.spec.ts+++ b/app/e2e/summaryRim.spec.ts@@ -29,7 +29,15 @@ for (const theme of ['light', 'dark'] as const) for (const width of [420, 860])}, view)}const rim = page.getByTestId('note-summary-rim'), pane = page.locator('#note-notes-panel'), latest = page.getByTestId('note-summary-latest')+ const summaryTab = page.getByRole('tab', { name: 'Summary', exact: true })+ const mark = page.locator('#note-summary-tab .summary-writing-mark')await push('waiting', '')+ await expect(mark).toBeVisible()+ await expect(summaryTab).toHaveAccessibleDescription('Preparing…')+ const stop = page.getByRole('button', { name: 'Stop summarizing', exact: true })+ await expect(stop).toBeEnabled()+ await expect(stop).toHaveText('Stop summarizing')+ await expect(stop.locator('svg, .summary-writing-mark')).toHaveCount(0)await expect(rim).toHaveCount(0)await expect(page.getByTestId('note-enhanced-waiting')).toBeVisible()expect(await pane.evaluate(el => el.scrollTop)).toBe(0)@@ -39,6 +47,8 @@ for (const theme of ['light', 'dark'] as const) for (const width of [420, 860])expect(viewport.y + viewport.height).toBeCloseTo(reading.y + reading.height, 0)const text = (n: number) => Array.from({ length: n }, (_, i) => `## Section ${i + 1}\nThe team agreed to review the launch notes and confirm the next step before publishing.\n`).join('\n')await push('writing', text(18))+ await expect(mark).toBeVisible()+ await expect(summaryTab).toHaveAccessibleDescription('Writing the summary')// the words unroll on animation frames: a busy machine needs longer than the default 5 s (#93)await expect(page.getByTestId('note-enhanced-editor')).toContainText('Section 18', { timeout: 15_000 })await expect.poll(() => pane.evaluate(el => el.scrollHeight - el.clientHeight - el.scrollTop)).toBeLessThan(24)@@ -57,6 +67,8 @@ for (const theme of ['light', 'dark'] as const) for (const width of [420, 860])await expect(latest).toBeHidden()await expect.poll(() => pane.evaluate(el => el.scrollHeight - el.clientHeight - el.scrollTop)).toBeLessThan(24)await page.emulateMedia({ reducedMotion: 'reduce' })+ await expect(mark).toBeVisible()+ await expect(mark).toHaveCSS('animation-name', 'none')await expect(page.locator('.note-summary-status')).toHaveCount(0)await expect(rim).toHaveCount(0)const before = await pane.boundingBox(), scrollTop = await pane.evaluate(el => el.scrollTop)@@ -73,7 +85,8 @@ for (const theme of ['light', 'dark'] as const) for (const width of [420, 860])await page.emulateMedia({ reducedMotion: 'no-preference' })await expect(page.locator('.note-reading-frame')).toHaveAttribute('data-active', 'false')await expect(page.getByTestId('note-summary-tab')).toHaveText('Summary')- expect(await page.getByTestId('note-summary-tab').locator('svg').count()).toBe(1)+ await expect(mark).toHaveCount(0)+ await expect(summaryTab).toHaveAccessibleDescription('')await expect(page.locator('.note-reading-clip')).toHaveCSS('overflow', 'hidden')await expect(page.locator('.note-reading-clip')).toHaveCSS('border-radius', '10px')} finally { await app.close() }diff --git a/app/src/renderer/src/screens/Note.tsx b/app/src/renderer/src/screens/Note.tsxindex 590eec97..b9b02b9b 100644--- a/app/src/renderer/src/screens/Note.tsx+++ b/app/src/renderer/src/screens/Note.tsx@@ -10,7 +10,7 @@ import { LoadingContent } from '../components/LoadingContent'import { motion, useReducedMotion } from '../motion'import { useEffect, useLayoutEffect, useMemo, useRef, useState, type KeyboardEvent } from 'react'import { useScrollMemory } from '../useScrollMemory'-import { AudioLines, Lock, RotateCcw, Trash2, TextAlignStart } from 'lucide-react'+import { Lock, RotateCcw, Trash2 } from 'lucide-react'import type { MeetingView, NoteSaveResult, NoteSide, NoteView, SetupState, WidgetView } from '../../../shared/types'import { t } from '../../../shared/i18n'import { osWords } from '../keys'@@ -23,7 +23,7 @@ import { Transcript } from '../components/Transcript'import { Ask } from '../components/Chat'import { LevelBars } from '../components/LevelBars'import { RecordingTime } from '../components/RecordingTime'-import { Mic, Pause, Play, Sparkles, Loader } from '../components/Icons'+import { Mic, Pause, Play } from '../components/Icons'import { ShareMenu } from '../components/ShareMenu'import { NoteMenu, summaryAction } from '../components/NoteMenu'import { DeleteNote } from '../components/DeleteNote'@@ -83,7 +83,7 @@ export function Note({ id, onTitleChange, at, folderSuggestion, onSource, onResuuseEffect(() => { if (m) onTitleChange({ id: m.id, title: m.title }) }, [m?.id, m?.title, onTitleChange])const [retryingStop, setRetryingStop] = useState(false)const [starting, setStarting] = useState(false)- const [finishing, setFinishing] = useState(false)+ const [stopRequested, setFinishing] = useState(false)const [startFailed, setStartFailed] = useState(false)const [resumeConfirm, setResumeConfirm] = useState(false)const [resumeFailed, setResumeFailed] = useState(false)@@ -118,6 +118,8 @@ export function Note({ id, onTitleChange, at, folderSuggestion, onSource, onResuconst reducedMotion = useReducedMotion()const summaryState = useSummaryPresentation(notes, reducedMotion)const hasEnhanced = m?.id === id && m.state !== 'prepared' && m.state !== 'recording' && !!notes && notes.status !== 'idle'+ const finishing = stopRequested && !hasEnhanced+ const summaryPending = notes?.status === 'waiting' || notes?.status === 'writing'// Reduced motion selects Summary in the very render that first exposes its tab.const instantSummary = finishRequested && hasEnhanced && reducedMotionconst view = instantSummary ? 'enhanced' : viewState@@ -259,7 +261,7 @@ export function Note({ id, onTitleChange, at, folderSuggestion, onSource, onResureturn () => resize.disconnect()}, [primary, view, m?.state, notes?.status])- const summarizing = finishing || notes?.status === 'waiting' || notes?.status === 'writing'+ const summarizing = finishing || summaryPendingconst resumeHandled = useRef(false)useEffect(() => {if (!onResumeRequested) { resumeHandled.current = false; return }@@ -280,6 +282,7 @@ export function Note({ id, onTitleChange, at, folderSuggestion, onSource, onResuconst trashed = m.trashedAt != nullconst minutes = m.endedAt ? Math.max(1, Math.round((m.durationMs ?? (m.endedAt - m.startedAt)) / 60_000)) : nullconst shown = hasEnhanced ? view : 'mine'+ const resumeLabel = summaryPending ? t('Stop summarizing') : t('Resume recording')const pick = (v: 'mine' | 'enhanced') => { picked.current = true; setView(v); mineSave.flush(); enhancedSave.flush() }const pickPrimary = (next: 'transcript' | 'notes', pointer = false) => {@@ -401,10 +404,10 @@ export function Note({ id, onTitleChange, at, folderSuggestion, onSource, onResu</button></>}{finishing && <span data-testid="note-finishing" role="status" className="note-finishing">{t('Stopping…')}</span>}- {!transcribing && !finishing && (m.source !== 'audio-file' || summarizing) && (m.state === 'stopped' || m.state === 'done') && !m.stopSavePending && !trashed && <button data-testid="note-resume" disabled={starting} aria-busy={summarizing} data-processing={summarizing} onClick={() => { if (summarizing) void window.yogurt.notes.stop(id).catch(console.error); else void resumeRecording() }}- aria-label={summarizing ? t('Stop summary') : t('Resume recording')} className="workspace-button note-resume-action" title={summarizing ? t('Stop summary') : t('Resume recording in this note')}>- <Swap show={summarizing ? 'busy' : 'mic'} options={{ mic: <Mic size={14} />, busy: <span className="summary-stop-icon"><Loader size={14} /><span className="summary-stop-square" /></span> }} />- <SwapText text={summarizing ? t('Summarizing…') : starting ? t('Preparing…') : t('Resume recording')} />+ {!finishing && (summaryPending || (!transcribing && m.source !== 'audio-file')) && (m.state === 'stopped' || m.state === 'done') && !m.stopSavePending && !trashed && <button data-testid="note-resume" disabled={starting && !summaryPending} onClick={() => { if (summaryPending) void window.yogurt.notes.stop(id).catch(console.error); else void resumeRecording() }}+ aria-label={resumeLabel} className="workspace-button note-resume-action" title={summaryPending ? resumeLabel : t('Resume recording in this note')}>+ {!summaryPending && <Mic size={14} aria-hidden="true" />}+ <SwapText text={starting && !summaryPending ? t('Preparing…') : resumeLabel} /></button>}{m.state === 'prepared' && !trashed && <button data-testid="note-start" disabled={starting} onClick={() => { void startPrepared() }} className="note-record-action primary"><Mic size={14} strokeWidth={1.75} aria-hidden="true" />{starting ? t('Starting…') : t('Start recording')}@@ -426,19 +429,21 @@ export function Note({ id, onTitleChange, at, folderSuggestion, onSource, onResu<div role="tablist" aria-label={t('Meeting view')} className="contents"><button ref={transcriptButton} id="note-transcript-tab" data-testid="note-transcript-toggle" role="tab" aria-selected={primary === 'transcript'} aria-controls="note-transcript-panel"tabIndex={primary === 'transcript' ? 0 : -1} onKeyDown={primaryKey} onClick={(e) => pickTab('transcript', undefined, e.detail > 0)}>- <AudioLines size={14} strokeWidth={1.75} aria-hidden="true" />{t('Transcript')}+ {t('Transcript')}</button><button ref={notesButton} id="note-notes-tab" data-testid="note-notes-tab" role="tab" aria-selected={primary === 'notes' && shown === 'mine'} aria-controls="note-notes-panel"data-version={shown} tabIndex={primary === 'notes' && shown === 'mine' ? 0 : -1} onKeyDown={primaryKey}onClick={(e) => pickTab('notes', 'mine', e.detail > 0)}>- <TextAlignStart size={14} strokeWidth={1.75} aria-hidden="true" />{t('My notes')}+ {t('My notes')}</button>{hasEnhanced && <button ref={summaryButton} id="note-summary-tab" data-testid="note-summary-tab" role="tab" aria-selected={primary === 'notes' && shown === 'enhanced'} aria-controls="note-notes-panel"+ aria-describedby={summaryPending ? 'note-summary-phase' : undefined}tabIndex={primary === 'notes' && shown === 'enhanced' ? 0 : -1} onKeyDown={primaryKey}onClick={(e) => pickTab('notes', 'enhanced', e.detail > 0)}>- <Sparkles size={14} strokeWidth={1.75} aria-hidden="true" />{t('Summary')}+ {t('Summary')}{summaryPending && <span className="summary-writing-mark" aria-hidden="true" />}</button>}</div>+ {hasEnhanced && summaryPending && <span id="note-summary-phase" hidden>{notes.status === 'waiting' ? t('Preparing…') : t('Writing the summary')}</span>}{primary === 'transcript' && <div ref={setTranscriptToolbar} className="note-primary-tools" />}<span data-testid="note-tab-indicator" className="note-tab-indicator" aria-hidden="true" /></div>diff --git a/app/src/renderer/src/styles.css b/app/src/renderer/src/styles.cssindex 67866b62..fff6fab0 100644--- a/app/src/renderer/src/styles.css+++ b/app/src/renderer/src/styles.css@@ -544,8 +544,10 @@ input::selection, textarea::selection, .note-prose ::selection { background: var.note-recording-status { display:flex;align-items:center;gap:8px;color:var(--muted);white-space:nowrap; }.note-elapsed { min-width:36px;font-size:11px;font-variant-numeric:tabular-nums;color:var(--muted);text-align:end; }.note-primary-tabs { position:relative;display:flex;gap:24px;margin-top:22px;border-bottom:1px solid var(--line); }-.note-primary-tabs [role=tab] { display:flex;align-items:center;gap:7px;height:36px;padding-inline:1px;border-bottom:2px solid transparent;color:var(--muted);font-size:13px;font-weight:500; }+.note-primary-tabs [role=tab] { display:flex;align-items:center;gap:4px;height:36px;padding-inline:4px;border-bottom:2px solid transparent;color:var(--muted);font-size:13px;font-weight:500; }.note-primary-tabs [role=tab][aria-selected=true] { color:var(--ink); }+.summary-writing-mark { flex:none;width:9px;height:9px;margin-inline-start:2px;border:1.5px solid var(--muted);border-inline-end-color:transparent;border-radius:50%; }+@media (prefers-reduced-motion:no-preference) { .summary-writing-mark { animation:icon-spin 1.3s linear infinite; } }.note-primary-tabs [role=tab]:hover { color:var(--ink); }.note-primary-tabs[data-summary-arriving=true] #note-summary-tab { animation:summary-tab-arrive var(--dur-micro) var(--ease-out) both; }@keyframes summary-tab-arrive { from { opacity:0; } }diff --git a/app/src/shared/locales/ar.json b/app/src/shared/locales/ar.jsonindex 4b8ab20c..f64018cf 100644--- a/app/src/shared/locales/ar.json+++ b/app/src/shared/locales/ar.json@@ -749,7 +749,7 @@"Note for the summary": "تعليمات للملخص","Add a note, like shorter or in Spanish": "أضف تعليمات، مثل أقصر أو بالإسبانية","Waiting for Yogurt AI to download": "بانتظار تنزيل ذكاء Yogurt الاصطناعي",- "Stop summary": "إيقاف التلخيص",+ "Stop summarizing": "إيقاف التلخيص","Summary stopped.": "توقف التلخيص.","This window couldn't be displayed.": "تعذّر عرض هذه النافذة.","{current} of {count}": {diff --git a/app/src/shared/locales/bn.json b/app/src/shared/locales/bn.jsonindex c9b7d537..e659661f 100644--- a/app/src/shared/locales/bn.json+++ b/app/src/shared/locales/bn.json@@ -681,7 +681,7 @@"Note for the summary": "সারাংশের নির্দেশনা","Add a note, like shorter or in Spanish": "নির্দেশ দিন, যেমন ছোট বা স্প্যানিশে","Waiting for Yogurt AI to download": "Yogurt AI ডাউনলোডের অপেক্ষায়",- "Stop summary": "সারসংক্ষেপ বন্ধ করুন",+ "Stop summarizing": "সারাংশ লেখা বন্ধ করুন","Summary stopped.": "সারসংক্ষেপ তৈরি বন্ধ হয়েছে।","This window couldn't be displayed.": "এই উইন্ডোটি দেখানো যায়নি।","{current} of {count}": {diff --git a/app/src/shared/locales/cs.json b/app/src/shared/locales/cs.jsonindex c19b9ac0..40bf9879 100644--- a/app/src/shared/locales/cs.json+++ b/app/src/shared/locales/cs.json@@ -724,7 +724,7 @@"Note for the summary": "Pokyn pro shrnutí","Add a note, like shorter or in Spanish": "Přidejte pokyn, třeba kratší nebo španělsky","Waiting for Yogurt AI to download": "Čekání na stažení Yogurt AI",- "Stop summary": "Zastavit shrnutí",+ "Stop summarizing": "Zastavit vytváření souhrnu","Summary stopped.": "Vytváření shrnutí zastaveno.","This window couldn't be displayed.": "Toto okno se nepodařilo zobrazit.","{current} of {count}": {diff --git a/app/src/shared/locales/da.json b/app/src/shared/locales/da.jsonindex aa3b64b6..5e862652 100644--- a/app/src/shared/locales/da.json+++ b/app/src/shared/locales/da.json@@ -693,7 +693,7 @@"Note for the summary": "Note til opsummeringen","Add a note, like shorter or in Spanish": "Tilføj en note, som kortere eller på spansk","Waiting for Yogurt AI to download": "Venter på download af Yogurt AI",- "Stop summary": "Stop opsummering",+ "Stop summarizing": "Stop opsummeringen","Summary stopped.": "Opsummering stoppet.","This window couldn't be displayed.": "Dette vindue kunne ikke vises.","{current} of {count}": {diff --git a/app/src/shared/locales/de.json b/app/src/shared/locales/de.jsonindex 5ecfcc82..004ae13f 100644--- a/app/src/shared/locales/de.json+++ b/app/src/shared/locales/de.json@@ -693,7 +693,7 @@"Note for the summary": "Hinweis für die Zusammenfassung","Add a note, like shorter or in Spanish": "Hinweis hinzufügen, etwa kürzer oder auf Spanisch","Waiting for Yogurt AI to download": "Warten auf den Download von Yogurt AI",- "Stop summary": "Zusammenfassung stoppen",+ "Stop summarizing": "Zusammenfassen stoppen","Summary stopped.": "Zusammenfassung gestoppt.","This window couldn't be displayed.": "Dieses Fenster konnte nicht angezeigt werden.","{current} of {count}": {diff --git a/app/src/shared/locales/el.json b/app/src/shared/locales/el.jsonindex 1b3ca6a3..4bd46e48 100644--- a/app/src/shared/locales/el.json+++ b/app/src/shared/locales/el.json@@ -696,7 +696,7 @@"Note for the summary": "Οδηγία για τη σύνοψη","Add a note, like shorter or in Spanish": "Προσθέστε οδηγία, π.χ. πιο σύντομα ή στα ισπανικά","Waiting for Yogurt AI to download": "Αναμονή λήψης του Yogurt AI",- "Stop summary": "Διακοπή σύνοψης",+ "Stop summarizing": "Διακοπή δημιουργίας σύνοψης","Summary stopped.": "Η σύνοψη διακόπηκε.","This window couldn't be displayed.": "Δεν ήταν δυνατή η εμφάνιση αυτού του παραθύρου.","{current} of {count}": {diff --git a/app/src/shared/locales/en.json b/app/src/shared/locales/en.jsonindex 3bd3a224..9a47b480 100644--- a/app/src/shared/locales/en.json+++ b/app/src/shared/locales/en.json@@ -228,7 +228,7 @@"Note for the summary": "Note for the summary","Add a note, like shorter or in Spanish": "Add a note, like shorter or in Spanish","Waiting for Yogurt AI to download": "Waiting for Yogurt AI to download",- "Stop summary": "Stop summary",+ "Stop summarizing": "Stop summarizing","Summary stopped.": "Summary stopped.","This window couldn't be displayed.": "This window couldn't be displayed.","Close": "Close",diff --git a/app/src/shared/locales/es.json b/app/src/shared/locales/es.jsonindex fecd505f..72852d62 100644--- a/app/src/shared/locales/es.json+++ b/app/src/shared/locales/es.json@@ -706,7 +706,7 @@"Note for the summary": "Indicación para el resumen","Add a note, like shorter or in Spanish": "Añade una nota, como más corto o en español","Waiting for Yogurt AI to download": "Esperando la descarga de Yogurt AI",- "Stop summary": "Detener resumen",+ "Stop summarizing": "Detener la generación del resumen","Summary stopped.": "Resumen detenido.","This window couldn't be displayed.": "No se pudo mostrar esta ventana.","{current} of {count}": {diff --git a/app/src/shared/locales/fi.json b/app/src/shared/locales/fi.jsonindex a0e090f0..2462e3ce 100644--- a/app/src/shared/locales/fi.json+++ b/app/src/shared/locales/fi.json@@ -699,7 +699,7 @@"Note for the summary": "Ohje yhteenvedolle","Add a note, like shorter or in Spanish": "Lisää ohje, kuten lyhyemmin tai espanjaksi","Waiting for Yogurt AI to download": "Odotetaan Yogurt AI:n latausta",- "Stop summary": "Pysäytä yhteenveto",+ "Stop summarizing": "Lopeta yhteenvedon laatiminen","Summary stopped.": "Yhteenvedon luonti pysäytetty.","This window couldn't be displayed.": "Tätä ikkunaa ei voitu näyttää.","{current} of {count}": {diff --git a/app/src/shared/locales/fil.json b/app/src/shared/locales/fil.jsonindex cb9fbd82..20a1e73e 100644--- a/app/src/shared/locales/fil.json+++ b/app/src/shared/locales/fil.json@@ -693,7 +693,7 @@"Note for the summary": "Tagubilin para sa buod","Add a note, like shorter or in Spanish": "Magdagdag ng bilin, gaya ng mas maikli o sa Espanyol","Waiting for Yogurt AI to download": "Hinihintay ang pag-download ng Yogurt AI",- "Stop summary": "Ihinto ang buod",+ "Stop summarizing": "Ihinto ang pagbubuod","Summary stopped.": "Nahinto ang paggawa ng buod.","This window couldn't be displayed.": "Hindi maipakita ang window na ito.","{current} of {count}": {diff --git a/app/src/shared/locales/fr.json b/app/src/shared/locales/fr.jsonindex a401a995..7177f84b 100644--- a/app/src/shared/locales/fr.json+++ b/app/src/shared/locales/fr.json@@ -709,7 +709,7 @@"Note for the summary": "Consigne pour le résumé","Add a note, like shorter or in Spanish": "Ajoutez une consigne, comme plus court ou en espagnol","Waiting for Yogurt AI to download": "En attente du téléchargement de l’IA Yogurt",- "Stop summary": "Arrêter le résumé",+ "Stop summarizing": "Arrêter la rédaction du résumé","Summary stopped.": "Résumé arrêté.","This window couldn't be displayed.": "Cette fenêtre n’a pas pu être affichée.","{current} of {count}": {diff --git a/app/src/shared/locales/he.json b/app/src/shared/locales/he.jsonindex ac2ccad5..63b08804 100644--- a/app/src/shared/locales/he.json+++ b/app/src/shared/locales/he.json@@ -703,7 +703,7 @@"Note for the summary": "הנחיה לסיכום","Add a note, like shorter or in Spanish": "הוסיפו הנחיה, כמו קצר יותר או בספרדית","Waiting for Yogurt AI to download": "ממתינים להורדת Yogurt AI",- "Stop summary": "עצירת הסיכום",+ "Stop summarizing": "הפסקת כתיבת הסיכום","Summary stopped.": "הסיכום נעצר.","This window couldn't be displayed.": "לא ניתן היה להציג חלון זה.","{current} of {count}": {diff --git a/app/src/shared/locales/hi.json b/app/src/shared/locales/hi.jsonindex c67ce4c8..e293a951 100644--- a/app/src/shared/locales/hi.json+++ b/app/src/shared/locales/hi.json@@ -681,7 +681,7 @@"Note for the summary": "सारांश के लिए निर्देश","Add a note, like shorter or in Spanish": "निर्देश जोड़ें, जैसे छोटा या स्पेनिश में","Waiting for Yogurt AI to download": "Yogurt AI डाउनलोड होने का इंतज़ार",- "Stop summary": "सारांश रोकें",+ "Stop summarizing": "सारांश लिखना रोकें","Summary stopped.": "सारांश बनाना रोक दिया गया।","This window couldn't be displayed.": "यह विंडो दिखाई नहीं जा सकी।","{current} of {count}": {diff --git a/app/src/shared/locales/hu.json b/app/src/shared/locales/hu.jsonindex 6507aef0..79b70bd7 100644--- a/app/src/shared/locales/hu.json+++ b/app/src/shared/locales/hu.json@@ -681,7 +681,7 @@"Note for the summary": "Utasítás az összefoglalóhoz","Add a note, like shorter or in Spanish": "Adjon meg kérést, például rövidebben vagy spanyolul","Waiting for Yogurt AI to download": "Várakozás a Yogurt AI letöltésére",- "Stop summary": "Összefoglalás leállítása",+ "Stop summarizing": "Összefoglalás leállítása","Summary stopped.": "Az összefoglalás leállt.","This window couldn't be displayed.": "Ez az ablak nem jeleníthető meg.","{current} of {count}": {diff --git a/app/src/shared/locales/id.json b/app/src/shared/locales/id.jsonindex 5ada6d94..1632355e 100644--- a/app/src/shared/locales/id.json+++ b/app/src/shared/locales/id.json@@ -651,7 +651,7 @@"Note for the summary": "Catatan untuk ringkasan","Add a note, like shorter or in Spanish": "Catatan, misalnya lebih singkat atau bahasa Spanyol","Waiting for Yogurt AI to download": "Menunggu unduhan Yogurt AI",- "Stop summary": "Hentikan ringkasan",+ "Stop summarizing": "Hentikan peringkasan","Summary stopped.": "Pembuatan ringkasan dihentikan.","This window couldn't be displayed.": "Jendela ini tidak dapat ditampilkan.","{current} of {count}": {diff --git a/app/src/shared/locales/it.json b/app/src/shared/locales/it.jsonindex 89f155f2..f7873e03 100644--- a/app/src/shared/locales/it.json+++ b/app/src/shared/locales/it.json@@ -712,7 +712,7 @@"Note for the summary": "Istruzione per il riepilogo","Add a note, like shorter or in Spanish": "Aggiungi una nota, come più breve o in spagnolo","Waiting for Yogurt AI to download": "In attesa del download di Yogurt AI",- "Stop summary": "Interrompi riepilogo",+ "Stop summarizing": "Interrompi la creazione del riepilogo","Summary stopped.": "Riepilogo interrotto.","This window couldn't be displayed.": "Non è stato possibile visualizzare questa finestra.","{current} of {count}": {diff --git a/app/src/shared/locales/ja.json b/app/src/shared/locales/ja.jsonindex 1400a6de..dd634584 100644--- a/app/src/shared/locales/ja.json+++ b/app/src/shared/locales/ja.json@@ -651,7 +651,7 @@"Note for the summary": "要約への指示","Add a note, like shorter or in Spanish": "短めに、スペイン語で、などの指示を追加","Waiting for Yogurt AI to download": "Yogurt AIのダウンロードを待機中",- "Stop summary": "要約を停止",+ "Stop summarizing": "要約の作成を停止","Summary stopped.": "要約を停止しました。","This window couldn't be displayed.": "このウィンドウを表示できませんでした。","{current} of {count}": {diff --git a/app/src/shared/locales/ko.json b/app/src/shared/locales/ko.jsonindex 304dc37d..4f266d15 100644--- a/app/src/shared/locales/ko.json+++ b/app/src/shared/locales/ko.json@@ -651,7 +651,7 @@"Note for the summary": "요약 지침","Add a note, like shorter or in Spanish": "더 짧게, 스페인어로 등 지침 추가","Waiting for Yogurt AI to download": "Yogurt AI 다운로드 대기 중",- "Stop summary": "요약 중지",+ "Stop summarizing": "요약 작성 중지","Summary stopped.": "요약이 중지되었습니다.","This window couldn't be displayed.": "이 창을 표시할 수 없습니다.","{current} of {count}": {diff --git a/app/src/shared/locales/ms.json b/app/src/shared/locales/ms.jsonindex 3e52edc9..ef98d8e3 100644--- a/app/src/shared/locales/ms.json+++ b/app/src/shared/locales/ms.json@@ -651,7 +651,7 @@"Note for the summary": "Arahan untuk ringkasan","Add a note, like shorter or in Spanish": "Tambah arahan, seperti lebih pendek atau bahasa Sepanyol","Waiting for Yogurt AI to download": "Menunggu muat turun Yogurt AI",- "Stop summary": "Hentikan ringkasan",+ "Stop summarizing": "Hentikan proses meringkaskan","Summary stopped.": "Ringkasan dihentikan.","This window couldn't be displayed.": "Tetingkap ini tidak dapat dipaparkan.","{current} of {count}": {diff --git a/app/src/shared/locales/nb.json b/app/src/shared/locales/nb.jsonindex a4a47fd1..ad3ee5b7 100644--- a/app/src/shared/locales/nb.json+++ b/app/src/shared/locales/nb.json@@ -693,7 +693,7 @@"Note for the summary": "Merknad til sammendraget","Add a note, like shorter or in Spanish": "Legg til en merknad, som kortere eller på spansk","Waiting for Yogurt AI to download": "Venter på nedlasting av Yogurt AI",- "Stop summary": "Stopp oppsummering",+ "Stop summarizing": "Stopp oppsummeringen","Summary stopped.": "Oppsummering stoppet.","This window couldn't be displayed.": "Dette vinduet kunne ikke vises.","{current} of {count}": {diff --git a/app/src/shared/locales/nl.json b/app/src/shared/locales/nl.jsonindex fd5a8b38..9366dbda 100644--- a/app/src/shared/locales/nl.json+++ b/app/src/shared/locales/nl.json@@ -693,7 +693,7 @@"Note for the summary": "Instructie voor de samenvatting","Add a note, like shorter or in Spanish": "Voeg iets toe, zoals korter of in het Spaans","Waiting for Yogurt AI to download": "Wachten op de download van Yogurt AI",- "Stop summary": "Samenvatting stoppen",+ "Stop summarizing": "Samenvatten stoppen","Summary stopped.": "Samenvatting gestopt.","This window couldn't be displayed.": "Dit venster kon niet worden weergegeven.","{current} of {count}": {diff --git a/app/src/shared/locales/pl.json b/app/src/shared/locales/pl.jsonindex 0d5d7109..f8c9b105 100644--- a/app/src/shared/locales/pl.json+++ b/app/src/shared/locales/pl.json@@ -729,7 +729,7 @@"Note for the summary": "Wskazówka do podsumowania","Add a note, like shorter or in Spanish": "Dodaj wskazówkę, np. krócej lub po hiszpańsku","Waiting for Yogurt AI to download": "Oczekiwanie na pobranie Yogurt AI",- "Stop summary": "Zatrzymaj podsumowanie",+ "Stop summarizing": "Zatrzymaj tworzenie podsumowania","Summary stopped.": "Podsumowanie zatrzymane.","This window couldn't be displayed.": "Nie udało się wyświetlić tego okna.","{current} of {count}": {diff --git a/app/src/shared/locales/pt-BR.json b/app/src/shared/locales/pt-BR.jsonindex 1768ba47..b257e7ab 100644--- a/app/src/shared/locales/pt-BR.json+++ b/app/src/shared/locales/pt-BR.json@@ -709,7 +709,7 @@"Note for the summary": "Instrução para o resumo","Add a note, like shorter or in Spanish": "Adicione uma nota, como mais curto ou em espanhol","Waiting for Yogurt AI to download": "Aguardando o download do Yogurt AI",- "Stop summary": "Parar resumo",+ "Stop summarizing": "Parar de resumir","Summary stopped.": "Resumo interrompido.","This window couldn't be displayed.": "Não foi possível exibir esta janela.","{current} of {count}": {diff --git a/app/src/shared/locales/ro.json b/app/src/shared/locales/ro.jsonindex 561be083..ba59b763 100644--- a/app/src/shared/locales/ro.json+++ b/app/src/shared/locales/ro.json@@ -710,7 +710,7 @@"Note for the summary": "Instrucțiune pentru rezumat","Add a note, like shorter or in Spanish": "Adaugă o notă, precum mai scurt sau în spaniolă","Waiting for Yogurt AI to download": "Se așteaptă descărcarea Yogurt AI",- "Stop summary": "Oprește rezumatul",+ "Stop summarizing": "Oprește rezumarea","Summary stopped.": "Rezumatul a fost oprit.","This window couldn't be displayed.": "Această fereastră nu a putut fi afișată.","{current} of {count}": {diff --git a/app/src/shared/locales/ru.json b/app/src/shared/locales/ru.jsonindex a53def78..a5ad47f9 100644--- a/app/src/shared/locales/ru.json+++ b/app/src/shared/locales/ru.json@@ -721,7 +721,7 @@"Note for the summary": "Пожелание к сводке","Add a note, like shorter or in Spanish": "Добавьте пожелание, например короче или на испанском","Waiting for Yogurt AI to download": "Ожидание загрузки Yogurt AI",- "Stop summary": "Остановить сводку",+ "Stop summarizing": "Остановить создание сводки","Summary stopped.": "Создание сводки остановлено.","This window couldn't be displayed.": "Не удалось отобразить это окно.","{current} of {count}": {diff --git a/app/src/shared/locales/sv.json b/app/src/shared/locales/sv.jsonindex da6f3c79..ffb5a2e9 100644--- a/app/src/shared/locales/sv.json+++ b/app/src/shared/locales/sv.json@@ -693,7 +693,7 @@"Note for the summary": "Instruktion för sammanfattningen","Add a note, like shorter or in Spanish": "Lägg till en notering, som kortare eller på spanska","Waiting for Yogurt AI to download": "Väntar på nedladdning av Yogurt AI",- "Stop summary": "Stoppa sammanfattning",+ "Stop summarizing": "Avbryt sammanfattningen","Summary stopped.": "Sammanfattningen stoppades.","This window couldn't be displayed.": "Det här fönstret kunde inte visas.","{current} of {count}": {diff --git a/app/src/shared/locales/th.json b/app/src/shared/locales/th.jsonindex a0c9df24..9c9153dd 100644--- a/app/src/shared/locales/th.json+++ b/app/src/shared/locales/th.json@@ -651,7 +651,7 @@"Note for the summary": "คำสั่งสำหรับสรุป","Add a note, like shorter or in Spanish": "เพิ่มคำสั่ง เช่น สั้นลงหรือเป็นภาษาสเปน","Waiting for Yogurt AI to download": "รอการดาวน์โหลด Yogurt AI",- "Stop summary": "หยุดสรุป",+ "Stop summarizing": "หยุดเขียนสรุป","Summary stopped.": "หยุดสรุปแล้ว","This window couldn't be displayed.": "ไม่สามารถแสดงหน้าต่างนี้ได้","{current} of {count}": {diff --git a/app/src/shared/locales/tr.json b/app/src/shared/locales/tr.jsonindex 377d72cd..22476260 100644--- a/app/src/shared/locales/tr.json+++ b/app/src/shared/locales/tr.json@@ -681,7 +681,7 @@"Note for the summary": "Özet için talimat","Add a note, like shorter or in Spanish": "Daha kısa veya İspanyolca gibi bir not ekleyin","Waiting for Yogurt AI to download": "Yogurt AI indirmesi bekleniyor",- "Stop summary": "Özeti durdur",+ "Stop summarizing": "Özetlemeyi durdur","Summary stopped.": "Özet durduruldu.","This window couldn't be displayed.": "Bu pencere görüntülenemedi.","{current} of {count}": {diff --git a/app/src/shared/locales/uk.json b/app/src/shared/locales/uk.jsonindex 82688cb6..c6b110a0 100644--- a/app/src/shared/locales/uk.json+++ b/app/src/shared/locales/uk.json@@ -721,7 +721,7 @@"Note for the summary": "Побажання до підсумку","Add a note, like shorter or in Spanish": "Додайте побажання, як-от коротше чи іспанською","Waiting for Yogurt AI to download": "Очікування завантаження Yogurt AI",- "Stop summary": "Зупинити підсумок",+ "Stop summarizing": "Зупинити створення підсумку","Summary stopped.": "Створення підсумку зупинено.","This window couldn't be displayed.": "Не вдалося відобразити це вікно.","{current} of {count}": {diff --git a/app/src/shared/locales/vi.json b/app/src/shared/locales/vi.jsonindex f52b5efb..f3486a97 100644--- a/app/src/shared/locales/vi.json+++ b/app/src/shared/locales/vi.json@@ -651,7 +651,7 @@"Note for the summary": "Chỉ dẫn cho bản tóm tắt","Add a note, like shorter or in Spanish": "Thêm chỉ dẫn, như ngắn hơn hoặc bằng tiếng Tây Ban Nha","Waiting for Yogurt AI to download": "Đang chờ tải Yogurt AI",- "Stop summary": "Dừng tóm tắt",+ "Stop summarizing": "Dừng tóm tắt","Summary stopped.": "Đã dừng tóm tắt.","This window couldn't be displayed.": "Không thể hiển thị cửa sổ này.","{current} of {count}": {diff --git a/app/src/shared/locales/zh-CN.json b/app/src/shared/locales/zh-CN.jsonindex 1a52838b..bd0f6be5 100644--- a/app/src/shared/locales/zh-CN.json+++ b/app/src/shared/locales/zh-CN.json@@ -651,7 +651,7 @@"Note for the summary": "摘要要求","Add a note, like shorter or in Spanish": "添加要求,例如更简短或用西班牙语","Waiting for Yogurt AI to download": "等待下载 Yogurt AI",- "Stop summary": "停止总结",+ "Stop summarizing": "停止生成摘要","Summary stopped.": "已停止总结。","This window couldn't be displayed.": "无法显示此窗口。","{current} of {count}": {diff --git a/app/src/shared/locales/zh-TW.json b/app/src/shared/locales/zh-TW.jsonindex ecdbf00f..99aa68fa 100644--- a/app/src/shared/locales/zh-TW.json+++ b/app/src/shared/locales/zh-TW.json@@ -651,7 +651,7 @@"Note for the summary": "摘要要求","Add a note, like shorter or in Spanish": "新增要求,例如更簡短或用西班牙語","Waiting for Yogurt AI to download": "等待下載 Yogurt AI",- "Stop summary": "停止摘要",+ "Stop summarizing": "停止撰寫摘要","Summary stopped.": "已停止摘要。","This window couldn't be displayed.": "無法顯示此視窗。","{current} of {count}": {diff --git a/app/test/i18n-tables.test.ts b/app/test/i18n-tables.test.tsindex f8a927c2..f0a58f06 100644--- a/app/test/i18n-tables.test.ts+++ b/app/test/i18n-tables.test.ts@@ -12,9 +12,9 @@ const blanks = (s: string) => [...new Set(s.match(/\{\w+\}/g) ?? [])].sort()const forms = (e: Entry) => (typeof e === 'string' ? [e] : Object.values(e))it('translates summary cancellation and its restart state in every locale', () => {- for (const { id } of LOCALES) for (const key of ['Stop summary', 'Summary stopped.', 'Generate summary']) {+ for (const { id } of LOCALES) for (const key of ['Stop summarizing', 'Preparing…', 'Writing the summary', 'Summary stopped.', 'Generate summary']) {expect(keys).toContain(key)- if (id === 'en' && key === 'Generate summary') continue+ if (id === 'en' && (key === 'Generate summary' || key === 'Preparing…')) continueexpect(load(id)[key]).toBeTypeOf('string')expect(load(id)[key]).not.toBe('')if (id !== 'en') expect(load(id)[key]).not.toBe(key)diff --git a/app/test/resumeRequest.test.ts b/app/test/resumeRequest.test.tsindex f4f80407..4406bce7 100644--- a/app/test/resumeRequest.test.ts+++ b/app/test/resumeRequest.test.ts@@ -1,5 +1,6 @@import { afterEach, beforeEach, expect, it, vi } from 'vitest'import { isValidElement, type ReactElement, type ReactNode } from 'react'+import { renderToStaticMarkup } from 'react-dom/server'import { NoteMenu } from '../src/renderer/src/components/NoteMenu'import { Note } from '../src/renderer/src/screens/Note'import type { MeetingView, NoteView, SetupState } from '../src/shared/types'@@ -45,7 +46,7 @@ async function render() {function find(node: ReactNode, id: string | typeof NoteMenu): ReactElement<Record<string, unknown>> | undefined {if (Array.isArray(node)) return node.map(child => find(child, id)).find(Boolean)if (!isValidElement<Record<string, unknown>>(node)) return- return node.type === id || node.props['data-testid'] === id || node.props.testId === id ? node : find(node.props.children as ReactNode, id)+ return node.type === id || node.props.id === id || node.props['data-testid'] === id || node.props.testId === id ? node : find(node.props.children as ReactNode, id)}beforeEach(() => {vi.clearAllMocks();meetingListeners.clear();meetingChanged=()=>meetingListeners.forEach(cb=>cb())@@ -101,11 +102,20 @@ it('drops a pending request when navigation unmounts the note, including when reit('waits through Stop before the summary starts and still asks before replacing an edited summary', async () => {meeting.state = 'recording'; notes.status = 'idle'; requested = undefinedawait render(); await render()+ expect(find(tree, 'note-summary-tab')).toBeUndefined();(find(tree, 'note-stop')!.props.onClick as (e: { detail: number }) => void)({ detail: 0 })meeting = { ...meeting, state: 'stopped' }; meetingChanged()requested = () => { consumed(); requested = undefined }await render(); await render()expect(consumed).not.toHaveBeenCalled()+ expect(find(tree, 'note-finishing')).toBeDefined()+ expect(find(tree, 'note-resume')).toBeUndefined()+ notesChanged({ ...notes, status: 'waiting' }); await render()+ expect(find(tree, 'note-finishing')).toBeUndefined()+ expect(find(tree, 'note-summary-tab')!.props['aria-describedby']).toBe('note-summary-phase')+ expect(find(tree, 'note-summary-phase')!.props.children).toBe('Preparing…')+ expect(find(tree, 'note-resume')!.props['aria-label']).toBe('Stop summarizing')+ expect(find(tree, 'note-resume')!.props.disabled).toBe(false)notesChanged({ ...notes, status: 'writing' }); await render(); await render()expect(consumed).not.toHaveBeenCalled()notesChanged({ ...notes, status: 'done', edited: true }); await render(); await render()@@ -155,14 +165,35 @@ it('waits for the first notes model but allows generation during an optional upg})+it('can cancel summary preparation while the transcript is still processing', async () => {+ meeting.transcriptionState = 'transcribing'; notes.status = 'waiting'; requested = undefined+ await render(); await render()+ const stop = find(tree, 'note-resume')!+ expect(stop.props['aria-label']).toBe('Stop summarizing')+ expect(stop.props.disabled).toBe(false)+ ;(stop.props.onClick as () => void)()+ expect(stopSummary).toHaveBeenCalledExactlyOnceWith(meeting.id)+ notesChanged({ ...notes, status: 'stopped' }); await render()+ expect(find(tree, 'note-resume')).toBeUndefined()+ expect(resume).not.toHaveBeenCalled()+})+it.each(['waiting', 'writing', 'failed', 'empty', 'stopped', 'done'] as const)('the header action for %s stops a summary or resumes recording without confusing the two', async status => {notes.status = status; requested = undefinedawait render(); await render()const busy = status === 'waiting' || status === 'writing'const button = find(tree, 'note-resume')!expect(button.props.disabled).toBe(false)- expect(button.props['aria-label']).toBe(busy ? 'Stop summary' : 'Resume recording')- expect(button.props['aria-busy']).toBe(busy)+ expect(button.props['aria-label']).toBe(busy ? 'Stop summarizing' : 'Resume recording')+ expect(button.props['aria-busy']).toBeUndefined()+ const summary = find(tree, 'note-summary-tab')!+ expect(summary.props['aria-label']).toBeUndefined()+ expect(summary.props.children).toContain('Summary')+ expect(summary.props['aria-describedby']).toBe(busy ? 'note-summary-phase' : undefined)+ const phase = find(tree, 'note-summary-phase')+ expect(phase?.props.hidden).toBe(busy ? true : undefined)+ expect(phase?.props.children).toBe(status === 'waiting' ? 'Preparing…' : status === 'writing' ? 'Writing the summary' : undefined)+ expect(renderToStaticMarkup(summary).includes('summary-writing-mark')).toBe(busy);(button.props.onClick as () => void)()await render(); await render()if (busy) {