Skip to content

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.

Errors: one rule across the app for when something fails

Eric Brownrout26e49a41f7a3
diff --git a/.github/workflows/interface-screenshots.yml b/.github/workflows/interface-screenshots.yml
new file mode 100644
index 00000000..9525f086
--- /dev/null
+++ b/.github/workflows/interface-screenshots.yml
@@ -0,0 +1,112 @@
+name: Desktop interface screenshots
+
+on:
+ push:
+ branches: ['ci/interface-review', 'ci/interface-review/**']
+ workflow_dispatch:
+
+permissions:
+ contents: read
+
+concurrency:
+ group: desktop-interface-screenshots-${{ github.ref }}
+ cancel-in-progress: true
+
+jobs:
+ capture:
+ runs-on: macos-26
+ timeout-minutes: 65
+ env:
+ YOGURT_BACKGROUND: '0'
+ TZ: UTC
+ YOGURT_INTERFACE_IMAGES: ${{ github.workspace }}/screenshots
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ path: current
+ fetch-depth: 0
+ - name: Prepare matching before and after builds
+ run: |
+ base=$(git -C current merge-base origin/main HEAD)
+ git -C current worktree add --detach "$GITHUB_WORKSPACE/baseline" "$base"
+ cp current/app/e2e/interfaceScreenshots.spec.ts baseline/app/e2e/
+ echo "YOGURT_INTERFACE_DAY=$(date -u +%F)" >> "$GITHUB_ENV"
+ mkdir -p "$YOGURT_INTERFACE_IMAGES"
+ {
+ echo "Before $base"
+ echo "After $(git -C current rev-parse HEAD)"
+ echo "Run $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID"
+ } > "$YOGURT_INTERFACE_IMAGES/revisions.txt"
+ - run: sudo xcode-select -s /Applications/Xcode_26.4.1.app
+ - uses: pnpm/action-setup@v4
+ with:
+ package_json_file: current/package.json
+ - uses: actions/setup-node@v4
+ with:
+ node-version-file: current/.nvmrc
+ cache: pnpm
+ cache-dependency-path: current/pnpm-lock.yaml
+ - name: Capture both app revisions
+ shell: bash
+ run: |
+ capture() (
+ set -e
+ cd "$1"
+ export YOGURT_INTERFACE_STAGE="$2"
+ pnpm install --frozen-lockfile
+ pnpm -C app native
+ pnpm -C app exec electron-vite build
+ pnpm -C app exec playwright test interfaceScreenshots.spec.ts --workers=1
+ )
+ set +e
+ capture baseline before
+ before=$?
+ capture current after
+ after=$?
+ exit $((before || after))
+ - name: Verify the screenshot set
+ if: ${{ !cancelled() }}
+ run: |
+ python3 - <<'PY'
+ from pathlib import Path
+ import json, os, struct
+ root = Path(os.environ['YOGURT_INTERFACE_IMAGES'])
+ ids = '01 01-general 01-updates 02 02-partial 03 04 04-folder 04-trash 04-retained 04-search 04-setup 04-folders 04-note 04-transcript 04-folder-retained 04-trash-retained 04-note-retained 04-transcript-retained 13-delete note-stop 06 07 07-reach 08 09 10 10-panel 10-history 10-thread 10-answer calendar-event 12 12-ask 13 13-partial 13-absent 15 17 17-valid 18 19 note-save summary regenerate upload-read'.split()
+ expected = [f'{i}-{s}-{t}.png' for i in ids for s in ('before', 'after') for t in ('light', 'dark')]
+ missing = [name for name in expected if not (root / name).is_file()]
+ images, errors = {}, []
+ for name in expected:
+ if name in missing:
+ continue
+ data = (root / name).read_bytes()
+ if len(data) < 24 or not data.startswith(bytes.fromhex('89504e470d0a1a0a')) or data[12:16] != b'IHDR':
+ errors.append(f'{name}: invalid PNG header')
+ continue
+ images[name] = struct.unpack('>II', data[16:24])
+ for i in ids:
+ for t in ('light', 'dark'):
+ before, after = (images.get(f'{i}-{s}-{t}.png') for s in ('before', 'after'))
+ if before and after and before != after:
+ errors.append(f'{i} {t}: window size changed from {before} to {after}')
+ reference = None
+ for stage in ('before', 'after'):
+ for theme in ('light', 'dark'):
+ name = f'07-frame-{stage}-{theme}.json'
+ if not (root / name).is_file():
+ errors.append(f'{name}: missing agenda geometry')
+ continue
+ geometry = json.loads((root / name).read_text())
+ if reference is not None and geometry != reference:
+ errors.append(f'{name}: agenda bounds or starting header moved: {geometry} vs {reference}')
+ reference = geometry
+ (root / 'manifest.json').write_text(json.dumps({'source': 'Electron webContents.capturePage', 'images': images, 'missing': missing, 'errors': errors}, indent=2))
+ if missing or errors:
+ raise SystemExit('\n'.join([*missing, *errors]))
+ PY
+ - uses: actions/upload-artifact@v4
+ if: ${{ !cancelled() }}
+ with:
+ name: desktop-interface-screenshots
+ path: screenshots/
+ if-no-files-found: error
+ retention-days: 14
diff --git a/app/e2e/agendaLoading.spec.ts b/app/e2e/agendaLoading.spec.ts
index 24434799..48f5fb20 100644
--- a/app/e2e/agendaLoading.spec.ts
+++ b/app/e2e/agendaLoading.spec.ts
@@ -182,3 +182,19 @@ test('the compact calendar keeps its original type and geometry with a bright to
}
} finally { await app.close() }
})
+
+test('a narrow agenda can scroll the header and the last event into view', async () => {
+ const app = await electron.launch({ args: [join(import.meta.dirname, '../out/main/index.js')], env: { ...process.env, YOGURT_FAKE: '1', YOGURT_USER_DATA: mkdtempSync(join(tmpdir(), 'yogurt-agenda-width-')) } })
+ try {
+ const page = await app.firstWindow()
+ await seedAgendaAtNoon(app, page)
+ await app.evaluate(({ BrowserWindow }) => BrowserWindow.getAllWindows()[0].webContents.setZoomFactor(2))
+ const agenda = page.getByRole('complementary', { name: 'Agenda' })
+ await expect(agenda).toHaveCSS('overflow-y', 'auto')
+ const event = agenda.getByTestId('event').last()
+ await event.scrollIntoViewIfNeeded()
+ await expect(event).toBeInViewport()
+ await agenda.getByRole('button', { name: 'Today' }).scrollIntoViewIfNeeded()
+ await expect(agenda.getByRole('button', { name: 'Today' })).toBeInViewport()
+ } finally { await app.close() }
+})
diff --git a/app/e2e/approvedStudies.spec.ts b/app/e2e/approvedStudies.spec.ts
index 075d0522..e26584ea 100644
--- a/app/e2e/approvedStudies.spec.ts
+++ b/app/e2e/approvedStudies.spec.ts
@@ -126,7 +126,7 @@ test('approved compact call card shows the Dock icon and pausing countdown in bo
}
if (!before) {
await prompt.emulateMedia({ reducedMotion: 'reduce' })
- await expect(prompt.getByTestId('prompt-countdown')).toHaveCSS('animation-timing-function', 'steps(12)')
+ await expect(prompt.getByTestId('prompt-countdown')).toBeHidden()
}
} finally { await app.close() }
})
diff --git a/app/e2e/calendarLink.spec.ts b/app/e2e/calendarLink.spec.ts
index 236e6044..14b29c5c 100644
--- a/app/e2e/calendarLink.spec.ts
+++ b/app/e2e/calendarLink.spec.ts
@@ -114,3 +114,25 @@ test('@everywhere a Mac keeps its own calendar and can add a calendar link next
await expect(settings.getByTestId('calendar-link-remove')).toHaveCount(1)
} finally { await app.close(); server.close() }
})
+
+test('an unavailable source offers Retry without claiming the day is empty', async () => {
+ const app = await electron.launch({ args: [join(import.meta.dirname, '../out/main/index.js')], env: {
+ ...process.env, YOGURT_FAKE: '1', YOGURT_USER_DATA: mkdtempSync(join(tmpdir(), 'yogurt-feed-retry-')),
+ } })
+ try {
+ const page = await app.firstWindow()
+ const setUnavailable = (names: string[]) => app.evaluate(({ ipcMain }, unavailable) => {
+ ipcMain.removeHandler('calendar:day')
+ ipcMain.handle('calendar:day', () => ({ status: 'granted', events: [], unavailable }))
+ }, names)
+ await setUnavailable(['Team calendar'])
+ await page.reload()
+ const agenda = page.getByRole('complementary', { name: 'Agenda' })
+ await expect(agenda.getByRole('alert')).toContainText('Team calendar')
+ await expect(agenda.getByText('No meetings')).toHaveCount(0)
+ await setUnavailable([])
+ await agenda.getByRole('button', { name: 'Try again' }).click()
+ await expect(agenda.getByText('No meetings')).toBeVisible()
+ await expect(agenda.getByRole('alert')).toHaveCount(0)
+ } finally { await app.close() }
+})
diff --git a/app/e2e/commands.spec.ts b/app/e2e/commands.spec.ts
index 516b475e..71e7d1ab 100644
--- a/app/e2e/commands.spec.ts
+++ b/app/e2e/commands.spec.ts
@@ -652,3 +652,28 @@ test("a mouse's back and forward buttons move through pages like ⌘[ and ⌘]",
await expect(page.getByTestId('chat-page')).toBeVisible()
} finally { await app.close() }
})
+
+test('the palette recovers from a rejected read', async () => {
+ const { app, page } = await launch({ YOGURT_BACKGROUND: process.env.YOGURT_BACKGROUND ?? '1' })
+ try {
+ const setAvailable = (available: boolean) => app.evaluate(({ ipcMain }, available) => {
+ ipcMain.removeHandler('search:query')
+ ipcMain.handle('search:query', (_event, q: string) => {
+ if (q !== 'Planning') return []
+ if (!available) throw new Error('Read failed')
+ return [{ meetingId: 'planning', title: 'Planning review', startedAt: 1, parts: [] }]
+ })
+ }, available)
+ await setAvailable(false)
+ await page.keyboard.press('ControlOrMeta+k')
+ await page.getByTestId('search-input').fill('Planning')
+ const retry = page.getByTestId('search-retry')
+ await expect(retry).toBeVisible()
+ await expect(page.getByTestId('search-result')).toHaveCount(0)
+ await setAvailable(true)
+ await retry.click()
+ await expect(page.getByTestId('search-result')).toContainText('Planning review')
+ await expect(page.getByTestId('search-retry')).toHaveCount(0)
+ await expect(page.getByRole('listbox')).toHaveAttribute('aria-busy', 'false')
+ } finally { await app.close() }
+})
diff --git a/app/e2e/folders.spec.ts b/app/e2e/folders.spec.ts
index b1a325df..188be201 100644
--- a/app/e2e/folders.spec.ts
+++ b/app/e2e/folders.spec.ts
@@ -258,6 +258,11 @@ for (const input of ['pointer', 'keyboard'] as const) test(`the suggested row na
await page.getByTestId('nav-home').click()
const row = page.getByTestId('past-note').filter({ hasText: 'Customer call with Acme' })
await expect(row.getByTestId('folder-suggestion')).toBeVisible()
+ for (const action of ['cancel', 'confirm']) {
+ const target = row.getByTestId('folder-suggestion-' + action)
+ await expect(target).toHaveCSS('width', '24px')
+ await expect(target).toHaveCSS('height', '24px')
+ }
await page.evaluate(() => window.yogurt.folders.create('Alpha'))
if (input === 'keyboard') {
await row.getByTestId('note-folders').focus()
diff --git a/app/e2e/interfaceScreenshots.spec.ts b/app/e2e/interfaceScreenshots.spec.ts
new file mode 100644
index 00000000..b413966d
--- /dev/null
+++ b/app/e2e/interfaceScreenshots.spec.ts
@@ -0,0 +1,898 @@
+import { randomUUID } from 'node:crypto'
+import { DatabaseSync } from 'node:sqlite'
+import { selectNoteVersion } from './noteVersion'
+import { _electron as electron, expect, test, type ElectronApplication, type Locator, type Page } from '@playwright/test'
+import { copyFileSync, mkdirSync, mkdtempSync, rmSync, utimesSync, writeFileSync } from 'node:fs'
+import { createServer } from 'node:http'
+import { tmpdir } from 'node:os'
+import { join } from 'node:path'
+
+const stage = process.env.YOGURT_INTERFACE_STAGE
+const after = stage === 'after'
+const output = process.env.YOGURT_INTERFACE_IMAGES
+const noon = Date.parse((process.env.YOGURT_INTERFACE_DAY ?? '2026-11-19') + 'T12:00:00Z')
+type Theme = 'light' | 'dark'
+type Session = { app: ElectronApplication; page: Page; profile: string; theme: Theme }
+type Options = { env?: Record<string, string>; settings?: Record<string, unknown>; offlineFeed?: boolean }
+
+test.skip(!process.env.CI || !output || (stage !== 'before' && !after), 'Only the desktop screenshot workflow captures these states.')
+
+async function capture(app: ElectronApplication, page: Page, id: string, theme: Theme, verifyPixels?: (png: string) => Promise<void>) {
+ await page.evaluate(async () => {
+ await document.fonts.ready
+ // Let short menu exits and view entrances finish without waiting on the countdown or loading loops.
+ const transitions = document.getAnimations().filter(a => a.playState === 'running' &&
+ Number(a.effect?.getComputedTiming().endTime) <= 1000)
+ await Promise.allSettled(transitions.map(a => a.finished))
+ await new Promise<void>(done => requestAnimationFrame(() => requestAnimationFrame(() => done())))
+ })
+ const window = await app.browserWindow(page)
+ try {
+ const viewport = await page.evaluate(() => [innerWidth, innerHeight])
+ const clock = id === '17' || id === '17-valid'
+ const landmark = clock ? page.getByRole('button', { name: 'Transcribe', exact: true }) : null
+ // These popup entrances can reach their final DOM position before Electron paints that frame.
+ const landmarkId = { '04-search': 'search-input', '10-panel': 'chat-panel', '10-history': 'chat-recent-list',
+ '04-trash-retained': 'trash-row', '04-folder-retained': 'past-note', '04-note-retained': 'note-enhanced-editor',
+ '04-transcript-retained': 'transcript-text', '04-transcript': after ? 'transcript-read-error' : 'transcript',
+ '13-delete': 'recording-delete-confirm', 'note-stop': 'note-stop-unsaved' }[id]
+ const reference = landmarkId ? await page.getByTestId(landmarkId).first().boundingBox() : null
+ // Flush the compositor after navigation; Chromium and Electron capture the same built app window.
+ const screenshot = await page.screenshot({ scale: 'css' })
+ const compositor = reference ? screenshot.toString('base64') : null
+ const take = async () => {
+ const { png, size, zoom } = await window.evaluate(async win => {
+ win.webContents.invalidate()
+ const frame = await win.webContents.capturePage()
+ return { png: frame.toPNG({ scaleFactor: 1 }).toString('base64'), size: frame.getSize(), zoom: win.webContents.getZoomFactor() }
+ })
+ for (const [actual, expected] of [[size.width, viewport[0] * zoom], [size.height, viewport[1] * zoom]]) {
+ expect(Math.abs(actual - expected)).toBeLessThanOrEqual(Math.ceil(zoom))
+ }
+ if (compositor && reference) {
+ const difference = await app.evaluate(({ nativeImage }, { png, compositor, reference }) => {
+ const [actual, expected] = [png, compositor].map(data => nativeImage.createFromBuffer(Buffer.from(data, 'base64')))
+ if (actual.getSize().width !== expected.getSize().width) return 1
+ const a = actual.toBitmap(), b = expected.toBitmap(), { width, height } = actual.getSize()
+ let sampled = 0, different = 0
+ for (let y = Math.max(0, Math.ceil(reference.y)); y < Math.min(height, reference.y + reference.height); y += 2) {
+ for (let x = Math.max(0, Math.ceil(reference.x)); x < Math.min(width, reference.x + reference.width); x += 2) {
+ const i = (y * width + x) * 4
+ sampled++
+ if ([0, 1, 2].some(k => Math.abs(a[i+k] - b[i+k]) > 25)) different++
+ }
+ }
+ return different / sampled
+ }, { png, compositor, reference })
+ expect(difference).toBeLessThan(0.025)
+ }
+ if (landmark) {
+ const box = (await landmark.boundingBox())!
+ const painted = await app.evaluate(({ nativeImage }, { png, box }) => {
+ const frame = nativeImage.createFromBuffer(Buffer.from(png, 'base64'))
+ const bytes = frame.toBitmap(), { width } = frame.getSize()
+ let colored = 0
+ for (let y = Math.ceil(box.y); y < box.y + box.height; y++) {
+ for (let x = Math.ceil(box.x); x < box.x + box.width; x++) {
+ const i = (y * width + x) * 4
+ const [b, g, r] = [bytes[i], bytes[i + 1], bytes[i + 2]]
+ if (b > g + 60 && b > r + 25) colored++
+ }
+ }
+ return colored
+ }, { png, box })
+ // The earlier reading dialog has no purple Transcribe button.
+ expect(painted).toBeGreaterThan(box.width * box.height / 2)
+ }
+ await verifyPixels?.(png)
+ mkdirSync(output!, { recursive: true })
+ writeFileSync(join(output!, `${id}-${stage}-${theme}.png`), Buffer.from(png, 'base64'))
+ }
+ if (verifyPixels || landmark || compositor) await expect(take).toPass({ timeout: 8000, intervals: [100, 250] })
+ else await take()
+ } finally { await window.dispose() }
+}
+
+function scene(id: string, name: string, drive: (session: Session) => Promise<void | (() => Promise<void>)>, options: Options = {}) {
+ for (const theme of ['light', 'dark'] as const) test(`${id} ${name} in ${theme}`, async () => {
+ const profile = mkdtempSync(join(tmpdir(), 'yogurt-interface-'))
+ const settings: Record<string, unknown> = { theme, myName: 'Meeting host', ...options.settings }
+ const server = options.offlineFeed ? createServer((_req, res) => { res.writeHead(503); res.end() }) : null
+ let app: ElectronApplication | undefined
+ try {
+ if (server) {
+ await new Promise<void>(resolve => server.listen(0, '127.0.0.1', resolve))
+ const address = server.address()
+ if (!address || typeof address === 'string') throw new Error('Calendar fixture did not start')
+ const url = `http://127.0.0.1:${address.port}/team.ics`
+ settings.calendarLinks = [{ id: 'team', name: 'Team calendar', host: '127.0.0.1', url: 'b:' + Buffer.from(url).toString('base64') }]
+ }
+ writeFileSync(join(profile, 'settings.json'), JSON.stringify(settings))
+ app = await electron.launch({ args: [join(import.meta.dirname, '../out/main/index.js')], env: {
+ ...process.env, YOGURT_FAKE: '1', YOGURT_USER_DATA: profile, YOGURT_SYSTEM_LANGUAGES: 'en-US', ...options.env,
+ } })
+ const page = await app.firstWindow()
+ // Keep the normal main-window frame, including when testing the app's Zoom In behavior.
+ const window = await app.browserWindow(page)
+ try { expect(await window.evaluate(win => win.getSize())).toEqual([1100, 760]) }
+ finally { await window.dispose() }
+ await page.emulateMedia({ colorScheme: null })
+ await expect.poll(() => page.evaluate(() => matchMedia('(prefers-color-scheme: dark)').matches)).toBe(theme === 'dark')
+ await page.clock.setFixedTime(noon)
+ await app.evaluate((_e, at) => {
+ const calendar = (globalThis as unknown as { __fake__: { calendarEvents(e: unknown[]): void } }).__fake__
+ calendar.calendarEvents([{ id: 'weekly', title: 'Team standup', attendees: [], calendar: 'Work',
+ start: new Date(at + 3600000).toISOString(), end: new Date(at + 5400000).toISOString() }])
+ }, noon)
+ const verifyLayout = await drive({ app, page, profile, theme })
+ if (id !== '12' && !id.startsWith('01')) await capture(app, page, id, theme)
+ await verifyLayout?.()
+ } finally {
+ try { await app?.close() } finally {
+ if (server?.listening) await new Promise<void>(resolve => server.close(() => resolve()))
+ rmSync(profile, { recursive: true, force: true })
+ }
+ }
+ })
+}
+
+async function seed({ page, profile }: Session) {
+ await expect(page.getByTestId('home')).toBeVisible()
+ const db = new DatabaseSync(join(profile, 'yogurt.db'), { timeout: 5000 })
+ try {
+ const insert = db.prepare("INSERT INTO meetings (id,title,started_at,ended_at,attendees,state) VALUES (?,?,?,?,?,'done')")
+ const notes = db.prepare('INSERT INTO notes (meeting_id,enhanced) VALUES (?,?)')
+ const roles = ['Team lead', 'Design team', 'Support team'].map(name => ({ name, email: null }))
+ for (const [i, title] of ['Budget review', 'Weekly sync', 'Customer review', 'Design crit'].entries()) {
+ const id = randomUUID(), start = noon - (i * 5 + 2) * 3600000
+ insert.run(id, title, start, start + (25 + 10 * i) * 60000, JSON.stringify(roles.slice(0, i)))
+ notes.run(id, '## ' + title + '\nReview the revised schedule.\n## Next steps\nSend the plan to the team.')
+ if (i === 0) db.prepare("INSERT INTO segments (meeting_id,track,start_ms,end_ms,text) VALUES (?,'them',0,2000,?)")
+ .run(id, 'We will review the budget on Friday.')
+ }
+ } finally { db.close() }
+ await page.reload()
+ await expect(page.getByTestId('past-note')).toHaveCount(4)
+}
+
+async function note(s: Session) {
+ await seed(s)
+ await s.page.getByTestId('past-note').filter({ hasText: 'Budget review' }).locator('.native-meeting-link').click()
+ await expect(s.page.getByTestId('note-enhanced-editor')).toBeVisible()
+}
+
+async function zoom(s: Session, factor: number) {
+ const window = await s.app.browserWindow(s.page)
+ try { await window.evaluate((win, value) => win.webContents.setZoomFactor(value), factor) }
+ finally { await window.dispose() }
+ await expect.poll(() => s.page.evaluate(() => innerWidth)).toBeLessThanOrEqual(Math.ceil(1100 / factor) + 1)
+}
+
+// Measure the actual text ink boxes. Equal flex child heights alone can hide a wrapped or offset label.
+async function aligned(row: Locator) {
+ await expect(row).toBeInViewport()
+ await expect.poll(() => row.evaluate(el => {
+ const bounds = el.getBoundingClientRect()
+ const labels = el.querySelectorAll<HTMLElement>(':scope > span, a, .workspace-button')
+ const controls = el.querySelectorAll<HTMLElement>('[data-testid="recording-menu"]')
+ const errors: string[] = []
+ let center: number | undefined
+ for (const part of [...labels, ...controls]) {
+ const label = part.textContent?.trim() || part.tagName
+ let rect = part.getBoundingClientRect()
+ if (part.matches('span, a, .workspace-button')) {
+ const range = document.createRange()
+ range.selectNodeContents(part)
+ const lines = [...range.getClientRects()].filter(r => r.width && r.height)
+ if (lines.length !== 1 || part.scrollWidth > part.clientWidth + 1)
+ errors.push(`${label}: ${lines.length} text rectangles, ${part.scrollWidth}px of text in ${part.clientWidth}px`)
+ if (lines.length) rect = lines[0]
+ }
+ const mid = rect.y + rect.height / 2
+ if (center === undefined) center = mid
+ if (Math.abs(mid - center) > 2) errors.push(`${label}: center offset ${mid - center}px`)
+ if (rect.left < bounds.left || rect.right > bounds.right + 1) errors.push(`${label}: extends past the row`)
+ }
+ if (!el.querySelector(':scope > span') || !el.querySelector('button.workspace-button')) errors.push('Missing message or action')
+ return errors
+ })).toEqual([])
+}
+
+async function rejectRead(app: ElectronApplication, channel: string) {
+ await app.evaluate(({ ipcMain }, channel) => {
+ const state = globalThis as typeof globalThis & { screenshotRead?: boolean }
+ state.screenshotRead = false
+ ipcMain.removeHandler(channel)
+ ipcMain.handle(channel, () => { state.screenshotRead = true; throw new Error('Read failed') })
+ }, channel)
+ return () => expect.poll(() => app.evaluate(() => (globalThis as typeof globalThis & { screenshotRead?: boolean }).screenshotRead)).toBe(true)
+}
+
+async function secondaryButton(area: Locator, name = 'Try again') {
+ const button = area.getByRole('button', { name, exact: true })
+ await expect(button).toHaveClass(/\bworkspace-button\b/)
+ await expect(button).toHaveCSS('text-decoration-line', 'none')
+ await expect(button).toBeInViewport()
+ const row = button.locator('xpath=ancestor::*[contains(concat(" ",normalize-space(@class)," "), " inline-error ")][1]')
+ if (await row.count()) {
+ await expect(row.locator(':scope > svg')).toHaveCount(0)
+ await expect.poll(() => row.evaluate(el => {
+ const actions = el.querySelectorAll('button, a'), last = actions[actions.length - 1]
+ const css = getComputedStyle(el), box = el.getBoundingClientRect()
+ return Math.abs(last.getBoundingClientRect().right - (box.right - parseFloat(css.paddingRight) - parseFloat(css.borderRightWidth)))
+ })).toBeLessThanOrEqual(1)
+ }
+ return button
+}
+
+async function actionToast(area: Locator, message: string) {
+ await expect(area).toHaveClass(/\bapp-toast\b/)
+ await expect(area.locator('.app-toast-title')).toHaveText(message)
+ const retry = await secondaryButton(area)
+ const close = area.getByRole('button', { name: 'Close' })
+ await expect(close).toBeInViewport()
+ await expect(close).toHaveCSS('width', '28px')
+ await expect(close.locator('svg')).toHaveCSS('width', '14px')
+ await expect.poll(async () => {
+ const left = (await close.boundingBox())!, right = (await retry.boundingBox())!
+ return Math.round(left.x - right.x - right.width)
+ }).toBe(12)
+}
+
+async function emptyBlock(area: Locator) {
+ const button = await secondaryButton(area)
+ const message = area.locator('h3,p')
+ await expect(message).toHaveCSS('font-size', '13px')
+ await expect(message).toHaveCSS('font-weight', '400')
+ const box = (await message.boundingBox())!, action = (await button.boundingBox())!
+ expect(Math.abs(action.y - box.y - box.height - 8)).toBeLessThanOrEqual(1)
+ await expect(area.locator('.empty-tile')).toHaveCount(0)
+ if (await area.evaluate(el => el.classList.contains('agenda-status'))) {
+ await expect(area.locator(':scope > svg.lucide-calendar-days')).toHaveCSS('width', '18px')
+ } else await expect(area.locator('svg')).toHaveCount(0)
+}
+
+async function captureSwitch(app: ElectronApplication, page: Page, id: string, theme: Theme, toggle: Locator, on: boolean, warning: Locator) {
+ const box = (await toggle.boundingBox())!
+ // DOM state can be a frame ahead of the compositor. Inspect the actual bytes we will publish.
+ await capture(app, page, id, theme, async png => {
+ const title = after ? await warning.locator('.app-toast-title').evaluate(el => {
+ const { x, y, width, height } = el.getBoundingClientRect()
+ return { x, y, width, height, ink: getComputedStyle(el).color.match(/\d+/g)!.slice(0, 3).map(Number) }
+ }) : null
+ const paint = await app.evaluate(({ nativeImage }, { png, box, title, on }) => {
+ const image = nativeImage.createFromBuffer(Buffer.from(png, 'base64'))
+ const pixels = image.toBitmap(), { width } = image.getSize()
+ const sample = (fraction: number) => {
+ const i = (Math.floor(box.y + box.height / 2) * width + Math.floor(box.x + fraction * box.width)) * 4
+ return [pixels[i + 2], pixels[i + 1], pixels[i]]
+ }
+ const thumb = sample(on ? 0.72 : 0.28)
+ const track = sample(on ? 0.28 : 0.72)
+ const [r, g, b] = track
+ let warningPainted = false
+ if (title) {
+ for (let y = Math.ceil(title.y); y < title.y + title.height; y++) {
+ for (let x = Math.ceil(title.x); x < title.x + title.width; x++) {
+ const i = (y * width + x) * 4
+ if (title.ink.every((component, c) => Math.abs(component - pixels[i + 2 - c]) < 24)) warningPainted = true
+ }
+ }
+ }
+ return { whiteThumb: Math.min(...thumb) > 235,
+ settledTrack: on ? b > g + 50 && b > r + 20 : Math.max(...track) - Math.min(...track) < 20,
+ warningPainted }
+ }, { png, box, title, on })
+ expect(paint).toEqual({ whiteThumb: true, settledTrack: true, warningPainted: after })
+ })
+}
+
+scene('01', 'AI access after a rejected save', async ({ app, page, profile, theme }) => {
+ await page.getByTestId('settings-open').click()
+ const toggle = page.getByTestId('ai-apps-toggle')
+ await expect(toggle).toHaveAttribute('aria-checked', 'true')
+ await toggle.evaluate(el => el.scrollIntoView({ block: 'center' }))
+ mkdirSync(join(profile, 'settings.json.tmp'))
+ // Main optimistically flips the switch and leaves the rejected write unhandled.
+ const rejected = after ? undefined : page.waitForEvent('pageerror', { predicate: error => /mcp:set/i.test(error.message) && /EISDIR|directory/i.test(error.message) })
+ await toggle.click()
+ await rejected
+ await expect(toggle).toHaveAttribute('aria-checked', after ? 'true' : 'false')
+ expect((await page.evaluate(() => window.yogurt.mcp.status())).enabled).toBe(true)
+ const warning = page.getByTestId('ai-apps-retry-error')
+ if (after) {
+ await actionToast(warning, "Couldn't save your changes")
+ await expect(page.locator('.settings-group [role="alert"]')).toHaveCount(0)
+ } else await expect(warning).toHaveCount(0)
+ await captureSwitch(app, page, '01', theme, toggle, after, warning)
+}, { settings: { aiApps: true } })
+
+for (const [id, control, channel, toast] of [
+ ['01-general', 'recording-reminder-toggle', 'settings:recording-reminder', 'recording-reminder-retry-error'],
+ ['01-updates', 'updates-toggle', 'updates:set', 'updates-save-retry-error'],
+] as const) {
+ scene(id, 'rejected save for ' + control, async s => {
+ await s.page.getByTestId('settings-open').click()
+ const toggle = s.page.getByTestId(control)
+ await expect(toggle).toBeEnabled()
+ await toggle.evaluate(el => el.scrollIntoView({ block: 'center' }))
+ const saved = await toggle.getAttribute('aria-checked')
+ const rejected = await rejectRead(s.app, channel)
+ await toggle.click()
+ await rejected()
+ const on = after ? saved === 'true' : saved !== 'true'
+ await expect(toggle).toHaveAttribute('aria-checked', String(on))
+ const warning = s.page.getByTestId(toast)
+ if (after) await actionToast(warning, "Couldn't save your changes")
+ await captureSwitch(s.app, s.page, id, s.theme, toggle, on, warning)
+ }, id === '01-updates' ? { env: { YOGURT_FAKE_UPDATE: '9.9.9' } } : {})
+}
+
+scene('02', 'an unavailable linked calendar', async ({ app, page }) => {
+ await app.evaluate(() => (globalThis as unknown as { __fake__: { calendarEvents(e: unknown[]): void } }).__fake__.calendarEvents([]))
+ await page.reload()
+ const agenda = page.getByRole('complementary', { name: 'Agenda' })
+ if (after) {
+ await expect(agenda.getByRole('alert')).toContainText("Can't read Team calendar")
+ await emptyBlock(agenda.getByRole('alert'))
+ } else await expect(agenda.getByText('No meetings', { exact: true })).toBeVisible()
+}, { offlineFeed: true })
+
+scene('02-partial', 'a working calendar beside an offline feed', async ({ app, page }) => {
+ await app.evaluate((_e, at) => {
+ const f = (globalThis as unknown as { __fake__: { calendarEvents(events: unknown[]): void } }).__fake__
+ f.calendarEvents([{ id: 'healthy', title: 'Design review', attendees: [], start: new Date(at).toISOString(), end: new Date(at + 3600000).toISOString() }])
+ }, noon)
+ await page.reload()
+ const agenda = page.getByRole('complementary', { name: 'Agenda' })
+ await expect(agenda.getByText('Design review')).toBeInViewport()
+ if (after) {
+ const row = agenda.getByTestId('calendar-error')
+ await expect(row).toHaveClass(/inline-error/)
+ await secondaryButton(row)
+ } else await expect(agenda.getByRole('alert')).toHaveCount(0)
+}, { offlineFeed: true })
+
+scene('03', 'selected meeting', async s => {
+ await seed(s)
+ const row = s.page.getByTestId('past-note').filter({ hasText: 'Weekly sync' })
+ await row.locator('.native-meeting-link').click({ modifiers: ['Meta'] })
+ await expect(row.locator('.native-meeting-link')).toHaveAttribute('aria-pressed', 'true')
+ await expect(row.getByTestId('meeting-selected')).toHaveCount(after ? 1 : 0)
+ await s.page.mouse.move(4, 4)
+})
+
+for (const [id, view] of [['04', 'meetings'], ['04-folder', 'folder'], ['04-trash', 'trash']] as const) {
+ scene(id, 'empty library after a failed ' + view + ' read', async ({ app, page }) => {
+ await expect(page.getByTestId('home')).toBeVisible()
+ if (view === 'folder') {
+ await page.evaluate(async () => {
+ const folder = await window.yogurt.folders.create('Planning')
+ window.yogurt.nav.go('/folder/' + folder!.id)
+ })
+ } else if (view === 'trash') await page.evaluate(() => window.yogurt.nav.go('/trash'))
+ const emptyId = { meetings: 'past-empty', folder: 'folder-empty', trash: 'trash-none' }[view]
+ const empty = page.getByTestId(emptyId)
+ // Measure the healthy empty surface in the same window before rejecting the next read.
+ await expect(empty).toBeInViewport()
+ const center = await empty.evaluate(el => { const r = el.getBoundingClientRect(); return r.y + r.height / 2 })
+ await app.evaluate(({ ipcMain }, channel) => {
+ ipcMain.removeHandler(channel)
+ ipcMain.handle(channel, () => { throw new Error('Library read failed') })
+ }, view === 'trash' ? 'meetings:trashed' : 'meetings:cards')
+ await page.reload()
+ if (after) {
+ const area = page.getByTestId('meetings-read-error')
+ await emptyBlock(area)
+ const rect = (await area.boundingBox())!
+ expect(Math.abs(rect.y + rect.height / 2 - center)).toBeLessThanOrEqual(3)
+ } else await expect(page.locator('.library-load')).toHaveAttribute('data-loading-phase', 'skeleton')
+ })
+}
+
+for (const [id, channel, testId, before] of [
+ ['04-setup', 'setup:state', 'setup-read-error', '[data-testid="boot-screen"]'],
+ ['04-folders', 'folders:list', 'folder-list-error', '[data-testid="meetings-loading"]'],
+ ['04-note', 'notes:get', 'note-read-error', '.loading-note-frame[data-loading-phase="skeleton"]'],
+ ['04-transcript', 'transcript:get', 'transcript-read-error', '[data-testid="transcript"][data-loading-phase="skeleton"]'],
+] as const) {
+ scene(id, 'first read of ' + channel, async s => {
+ await expect(s.page.getByTestId('home')).toBeVisible()
+ if (id === '04-note' || id === '04-transcript') await note(s)
+ if (id === '04-folders') {
+ await s.page.evaluate(async () => window.yogurt.nav.go('/folder/' + (await window.yogurt.folders.create('Planning'))!.id))
+ await expect(s.page.getByTestId('folder-empty')).toBeVisible()
+ }
+ const saved = id === '04-transcript' ? await s.page.evaluate(async () =>
+ window.yogurt.transcript.get((await window.yogurt.nav.current()).slice('/note/'.length), { hidden: true })) : undefined
+ const rejected = await rejectRead(s.app, channel)
+ if (id === '04-transcript') await s.page.getByTestId('note-transcript-toggle').click()
+ else await s.page.reload()
+ await rejected()
+ if (after) await emptyBlock(s.page.getByTestId(testId))
+ else await expect(s.page.locator(before)).toBeVisible()
+ if (id === '04-transcript' && after && saved) return async () => {
+ await s.app.evaluate(({ ipcMain }, lines) => {
+ ipcMain.removeHandler('transcript:get')
+ ipcMain.handle('transcript:get', () => lines)
+ }, saved)
+ await s.page.getByTestId(testId).getByRole('button', { name: 'Try again' }).click()
+ await expect(s.page.getByTestId('transcript-text')).toHaveText('We will review the budget on Friday.')
+ await expect(s.page.getByTestId(testId)).toHaveCount(0)
+ }
+ })
+}
+
+scene('note-stop', 'recording stopped with unsaved end time', async s => {
+ await note(s)
+ const current = await s.page.evaluate(async () => window.yogurt.meetings.get((await window.yogurt.nav.current()).slice('/note/'.length)))
+ if (!current) throw new Error('Missing meeting')
+ await s.app.evaluate(({ ipcMain }, meeting) => {
+ ipcMain.removeHandler('meetings:get')
+ ipcMain.handle('meetings:get', () => ({ ...meeting, state: 'stopped', stopSavePending: true }))
+ }, current)
+ await s.page.reload()
+ const row = s.page.getByTestId('note-stop-unsaved')
+ await expect(row).toContainText("couldn't save when it ended")
+ if (after) await secondaryButton(row)
+ else await expect(row.getByTestId('note-stop-retry')).toBeVisible()
+})
+
+for (const [id, view] of [['04-retained','meetings'], ['04-folder-retained','folder'], ['04-trash-retained','trash']] as const) {
+ scene(id, 'a failed refresh of ' + view + ' with saved meetings', async s => {
+ await seed(s)
+ if (view !== 'meetings') await s.page.evaluate(async view => {
+ const meeting = (await window.yogurt.meetings.cards({ limit: 1 }))[0].id
+ if (view === 'trash') {
+ await window.yogurt.meetings.trash(meeting)
+ window.yogurt.nav.go('/trash')
+ } else {
+ const folder = (await window.yogurt.folders.create('Planning'))!
+ await window.yogurt.folders.add(folder.id, meeting)
+ window.yogurt.nav.go('/folder/' + folder.id)
+ }
+ }, view)
+ const rows = s.page.getByTestId(view === 'trash' ? 'trash-row' : 'past-note')
+ const count = view === 'meetings' ? 4 : 1
+ await expect(rows).toHaveCount(count)
+ const read = await rejectRead(s.app, view === 'trash' ? 'meetings:trashed' : 'meetings:cards')
+ await s.app.evaluate(({ BrowserWindow }) => BrowserWindow.getAllWindows().find(win => !win.webContents.getURL().includes('#'))!.webContents.send('meetings:changed'))
+ await read()
+ await expect(rows).toHaveCount(count)
+ if (after) await secondaryButton(s.page.getByTestId('meetings-read-error'))
+ })
+}
+
+for (const [id, transcript] of [['04-note-retained',false], ['04-transcript-retained',true]] as const) {
+ scene(id, 'failed refresh with the note open', async s => {
+ await note(s)
+ const meeting = (await s.page.evaluate(() => window.yogurt.nav.current())).slice('/note/'.length)
+ const content = transcript ? s.page.getByText('We will review the budget on Friday.', { exact: true }) : s.page.getByTestId('note-enhanced-editor')
+ if (transcript) await s.page.getByTestId('note-transcript-toggle').click()
+ await expect(content).toBeVisible()
+ const read = await rejectRead(s.app, transcript ? 'transcript:get' : 'meetings:get')
+ await s.app.evaluate(({ BrowserWindow }, { meeting, transcript }) => {
+ const contents = BrowserWindow.getAllWindows().find(win => !win.webContents.getURL().includes('#'))!.webContents
+ if (transcript) contents.send('transcript:speakers', meeting)
+ else contents.send('meetings:changed')
+ }, { meeting, transcript })
+ await read()
+ await expect(content).toBeVisible()
+ if (after) await secondaryButton(s.page.getByTestId(transcript ? 'transcript-read-error' : 'note-read-error'))
+ })
+}
+
+scene('04-search', 'the command palette after a failed search', async s => {
+ await expect(s.page.getByTestId('home')).toBeVisible()
+ const read = await rejectRead(s.app, 'search:query')
+ await s.page.keyboard.press('Meta+k')
+ await s.page.getByTestId('search-input').fill('Planning')
+ await read()
+ if (after) {
+ const row = s.page.getByTestId('search-read-error')
+ await secondaryButton(row)
+ await secondaryButton(row, 'Ask')
+ } else await expect(s.page.getByTestId('search-input')).toHaveValue('Planning')
+})
+
+scene('06', 'keyboard focus in the note menu', async s => {
+ await note(s)
+ await s.page.getByTestId('note-menu-button').press('Enter')
+ const item = s.page.getByTestId('note-rename')
+ await expect(item).toBeFocused()
+ // Finding 06 was withdrawn. Record the existing focus treatment on each revision for direct comparison.
+ const focus = await item.evaluate(el => {
+ const css = getComputedStyle(el)
+ return { focusVisible: el.matches(':focus-visible'), width: css.outlineWidth, style: css.outlineStyle,
+ color: css.outlineColor, offset: css.outlineOffset, fill: css.backgroundColor }
+ })
+ mkdirSync(output!, { recursive: true })
+ writeFileSync(join(output!, `06-focus-${stage}-${s.theme}.json`), JSON.stringify(focus, null, 2))
+})
+
+scene('07', 'scroll a compact agenda', async s => {
+ await seed(s)
+ await s.app.evaluate(async (_e, at) => {
+ const f = (globalThis as unknown as { __fake__: { calendarEvents(events: unknown[]): void; advance(ms: number): Promise<void> } }).__fake__
+ f.calendarEvents(['Design review', 'Research sync', 'Friday planning'].map((title, i) => ({
+ id: 'meeting-' + i, title, start: new Date(at + (i + 1) * 3600000).toISOString(),
+ end: new Date(at + (i + 1.5) * 3600000).toISOString(), attendees: [],
+ })))
+ await f.advance(at - Date.now())
+ }, noon)
+ await s.page.reload()
+ const agenda = s.page.getByRole('complementary', { name: 'Agenda' })
+ await expect(agenda.getByTestId('event')).toHaveCount(3)
+ await zoom(s, 2)
+ await expect(agenda).toHaveCSS('overflow-y', after ? 'auto' : 'hidden')
+ const list = agenda.getByTestId('agenda-scroll')
+ const header = agenda.locator('.agenda-header')
+ const first = agenda.getByTestId('event').first()
+ await header.hover()
+ await agenda.evaluate(el => { el.scrollTop = 0 })
+ await list.evaluate(el => { el.scrollTop = 0 })
+ await expect(header).toBeInViewport()
+ await expect(first).not.toBeInViewport()
+ const geometry = async () => {
+ const rect = (await agenda.boundingBox())!
+ return [rect.x, rect.y, rect.width, rect.height].map(Math.round)
+ }
+ const frame = await geometry()
+ mkdirSync(output!, { recursive: true })
+ const top = Math.round((await header.boundingBox())!.y)
+ writeFileSync(join(output!, `07-frame-${stage}-${s.theme}.json`), JSON.stringify({ frame, top }))
+ // The main photograph on both builds is the identical starting view. Then show the same gesture separately.
+ return async () => {
+ await s.page.mouse.wheel(0, 160)
+ await expect(agenda.locator('.agenda-day')).toBeInViewport()
+ if (after) {
+ await expect(first).toBeInViewport({ ratio: 0.75 })
+ await expect.poll(() => agenda.evaluate(el => el.scrollTop)).toBeGreaterThan(0)
+ } else {
+ await expect(first).not.toBeInViewport()
+ expect(await agenda.evaluate(el => el.scrollTop)).toBe(0)
+ }
+ expect(await geometry()).toEqual(frame)
+ await capture(s.app, s.page, '07-reach', s.theme)
+ if (after) {
+ await s.page.mouse.wheel(0, 600)
+ await expect(agenda.getByTestId('event').last()).toBeInViewport()
+ }
+ }
+})
+
+scene('08', 'first-run permission choices at high zoom', async s => {
+ await s.page.getByTestId('intro-next').click()
+ await expect(s.page.getByTestId('onboarding-step')).toHaveAttribute('data-step', 'record')
+ await zoom(s, 2)
+ await s.page.getByTestId('step-later').evaluate(el => el.scrollIntoView({ block: 'nearest', inline: 'nearest' }))
+ await expect(s.page.locator('.ob-stage')).toHaveCSS('display', after ? 'none' : 'grid')
+ if (after) {
+ await expect(s.page.getByTestId('step-allow')).toBeInViewport()
+ await expect(s.page.getByTestId('step-later')).toBeInViewport()
+ }
+}, { env: { YOGURT_FAKE_PERMISSIONS: 'unknown', YOGURT_FAKE_CALENDAR: 'notDetermined' } })
+
+scene('09', 'German warning before replacing edits', async s => {
+ await note(s)
+ await s.page.getByTestId('note-enhanced-editor').fill('Wir besprechen den Zeitplan am Freitag.')
+ await expect(s.page.getByTestId('note-save-status')).toHaveAttribute('data-state', 'saved')
+ await s.page.getByTestId('note-menu-button').click()
+ await s.page.getByTestId('note-write-again').click()
+ const warning = s.page.getByTestId('note-confirm')
+ await expect(warning).toContainText('ersetzt')
+ await zoom(s, 3.4)
+ await expect(warning).toBeInViewport()
+ await expect(warning).toHaveCSS('white-space', after ? 'normal' : 'nowrap')
+ await expect.poll(() => warning.evaluate(el => {
+ const range = document.createRange()
+ range.selectNodeContents(el)
+ return range.getClientRects().length > 1 && el.scrollWidth <= el.clientWidth + 1
+ })).toBe(after)
+}, { settings: { language: 'de' } })
+
+scene('10', 'opening Ask when its conversation cannot load', async ({ app, page }) => {
+ await expect(page.getByTestId('home')).toBeVisible()
+ await app.evaluate(({ ipcMain }) => {
+ ipcMain.removeHandler('conversations:current')
+ ipcMain.handle('conversations:current', () => { throw new Error('Conversation read failed') })
+ })
+ await page.evaluate(() => window.yogurt.nav.go('/chat'))
+ if (after) {
+ await aligned(page.getByTestId('chat-page-load-error'))
+ await secondaryButton(page.getByTestId('chat-page-load-error'))
+ await expect(page.getByTestId('chat-loading')).toHaveCount(0)
+ }
+ else await expect(page.getByRole('alert').filter({ hasText: "Couldn't save your changes" })).toBeVisible()
+})
+
+scene('10-panel', 'opening Ask inside a note when its lookup fails', async s => {
+ await note(s)
+ const read = await rejectRead(s.app, 'conversations:current')
+ await s.page.getByTestId('chat-open').click()
+ await read()
+ if (after) {
+ await secondaryButton(s.page.getByTestId('chat-open-error'))
+ await expect(s.page.getByTestId('chat-thread-loading')).toHaveCount(0)
+ }
+ else await expect(s.page.getByTestId('chat-panel').getByText("Yogurt couldn't answer that.")).toBeVisible()
+})
+
+scene('10-history', 'opening Recent when conversation history fails', async s => {
+ await expect(s.page.getByTestId('home')).toBeVisible()
+ // Opening Ask home fetches the current conversation and broadcasts a successful list refresh.
+ const id = await s.page.evaluate(() => window.yogurt.conversations.current([]))
+ const read = await rejectRead(s.app, 'conversations:list')
+ await s.page.evaluate(id => window.yogurt.nav.go('/chat/' + id), id)
+ await read()
+ await s.page.getByTestId('chat-recent').click()
+ await expect(s.page.getByTestId('chat-recent-list')).toBeVisible()
+ if (after) await secondaryButton(s.page.getByTestId('chat-history-error'))
+})
+
+scene('10-thread', 'reading an existing conversation', async s => {
+ await expect(s.page.getByTestId('home')).toBeVisible()
+ const id = await s.page.evaluate(() => window.yogurt.conversations.current([]))
+ const read = await rejectRead(s.app, 'conversations:get')
+ await s.page.evaluate(id => window.yogurt.nav.go('/chat/' + id), id)
+ await read()
+ await expect(s.page.getByTestId('chat-page')).toBeVisible()
+ if (after) {
+ await secondaryButton(s.page.getByTestId('conversation-read-error'))
+ await expect(s.page.getByTestId('chat-thread-loading')).toHaveCount(0)
+ }
+})
+
+scene('calendar-event', 'a linked event is no longer available', async s => {
+ await note(s)
+ const id = (await s.page.evaluate(() => window.yogurt.nav.current())).slice('/note/'.length)
+ const db = new DatabaseSync(join(s.profile, 'yogurt.db'), { timeout: 5000 })
+ try { db.prepare('UPDATE meetings SET event_id=? WHERE id=?').run('unavailable-event', id) }
+ finally { db.close() }
+ await s.page.reload()
+ await s.page.getByTestId('note-date').click()
+ const card = s.page.getByTestId('note-date-card')
+ await expect(card.getByText('Calendar event unavailable')).toBeVisible()
+ if (after) await secondaryButton(card)
+ else await expect(card.getByRole('button', { name: 'Try again' })).toHaveClass(/text-action/)
+})
+
+scene('10-answer', 'retrying a failed answer', async s => {
+ await expect(s.page.getByTestId('home')).toBeVisible()
+ const chat = await s.page.evaluate(async () => window.yogurt.conversations.get(await window.yogurt.conversations.current([])))
+ if (!chat) throw new Error('Missing conversation fixture')
+ await s.app.evaluate(({ ipcMain }, chat) => {
+ ipcMain.removeHandler('conversations:get')
+ ipcMain.handle('conversations:get', () => ({ ...chat, turns: [{ id: 1, question: 'What did we decide?', answer: '', status: 'failed', sources: [] }] }))
+ }, chat)
+ await s.page.evaluate(id => window.yogurt.nav.go('/chat/' + id), chat.id)
+ const turn = s.page.getByTestId('chat-page-turn')
+ await expect(turn).toHaveAttribute('data-status', 'failed')
+ if (after) await secondaryButton(turn)
+ else await expect(turn.getByRole('button', { name: 'Try again' })).toHaveClass(/ghost-btn/)
+})
+
+scene('12', 'Reduce Motion in Ask and the call prompt', async ({ app, page, theme }) => {
+ await expect(page.getByTestId('home')).toBeVisible()
+ await page.emulateMedia({ reducedMotion: 'reduce' })
+ await page.evaluate(() => window.yogurt.nav.go('/chat'))
+ await page.getByTestId('chat-page-input').fill('What did we decide?')
+ const send = page.getByTestId('chat-page-send')
+ await send.hover()
+ const material = send.locator('.orb-material')
+ await expect.poll(() => material.evaluate(el => getComputedStyle(el, '::before').animationName)).toBe(after ? 'none' : 'orb-turn')
+ await capture(app, page, '12-ask', theme)
+ await app.evaluate(async ({ ipcMain }) => {
+ // A recognized system mic holder opens the real prompt window. Supply a neutral call label at its IPC boundary.
+ ipcMain.removeHandler('prompt:state')
+ ipcMain.handle('prompt:state', () => ({ kind: 'start', key: 'review', app: null, title: 'Planning call' }))
+ const detector = (globalThis as unknown as { __fake__: { signals(r: unknown): Promise<void> } }).__fake__
+ await detector.signals({ micApps: [{ bundleId: 'com.apple.FaceTime', name: 'Call' }], events: [] })
+ })
+ await expect.poll(() => app.windows().some(p => p.url().includes('#prompt'))).toBe(true)
+ const prompt = app.windows().find(p => p.url().includes('#prompt'))!
+ await prompt.emulateMedia({ colorScheme: null, reducedMotion: 'reduce' })
+ await expect(prompt.getByTestId('prompt')).toBeVisible()
+ await prompt.getByTestId('prompt').hover()
+ const bar = prompt.getByTestId('prompt-countdown')
+ if (after) await expect(bar).toBeHidden()
+ else {
+ await expect(bar).toBeVisible()
+ await bar.evaluate(el => { const animation = el.getAnimations()[0]; animation.pause(); animation.currentTime = 6000 })
+ }
+ await capture(app, prompt, '12', theme)
+})
+
+scene('13', 'unreadable recording in its transcript', async s => {
+ await seed(s)
+ const id = await s.page.evaluate(async () => (await window.yogurt.meetings.cards({ limit: 1 }))[0].id)
+ const dir = join(s.profile, 'meetings', id)
+ mkdirSync(dir, { recursive: true })
+ for (const track of ['me','them']) writeFileSync(join(dir, track + '.wav'), Buffer.alloc(4000, 7))
+ await s.page.evaluate(id => window.yogurt.nav.go('/note/' + id), id)
+ await s.page.getByTestId('note-transcript-toggle').click()
+ await expect(s.page.getByTestId('player-note')).toHaveText("This recording can't be played.")
+ if (after) {
+ const row = s.page.getByTestId('player-error')
+ await aligned(row)
+ await expect(row.getByTestId('recording-menu')).toBeVisible()
+ await expect(row.getByRole('link', { name: 'Open in transcript' })).toBeVisible()
+ await secondaryButton(row)
+ const left = (await s.page.getByTestId('player').boundingBox())!.x
+ expect((await row.getByTestId('player-note').boundingBox())!.x - left).toBeGreaterThanOrEqual(16)
+ }
+})
+
+for (const mode of ['partial', 'absent'] as const) {
+ scene('13-' + mode, 'playback with ' + mode + ' audio', async s => {
+ await seed(s)
+ const id = await s.page.evaluate(async () => (await window.yogurt.meetings.cards({ limit: 1 }))[0].id)
+ if (mode === 'partial') {
+ const dir = join(s.profile, 'meetings', id)
+ mkdirSync(dir, { recursive: true })
+ copyFileSync(join(import.meta.dirname, 'fixtures/meeting-me.wav'), join(dir, 'me.wav'))
+ writeFileSync(join(dir, 'them.wav'), Buffer.alloc(4000, 7))
+ }
+ const tracks = await s.page.evaluate(id => window.yogurt.audio.tracks(id), id)
+ expect(tracks.length).toBe(mode === 'partial' ? 2 : 0)
+ await s.page.evaluate(id => window.yogurt.nav.go('/note/' + id), id)
+ await s.page.getByTestId('note-transcript-toggle').click()
+ await expect(s.page.getByTestId('transcript')).toHaveAttribute('data-loaded', 'true')
+ if (mode === 'absent') await expect(s.page.getByTestId('player')).toHaveCount(0)
+ else {
+ await expect(s.page.getByTestId('player-note')).toHaveText("Part of this recording can't be played.")
+ await expect(s.page.getByTestId('player-toggle')).toBeVisible()
+ if (after) await secondaryButton(s.page.getByTestId('player-error'))
+ }
+ })
+}
+
+scene('13-delete', 'when deleting the recording fails', async s => {
+ await seed(s)
+ const id = await s.page.evaluate(async () => (await window.yogurt.meetings.cards({ limit: 1 }))[0].id)
+ const dir = join(s.profile, 'meetings', id)
+ mkdirSync(dir, { recursive: true })
+ copyFileSync(join(import.meta.dirname, 'fixtures/meeting-me.wav'), join(dir, 'me.wav'))
+ await s.page.evaluate(id => window.yogurt.nav.go('/note/' + id), id)
+ await s.page.getByTestId('note-transcript-toggle').click()
+ await s.page.getByTestId('recording-menu').click()
+ await s.page.getByTestId('recording-delete').click()
+ const failure = await rejectRead(s.app, 'audio:delete')
+ await s.page.getByTestId('recording-delete-yes').click()
+ await failure()
+ const message = s.page.getByTestId('recording-delete-failed')
+ await expect(message).toContainText("couldn't delete the audio")
+ await expect(message.locator('svg')).toHaveCount(after ? 0 : 1)
+ await expect(s.page.getByTestId('recording-delete-cancel')).toBeVisible()
+})
+
+scene('15', 'failed note export', async s => {
+ await note(s)
+ await s.app.evaluate(({ ipcMain }) => {
+ ipcMain.removeHandler('share:save')
+ ipcMain.handle('share:save', () => 'failed')
+ })
+ await s.page.getByTestId('share-button').click()
+ await s.page.getByTestId('share-export').click()
+ await expect(s.page.getByTestId('share-menu')).toBeHidden()
+ if (after) {
+ await actionToast(s.page.getByTestId('share-export-error'), "Couldn't save the file")
+ await expect(s.page.getByTestId('share-said')).toBeEmpty()
+ return async () => {
+ const toast = s.page.getByTestId('share-export-error')
+ await toast.getByRole('button', { name: 'Close' }).click()
+ await expect(toast).toHaveCount(0)
+ }
+ } else await expect(s.page.getByTestId('share-said')).toHaveText("Couldn't save the file")
+})
+
+scene('17', 'incomplete recording start time', async ({ app, page, profile, theme }) => {
+ const file = join(profile, 'Friday planning.wav')
+ copyFileSync(join(import.meta.dirname, 'fixtures/meeting-me.wav'), file)
+ utimesSync(file, new Date(noon), new Date(noon))
+ await app.evaluate(({ dialog }, file) => { Object.assign(dialog, { showOpenDialog: async () => ({ canceled: false, filePaths: [file] }) }) }, file)
+ await page.getByTestId('recording-choices').click()
+ await page.getByTestId('recording-upload').click()
+ const field = page.getByLabel('Start time', { exact: true })
+ const original = await field.inputValue()
+ const date = page.getByTestId('audio-upload-date')
+ // Tab moves between the native clock's segments. Move to the date to leave the whole field.
+ await field.focus()
+ await field.fill('')
+ await date.focus()
+ await expect(field).not.toBeFocused()
+ await expect(field).toHaveValue(after ? '' : original)
+ if (after) {
+ await expect(field).toHaveAttribute('aria-invalid', 'true')
+ await expect(page.locator('label[for="upload-start-time"]')).toHaveText('Start time')
+ const day = page.getByTestId('audio-upload-date').locator('span')
+ expect(await day.evaluate(el => el.scrollWidth <= el.clientWidth + 1)).toBe(true)
+ const error = page.locator('#upload-time-error')
+ await expect(error).toBeVisible()
+ const row = (await page.locator('.audio-upload-date-row').boundingBox())!
+ const input = (await field.boundingBox())!, message = (await error.boundingBox())!
+ expect(input.y).toBeGreaterThanOrEqual(row.y)
+ expect(input.y + input.height).toBeLessThanOrEqual(row.y + row.height + 1)
+ expect(message.y).toBeGreaterThanOrEqual(row.y + row.height)
+ expect(Math.abs(message.x - row.x) + Math.abs(message.width - row.width)).toBeLessThan(2)
+ }
+ return async () => {
+ await field.focus()
+ await field.fill('14:30')
+ await date.focus()
+ if (after) {
+ await expect(field).toHaveAttribute('type', 'time')
+ await expect(field).toHaveValue('14:30')
+ await expect(field).not.toHaveAttribute('aria-invalid', 'true')
+ }
+ await capture(app, page, '17-valid', theme)
+ }
+})
+
+for (const [id, rowId] of [
+ ['note-save', 'note-save-status'], ['summary', 'note-enhanced-failed'],
+ ['regenerate', 'note-enhanced-rewrite-failed'], ['upload-read', 'upload-preparation-failed'],
+] as const) {
+ scene(id, 'existing recovery action for ' + id, async s => {
+ await note(s)
+ const noteId = (await s.page.evaluate(() => window.yogurt.nav.current())).slice('/note/'.length)
+ const db = new DatabaseSync(join(s.profile, 'yogurt.db'), { timeout: 5000 })
+ try {
+ if (id === 'upload-read') {
+ db.prepare("UPDATE meetings SET source='audio-file', transcription_state='error', transcription_pending=0 WHERE id=?").run(noteId)
+ await s.page.reload()
+ await s.page.getByTestId('note-transcript-toggle').click()
+ } else {
+ if (id === 'summary') {
+ db.prepare('UPDATE notes SET enhanced=NULL, edited=0, mine=? WHERE meeting_id=?').run('Review the revised schedule.', noteId)
+ await s.page.reload()
+ }
+ db.exec("CREATE TRIGGER fail_note_write BEFORE INSERT ON notes BEGIN SELECT RAISE(FAIL, 'Note write failed'); END")
+ if (id === 'note-save') {
+ await selectNoteVersion(s.page, 'mine')
+ await s.page.getByTestId('note-mine').fill('Review the revised schedule.')
+ } else await s.page.evaluate(id => window.yogurt.notes.writeAgain(id), noteId)
+ }
+ const row = s.page.getByTestId(rowId)
+ const name = id === 'upload-read' ? 'Upload a file' : 'Try again'
+ await expect(row).toHaveAttribute('role', 'alert')
+ if (after) await secondaryButton(row, name)
+ else await expect(row.getByRole('button', { name })).toHaveClass(/text-action/)
+ } finally {
+ // The failed edit stays visible until retry. Restore writes so quitting can flush the real draft.
+ db.exec('DROP TRIGGER IF EXISTS fail_note_write')
+ db.close()
+ }
+ if (id === 'note-save') return async () => {
+ await s.page.getByTestId('note-save-retry').click()
+ await expect(s.page.getByTestId('note-save-status')).toHaveAttribute('data-state', 'saved')
+ await expect(s.page.getByTestId('note-mine')).toHaveText('Review the revised schedule.')
+ }
+ }, { env: { YOGURT_FAKE_LLM_MS: '2' } })
+}
+
+scene('18', 'suggested folder hit areas', async s => {
+ await seed(s)
+ await s.page.evaluate(() => window.yogurt.folders.create('Customer'))
+ const chip = s.page.getByTestId('past-note').filter({ hasText: 'Customer review' }).getByTestId('folder-suggestion')
+ await expect(chip).toBeVisible()
+ for (const action of ['cancel', 'confirm']) {
+ const target = chip.getByTestId('folder-suggestion-' + action)
+ await expect(target).toHaveCSS('width', after ? '24px' : '20px')
+ await expect(target).toHaveCSS('height', after ? '24px' : '20px')
+ }
+ await chip.getByTestId('folder-suggestion-confirm').hover()
+})
+
+scene('19', 'section and subsection in a note', async s => {
+ await seed(s)
+ const id = await s.page.evaluate(async () => {
+ const id = (await window.yogurt.meetings.cards({ limit: 1 }))[0].id
+ await window.yogurt.notes.setEnhanced(id, '## Project plan\nThe team will review the drawings on Friday.\n### Next steps\nThe team will confirm the dates.', 1)
+ return id
+ })
+ await s.page.evaluate(id => window.yogurt.nav.go('/note/' + id), id)
+ const editor = s.page.getByTestId('note-enhanced-editor')
+ await expect(editor.locator('h2')).toHaveCSS('font-size', after ? '16px' : '15px')
+ await expect(editor.locator('h3')).toHaveCSS('font-size', after ? '15px' : '15.5px')
+})
diff --git a/app/e2e/libraryChat.spec.ts b/app/e2e/libraryChat.spec.ts
index 387d0bf1..d3ba3c3e 100644
--- a/app/e2e/libraryChat.spec.ts
+++ b/app/e2e/libraryChat.spec.ts
@@ -238,3 +238,25 @@ test('a meeting cited for several of its parts shows one mark, and an answer tha
await expect(page.getByTestId('source-citation')).toHaveCount(0)
} finally { await app.close() }
})
+
+test('Ask retries a failed initial lookup', async () => {
+ const { app, page } = await launch()
+ try {
+ await app.evaluate(({ ipcMain }) => {
+ let first = true
+ ipcMain.removeHandler('conversations:current')
+ ipcMain.handle('conversations:current', () => {
+ if (first) { first = false; throw new Error('Offline fixture') }
+ return 'retry-demo'
+ })
+ ipcMain.removeHandler('conversations:get')
+ ipcMain.handle('conversations:get', () => ({ id: 'retry-demo', title: '', draft: '', chips: [], draftChips: [], firstChips: null, turns: [], waitsForMeeting: false, waitsForModel: false }))
+ })
+ await page.evaluate(() => window.yogurt.nav.go('/chat'))
+ const failure = page.getByTestId('chat-page-load-error')
+ await expect(failure).toContainText("Couldn't load this conversation.")
+ await failure.getByRole('button', { name: 'Try again' }).click()
+ await expect(failure).toHaveCount(0)
+ await expect(page.getByTestId('chat-page-input')).toBeEnabled()
+ } finally { await app.close() }
+})
diff --git a/app/e2e/mcp.spec.ts b/app/e2e/mcp.spec.ts
index 2f95a2f8..88fd59b2 100644
--- a/app/e2e/mcp.spec.ts
+++ b/app/e2e/mcp.spec.ts
@@ -1,6 +1,6 @@
import { _electron as electron, expect, test, type ElectronApplication } from '@playwright/test'
import { spawn, type ChildProcessWithoutNullStreams } from 'node:child_process'
-import { mkdtempSync } from 'node:fs'
+import { mkdirSync, mkdtempSync, rmdirSync } from 'node:fs'
import { tmpdir } from 'node:os'
import { join } from 'node:path'
@@ -69,8 +69,28 @@ test('an AI app on this Mac reads meetings through yogurt-mcp only once Settings
expect(transcript.isError).toBe(false)
expect(transcript.text).toMatch(/^\[\d\d:\d\d\] /)
- // the app goes: Settings says so; turned off again, nothing is read
- await toggle.click()
+ // Block the temporary write in this disposable profile while leaving the saved permission readable.
+ const tempSettings = join(userData, 'settings.json.tmp')
+ mkdirSync(tempSettings)
+ try {
+ await toggle.click()
+ const toast = page.getByTestId('ai-apps-retry-error')
+ await expect(toast).toHaveClass(/app-toast/)
+ await toast.getByRole('button', { name: 'Close' }).click()
+ await expect(toast).toHaveCount(0)
+ await expect(toggle).toHaveAttribute('aria-checked', 'true')
+ await toggle.click()
+ await expect(page.getByTestId('ai-apps-retry')).toBeVisible()
+ await expect(toggle).toHaveAttribute('aria-checked', 'true')
+ expect((await ai.tool('list_meetings')).isError).toBe(false)
+ } finally { rmdirSync(tempSettings) }
+ await page.getByTestId('nav-home').click()
+ await expect(page.getByTestId('home')).toBeVisible()
+ await page.getByTestId('settings-open').click()
+ await expect(toggle).toHaveAttribute('aria-checked', 'true')
+ await page.getByTestId('ai-apps-retry').click()
+ await expect(toggle).toHaveAttribute('aria-checked', 'false')
+ await expect(toggle).toBeEnabled()
expect((await ai.tool('list_meetings')).isError).toBe(true)
ai.close()
await toggle.click()
diff --git a/app/e2e/multiselect.spec.ts b/app/e2e/multiselect.spec.ts
index a543b2ec..b9a9a1fa 100644
--- a/app/e2e/multiselect.spec.ts
+++ b/app/e2e/multiselect.spec.ts
@@ -24,6 +24,7 @@ async function selectFirst(page: Page) {
await expect(menu.getByRole('separator')).toHaveCount(1)
await menu.getByTestId('meeting-select').click()
await expect(row.getByTestId('past-note').locator('.native-meeting-link')).toHaveAttribute('aria-pressed', 'true')
+ await expect(row.getByTestId('meeting-selected')).toBeVisible()
}
for (const theme of ['light', 'dark'] as const) test(`select from the menu, click to add, delete once and undo all in ${theme}`, async () => {
diff --git a/app/e2e/note.spec.ts b/app/e2e/note.spec.ts
index 8a624742..7a38c4e4 100644
--- a/app/e2e/note.spec.ts
+++ b/app/e2e/note.spec.ts
@@ -235,6 +235,15 @@ test('edits to the enhanced notes are saved; Write again asks first, then writes
await page.getByTestId('note-write-again').click()
await expect(page.getByTestId('note-regenerate')).toBeVisible()
await expect(page.getByTestId('note-confirm')).toBeVisible()
+ const sizes = await page.locator('.note-prose').first().evaluate(prose => {
+ const sample = prose.cloneNode(false) as HTMLElement
+ sample.innerHTML = '<h2>Planning</h2><h3>Dates</h3>'
+ prose.parentElement!.append(sample)
+ const values = Array.from(sample.children, child => parseFloat(getComputedStyle(child).fontSize))
+ sample.remove()
+ return values
+ })
+ expect(sizes[0]).toBeGreaterThan(sizes[1])
await expect(page.getByTestId('note-regenerate-input')).toHaveValue('')
await page.getByTestId('note-regenerate-input').press('Enter')
await expect(page.getByTestId('note-enhanced')).toHaveAttribute('data-status', 'writing', { timeout: 30_000 })
diff --git a/app/e2e/onboarding.spec.ts b/app/e2e/onboarding.spec.ts
index 7118301a..187a2f76 100644
--- a/app/e2e/onboarding.spec.ts
+++ b/app/e2e/onboarding.spec.ts
@@ -144,6 +144,12 @@ test('every screen keeps Allow and the quiet Not now action centered in the same
await expect(page.getByTestId('step-later')).toHaveClass(/text-action/)
await expect(page.getByTestId('step-later')).toHaveCSS('font-size', '13px')
await expect(page.getByTestId('step-later')).toHaveCSS('min-width', '112px')
+ await app.evaluate(({ BrowserWindow }) => BrowserWindow.getAllWindows()[0].webContents.setZoomFactor(2))
+ await expect(page.locator('.ob-stage')).toBeHidden()
+ await expect(page.getByTestId('step-allow')).toBeInViewport()
+ await expect(page.getByTestId('step-later')).toBeInViewport()
+ expect(await page.locator('.ob-side').evaluate(el => el.scrollWidth <= el.clientWidth)).toBe(true)
+ await app.evaluate(({ BrowserWindow }) => BrowserWindow.getAllWindows()[0].webContents.setZoomFactor(1))
await expect(page.getByTestId('step-later')).toHaveCSS('padding-inline-start', '19px')
await expect(page.getByTestId('step-later')).toHaveCSS('line-height', await page.getByTestId('step-allow').evaluate(el => getComputedStyle(el).lineHeight))
await page.getByTestId('step-later').hover()
diff --git a/app/e2e/rewriteConfirm.spec.ts b/app/e2e/rewriteConfirm.spec.ts
index df2cd64c..8da60f8b 100644
--- a/app/e2e/rewriteConfirm.spec.ts
+++ b/app/e2e/rewriteConfirm.spec.ts
@@ -100,6 +100,7 @@ test('explicit rewrite confirmation closes before a delayed save; a failed save
await trigger.click()
await page.getByTestId('note-write-again').click()
await expect(page.getByTestId('note-confirm')).toBeVisible()
+ await expect(page.getByTestId('note-confirm')).toHaveCSS('white-space', 'normal')
await page.getByTestId('note-write-again-confirm').click()
await expect.poll(() => app.evaluate(() => (globalThis as unknown as { __saveRequested: boolean }).__saveRequested)).toBe(true)
await expect(page.getByTestId('note-confirm')).toHaveCount(0)
diff --git a/app/e2e/rewriteRecovery.spec.ts b/app/e2e/rewriteRecovery.spec.ts
index 18f1d8ea..84ebf3ba 100644
--- a/app/e2e/rewriteRecovery.spec.ts
+++ b/app/e2e/rewriteRecovery.spec.ts
@@ -42,10 +42,10 @@ test('a failed rewrite keeps the previous edited Enhanced note visible, copyable
await expect(page.getByTestId('note-enhanced-rewrite-failed')).toBeVisible()
await expect(page.getByTestId('note-enhanced-rewrite-failed')).toHaveAttribute('role', 'alert')
const retry = page.getByTestId('note-enhanced-rewrite-failed').getByRole('button', { name: 'Try again' })
- await expect(retry).toHaveClass('text-action')
- await expect(retry).toHaveCSS('background-color', 'rgba(0, 0, 0, 0)')
+ await expect(retry).toHaveClass('workspace-button')
+ await expect(retry).not.toHaveCSS('background-color', 'rgba(0, 0, 0, 0)')
await retry.hover()
- expect(await retry.evaluate((el) => getComputedStyle(el).color)).not.toBe(await page.getByText("Yogurt couldn't regenerate the summary, so your previous version is still shown.").evaluate((el) => getComputedStyle(el).color))
+ await expect(retry).toHaveCSS('text-decoration-line', 'none')
await expect(page.getByTestId('note-enhanced-editor')).toHaveText(prior)
await page.getByTestId('share-button').click()
await page.getByTestId('share-copy-summary').click()
diff --git a/app/e2e/share.spec.ts b/app/e2e/share.spec.ts
index 38da50c2..6b18c959 100644
--- a/app/e2e/share.spec.ts
+++ b/app/e2e/share.spec.ts
@@ -176,3 +176,25 @@ test('empty and failed copy feedback never signals success', async () => {
await expect(copy).toHaveAttribute('data-state', 'idle')
} finally { await app.close() }
})
+
+test('a failed export stays visible and can be retried', async () => {
+ const { app, page } = await launch()
+ try {
+ await finished(app, page)
+ await app.evaluate(({ ipcMain }) => {
+ let calls = 0
+ ipcMain.removeHandler('share:save')
+ ipcMain.handle('share:save', () => ++calls <= 2 ? 'failed' : 'saved')
+ })
+ await page.getByTestId('share-button').click()
+ await page.getByTestId('share-export').click()
+ const toast = page.getByTestId('share-export-error')
+ await expect(toast).toHaveClass(/app-toast/)
+ await toast.getByRole('button', { name: 'Close' }).click()
+ await expect(toast).toHaveCount(0)
+ await page.getByTestId('share-button').click()
+ await page.getByTestId('share-export').click()
+ await toast.getByRole('button', { name: 'Try again' }).click()
+ await expect(page.getByTestId('share-said')).toHaveText('Saved')
+ } finally { await app.close() }
+})
diff --git a/app/e2e/transcript.spec.ts b/app/e2e/transcript.spec.ts
index 09911522..072d4b72 100644
--- a/app/e2e/transcript.spec.ts
+++ b/app/e2e/transcript.spec.ts
@@ -367,6 +367,9 @@ test('a side that ends early, is missing, or cannot be read: the other still pla
await setTrack(app, id, 'me', 'garbage')
await reopen(page).catch(() => {})
await expect(page.getByTestId('player-note')).toHaveText("This recording can't be played.")
+ await expect(page.getByTestId('player-retry')).toBeEnabled()
+ await page.getByTestId('player-open-transcript').click()
+ await expect(page.getByTestId('transcript-line').first()).toBeFocused()
await expect(page.getByTestId('player-toggle')).toHaveCount(0)
} finally { await app.close() }
})
diff --git a/app/e2e/uploadTime.spec.ts b/app/e2e/uploadTime.spec.ts
new file mode 100644
index 00000000..1c9ff5ee
--- /dev/null
+++ b/app/e2e/uploadTime.spec.ts
@@ -0,0 +1,36 @@
+import { _electron as electron, expect, test } from '@playwright/test'
+import { mkdtempSync, writeFileSync } from 'node:fs'
+import { tmpdir } from 'node:os'
+import { join } from 'node:path'
+
+test('the native clock accepts only a valid time and keeps an incomplete upload open', async () => {
+ const dir = mkdtempSync(join(tmpdir(), 'yogurt-upload-time-'))
+ const file = join(dir, 'Planning.wav')
+ const wav = Buffer.alloc(44 + 32000)
+ wav.write('RIFF'); wav.writeUInt32LE(wav.length - 8, 4); wav.write('WAVEfmt ', 8)
+ wav.writeUInt32LE(16, 16); wav.writeUInt16LE(1, 20); wav.writeUInt16LE(1, 22)
+ wav.writeUInt32LE(16000, 24); wav.writeUInt32LE(32000, 28); wav.writeUInt16LE(2, 32)
+ wav.writeUInt16LE(16, 34); wav.write('data', 36); wav.writeUInt32LE(32000, 40)
+ writeFileSync(file, wav)
+ const app = await electron.launch({ args: [join(import.meta.dirname, '../out/main/index.js')], env: { ...process.env, YOGURT_FAKE: '1', YOGURT_USER_DATA: dir } })
+ try {
+ const page = await app.firstWindow()
+ await app.evaluate(({ dialog }, path) => { Object.assign(dialog, { showOpenDialog: async () => ({ canceled: false, filePaths: [path] }) }) }, file)
+ await page.getByTestId('recording-choices').click()
+ await page.getByTestId('recording-upload').click()
+ const time = page.getByLabel('Start time', { exact: true })
+ await expect(time).toHaveAttribute('type', 'time')
+ expect(await time.evaluate((el: HTMLInputElement) => {
+ const copy = el.cloneNode() as HTMLInputElement
+ copy.value = '25:30'
+ return copy.value
+ })).toBe('')
+ await time.fill('')
+ await page.getByRole('button', { name: 'Transcribe' }).click()
+ await expect(time).toHaveValue('')
+ await expect(time).toHaveAttribute('aria-invalid', 'true')
+ await time.fill('08:30')
+ await time.press('Tab')
+ await expect(time).not.toHaveAttribute('aria-invalid', 'true')
+ } finally { await app.close() }
+})
diff --git a/app/src/main/calendar.ts b/app/src/main/calendar.ts
index 663a522e..b762a9f6 100644
--- a/app/src/main/calendar.ts
+++ b/app/src/main/calendar.ts
@@ -1,6 +1,7 @@
import { execFile, type ChildProcess } from 'node:child_process'
import { existsSync } from 'node:fs'
import { join } from 'node:path'
+import { t } from '../shared/i18n'
import { helperFile } from '../shared/platform'
import type { Person } from './store'
import type { Settings } from './settings'
@@ -71,7 +72,7 @@ export const setCalendarSupported = (on: boolean) => { supported = on; if (!on)
* Windows and Linux: the calendar comes from calendar links (calendarLink/), which answer what the Mac helper answers
* here (status, calendars, events in its shape), so the rest of Yogurt never knows the difference. null: the helper.
*/
-export type CalendarLinkSource = { status(): 'granted' | 'notDetermined'; calendars(): Promise<CalendarSource[]>; events(fromMs: number, toMs: number): Promise<unknown[]> }
+export type CalendarLinkSource = { status(): 'granted' | 'notDetermined'; calendars(): Promise<CalendarSource[]>; events(fromMs: number, toMs: number, unavailable?: string[], hidden?: string[]): Promise<unknown[]> }
let links: CalendarLinkSource | null = null
/** a Mac: links are added next to the Mac's own calendars (Settings), never instead of them */
let alongside = false
@@ -158,13 +159,18 @@ export function parseEvents(raw: unknown, hidden: string[] = []): CalEvent[] {
}
/** Events between two times. No Calendar access, or a helper that fails: none, never a crash. */
-export async function upcoming(fromMs: number, toMs: number, keep?: 'link-event' | ((event: CalEvent) => boolean)): Promise<CalEvent[]> {
+export async function upcoming(fromMs: number, toMs: number, keep?: 'link-event' | ((event: CalEvent) => boolean), unavailable?: string[]): Promise<CalEvent[]> {
if (await refreshCalendarStatus() !== 'granted') return []
try {
const fromMac = !links || (alongside && macStatus === 'granted')
- const mac = fromMac ? await helper(['events', new Date(fromMs).toISOString(), new Date(toMs).toISOString()]) : []
- const raw = [...(links ? await links.events(fromMs, toMs) : []), ...(Array.isArray(mac) ? mac : [])]
+ const mac = fromMac ? await helper(['events', new Date(fromMs).toISOString(), new Date(toMs).toISOString()]).catch(() => {
+ macStatus = 'error'
+ status = overall(macStatus)
+ return []
+ }) : []
+ if (alongside && macStatus === 'error' && links?.status() === 'granted') unavailable?.push(t('Calendar'))
const selection = calendarSelection()
+ const raw = [...(links ? await links.events(fromMs, toMs, unavailable, selection.hiddenCalendarIds) : []), ...(Array.isArray(mac) ? mac : [])]
const events = parseEvents(raw, selection.hiddenCalendarIds)
if (keep === 'link-event' || selection.hideEventsWithoutCallLink !== true) return events
return events.filter(event => event.url !== null || keep?.(event))
diff --git a/app/src/main/calendarLink/index.ts b/app/src/main/calendarLink/index.ts
index 4a7adb61..6c53834c 100644
--- a/app/src/main/calendarLink/index.ts
+++ b/app/src/main/calendarLink/index.ts
@@ -34,12 +34,15 @@ export function createCalendarLinks(d: {
const urlOf = (l: Stored) => { try { return d.open(l.url) } catch { return null } }
/** the feed's text: the cached copy for five minutes, a fresh one after, the last good copy when that fails */
- async function feed(l: Stored): Promise<IcsFeed | null> {
+ async function feed(l: Stored, unavailable?: string[]): Promise<IcsFeed | null> {
const hit = cache.get(l.id)
const parsed = (c: { text: string; feed?: IcsFeed }) => (c.feed ??= icsFeed(c.text, { id: l.id, name: l.name }))
if (hit && now() - hit.at < REFRESH_MS) return parsed(hit)
const url = urlOf(l)
- const last = () => (hit ? parsed(hit) : null)
+ const last = () => {
+ unavailable?.push(l.name)
+ return hit ? parsed(hit) : null
+ }
if (!url) return last()
try {
const t = await d.get(url)
@@ -79,12 +82,12 @@ export function createCalendarLinks(d: {
/** one per link, as calendar.ts's calendars() gives the Mac's */
async calendars() { return stored().map((l) => ({ id: l.id, name: l.name, source: l.host })) },
/** every link's events between two times; a link that can't be read gives none, never an error */
- async events(fromMs: number, toMs: number): Promise<RawEvent[]> {
- const all = await Promise.all(stored().map(async (l) => {
+ async events(fromMs: number, toMs: number, unavailable?: string[], hidden: string[] = []): Promise<RawEvent[]> {
+ const all = await Promise.all(stored().filter(l => !hidden.includes(l.id)).map(async (l) => {
try {
- const f = await feed(l)
+ const f = await feed(l, unavailable)
return f ? f.events(fromMs, toMs) : []
- } catch { return [] }
+ } catch { unavailable?.push(l.name); return [] }
}))
return all.flat()
},
diff --git a/app/src/main/index.ts b/app/src/main/index.ts
index eaab87a8..627edc2f 100644
--- a/app/src/main/index.ts
+++ b/app/src/main/index.ts
@@ -259,8 +259,8 @@ let relaunched = 0
/** fake mode: how many times Yogurt would have restarted to install a new version */
let updateRestarts = 0
-async function readCalendar(from: number, to: number, keep?: Parameters<typeof upcoming>[2]): Promise<CalEvent[]> {
- const events = await upcoming(from, to, keep)
+async function readCalendar(from: number, to: number, keep?: Parameters<typeof upcoming>[2], unavailable?: string[]): Promise<CalEvent[]> {
+ const events = await upcoming(from, to, keep, unavailable)
refreshEventSnapshots(events)
return events
}
@@ -273,10 +273,10 @@ async function comingUp(): Promise<CalEvent[]> {
}
/** The events on the day of this time, earliest first */
-async function eventsOn(at: number, purpose?: 'link-event'): Promise<CalEvent[]> {
+async function eventsOn(at: number, purpose?: 'link-event', unavailable?: string[]): Promise<CalEvent[]> {
const from = new Date(at); from.setHours(0, 0, 0, 0)
const to = new Date(from); to.setDate(to.getDate() + 1)
- return (await readCalendar(from.getTime(), to.getTime(), purpose ?? (event => eventIds(event).some(id => !!storeRef?.meetingForEvent(id))))).sort((a, b) => a.start - b.start)
+ return (await readCalendar(from.getTime(), to.getTime(), purpose ?? (event => eventIds(event).some(id => !!storeRef?.meetingForEvent(id))), unavailable)).sort((a, b) => a.start - b.start)
}
/** the Mac's full name: who "You" is unless Settings says otherwise (fake mode: a fixed one) */
@@ -1026,12 +1026,13 @@ app.whenReady().then(() => {
})
ipcMain.handle('calendar:day', async (_e, at: unknown, purpose?: unknown) => {
if (typeof at !== 'number' || !Number.isFinite(at) || !Number.isFinite(new Date(at).getTime())) return { status: 'error', events: [] }
- const events = (await eventsOn(at, purpose === 'link-event' ? 'link-event' : undefined)).map((event) => {
+ const unavailable: string[] = []
+ const events = (await eventsOn(at, purpose === 'link-event' ? 'link-event' : undefined, unavailable)).map((event) => {
const meeting = eventIds(event).map((id) => store.meetingForEvent(id)).find(Boolean)
const note = meeting && withStopState(meeting)
return { ...event, attendees: resolvePeople(store.db, event.attendees), ...(note ? { note: { id: note.id, state: note.state, ...(note.source ? { source: note.source } : {}) } } : {}) }
})
- return { status: calendarStatus(), events }
+ return { status: calendarStatus(), events, unavailable }
})
ipcMain.handle('calendar:coming-up', async () => {
const events = (await comingUp()).map(event => ({ ...event, attendees: resolvePeople(store.db, event.attendees) }))
diff --git a/app/src/main/preferences.ts b/app/src/main/preferences.ts
index 3ec52ffc..f63e6cd5 100644
--- a/app/src/main/preferences.ts
+++ b/app/src/main/preferences.ts
@@ -81,8 +81,8 @@ export function hookPreferences(d: { file: string; permissions: Permissions; ask
})
ipcMain.handle('settings:theme', (_e, v: unknown) => {
if (v !== 'light' && v !== 'dark' && v !== 'system') return
- nativeTheme.themeSource = v
updateSettings(d.file, { theme: v === 'system' ? undefined : v })
+ nativeTheme.themeSource = v
})
// on is the default, so only off is written down
ipcMain.handle('settings:auto-stop', (_e, on: unknown) => {
diff --git a/app/src/renderer/src/App.tsx b/app/src/renderer/src/App.tsx
index 7108136b..e1228f1d 100644
--- a/app/src/renderer/src/App.tsx
+++ b/app/src/renderer/src/App.tsx
@@ -1,3 +1,4 @@
+import { ReadError } from './components/InlineError'
import { LoadingContent } from './components/LoadingContent'
import { MeetingListLoading } from './screens/Home'
import { StartRecording } from './components/StartRecording'
@@ -17,10 +18,12 @@ import { ChatPage } from './screens/ChatPage'
import { BootScreen } from './components/BootScreen'
import { bootHoldMs } from '../../shared/onboarding'
import { Folder } from './screens/Folder'
-import { useFolders } from './folders'
+import { useFolderRead } from './folders'
import type { LibrarySource, MeetingView, OnboardingPlan, SetupState } from '../../shared/types'
export function App() {
+ const [setupFailed, setSetupFailed] = useState(false)
+ const [setupAttempt, setSetupAttempt] = useState(0)
const [setup, setSetup] = useState<SetupState>()
// where the app was told to go, e.g. /note/<id>
const [route, setRouteNow] = useState('')
@@ -75,10 +78,11 @@ export function App() {
return off
}, [])
useEffect(() => {
- const stop = window.yogurt.setup.onState(setSetup)
- void window.yogurt.setup.state().then((s) => setSetup((cur) => cur ?? s))
- return stop
- }, [])
+ let active = true
+ const stop = window.yogurt.setup.onState(s => { setSetupFailed(false); setSetup(s) })
+ void window.yogurt.setup.state().then(s => { if (active) { setSetupFailed(false); setSetup(cur => cur ?? s) } }, () => { if (active) setSetupFailed(true) })
+ return () => { active = false; stop() }
+ }, [setupAttempt])
// first run: the intro and the questions still to ask; nothing on later launches
const [plan, setPlan] = useState<OnboardingPlan>()
@@ -121,7 +125,7 @@ export function App() {
const openShortcuts = () => { setSearching(false); setShortcuts(true) }
const [searching, setSearching] = useState(false)
const [settingsRevision, setSettingsRevision] = useState(0)
- const folders = useFolders()
+ const { folders, failed: foldersFailed, retry: retryFolders } = useFolderRead()
const [suggestedFolders, setSuggestedFolders] = useState<Record<string, string>>({})
const dismissFolderSuggestion = (id: string) => setSuggestedFolders((current) => {
const next = { ...current }; delete next[id]; return next
@@ -171,7 +175,7 @@ export function App() {
}
// still starting, or checking what is on disk: the launch screen, so a finished install never flashes the first-run screen
- if (!setup || !plan || holding) return <div data-testid="app-shell" className="h-full bg-bg"><TitleBar /><BootScreen /></div>
+ if (!setup || !plan || holding) return <div data-testid="app-shell" className="flex h-full flex-col bg-bg"><TitleBar />{!setup && setupFailed ? <ReadError testId="setup-read-error" retry={() => setSetupAttempt(n => n + 1)} /> : <BootScreen />}</div>
const noteId = route.startsWith('/note/') ? route.slice(6) : null
const settings = route === '/settings' || route.startsWith('/settings/')
const trash = route === '/trash'
@@ -180,7 +184,7 @@ export function App() {
const folder = folderId ? folders?.find((s) => s.id === folderId) : undefined
const suggestedFolder = noteId ? folders?.find((s) => s.id === suggestedFolders[noteId]) : undefined
// a folder's page waits for the list; a folder that is gone shows Meetings
- const folderScreen = folderId && (folder ? <Folder key={folder.id} folder={folder} open={open} onStarted={(id) => setSuggestedFolders((current) => ({ ...current, [id]: folder.id }))} /> : !folders ? <div className="native-folder"><StartRecording /><div className="native-library"><LoadingContent pending testId="meetings-loading" skeleton={<><div className="folder-page-heading"><h1><span className="loading-bar" style={{ width: 140 }} /></h1></div><MeetingListLoading showFolders={false} /></>} /></div></div> : null)
+ const 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 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/Agenda.tsx b/app/src/renderer/src/components/Agenda.tsx
index 0840b1c7..a776f175 100644
--- a/app/src/renderer/src/components/Agenda.tsx
+++ b/app/src/renderer/src/components/Agenda.tsx
@@ -1,4 +1,5 @@
import { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react'
+import { InlineError } from './InlineError'
import { ScrollFade } from './ScrollFade'
import { LoadingContent } from './LoadingContent'
import { LevelBars } from './LevelBars'
@@ -20,7 +21,7 @@ type Actions = {
onStart: (id: string) => Promise<void>
onOpen: (id: string) => void
}
-type Day = { at: number; status: CalendarStatus; events: AgendaEvent[] }
+type Day = { at: number; status: CalendarStatus; events: AgendaEvent[]; unavailable?: string[] }
type Inspection = { at: number; id: string; pointer: boolean }
let lastView: { selected: number; week: number } | undefined
@@ -96,7 +97,10 @@ export function Agenda({ revision, recording, onStart, onOpen, jumpTo }: Actions
const calendar = loaded?.at === selected ? loaded : days.current.get(selected)
const scrollKey = `agenda/${selected}`
const scroll = useScrollMemory<HTMLDivElement>(scrollKey, !!calendar)
+ const narrowScroll = useScrollMemory<HTMLElement>(scrollKey + '/narrow', !!calendar)
useEffect(() => { lastView = { selected, week: weekAnchor } }, [selected, weekAnchor])
+ const unavailable = calendar?.unavailable?.length ? calendar.unavailable : calendar?.status === 'error' ? [t('Calendar')] : []
+ const failedCalendar = unavailable.length ? t("Can't read {calendar}", { calendar: new Intl.ListFormat(language()).format(unavailable) }) : undefined
const events = calendar?.events ?? []
const primary = pickNext(events, now)
const defaultEvent = relativeDay === 0 ? events.find(e => e.id === primary) ?? events.find(e => e.start > now) ?? events.at(-1) : events[0]
@@ -111,15 +115,17 @@ export function Agenda({ revision, recording, onStart, onOpen, jumpTo }: Actions
const jumping = lastJump.current !== jump
lastJump.current = jump
// Restore manual reading positions; only a fresh day or Today explicitly jumps to the next meeting.
- if (!jumping && rememberedScroll(scrollKey) !== undefined) return
+ const narrow = narrowScroll.current && getComputedStyle(narrowScroll.current).overflowY === 'auto'
+ const viewport = narrow ? narrowScroll.current! : scroll.current
+ if (!jumping && rememberedScroll(narrow ? scrollKey + '/narrow' : scrollKey) !== undefined) return
const row = scroll.current.querySelector<HTMLElement>('[data-agenda-default="true"]')
- if (row) scroll.current.scrollTop += row.getBoundingClientRect().top - scroll.current.getBoundingClientRect().top - 16
+ if (row) viewport.scrollTop += row.getBoundingClientRect().top - viewport.getBoundingClientRect().top - 16
}, [calendar, defaultEvent, selected, jump, scrollKey, scroll])
const step = (offset: -1 | 1) => {
const next = stepAgendaDay(selected, weekAnchor, offset)
setSelected(next.selected); setWeekAnchor(next.weekAnchor); setInspected(undefined)
}
- return <aside className="native-agenda" aria-label={t('Agenda')}>
+ return <aside ref={narrowScroll} className="native-agenda" aria-label={t('Agenda')}>
<div className="agenda-header">
<h2>{t('Agenda')}</h2>
<button className="workspace-button" onClick={() => { const at = shiftDay(Date.now(), 0); setSelected(at); setWeekAnchor(at); setInspected(undefined); setJump(n => n + 1) }}>{t('Today')}</button>
@@ -140,16 +146,24 @@ export function Agenda({ revision, recording, onStart, onOpen, jumpTo }: Actions
<div className="agenda-day"><h3>{relativeDay === 0 ? t('Today') : relativeDay === -1 ? t('Tomorrow') : chosen.toLocaleDateString(language(), { weekday: 'long' })}</h3><span>{chosen.toLocaleDateString(language(), { month: 'short', day: 'numeric' })}</span></div>
<ScrollFade enabled={!!calendar}><div ref={scroll} className="agenda-scroll" data-testid="agenda-scroll">
<LoadingContent key={selected} pending={!calendar} skeleton={<div className="agenda-events">{[0, 1].map(n => <Event key={n} loading event={{ id: String(n), title: '', url: null, start: selected, end: selected, attendees: [] }} me="" now={now} near={false} initial={false} selected={false} onInspect={() => {}} />)}</div>}>
- {calendar && (calendar.status !== 'granted' ? <section className="agenda-status" data-testid={calendar.status === 'error' ? 'calendar-error' : 'calendar-off'}>
+ {calendar && (calendar.status !== 'granted' && calendar.status !== 'error' ? <section className="agenda-status" data-testid="calendar-off">
<CalendarDays size={22} aria-hidden="true" />
- <h3>{calendar.status === 'error' ? t("Yogurt couldn't read your calendar") : calendar.status === 'denied' ? t('Calendar access is off') : t('See your meetings here')}</h3>
- <p>{calendar.status === 'error' ? t('Try reading the calendars on this Mac again.') : (window.yogurt.capabilities.calendarLink ? t('Connect a calendar to see your meetings.') : t('Connect the calendars on this Mac to see your upcoming meetings.'))}</p>
- <button className="workspace-button" onClick={calendar.status === 'error' ? () => void load() : connect}>{calendar.status === 'error' ? t('Try again') : calendar.status === 'denied' ? t('Open System Settings') : t('Connect calendar')}</button>
+ <h3>{calendar.status === 'denied' ? t('Calendar access is off') : t('See your meetings here')}</h3>
+ <p>{window.yogurt.capabilities.calendarLink ? t('Connect a calendar to see your meetings.') : t('Connect the calendars on this Mac to see your upcoming meetings.')}</p>
+ <button className="workspace-button" onClick={connect}>{calendar.status === 'denied' ? t('Open System Settings') : t('Connect calendar')}</button>
</section>
- : <div data-testid="coming-up" className="agenda-events">
- {calendar.events.length === 0 ? <div className="agenda-status"><CalendarDays size={18} strokeWidth={1.75} aria-hidden="true" /><h3>{t('No meetings')}</h3></div>
+ : <>
+ {failedCalendar && calendar.events.length > 0 && <InlineError testId="calendar-error" retry={() => void load()}>
+ <span>{failedCalendar}</span>
+ </InlineError>}
+ <div data-testid="coming-up" className="agenda-events">
+ {calendar.events.length === 0 ? <div className="agenda-status" data-testid={failedCalendar ? 'calendar-error' : undefined} role={failedCalendar ? 'alert' : undefined}>
+ <CalendarDays size={18} strokeWidth={1.75} aria-hidden="true" />
+ <h3>{failedCalendar ?? t('No meetings')}</h3>
+ {failedCalendar && <button type="button" className="workspace-button" onClick={() => void load()}>{t('Try again')}</button>}
+ </div>
: calendar.events.map((event) => <Event key={event.id} event={event} me={me} now={now} near={event.id === primary} initial={event.id === defaultEvent?.id} selected={event.id === detail?.id} onInspect={(button, pointer) => { opener.current = button; setInspected({ at: selected, id: event.id, pointer }) }} recording={recording} />)}
- </div>)}
+ </div></>)}
</LoadingContent></div></ScrollFade>
{calendar?.status === 'granted' && shownDetail && <EventDetails motionProps={presence.props} key={shownDetail.id} event={shownDetail} recording={recording} onStart={onStart} now={now} onOpen={onOpen} onClose={closeDetails} opener={opener.current} />}
</aside>
diff --git a/app/src/renderer/src/components/AskConversation.tsx b/app/src/renderer/src/components/AskConversation.tsx
index 183d98a9..68ad3c3e 100644
--- a/app/src/renderer/src/components/AskConversation.tsx
+++ b/app/src/renderer/src/components/AskConversation.tsx
@@ -1,3 +1,4 @@
+import { InlineError } from './InlineError'
import { useEffect, useLayoutEffect, useRef, useState, type KeyboardEvent } from 'react'
import { createPortal } from 'react-dom'
import { Popover } from '@base-ui/react/popover'
@@ -38,6 +39,8 @@ export function AskConversation({ id, pendingDraftKey, initial, loadError = fals
const [text, setText] = useState((pendingDraftKey ? drafts.get(pendingDraftKey) : undefined) ?? drafts.get(id) ?? initial?.draft ?? '')
const edited = useRef(false)
const [error, setError] = useState(false)
+ const [readFailed, setReadFailed] = useState(false)
+ const retryRead = useRef<() => void>(() => {})
const [sending, setSending] = useState(false)
const pendingQuestion = useRef<string>(undefined)
const [changing, setChanging] = useState(false)
@@ -84,6 +87,7 @@ export function AskConversation({ id, pendingDraftKey, initial, loadError = fals
const scroll = useScrollMemory<HTMLDivElement>(scrollKey, !!chat)
const content = useRef<HTMLDivElement>(null)
const follow = useFollowLatest(scroll, content, !!chat, rememberedScroll(scrollKey) === undefined)
+ const loadingChat = !chat && !error && !readFailed && !loadError
const prefix = panel ? 'chat' : 'chat-page'
useEffect(() => {
if (!id) return
@@ -98,25 +102,28 @@ export function AskConversation({ id, pendingDraftKey, initial, loadError = fals
if (drafts.get(id) === pending) drafts.delete(id)
}).catch(() => { if (active) setError(true) })
}
- const off = window.yogurt.conversations.onChange(v => { if (v.id === id) { revision++; setChat(v) } })
+ const off = window.yogurt.conversations.onChange(v => { if (v.id === id) { revision++; setReadFailed(false); setChat(v) } })
const load = (first = false) => {
+ setReadFailed(false)
const request = ++revision
void window.yogurt.conversations.get(id).then(v => {
if (!active) return
if (!v) throw new Error('Conversation not found')
- if (request === revision) setChat(v)
+ if (request !== revision) return
+ setChat(v)
if (first) {
if (!initial && !edited.current) setText(drafts.get(id) ?? v.draft)
}
}).catch(() => {
if (active && request === revision) {
- setError(true)
+ setReadFailed(true)
if (pendingQuestion.current !== undefined) { pendingQuestion.current = undefined; setSending(false) }
}
})
}
const offMeetings = window.yogurt.meetings.onChange(() => load())
const offFolders = window.yogurt.folders.onChange(() => load())
+ retryRead.current = () => load(true)
load(true)
return () => { active = false; off(); offMeetings(); offFolders() }
}, [id])
@@ -214,7 +221,7 @@ export function AskConversation({ id, pendingDraftKey, initial, loadError = fals
}).catch(() => { saveText(q); setError(true) }).finally(() => setSending(false))
}
const send = (q: string) => {
- if (!q.trim() || sending || changing || answering || loadError || (!chat && (!panel || error))) return
+ if (!q.trim() || sending || changing || answering || loadError || readFailed || (!chat && (!panel || error))) return
keepTyping()
follow.resume(); setSending(true); setError(false); setMention(undefined); setSelector(undefined)
// Typing is available before the conversation loads; Enter must survive that handoff too.
@@ -293,7 +300,7 @@ export function AskConversation({ id, pendingDraftKey, initial, loadError = fals
<div className="ask-thread-wrap">
<ScrollFade><div className={`ask-thread${panel ? " chat-history" : ""}${unsent ? ' ask-thread-empty' : ''}`} ref={scroll}>
<div ref={content} className="ask-thread-content">
- <LoadingContent pending={!chat && !error} skeleton={<Loading layout="chat" testId="chat-thread-loading" />}>
+ <LoadingContent pending={loadingChat} skeleton={<Loading layout="chat" testId="chat-thread-loading" />}>
{!landing && turns.map(turn => <Turn key={turn.id} showCopy={turn === last} turn={turn} chat={chat!} panel={panel} onSource={onSource} onRetry={() => send(turn.question)} />)}
{panel && suggestions}</LoadingContent>
</div>
@@ -301,8 +308,11 @@ export function AskConversation({ id, pendingDraftKey, initial, loadError = fals
{follow.behind && <button className="workspace-button workspace-icon chat-latest" data-testid="chat-latest" aria-label={t('Back to latest')} onClick={follow.latest}><ArrowDown size={15} /></button>}
</div>
<div className={`ask-composer${panel ? ' chat-composer' : ''}`}>
+ {readFailed && <InlineError testId="conversation-read-error"><span>{t("Couldn't load this conversation.")}</span>
+ <button className="workspace-button" data-testid="conversation-load-retry" onClick={() => retryRead.current()}>{t('Try again')}</button>
+ </InlineError>}
{error && <p data-testid={panel ? "chat-send-error" : "chat-page-error"} role="alert" className="chat-error">{t("Couldn't save your changes")}</p>}
- <LoadingContent pending={!panel && !chat && !error} onReady={() => { if (chat) input.current?.focus({ preventScroll: true }) }} testId={landing ? "chat-loading" : undefined}><form ref={composer} className="ask-box" data-busy={busy || undefined} data-testid={`${prefix}-box`} onSubmit={e => { e.preventDefault(); send(text) }} onBlur={e => { if (!e.currentTarget.contains(e.relatedTarget)) setMention(undefined) }}>
+ <LoadingContent pending={!panel && loadingChat} onReady={() => { if (chat) input.current?.focus({ preventScroll: true }) }} testId={landing ? "chat-loading" : undefined}><form ref={composer} className="ask-box" data-busy={busy || undefined} data-testid={`${prefix}-box`} onSubmit={e => { e.preventDefault(); send(text) }} onBlur={e => { if (!e.currentTarget.contains(e.relatedTarget)) setMention(undefined) }}>
<div className="ask-field">
<textarea autoFocus={panel} ref={input} id={panel ? 'meeting-question' : 'library-question'} data-testid={`${prefix}-input`} rows={1} maxLength={4000}
placeholder={landing ? undefined : panel ? t('Ask anything') : t('Ask about your meetings')} aria-label={panel ? t('Ask anything') : t('Ask about your meetings')} value={text} disabled={!panel && !chat} readOnly={sending || changing}
@@ -363,7 +373,7 @@ function Turn({ turn, chat, panel, showCopy, onSource, onRetry }: { showCopy: bo
void navigator.clipboard.writeText(turn.answer).then(() => { setCopied(true); setFailed(false) }).catch(() => setFailed(true))
}}><Swap show={copied ? 'done' : 'copy'} options={{ copy: <Copy size={13} />, done: <Check size={13} /> }} /><SwapText text={copied ? t('Copied') : t('Copy')} widest={t('Copied')} /></button>{turn.scope && <AnswerScope chips={turn.scope} />}<span role="status" className={failed ? 'text-danger' : 'sr-only'}>{failed ? t("Yogurt couldn't copy.") : copied ? t('Copied') : ''}</span></div>}
{turn.status === 'stopped' && <p className="text-xs text-muted">{answer ? t('Stopped') : t('Stopped before answering')}</p>}
- {turn.status === 'failed' && <p role="alert">{t("Yogurt couldn't answer that.")} <button className="ghost-btn" onClick={onRetry}>{t('Try again')}</button></p>}
+ {turn.status === 'failed' && <InlineError testId="chat-answer-error"><span>{t("Yogurt couldn't answer that.")}</span><button type="button" className="workspace-button" onClick={onRetry}>{t('Try again')}</button></InlineError>}
</div>
}
diff --git a/app/src/renderer/src/components/AudioUpload.tsx b/app/src/renderer/src/components/AudioUpload.tsx
index 89bfef83..ed2df544 100644
--- a/app/src/renderer/src/components/AudioUpload.tsx
+++ b/app/src/renderer/src/components/AudioUpload.tsx
@@ -21,7 +21,10 @@ export function AudioUploadDialog({ file, durationMs, status, closing, onStart,
<form onSubmit={e=>{e.preventDefault();if(!busy){if(durationMs==null)onInspect?.();else onStart(file.title,at)}}}>
<div className="audio-upload-fields">
<p className="audio-upload-file">{reading?<Loader size={16} aria-hidden="true"/>:<FileAudio size={16} aria-hidden="true"/>}<span title={file.name}>{file.name}</span></p>
- {durationMs!=null&&<AudioUploadWhen disabled={busy} at={at} durationMs={durationMs} onChange={setAt}/>}
+ {durationMs!=null&&<div className="audio-upload-when">
+ <label htmlFor="upload-start-time">{t('Start time')}</label>
+ <AudioUploadWhen key={file.token} disabled={busy} at={at} durationMs={durationMs} onChange={setAt}/>
+ </div>}
{status?.phase==='error'&&<p className="text-xs text-danger" role="alert">{status.error==='busy'?t('Finish recording before uploading a file.'):status.error==='format'?t('This audio format is not supported.'):t("Yogurt couldn't read this audio file.")}</p>}
</div>
<div className="modal-actions audio-upload-actions"><button type="button" className="ghost-btn" data-dialog-cancel disabled={!!closing||status?.phase==='done'||status?.phase==='cancelling'} onClick={onCancel}>{t('Cancel')}</button>{!reading&&<button type="submit" disabled={busy} aria-busy={busy} className="workspace-button primary audio-upload-submit"><span className="audio-upload-submit-label">{status?.phase==='error'?t('Try again'):t('Transcribe')}</span>{busy&&<span className="audio-upload-submit-icon" aria-hidden="true"><Loader size={14}/></span>}</button>}</div>
diff --git a/app/src/renderer/src/components/AudioUploadWhen.tsx b/app/src/renderer/src/components/AudioUploadWhen.tsx
index 52d5feaf..a5b69afc 100644
--- a/app/src/renderer/src/components/AudioUploadWhen.tsx
+++ b/app/src/renderer/src/components/AudioUploadWhen.tsx
@@ -2,12 +2,26 @@ import {useEffect,useRef,useState} from 'react'
import {Popover} from '@base-ui/react/popover'
import {CalendarDays,ChevronLeft,ChevronRight} from 'lucide-react'
import {language,t} from '../../../shared/i18n'
-import {noteDateLabel,timeOf} from '../../../shared/dates'
-import {uploadClock,stepUploadClock,uploadDayAllowed} from '../../../shared/audioUpload'
+import {noteDateLabel} from '../../../shared/dates'
+import {uploadDate,uploadDateTime,uploadTime,uploadDayAllowed,stepUploadClock} from '../../../shared/audioUpload'
import {weekDates,shiftDay} from '../agenda'
export function AudioUploadWhen({at,durationMs,onChange,disabled=false}:{at:number;durationMs:number;onChange:(at:number)=>void;disabled?:boolean}) {
const [open,setOpen]=useState(false),row=useRef<HTMLDivElement>(null)
+ const [invalid, setInvalid] = useState(false)
+ const input = useRef<HTMLInputElement>(null)
+ const time = uploadTime(at)
+ useEffect(() => {
+ if (input.current?.validity.customError) return
+ if (input.current) input.current.value = time
+ setInvalid(false)
+ }, [time])
+ const validate = (field: HTMLInputElement, showError: boolean) => {
+ const next = uploadDateTime(uploadDate(at), field.value, at)
+ field.setCustomValidity(next === undefined ? t('Enter a valid start time.') : '')
+ setInvalid(next === undefined && showError)
+ return next
+ }
const [month,setMonth]=useState(()=>new Date(at).setDate(1))
const date=new Date(at),shown=new Date(month),today=new Date()
const first=new Date(shown.getFullYear(),shown.getMonth(),1)
@@ -15,9 +29,34 @@ export function AudioUploadWhen({at,durationMs,onChange,disabled=false}:{at:numb
const days=Array.from({length:42},(_,i)=>shiftDay(start,i))
const nextMonth=(step:number)=>+new Date(shown.getFullYear(),shown.getMonth()+step,1)
const monthName=(value:number)=>new Date(value).toLocaleDateString(language(),{month:'long',year:'numeric'})
- const choose=(day:number)=>{const next=new Date(at),picked=new Date(day);next.setFullYear(picked.getFullYear(),picked.getMonth(),picked.getDate());if(uploadDayAllowed(+next)){onChange(+next);setOpen(false)}}
+ const choose = (day: number) => {
+ if (!uploadDayAllowed(day)) return
+ const field = input.current
+ const next = uploadDateTime(uploadDate(day), field?.value ?? time, at)
+ if (field) {
+ field.setCustomValidity(next === undefined ? t('Enter a valid start time.') : '')
+ setInvalid(next === undefined)
+ }
+ // An incomplete or nonexistent local time must be corrected before the date can be submitted.
+ onChange(next ?? day)
+ setOpen(false)
+ }
return <Popover.Root open={open&&!disabled} onOpenChange={value=>{setOpen(value);if(value)setMonth(new Date(at).setDate(1))}}>
- <div ref={row} className="audio-upload-date-row"><Popover.Trigger type="button" disabled={disabled} data-dialog-focus className="note-chip audio-upload-date" data-testid="audio-upload-date"><CalendarDays size={14}/><span>{noteDateLabel(at)}</span></Popover.Trigger><Clock at={at} onChange={onChange} disabled={disabled}/><small>{t('{count} min',{count:Math.ceil(durationMs/60000)})}</small></div>
+ <div ref={row} className="audio-upload-date-row"><Popover.Trigger type="button" disabled={disabled} data-dialog-focus className="note-chip audio-upload-date" data-testid="audio-upload-date"><CalendarDays size={14}/><span>{noteDateLabel(at)}</span></Popover.Trigger><input id="upload-start-time" ref={input} className="audio-upload-time" type="time" required disabled={disabled}
+ aria-label={t('Start time')} defaultValue={time} aria-invalid={invalid || undefined} aria-describedby={invalid ? 'upload-time-error' : undefined}
+ onChange={e => { const next = validate(e.currentTarget, invalid); if (next !== undefined && next !== at) onChange(next) }}
+ onBlur={e => validate(e.currentTarget, true)} onInvalid={e => { e.preventDefault(); setInvalid(true); e.currentTarget.focus() }}
+ onKeyDown={e => {
+ if (e.key === 'Escape') {
+ e.preventDefault(); e.stopPropagation()
+ e.currentTarget.value = time; validate(e.currentTarget, false)
+ } else if (e.shiftKey && (e.key === 'ArrowUp' || e.key === 'ArrowDown') && e.currentTarget.validity.valid) {
+ e.preventDefault()
+ onChange(stepUploadClock(at, e.key === 'ArrowUp' ? 60 : -60))
+ }
+ }}
+ /><small>{t('{count} min',{count:Math.ceil(durationMs/60000)})}</small></div>
+ {invalid && <span id="upload-time-error" role="alert" className="upload-time-error">{t('Enter a valid start time.')}</span>}
<Popover.Portal>
<Popover.Positioner anchor={row} side="bottom" align="start" sideOffset={8} collisionPadding={12} collisionAvoidance={{side:'shift',align:'shift',fallbackAxisSide:'none'}} positionMethod="fixed" className="audio-upload-date-positioner">
<Popover.Popup className="people-card menu-entry audio-upload-date-picker" data-testid="audio-upload-picker" aria-label={t('Date')} initialFocus={()=>document.querySelector<HTMLElement>('[data-upload-day][aria-pressed=true]')}>
@@ -34,17 +73,3 @@ export function AudioUploadWhen({at,durationMs,onChange,disabled=false}:{at:numb
</Popover.Portal>
</Popover.Root>
}
-function Clock({at,onChange,disabled}:{at:number;onChange:(at:number)=>void;disabled:boolean}) {
- const original=timeOf(at),[value,setValue]=useState(original)
- useEffect(()=>setValue(original),[original])
- const commit=()=>{const next=uploadClock(value,at,language());setValue(next==null?original:timeOf(next));if(next!=null)onChange(next)}
- return <input className="audio-upload-time" disabled={disabled} type="text" aria-label={t('Start time')} aria-keyshortcuts="ArrowUp ArrowDown Shift+ArrowUp Shift+ArrowDown" value={value} onChange={e=>setValue(e.target.value)} onFocus={e=>e.target.select()} onBlur={commit} onKeyDown={e=>{
- if(e.key==='Enter'){e.preventDefault();commit()}
- else if(e.key==='Escape'){e.preventDefault();e.stopPropagation();setValue(original);e.currentTarget.select()}
- else if(e.key==='ArrowUp'||e.key==='ArrowDown'){
- e.preventDefault()
- const next=stepUploadClock(uploadClock(value,at,language())??at,(e.key==='ArrowUp'?1:-1)*(e.shiftKey?60:1))
- setValue(timeOf(next));onChange(next)
- }
- }}/>
-}
diff --git a/app/src/renderer/src/components/CalendarSettings.tsx b/app/src/renderer/src/components/CalendarSettings.tsx
index eda3a7d3..529a111d 100644
--- a/app/src/renderer/src/components/CalendarSettings.tsx
+++ b/app/src/renderer/src/components/CalendarSettings.tsx
@@ -62,6 +62,7 @@ export function CalendarSettings({ connect = false }: { connect?: boolean } = {}
: !selected.length ? t('No calendars selected.')
: selected.length === 1 ? [selected[0].name, selected[0].source].filter(Boolean).join(' · ')
: `${selected[0].name} ${t('and {count} more', { count: selected.length - 1 })}`
+ const readFailed = view?.status === 'error' || sys === 'error'
return <section data-testid="calendar-settings">
<h2 className="settings-section-heading">{t('Calendars')}</h2>
<div className="settings-group">
@@ -73,9 +74,9 @@ export function CalendarSettings({ connect = false }: { connect?: boolean } = {}
<ChevronDown size={16} aria-hidden="true" />
</button>
<div id="settings-calendar-list" className="accordion" data-open={open} inert={!open || undefined}><div className="settings-calendar-list">
- <LoadingContent pending={!view} skeleton={<Loading layout="calendars" />}>{view && <>{!link && sys !== 'granted' && <div className="settings-row">
- <p className="settings-description settings-row-copy">{sys === 'error' ? t("Yogurt couldn't read your calendars.") : t('Allow calendar access to choose your calendars.')}</p>
- <button className="workspace-button" onClick={() => { if (sys === 'error') reload(); else void window.yogurt.calendar.connect().then(reload) }}>{sys === 'error' ? t('Try again') : t('Connect calendar')}</button>
+ <LoadingContent pending={!view} skeleton={<Loading layout="calendars" />}>{view && <>{(view.status === 'error' || !link && sys !== 'granted') && <div className="settings-row">
+ <p className="settings-description settings-row-copy">{readFailed ? t("Yogurt couldn't read your calendars.") : t('Allow calendar access to choose your calendars.')}</p>
+ <button className="workspace-button" onClick={() => { if (readFailed) reload(); else void window.yogurt.calendar.connect().then(reload) }}>{readFailed ? t('Try again') : t('Connect calendar')}</button>
</div>}
{!link && sys === 'granted' && !view.calendars.some((c) => !c.link) && <p className="settings-row settings-description">{t('No calendars found on this Mac.')}</p>}
{view.calendars.map((c) => <label key={c.id} data-testid="calendar-choice" className="settings-row settings-calendar-choice">
diff --git a/app/src/renderer/src/components/Chat.tsx b/app/src/renderer/src/components/Chat.tsx
index 373a82a6..245f46f7 100644
--- a/app/src/renderer/src/components/Chat.tsx
+++ b/app/src/renderer/src/components/Chat.tsx
@@ -1,3 +1,4 @@
+import { InlineError } from './InlineError'
import { useEffect, useLayoutEffect, useRef, useState } from 'react'
import { createPortal } from 'react-dom'
import type { LibrarySource } from '../../../shared/types'
@@ -15,6 +16,7 @@ export function Ask({ id, recording, anchor, onSource }: { id: string; recording
const [conversationId, setConversationId] = useState<string>()
const [conversationVersion, setConversationVersion] = useState(0)
const [error, setError] = useState(false)
+ const [attempt, setAttempt] = useState(0)
const [narrow, setNarrow] = useState(() => window.matchMedia('(max-width: 999px)').matches)
const trigger = useRef<HTMLButtonElement>(null)
const panel = useRef<HTMLDialogElement>(null)
@@ -33,9 +35,10 @@ export function Ask({ id, recording, anchor, onSource }: { id: string; recording
useEffect(() => {
if (!open || conversationId) return
let active = true
+ setError(false)
void window.yogurt.conversations.current([{ kind: 'meeting', id }]).then(cid => { if (active) setConversationId(cid) }).catch(() => { if (active) setError(true) })
return () => { active = false }
- }, [open, id, conversationId])
+ }, [open, id, conversationId, attempt])
// Ask grows out of its button and folds back into it. Only the empty surface resizes; the chat stays at its final size,
// cropped to the surface so none of it shows outside, and the button and the surface trade places where they meet.
const morph = (expand: boolean, animate = true) => {
@@ -118,7 +121,9 @@ export function Ask({ id, recording, anchor, onSource }: { id: string; recording
onCancel={event => { event.preventDefault(); close() }}>
<div ref={surface} className="chat-morph-surface" aria-hidden="true" />
<div ref={contents} className="chat-panel-contents">
- {error && <p role="alert">{t("Yogurt couldn't answer that.")}</p>}
+ {error && <InlineError testId="chat-open-error"><span>{t("Couldn't load this conversation.")}</span>
+ <button className="workspace-button" onClick={() => setAttempt(n => n + 1)}>{t('Try again')}</button>
+ </InlineError>}
<AskConversation key={`${id}/${conversationVersion}`} id={conversationId ?? ''} pendingDraftKey={`meeting/${id}`} loadError={error} panel recording={recording} onSelect={next => { setConversationId(next); setConversationVersion(version => version + 1) }} onClose={() => close()}
onExpand={conversationId ? () => { rememberScrollPositions(); close(false); window.yogurt.nav.go(`/chat/${conversationId}`) } : undefined}
onDeleted={() => { close(false); setConversationId(undefined); window.yogurt.nav.go('/chat') }}
diff --git a/app/src/renderer/src/components/InlineError.tsx b/app/src/renderer/src/components/InlineError.tsx
index a757239b..88a52773 100644
--- a/app/src/renderer/src/components/InlineError.tsx
+++ b/app/src/renderer/src/components/InlineError.tsx
@@ -1,12 +1,24 @@
+import { t } from '../../../shared/i18n'
import type { ReactNode } from 'react'
-import { TriangleAlert } from 'lucide-react'
/** Keep recovery beside the affected content, without hiding the content that was kept. */
-export function InlineError({ testId, warningTestId, className = '', children }: {
- testId: string; warningTestId?: string; className?: string; children: ReactNode
+export function InlineError({ testId, className = '', children, retry }: {
+ testId: string; className?: string; children?: ReactNode; retry?: () => void
}) {
return <div data-testid={testId} data-state="failed" role="alert" className={`inline-error ${className}`}>
- <TriangleAlert data-testid={warningTestId} size={15} strokeWidth={1.75} aria-hidden="true" />
- {children}
+ {children ?? <span>{t("Couldn't load this content.")}</span>}
+ {retry && <button type="button" className="workspace-button" onClick={retry}>{t('Try again')}</button>}
</div>
}
+
+/** Center recovery in the space that the missing content would occupy. */
+export function ReadError({ testId, retry, className = '' }: {
+ testId: string; retry: () => void; className?: string
+}) {
+ return <section data-testid={testId} role="alert" className={`empty-state read-error ${className}`}>
+ <div className="empty-state-content">
+ <p>{t("Couldn't load this content.")}</p>
+ <button type="button" className="workspace-button" onClick={retry}>{t('Try again')}</button>
+ </div>
+ </section>
+}
diff --git a/app/src/renderer/src/components/NoteDate.tsx b/app/src/renderer/src/components/NoteDate.tsx
index 8ad69653..f995874a 100644
--- a/app/src/renderer/src/components/NoteDate.tsx
+++ b/app/src/renderer/src/components/NoteDate.tsx
@@ -165,7 +165,7 @@ function DateCard({ m, details, event, eventTitle, color, refreshLinked, chip, m
<div className="note-date-reveal" data-ready={!!result}>
{available && !event && <div className="note-date-access flex items-center gap-3 text-xs text-muted">
<p role="status">{t('Calendar event unavailable')}</p>
- <button className="text-action ms-auto" onClick={refresh}>{t('Try again')}</button>
+ <button className="workspace-button ms-auto" onClick={refresh}>{t('Try again')}</button>
</div>}
{url && <div className="agenda-inspector-actions">
<a className="workspace-button" title={t('Join meeting')} href={url} target="_blank" rel="noreferrer"><span>{t('Join meeting')}</span><ExternalLink size={12} aria-hidden="true" /></a>
diff --git a/app/src/renderer/src/components/Player.tsx b/app/src/renderer/src/components/Player.tsx
index 33a90ea0..868d3fb0 100644
--- a/app/src/renderer/src/components/Player.tsx
+++ b/app/src/renderer/src/components/Player.tsx
@@ -23,9 +23,9 @@ const DRIFT_S = 0.08
* `onTime` gets the spot while it plays and when it is moved (paused too, so the line stays marked where it stopped),
* with `seek` for an explicit move, and null once the meeting or panel changes; `onPlaying` whether any side is playing.
*/
-type PlayerProps = { id: string; tracks: Track[]; ref?: Ref<PlayerHandle>; onTime?: (ms: number | null, seek?: boolean) => void; onPlaying?: (on: boolean) => void; onBusy?: (on: boolean) => void }
+type PlayerProps = { id: string; tracks: Track[]; openTranscript?: () => void; ref?: Ref<PlayerHandle>; onTime?: (ms: number | null, seek?: boolean) => void; onPlaying?: (on: boolean) => void; onBusy?: (on: boolean) => void }
export function Player(props: PlayerProps) { return props.tracks.length ? <MeetingPlayer key={props.id} {...props} /> : null }
-function MeetingPlayer({ id, tracks, ref, onTime, onPlaying, onBusy }: PlayerProps) {
+function MeetingPlayer({ id, tracks, openTranscript, ref, onTime, onPlaying, onBusy }: PlayerProps) {
const [confirm, setConfirm] = useState(false)
const [menuOpen, setMenuOpen] = useState(false)
const [deleted, setDeleted] = useState(false)
@@ -34,6 +34,7 @@ function MeetingPlayer({ id, tracks, ref, onTime, onPlaying, onBusy }: PlayerPro
const owned = useRef(new Set<HTMLAudioElement>())
/** tracks that could not be read: dropped, and the other plays on */
const [broken, setBroken] = useState<Track[]>([])
+ const restoring = useRef(new Set<Track>())
const pendingPlayFrom = useRef<number | undefined>(undefined)
const shown = tracks.filter((tr) => !broken.includes(tr))
const [playing, setPlaying] = useState(false)
@@ -112,52 +113,73 @@ function MeetingPlayer({ id, tracks, ref, onTime, onPlaying, onBusy }: PlayerPro
setBroken((b) => (b.includes(tr) ? b : [...b, tr]))
}
+ const retry = () => {
+ restoring.current = new Set(broken)
+ setBroken([])
+ }
const rateText = t('{rate}×', { rate: new Intl.NumberFormat(language()).format(rate) })
const fill = duration ? (time / duration) * 100 : 0
const note = broken.length === 0 ? null : shown.length === 0 ? t("This recording can't be played.") : t("Part of this recording can't be played.")
if (deleted) return null
+ const more = (
+ <Menu.Root modal={false} onOpenChange={setMenuOpen}>
+ <Menu.Trigger ref={menuButton} data-testid="recording-menu" aria-label={t('More')} title={t('More')}
+ className="ghost-btn workspace-icon ms-auto"><Ellipsis size={17} aria-hidden="true" /></Menu.Trigger>
+ <Menu.Portal>
+ <Menu.Positioner side="top" align="end" sideOffset={6} className="ask-menu-positioner">
+ <Menu.Popup className="menu-entry ask-actions-menu player-audio-menu" aria-label={t('More')} finalFocus={confirm ? false : menuButton} onKeyDown={e => { if (e.key === 'Escape') e.stopPropagation() }}>
+ <Menu.Item data-testid="recording-delete" className="text-danger" onClick={() => { pause(); menuButton.current?.focus(); setConfirm(true) }}>
+ <Trash2 size={14} aria-hidden="true" />{t('Delete audio')}
+ </Menu.Item>
+ </Menu.Popup>
+ </Menu.Positioner>
+ </Menu.Portal>
+ </Menu.Root>
+ )
return (
<div data-testid="player" className="transcript-player text-xs text-muted">
{shown.map((tr) => (
<audio key={tr} data-testid={`player-audio-${tr}`} data-track={tr} preload="metadata" src={`yogurt-audio://${id}/${tr}`}
ref={(a) => { if (a) { els.current[tr] = a; owned.current.add(a) } else delete els.current[tr] }}
- onLoadedMetadata={() => { setDuration(Math.max(0, ...all().map(lenOf))); if (pendingPlayFrom.current !== undefined) playFrom(pendingPlayFrom.current) }}
+ onLoadedMetadata={e => {
+ const track = e.currentTarget
+ if (restoring.current.delete(tr)) {
+ const other = all().find(a => a !== track && !a.paused)
+ track.currentTime = Math.min(other?.currentTime ?? time, lenOf(track) || time)
+ if (other) start(track)
+ }
+ setDuration(Math.max(0, ...all().map(lenOf)))
+ if (pendingPlayFrom.current !== undefined) playFrom(pendingPlayFrom.current)
+ }}
onTimeUpdate={(e) => tick(e.currentTarget)}
onPlay={changed} onPause={changed}
onEnded={(e) => { if (e.currentTarget === lead()) pause(); changed() }}
onError={(e) => { failed(tr, e.currentTarget); changed() }} />
))}
- {note && <p data-testid="player-note" role="status" className={shown.length ? 'px-1.5 pb-1.5' : 'px-1.5 py-1'}>{note}</p>}
- <div className="flex items-center gap-2">
- {shown.length > 0 && <>
- <button data-testid="player-toggle" aria-label={playing ? t('Pause') : t('Play')} onClick={() => (playing ? pause() : play())}
- className="player-btn flex size-[26px] shrink-0 items-center justify-center rounded-full bg-accent text-accent-ink">
- <Swap show={playing ? 'pause' : 'play'} options={{ play: <Play size={13} fill="currentColor" strokeWidth={0} className="ms-0.5" />, pause: <Pause size={13} fill="currentColor" strokeWidth={0} /> }} />
- </button>
- <span className="w-9 shrink-0 text-end tabular-nums">{clock(time * 1000)}</span>
- <input data-testid="player-scrubber" type="range" min={0} max={duration || 0} step={0.1} value={Math.min(time, duration || 0)} aria-label={t('Position')}
- onChange={(e) => seek(Number(e.target.value))} className="scrubber min-w-0 flex-1" style={{ ['--fill' as string]: `${fill}%` }} />
- <span className="w-9 shrink-0 tabular-nums">{clock(duration * 1000)}</span>
- <button data-testid="player-speed" aria-label={t('Playback speed {rate}', { rate: rateText })}
- onClick={() => setRate((r) => RATES[(RATES.indexOf(r) + 1) % RATES.length])}
- className="ghost-btn tabular-nums">
- {rateText}
- </button>
- </>}
- <Menu.Root modal={false} onOpenChange={setMenuOpen}>
- <Menu.Trigger ref={menuButton} data-testid="recording-menu" aria-label={t('More')} title={t('More')}
- className="ghost-btn workspace-icon ms-auto"><Ellipsis size={17} aria-hidden="true" /></Menu.Trigger>
- <Menu.Portal>
- <Menu.Positioner side="top" align="end" sideOffset={6} className="ask-menu-positioner">
- <Menu.Popup className="menu-entry ask-actions-menu player-audio-menu" aria-label={t('More')} finalFocus={confirm ? false : menuButton} onKeyDown={e => { if (e.key === 'Escape') e.stopPropagation() }}>
- <Menu.Item data-testid="recording-delete" className="text-danger" onClick={() => { pause(); menuButton.current?.focus(); setConfirm(true) }}>
- <Trash2 size={14} aria-hidden="true" />{t('Delete audio')}
- </Menu.Item>
- </Menu.Popup>
- </Menu.Positioner>
- </Menu.Portal>
- </Menu.Root>
- </div>
+ {note && <InlineError testId="player-error" className="player-read-error">
+ <span data-testid="player-note">{note}</span>
+ <div className="inline-error-actions">
+ {shown.length === 0 && openTranscript && <a href="#transcript-lines" className="text-action" data-testid="player-open-transcript" onClick={e => { e.preventDefault(); openTranscript() }}>{t('Open in transcript')}</a>}
+ <button type="button" className="workspace-button" data-testid="player-retry" onClick={retry}>{t('Try again')}</button>
+ {shown.length === 0 && more}
+ </div>
+ </InlineError>}
+ {shown.length > 0 && <div className="flex items-center gap-2">
+ <button data-testid="player-toggle" aria-label={playing ? t('Pause') : t('Play')} onClick={() => (playing ? pause() : play())}
+ className="player-btn flex size-[26px] shrink-0 items-center justify-center rounded-full bg-accent text-accent-ink">
+ <Swap show={playing ? 'pause' : 'play'} options={{ play: <Play size={13} fill="currentColor" strokeWidth={0} className="ms-0.5" />, pause: <Pause size={13} fill="currentColor" strokeWidth={0} /> }} />
+ </button>
+ <span className="w-9 shrink-0 text-end tabular-nums">{clock(time * 1000)}</span>
+ <input data-testid="player-scrubber" type="range" min={0} max={duration || 0} step={0.1} value={Math.min(time, duration || 0)} aria-label={t('Position')}
+ onChange={(e) => seek(Number(e.target.value))} className="scrubber min-w-0 flex-1" style={{ ['--fill' as string]: `${fill}%` }} />
+ <span className="w-9 shrink-0 tabular-nums">{clock(duration * 1000)}</span>
+ <button data-testid="player-speed" aria-label={t('Playback speed {rate}', { rate: rateText })}
+ onClick={() => setRate((r) => RATES[(RATES.indexOf(r) + 1) % RATES.length])}
+ className="ghost-btn tabular-nums">
+ {rateText}
+ </button>
+ {more}
+ </div>}
{confirm && <DeleteRecording id={id} onCancel={() => { setConfirm(false); menuButton.current?.focus() }} onDeleted={() => {
for (const a of owned.current) { a.pause(); a.removeAttribute('src'); a.load() }
setConfirm(false); setDeleted(true); setPlaying(false); onTimeRef.current?.(null); onPlayingRef.current?.(false)
diff --git a/app/src/renderer/src/components/Search.tsx b/app/src/renderer/src/components/Search.tsx
index 10be5c88..45a1dbf7 100644
--- a/app/src/renderer/src/components/Search.tsx
+++ b/app/src/renderer/src/components/Search.tsx
@@ -1,4 +1,5 @@
import { useDialogFocus } from '../useDialogFocus'
+import { InlineError } from './InlineError'
import { Dialog } from '@animate-ui/react/primitives/base-ui/dialog'
import { MotionPopup } from './MotionPopup'
import { motion } from '../motion'
@@ -61,6 +62,8 @@ export function Search({ folder, folders, onOpen, onNavigate, onSettingsChange,
const off = window.yogurt.meetings.onChange(load)
return () => { live = false; off() }
}, [])
+ const [queryFailed, setQueryFailed] = useState(false)
+ const retry = useRef<() => void>(() => {})
const seq = useRef(0)
const list = useRef<HTMLUListElement>(null)
const scrollSelection = useRef(false)
@@ -72,14 +75,19 @@ export function Search({ folder, folders, onOpen, onNavigate, onSettingsChange,
}
useEffect(() => {
- const mine = ++seq.current
- const run = () => void window.yogurt.search.query(q, scope?.id, selectedPeople).then((list) => {
- // an answer to an older question never replaces a newer one
- if (mine !== seq.current) return
- setResults({ q, scopeId: scope?.id, peopleKey, list }); setActive(null)
- })
- if (!q.trim()) { run(); return }
- const timer = setTimeout(run, DEBOUNCE_MS)
+ const scheduled = ++seq.current
+ setQueryFailed(false)
+ const run = (request: number) => {
+ // Enter or Retry can supersede this read before the debounce fires.
+ if (request !== seq.current) return
+ void window.yogurt.search.query(q, scope?.id, selectedPeople).then(list => {
+ if (request !== seq.current) return
+ setQueryFailed(false); setResults({ q, scopeId: scope?.id, peopleKey, list }); setActive(null)
+ }, () => { if (request === seq.current) setQueryFailed(true) })
+ }
+ retry.current = () => run(++seq.current)
+ if (!q.trim()) { run(scheduled); return }
+ const timer = setTimeout(() => run(scheduled), DEBOUNCE_MS)
return () => clearTimeout(timer)
}, [q, scope, peopleKey, people, searchOptions.language, searchOptions.locale])
@@ -181,6 +189,7 @@ export function Search({ folder, folders, onOpen, onNavigate, onSettingsChange,
const enter = () => {
if (selected?.kind === 'person') { pickPerson(selected); return }
if (selected?.kind === 'ask' && active !== null) { void ask(selected.query); return }
+ if (queryFailed && q.trim()) { void ask(q.trim()); return }
if (settled) {
if (selected?.kind === 'ask') void ask(selected.query)
else if (selected?.kind === 'meeting') onOpen(selected.meeting.meetingId)
@@ -195,8 +204,8 @@ export function Search({ folder, folders, onOpen, onNavigate, onSettingsChange,
if (first?.kind === 'ask') void ask(first.query)
else if (first?.kind === 'meeting') onOpen(first.meeting.meetingId)
else if (first?.kind === 'command') void runCommand(first.command)
- else { setResults({ q, scopeId: scope?.id, peopleKey, list }); setActive(null) }
- })
+ else { setQueryFailed(false); setResults({ q, scopeId: scope?.id, peopleKey, list }); setActive(null) }
+ }).catch(() => { if (mine === seq.current) setQueryFailed(true) })
}
return (
@@ -236,7 +245,14 @@ export function Search({ folder, folders, onOpen, onNavigate, onSettingsChange,
</span>}
</div>}
</div>
- <ul ref={list} id="search-results" role="listbox" aria-label={t('Results')} aria-busy={running || !settled} className="min-h-0 flex-1 overflow-y-auto [overflow-anchor:none] px-2 pb-2 scroll-pb-2">
+ {queryFailed && <InlineError testId="search-read-error"><span>{t("Couldn't load this content.")}</span>
+ <div className="inline-error-actions">
+ <button type="button" data-testid="search-retry" className="workspace-button" onClick={() => retry.current()}>{t('Try again')}</button>
+ {!!q.trim() && <button type="button" className="workspace-button" onClick={() => void ask(q.trim())}>{t('Ask')}</button>}
+ </div>
+ </InlineError>}
+ {queryFailed && results && <p className="px-5 text-xs text-muted">{t('Previous results')}{typed && ' · ' + typed}</p>}
+ <ul ref={list} id="search-results" role="listbox" aria-label={t('Results')} aria-busy={running || !settled && !queryFailed} className="min-h-0 flex-1 overflow-y-auto [overflow-anchor:none] px-2 pb-2 scroll-pb-2">
{rows.map((row, i) => {
const previous = rows[i - 1]
if (row.kind === 'ask') return <Fragment key="ask">
@@ -292,7 +308,7 @@ export function Search({ folder, folders, onOpen, onNavigate, onSettingsChange,
{settled && filtered && !items.length && <li role="presentation" data-testid="search-filter-empty" className="px-5 py-8 text-center text-sm text-muted">
{searchFilterEmptyMessage(selectedPeople, dateLabel)}
</li>}
- {results && !count && !filtered && (
+ {!queryFailed && results && !count && !filtered && (
<li role="presentation" data-testid="search-none" className="flex h-full items-center justify-center px-5 py-8 text-center text-sm text-muted">
{scope ? t('No meetings in this folder yet.') : t('No notes yet.')}
</li>
diff --git a/app/src/renderer/src/components/ShareMenu.tsx b/app/src/renderer/src/components/ShareMenu.tsx
index 9eb665b5..4897e97b 100644
--- a/app/src/renderer/src/components/ShareMenu.tsx
+++ b/app/src/renderer/src/components/ShareMenu.tsx
@@ -1,9 +1,11 @@
import { usePopoverPresence } from '../motion'
+import { retryToast, toasts } from './TrashToast'
import { Copy } from './Icons'
import { useCallback, useEffect, useRef, useState, type KeyboardEvent } from 'react'
import { Check, CircleAlert, FileDown, ChevronDown } from 'lucide-react'
import { t } from '../../../shared/i18n'
import { command, onMac } from '../keys'
+import { flushOpenNotes } from '../noteAutosave'
import { shareTarget } from '../../../shared/exportNotes'
import type { NoteStatus } from '../../../shared/types'
@@ -38,11 +40,29 @@ export function ShareMenu({ id, shown, status, hasEnhanced, beforeUse }: { id: s
say(r === 'failed' ? t("Couldn't copy. Try again.") : r === 'nothing' ? t('Nothing to copy yet') : what === 'notes' && fellBack ? t('Copied your notes') : t('Copied'),
r === 'failed' ? 'error' : r === 'nothing' ? 'notice' : 'copied')
}, [id, shown, status, hasEnhanced, beforeUse, say])
- const save = async () => {
+ const exporting = useRef(false)
+ const save = async (retry = false) => {
+ if (exporting.current) return
+ const toastId = 'share-export-error-' + id
+ toasts.close(toastId)
+ const failed = (message: string) => retryToast(toastId, message, 'share-export-retry', () => save(true), 'share-export-error')
+ setSaid(undefined)
if (writing) { say(t('Still generating your summary')); return }
- if (!await beforeUse()) { say(t("Couldn't save your latest changes. Try again before exporting."), 'error'); return }
- const r = await window.yogurt.share.save(id, side)
- if (r === 'saved') say(fellBack ? t('Saved your notes') : t('Saved'), 'saved'); else if (r === 'failed') say(t("Couldn't save the file"), 'error')
+ exporting.current = true
+ try {
+ if (!await beforeUse() || (retry && !await flushOpenNotes())) { failed(t("Couldn't save your latest changes. Try again before exporting.")); return }
+ if (retry && side === 'enhanced') {
+ const current = await window.yogurt.notes.get(id)
+ if (shareTarget(side, current.status, current.enhanced != null).writing) {
+ failed(t('Still generating your summary'))
+ return
+ }
+ }
+ const r = await window.yogurt.share.save(id, side)
+ if (r === 'saved') say(fellBack ? t('Saved your notes') : t('Saved'), 'saved')
+ else if (r === 'failed') failed(t("Couldn't save the file"))
+ } catch { failed(t("Couldn't save the file")) }
+ finally { exporting.current = false }
}
const run = (fn: () => void) => { setOpen(false); button.current?.focus(); fn() }
diff --git a/app/src/renderer/src/components/Transcript.tsx b/app/src/renderer/src/components/Transcript.tsx
index 60b20a70..31c396b5 100644
--- a/app/src/renderer/src/components/Transcript.tsx
+++ b/app/src/renderer/src/components/Transcript.tsx
@@ -1,3 +1,4 @@
+import { InlineError, ReadError } from './InlineError'
import {transcriptReplacement} from '../../../shared/transcriptReplacement'
import { citationTargetIndex } from '../../../shared/citations'
import { SPEAKER_COLORS } from '../../../shared/speakerColors'
@@ -46,11 +47,13 @@ function useLines(id: string,replacing:boolean) {
load();return()=>{active=false;off()}
},[id,replacing])
const [lines, setLines] = useState<Line[]>([])
+ const [failed, setFailed] = useState(false)
+ const retry = useRef<() => void>(() => {})
const [loaded, setLoaded] = useState(false)
const live = useRef(new Set<string>())
useEffect(() => {
let active = true,epoch=0
- setLoaded(false); setLines([]); live.current = new Set()
+ setFailed(false); setLoaded(false); setLines([]); live.current = new Set()
const add = (more: Line[], arriving: boolean) => setLines((cur) => {
const seen = new Set(cur.map(key))
const fresh = more.filter((l) => l.meetingId === id && !seen.has(key(l)))
@@ -58,22 +61,30 @@ function useLines(id: string,replacing:boolean) {
return fresh.length ? [...cur, ...fresh].sort((a, b) => a.startMs - b.startMs) : cur
})
const off = window.yogurt.transcript.onSegment((l) => add([l], true))
- void window.yogurt.transcript.get(id, { hidden: true }).then((saved) => { if (active&&epoch===0) { add(saved, false); setLoaded(true) } })
- // names settled after the meeting, or lines hidden or shown again: the saved lines replace the ones shown
- const offSpeakers = window.yogurt.transcript.onSpeakers((m) => {
- if (m !== id) return
- const requestEpoch=epoch
- void window.yogurt.transcript.get(id, { hidden: true }).then((saved) => setLines((cur) => {
- if(!active||requestEpoch!==epoch)return cur
- const fresh = new Map(saved.map((l) => [key(l), l]))
- const have = new Set(cur.map(key))
- return [...cur.map((l) => fresh.get(key(l)) ?? l), ...saved.filter((l) => !have.has(key(l)))].sort((a, b) => a.startMs - b.startMs)
- }))
+ const load = (replace = false) => {
+ const request = ++epoch
+ retry.current = () => load(replace)
+ void window.yogurt.transcript.get(id, { hidden: true }).then(saved => {
+ if (!active || request !== epoch) return
+ setFailed(false); setLoaded(true)
+ if (replace) setLines(saved)
+ else setLines(cur => {
+ const fresh = new Map(saved.map(l => [key(l), l]))
+ const have = new Set(cur.map(key))
+ return [...cur.map(l => fresh.get(key(l)) ?? l), ...saved.filter(l => !have.has(key(l)))].sort((a, b) => a.startMs - b.startMs)
+ })
+ }, () => { if (active && request === epoch) setFailed(true) })
+ }
+ load()
+ const offSpeakers = window.yogurt.transcript.onSpeakers(m => { if (m === id) load() })
+ const offReplaced = window.yogurt.transcript.onReplaced?.(changed => {
+ if (changed !== id) return
+ if (draftRef.current.length) setLines(draftRef.current)
+ load(true)
})
- const offReplaced=window.yogurt.transcript.onReplaced?.(changed=>{if(changed===id){epoch++;setLoaded(true);if(draftRef.current.length)setLines(draftRef.current);void window.yogurt.transcript.get(id,{hidden:true}).then(saved=>{if(active)setLines(saved)})}})
return () => { active = false; off(); offSpeakers();offReplaced?.() }
}, [id])
- return { lines, draft, live, loaded }
+ return { lines, draft, live, loaded, failed, retry }
}
/**
@@ -173,9 +184,9 @@ export function Transcript({ id, notice, processing=false, replacing=false, reco
/** a line to show and mark (an answer's source): ms into the meeting; seq: each time it is asked for */
focus?: { ms: number; match?: string; seq: number }
}) {
- const { lines:savedLines, draft, live, loaded } = useLines(id,replacing)
+ const { lines:savedLines, draft, live, loaded, failed, retry } = useLines(id,replacing)
const allLines=useMemo(()=>replacing?transcriptReplacement(savedLines,draft):savedLines,[savedLines,draft,replacing])
- const loadingPhase = useLoadingState(!loaded)
+ const loadingPhase = useLoadingState(!loaded && !failed)
const { live: liveSaid, previewed } = useLive(id, recording)
// the mic's copy of the call (hidden as an echo) never shows
const timeline = useMemo(() => echoRuns(withLive(allLines, liveSaid)).filter(run => !run.echo), [allLines, liveSaid])
@@ -386,11 +397,13 @@ export function Transcript({ id, notice, processing=false, replacing=false, reco
className={inline ? 'transcript-inline' : 'chat-in pointer-events-auto absolute inset-x-0 bottom-1 z-20 mx-auto flex h-[min(44vh,480px)] w-[min(720px,calc(100%-48px))] flex-col rounded-xl border border-line bg-float shadow-[var(--shadow)]'}>
<TranscriptFind key={id} lines={lines} list={list} active={active} playbackInset={playbackInset} beforeScroll={() => visibility.current?.programmatic()} onFinding={find} toolbar={toolbar} onClose={!inline ? onClose : undefined} />
<div className="transcript-scroll-wrap relative flex min-h-0 flex-1 flex-col">
- <ScrollFade enabled={active && loaded}><ol data-loaded={loaded} data-loading-phase={loadingPhase} data-testid="transcript" data-replacing={replacing&&processing} ref={list} onScroll={onScroll} onWheel={theirs} onTouchStart={theirs} onPointerDown={theirs} onKeyDownCapture={theirs} onKeyDown={onKeyDown} className="loading-content transcript-loading-content flex flex-1 flex-col gap-2 overflow-y-auto px-4 pb-4 pt-2 text-sm leading-[1.55]">
+ <ScrollFade enabled={active && loaded}><ol id="transcript-lines" data-loaded={loaded} data-loading-phase={loadingPhase} data-testid="transcript" data-replacing={replacing&&processing} ref={list} onScroll={onScroll} onWheel={theirs} onTouchStart={theirs} onPointerDown={theirs} onKeyDownCapture={theirs} onKeyDown={onKeyDown} className="loading-content transcript-loading-content flex flex-1 flex-col gap-2 overflow-y-auto px-4 pb-4 pt-2 text-sm leading-[1.55]">
{notice&&<li className="transcription-notice-slot">{notice}</li>}
{processing&&!replacing&&timeline.length===0&&<li className="transcription-placeholder" aria-hidden="true"><p className="turn-head"><span className="loading-bar" style={{width:42}}/></p><p className="bubble bubble-them"><span className="loading-bar" style={{width:180}}/></p></li>}
- {loadingPhase !== 'ready' && timeline.length===0 && <li className="loading-placeholder"><Loading layout="transcript" /></li>}
- {loaded && !processing && allLines.length === 0 && liveSaid.length === 0 && <li data-testid="transcript-empty" className="note-empty empty-state"><div className="empty-state-content"><div className="empty-tile"><AudioLines size={28} strokeWidth={1.5} aria-hidden="true" /></div>{t('Nothing heard yet.')}</div></li>}
+ {failed && (timeline.length || processing || playable || notice ? <li><InlineError testId="transcript-read-error" retry={() => retry.current()} /></li>
+ : <li className="flex flex-1"><ReadError testId="transcript-read-error" retry={() => retry.current()} /></li>)}
+ {!failed && loadingPhase !== 'ready' && timeline.length===0 && <li className="loading-placeholder"><Loading layout="transcript" /></li>}
+ {!failed && loaded && !processing && allLines.length === 0 && liveSaid.length === 0 && <li data-testid="transcript-empty" className="note-empty empty-state"><div className="empty-state-content"><div className="empty-tile"><AudioLines size={28} strokeWidth={1.5} aria-hidden="true" /></div>{t('Nothing heard yet.')}</div></li>}
{drawn.earlier > 0 && <li className="flex justify-center"><button data-testid="transcript-earlier" onClick={() => { visibility.current?.programmatic(); stick.current = false; setShowAll(true) }} className="ghost-btn">{t('Show earlier lines')}</button></li>}
{drawn.runs.map(run => <Fragment key={run.k}>
{turns(run.lines).map((turn) => {
@@ -434,7 +447,12 @@ export function Transcript({ id, notice, processing=false, replacing=false, reco
</button>
)}
</div>
- {active && playable && <div ref={playbackDock} className="transcript-player-dock"><Player ref={player} id={id} tracks={tracks} onTime={onTime} onPlaying={setAudioOn} onBusy={on => visibility.current?.pin(on)} /></div>}
+ {active && playable && <div ref={playbackDock} className="transcript-player-dock"><Player ref={player} id={id} tracks={tracks} openTranscript={drawn.runs.length ? () => {
+ const row = rowOf(drawn.runs[0].k)
+ visibility.current?.programmatic()
+ row?.focus({ preventScroll: true })
+ row?.scrollIntoView({ block: 'center' })
+ } : undefined} onTime={onTime} onPlaying={setAudioOn} onBusy={on => visibility.current?.pin(on)} /></div>}
</Surface>
)
}
diff --git a/app/src/renderer/src/components/TrashToast.tsx b/app/src/renderer/src/components/TrashToast.tsx
index e57c1574..de40cede 100644
--- a/app/src/renderer/src/components/TrashToast.tsx
+++ b/app/src/renderer/src/components/TrashToast.tsx
@@ -18,6 +18,13 @@ type Shown = { ids: string[]; bulk?: boolean; error?: string; /** the note it wa
let show: ((s: Shown) => void) | undefined
export const toasts = Toast.createToastManager<{ testId?: string; actionTestId?: string }>()
+/** A failed action can be retried or dismissed without obscuring the working screen. */
+export function retryToast(id: string, title: string, actionTestId: string, retry: () => Promise<void>, testId = id) {
+ toasts.add({ id, title, timeout: 0, data: { testId, actionTestId },
+ actionProps: { children: t('Try again'), onClick: retry },
+ })
+}
+
/** Confirm manual audio deletion without changing the retention preference. */
export async function recordingDeletedToast() {
const prefs = await window.yogurt.settings.get().catch(() => undefined)
@@ -115,12 +122,13 @@ export function TrashToast({ go }: { go: (route: string) => void }) {
function ToastList() {
const reduced = useReducedMotion()
const { toasts: shown } = Toast.useToastManager<{ testId?: string; actionTestId?: string }>()
+ const front = shown.find(item => item.transitionStatus !== 'ending')
return shown.map(item => <Toast.Root key={item.id} toast={item} className="app-toast" transition={{ duration: (reduced ? motion.micro : motion.surface) / 1000, ease: motion.softCurve }} exitTransition={{ duration: (reduced ? motion.micro : motion.base) / 1000, ease: motion.out }} swipeDirection={['down', 'right']}
data-kind={item.data?.testId} data-testid={item.transitionStatus === 'ending' ? undefined : item.data?.testId ?? 'app-toast'}>
<Toast.Content className="app-toast-content" transition={{ duration: motion.micro / 1000, ease: motion.out }}>
<Toast.Title className="app-toast-title" />
{item.actionProps && <Toast.Action className="workspace-button" data-testid={item.data?.actionTestId} />}
- <Toast.Close className="ghost-btn workspace-icon" aria-label={t('Close')}><X size={14} aria-hidden="true" /></Toast.Close>
+ <Toast.Close {...(item === front && { 'aria-hidden': false })} className="ghost-btn workspace-icon" aria-label={t('Close')}><X size={14} aria-hidden="true" /></Toast.Close>
</Toast.Content>
</Toast.Root>)
}
diff --git a/app/src/renderer/src/folders.ts b/app/src/renderer/src/folders.ts
index 38985533..8ceff556 100644
--- a/app/src/renderer/src/folders.ts
+++ b/app/src/renderer/src/folders.ts
@@ -9,20 +9,26 @@ export const MEETING_DRAG = 'application/x-yogurt-meeting'
* imported changes the counts). meetingId: only the folders that meeting is in.
*/
export function useFolders(meetingId?: string | null): Folder[] | undefined {
+ return useFolderRead(meetingId).folders
+}
+
+export function useFolderRead(meetingId?: string | null) {
const [folders, setFolders] = useState<Folder[]>()
+ const [failed, setFailed] = useState(false)
+ const [attempt, setAttempt] = useState(0)
useEffect(() => {
if (meetingId === null) return
let seq = 0
const load = () => {
const mine = ++seq
- void (meetingId ? window.yogurt.folders.of(meetingId) : window.yogurt.folders.list()).then((list) => { if (mine === seq) setFolders(list) }, () => {})
+ void (meetingId ? window.yogurt.folders.of(meetingId) : window.yogurt.folders.list()).then((list) => { if (mine === seq) { setFolders(list); setFailed(false) } }, () => { if (mine === seq) setFailed(true) })
}
load()
const offFolders = window.yogurt.folders.onChange(load)
const offMeetings = window.yogurt.meetings.onChange(load)
return () => { seq++; offFolders(); offMeetings() }
- }, [meetingId])
- return folders
+ }, [meetingId, attempt])
+ return { folders, failed, retry: () => setAttempt(n => n + 1) }
}
/** Folder writes are idempotent; wait for every result before reporting a failure. */
diff --git a/app/src/renderer/src/screens/ChatPage.tsx b/app/src/renderer/src/screens/ChatPage.tsx
index 00255a58..844e970d 100644
--- a/app/src/renderer/src/screens/ChatPage.tsx
+++ b/app/src/renderer/src/screens/ChatPage.tsx
@@ -1,3 +1,4 @@
+import { InlineError } from '../components/InlineError'
import { useEffect, useRef, useState } from 'react'
import { flushSync } from 'react-dom'
import { Popover } from '@base-ui/react/popover'
@@ -17,7 +18,10 @@ export function ChatPage({ id, go, openSource }: { id: string | null; go: (route
const [list, setList] = useState<ConversationSummary[]>()
const [current, setCurrent] = useState<string>()
const [prepared, setPrepared] = useState<ConversationView>()
- const [error, setError] = useState(false)
+ const [homeFailed, setHomeFailed] = useState(false)
+ const [listFailed, setListFailed] = useState(false)
+ const [listAttempt, setListAttempt] = useState(0)
+ const [failedTarget, setFailedTarget] = useState<{ id: string | null }>()
const [recent, setRecent] = useState(false)
const recentButton = useRef<HTMLButtonElement>(null)
const [editing, setEditing] = useState<{ id: string; title: string; kind: 'rename' | 'delete' }>()
@@ -36,20 +40,22 @@ export function ChatPage({ id, go, openSource }: { id: string | null; go: (route
useDay()
useEffect(() => {
let active = true
- const off = window.yogurt.conversations.onList(setList)
- void window.yogurt.conversations.list().then(l => { if (active) setList(cur => cur ?? l) }).catch(() => { if (active) setError(true) })
+ setListFailed(false)
+ const off = window.yogurt.conversations.onList(list => { setList(list); setListFailed(false) })
+ void window.yogurt.conversations.list().then(l => { if (active) setList(cur => cur ?? l) }).catch(() => { if (active) setListFailed(true) })
return () => { active = false; off() }
- }, [])
+ }, [listAttempt])
useEffect(() => {
if (id) return
let active = true
- setError(false)
- void askHomeConversation(window.yogurt.conversations).then(cid => { if (active) setCurrent(cid) }).catch(() => { if (active) setError(true) })
+ setHomeFailed(false)
+ void askHomeConversation(window.yogurt.conversations).then(cid => { if (active) setCurrent(cid) }).catch(() => { if (active) setHomeFailed(true) })
return () => { active = false }
}, [id, revision])
const selected = id ?? current
const history = recentHistory(list ?? [], showAll ? Infinity : 30)
const navigate = async (cid: string | null) => {
+ setFailedTarget(undefined)
const request = ++navigation.current
setRecent(false)
// Capture the destination with its content, rather than fading into a loading skeleton.
@@ -59,10 +65,11 @@ export function ChatPage({ id, go, openSource }: { id: string | null; go: (route
if (!view) throw new Error('Conversation not found')
change(() => { setPrepared(view); setCurrent(target); go(cid ? `/chat/${cid}` : '/chat') })
}
- const open = (cid: string) => { void navigate(cid).catch(() => setError(true)) }
- const back = () => {
- void navigate(null).catch(() => setError(true))
+ const open = (cid: string | null) => {
+ const read = navigate(cid), request = navigation.current
+ void read.catch(() => { if (request === navigation.current) setFailedTarget({ id: cid }) })
}
+ const back = () => open(null)
const deleted = (cid: string) => {
if (cid === selected) { setCurrent(undefined); setRevision(n => n + 1); setRecent(false); go('/chat') }
}
@@ -81,7 +88,10 @@ export function ChatPage({ id, go, openSource }: { id: string | null; go: (route
<Popover.Positioner side="bottom" align="end" sideOffset={8} collisionPadding={16} className="ask-recent-positioner">
<Popover.Popup data-testid="chat-recent-list" className="menu-entry ask-history" aria-label={t('Conversations')}>
<ScrollFade><div className="ask-history-scroll">
- <LoadingContent pending={!list} skeleton={<Loading layout="history" />}>
+ {listFailed && <InlineError testId="chat-history-error"><span>{t("Couldn't load your conversations.")}</span>
+ <button className="workspace-button" onClick={() => setListAttempt(n => n + 1)}>{t('Try again')}</button>
+ </InlineError>}
+ <LoadingContent pending={!list && !listFailed} skeleton={<Loading layout="history" />}>
{list && !history.groups.some(g => g.length) && <p className="ask-history-empty">{t('Your conversations will show up here.')}</p>}
{[t('Today'), t('This week'), t('Earlier')].map((label, group) => !!history.groups[group].length && <section key={group}>
<h2>{label}</h2><ul>{history.groups[group].map(c => <li key={c.id} className="ask-history-row row-swap" onContextMenu={e => {
@@ -101,7 +111,9 @@ export function ChatPage({ id, go, openSource }: { id: string | null; go: (route
</Popover.Root>
</div>
{editing && <ConversationDialog {...editing} onClose={() => { setEditing(undefined); recentButton.current?.focus({ preventScroll: true }) }} onDeleted={() => deleted(editing.id)} />}
- {error && <p className="chat-error" role="alert">{t("Couldn't save your changes")}</p>}
- <AskConversation key={selected ?? "home"} id={selected ?? ""} initial={prepared?.id === selected ? prepared : undefined} home={!id} onSelect={open} onDeleted={() => { if (selected) deleted(selected) }} onSource={openSource} />
+ {(failedTarget || (!id && homeFailed)) && <InlineError testId="chat-page-load-error"><span>{t("Couldn't load this conversation.")}</span>
+ <button className="workspace-button" onClick={() => failedTarget ? open(failedTarget.id) : setRevision(n => n + 1)}>{t('Try again')}</button>
+ </InlineError>}
+ <AskConversation key={selected ?? "home"} id={selected ?? ""} initial={prepared?.id === selected ? prepared : undefined} loadError={!id && homeFailed} home={!id} onSelect={open} onDeleted={() => { if (selected) deleted(selected) }} onSource={openSource} />
</div>
}
diff --git a/app/src/renderer/src/screens/Folder.tsx b/app/src/renderer/src/screens/Folder.tsx
index bdf830a7..9575e461 100644
--- a/app/src/renderer/src/screens/Folder.tsx
+++ b/app/src/renderer/src/screens/Folder.tsx
@@ -1,6 +1,7 @@
+import { InlineError } from '../components/InlineError'
import { Folder as FolderIcon } from 'lucide-react'
import { LoadingContent } from '../components/LoadingContent'
-import { MeetingListLoading } from './Home'
+import { LibraryEmpty, MeetingListLoading } from './Home'
import { useEffect, useRef, useState } from 'react'
import { FolderGlyph } from '../components/FolderAppearance'
import { FolderAppearanceDialog } from '../components/FolderDialogs'
@@ -20,10 +21,8 @@ export function Folder({ folder, open, onStarted }: { folder: FolderRow; open: (
<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>
{appearance && <FolderAppearanceDialog folder={folder} onDone={() => setAppearance(false)} />}
- <LoadingContent pending={!past.cards} testId="meetings-loading" skeleton={<MeetingListLoading showFolders={false} />} className="library-load">{!past.cards?.length ? <section data-testid="folder-empty" className="library-empty empty-state"><div className="empty-state-content">
- <div className="empty-tile"><FolderIcon size={28} strokeWidth={1.5} aria-hidden="true" /></div><h2>{t('No meetings here yet')}</h2>
- <p>{t('You can record here or add existing meetings to this folder.')}</p>
- </div></section> : <PastNotes showFolders={false} cards={past.cards ?? []} day={day} more={past.more} sentinel={past.setSentinel} onOpen={open} />}</LoadingContent>
+ {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} strokeWidth={1.5} 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>
</div>
</div>
}
diff --git a/app/src/renderer/src/screens/Home.tsx b/app/src/renderer/src/screens/Home.tsx
index c075acd2..baa2db8e 100644
--- a/app/src/renderer/src/screens/Home.tsx
+++ b/app/src/renderer/src/screens/Home.tsx
@@ -1,9 +1,10 @@
+import { InlineError, ReadError } from '../components/InlineError'
import { transcriptionLabel } from '../../../shared/transcription'
import { LoadingContent } from '../components/LoadingContent'
import { StartRecording } from '../components/StartRecording'
import { Mic } from '../components/Icons'
import { useCallback, useEffect, useMemo, useReducer, useRef, useState, type ReactNode } from 'react'
-import { Circle, FileText, Users } from 'lucide-react'
+import { Check, Circle, FileText, Users } from 'lucide-react'
import type { MeetingCard } from '../../../shared/types'
import { useScrollMemory } from '../useScrollMemory'
import { loadUpTo } from '../paging'
@@ -37,21 +38,31 @@ export function Home({ open, openFolder, agendaJump }: { open: (id: string) => v
if (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 noMeetings = past.cards?.length === 0
const calendar = window.yogurt.capabilities.calendar
return <div data-testid="home" className={calendar ? 'native-home' : 'native-home no-agenda'}>
<StartRecording testId="new-note" onGone={() => setCalendarRevision(revision => revision + 1)} />
<div className="native-library" ref={past.setRoot} tabIndex={-1}>
<h1>{t('Your meetings')}</h1>
- <LoadingContent pending={!past.cards} testId="meetings-loading" skeleton={<MeetingListLoading />} className="library-load">{noMeetings ? <section data-testid="past-empty" className="library-empty empty-state"><div className="empty-state-content">
- <div className="empty-tile"><FileText size={28} strokeWidth={1.5} aria-hidden="true" /></div><h2>{t('Your notes will show up here')}</h2>
- <p>{t('Yogurt writes a summary after you finish recording.')}</p>
- </div></section> : <PastNotes cards={past.cards ?? []} day={day} more={past.more} sentinel={past.setSentinel} onOpen={open} openFolder={openFolder} />}</LoadingContent>
+ {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('Yogurt writes a summary after you finish recording.')} retry={past.failed ? past.retry : undefined} /> : <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
+}) {
+ if (retry) return <ReadError testId="meetings-read-error" retry={retry} className="library-empty" />
+ return <section data-testid={testId} className="library-empty empty-state">
+ <div className="empty-state-content">
+ <div className="empty-tile">{icon}</div>
+ <h2>{title}</h2>
+ <p>{description}</p>
+ </div>
+ </section>
+}
+
/**
* Past notes a page at a time: the next page loads as the end of the list comes near. Any change to a meeting
* reloads what is already shown (one query, however far down the person scrolled). folder: only its meetings (a
@@ -60,6 +71,7 @@ export function Home({ open, openFolder, agendaJump }: { open: (id: string) => v
export function usePastNotes(folder?: string) {
const [cards, setCards] = useState<MeetingCard[]>()
const [more, setMore] = useState(false)
+ const [failed, setFailed] = useState<'list' | 'page'>()
const [root, setRoot] = useState<HTMLDivElement | null>(null)
const [sentinel, setSentinel] = useState<HTMLDivElement | null>(null)
const memoryKey = folder ? `folder/${folder}` : 'meetings'
@@ -75,9 +87,10 @@ export function usePastNotes(folder?: string) {
// however far down the person scrolled, in steps (one call to main is capped)
void readMeetingRows(() => loadUpTo((o) => window.yogurt.meetings.cards({ ...o, ...(folder ? { folder } : {}) }), shown.current, PAGE)).then(({ cards: list, more }) => {
if (mine !== seq.current) return
+ setFailed(undefined)
animateRows(list)
shown.current = list.length; loadedCounts.set(memoryKey, list.length); setCards(list); setMore(more)
- })
+ }).catch(() => { if (mine === seq.current) setFailed('list') })
}, [folder, animateRows])
useEffect(() => {
reload()
@@ -86,7 +99,7 @@ export function usePastNotes(folder?: string) {
const later = () => { clearTimeout(timer); timer = setTimeout(reload, 150) }
const off = window.yogurt.meetings.onChange(later)
const offFolders = window.yogurt.folders.onChange(later)
- return () => { off(); offFolders(); clearTimeout(timer) }
+ return () => { off(); offFolders(); clearTimeout(timer); seq.current++ }
}, [reload, folder])
const next = useCallback(() => {
@@ -95,8 +108,8 @@ export function usePastNotes(folder?: string) {
const last = cards[cards.length - 1]
const mine = seq.current
void window.yogurt.meetings.cards({ limit: PAGE, before: { at: last.startedAt, id: last.id }, ...(folder ? { folder } : {}) }).then((page) => {
- loading.current = false
if (mine !== seq.current) return
+ setFailed(undefined)
setCards((cur) => {
const have = new Set(cur?.map((c) => c.id))
const all = [...(cur ?? []), ...page.filter((c) => !have.has(c.id))]
@@ -104,7 +117,7 @@ export function usePastNotes(folder?: string) {
return all
})
setMore(page.length === PAGE)
- })
+ }).catch(() => { if (mine === seq.current) setFailed('page') }).finally(() => { loading.current = false })
}, [cards, folder])
useEffect(() => {
@@ -114,7 +127,7 @@ export function usePastNotes(folder?: string) {
return () => io.disconnect()
}, [sentinel, root, more, next])
- return { cards, more, setRoot: attachRoot, setSentinel }
+ return { cards, more, failed, retry: failed === 'page' ? next : reload, setRoot: attachRoot, setSentinel }
}
/** Delete on a row moves the meeting to the Trash at once (Undo in the note at the bottom) */
@@ -209,7 +222,7 @@ export function PastCard({ c, onOpen, openFolder, openFolders, more, when, fixed
}}>
<button data-meeting-id={c.id} disabled={loading} onClick={() => onOpen(c.id)} aria-pressed={selected} className="native-meeting-link">
<span className="meeting-content">
- <span className={`meeting-identity ${recording ? 'recording' : ''}`} aria-hidden="true">{loading ? null : recording ? <Mic size={16} /> : c.attendees.length > 1 ? <Users size={16} /> : initials || <FileText size={16} />}</span>
+ <span className={`meeting-identity ${recording ? 'recording' : ''}`} aria-hidden="true">{loading ? null : selected ? <Check size={16} data-testid="meeting-selected" /> : recording ? <Mic size={16} /> : c.attendees.length > 1 ? <Users size={16} /> : initials || <FileText size={16} />}</span>
<span className="meeting-description"><strong>{loading ? <span className="loading-bar" style={{ width: c.title.length * 6, maxWidth: '85%' }} /> : c.title}</strong><span data-testid={loading ? undefined : "past-note-attendees"} title={c.attendees.map((p) => p.name).join(', ') || undefined}>{loading ? <span className="loading-bar" style={{ width: 110 }} /> : transcriptionLabel(c.transcriptionState) || (c.attendees.length ? peopleSummary(c.attendees, me) : t('Personal notes'))}</span>
</span>
</span>
diff --git a/app/src/renderer/src/screens/Note.tsx b/app/src/renderer/src/screens/Note.tsx
index 03259762..1b181788 100644
--- a/app/src/renderer/src/screens/Note.tsx
+++ b/app/src/renderer/src/screens/Note.tsx
@@ -1,3 +1,4 @@
+import { InlineError, ReadError } from '../components/InlineError'
import { TranscriptionControl, TranscriptionNotice } from '../components/Transcription'
import { transcriptionBusy } from '../../../shared/transcription'
import { citationTargetIndex } from '../../../shared/citations'
@@ -9,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, TriangleAlert } from 'lucide-react'
+import { AudioLines, Lock, RotateCcw, Trash2, TextAlignStart } from 'lucide-react'
import type { MeetingView, NoteSaveResult, NoteSide, NoteView, SetupState, WidgetView } from '../../../shared/types'
import { t } from '../../../shared/i18n'
import { osWords } from '../keys'
@@ -38,7 +39,6 @@ import { SpokenMenu } from '../components/SpokenMenu'
import { RecordingHint } from '../components/RecordingHint'
import { FolderChip, FolderPicker, type FolderSuggestion } from '../components/FolderPicker'
import { FolderName } from '../components/FolderDialogs'
-import { InlineError } from '../components/InlineError'
import { Swap, SwapText } from '../components/Swap'
/** A revision is dirty until main acknowledges it; failed text also remains there across navigation/reload. */
@@ -64,6 +64,11 @@ export function Note({ id, onTitleChange, at, folderSuggestion, onSource, onResu
folderSuggestion?: FolderSuggestion
onResumeRequested?: () => void
}) {
+ const [meetingReadFailed, setMeetingReadFailed] = useState(false)
+ const [notesReadFailed, setNotesReadFailed] = useState(false)
+ const retryMeeting = useRef<() => void>(() => {})
+ const retryNotes = useRef<() => void>(() => {})
+ const retryRead = () => { if (meetingReadFailed) retryMeeting.current(); if (notesReadFailed) retryNotes.current() }
const [m, setM] = useState<MeetingView>()
const [footer, setFooter] = useState<HTMLElement | null>(null)
useLayoutEffect(() => {
@@ -178,9 +183,18 @@ export function Note({ id, onTitleChange, at, folderSuggestion, onSource, onResu
}, [id, isRecording])
useEffect(() => {
- const load = () => void window.yogurt.meetings.get(id).then(setM)
- load()
- return window.yogurt.meetings.onChange(load)
+ let version = 0
+ const load = () => {
+ const request = ++version
+ void window.yogurt.meetings.get(id).then(value => {
+ if (request !== version) return
+ setMeetingReadFailed(!value)
+ if (value) setM(value)
+ }, () => { if (request === version) setMeetingReadFailed(true) })
+ }
+ setMeetingReadFailed(false); retryMeeting.current = load; load()
+ const off = window.yogurt.meetings.onChange(load)
+ return () => { version++; off() }
}, [id])
useEffect(() => {
@@ -199,9 +213,15 @@ export function Note({ id, onTitleChange, at, folderSuggestion, onSource, onResu
// Enhanced once there is something to show there, unless they chose, or are typing in their own notes
if (v.status !== 'idle' && !picked.current && !typing.current) setView('enhanced')
}
- const off = window.yogurt.notes.onChange((v) => { if (v.meetingId === id) show(v) })
- void window.yogurt.notes.get(id).then(show)
- return off
+ let version = 0
+ const off = window.yogurt.notes.onChange(v => { if (v.meetingId === id) { version++; setNotesReadFailed(false); show(v) } })
+ const load = () => {
+ const request = ++version
+ void window.yogurt.notes.get(id).then(v => { if (request === version) { setNotesReadFailed(false); show(v) } },
+ () => { if (request === version) setNotesReadFailed(true) })
+ }
+ setNotesReadFailed(false); retryNotes.current = load; load()
+ return () => { version++; off() }
}, [id])
useEffect(() => { current.current = notes }, [notes])
@@ -253,7 +273,8 @@ export function Note({ id, onTitleChange, at, folderSuggestion, onSource, onResu
useEffect(()=>{let active=true;const load=()=>void window.yogurt.audio.tracks(id).then(tracks=>{if(active)setHasAudio(!!tracks.length)});load();const off=window.yogurt.meetings.onChange(load);return()=>{active=false;off()}},[id])
const openedTranscription=useRef<string | undefined>(undefined)
useLayoutEffect(()=>{if(m&&openedTranscription.current!==id){openedTranscription.current=id;if(transcriptionBusy(m.transcriptionState))setPrimary('transcript')}},[m,id])
- if (!m || !notes) return <LoadingContent pending skeleton={<Loading layout="note" />} className="loading-note-frame" />
+ const readFailed = meetingReadFailed || notesReadFailed
+ if (!m || !notes) return readFailed ? <ReadError testId="note-read-error" retry={retryRead} /> : <LoadingContent pending skeleton={<Loading layout="note" />} className="loading-note-frame" />
const recording = m.state === 'recording'
/** in the Trash: it can be read and restored, not recorded into */
const trashed = m.trashedAt != null
@@ -422,6 +443,7 @@ export function Note({ id, onTitleChange, at, folderSuggestion, onSource, onResu
<span data-testid="note-tab-indicator" className="note-tab-indicator" aria-hidden="true" />
</div>
</header>
+ {readFailed && <InlineError testId="note-read-error" retry={retryRead} />}
<div ref={setChatAnchor} className="note-reading-area">
<div ref={panels} className="note-panels">
<NoteReadingPane active={primary === 'notes'} summary={shown === 'enhanced'} generating={shown === 'enhanced' && ['waiting', 'rewriting', 'handoff', 'reset', 'streaming'].includes(summaryState)} resetting={shown === 'enhanced' && summaryState === 'reset'} writing={shown === 'enhanced' && summaryState === 'streaming'} scroll={readingScroll}>
@@ -432,23 +454,27 @@ export function Note({ id, onTitleChange, at, folderSuggestion, onSource, onResu
/> : <Enhanced key={id} presentation={summaryState} focus={primary === 'notes' && at?.ms === null ? at : undefined} notes={notes} disabled={starting} onChange={(md) => { setEditedHere(true); const next = { ...current.current!, enhanced: md }; current.current = next; setNotes(next); enhancedSave.change(md) }} onBlur={enhancedSave.flush} onRetry={requestRewrite} />}
</NoteReadingPane>
{(primary === 'transcript' || transcriptVisited) && <section hidden={primary !== 'transcript'} id="note-transcript-panel" role="tabpanel" aria-labelledby="note-transcript-tab" className="note-content note-transcript-pane">
- <Transcript notice={<>{(hasAudio&&(m.transcriptionPending||!hasTranscript)||m.transcriptionState==='waiting-model'||m.transcriptionState==='waiting-recording')&&<TranscriptionNotice state={m.transcriptionState} hasLines={hasTranscript} onContinue={()=>void runTranscript()} disabled={recording||!!m.stopSavePending}/>}
- {!hasAudio&&m.transcriptionState==='error'&&<InlineError testId="upload-preparation-failed"><span>{t("Yogurt couldn't read this audio file.")}</span><button className="text-action" onClick={()=>void openAudioUpload()}>{t('Upload a file')}</button></InlineError>}</>} id={id} processing={transcribing} replacing={!!m.transcriptionAgain} recording={recording} active={primary === 'transcript'} inline toolbar={transcriptToolbar} focus={at?.ms != null ? { ...at, ms: at.ms } : undefined} />
+ <Transcript notice={
+ hasAudio && (m.transcriptionPending || !hasTranscript) || m.transcriptionState === 'waiting-model' || m.transcriptionState === 'waiting-recording'
+ ? <TranscriptionNotice state={m.transcriptionState} hasLines={hasTranscript} onContinue={() => void runTranscript()} disabled={recording || !!m.stopSavePending} />
+ : !hasAudio && m.transcriptionState === 'error'
+ ? <InlineError testId="upload-preparation-failed"><span>{t("Yogurt couldn't read this audio file.")}</span><button className="workspace-button" onClick={() => void openAudioUpload()}>{t('Upload a file')}</button></InlineError>
+ : null
+ } id={id} processing={transcribing} replacing={!!m.transcriptionAgain} recording={recording} active={primary === 'transcript'} inline toolbar={transcriptToolbar} focus={at?.ms != null ? { ...at, ms: at.ms } : undefined} />
</section>}
</div>
</div>
<footer ref={setFooter} className="note-footer">
{m.stopSavePending && (
- <div data-testid="note-stop-unsaved" role="alert" className="mt-5 flex flex-wrap items-start gap-3 rounded-xl border border-line bg-card px-4 py-3 text-[13px] leading-relaxed">
- <TriangleAlert size={16} aria-hidden="true" className="mt-0.5 shrink-0 text-danger" />
- <p className="min-w-48 flex-1">{t("Recording stopped. Yogurt couldn't save when it ended. Keep Yogurt open and try again.")}</p>
+ <InlineError testId="note-stop-unsaved" className="mt-5">
+ <span>{t("Recording stopped. Yogurt couldn't save when it ended. Keep Yogurt open and try again.")}</span>
<button data-testid="note-stop-retry" disabled={retryingStop} className="workspace-button" onClick={() => {
setRetryingStop(true)
void window.yogurt.meetings.retryStopSave(id).then((saved) => {
if (saved) transcriptButton.current?.focus({ preventScroll: true })
}).catch(() => {}).finally(() => setRetryingStop(false))
}}>{retryingStop ? t('Saving…') : t('Try again')}</button>
- </div>
+ </InlineError>
)}
{primary === 'notes' && shown === 'enhanced' && notes.status === 'done' && notes.peopleChanged && !rewriteOpen && (
<div data-testid="note-people-changed" className="pointer-events-auto mx-auto mt-3 flex w-fit max-w-[calc(100%-32px)] flex-wrap items-center gap-3 rounded-xl border border-line bg-float px-4 py-2 text-[13px] shadow-[var(--shadow)]">
@@ -457,9 +483,9 @@ export function Note({ id, onTitleChange, at, folderSuggestion, onSource, onResu
</div>
)}
{saveStatus === 'failed' && (
- <InlineError testId="note-save-status" warningTestId="note-save-warning" className="pointer-events-auto mx-auto mt-3 w-fit max-w-[calc(100%-32px)]">
- <span>{mineSave.reason === 'too-long' || enhancedSave.reason === 'too-long' ? t('This note is too long to save. Shorten it and try again.') : t("Couldn't save your changes")}</span>
- <button data-testid="note-save-retry" className="text-action" onClick={() => { void saveAll() }}>{t('Try again')}</button>
+ <InlineError testId="note-save-status" className="pointer-events-auto mx-auto mt-3 w-fit max-w-[calc(100%-32px)]">
+ <span data-testid="note-save-warning">{mineSave.reason === 'too-long' || enhancedSave.reason === 'too-long' ? t('This note is too long to save. Shorten it and try again.') : t("Couldn't save your changes")}</span>
+ <button data-testid="note-save-retry" className="workspace-button" onClick={() => { void saveAll() }}>{t('Try again')}</button>
</InlineError>
)}
{startFailed && <p role="alert" className="pointer-events-auto mx-auto mt-3 w-fit text-[13px] text-danger">{t("Yogurt couldn't start the notes. Try again in a moment.")}</p>}
@@ -534,7 +560,7 @@ function Enhanced({ notes, presentation, disabled, onChange, onBlur, onRetry, fo
return (
<InlineError testId="note-enhanced-failed">
<span>{t("Yogurt couldn't generate this summary.")}</span>
- <button onClick={onRetry} className="text-action">{t('Try again')}</button>
+ <button onClick={onRetry} className="workspace-button">{t('Try again')}</button>
</InlineError>
)
}
@@ -556,7 +582,7 @@ function Enhanced({ notes, presentation, disabled, onChange, onBlur, onRetry, fo
<div data-testid="note-enhanced" data-status={status} className={presentation === 'streaming' ? 'streaming' : ''}>
{status === 'failed' && <InlineError testId="note-enhanced-rewrite-failed" className="mb-6">
<span>{t("Yogurt couldn't regenerate the summary, so your previous version is still shown.")}</span>
- <button onClick={onRetry} className="text-action">{t('Try again')}</button>
+ <button onClick={onRetry} className="workspace-button">{t('Try again')}</button>
</InlineError>}
{rewriting && <SummaryWaiting outline={false} part={status === 'writing' ? notes.part : undefined} />}
<div ref={surface} className="summary-rewrite" data-rewriting={rewriting} data-handoff={handoff} data-resetting={presentation === 'reset'} style={handoff ? { minHeight: height.current } : undefined}>
diff --git a/app/src/renderer/src/screens/Settings.tsx b/app/src/renderer/src/screens/Settings.tsx
index 75f87d19..3a23a8c0 100644
--- a/app/src/renderer/src/screens/Settings.tsx
+++ b/app/src/renderer/src/screens/Settings.tsx
@@ -1,4 +1,5 @@
import { AboutYogurt } from '../components/AboutYogurt'
+import { retryToast, toasts } from '../components/TrashToast'
import { LoadingContent } from '../components/LoadingContent'
import { useCallback, useEffect, useRef, useState } from 'react'
import { Check, ChevronDown, Copy, Download, ExternalLink, Globe, Lock, Upload, FileText } from 'lucide-react'
@@ -22,6 +23,41 @@ const THEMES = () => [['system', osWords({ mac: t('Match my Mac'), windows: t('M
const loginLabel = () => osWords({ mac: t('Open Yogurt when your Mac starts'), windows: t('Open Yogurt when Windows starts'), linux: t('Open Yogurt when you log in') })
const trayLabel = () => window.yogurt.os === 'win32' ? t('Show Yogurt in the notification area') : t('Show Yogurt in the tray')
+const settingsRetried = new EventTarget()
+
+/** Keep the displayed value until main confirms the write. A retry repeats the requested value. */
+function useSettingSave(actionId: string, refresh: () => void) {
+ const [busy, setBusy] = useState(false)
+ const pending = useRef(new Set<string>())
+ const mounted = useRef(true)
+ // A toast survives navigation. Refresh the mounted panel if a previous instance retries.
+ useEffect(() => {
+ mounted.current = true
+ settingsRetried.addEventListener(actionId, refresh)
+ return () => {
+ mounted.current = false
+ settingsRetried.removeEventListener(actionId, refresh)
+ }
+ }, [actionId, refresh])
+ const save = async (write: () => Promise<void>, retryId = actionId, retry = false) => {
+ const id = retryId + '-error'
+ if (pending.current.has(id)) return
+ pending.current.add(id)
+ setBusy(true)
+ toasts.close(id)
+ try {
+ await write()
+ if (retry && !mounted.current) settingsRetried.dispatchEvent(new Event(actionId))
+ }
+ catch { retryToast(id, t("Couldn't save your changes"), retryId, () => save(write, retryId, true)) }
+ finally {
+ pending.current.delete(id)
+ setBusy(pending.current.size > 0)
+ }
+ }
+ return { save, busy }
+}
+
/** Settings, kept small: what Yogurt may use, your name, open at login, stop when the call ends, light or dark, a backup and updates. Nothing technical. */
/** focus: the setting requested by the entry point */
export function Settings({ revision = 0, focus }: { revision?: number; focus?: string }) {
@@ -39,24 +75,34 @@ export function Settings({ revision = 0, focus }: { revision?: number; focus?: s
window.addEventListener('focus', reload)
return () => window.removeEventListener('focus', reload)
}, [reload])
- const theme = (v: Theme) => { setPrefs((p) => p && { ...p, theme: v }); void window.yogurt.settings.setTheme(v) }
+ const refreshGeneral = useCallback(() => {
+ void window.yogurt.settings.get().then(p => { setPrefs(p); setName(p.myName) })
+ }, [])
+ const general = useSettingSave('settings-save-retry', refreshGeneral)
+ const theme = (v: Theme) => general.save(async () => {
+ await window.yogurt.settings.setTheme(v)
+ setPrefs(p => p && { ...p, theme: v })
+ }, 'settings-theme-retry')
/** saved when they leave the field or press Return; blank goes back to the Mac's name */
const saveName = () => {
if (!prefs) return
const clean = name.replace(/\s+/g, ' ').trim()
const next = clean || prefs.macName
- setName(next); setPrefs({ ...prefs, myName: next })
- void window.yogurt.settings.setName(clean)
+ if (next === prefs.myName) { setName(next); return }
+ void general.save(async () => {
+ await window.yogurt.settings.setName(clean)
+ setName(next); setPrefs(p => p && { ...p, myName: next })
+ }, 'settings-name-retry')
}
const login = () => {
if (!prefs) return
const on = !prefs.openAtLogin
- setPrefs({ ...prefs, openAtLogin: on }); void window.yogurt.settings.setOpenAtLogin(on)
+ void general.save(async () => { await window.yogurt.settings.setOpenAtLogin(on); setPrefs(p => p && { ...p, openAtLogin: on }) }, 'settings-login-retry')
}
const autoStop = () => {
if (!prefs) return
const on = !prefs.stopWhenCallEnds
- setPrefs({ ...prefs, stopWhenCallEnds: on }); void window.yogurt.settings.setStopWhenCallEnds(on)
+ void general.save(async () => { await window.yogurt.settings.setStopWhenCallEnds(on); setPrefs(p => p && { ...p, stopWhenCallEnds: on }) }, 'settings-auto-stop-retry')
}
const menuBar = async () => {
if (!prefs) return
@@ -80,7 +126,7 @@ export function Settings({ revision = 0, focus }: { revision?: number; focus?: s
<div className="settings-row">
<label htmlFor="settings-theme" className="settings-label settings-row-copy">{t('Appearance')}</label>
<span className="settings-select-wrap">
- <select id="settings-theme" data-testid="settings-theme" value={prefs?.theme ?? 'system'} disabled={!prefs}
+ <select id="settings-theme" data-testid="settings-theme" value={prefs?.theme ?? 'system'} disabled={!prefs || general.busy}
onChange={(e) => theme(e.target.value as Theme)} className="settings-select">
{THEMES().map(([v, label]) => <option key={v} value={v}>{label}</option>)}
</select>
@@ -92,7 +138,7 @@ export function Settings({ revision = 0, focus }: { revision?: number; focus?: s
<label htmlFor="settings-name" className="settings-label">{t('Your name')}</label>
<p className="settings-description">{t('Yogurt uses your name to identify you in calls.')}</p>
</div>
- <input id="settings-name" data-testid="settings-name" value={name} maxLength={80} autoComplete="name" spellCheck={false}
+ <input id="settings-name" data-testid="settings-name" disabled={general.busy} value={name} maxLength={80} autoComplete="name" spellCheck={false}
onChange={(e) => setName(e.target.value)} onBlur={saveName} onKeyDown={(e) => { if (e.key === 'Enter') e.currentTarget.blur() }}
className="settings-name-field" />
</div>
@@ -101,7 +147,7 @@ export function Settings({ revision = 0, focus }: { revision?: number; focus?: s
<p className="settings-label">{loginLabel()}</p>
<p className="settings-description">{t('It runs in the background, ready for your first call.')}</p>
</div>
- <button data-testid="login-toggle" role="switch" aria-checked={!!prefs?.openAtLogin} aria-label={loginLabel()} onClick={login}
+ <button data-testid="login-toggle" disabled={!prefs || general.busy} role="switch" aria-checked={!!prefs?.openAtLogin} aria-label={loginLabel()} onClick={login}
className="settings-toggle">
<span className="settings-toggle-knob" />
</button>
@@ -127,7 +173,7 @@ export function Settings({ revision = 0, focus }: { revision?: number; focus?: s
<p className="settings-label">{t('Finish recording when the call ends')}</p>
<p className="settings-description">{t('Automatically end the recording a few seconds after you hang up.')}</p>
</div>
- <button data-testid="autostop-toggle" role="switch" aria-checked={!!prefs?.stopWhenCallEnds} aria-label={t('Finish recording when the call ends')} onClick={autoStop}
+ <button data-testid="autostop-toggle" disabled={!prefs || general.busy} role="switch" aria-checked={!!prefs?.stopWhenCallEnds} aria-label={t('Finish recording when the call ends')} onClick={autoStop}
className="settings-toggle">
<span className="settings-toggle-knob" />
</button>
@@ -137,10 +183,11 @@ export function Settings({ revision = 0, focus }: { revision?: number; focus?: s
<p className="settings-label">{t('Recording reminder')}</p>
<p className="settings-description">{t('Show a brief reminder when recording starts.')}</p>
</div>
- <button data-testid="recording-reminder-toggle" role="switch" aria-checked={!!prefs?.recordingReminder} aria-label={t('Recording reminder')}
- onClick={() => { if (!prefs) return; const on = !prefs.recordingReminder; setPrefs({ ...prefs, recordingReminder: on }); void window.yogurt.settings.setRecordingReminder(on) }}
+ <button data-testid="recording-reminder-toggle" disabled={!prefs || general.busy} role="switch" aria-checked={!!prefs?.recordingReminder} aria-label={t('Recording reminder')}
+ onClick={() => { if (!prefs) return; const on = !prefs.recordingReminder; void general.save(async () => { await window.yogurt.settings.setRecordingReminder(on); setPrefs(p => p && { ...p, recordingReminder: on }) }, 'recording-reminder-retry') }}
className="settings-toggle"><span className="settings-toggle-knob" /></button>
</div>
+
<RecordingSetting reveal={focus === 'recordings' && generalReady && !!perms} on={prefs?.keepRecordings ?? true} disabled={!prefs} onChange={async on => {
await window.yogurt.settings.setKeepRecordings(on)
setPrefs(p => p && { ...p, keepRecordings: on })
@@ -384,7 +431,8 @@ function AiApps() {
void window.yogurt.mcp.status().then(setStatus)
return window.yogurt.mcp.onClients((clients) => setStatus((s) => s && { ...s, clients }))
}, [])
- const toggle = () => { if (status) { setStatus({ ...status, enabled: !status.enabled }); void window.yogurt.mcp.set(!status.enabled).then(setStatus) } }
+ const change = useSettingSave('ai-apps-retry', useCallback(() => { void window.yogurt.mcp.status().then(setStatus) }, []))
+ const toggle = () => status && change.save(async () => { setStatus(await window.yogurt.mcp.set(!status.enabled)) })
const copy = () => { if (status) void navigator.clipboard.writeText(status.command).then(() => setCopied(true)) }
const on = !!status?.enabled
return (
@@ -396,10 +444,11 @@ function AiApps() {
<p className="settings-label">{t('Let AI apps read your meetings')}</p>
<p className="settings-description">{osWords({ mac: t('Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.'), other: t('Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.') })}</p>
</div>
- <button data-testid="ai-apps-toggle" role="switch" aria-checked={on} aria-label={t('Let AI apps read your meetings')} onClick={toggle} className="settings-toggle">
+ <button data-testid="ai-apps-toggle" disabled={change.busy} role="switch" aria-checked={on} aria-label={t('Let AI apps read your meetings')} onClick={toggle} className="settings-toggle">
<span className="settings-toggle-knob" />
</button>
</div>
+
{on && status &&
<div className="settings-row">
<div className="settings-row-copy">
@@ -429,7 +478,8 @@ function Updates() {
void window.yogurt.updates.status().then(setStatus)
return window.yogurt.updates.onStatus(setStatus)
}, [])
- const toggle = () => { if (status) { setStatus({ ...status, on: !status.on }); void window.yogurt.updates.set(!status.on).then(setStatus) } }
+ const change = useSettingSave('updates-save-retry', useCallback(() => { void window.yogurt.updates.status().then(setStatus) }, []))
+ const toggle = () => status && change.save(async () => { setStatus(await window.yogurt.updates.set(!status.on)) })
const restart = () => void window.yogurt.updates.restart().then((ok) => setBlocked(!ok))
const said = status?.available ? {
idle: '', latest: t('Up to date'), checking: t('Checking for updates…'), error: t("Couldn't check for updates."),
@@ -445,10 +495,11 @@ function Updates() {
<p className="settings-label">{t('Update Yogurt automatically')}</p>
<p className="settings-description">{t('New versions download in the background and install when you quit.')}</p>
</div>
- <button data-testid="updates-toggle" role="switch" aria-checked={status.on} aria-label={t('Update Yogurt automatically')} onClick={toggle} className="settings-toggle">
+ <button data-testid="updates-toggle" disabled={change.busy} role="switch" aria-checked={status.on} aria-label={t('Update Yogurt automatically')} onClick={toggle} className="settings-toggle">
<span className="settings-toggle-knob" />
</button>
</div>}
+
<div className="settings-row">
<div className="settings-row-copy" aria-live="polite">
<p data-testid="updates-version" className="settings-label">{t('Version {version}', { version: status?.version ?? '' })}</p>
diff --git a/app/src/renderer/src/screens/Trash.tsx b/app/src/renderer/src/screens/Trash.tsx
index 64f7b5d8..d771295d 100644
--- a/app/src/renderer/src/screens/Trash.tsx
+++ b/app/src/renderer/src/screens/Trash.tsx
@@ -1,6 +1,7 @@
+import { InlineError } from '../components/InlineError'
import { changeMeetingRows, readMeetingRows, useMeetingRowMotion } from '../meetingRowMotion'
import { LoadingContent } from '../components/LoadingContent'
-import { MeetingListLoading } from './Home'
+import { LibraryEmpty, MeetingListLoading } from './Home'
import { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react'
import { createPortal } from 'react-dom'
import { RotateCcw, Trash2 } from 'lucide-react'
@@ -21,6 +22,7 @@ import { useMyName } from '../components/People'
*/
export function Trash({ open }: { open: (id: string) => void }) {
const me = useMyName()
+ const [failed, setFailed] = useState(false)
const [cards, setCards] = useState<MeetingCard[]>()
const scroll = useScrollMemory<HTMLDivElement>('trash', !!cards)
const animateRows = useMeetingRowMotion(scroll, 'trash')
@@ -33,8 +35,8 @@ export function Trash({ open }: { open: (id: string) => void }) {
const mine = ++sequence.current
void readMeetingRows(() => window.yogurt.meetings.trashed()).then(cards => {
if (mine !== sequence.current) return
- animateRows(cards); setCards(cards)
- })
+ setFailed(false); animateRows(cards); setCards(cards)
+ }).catch(() => { if (mine === sequence.current) setFailed(true) })
}, [animateRows])
useEffect(() => {
reload()
@@ -46,10 +48,8 @@ export function Trash({ open }: { open: (id: string) => void }) {
<div className="native-library" ref={scroll}>
<h1>{t('Trash')}</h1>
<p className="trash-note">{t('Meetings in the Trash are deleted for good after {count} days, with their recordings.', { count: TRASH_DAYS })}</p>
- <LoadingContent pending={!cards} testId="meetings-loading" skeleton={<MeetingListLoading grouped={false} />} className="library-load">{!cards?.length ? <section data-testid="trash-none" className="library-empty empty-state"><div className="empty-state-content">
- <div className="empty-tile"><Trash2 size={28} strokeWidth={1.5} aria-hidden="true" /></div><h2>{t('The Trash is empty')}</h2>
- <p>{t('Deleted meetings stay here for a while, so you can bring them back.')}</p>
- </div></section> : <ul aria-label={t('Deleted meetings')}>
+ {failed && !!cards?.length && <InlineError testId="meetings-read-error" retry={reload} />}
+ <LoadingContent pending={!cards && !failed} testId="meetings-loading" skeleton={<MeetingListLoading grouped={false} />} className="library-load">{!cards?.length ? <LibraryEmpty testId="trash-none" icon={<Trash2 size={28} strokeWidth={1.5} aria-hidden="true" />} title={t('The Trash is empty')} description={t('Deleted meetings stay here for a while, so you can bring them back.')} retry={failed ? reload : undefined} /> : <ul aria-label={t('Deleted meetings')}>
{cards?.map((c) => <li key={c.id} data-row-id={c.id} data-testid="trash-row" className="native-meeting-row trash-row row-swap" tabIndex={0} title={dayLabel(c.startedAt)}>
<PastCard c={c} onOpen={open} me={me} fixed />
<div className="trash-actions row-swap-actions"><button data-testid="trash-restore" title={t('Restore')} className="ghost-btn workspace-icon" onClick={() => void changeMeetingRows('restore', [c.id], () => window.yogurt.meetings.restore(c.id))} aria-label={t('Restore')}>
diff --git a/app/src/renderer/src/setup.css b/app/src/renderer/src/setup.css
index 2c64f134..67759bfb 100644
--- a/app/src/renderer/src/setup.css
+++ b/app/src/renderer/src/setup.css
@@ -81,7 +81,7 @@
.call-prompt-countdown { position:absolute;inset:0 0 auto;height:2px;background:var(--accent);transform-origin:left;pointer-events:none;animation:call-countdown 12s linear forwards; }
.call-prompt[data-paused=true] .call-prompt-countdown { animation-play-state:paused; }
@keyframes call-countdown { to { transform:scaleX(0); } }
-@media (prefers-reduced-motion:reduce) { .call-prompt-countdown { animation-timing-function:steps(12,end); } }
+@media (prefers-reduced-motion:reduce) { .call-prompt-countdown { animation:none;display:none; } }
.call-prompt button:focus-visible { outline:2px solid var(--focus);outline-offset:2px; }
@container (max-width:600px) {
@@ -350,6 +350,12 @@
@media (prefers-reduced-motion: reduce) { .ob-download-blob .finish-band { animation:none !important; } }
+@media (max-width: 600px) {
+ .ob { grid-template-columns:minmax(0,1fr); }
+ .ob-stage { display:none; }
+ .ob-actions { flex-wrap:wrap; }
+}
+
@media (max-width: 880px) {
.ob-side { padding-inline:32px; }
.ob-title { font-size:31px; }
diff --git a/app/src/renderer/src/styles.css b/app/src/renderer/src/styles.css
index 34dace74..734e3e2b 100644
--- a/app/src/renderer/src/styles.css
+++ b/app/src/renderer/src/styles.css
@@ -225,7 +225,7 @@ html.widget { --pill:#232326;--pill-ink:#F7F7FA;--accent:#B780FF;--pill-accent:v
.summary-regenerate-input { width:100%;height:36px;border:1px solid var(--control-border);border-radius:6px;background:var(--control);padding:0 10px;font-size:12px;color:var(--ink); }
.main-window .summary-regenerate-input:focus-visible { outline:2px solid var(--muted);outline-offset:2px; }
.summary-regenerate-input::placeholder { color:var(--muted); }
-.summary-regenerate-warning { margin-top:10px;font-size:12px;line-height:20px;color:var(--muted);white-space:nowrap; }
+.summary-regenerate-warning { margin-top:10px;font-size:12px;line-height:20px;color:var(--muted);overflow-wrap:anywhere; }
.summary-regenerate-actions { display:flex;justify-content:flex-end;margin-top:12px; }
.note-chip, .note-record-action { height:32px; }
.note-chip { transition: background-color var(--dur-micro) ease, color var(--dur-micro) ease, opacity var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) ease; }
@@ -271,8 +271,8 @@ html.widget { --pill:#232326;--pill-ink:#F7F7FA;--accent:#B780FF;--pill-accent:v
.note-prose > * + * { margin-top: 0.4em; }
.note-prose h1, .note-prose h2, .note-prose h3 { position: relative; font-weight: 600; line-height: 1.4; }
.note-prose h1 { font-size: 19px; margin-top: 1.5em; }
-.note-prose h2 { font-size: 15px; margin-top: 1.7em; letter-spacing: -.015em; }
-.note-prose h3 { font-size: 15.5px; margin-top: 1.3em; }
+.note-prose h2 { font-size: 16px; margin-top: 1.7em; letter-spacing: -.015em; }
+.note-prose h3 { font-size: 15px; margin-top: 1.3em; }
.note-prose > :first-child { margin-top: 0; }
.note-prose h1 + ul, .note-prose h2 + ul, .note-prose h3 + ul, .note-prose h1 + ol, .note-prose h2 + ol, .note-prose h3 + ol { margin-top: 0.35em; }
.note-prose ul, .note-prose ol { padding-inline-start: 1.15em; }
@@ -484,8 +484,13 @@ html.widget { --pill:#232326;--pill-ink:#F7F7FA;--accent:#B780FF;--pill-accent:v
.modal-copy h2 { font-size:14px;line-height:20px;font-weight:600;letter-spacing:-.15px;overflow-wrap:anywhere; }
.modal-copy p { margin-top:8px;color:var(--muted);font-size:12px;line-height:18px; }
.inline-error { display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--float);color:var(--written);font-size:13px;line-height:20px;text-align:start;text-overflow:ellipsis; }
-.inline-error>svg { flex:none;align-self:flex-start;margin-block-start:2px;color:var(--danger); }
-.inline-error>span { flex:1;min-width:0;overflow-wrap:anywhere; }
+.inline-error>span { flex:1 1 auto;min-width:0;overflow-wrap:anywhere; }
+.inline-error-actions { display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;max-width:100%;margin-inline-start:auto; }
+.inline-error>.workspace-button { margin-inline-start:auto; }
+.player-read-error a.text-action { min-height:24px;text-decoration:underline;text-underline-offset:3px; }
+.inline-error.player-read-error { flex-wrap:wrap;gap:8px;padding:4px 10px;border:0;background:transparent;font-size:12px;line-height:18px; }
+.transcript-player-dock:has(.player-read-error) { inset-inline:max(16px, calc((100% - 520px)/2)); }
+.player-read-error .inline-error-actions>.workspace-icon { margin-inline-start:0; }
.inline-error-in-dialog { margin:0 19px 16px;padding:0;border:0;border-radius:0;background:transparent;font-size:12px;line-height:18px; }
.modal-actions { display:flex;flex-direction:column;gap:7px;padding:0 20px 20px; }
.modal-button { display:inline-flex;align-items:center;justify-content:center;min-height:33px;width:100%;padding:6px 12px;border:1px solid transparent;border-radius:7px;background:var(--control);font-size:12px;font-weight:500;transition:background-color var(--dur-micro) ease; }
@@ -978,6 +983,8 @@ html:not(.widget) button:focus-visible, html:not(.widget) input:focus-visible {
.audio-upload-date-row { display:flex;align-items:center;gap:0;border:1px solid var(--line);border-radius:6px;padding:0;min-width:0;height:34px;color:var(--muted);font-size:12px; }
.audio-upload-date { display:flex;align-items:center;gap:8px;min-width:0;color:var(--ink);font-size:12px;padding:0 10px;flex:1;border-start-start-radius:5px;border-end-start-radius:5px; }
.audio-upload-date span { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
+.audio-upload-when { display:grid;grid-template-columns:minmax(0,1fr);gap:6px; }
+.upload-time-error {color:var(--danger);font-size:12px;line-height:18px; }
.audio-upload-date-row small { font-size:11px;white-space:nowrap;padding-inline:9px; }
.audio-upload-date-positioner { z-index:110; }
.audio-upload-date-picker { position:relative;border:1px solid var(--line);border-radius:9px;background:var(--float);color:var(--ink);box-shadow:var(--shadow);width:var(--anchor-width);max-width:calc(100vw - 24px);max-height:var(--available-height);overflow:auto;padding:10px; }
@@ -990,7 +997,7 @@ html:not(.widget) button:focus-visible, html:not(.widget) input:focus-visible {
.audio-upload-month button[data-outside=true] { opacity:.45; }
.audio-upload-month button:disabled:hover b { background:transparent; }
.audio-upload-month button[data-focus-ring] b { outline:2px solid var(--focus);outline-offset:1px; }
-.audio-upload-date-row .audio-upload-time { width:88px;min-width:0;height:32px;padding:0 8px;border:0;border-inline-start:1px solid var(--line);border-radius:0;background:transparent;flex:none;color:var(--ink);font-size:12px;font-variant-numeric:tabular-nums; }
+.audio-upload-date-row .audio-upload-time { width:112px;min-width:0;height:32px;padding:0 8px;border:0;border-inline-start:1px solid var(--line);border-radius:0;background:transparent;flex:none;color:var(--ink);font-size:12px;font-variant-numeric:tabular-nums; }
.audio-upload-date:focus-visible,.audio-upload-time:focus-visible { outline:2px solid var(--focus);outline-offset:-2px; }
.audio-upload-time:hover:not(:disabled) { background:var(--control-hover); }
.audio-upload-submit { position:relative; }
diff --git a/app/src/renderer/src/workspace.css b/app/src/renderer/src/workspace.css
index a487a8f1..fa79128f 100644
--- a/app/src/renderer/src/workspace.css
+++ b/app/src/renderer/src/workspace.css
@@ -183,6 +183,13 @@
.empty-tile { width:64px;height:64px;margin:0 auto 16px;display:grid;place-items:center;border:1px solid var(--line);border-radius:14px;background:var(--float);color:var(--written);box-shadow:0 1px 2px #17171A0A,0 10px 28px -12px #2A1A4A24;position:relative; }
.empty-tile::before { content:"";position:absolute;inset:5px;border:1px solid var(--line);border-radius:9px;opacity:.45;pointer-events:none; }
@media (prefers-color-scheme:dark) { .empty-tile { box-shadow:0 1px 2px #00000033,0 14px 32px -10px #00000080; } }
+.agenda-status[role=alert] { display:grid;justify-items:start; }
+.agenda-status[role=alert] h3 { font-weight:400; }
+.agenda-status h3+.workspace-button { margin-top:8px; }
+/* Workspace routes sit beneath an absolute toolbar. Reserve its height on a standalone failure. */
+.workspace-content>.read-error,.workspace-content>.native-library:has(>.read-error) { height:100%;padding-top:52px; }
+.read-error .empty-state-content { display:grid;justify-items:center;gap:8px; }
+.read-error .empty-state-content>p { margin:0;color:var(--written);font-size:13px;font-weight:400;line-height:20px; }
.library-empty h2 { font-size:17px;line-height:24px;font-weight:550;letter-spacing:-.3px; }
.library-empty p { color:var(--muted);line-height:1.65;text-wrap:balance;margin:10px 0 20px; }
.library-loading { color:var(--muted);font-size:12px;margin-top:25px; }
@@ -332,7 +339,7 @@
::highlight(citation-target) { background:color-mix(in srgb,var(--accent-soft) 70%,transparent); }
[data-focused] { background:color-mix(in srgb,var(--accent-soft) 70%,transparent); }
@container (max-width:700px) { .native-home { grid-template-columns:minmax(0,1fr) 235px; }.native-library { padding:24px 18px; }.native-agenda { padding-block:25px;--agenda-inset:15px; }.meeting-description strong { font-size:13px; }.meeting-meta { font-size:10px; } }
-@container (max-width:520px) { .native-home { grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 200px; }.native-agenda {border-inline-start:0;border-top:1px solid var(--line); }.native-meeting-link { gap:8px; }.workspace-breadcrumb { gap:5px; }.workspace-parent,.workspace-parent-separator { display:none; } }
+@container (max-width:520px) { .native-home { grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 200px; }.native-agenda { border-inline-start:0;border-top:1px solid var(--line);overflow-y:auto;overscroll-behavior:contain; }.agenda-scroll { flex:none;min-height:0;overflow:visible; }.native-meeting-link { gap:8px; }.workspace-breadcrumb { gap:5px; }.workspace-parent,.workspace-parent-separator { display:none; } }
/* no calendar on this computer (Windows, Linux): the library takes the whole width */
.native-home.no-agenda { grid-template-columns:minmax(0,1fr);grid-template-rows:none; }
.workspace-assistant-dock { position:absolute;inset-inline:0;bottom:0;height:44px;display:flex;align-items:center;justify-content:flex-end;padding:0 18px;border-top:1px solid var(--line);background:var(--bg); }
@@ -408,7 +415,7 @@ body:has(.chat-panel[open]) .app-toast-viewport:dir(rtl) { --toast-x:440px; }
.meeting-folder-proposal .note-folder-name { height:20px;padding:0;gap:5px;border-radius:9px;font:inherit; }
.meeting-folder-proposal .note-folder-name:hover { background:transparent; }
.meeting-folder-proposal .note-folder-actions { padding:0;border:0; }
-.meeting-folder-proposal .workspace-icon { width:20px;height:20px; }
+.meeting-folder-proposal .workspace-icon { width:24px;height:24px; }
.meeting-folder-proposal button:focus-visible { outline:2px solid var(--accent);outline-offset:-2px; }
.meeting-folder-proposal button:active { background:var(--control-pressed); }
@container meeting-library (max-width:460px) {
@@ -454,7 +461,6 @@ body:has(.chat-panel[open]) .app-toast-viewport:dir(rtl) { --toast-x:440px; }
.ask-question { width:fit-content;max-width:80%;margin:0;margin-inline-start:auto;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:12px;background:var(--control);padding:8px 12px;font-size:14px;line-height:20px; }
.ask-composer { flex:none;min-width:0;container-type:inline-size; }
.ask-box { position:relative;min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--float);box-shadow:var(--shadow-soft); }
-@media (prefers-reduced-motion:reduce) { .orb-material::before,.orb-material::after { animation:none; } .ask-send { transition:none;transform:none!important; } }
/* Composers are never lit; a short tapered flare invites typing instead. */
.ask-tracer { position:absolute;inset:-1px;width:calc(100% + 2px);height:calc(100% + 2px);overflow:visible;pointer-events:none;opacity:0;fill:none;stroke:var(--primary);stroke-width:3;stroke-linecap:round;filter:drop-shadow(0 0 4px color-mix(in srgb,var(--primary) 70%,transparent)) drop-shadow(0 0 10px color-mix(in srgb,var(--primary) 35%,transparent)); }
.ask-tracer rect { stroke-dasharray:1.05 98.95; }
@@ -478,6 +484,7 @@ body:has(.chat-panel[open]) .app-toast-viewport:dir(rtl) { --toast-x:440px; }
@keyframes orb-turn { from { transform:rotate(22deg); } to { transform:rotate(382deg); } }
@keyframes orb-counter { from { transform:rotate(-28deg); } to { transform:rotate(-388deg); } }
.ask-box:not([data-busy=true]) .ask-send:not(:disabled):is(:hover,[data-focus-ring]) { --orb-play:running;transform:scale(1.04); }
+@media (prefers-reduced-motion:reduce) { .orb-material::before,.orb-material::after { animation:none; } .ask-send { transition:none;transform:none!important; } }
.ask-send:active:not(:disabled) { transform:scale(.94); }
.ask-send:disabled { background:transparent;border-color:var(--line); }
.ask-send:disabled::after,.ask-send:disabled .orb-material,.ask-box[data-busy=true] .orb-material { display:none; }
@@ -559,7 +566,7 @@ body:has(.chat-panel[open]) .app-toast-viewport:dir(rtl) { --toast-x:440px; }
.note-folder-actions { display:flex;align-items:center;flex:none;padding:0 1px;border-inline-start:1px solid var(--line); }
.note-folder-proposal,.meeting-folder-proposal { transition:opacity var(--dur-base) var(--ease-out),padding var(--dur-base) var(--ease-out),gap var(--dur-base) var(--ease-out); }
.note-folder-actions { width:59px;overflow:hidden;transition:width var(--dur-base) var(--ease-out),opacity var(--dur-base) var(--ease-out),padding var(--dur-base) var(--ease-out),border-width var(--dur-base) var(--ease-out); }
-.meeting-folder-proposal .note-folder-actions { width:40px; }
+.meeting-folder-proposal .note-folder-actions { width:48px; }
[data-phase=accepted] .note-folder-actions,[data-phase=settled] .note-folder-actions { width:0;opacity:0;padding:0;border-inline-start-width:0; }
.meeting-folder-proposal:is([data-phase=accepted],[data-phase=settled]) { border-style:solid;padding-inline-end:7px;gap:0; }
.note-folder-proposal[data-phase=dismissed],.meeting-folder-proposal[data-phase=dismissed] { opacity:0;pointer-events:none; }
diff --git a/app/src/shared/audioUpload.ts b/app/src/shared/audioUpload.ts
index 3e11c75c..07608f17 100644
--- a/app/src/shared/audioUpload.ts
+++ b/app/src/shared/audioUpload.ts
@@ -29,10 +29,10 @@ export function uploadDateTime(date: string, time: string, original: number): nu
if (!/^(?:[01]\d|2[0-3]):[0-5]\d$/.test(time)) return
const at = uploadStartedAt(date, original)
if (at == null) return
- if (time === uploadTime(original)) return at
+ if (time === uploadTime(original)) return uploadTime(at) === time ? at : undefined
const [hours, minutes] = time.split(':').map(Number), value = new Date(at)
value.setHours(hours, minutes, 0, 0)
- return +value
+ return uploadTime(+value) === time ? +value : undefined
}
export function uploadDayAllowed(at:number,now=Date.now()) {
diff --git a/app/src/shared/locales/ar.json b/app/src/shared/locales/ar.json
index d0a3c7c4..4e5d36b0 100644
--- a/app/src/shared/locales/ar.json
+++ b/app/src/shared/locales/ar.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "لا توجد اجتماعات مطابقة مع {name}.",
"No matching meetings on {date}.": "لا توجد اجتماعات مطابقة في {date}.",
"No matching meetings with {name} on {date}.": "لا توجد اجتماعات مطابقة مع {name} في {date}.",
+ "Couldn't load this content.": "تعذّر تحميل هذا المحتوى.",
+ "Previous results": "النتائج السابقة",
"Meetings with {name}": "اجتماعات مع {name}",
"Hide checklist": "إخفاء قائمة التحقق",
"Next day": "اليوم التالي",
"Previous day": "اليوم السابق",
+ "Can't read {calendar}": "تعذّرت قراءة {calendar}",
"Yogurt couldn't update the calendar link. Try again.": "تعذّر على Yogurt تحديث رابط التقويم. حاول مرة أخرى.",
"Keep the title, attendees and notes.": "الاحتفاظ بالعنوان والحضور والملاحظات.",
"Unlink calendar event": "إلغاء ربط حدث التقويم",
@@ -56,6 +59,8 @@
"Appearance": "المظهر",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "يمكن للتطبيقات على هذا الـ Mac قراءة اجتماعاتك وملاحظاتك ونصوصك وتسجيلاتك. إذا استخدم تطبيق ذكاءً اصطناعياً عبر الإنترنت، فستُرسل إليه البيانات التي يقرؤها.",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "يمكن للتطبيقات على هذا الكمبيوتر قراءة اجتماعاتك وملاحظاتك ونصوصك وتسجيلاتك. إذا استخدم تطبيق ذكاءً اصطناعياً عبر الإنترنت، فستُرسل إليه البيانات التي يقرؤها.",
+ "Couldn't load this conversation.": "تعذّر تحميل هذه المحادثة.",
+ "Couldn't load your conversations.": "تعذّر تحميل محادثاتك.",
"Ask": "اسأل",
"Ask Yogurt": "اسأل Yogurt",
"Ask Yogurt (⌘J)": "اسأل Yogurt (⌘J)",
@@ -379,6 +384,7 @@
"Some of this meeting couldn't be transcribed.": "تعذّر نسخ جزء من هذا الاجتماع نصيًا.",
"Spoken language": "لغة الكلام",
"Star": "نجمة",
+ "Enter a valid start time.": "أدخل وقت بدء صالحًا.",
"Start recording": "بدء التسجيل",
"Starting…": "جارٍ البدء…",
"Starts in {count} min": {
@@ -438,7 +444,6 @@
"Transcription ready": "النسخ النصي جاهز",
"Trash": "سلة المهملات",
"Try again": "حاول مرة أخرى",
- "Try reading the calendars on this Mac again.": "حاول قراءة التقويمات على هذا الـMac مرة أخرى.",
"Turn it on in System Settings": "فعّله في إعدادات النظام",
"Turn off open at login": "إيقاف الفتح عند تسجيل الدخول",
"Turn on": "تفعيل",
diff --git a/app/src/shared/locales/bn.json b/app/src/shared/locales/bn.json
index 2fba5034..bde4cf67 100644
--- a/app/src/shared/locales/bn.json
+++ b/app/src/shared/locales/bn.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "{name}-এর সঙ্গে মিলে যাওয়া কোনো মিটিং নেই।",
"No matching meetings on {date}.": "{date} তারিখে মিলে যাওয়া কোনো মিটিং নেই।",
"No matching meetings with {name} on {date}.": "{date} তারিখে {name}-এর সঙ্গে মিলে যাওয়া কোনো মিটিং নেই।",
+ "Couldn't load this content.": "এই বিষয়বস্তু লোড করা যায়নি।",
+ "Previous results": "আগের ফলাফল",
"Meetings with {name}": "{name}-এর সঙ্গে মিটিং",
"Hide checklist": "চেকলিস্ট লুকান",
"Next day": "পরের দিন",
"Previous day": "আগের দিন",
+ "Can't read {calendar}": "{calendar} পড়া যাচ্ছে না",
"Yogurt couldn't update the calendar link. Try again.": "Yogurt ক্যালেন্ডারের লিংক আপডেট করতে পারেনি। আবার চেষ্টা করুন।",
"Keep the title, attendees and notes.": "শিরোনাম, অংশগ্রহণকারী ও নোট রাখুন।",
"Unlink calendar event": "ক্যালেন্ডার ইভেন্টের সংযোগ সরান",
@@ -52,6 +55,8 @@
"Appearance": "চেহারা",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "এই Mac-এর অ্যাপগুলো আপনার মিটিং, নোট, ট্রান্সক্রিপ্ট ও রেকর্ডিং পড়তে পারে। কোনো অ্যাপ অনলাইন AI ব্যবহার করলে, সেটি যা পড়ে তা সেই AI-এর কাছে পাঠানো হয়।",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "এই কম্পিউটারের অ্যাপগুলো আপনার মিটিং, নোট, ট্রান্সক্রিপ্ট ও রেকর্ডিং পড়তে পারে। কোনো অ্যাপ অনলাইন AI ব্যবহার করলে, সেটি যা পড়ে তা সেই AI-এর কাছে পাঠানো হয়।",
+ "Couldn't load this conversation.": "এই কথোপকথনটি লোড করা যায়নি।",
+ "Couldn't load your conversations.": "আপনার কথোপকথনগুলি লোড করা যায়নি।",
"Ask": "জিজ্ঞেস করুন",
"Ask Yogurt": "Yogurt-কে জিজ্ঞেস করুন",
"Ask Yogurt (⌘J)": "Yogurt-কে জিজ্ঞেস করুন (⌘J)",
@@ -367,6 +372,7 @@
"Some of this meeting couldn't be transcribed.": "এই মিটিংয়ের কিছু অংশ ট্রান্সক্রাইব করা যায়নি।",
"Spoken language": "কথ্য ভাষা",
"Star": "তারা",
+ "Enter a valid start time.": "একটি বৈধ শুরুর সময় লিখুন।",
"Start recording": "রেকর্ডিং শুরু করুন",
"Starting…": "চালু হচ্ছে…",
"Starts in {count} min": {
@@ -422,7 +428,6 @@
"Transcription ready": "ট্রান্সক্রিপশন প্রস্তুত",
"Trash": "ট্র্যাশ",
"Try again": "আবার চেষ্টা করুন",
- "Try reading the calendars on this Mac again.": "এই Mac-এর ক্যালেন্ডার আবার পড়ার চেষ্টা করুন।",
"Turn it on in System Settings": "সিস্টেম সেটিংসে চালু করুন",
"Turn off open at login": "লগইনের সময় খোলা বন্ধ করুন",
"Turn on": "চালু করুন",
diff --git a/app/src/shared/locales/cs.json b/app/src/shared/locales/cs.json
index 6c881ecc..814c2c74 100644
--- a/app/src/shared/locales/cs.json
+++ b/app/src/shared/locales/cs.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "Žádné odpovídající schůzky s {name}.",
"No matching meetings on {date}.": "Žádné odpovídající schůzky dne {date}.",
"No matching meetings with {name} on {date}.": "Žádné odpovídající schůzky s {name} dne {date}.",
+ "Couldn't load this content.": "Tento obsah se nepodařilo načíst.",
+ "Previous results": "Předchozí výsledky",
"Meetings with {name}": "Schůzky s {name}",
"Hide checklist": "Skrýt kontrolní seznam",
"Next day": "Další den",
"Previous day": "Předchozí den",
+ "Can't read {calendar}": "{calendar} nelze načíst",
"Yogurt couldn't update the calendar link. Try again.": "Yogurt nemohl aktualizovat propojení s kalendářem. Zkuste to znovu.",
"Keep the title, attendees and notes.": "Zachovat název, účastníky a poznámky.",
"Unlink calendar event": "Odpojit událost z kalendáře",
@@ -54,6 +57,8 @@
"Appearance": "Vzhled",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Aplikace na tomto Macu mohou číst vaše schůzky, poznámky, přepisy a nahrávky. Pokud aplikace používá online AI, vše, co přečte, se odešle této AI.",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Aplikace na tomto počítači mohou číst vaše schůzky, poznámky, přepisy a nahrávky. Pokud aplikace používá online AI, vše, co přečte, se odešle této AI.",
+ "Couldn't load this conversation.": "Tuto konverzaci se nepodařilo načíst.",
+ "Couldn't load your conversations.": "Vaše konverzace se nepodařilo načíst.",
"Ask": "Zeptat se",
"Ask Yogurt": "Zeptat se Yogurtu",
"Ask Yogurt (⌘J)": "Zeptat se Yogurtu (⌘J)",
@@ -373,6 +378,7 @@
"Some of this meeting couldn't be transcribed.": "Část této schůzky se nepodařilo přepsat.",
"Spoken language": "Mluvený jazyk",
"Star": "Hvězda",
+ "Enter a valid start time.": "Zadejte platný čas začátku.",
"Start recording": "Začít nahrávat",
"Starting…": "Spouští se…",
"Starts in {count} min": {
@@ -430,7 +436,6 @@
"Transcription ready": "Přepis je připravený",
"Trash": "Koš",
"Try again": "Zkusit znovu",
- "Try reading the calendars on this Mac again.": "Zkuste znovu načíst kalendáře na tomto Macu.",
"Turn it on in System Settings": "Zapněte to v Nastavení systému",
"Turn off open at login": "Vypnout otevírání při přihlášení",
"Turn on": "Zapnout",
diff --git a/app/src/shared/locales/da.json b/app/src/shared/locales/da.json
index f88772b8..f2bb8106 100644
--- a/app/src/shared/locales/da.json
+++ b/app/src/shared/locales/da.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "Ingen matchende møder med {name}.",
"No matching meetings on {date}.": "Ingen matchende møder den {date}.",
"No matching meetings with {name} on {date}.": "Ingen matchende møder med {name} den {date}.",
+ "Couldn't load this content.": "Kunne ikke indlæse dette indhold.",
+ "Previous results": "Tidligere resultater",
"Meetings with {name}": "Møder med {name}",
"Hide checklist": "Skjul tjekliste",
"Next day": "Næste dag",
"Previous day": "Forrige dag",
+ "Can't read {calendar}": "Kan ikke læse {calendar}",
"Yogurt couldn't update the calendar link. Try again.": "Yogurt kunne ikke opdatere koblingen til kalenderen. Prøv igen.",
"Keep the title, attendees and notes.": "Behold titel, deltagere og noter.",
"Unlink calendar event": "Fjern kobling til kalenderbegivenhed",
@@ -52,6 +55,8 @@
"Appearance": "Udseende",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Apps på denne Mac kan læse dine møder, noter, transskriptioner og optagelser. Hvis en app bruger AI på nettet, sendes det, den læser, til den AI.",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Apps på denne computer kan læse dine møder, noter, transskriptioner og optagelser. Hvis en app bruger AI på nettet, sendes det, den læser, til den AI.",
+ "Couldn't load this conversation.": "Kunne ikke indlæse denne samtale.",
+ "Couldn't load your conversations.": "Kunne ikke indlæse dine samtaler.",
"Ask": "Spørg",
"Ask Yogurt": "Spørg Yogurt",
"Ask Yogurt (⌘J)": "Spørg Yogurt (⌘J)",
@@ -367,6 +372,7 @@
"Some of this meeting couldn't be transcribed.": "En del af dette møde kunne ikke transskriberes.",
"Spoken language": "Talesprog",
"Star": "Stjerne",
+ "Enter a valid start time.": "Angiv et gyldigt starttidspunkt.",
"Start recording": "Start optagelse",
"Starting…": "Starter…",
"Starts in {count} min": {
@@ -422,7 +428,6 @@
"Transcription ready": "Transskription klar",
"Trash": "Papirkurv",
"Try again": "Prøv igen",
- "Try reading the calendars on this Mac again.": "Prøv at læse kalenderne på denne Mac igen.",
"Turn it on in System Settings": "Slå det til i Systemindstillinger",
"Turn off open at login": "Slå åbning ved login fra",
"Turn on": "Slå til",
diff --git a/app/src/shared/locales/de.json b/app/src/shared/locales/de.json
index 187fd700..7d235e4c 100644
--- a/app/src/shared/locales/de.json
+++ b/app/src/shared/locales/de.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "Keine passenden Besprechungen mit {name}.",
"No matching meetings on {date}.": "Keine passenden Besprechungen am {date}.",
"No matching meetings with {name} on {date}.": "Keine passenden Besprechungen mit {name} am {date}.",
+ "Couldn't load this content.": "Dieser Inhalt konnte nicht geladen werden.",
+ "Previous results": "Vorherige Ergebnisse",
"Meetings with {name}": "Besprechungen mit {name}",
"Hide checklist": "Checkliste ausblenden",
"Next day": "Nächster Tag",
"Previous day": "Vorheriger Tag",
+ "Can't read {calendar}": "{calendar} lässt sich nicht lesen",
"Yogurt couldn't update the calendar link. Try again.": "Yogurt konnte die Kalenderverknüpfung nicht aktualisieren. Versuch es noch einmal.",
"Keep the title, attendees and notes.": "Titel, Teilnehmende und Notizen behalten.",
"Unlink calendar event": "Kalendertermin trennen",
@@ -52,6 +55,8 @@
"Appearance": "Darstellung",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Apps auf diesem Mac können deine Meetings, Notizen, Transkripte und Aufnahmen lesen. Verwendet eine App eine Online-KI, werden die gelesenen Inhalte an diese KI gesendet.",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Apps auf diesem Computer können deine Meetings, Notizen, Transkripte und Aufnahmen lesen. Verwendet eine App eine Online-KI, werden die gelesenen Inhalte an diese KI gesendet.",
+ "Couldn't load this conversation.": "Diese Unterhaltung konnte nicht geladen werden.",
+ "Couldn't load your conversations.": "Deine Unterhaltungen konnten nicht geladen werden.",
"Ask": "Fragen",
"Ask Yogurt": "Yogurt fragen",
"Ask Yogurt (⌘J)": "Yogurt fragen (⌘J)",
@@ -367,6 +372,7 @@
"Some of this meeting couldn't be transcribed.": "Ein Teil dieses Meetings ließ sich nicht transkribieren.",
"Spoken language": "Gesprochene Sprache",
"Star": "Stern",
+ "Enter a valid start time.": "Gib eine gültige Startzeit ein.",
"Start recording": "Aufnahme starten",
"Starting…": "Wird gestartet …",
"Starts in {count} min": {
@@ -422,7 +428,6 @@
"Transcription ready": "Transkription bereit",
"Trash": "Papierkorb",
"Try again": "Erneut versuchen",
- "Try reading the calendars on this Mac again.": "Versuch noch einmal, die Kalender auf diesem Mac zu lesen.",
"Turn it on in System Settings": "In den Systemeinstellungen einschalten",
"Turn off open at login": "Öffnen bei der Anmeldung ausschalten",
"Turn on": "Einschalten",
diff --git a/app/src/shared/locales/el.json b/app/src/shared/locales/el.json
index 49e3dd1d..26e6c0c7 100644
--- a/app/src/shared/locales/el.json
+++ b/app/src/shared/locales/el.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "Δεν βρέθηκαν συναντήσεις που να ταιριάζουν με {name}.",
"No matching meetings on {date}.": "Δεν βρέθηκαν συναντήσεις που να ταιριάζουν στις {date}.",
"No matching meetings with {name} on {date}.": "Δεν βρέθηκαν συναντήσεις που να ταιριάζουν με {name} στις {date}.",
+ "Couldn't load this content.": "Δεν ήταν δυνατή η φόρτωση αυτού του περιεχομένου.",
+ "Previous results": "Προηγούμενα αποτελέσματα",
"Meetings with {name}": "Συναντήσεις με {name}",
"Hide checklist": "Απόκρυψη λίστας ελέγχου",
"Next day": "Επόμενη ημέρα",
"Previous day": "Προηγούμενη ημέρα",
+ "Can't read {calendar}": "Δεν είναι δυνατή η ανάγνωση του {calendar}",
"Yogurt couldn't update the calendar link. Try again.": "Το Yogurt δεν μπόρεσε να ενημερώσει τη σύνδεση με το ημερολόγιο. Δοκιμάστε ξανά.",
"Keep the title, attendees and notes.": "Διατήρηση τίτλου, συμμετεχόντων και σημειώσεων.",
"Unlink calendar event": "Αποσύνδεση συμβάντος ημερολογίου",
@@ -52,6 +55,8 @@
"Appearance": "Εμφάνιση",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Οι εφαρμογές σε αυτό το Mac μπορούν να διαβάζουν τις συναντήσεις, τις σημειώσεις, τις απομαγνητοφωνήσεις και τις εγγραφές σας. Αν μια εφαρμογή χρησιμοποιεί διαδικτυακή ΤΝ, όσα διαβάζει αποστέλλονται σε αυτή την ΤΝ.",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Οι εφαρμογές σε αυτόν τον υπολογιστή μπορούν να διαβάζουν τις συναντήσεις, τις σημειώσεις, τις απομαγνητοφωνήσεις και τις εγγραφές σας. Αν μια εφαρμογή χρησιμοποιεί διαδικτυακή ΤΝ, όσα διαβάζει αποστέλλονται σε αυτή την ΤΝ.",
+ "Couldn't load this conversation.": "Δεν ήταν δυνατή η φόρτωση αυτής της συνομιλίας.",
+ "Couldn't load your conversations.": "Δεν ήταν δυνατή η φόρτωση των συνομιλιών σας.",
"Ask": "Ρωτήστε",
"Ask Yogurt": "Ρωτήστε το Yogurt",
"Ask Yogurt (⌘J)": "Ρωτήστε το Yogurt (⌘J)",
@@ -367,6 +372,7 @@
"Some of this meeting couldn't be transcribed.": "Μέρος αυτής της σύσκεψης δεν απομαγνητοφωνήθηκε.",
"Spoken language": "Ομιλούμενη γλώσσα",
"Star": "Αστέρι",
+ "Enter a valid start time.": "Εισαγάγετε μια έγκυρη ώρα έναρξης.",
"Start recording": "Έναρξη ηχογράφησης",
"Starting…": "Εκκίνηση…",
"Starts in {count} min": {
@@ -422,7 +428,6 @@
"Transcription ready": "Η απομαγνητοφώνηση είναι έτοιμη",
"Trash": "Κάδος",
"Try again": "Δοκιμάστε ξανά",
- "Try reading the calendars on this Mac again.": "Δοκιμάστε ξανά να διαβάσετε τα ημερολόγια αυτού του Mac.",
"Turn it on in System Settings": "Ενεργοποιήστε το στις Ρυθμίσεις συστήματος",
"Turn off open at login": "Απενεργοποίηση ανοίγματος κατά τη σύνδεση",
"Turn on": "Ενεργοποίηση",
diff --git a/app/src/shared/locales/en.json b/app/src/shared/locales/en.json
index f377c453..ab4e863f 100644
--- a/app/src/shared/locales/en.json
+++ b/app/src/shared/locales/en.json
@@ -5,6 +5,8 @@
"Share…": "Share…",
"View on GitHub": "View on GitHub",
"Yogurt couldn't open the share menu.": "Yogurt couldn't open the share menu.",
+ "Couldn't load your conversations.": "Couldn't load your conversations.",
+ "Couldn't load this conversation.": "Couldn't load this conversation.",
"Open in transcript": "Open in transcript",
"Open note": "Open note",
"Other people": "Other people",
@@ -28,6 +30,8 @@
"No matching meetings with {name}.": "No matching meetings with {name}.",
"No matching meetings on {date}.": "No matching meetings on {date}.",
"No matching meetings with {name} on {date}.": "No matching meetings with {name} on {date}.",
+ "Couldn't load this content.": "Couldn't load this content.",
+ "Previous results": "Previous results",
"Meetings with {name}": "Meetings with {name}",
"{count} min": {
"one": "{count} min",
@@ -173,6 +177,7 @@
"The selected microphone is unavailable, so recording is using your system microphone.": "The selected microphone is unavailable, so recording is using your system microphone.",
"There is no transcript or typed note to summarize.": "There is no transcript or typed note to summarize.",
"This changes the language of Yogurt's menus and buttons.": "This changes the language of Yogurt's menus and buttons.",
+ "Can't read {calendar}": "Can't read {calendar}",
"Yogurt couldn't change the notes model.": "Yogurt couldn't change the notes model.",
"Yogurt couldn't copy.": "Yogurt couldn't copy.",
"Yogurt couldn't delete everything in the Trash.": "Yogurt couldn't delete everything in the Trash.",
@@ -245,6 +250,7 @@
"Yogurt couldn't read this audio file.": "Yogurt couldn't read this audio file.",
"Yogurt couldn't transcribe this file.": "Yogurt couldn't transcribe this file.",
"Reading the file…": "Reading the file…",
+ "Enter a valid start time.": "Enter a valid start time.",
"Start time": "Start time",
"Transcription stopped.": "Transcription stopped.",
"Continue transcription": "Continue transcription",
diff --git a/app/src/shared/locales/es.json b/app/src/shared/locales/es.json
index 10a1d7fe..3d1d9a93 100644
--- a/app/src/shared/locales/es.json
+++ b/app/src/shared/locales/es.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "No hay reuniones coincidentes con {name}.",
"No matching meetings on {date}.": "No hay reuniones coincidentes el {date}.",
"No matching meetings with {name} on {date}.": "No hay reuniones coincidentes con {name} el {date}.",
+ "Couldn't load this content.": "No se pudo cargar este contenido.",
+ "Previous results": "Resultados anteriores",
"Meetings with {name}": "Reuniones con {name}",
"Hide checklist": "Ocultar lista de verificación",
"Next day": "Día siguiente",
"Previous day": "Día anterior",
+ "Can't read {calendar}": "No se puede leer {calendar}",
"Yogurt couldn't update the calendar link. Try again.": "Yogurt no pudo actualizar el vínculo con el calendario. Inténtalo de nuevo.",
"Keep the title, attendees and notes.": "Conservar el título, los asistentes y las notas.",
"Unlink calendar event": "Desvincular evento del calendario",
@@ -53,6 +56,8 @@
"Appearance": "Apariencia",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Las apps de este Mac pueden leer tus reuniones, notas, transcripciones y grabaciones. Si una app usa una IA en línea, lo que lee se envía a esa IA.",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Las apps de este ordenador pueden leer tus reuniones, notas, transcripciones y grabaciones. Si una app usa una IA en línea, lo que lee se envía a esa IA.",
+ "Couldn't load this conversation.": "No se pudo cargar esta conversación.",
+ "Couldn't load your conversations.": "No se pudieron cargar tus conversaciones.",
"Ask": "Preguntar",
"Ask Yogurt": "Preguntar a Yogurt",
"Ask Yogurt (⌘J)": "Preguntar a Yogurt (⌘J)",
@@ -370,6 +375,7 @@
"Some of this meeting couldn't be transcribed.": "Una parte de esta reunión no se pudo transcribir.",
"Spoken language": "Idioma hablado",
"Star": "Estrella",
+ "Enter a valid start time.": "Introduce una hora de inicio válida.",
"Start recording": "Empezar a grabar",
"Starting…": "Iniciando…",
"Starts in {count} min": {
@@ -426,7 +432,6 @@
"Transcription ready": "Transcripción lista",
"Trash": "Papelera",
"Try again": "Reintentar",
- "Try reading the calendars on this Mac again.": "Intenta leer de nuevo los calendarios de este Mac.",
"Turn it on in System Settings": "Actívalo en Ajustes del Sistema",
"Turn off open at login": "Desactivar la apertura al iniciar sesión",
"Turn on": "Activar",
diff --git a/app/src/shared/locales/fi.json b/app/src/shared/locales/fi.json
index db5d66f4..52aa25d9 100644
--- a/app/src/shared/locales/fi.json
+++ b/app/src/shared/locales/fi.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "Ei vastaavia kokouksia henkilön {name} kanssa.",
"No matching meetings on {date}.": "Ei vastaavia kokouksia päivänä {date}.",
"No matching meetings with {name} on {date}.": "Ei vastaavia kokouksia henkilön {name} kanssa päivänä {date}.",
+ "Couldn't load this content.": "Tätä sisältöä ei voitu ladata.",
+ "Previous results": "Aiemmat tulokset",
"Meetings with {name}": "Kokoukset henkilön {name} kanssa",
"Hide checklist": "Piilota tarkistuslista",
"Next day": "Seuraava päivä",
"Previous day": "Edellinen päivä",
+ "Can't read {calendar}": "Kohdetta {calendar} ei voi lukea",
"Yogurt couldn't update the calendar link. Try again.": "Yogurt ei voinut päivittää kalenterilinkkiä. Yritä uudelleen.",
"Keep the title, attendees and notes.": "Säilytä otsikko, osallistujat ja muistiinpanot.",
"Unlink calendar event": "Irrota kalenteritapahtuma",
@@ -52,6 +55,8 @@
"Appearance": "Ulkoasu",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Tämän Macin apit voivat lukea kokouksiasi, muistiinpanojasi, litterointejasi ja tallenteitasi. Jos appi käyttää verkossa toimivaa tekoälyä, sen lukemat tiedot lähetetään kyseiselle tekoälylle.",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Tämän tietokoneen apit voivat lukea kokouksiasi, muistiinpanojasi, litterointejasi ja tallenteitasi. Jos appi käyttää verkossa toimivaa tekoälyä, sen lukemat tiedot lähetetään kyseiselle tekoälylle.",
+ "Couldn't load this conversation.": "Tätä keskustelua ei voitu ladata.",
+ "Couldn't load your conversations.": "Keskustelujasi ei voitu ladata.",
"Ask": "Kysy",
"Ask Yogurt": "Kysy Yogurtilta",
"Ask Yogurt (⌘J)": "Kysy Yogurtilta (⌘J)",
@@ -367,6 +372,7 @@
"Some of this meeting couldn't be transcribed.": "Osaa tästä kokouksesta ei voitu litteroida.",
"Spoken language": "Puhuttu kieli",
"Star": "Tähti",
+ "Enter a valid start time.": "Anna kelvollinen aloitusaika.",
"Start recording": "Aloita tallennus",
"Starting…": "Käynnistetään…",
"Starts in {count} min": {
@@ -422,7 +428,6 @@
"Transcription ready": "Litterointi valmis",
"Trash": "Roskakori",
"Try again": "Yritä uudelleen",
- "Try reading the calendars on this Mac again.": "Yritä lukea tämän Macin kalenterit uudelleen.",
"Turn it on in System Settings": "Laita päälle Järjestelmäasetuksissa",
"Turn off open at login": "Poista avaaminen sisäänkirjauduttaessa käytöstä",
"Turn on": "Laita päälle",
diff --git a/app/src/shared/locales/fil.json b/app/src/shared/locales/fil.json
index 76a10086..b23ce633 100644
--- a/app/src/shared/locales/fil.json
+++ b/app/src/shared/locales/fil.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "Walang tumutugmang pulong kasama si {name}.",
"No matching meetings on {date}.": "Walang tumutugmang pulong sa {date}.",
"No matching meetings with {name} on {date}.": "Walang tumutugmang pulong kasama si {name} sa {date}.",
+ "Couldn't load this content.": "Hindi ma-load ang nilalamang ito.",
+ "Previous results": "Mga naunang resulta",
"Meetings with {name}": "Mga pulong kasama si {name}",
"Hide checklist": "Itago ang checklist",
"Next day": "Susunod na araw",
"Previous day": "Nakaraang araw",
+ "Can't read {calendar}": "Hindi mabasa ang {calendar}",
"Yogurt couldn't update the calendar link. Try again.": "Hindi ma-update ng Yogurt ang link sa calendar. Subukan ulit.",
"Keep the title, attendees and notes.": "Panatilihin ang pamagat, mga kalahok at mga note.",
"Unlink calendar event": "Alisin ang link sa event ng calendar",
@@ -52,6 +55,8 @@
"Appearance": "Itsura",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Mababasa ng mga app sa Mac na ito ang iyong mga meeting, tala, transcript, at recording. Kung gumagamit ang isang app ng online AI, ipinapadala sa AI na iyon ang binabasa nito.",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Mababasa ng mga app sa computer na ito ang iyong mga meeting, tala, transcript, at recording. Kung gumagamit ang isang app ng online AI, ipinapadala sa AI na iyon ang binabasa nito.",
+ "Couldn't load this conversation.": "Hindi ma-load ang usapang ito.",
+ "Couldn't load your conversations.": "Hindi ma-load ang mga usapan mo.",
"Ask": "Magtanong",
"Ask Yogurt": "Tanungin ang Yogurt",
"Ask Yogurt (⌘J)": "Tanungin ang Yogurt (⌘J)",
@@ -367,6 +372,7 @@
"Some of this meeting couldn't be transcribed.": "Hindi na-transcribe ang bahagi ng meeting na ito.",
"Spoken language": "Wikang sinasalita",
"Star": "Bituin",
+ "Enter a valid start time.": "Maglagay ng wastong oras ng pagsisimula.",
"Start recording": "Magsimulang mag-record",
"Starting…": "Nagsisimula…",
"Starts in {count} min": {
@@ -422,7 +428,6 @@
"Transcription ready": "Handa na ang transcription",
"Trash": "Trash",
"Try again": "Subukan ulit",
- "Try reading the calendars on this Mac again.": "Subukang basahin ulit ang mga calendar sa Mac na ito.",
"Turn it on in System Settings": "I-on ito sa System Settings",
"Turn off open at login": "I-off ang pagbukas sa pag-login",
"Turn on": "I-on",
diff --git a/app/src/shared/locales/fr.json b/app/src/shared/locales/fr.json
index f99347d1..6938ac34 100644
--- a/app/src/shared/locales/fr.json
+++ b/app/src/shared/locales/fr.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "Aucune réunion correspondante avec {name}.",
"No matching meetings on {date}.": "Aucune réunion correspondante le {date}.",
"No matching meetings with {name} on {date}.": "Aucune réunion correspondante avec {name} le {date}.",
+ "Couldn't load this content.": "Impossible de charger ce contenu.",
+ "Previous results": "Résultats précédents",
"Meetings with {name}": "Réunions avec {name}",
"Hide checklist": "Masquer la liste de contrôle",
"Next day": "Jour suivant",
"Previous day": "Jour précédent",
+ "Can't read {calendar}": "Impossible de lire {calendar}",
"Yogurt couldn't update the calendar link. Try again.": "Yogurt n’a pas pu mettre à jour le lien avec le calendrier. Réessayez.",
"Keep the title, attendees and notes.": "Garder le titre, les participants et les notes.",
"Unlink calendar event": "Dissocier l’événement du calendrier",
@@ -53,6 +56,8 @@
"Appearance": "Apparence",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Les apps sur ce Mac peuvent lire vos réunions, notes, transcriptions et enregistrements. Si une app utilise une IA en ligne, ce qu’elle lit est envoyé à cette IA.",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Les apps sur cet ordinateur peuvent lire vos réunions, notes, transcriptions et enregistrements. Si une app utilise une IA en ligne, ce qu’elle lit est envoyé à cette IA.",
+ "Couldn't load this conversation.": "Impossible de charger cette conversation.",
+ "Couldn't load your conversations.": "Impossible de charger vos conversations.",
"Ask": "Demander",
"Ask Yogurt": "Demander à Yogurt",
"Ask Yogurt (⌘J)": "Demander à Yogurt (⌘J)",
@@ -370,6 +375,7 @@
"Some of this meeting couldn't be transcribed.": "Une partie de cette réunion n’a pas pu être transcrite.",
"Spoken language": "Langue parlée",
"Star": "Étoile",
+ "Enter a valid start time.": "Saisissez une heure de début valide.",
"Start recording": "Lancer l’enregistrement",
"Starting…": "Démarrage…",
"Starts in {count} min": {
@@ -426,7 +432,6 @@
"Transcription ready": "Transcription prête",
"Trash": "Corbeille",
"Try again": "Réessayer",
- "Try reading the calendars on this Mac again.": "Réessayez de lire les calendriers de ce Mac.",
"Turn it on in System Settings": "Activez-le dans Réglages Système",
"Turn off open at login": "Désactiver l’ouverture à la connexion",
"Turn on": "Activer",
diff --git a/app/src/shared/locales/he.json b/app/src/shared/locales/he.json
index 31df3be5..27b201a2 100644
--- a/app/src/shared/locales/he.json
+++ b/app/src/shared/locales/he.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "אין פגישות תואמות עם {name}.",
"No matching meetings on {date}.": "אין פגישות תואמות בתאריך {date}.",
"No matching meetings with {name} on {date}.": "אין פגישות תואמות עם {name} בתאריך {date}.",
+ "Couldn't load this content.": "לא ניתן היה לטעון את התוכן הזה.",
+ "Previous results": "תוצאות קודמות",
"Meetings with {name}": "פגישות עם {name}",
"Hide checklist": "הסתרת רשימת הבדיקה",
"Next day": "היום הבא",
"Previous day": "היום הקודם",
+ "Can't read {calendar}": "לא ניתן לקרוא את {calendar}",
"Yogurt couldn't update the calendar link. Try again.": "Yogurt לא הצליח לעדכן את הקישור ליומן. כדאי לנסות שוב.",
"Keep the title, attendees and notes.": "לשמור את הכותרת, המשתתפים וההערות.",
"Unlink calendar event": "ניתוק אירוע היומן",
@@ -53,6 +56,8 @@
"Appearance": "מראה",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "אפליקציות ב-Mac הזה יכולות לקרוא את הפגישות, ההערות, התמלילים וההקלטות שלך. אם אפליקציה משתמשת בבינה מלאכותית מקוונת, התוכן שהיא קוראת נשלח אליה.",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "אפליקציות במחשב הזה יכולות לקרוא את הפגישות, ההערות, התמלילים וההקלטות שלך. אם אפליקציה משתמשת בבינה מלאכותית מקוונת, התוכן שהיא קוראת נשלח אליה.",
+ "Couldn't load this conversation.": "לא ניתן היה לטעון את השיחה הזו.",
+ "Couldn't load your conversations.": "לא ניתן היה לטעון את השיחות שלך.",
"Ask": "לשאול",
"Ask Yogurt": "לשאול את Yogurt",
"Ask Yogurt (⌘J)": "לשאול את Yogurt ‏(⌘J)",
@@ -370,6 +375,7 @@
"Some of this meeting couldn't be transcribed.": "לא ניתן היה לתמלל חלק מהפגישה הזו.",
"Spoken language": "שפת הדיבור",
"Star": "כוכב",
+ "Enter a valid start time.": "יש להזין שעת התחלה תקינה.",
"Start recording": "התחלת הקלטה",
"Starting…": "מתחיל…",
"Starts in {count} min": {
@@ -426,7 +432,6 @@
"Transcription ready": "התמלול מוכן",
"Trash": "פח",
"Try again": "ניסיון חוזר",
- "Try reading the calendars on this Mac again.": "כדאי לנסות שוב לקרוא את היומנים ב־Mac הזה.",
"Turn it on in System Settings": "להפעיל בהגדרות המערכת",
"Turn off open at login": "ביטול הפתיחה בעת ההתחברות",
"Turn on": "הפעלה",
diff --git a/app/src/shared/locales/hi.json b/app/src/shared/locales/hi.json
index 56214557..322c0a3e 100644
--- a/app/src/shared/locales/hi.json
+++ b/app/src/shared/locales/hi.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "{name} के साथ कोई मेल खाती मीटिंग नहीं मिली।",
"No matching meetings on {date}.": "{date} को कोई मेल खाती मीटिंग नहीं मिली।",
"No matching meetings with {name} on {date}.": "{date} को {name} के साथ कोई मेल खाती मीटिंग नहीं मिली।",
+ "Couldn't load this content.": "यह सामग्री लोड नहीं हो सकी।",
+ "Previous results": "पिछले नतीजे",
"Meetings with {name}": "{name} के साथ मीटिंग",
"Hide checklist": "चेकलिस्ट छिपाएँ",
"Next day": "अगला दिन",
"Previous day": "पिछला दिन",
+ "Can't read {calendar}": "{calendar} को पढ़ नहीं सकते",
"Yogurt couldn't update the calendar link. Try again.": "Yogurt कैलेंडर लिंक अपडेट नहीं कर सका। फिर से कोशिश करें।",
"Keep the title, attendees and notes.": "टाइटल, भाग लेने वाले और नोट्स रखें।",
"Unlink calendar event": "कैलेंडर इवेंट से अलग करें",
@@ -52,6 +55,8 @@
"Appearance": "रूप-रंग",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "इस Mac पर ऐप्स आपकी मीटिंग, नोट्स, ट्रांसक्रिप्ट और रिकॉर्डिंग पढ़ सकते हैं। अगर कोई ऐप ऑनलाइन AI का इस्तेमाल करता है, तो वह जो पढ़ता है वह उस AI को भेजा जाता है।",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "इस कंप्यूटर पर ऐप्स आपकी मीटिंग, नोट्स, ट्रांसक्रिप्ट और रिकॉर्डिंग पढ़ सकते हैं। अगर कोई ऐप ऑनलाइन AI का इस्तेमाल करता है, तो वह जो पढ़ता है वह उस AI को भेजा जाता है।",
+ "Couldn't load this conversation.": "यह बातचीत लोड नहीं हो सकी।",
+ "Couldn't load your conversations.": "आपकी बातचीत लोड नहीं हो सकीं।",
"Ask": "पूछें",
"Ask Yogurt": "Yogurt से पूछें",
"Ask Yogurt (⌘J)": "Yogurt से पूछें (⌘J)",
@@ -367,6 +372,7 @@
"Some of this meeting couldn't be transcribed.": "इस मीटिंग का कुछ हिस्सा ट्रांसक्राइब नहीं हो सका।",
"Spoken language": "बोली जाने वाली भाषा",
"Star": "तारा",
+ "Enter a valid start time.": "शुरू होने का मान्य समय दर्ज करें।",
"Start recording": "रिकॉर्डिंग शुरू करें",
"Starting…": "शुरू हो रहा है…",
"Starts in {count} min": {
@@ -422,7 +428,6 @@
"Transcription ready": "ट्रांसक्रिप्शन तैयार है",
"Trash": "ट्रैश",
"Try again": "फिर से कोशिश करें",
- "Try reading the calendars on this Mac again.": "इस Mac के कैलेंडर फिर से पढ़ने की कोशिश करें।",
"Turn it on in System Settings": "सिस्टम सेटिंग्ज़ में चालू करें",
"Turn off open at login": "लॉगिन पर खुलना बंद करें",
"Turn on": "चालू करें",
diff --git a/app/src/shared/locales/hu.json b/app/src/shared/locales/hu.json
index c753577c..2bc825d2 100644
--- a/app/src/shared/locales/hu.json
+++ b/app/src/shared/locales/hu.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "Nincs megfelelő megbeszélés vele: {name}.",
"No matching meetings on {date}.": "Nincs megfelelő megbeszélés ekkor: {date}.",
"No matching meetings with {name} on {date}.": "Nincs megfelelő megbeszélés vele: {name}, ekkor: {date}.",
+ "Couldn't load this content.": "Nem sikerült betölteni ezt a tartalmat.",
+ "Previous results": "Korábbi találatok",
"Meetings with {name}": "Megbeszélések vele: {name}",
"Hide checklist": "Ellenőrzőlista elrejtése",
"Next day": "Következő nap",
"Previous day": "Előző nap",
+ "Can't read {calendar}": "Nem olvasható: {calendar}",
"Yogurt couldn't update the calendar link. Try again.": "A Yogurt nem tudta frissíteni a naptárkapcsolatot. Próbáld újra.",
"Keep the title, attendees and notes.": "A cím, a résztvevők és a jegyzetek megtartása.",
"Unlink calendar event": "Naptáresemény leválasztása",
@@ -52,6 +55,8 @@
"Appearance": "Megjelenés",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "A Macen lévő appok olvashatják a megbeszéléseidet, jegyzeteidet, átirataidat és felvételeidet. Ha egy app online MI-t használ, az olvasott adatok ahhoz az MI-hez kerülnek.",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "A számítógépen lévő appok olvashatják a megbeszéléseidet, jegyzeteidet, átirataidat és felvételeidet. Ha egy app online MI-t használ, az olvasott adatok ahhoz az MI-hez kerülnek.",
+ "Couldn't load this conversation.": "Nem sikerült betölteni ezt a beszélgetést.",
+ "Couldn't load your conversations.": "Nem sikerült betölteni a beszélgetéseidet.",
"Ask": "Kérdezz",
"Ask Yogurt": "Kérdezd a Yogurtot",
"Ask Yogurt (⌘J)": "Kérdezd a Yogurtot (⌘J)",
@@ -367,6 +372,7 @@
"Some of this meeting couldn't be transcribed.": "A megbeszélés egy részét nem sikerült átírni.",
"Spoken language": "Beszélt nyelv",
"Star": "Csillag",
+ "Enter a valid start time.": "Adj meg érvényes kezdési időt.",
"Start recording": "Felvétel indítása",
"Starting…": "Indítás…",
"Starts in {count} min": {
@@ -422,7 +428,6 @@
"Transcription ready": "Az átírás készen áll",
"Trash": "Kuka",
"Try again": "Próbáld újra",
- "Try reading the calendars on this Mac again.": "Próbáld újra beolvasni a Mac naptárait.",
"Turn it on in System Settings": "Kapcsold be a Rendszerbeállításokban",
"Turn off open at login": "Megnyitás kikapcsolása bejelentkezéskor",
"Turn on": "Bekapcsolás",
diff --git a/app/src/shared/locales/id.json b/app/src/shared/locales/id.json
index 873b6375..655bc126 100644
--- a/app/src/shared/locales/id.json
+++ b/app/src/shared/locales/id.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "Tidak ada rapat yang cocok dengan {name}.",
"No matching meetings on {date}.": "Tidak ada rapat yang cocok pada {date}.",
"No matching meetings with {name} on {date}.": "Tidak ada rapat yang cocok dengan {name} pada {date}.",
+ "Couldn't load this content.": "Konten ini gagal dimuat.",
+ "Previous results": "Hasil sebelumnya",
"Meetings with {name}": "Rapat dengan {name}",
"Hide checklist": "Sembunyikan daftar periksa",
"Next day": "Hari berikutnya",
"Previous day": "Hari sebelumnya",
+ "Can't read {calendar}": "Tidak dapat membaca {calendar}",
"Yogurt couldn't update the calendar link. Try again.": "Yogurt tidak bisa memperbarui tautan kalender. Coba lagi.",
"Keep the title, attendees and notes.": "Pertahankan judul, peserta, dan catatan.",
"Unlink calendar event": "Lepaskan tautan acara kalender",
@@ -49,6 +52,8 @@
"Appearance": "Tampilan",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "App di Mac ini dapat membaca rapat, catatan, transkrip, dan rekaman Anda. Jika app menggunakan AI online, apa yang dibacanya dikirim ke AI tersebut.",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "App di komputer ini dapat membaca rapat, catatan, transkrip, dan rekaman Anda. Jika app menggunakan AI online, apa yang dibacanya dikirim ke AI tersebut.",
+ "Couldn't load this conversation.": "Percakapan ini gagal dimuat.",
+ "Couldn't load your conversations.": "Percakapan Anda gagal dimuat.",
"Ask": "Tanya",
"Ask Yogurt": "Tanya Yogurt",
"Ask Yogurt (⌘J)": "Tanya Yogurt (⌘J)",
@@ -358,6 +363,7 @@
"Some of this meeting couldn't be transcribed.": "Sebagian rapat ini tidak bisa ditranskripsi.",
"Spoken language": "Bahasa lisan",
"Star": "Bintang",
+ "Enter a valid start time.": "Masukkan waktu mulai yang valid.",
"Start recording": "Mulai merekam",
"Starting…": "Memulai…",
"Starts in {count} min": "Mulai dalam {count} mnt",
@@ -410,7 +416,6 @@
"Transcription ready": "Transkripsi siap",
"Trash": "Sampah",
"Try again": "Coba lagi",
- "Try reading the calendars on this Mac again.": "Coba baca kalender di Mac ini lagi.",
"Turn it on in System Settings": "Aktifkan di Pengaturan Sistem",
"Turn off open at login": "Nonaktifkan buka saat masuk",
"Turn on": "Aktifkan",
diff --git a/app/src/shared/locales/it.json b/app/src/shared/locales/it.json
index 47be596b..783e8ed8 100644
--- a/app/src/shared/locales/it.json
+++ b/app/src/shared/locales/it.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "Nessuna riunione corrispondente con {name}.",
"No matching meetings on {date}.": "Nessuna riunione corrispondente in data {date}.",
"No matching meetings with {name} on {date}.": "Nessuna riunione corrispondente con {name} in data {date}.",
+ "Couldn't load this content.": "Impossibile caricare questo contenuto.",
+ "Previous results": "Risultati precedenti",
"Meetings with {name}": "Riunioni con {name}",
"Hide checklist": "Nascondi checklist",
"Next day": "Giorno successivo",
"Previous day": "Giorno precedente",
+ "Can't read {calendar}": "Impossibile leggere {calendar}",
"Yogurt couldn't update the calendar link. Try again.": "Yogurt non è riuscito ad aggiornare il collegamento al calendario. Riprova.",
"Keep the title, attendees and notes.": "Mantieni titolo, partecipanti e note.",
"Unlink calendar event": "Scollega evento del calendario",
@@ -53,6 +56,8 @@
"Appearance": "Aspetto",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Le app su questo Mac possono leggere riunioni, note, trascrizioni e registrazioni. Se un’app usa un’IA online, ciò che legge viene inviato a quell’IA.",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Le app su questo computer possono leggere riunioni, note, trascrizioni e registrazioni. Se un’app usa un’IA online, ciò che legge viene inviato a quell’IA.",
+ "Couldn't load this conversation.": "Impossibile caricare questa conversazione.",
+ "Couldn't load your conversations.": "Impossibile caricare le tue conversazioni.",
"Ask": "Chiedi",
"Ask Yogurt": "Chiedi a Yogurt",
"Ask Yogurt (⌘J)": "Chiedi a Yogurt (⌘J)",
@@ -370,6 +375,7 @@
"Some of this meeting couldn't be transcribed.": "Una parte di questa riunione non è stata trascritta.",
"Spoken language": "Lingua parlata",
"Star": "Stella",
+ "Enter a valid start time.": "Inserisci un orario di inizio valido.",
"Start recording": "Avvia registrazione",
"Starting…": "Avvio…",
"Starts in {count} min": {
@@ -426,7 +432,6 @@
"Transcription ready": "Trascrizione pronta",
"Trash": "Cestino",
"Try again": "Riprova",
- "Try reading the calendars on this Mac again.": "Prova di nuovo a leggere i calendari di questo Mac.",
"Turn it on in System Settings": "Attivalo in Impostazioni di Sistema",
"Turn off open at login": "Disattiva l’apertura all’accesso",
"Turn on": "Attiva",
diff --git a/app/src/shared/locales/ja.json b/app/src/shared/locales/ja.json
index cfe60c15..db57c3da 100644
--- a/app/src/shared/locales/ja.json
+++ b/app/src/shared/locales/ja.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "{name}との一致する会議はありません。",
"No matching meetings on {date}.": "{date}に一致する会議はありません。",
"No matching meetings with {name} on {date}.": "{date}の{name}との一致する会議はありません。",
+ "Couldn't load this content.": "この内容を読み込めませんでした。",
+ "Previous results": "前の検索結果",
"Meetings with {name}": "{name} との会議",
"Hide checklist": "チェックリストを非表示",
"Next day": "次の日",
"Previous day": "前の日",
+ "Can't read {calendar}": "{calendar} を読み込めません",
"Yogurt couldn't update the calendar link. Try again.": "Yogurtはカレンダーとのリンクを更新できませんでした。もう一度お試しください。",
"Keep the title, attendees and notes.": "タイトル、参加者、メモは残します。",
"Unlink calendar event": "カレンダーの予定とのリンクを解除",
@@ -49,6 +52,8 @@
"Appearance": "外観",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "このMac上のアプリは、会議、メモ、文字起こし、録音を読み取れます。アプリがオンラインAIを使う場合、読み取った内容はそのAIに送信されます。",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "このコンピュータ上のアプリは、会議、メモ、文字起こし、録音を読み取れます。アプリがオンラインAIを使う場合、読み取った内容はそのAIに送信されます。",
+ "Couldn't load this conversation.": "この会話を読み込めませんでした。",
+ "Couldn't load your conversations.": "会話の一覧を読み込めませんでした。",
"Ask": "質問",
"Ask Yogurt": "Yogurtに質問",
"Ask Yogurt (⌘J)": "Yogurtに質問(⌘J)",
@@ -358,6 +363,7 @@
"Some of this meeting couldn't be transcribed.": "このミーティングの一部を文字起こしできませんでした。",
"Spoken language": "話す言語",
"Star": "星",
+ "Enter a valid start time.": "有効な開始時刻を入力してください。",
"Start recording": "録音を開始",
"Starting…": "開始中…",
"Starts in {count} min": "あと{count}分で開始",
@@ -410,7 +416,6 @@
"Transcription ready": "文字起こしの準備ができました",
"Trash": "ゴミ箱",
"Try again": "もう一度試す",
- "Try reading the calendars on this Mac again.": "このMacのカレンダーをもう一度読み込んでください。",
"Turn it on in System Settings": "システム設定でオンにする",
"Turn off open at login": "ログイン時に開く設定をオフにする",
"Turn on": "オンにする",
diff --git a/app/src/shared/locales/ko.json b/app/src/shared/locales/ko.json
index f426d73c..2c1201d3 100644
--- a/app/src/shared/locales/ko.json
+++ b/app/src/shared/locales/ko.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "{name}님과의 일치하는 회의가 없습니다.",
"No matching meetings on {date}.": "{date}에 일치하는 회의가 없습니다.",
"No matching meetings with {name} on {date}.": "{date}에 {name}님과의 일치하는 회의가 없습니다.",
+ "Couldn't load this content.": "이 내용을 불러올 수 없습니다.",
+ "Previous results": "이전 결과",
"Meetings with {name}": "{name} 님과의 회의",
"Hide checklist": "체크리스트 숨기기",
"Next day": "다음 날",
"Previous day": "이전 날",
+ "Can't read {calendar}": "{calendar}을(를) 읽을 수 없습니다",
"Yogurt couldn't update the calendar link. Try again.": "Yogurt가 캘린더 연결을 업데이트하지 못했어요. 다시 시도하세요.",
"Keep the title, attendees and notes.": "제목, 참석자, 노트를 유지해요.",
"Unlink calendar event": "캘린더 일정 연결 해제",
@@ -49,6 +52,8 @@
"Appearance": "화면 스타일",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "이 Mac의 앱은 회의, 메모, 녹취록 및 녹음을 읽을 수 있습니다. 앱이 온라인 AI를 사용하는 경우 읽은 내용이 해당 AI로 전송됩니다.",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "이 컴퓨터의 앱은 회의, 메모, 녹취록 및 녹음을 읽을 수 있습니다. 앱이 온라인 AI를 사용하는 경우 읽은 내용이 해당 AI로 전송됩니다.",
+ "Couldn't load this conversation.": "이 대화를 불러올 수 없습니다.",
+ "Couldn't load your conversations.": "대화 목록을 불러올 수 없습니다.",
"Ask": "질문",
"Ask Yogurt": "Yogurt에게 질문",
"Ask Yogurt (⌘J)": "Yogurt에게 질문 (⌘J)",
@@ -358,6 +363,7 @@
"Some of this meeting couldn't be transcribed.": "이 회의의 일부는 녹취하지 못했어요.",
"Spoken language": "말하는 언어",
"Star": "별",
+ "Enter a valid start time.": "올바른 시작 시간을 입력하세요.",
"Start recording": "녹음 시작",
"Starting…": "시작 중…",
"Starts in {count} min": "{count}분 후 시작",
@@ -410,7 +416,6 @@
"Transcription ready": "녹취 준비 완료",
"Trash": "휴지통",
"Try again": "다시 시도",
- "Try reading the calendars on this Mac again.": "이 Mac의 캘린더를 다시 읽어 보세요.",
"Turn it on in System Settings": "시스템 설정에서 켜기",
"Turn off open at login": "로그인 시 열기 끄기",
"Turn on": "켜기",
diff --git a/app/src/shared/locales/ms.json b/app/src/shared/locales/ms.json
index 27f46055..84fb3aef 100644
--- a/app/src/shared/locales/ms.json
+++ b/app/src/shared/locales/ms.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "Tiada mesyuarat yang sepadan dengan {name}.",
"No matching meetings on {date}.": "Tiada mesyuarat yang sepadan pada {date}.",
"No matching meetings with {name} on {date}.": "Tiada mesyuarat yang sepadan dengan {name} pada {date}.",
+ "Couldn't load this content.": "Kandungan ini tidak dapat dimuatkan.",
+ "Previous results": "Hasil sebelumnya",
"Meetings with {name}": "Mesyuarat dengan {name}",
"Hide checklist": "Sembunyikan senarai semak",
"Next day": "Hari seterusnya",
"Previous day": "Hari sebelumnya",
+ "Can't read {calendar}": "Tidak dapat membaca {calendar}",
"Yogurt couldn't update the calendar link. Try again.": "Yogurt tidak dapat mengemas kini pautan kalendar. Cuba lagi.",
"Keep the title, attendees and notes.": "Kekalkan tajuk, peserta dan nota.",
"Unlink calendar event": "Nyahpaut acara kalendar",
@@ -49,6 +52,8 @@
"Appearance": "Penampilan",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "App pada Mac ini boleh membaca mesyuarat, nota, transkrip dan rakaman anda. Jika app menggunakan AI dalam talian, perkara yang dibacanya dihantar kepada AI tersebut.",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "App pada komputer ini boleh membaca mesyuarat, nota, transkrip dan rakaman anda. Jika app menggunakan AI dalam talian, perkara yang dibacanya dihantar kepada AI tersebut.",
+ "Couldn't load this conversation.": "Perbualan ini tidak dapat dimuatkan.",
+ "Couldn't load your conversations.": "Perbualan anda tidak dapat dimuatkan.",
"Ask": "Tanya",
"Ask Yogurt": "Tanya Yogurt",
"Ask Yogurt (⌘J)": "Tanya Yogurt (⌘J)",
@@ -358,6 +363,7 @@
"Some of this meeting couldn't be transcribed.": "Sebahagian mesyuarat ini tidak dapat ditranskripsikan.",
"Spoken language": "Bahasa pertuturan",
"Star": "Bintang",
+ "Enter a valid start time.": "Masukkan masa mula yang sah.",
"Start recording": "Mula merakam",
"Starting…": "Memulakan…",
"Starts in {count} min": "Bermula dalam {count} min",
@@ -410,7 +416,6 @@
"Transcription ready": "Transkripsi sedia",
"Trash": "Tong Sampah",
"Try again": "Cuba lagi",
- "Try reading the calendars on this Mac again.": "Cuba baca kalendar di Mac ini sekali lagi.",
"Turn it on in System Settings": "Hidupkan dalam Seting Sistem",
"Turn off open at login": "Matikan buka semasa log masuk",
"Turn on": "Hidupkan",
diff --git a/app/src/shared/locales/nb.json b/app/src/shared/locales/nb.json
index f15b574b..df5265e9 100644
--- a/app/src/shared/locales/nb.json
+++ b/app/src/shared/locales/nb.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "Ingen samsvarende møter med {name}.",
"No matching meetings on {date}.": "Ingen samsvarende møter den {date}.",
"No matching meetings with {name} on {date}.": "Ingen samsvarende møter med {name} den {date}.",
+ "Couldn't load this content.": "Kunne ikke laste inn dette innholdet.",
+ "Previous results": "Tidligere resultater",
"Meetings with {name}": "Møter med {name}",
"Hide checklist": "Skjul sjekkliste",
"Next day": "Neste dag",
"Previous day": "Forrige dag",
+ "Can't read {calendar}": "Kan ikke lese {calendar}",
"Yogurt couldn't update the calendar link. Try again.": "Yogurt kunne ikke oppdatere koblingen til kalenderen. Prøv igjen.",
"Keep the title, attendees and notes.": "Behold tittel, deltakere og notater.",
"Unlink calendar event": "Koble fra kalenderhendelse",
@@ -52,6 +55,8 @@
"Appearance": "Utseende",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Apper på denne Macen kan lese møtene, notatene, transkripsjonene og opptakene dine. Hvis en app bruker KI på nettet, sendes det den leser til den KI-en.",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Apper på denne datamaskinen kan lese møtene, notatene, transkripsjonene og opptakene dine. Hvis en app bruker KI på nettet, sendes det den leser til den KI-en.",
+ "Couldn't load this conversation.": "Kunne ikke laste inn denne samtalen.",
+ "Couldn't load your conversations.": "Kunne ikke laste inn samtalene dine.",
"Ask": "Spør",
"Ask Yogurt": "Spør Yogurt",
"Ask Yogurt (⌘J)": "Spør Yogurt (⌘J)",
@@ -367,6 +372,7 @@
"Some of this meeting couldn't be transcribed.": "Noe av dette møtet kunne ikke transkriberes.",
"Spoken language": "Talespråk",
"Star": "Stjerne",
+ "Enter a valid start time.": "Angi et gyldig starttidspunkt.",
"Start recording": "Start opptak",
"Starting…": "Starter …",
"Starts in {count} min": {
@@ -422,7 +428,6 @@
"Transcription ready": "Transkripsjon klar",
"Trash": "Papirkurv",
"Try again": "Prøv igjen",
- "Try reading the calendars on this Mac again.": "Prøv å lese kalenderne på denne Macen igjen.",
"Turn it on in System Settings": "Slå det på i Systeminnstillinger",
"Turn off open at login": "Slå av åpning ved innlogging",
"Turn on": "Slå på",
diff --git a/app/src/shared/locales/nl.json b/app/src/shared/locales/nl.json
index 875b7ff5..c9a412c9 100644
--- a/app/src/shared/locales/nl.json
+++ b/app/src/shared/locales/nl.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "Geen overeenkomende vergaderingen met {name}.",
"No matching meetings on {date}.": "Geen overeenkomende vergaderingen op {date}.",
"No matching meetings with {name} on {date}.": "Geen overeenkomende vergaderingen met {name} op {date}.",
+ "Couldn't load this content.": "Deze inhoud kon niet worden geladen.",
+ "Previous results": "Vorige resultaten",
"Meetings with {name}": "Vergaderingen met {name}",
"Hide checklist": "Checklist verbergen",
"Next day": "Volgende dag",
"Previous day": "Vorige dag",
+ "Can't read {calendar}": "Kan {calendar} niet lezen",
"Yogurt couldn't update the calendar link. Try again.": "Yogurt kon de koppeling met de agenda niet bijwerken. Probeer het opnieuw.",
"Keep the title, attendees and notes.": "Titel, deelnemers en notities behouden.",
"Unlink calendar event": "Agenda-item ontkoppelen",
@@ -52,6 +55,8 @@
"Appearance": "Weergave",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Apps op deze Mac kunnen je vergaderingen, notities, transcripties en opnamen lezen. Als een app online AI gebruikt, wordt wat de app leest naar die AI gestuurd.",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Apps op deze computer kunnen je vergaderingen, notities, transcripties en opnamen lezen. Als een app online AI gebruikt, wordt wat de app leest naar die AI gestuurd.",
+ "Couldn't load this conversation.": "Dit gesprek kon niet worden geladen.",
+ "Couldn't load your conversations.": "Je gesprekken konden niet worden geladen.",
"Ask": "Vragen",
"Ask Yogurt": "Vraag het Yogurt",
"Ask Yogurt (⌘J)": "Vraag het Yogurt (⌘J)",
@@ -367,6 +372,7 @@
"Some of this meeting couldn't be transcribed.": "Een deel van deze meeting kon niet worden getranscribeerd.",
"Spoken language": "Gesproken taal",
"Star": "Ster",
+ "Enter a valid start time.": "Voer een geldige begintijd in.",
"Start recording": "Opname starten",
"Starting…": "Starten…",
"Starts in {count} min": {
@@ -422,7 +428,6 @@
"Transcription ready": "Transcriptie klaar",
"Trash": "Prullenmand",
"Try again": "Probeer het opnieuw",
- "Try reading the calendars on this Mac again.": "Probeer de agenda's op deze Mac opnieuw te lezen.",
"Turn it on in System Settings": "Zet het aan in Systeeminstellingen",
"Turn off open at login": "Openen bij inloggen uitschakelen",
"Turn on": "Zet aan",
diff --git a/app/src/shared/locales/pl.json b/app/src/shared/locales/pl.json
index c93571fd..efeab51a 100644
--- a/app/src/shared/locales/pl.json
+++ b/app/src/shared/locales/pl.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "Brak pasujących spotkań z {name}.",
"No matching meetings on {date}.": "Brak pasujących spotkań w dniu {date}.",
"No matching meetings with {name} on {date}.": "Brak pasujących spotkań z {name} w dniu {date}.",
+ "Couldn't load this content.": "Nie udało się wczytać tej treści.",
+ "Previous results": "Poprzednie wyniki",
"Meetings with {name}": "Spotkania z {name}",
"Hide checklist": "Ukryj listę kontrolną",
"Next day": "Następny dzień",
"Previous day": "Poprzedni dzień",
+ "Can't read {calendar}": "Nie można odczytać: {calendar}",
"Yogurt couldn't update the calendar link. Try again.": "Yogurt nie mógł zaktualizować połączenia z kalendarzem. Spróbuj ponownie.",
"Keep the title, attendees and notes.": "Zachowaj tytuł, uczestników i notatki.",
"Unlink calendar event": "Odłącz wydarzenie z kalendarza",
@@ -54,6 +57,8 @@
"Appearance": "Wygląd",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Aplikacje na tym Macu mogą czytać Twoje spotkania, notatki, transkrypcje i nagrania. Jeśli aplikacja używa AI online, odczytane dane są wysyłane do tej AI.",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Aplikacje na tym komputerze mogą czytać Twoje spotkania, notatki, transkrypcje i nagrania. Jeśli aplikacja używa AI online, odczytane dane są wysyłane do tej AI.",
+ "Couldn't load this conversation.": "Nie udało się wczytać tej rozmowy.",
+ "Couldn't load your conversations.": "Nie udało się wczytać twoich rozmów.",
"Ask": "Zapytaj",
"Ask Yogurt": "Zapytaj Yogurt",
"Ask Yogurt (⌘J)": "Zapytaj Yogurt (⌘J)",
@@ -373,6 +378,7 @@
"Some of this meeting couldn't be transcribed.": "Części tego spotkania nie udało się przepisać.",
"Spoken language": "Język rozmowy",
"Star": "Gwiazda",
+ "Enter a valid start time.": "Wpisz prawidłową godzinę rozpoczęcia.",
"Start recording": "Zacznij nagrywać",
"Starting…": "Uruchamianie…",
"Starts in {count} min": {
@@ -430,7 +436,6 @@
"Transcription ready": "Transkrypcja gotowa",
"Trash": "Kosz",
"Try again": "Spróbuj ponownie",
- "Try reading the calendars on this Mac again.": "Spróbuj ponownie odczytać kalendarze na tym Macu.",
"Turn it on in System Settings": "Włącz w Ustawieniach systemowych",
"Turn off open at login": "Wyłącz otwieranie przy logowaniu",
"Turn on": "Włącz",
diff --git a/app/src/shared/locales/pt-BR.json b/app/src/shared/locales/pt-BR.json
index 10b65574..a1a4af4a 100644
--- a/app/src/shared/locales/pt-BR.json
+++ b/app/src/shared/locales/pt-BR.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "Nenhuma reunião correspondente com {name}.",
"No matching meetings on {date}.": "Nenhuma reunião correspondente em {date}.",
"No matching meetings with {name} on {date}.": "Nenhuma reunião correspondente com {name} em {date}.",
+ "Couldn't load this content.": "Não foi possível carregar este conteúdo.",
+ "Previous results": "Resultados anteriores",
"Meetings with {name}": "Reuniões com {name}",
"Hide checklist": "Ocultar lista de verificação",
"Next day": "Próximo dia",
"Previous day": "Dia anterior",
+ "Can't read {calendar}": "Não foi possível ler {calendar}",
"Yogurt couldn't update the calendar link. Try again.": "O Yogurt não conseguiu atualizar o vínculo com o calendário. Tente de novo.",
"Keep the title, attendees and notes.": "Manter o título, os participantes e as notas.",
"Unlink calendar event": "Desvincular evento do calendário",
@@ -53,6 +56,8 @@
"Appearance": "Aparência",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Apps neste Mac podem ler suas reuniões, notas, transcrições e gravações. Se um app usa uma IA online, o que ele lê é enviado a essa IA.",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Apps neste computador podem ler suas reuniões, notas, transcrições e gravações. Se um app usa uma IA online, o que ele lê é enviado a essa IA.",
+ "Couldn't load this conversation.": "Não foi possível carregar esta conversa.",
+ "Couldn't load your conversations.": "Não foi possível carregar suas conversas.",
"Ask": "Perguntar",
"Ask Yogurt": "Perguntar ao Yogurt",
"Ask Yogurt (⌘J)": "Perguntar ao Yogurt (⌘J)",
@@ -370,6 +375,7 @@
"Some of this meeting couldn't be transcribed.": "Parte desta reunião não pôde ser transcrita.",
"Spoken language": "Idioma falado",
"Star": "Estrela",
+ "Enter a valid start time.": "Insira um horário de início válido.",
"Start recording": "Começar a gravar",
"Starting…": "Iniciando…",
"Starts in {count} min": {
@@ -426,7 +432,6 @@
"Transcription ready": "Transcrição pronta",
"Trash": "Lixeira",
"Try again": "Tentar de novo",
- "Try reading the calendars on this Mac again.": "Tente ler os calendários deste Mac de novo.",
"Turn it on in System Settings": "Ative nos Ajustes do Sistema",
"Turn off open at login": "Desativar abertura ao iniciar sessão",
"Turn on": "Ativar",
diff --git a/app/src/shared/locales/ro.json b/app/src/shared/locales/ro.json
index 17ab5cf7..9a537ee8 100644
--- a/app/src/shared/locales/ro.json
+++ b/app/src/shared/locales/ro.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "Nicio întâlnire corespunzătoare cu {name}.",
"No matching meetings on {date}.": "Nicio întâlnire corespunzătoare pe {date}.",
"No matching meetings with {name} on {date}.": "Nicio întâlnire corespunzătoare cu {name} pe {date}.",
+ "Couldn't load this content.": "Acest conținut nu a putut fi încărcat.",
+ "Previous results": "Rezultate anterioare",
"Meetings with {name}": "Întâlniri cu {name}",
"Hide checklist": "Ascunde lista de verificare",
"Next day": "Ziua următoare",
"Previous day": "Ziua precedentă",
+ "Can't read {calendar}": "Nu se poate citi {calendar}",
"Yogurt couldn't update the calendar link. Try again.": "Yogurt nu a putut actualiza legătura cu calendarul. Încercați din nou.",
"Keep the title, attendees and notes.": "Păstrați titlul, participanții și notițele.",
"Unlink calendar event": "Dezlegați evenimentul din calendar",
@@ -53,6 +56,8 @@
"Appearance": "Aspect",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Aplicațiile de pe acest Mac pot citi întâlnirile, notițele, transcrierile și înregistrările tale. Dacă o aplicație folosește un AI online, ceea ce citește este trimis către acel AI.",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Aplicațiile de pe acest computer pot citi întâlnirile, notițele, transcrierile și înregistrările tale. Dacă o aplicație folosește un AI online, ceea ce citește este trimis către acel AI.",
+ "Couldn't load this conversation.": "Această conversație nu a putut fi încărcată.",
+ "Couldn't load your conversations.": "Conversațiile tale nu au putut fi încărcate.",
"Ask": "Întrebați",
"Ask Yogurt": "Întrebați Yogurt",
"Ask Yogurt (⌘J)": "Întrebați Yogurt (⌘J)",
@@ -370,6 +375,7 @@
"Some of this meeting couldn't be transcribed.": "O parte din această întâlnire nu a putut fi transcrisă.",
"Spoken language": "Limba vorbită",
"Star": "Stea",
+ "Enter a valid start time.": "Introdu o oră de începere validă.",
"Start recording": "Începeți înregistrarea",
"Starting…": "Se pornește…",
"Starts in {count} min": {
@@ -426,7 +432,6 @@
"Transcription ready": "Transcriere gata",
"Trash": "Coș",
"Try again": "Încearcă din nou",
- "Try reading the calendars on this Mac again.": "Încercați din nou să citiți calendarele de pe acest Mac.",
"Turn it on in System Settings": "Activați din Configurări sistem",
"Turn off open at login": "Dezactivează deschiderea la autentificare",
"Turn on": "Activați",
diff --git a/app/src/shared/locales/ru.json b/app/src/shared/locales/ru.json
index c09474b9..d36c3d76 100644
--- a/app/src/shared/locales/ru.json
+++ b/app/src/shared/locales/ru.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "Нет подходящих встреч с {name}.",
"No matching meetings on {date}.": "Нет подходящих встреч на {date}.",
"No matching meetings with {name} on {date}.": "Нет подходящих встреч с {name} на {date}.",
+ "Couldn't load this content.": "Не удалось загрузить содержимое.",
+ "Previous results": "Предыдущие результаты",
"Meetings with {name}": "Встречи с {name}",
"Hide checklist": "Скрыть контрольный список",
"Next day": "Следующий день",
"Previous day": "Предыдущий день",
+ "Can't read {calendar}": "Не удалось прочитать {calendar}",
"Yogurt couldn't update the calendar link. Try again.": "Yogurt не смог обновить связь с календарём. Попробуйте снова.",
"Keep the title, attendees and notes.": "Оставить название, участников и заметки.",
"Unlink calendar event": "Отвязать событие календаря",
@@ -54,6 +57,8 @@
"Appearance": "Оформление",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Приложения на этом Mac могут читать ваши встречи, заметки, расшифровки и записи. Если приложение использует онлайн-ИИ, прочитанные данные отправляются этому ИИ.",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Приложения на этом компьютере могут читать ваши встречи, заметки, расшифровки и записи. Если приложение использует онлайн-ИИ, прочитанные данные отправляются этому ИИ.",
+ "Couldn't load this conversation.": "Не удалось загрузить этот диалог.",
+ "Couldn't load your conversations.": "Не удалось загрузить ваши диалоги.",
"Ask": "Спросить",
"Ask Yogurt": "Спросить Yogurt",
"Ask Yogurt (⌘J)": "Спросить Yogurt (⌘J)",
@@ -373,6 +378,7 @@
"Some of this meeting couldn't be transcribed.": "Часть этой встречи не удалось расшифровать.",
"Spoken language": "Язык речи",
"Star": "Звезда",
+ "Enter a valid start time.": "Введите допустимое время начала.",
"Start recording": "Начать запись",
"Starting…": "Запуск…",
"Starts in {count} min": {
@@ -430,7 +436,6 @@
"Transcription ready": "Расшифровка готова",
"Trash": "Корзина",
"Try again": "Попробовать снова",
- "Try reading the calendars on this Mac again.": "Попробуйте снова прочитать календари на этом Mac.",
"Turn it on in System Settings": "Включите в Системных настройках",
"Turn off open at login": "Отключить открытие при входе",
"Turn on": "Включить",
diff --git a/app/src/shared/locales/sv.json b/app/src/shared/locales/sv.json
index fb738d5e..438caab2 100644
--- a/app/src/shared/locales/sv.json
+++ b/app/src/shared/locales/sv.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "Inga matchande möten med {name}.",
"No matching meetings on {date}.": "Inga matchande möten den {date}.",
"No matching meetings with {name} on {date}.": "Inga matchande möten med {name} den {date}.",
+ "Couldn't load this content.": "Det gick inte att läsa in det här innehållet.",
+ "Previous results": "Tidigare resultat",
"Meetings with {name}": "Möten med {name}",
"Hide checklist": "Dölj checklista",
"Next day": "Nästa dag",
"Previous day": "Föregående dag",
+ "Can't read {calendar}": "Kan inte läsa {calendar}",
"Yogurt couldn't update the calendar link. Try again.": "Yogurt kunde inte uppdatera kopplingen till kalendern. Försök igen.",
"Keep the title, attendees and notes.": "Behåll titel, deltagare och anteckningar.",
"Unlink calendar event": "Koppla bort kalenderhändelse",
@@ -52,6 +55,8 @@
"Appearance": "Utseende",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Appar på den här Macen kan läsa dina möten, anteckningar, transkriptioner och inspelningar. Om en app använder AI online skickas det den läser till den AI:n.",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Appar på den här datorn kan läsa dina möten, anteckningar, transkriptioner och inspelningar. Om en app använder AI online skickas det den läser till den AI:n.",
+ "Couldn't load this conversation.": "Det gick inte att läsa in den här konversationen.",
+ "Couldn't load your conversations.": "Det gick inte att läsa in dina konversationer.",
"Ask": "Fråga",
"Ask Yogurt": "Fråga Yogurt",
"Ask Yogurt (⌘J)": "Fråga Yogurt (⌘J)",
@@ -367,6 +372,7 @@
"Some of this meeting couldn't be transcribed.": "En del av mötet kunde inte transkriberas.",
"Spoken language": "Talat språk",
"Star": "Stjärna",
+ "Enter a valid start time.": "Ange en giltig starttid.",
"Start recording": "Börja spela in",
"Starting…": "Startar…",
"Starts in {count} min": {
@@ -422,7 +428,6 @@
"Transcription ready": "Transkriptionen är klar",
"Trash": "Papperskorgen",
"Try again": "Försök igen",
- "Try reading the calendars on this Mac again.": "Försök läsa kalendrarna på den här Macen igen.",
"Turn it on in System Settings": "Slå på det i Systeminställningar",
"Turn off open at login": "Stäng av öppning vid inloggning",
"Turn on": "Slå på",
diff --git a/app/src/shared/locales/th.json b/app/src/shared/locales/th.json
index c8a2c995..23d31ab1 100644
--- a/app/src/shared/locales/th.json
+++ b/app/src/shared/locales/th.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "ไม่มีการประชุมที่ตรงกันกับ {name}",
"No matching meetings on {date}.": "ไม่มีการประชุมที่ตรงกันในวันที่ {date}",
"No matching meetings with {name} on {date}.": "ไม่มีการประชุมที่ตรงกันกับ {name} ในวันที่ {date}",
+ "Couldn't load this content.": "โหลดเนื้อหานี้ไม่สำเร็จ",
+ "Previous results": "ผลลัพธ์ก่อนหน้า",
"Meetings with {name}": "การประชุมกับ {name}",
"Hide checklist": "ซ่อนรายการตรวจสอบ",
"Next day": "วันถัดไป",
"Previous day": "วันก่อนหน้า",
+ "Can't read {calendar}": "อ่าน {calendar} ไม่ได้",
"Yogurt couldn't update the calendar link. Try again.": "Yogurt อัปเดตลิงก์ปฏิทินไม่ได้ ลองอีกครั้ง",
"Keep the title, attendees and notes.": "เก็บชื่อ ผู้เข้าร่วม และโน้ตไว้",
"Unlink calendar event": "ยกเลิกการลิงก์กิจกรรมในปฏิทิน",
@@ -49,6 +52,8 @@
"Appearance": "ลักษณะที่ปรากฏ",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "แอปบน Mac เครื่องนี้สามารถอ่านการประชุม โน้ต ข้อความถอดเสียง และไฟล์บันทึกเสียงของคุณได้ หากแอปใช้ AI ออนไลน์ สิ่งที่แอปอ่านจะถูกส่งไปยัง AI นั้น",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "แอปบนคอมพิวเตอร์เครื่องนี้สามารถอ่านการประชุม โน้ต ข้อความถอดเสียง และไฟล์บันทึกเสียงของคุณได้ หากแอปใช้ AI ออนไลน์ สิ่งที่แอปอ่านจะถูกส่งไปยัง AI นั้น",
+ "Couldn't load this conversation.": "โหลดการสนทนานี้ไม่สำเร็จ",
+ "Couldn't load your conversations.": "โหลดรายการสนทนาของคุณไม่สำเร็จ",
"Ask": "ถาม",
"Ask Yogurt": "ถาม Yogurt",
"Ask Yogurt (⌘J)": "ถาม Yogurt (⌘J)",
@@ -358,6 +363,7 @@
"Some of this meeting couldn't be transcribed.": "ถอดความการประชุมนี้ไม่ได้บางส่วน",
"Spoken language": "ภาษาที่พูด",
"Star": "ดาว",
+ "Enter a valid start time.": "ป้อนเวลาเริ่มต้นที่ถูกต้อง",
"Start recording": "เริ่มบันทึก",
"Starting…": "กำลังเริ่ม…",
"Starts in {count} min": "เริ่มในอีก {count} นาที",
@@ -410,7 +416,6 @@
"Transcription ready": "การถอดความพร้อมแล้ว",
"Trash": "ถังขยะ",
"Try again": "ลองอีกครั้ง",
- "Try reading the calendars on this Mac again.": "ลองอ่านปฏิทินบน Mac เครื่องนี้อีกครั้ง",
"Turn it on in System Settings": "เปิดในการตั้งค่าระบบ",
"Turn off open at login": "ปิดการเปิดเมื่อเข้าสู่ระบบ",
"Turn on": "เปิด",
diff --git a/app/src/shared/locales/tr.json b/app/src/shared/locales/tr.json
index 91f22a66..8ea5ebf9 100644
--- a/app/src/shared/locales/tr.json
+++ b/app/src/shared/locales/tr.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "{name} ile eşleşen toplantı yok.",
"No matching meetings on {date}.": "{date} tarihinde eşleşen toplantı yok.",
"No matching meetings with {name} on {date}.": "{date} tarihinde {name} ile eşleşen toplantı yok.",
+ "Couldn't load this content.": "Bu içerik yüklenemedi.",
+ "Previous results": "Önceki sonuçlar",
"Meetings with {name}": "{name} ile toplantılar",
"Hide checklist": "Kontrol listesini gizle",
"Next day": "Sonraki gün",
"Previous day": "Önceki gün",
+ "Can't read {calendar}": "{calendar} okunamıyor",
"Yogurt couldn't update the calendar link. Try again.": "Yogurt takvim bağlantısını güncelleyemedi. Yeniden deneyin.",
"Keep the title, attendees and notes.": "Başlığı, katılımcıları ve notları koru.",
"Unlink calendar event": "Takvim etkinliği bağlantısını kaldır",
@@ -52,6 +55,8 @@
"Appearance": "Görünüm",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Bu Mac’teki uygulamalar toplantılarınızı, notlarınızı, dökümlerinizi ve kayıtlarınızı okuyabilir. Bir uygulama çevrimiçi yapay zekâ kullanıyorsa okudukları o yapay zekâya gönderilir.",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Bu bilgisayardaki uygulamalar toplantılarınızı, notlarınızı, dökümlerinizi ve kayıtlarınızı okuyabilir. Bir uygulama çevrimiçi yapay zekâ kullanıyorsa okudukları o yapay zekâya gönderilir.",
+ "Couldn't load this conversation.": "Bu konuşma yüklenemedi.",
+ "Couldn't load your conversations.": "Konuşmalarınız yüklenemedi.",
"Ask": "Sor",
"Ask Yogurt": "Yogurt’a sor",
"Ask Yogurt (⌘J)": "Yogurt’a sor (⌘J)",
@@ -367,6 +372,7 @@
"Some of this meeting couldn't be transcribed.": "Bu toplantının bir kısmı transkripte dönüştürülemedi.",
"Spoken language": "Konuşulan dil",
"Star": "Yıldız",
+ "Enter a valid start time.": "Geçerli bir başlangıç saati girin.",
"Start recording": "Kaydı başlat",
"Starting…": "Başlatılıyor…",
"Starts in {count} min": {
@@ -422,7 +428,6 @@
"Transcription ready": "Transkripsiyon hazır",
"Trash": "Çöp Sepeti",
"Try again": "Tekrar dene",
- "Try reading the calendars on this Mac again.": "Bu Mac’teki takvimleri yeniden okumayı deneyin.",
"Turn it on in System Settings": "Sistem Ayarları’ndan açın",
"Turn off open at login": "Oturum açıldığında açmayı kapat",
"Turn on": "Aç",
diff --git a/app/src/shared/locales/uk.json b/app/src/shared/locales/uk.json
index 68de63ce..ad792a2c 100644
--- a/app/src/shared/locales/uk.json
+++ b/app/src/shared/locales/uk.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "Немає відповідних зустрічей з {name}.",
"No matching meetings on {date}.": "Немає відповідних зустрічей на {date}.",
"No matching meetings with {name} on {date}.": "Немає відповідних зустрічей з {name} на {date}.",
+ "Couldn't load this content.": "Не вдалося завантажити цей вміст.",
+ "Previous results": "Попередні результати",
"Meetings with {name}": "Зустрічі з {name}",
"Hide checklist": "Приховати контрольний список",
"Next day": "Наступний день",
"Previous day": "Попередній день",
+ "Can't read {calendar}": "Не вдалося прочитати {calendar}",
"Yogurt couldn't update the calendar link. Try again.": "Yogurt не зміг оновити зв’язок із календарем. Спробуйте ще раз.",
"Keep the title, attendees and notes.": "Залишити назву, учасників і нотатки.",
"Unlink calendar event": "Відв’язати подію календаря",
@@ -54,6 +57,8 @@
"Appearance": "Вигляд",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Програми на цьому Mac можуть читати ваші зустрічі, нотатки, розшифровки та записи. Якщо програма використовує онлайн-ШІ, прочитані дані надсилаються цьому ШІ.",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Програми на цьому комп’ютері можуть читати ваші зустрічі, нотатки, розшифровки та записи. Якщо програма використовує онлайн-ШІ, прочитані дані надсилаються цьому ШІ.",
+ "Couldn't load this conversation.": "Не вдалося завантажити цю розмову.",
+ "Couldn't load your conversations.": "Не вдалося завантажити ваші розмови.",
"Ask": "Запитати",
"Ask Yogurt": "Запитати Yogurt",
"Ask Yogurt (⌘J)": "Запитати Yogurt (⌘J)",
@@ -373,6 +378,7 @@
"Some of this meeting couldn't be transcribed.": "Частину цієї зустрічі не вдалося розшифрувати.",
"Spoken language": "Мова розмови",
"Star": "Зірка",
+ "Enter a valid start time.": "Введіть коректний час початку.",
"Start recording": "Почати запис",
"Starting…": "Запуск…",
"Starts in {count} min": {
@@ -430,7 +436,6 @@
"Transcription ready": "Розшифровка готова",
"Trash": "Кошик",
"Try again": "Спробувати знову",
- "Try reading the calendars on this Mac again.": "Спробуйте ще раз прочитати календарі на цьому Mac.",
"Turn it on in System Settings": "Увімкніть у Системних параметрах",
"Turn off open at login": "Вимкнути відкриття під час входу",
"Turn on": "Увімкнути",
diff --git a/app/src/shared/locales/vi.json b/app/src/shared/locales/vi.json
index 2ab9af2d..9b6503da 100644
--- a/app/src/shared/locales/vi.json
+++ b/app/src/shared/locales/vi.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "Không có cuộc họp phù hợp với {name}.",
"No matching meetings on {date}.": "Không có cuộc họp phù hợp vào {date}.",
"No matching meetings with {name} on {date}.": "Không có cuộc họp phù hợp với {name} vào {date}.",
+ "Couldn't load this content.": "Không thể tải nội dung này.",
+ "Previous results": "Kết quả trước đó",
"Meetings with {name}": "Cuộc họp với {name}",
"Hide checklist": "Ẩn danh sách kiểm tra",
"Next day": "Ngày tiếp theo",
"Previous day": "Ngày trước",
+ "Can't read {calendar}": "Không thể đọc {calendar}",
"Yogurt couldn't update the calendar link. Try again.": "Yogurt không cập nhật được liên kết lịch. Hãy thử lại.",
"Keep the title, attendees and notes.": "Giữ tiêu đề, người tham dự và ghi chú.",
"Unlink calendar event": "Bỏ liên kết sự kiện lịch",
@@ -49,6 +52,8 @@
"Appearance": "Giao diện",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Các ứng dụng trên máy Mac này có thể đọc cuộc họp, ghi chú, bản chép lời và bản ghi âm của bạn. Nếu ứng dụng dùng AI trực tuyến, nội dung ứng dụng đọc sẽ được gửi đến AI đó.",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "Các ứng dụng trên máy tính này có thể đọc cuộc họp, ghi chú, bản chép lời và bản ghi âm của bạn. Nếu ứng dụng dùng AI trực tuyến, nội dung ứng dụng đọc sẽ được gửi đến AI đó.",
+ "Couldn't load this conversation.": "Không thể tải cuộc trò chuyện này.",
+ "Couldn't load your conversations.": "Không thể tải các cuộc trò chuyện của bạn.",
"Ask": "Hỏi",
"Ask Yogurt": "Hỏi Yogurt",
"Ask Yogurt (⌘J)": "Hỏi Yogurt (⌘J)",
@@ -358,6 +363,7 @@
"Some of this meeting couldn't be transcribed.": "Không chép lời được một phần cuộc họp này.",
"Spoken language": "Ngôn ngữ nói",
"Star": "Ngôi sao",
+ "Enter a valid start time.": "Nhập giờ bắt đầu hợp lệ.",
"Start recording": "Bắt đầu ghi",
"Starting…": "Đang bắt đầu…",
"Starts in {count} min": "Bắt đầu sau {count} phút",
@@ -410,7 +416,6 @@
"Transcription ready": "Đã sẵn sàng chép lời",
"Trash": "Thùng rác",
"Try again": "Thử lại",
- "Try reading the calendars on this Mac again.": "Thử đọc lại các lịch trên máy Mac này.",
"Turn it on in System Settings": "Bật trong Cài đặt hệ thống",
"Turn off open at login": "Tắt mở khi đăng nhập",
"Turn on": "Bật",
diff --git a/app/src/shared/locales/zh-CN.json b/app/src/shared/locales/zh-CN.json
index e3a0de84..32857de2 100644
--- a/app/src/shared/locales/zh-CN.json
+++ b/app/src/shared/locales/zh-CN.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "没有与{name}的匹配会议。",
"No matching meetings on {date}.": "{date}没有匹配的会议。",
"No matching meetings with {name} on {date}.": "{date}没有与{name}的匹配会议。",
+ "Couldn't load this content.": "无法加载此内容。",
+ "Previous results": "之前的结果",
"Meetings with {name}": "与 {name} 的会议",
"Hide checklist": "隐藏检查清单",
"Next day": "后一天",
"Previous day": "前一天",
+ "Can't read {calendar}": "无法读取{calendar}",
"Yogurt couldn't update the calendar link. Try again.": "Yogurt 无法更新日历链接。请重试。",
"Keep the title, attendees and notes.": "保留标题、参会人和笔记。",
"Unlink calendar event": "取消关联日历事件",
@@ -49,6 +52,8 @@
"Appearance": "外观",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "这台 Mac 上的应用可以读取你的会议、笔记、转录文本和录音。如果应用使用在线 AI,读取的内容会发送给该 AI。",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "这台电脑上的应用可以读取你的会议、笔记、转录文本和录音。如果应用使用在线 AI,读取的内容会发送给该 AI。",
+ "Couldn't load this conversation.": "无法加载此对话。",
+ "Couldn't load your conversations.": "无法加载你的对话。",
"Ask": "提问",
"Ask Yogurt": "问 Yogurt",
"Ask Yogurt (⌘J)": "问 Yogurt(⌘J)",
@@ -358,6 +363,7 @@
"Some of this meeting couldn't be transcribed.": "这个会议有一部分无法转写。",
"Spoken language": "会议语言",
"Star": "星形",
+ "Enter a valid start time.": "请输入有效的开始时间。",
"Start recording": "开始录音",
"Starting…": "正在启动…",
"Starts in {count} min": "{count} 分钟后开始",
@@ -410,7 +416,6 @@
"Transcription ready": "转写已就绪",
"Trash": "废纸篓",
"Try again": "再试一次",
- "Try reading the calendars on this Mac again.": "请再次尝试读取这台 Mac 上的日历。",
"Turn it on in System Settings": "在系统设置中打开",
"Turn off open at login": "关闭登录时启动",
"Turn on": "打开",
diff --git a/app/src/shared/locales/zh-TW.json b/app/src/shared/locales/zh-TW.json
index f4ef65a0..d3517c27 100644
--- a/app/src/shared/locales/zh-TW.json
+++ b/app/src/shared/locales/zh-TW.json
@@ -18,10 +18,13 @@
"No matching meetings with {name}.": "沒有與{name}的相符會議。",
"No matching meetings on {date}.": "{date}沒有相符的會議。",
"No matching meetings with {name} on {date}.": "{date}沒有與{name}的相符會議。",
+ "Couldn't load this content.": "無法載入此內容。",
+ "Previous results": "先前的結果",
"Meetings with {name}": "與 {name} 的會議",
"Hide checklist": "隱藏檢查清單",
"Next day": "後一天",
"Previous day": "前一天",
+ "Can't read {calendar}": "無法讀取{calendar}",
"Yogurt couldn't update the calendar link. Try again.": "Yogurt 無法更新行事曆連結。請再試一次。",
"Keep the title, attendees and notes.": "保留標題、與會者和筆記。",
"Unlink calendar event": "取消連結行事曆活動",
@@ -49,6 +52,8 @@
"Appearance": "外觀",
"Apps on this Mac can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "這台 Mac 上的 App 可以讀取你的會議、筆記、逐字稿和錄音。如果 App 使用線上 AI,讀取的內容會傳送給該 AI。",
"Apps on this computer can read your meetings, notes, transcripts and recordings. If an app uses an online AI, what it reads goes to that AI.": "這台電腦上的 App 可以讀取你的會議、筆記、逐字稿和錄音。如果 App 使用線上 AI,讀取的內容會傳送給該 AI。",
+ "Couldn't load this conversation.": "無法載入這段對話。",
+ "Couldn't load your conversations.": "無法載入你的對話。",
"Ask": "提問",
"Ask Yogurt": "問 Yogurt",
"Ask Yogurt (⌘J)": "問 Yogurt(⌘J)",
@@ -358,6 +363,7 @@
"Some of this meeting couldn't be transcribed.": "這場會議有一部分無法轉寫。",
"Spoken language": "會議語言",
"Star": "星形",
+ "Enter a valid start time.": "請輸入有效的開始時間。",
"Start recording": "開始錄音",
"Starting…": "正在啟動…",
"Starts in {count} min": "{count} 分鐘後開始",
@@ -410,7 +416,6 @@
"Transcription ready": "轉寫已就緒",
"Trash": "垃圾桶",
"Try again": "再試一次",
- "Try reading the calendars on this Mac again.": "請再試著讀取這台 Mac 上的行事曆。",
"Turn it on in System Settings": "在系統設定中開啟",
"Turn off open at login": "關閉登入時啟動",
"Turn on": "開啟",
diff --git a/app/src/shared/types.ts b/app/src/shared/types.ts
index a9831f83..6d38f1bf 100644
--- a/app/src/shared/types.ts
+++ b/app/src/shared/types.ts
@@ -245,7 +245,7 @@ export type YogurtApi = {
/** not asked yet: asks; turned off: opens the Mac's settings */
connect(): Promise<CalendarStatus>
/** the events on the day of this time, earliest first (none without Calendar access) */
- day(at: number, purpose?: 'link-event'): Promise<{ status: CalendarStatus; events: AgendaEvent[] }>
+ day(at: number, purpose?: 'link-event'): Promise<{ status: CalendarStatus; events: AgendaEvent[]; unavailable?: string[] }>
/** Windows and Linux: the calendar links connected (never their addresses) */
links(): Promise<CalendarLinkInfo[]>
/** connect a private calendar address; why not when it can't be */
diff --git a/app/test/agendaRemount.test.ts b/app/test/agendaRemount.test.ts
index e6850186..f31ed327 100644
--- a/app/test/agendaRemount.test.ts
+++ b/app/test/agendaRemount.test.ts
@@ -43,3 +43,27 @@ it('renders the last day and its people immediately on remount, refreshes quietl
expect(render()).toContain('agenda-skeleton')
expect(render()).not.toContain('Example meeting')
})
+
+it.each([false, true])('places an offline feed according to whether healthy events remain (%s)', async hasEvents => {
+ const event: AgendaEvent = { id: 'healthy', title: 'Design review', start: Date.now(), end: Date.now()+60000, attendees: [], url: null }
+ vi.stubGlobal('window', { addEventListener() {}, removeEventListener() {}, matchMedia: () => ({ matches: true }), yogurt: {
+ calendar: { day: async () => ({ status: 'granted', unavailable: ['Team calendar'], events: hasEvents ? [event] : [] }), onChange: () => () => {} },
+ meetings: { onChange: () => () => {} },
+ } })
+ const render = () => {
+ vi.mocked(useEffect).mockClear()
+ return renderToStaticMarkup(createElement(Agenda, { revision: 0, onStart: async () => {}, onOpen() {} }))
+ }
+ render()
+ const cleanup = vi.mocked(useEffect).mock.calls.find(([, deps]) => deps?.length === 3 && typeof deps[0] === 'function')![0]()
+ try {
+ await vi.waitFor(() => {
+ const html = render()
+ expect(html).toMatch(hasEvents ? /class="inline-error[^"]*"/ : /class="agenda-status[^"]*"[^>]*data-testid="calendar-error"/)
+ expect(html).toMatch(/<button[^>]*class="workspace-button"[^>]*>Try again<\/button>/)
+ expect(html.includes('Design review')).toBe(hasEvents)
+ expect(html).not.toContain('agenda-error-tile')
+ expect(html).not.toContain('lucide-triangle-alert')
+ })
+ } finally { cleanup?.() }
+})
diff --git a/app/test/audioUpload.test.ts b/app/test/audioUpload.test.ts
index 688e3921..acbfddae 100644
--- a/app/test/audioUpload.test.ts
+++ b/app/test/audioUpload.test.ts
@@ -92,6 +92,19 @@ it('keeps the inferred local time when the chosen day has a different daylight-s
const inferred = +new Date(2026, 0, 15, 12, 55, 30, 500)
expect(uploadDateTime('2026-07-15', '12:55', inferred)).toBe(+new Date(2026, 6, 15, 12, 55, 30, 500))
})
+it('rejects a skipped wall-clock minute without silently changing the time', () => {
+ const previous = process.env.TZ
+ try {
+ process.env.TZ = 'America/Los_Angeles'
+ const reference = +new Date(2026, 2, 7, 2, 30)
+ expect(uploadDateTime('2026-03-08', '02:30', reference)).toBeUndefined()
+ expect(uploadDateTime('2026-03-08', '02:45', reference)).toBeUndefined()
+ expect(uploadDateTime('2026-03-08', '03:00', reference)).toBe(+new Date(2026, 2, 8, 3))
+ } finally {
+ if (previous === undefined) delete process.env.TZ
+ else process.env.TZ = previous
+ }
+})
it('allows bounded metadata reads before creating any output or meeting', async () => {
const file = await uploads.select(1,path)
expect(uploads.info(1,file.token)).toEqual(file)
diff --git a/app/test/calendar.test.ts b/app/test/calendar.test.ts
index 9672206b..a7585a9f 100644
--- a/app/test/calendar.test.ts
+++ b/app/test/calendar.test.ts
@@ -230,6 +230,17 @@ describe('a Mac: calendar links sit alongside the built-in calendar (Settings
const links = (linked: boolean) => ({ status: () => (linked ? 'granted' as const : 'notDetermined' as const), calendars: async () => (linked ? [{ id: 'l1', name: 'Club', source: 'example.com' }] : []), events: async () => (linked ? [linkEvent] : []) })
const day = [Date.parse('2026-11-17T00:00:00Z'), Date.parse('2026-11-18T00:00:00Z')] as const
+ it.each(['calendar-status', 'events'])('keeps a healthy linked calendar when the Mac %s read fails', async failure => {
+ setHelper(async args => {
+ if (args[0] === failure) throw new Error('Calendar is unavailable')
+ return args[0] === 'calendar-status' ? { status: 'granted' } : []
+ })
+ setCalendarLinkSource(links(true), { alongside: true })
+ const unavailable: string[] = []
+ expect((await upcoming(...day, undefined, unavailable)).map(event => event.title)).toEqual(['Book club'])
+ expect(unavailable).toEqual(['Calendar'])
+ expect(calendarStatus()).toBe('granted')
+ })
it('both: the Mac calendars and the links, their events together', async () => {
setHelper(async (args) => args[0] === 'calendar-status' ? { status: 'granted' } : args[0] === 'calendars' ? [{ id: 'work', name: 'Work', source: 'iCloud' }] : [macRow])
setCalendarLinkSource(links(true), { alongside: true })
diff --git a/app/test/calendarLinks.test.ts b/app/test/calendarLinks.test.ts
index 0a68e665..54468946 100644
--- a/app/test/calendarLinks.test.ts
+++ b/app/test/calendarLinks.test.ts
@@ -62,6 +62,39 @@ describe('calendar links (Windows and Linux): a private calendar address, kept o
expect((await r.links.events(...day)).map((e) => e.title)).toEqual(['Standup'])
expect(r.fetched).toHaveLength(2)
})
+ it('distinguishes an unavailable cold feed from a successfully read empty day', async () => {
+ const r = rig(() => ics('Work'))
+ const added = await r.links.add('https://example.com/work.ics')
+ if (!added.ok) throw new Error('fixture did not connect')
+ const cold = createCalendarLinks({ file: r.file, get: async () => { throw new Error('offline') }, open: () => 'https://example.com/work.ics', seal: s => s })
+ const unavailable: string[] = []
+ const events = await cold.events(...day, unavailable)
+ expect(events).toEqual([])
+ expect(unavailable).toEqual(['Work'])
+ })
+ it('keeps cached and healthy meetings, skips hidden feeds, and clears the warning on recovery', async () => {
+ let offline = false
+ const r = rig(url => {
+ const name = url.endsWith('work.ics') ? 'Work' : 'Team'
+ if (offline && name === 'Work') throw new Error('offline')
+ return ics(name).replace('SUMMARY:Standup', 'SUMMARY:' + name)
+ })
+ const work = await r.links.add('https://example.com/work.ics')
+ await r.links.add('https://example.com/team.ics')
+ if (!work.ok) throw new Error('fixture did not connect')
+ r.tick(5 * 60_000 + 1)
+ offline = true
+ const unavailable: string[] = []
+ expect((await r.links.events(...day, unavailable)).map(e => e.title).sort()).toEqual(['Team', 'Work'])
+ expect(unavailable).toEqual(['Work'])
+ const hidden: string[] = []
+ expect((await r.links.events(...day, hidden, [work.id])).map(e => e.title)).toEqual(['Team'])
+ expect(hidden).toEqual([])
+ offline = false
+ const recovered: string[] = []
+ expect(await r.links.events(...day, recovered)).toHaveLength(2)
+ expect(recovered).toEqual([])
+ })
it('reading the calendar again and again (call detection, the agenda) reuses the parsed feed until it is fetched again', async () => {
const r = rig(() => ics('Team'))
await r.links.add('https://calendar.google.com/calendar/ical/team/private-x/basic.ics')
diff --git a/app/test/folderTargets.test.ts b/app/test/folderTargets.test.ts
new file mode 100644
index 00000000..ea798a76
--- /dev/null
+++ b/app/test/folderTargets.test.ts
@@ -0,0 +1,11 @@
+import { readFileSync } from 'node:fs'
+import { expect, it } from 'vitest'
+
+const css = readFileSync(new URL('../src/renderer/src/workspace.css', import.meta.url), 'utf8')
+
+it('gives opposite actions separate 24px targets in meeting rows', () => {
+ const box = css.match(/\.meeting-folder-proposal \.workspace-icon\s*\{([^}]+)\}/)![1]
+ const strip = css.match(/\.meeting-folder-proposal \.note-folder-actions\s*\{\s*width:(\d+)px/ )![1]
+ for (const axis of ['width', 'height']) expect(Number(box.match(new RegExp(axis + ':(\\d+)px'))![1])).toBeGreaterThanOrEqual(24)
+ expect(Number(strip)).toBeGreaterThanOrEqual(48)
+})
diff --git a/app/test/motionInteractions.test.ts b/app/test/motionInteractions.test.ts
index 88eac8c2..0cb4b9ce 100644
--- a/app/test/motionInteractions.test.ts
+++ b/app/test/motionInteractions.test.ts
@@ -8,6 +8,8 @@ import { AskConversation } from '../src/renderer/src/components/AskConversation'
import type { ConversationView } from '../src/shared/types'
import { Workspace } from '../src/renderer/src/components/Workspace'
import { FoldersNav } from '../src/renderer/src/components/FoldersNav'
+import { toasts } from '../src/renderer/src/components/TrashToast'
+import { InlineError } from '../src/renderer/src/components/InlineError'
import { Agenda } from '../src/renderer/src/components/Agenda'
vi.mock('react', async original => ({
@@ -102,7 +104,7 @@ function find(node: ReactNode, testId: string): ReactElement<any> {
if (Array.isArray(value)) return value.map(visit).find(Boolean)
if (!value || typeof value !== 'object' || !('props' in value)) return
const element = value as ReactElement<any>
- if (element.props['data-testid'] === testId || element.props.id === testId || element.props['aria-label'] === testId || element.props.className === testId) return element
+ if ((typeof element.type === 'function' && element.type.name === testId) || element.props['data-testid'] === testId || element.props.id === testId || element.props['aria-label'] === testId || element.props.className === testId) return element
return visit(element.props.children)
}
const result = visit(node)
@@ -110,6 +112,101 @@ function find(node: ReactNode, testId: string): ReactElement<any> {
return result
}
+
+afterEach(() => { vi.mocked(toasts.add).mockRestore?.() })
+
+function watchRetryToast() {
+ return vi.spyOn(toasts, 'add').mockReturnValue('test-toast')
+}
+
+it('gives a library read failure a quiet message and keeps its working retry', async () => {
+ const { LibraryEmpty } = await import('../src/renderer/src/screens/Home')
+ const props = { testId: 'past-empty', title: 'Your notes will show up here', description: 'Record a meeting.', icon: null }
+ const retry = vi.fn()
+ const normal = LibraryEmpty(props)
+ const error = LibraryEmpty({ ...props, retry })
+ const { ReadError } = await import('../src/renderer/src/components/InlineError')
+ expect(error.type).toBe(ReadError)
+ const failed = ReadError(error.props)
+ expect(find(normal, 'empty-tile')).toBeTruthy()
+ expect(failed.props.role).toBe('alert')
+ expect(() => find(failed, 'empty-tile')).toThrow()
+ find(failed, 'workspace-button').props.onClick()
+ expect(retry).toHaveBeenCalledOnce()
+})
+
+it('uses the standard secondary button for inline recovery', () => {
+ const retry = vi.fn()
+ const row = InlineError({ testId: 'read-error', retry })
+ const button = find(row, 'workspace-button')
+ expect(button.type).toBe('button')
+ button.props.onClick()
+ expect(retry).toHaveBeenCalledOnce()
+})
+
+it('keeps a failed preference actionable when another preference saves', async () => {
+ const { Settings } = await import('../src/renderer/src/screens/Settings')
+ const toast = watchRetryToast()
+ const close = vi.spyOn(toasts, 'close').mockImplementation(() => {})
+ const reminder = vi.fn().mockRejectedValueOnce(new Error('read only')).mockResolvedValue(undefined)
+ const settings = { get: async () => ({ myName: 'Meeting host', recordingReminder: true, theme: 'system' }), setRecordingReminder: reminder, setTheme: vi.fn().mockResolvedValue(undefined) }
+ vi.stubGlobal('window', { yogurt: { settings, capabilities: {} } })
+ try {
+ const draw = renderer(() => Settings({ revision: 17 }))
+ draw()
+ vi.mocked(useEffect).mock.calls.find(([, deps]) => deps?.includes(17))![0]()
+ await Promise.resolve()
+ find(draw(), 'recording-reminder-toggle').props.onClick()
+ await vi.waitFor(() => expect(toast).toHaveBeenCalled())
+ const failed = toast.mock.lastCall![0]
+ close.mockClear()
+ find(draw(), 'settings-theme').props.onChange({ target: { value: 'light' } })
+ await vi.waitFor(() => expect(settings.setTheme).toHaveBeenCalledWith('light'))
+ expect(close).not.toHaveBeenCalledWith(failed.id)
+ await (failed.actionProps!.onClick as Function)()
+ expect(reminder.mock.calls).toEqual([[false], [false]])
+ } finally { close.mockRestore() }
+})
+
+it.each([false, true])('retries the last requested AI access setting (reopen Settings: %s)', async reopen => {
+ const { Settings } = await import('../src/renderer/src/screens/Settings')
+ const toast = watchRetryToast()
+ let saved = { enabled: true, command: 'test', clients: [] }
+ let reject!: (reason: Error) => void
+ const set = vi.fn(async (enabled: boolean) => (saved = { ...saved, enabled }))
+ .mockImplementationOnce(() => new Promise((_, no) => { reject = no }))
+ vi.stubGlobal('window', { yogurt: { capabilities: {}, mcp: { status: async () => saved, onClients: () => () => {}, set } } })
+ const panel = find(renderer(() => Settings({}))(), 'AiApps')
+ const mount = async () => {
+ const render = renderer(() => (panel.type as Function)(panel.props))
+ render()
+ const cleanups = vi.mocked(useEffect).mock.calls.map(([effect]) => effect())
+ await Promise.resolve()
+ return { render, unmount: () => cleanups.forEach(cleanup => cleanup?.()) }
+ }
+ let view = await mount()
+ const toggle = () => find(view.render(), 'ai-apps-toggle').props
+ const pending = toggle().onClick()
+ expect(toggle()['aria-checked']).toBe(true)
+ expect(toggle().disabled).toBe(true)
+ reject(new Error('write failed'))
+ await pending
+ expect(toggle()['aria-checked']).toBe(true)
+ expect(() => find(view.render(), 'ai-apps-retry')).toThrow('Missing')
+ const notice = toast.mock.lastCall?.[0]
+ expect(notice).toMatchObject({ title: "Couldn't save your changes", timeout: 0, actionProps: { children: 'Try again' } })
+ if (reopen) {
+ view.unmount()
+ view = await mount()
+ expect(toggle()['aria-checked']).toBe(true)
+ }
+ try {
+ await (notice!.actionProps!.onClick as Function)()
+ expect(toggle()['aria-checked']).toBe(false)
+ expect(set.mock.calls).toEqual([[false], [false]])
+ } finally { view.unmount() }
+})
+
it.each([true, false])('offers and runs the date command only with an agenda (calendar: %s)', async calendar => {
vi.useFakeTimers()
vi.stubGlobal('document', { activeElement: null })
@@ -179,6 +276,45 @@ it('jumps a mounted agenda to the day and week, closes details, and keeps arrows
cleanup?.()
})
+it.each(['dark', 'mode'])('executes the ranked result when Enter beats a slow search for %s', async term => {
+ vi.useFakeTimers()
+ vi.stubGlobal('document', { activeElement: null })
+ vi.stubGlobal('HTMLButtonElement', class {})
+ const meeting = { meetingId: 'm1', title: 'Dark mode planning', startedAt: 1, parts: [], confident: true }
+ const query = vi.fn(async () => { await new Promise(resolve => setTimeout(resolve, 300)); return [meeting] })
+ const setTheme = vi.fn().mockResolvedValue(undefined), onOpen = vi.fn()
+ vi.stubGlobal('window', { yogurt: { capabilities: {}, settings: { get: async () => ({ theme: 'light' }), setTheme }, search: { query } } })
+ const render = renderer(() => Search({ onOpen, onNavigate() {}, onSettingsChange() {}, onShortcuts() {}, onClose() {}, sidebarCollapsed: false, onToggleSidebar() {} }))
+ render()
+ vi.mocked(useEffect).mock.calls[1][0]()
+ await Promise.resolve()
+ find(render(), 'search-input').props.onChange({ target: { value: term } })
+ const tree = render()
+ vi.mocked(useEffect).mock.calls.find(([, deps]) => deps?.[0] === term && deps.length > 1)![0]()
+ find(tree, 'search').props.onKeyDown({ key: 'Enter', nativeEvent: {}, preventDefault() {} })
+ await vi.runAllTimersAsync()
+ if (term === 'dark') {
+ expect(setTheme).toHaveBeenCalledExactlyOnceWith('dark')
+ expect(onOpen).not.toHaveBeenCalled()
+ } else {
+ expect(onOpen).toHaveBeenCalledExactlyOnceWith('m1')
+ expect(setTheme).not.toHaveBeenCalled()
+ }
+})
+
+it('offers another read when a palette query fails', async () => {
+ vi.stubGlobal('document', { activeElement: null })
+ const query = vi.fn().mockRejectedValueOnce(new Error('read failed')).mockResolvedValue([])
+ vi.stubGlobal('window', { yogurt: { capabilities: { calendar: true }, search: { query } } })
+ const render = renderer(() => Search({ onOpen() {}, onNavigate() {}, onSettingsChange() {}, onShortcuts() {}, onClose() {}, sidebarCollapsed: false, onToggleSidebar() {} }))
+ render()
+ vi.mocked(useEffect).mock.calls.find(([, deps]) => deps?.length === 6)![0]()
+ await new Promise(resolve => setTimeout(resolve, 0))
+ await find(render(), 'search-retry').props.onClick()
+ expect(query).toHaveBeenCalledTimes(2)
+})
+
+
it('keeps initial search results still, ignores stationary hover, and scrolls only for keyboard selection', async () => {
const meetings = [{ meetingId: 'm1', title: 'Recent meeting', startedAt: 1000, parts: [] }]
vi.stubGlobal('document', { activeElement: null })
@@ -435,6 +571,10 @@ it.each(['send', 'load', 'resolve'] as const)('keeps an early Enter through load
}
expect(find(tree, 'chat-input').props.readOnly).toBe(false)
expect(find(tree, 'chat-input').props.value).toBe('Who owns the next step?')
+ if (failure === 'load') {
+ await find(tree, 'conversation-load-retry').props.onClick()
+ expect(get).toHaveBeenCalledTimes(2)
+ }
if (failure === 'send') {
expect(find(tree, 'chat-send').props.disabled).toBe(false)
enter(tree)
@@ -628,6 +768,24 @@ it.each([false, true].flatMap(panel => [false, true].flatMap(inline => [
},
)
+it('retains an export error and reopens the file save action on retry', async () => {
+ vi.useFakeTimers()
+ const toast = watchRetryToast()
+ const { ShareMenu } = await import('../src/renderer/src/components/ShareMenu')
+ const save = vi.fn().mockResolvedValueOnce('failed').mockResolvedValueOnce('saved')
+ vi.stubGlobal('window', { yogurt: { share: { save } } })
+ const render = renderer(() => ShareMenu({ id: 'note', shown: 'mine', status: 'idle', hasEnhanced: false, beforeUse: async () => true }))
+ find(render(), 'share-button').props.onClick({ detail: 0 })
+ find(render(), 'share-export').props.onClick()
+ await vi.advanceTimersByTimeAsync(2100)
+ expect(() => find(render(), 'share-export-retry')).toThrow('Missing')
+ const notice = toast.mock.lastCall?.[0]
+ expect(notice).toMatchObject({ title: "Couldn't save the file", timeout: 0, actionProps: { children: 'Try again' } })
+ await (notice!.actionProps!.onClick as Function)()
+ expect(save.mock.calls).toEqual([['note', 'mine'], ['note', 'mine']])
+})
+
+
it('collapses expanded results for a new search and each new button opening', async () => {
const c = mentionComposer(false)
c.targets.mockResolvedValue(Array.from({ length: 20 }, (_, i) => ({ kind: 'meeting', id: String(i), title: `Plan ${i}` })))
@@ -696,6 +854,31 @@ it.each(['picker', 'pill'])('clears saved and draft scope from the %s and keeps
expect(c.initial.firstChips).toEqual([scope[0]])
})
+it('retries a failed player track while keeping the healthy track mounted', async () => {
+ const { Player } = await import('../src/renderer/src/components/Player')
+ const hook = vi.spyOn(await import('react'), 'useImperativeHandle').mockImplementation(() => {})
+ try {
+ const openTranscript = vi.fn()
+ const player = Player({ id: 'test', tracks: ['me', 'them'], openTranscript })!
+ const render = renderer(() => (player.type as Function)(player.props))
+ find(render(), 'player-audio-them').props.onError({ currentTarget: { error: { code: 2 } } })
+ expect(find(render(), 'player-audio-me').key).toBe('me')
+ find(render(), 'player-retry').props.onClick()
+ expect(find(render(), 'player-audio-them').key).toBe('them')
+ expect(find(render(), 'player-audio-me').key).toBe('me')
+ for (const track of ['me', 'them']) {
+ find(render(), 'player-audio-' + track).props.onError({ currentTarget: { error: { code: 4 } } })
+ }
+ const link = find(render(), 'player-open-transcript')
+ expect(link.type).toBe('a')
+ expect(link.props.href).toBe('#transcript-lines')
+ expect(find(render(), 'player-retry').props.className).toBe('workspace-button')
+ link.props.onClick({ preventDefault() {} })
+ expect(openTranscript).toHaveBeenCalledOnce()
+ } finally { hook.mockRestore() }
+})
+
+
it('adds only pending scope after a chat starts and disables toggles during an answer', async () => {
const c = mentionComposer(true)
c.initial.firstChips = [...c.initial.chips]
@@ -764,6 +947,25 @@ it('keeps checked scope and reports failed removal without closing', async () =>
})
+it('uses a required native clock and keeps incomplete times out of the upload', async () => {
+ const { AudioUploadWhen } = await import('../src/renderer/src/components/AudioUploadWhen')
+ const at = +new Date(2025, 0, 3, 8), onChange = vi.fn()
+ const fields = renderer(() => AudioUploadWhen({ at, durationMs: 60000, onChange }))
+ const render = () => find(fields(), 'Start time').props
+ expect(render()).toMatchObject({ type: 'time', required: true })
+ const field = { value: '', setCustomValidity: vi.fn() }
+ render().onChange({ currentTarget: field })
+ render().onBlur({ currentTarget: field })
+ expect(render()['aria-invalid']).toBe(true)
+ expect(find(fields(), 'upload-time-error').props.id).toBe(render()['aria-describedby'])
+ expect(onChange).not.toHaveBeenCalled()
+ field.value = '23:59'
+ render().onChange({ currentTarget: field })
+ expect(onChange).toHaveBeenLastCalledWith(+new Date(2025, 0, 3, 23, 59))
+ expect(render()['aria-invalid']).toBeUndefined()
+})
+
+
it('prefills a reopened picker and anchors it to the composer without sideways fallback', async () => {
const c = mentionComposer(false)
find(c.render(), 'ask-scope').props.onPointerEnter()
diff --git a/app/test/narrowAgenda.test.ts b/app/test/narrowAgenda.test.ts
new file mode 100644
index 00000000..0699436c
--- /dev/null
+++ b/app/test/narrowAgenda.test.ts
@@ -0,0 +1,10 @@
+import { readFileSync } from 'node:fs'
+import { expect, it } from 'vitest'
+
+const css = readFileSync(new URL('../src/renderer/src/workspace.css', import.meta.url), 'utf8')
+
+it('scrolls the agenda header and events together within the narrow grid row', () => {
+ const narrow = css.slice(css.indexOf('@container (max-width:520px)')).split(/^}/m)[0]
+ expect(narrow).toMatch(/\.native-agenda\s*\{[^}]*overflow-y:\s*auto/)
+ expect(narrow).toMatch(/\.agenda-scroll\s*\{[^}]*overflow:\s*visible/)
+})
diff --git a/app/test/narrowPermissions.test.ts b/app/test/narrowPermissions.test.ts
new file mode 100644
index 00000000..0bb98e96
--- /dev/null
+++ b/app/test/narrowPermissions.test.ts
@@ -0,0 +1,10 @@
+import { readFileSync } from 'node:fs'
+import { expect, it } from 'vitest'
+
+const css = readFileSync(new URL('../src/renderer/src/setup.css', import.meta.url), 'utf8')
+
+it('fits both permission choices at 320 CSS pixels', () => {
+ const narrow = css.match(/@media\s*\(max-width:\s*(?:[3-5]\d\d|600)px\)\s*\{\s*\.ob\s*\{([^}]+)\}/)
+ expect(narrow?.[1]).toMatch(/grid-template-columns:\s*(?:minmax\(0,\s*1fr\)|1fr)/)
+ expect(css).toMatch(/\.ob-actions\s*\{[^}]*flex-wrap:\s*wrap/)
+})
diff --git a/app/test/noteHeadingScale.test.ts b/app/test/noteHeadingScale.test.ts
new file mode 100644
index 00000000..2ccc7579
--- /dev/null
+++ b/app/test/noteHeadingScale.test.ts
@@ -0,0 +1,10 @@
+import { readFileSync } from 'node:fs'
+import { expect, it } from 'vitest'
+
+const css = readFileSync(new URL('../src/renderer/src/styles.css', import.meta.url), 'utf8')
+
+it('keeps level-two note headings larger than level three', () => {
+ const size = (level: number) => Number(css.match(new RegExp('\\.note-prose h' + level + ' \\{ font-size: ([\\d.]+)px'))![1])
+ expect(size(1)).toBeGreaterThan(size(2))
+ expect(size(2)).toBeGreaterThan(size(3))
+})
diff --git a/app/test/osWords.test.ts b/app/test/osWords.test.ts
index 548809fa..a148586d 100644
--- a/app/test/osWords.test.ts
+++ b/app/test/osWords.test.ts
@@ -34,7 +34,6 @@ describe('Mac text', () => {
'Open Yogurt when your Mac starts',
'Saved on this Mac',
'This conversation is removed from this Mac for good. Your meetings stay as they are.',
- 'Try reading the calendars on this Mac again.',
'Uses the microphone your Mac is set to',
"Yogurt hears you through your microphone, and everyone else through your Mac's sound.",
'Yogurt needs a Mac with at least 8 GB of memory.',
diff --git a/app/test/reduceOrb.test.ts b/app/test/reduceOrb.test.ts
new file mode 100644
index 00000000..f00a8bbd
--- /dev/null
+++ b/app/test/reduceOrb.test.ts
@@ -0,0 +1,12 @@
+import { readFileSync } from 'node:fs'
+import { expect, it } from 'vitest'
+
+const css = readFileSync(new URL('../src/renderer/src/workspace.css', import.meta.url), 'utf8')
+
+it('stops decorative orb rotation and countdown travel under Reduce Motion', () => {
+ const reduced = css.lastIndexOf('@media (prefers-reduced-motion:reduce) { .orb-material::before')
+ const full = css.indexOf('animation:orb-turn')
+ expect(reduced).toBeGreaterThan(full)
+ const prompt = readFileSync(new URL('../src/renderer/src/setup.css', import.meta.url), 'utf8')
+ expect(prompt).toMatch(/prefers-reduced-motion:\s*reduce\)\s*\{\s*\.call-prompt-countdown\s*\{[^}]*(?:animation|display):\s*none/)
+})
diff --git a/app/test/rewriteWarning.test.ts b/app/test/rewriteWarning.test.ts
new file mode 100644
index 00000000..946d5b67
--- /dev/null
+++ b/app/test/rewriteWarning.test.ts
@@ -0,0 +1,9 @@
+import { readFileSync } from 'node:fs'
+import { expect, it } from 'vitest'
+
+const css = readFileSync(new URL('../src/renderer/src/styles.css', import.meta.url), 'utf8')
+
+it('allows the edit-loss warning to wrap within the dialog', () => {
+ const warning = css.match(/\.summary-regenerate-warning\s*\{([^}]+)\}/)![1]
+ expect(warning).not.toMatch(/white-space:\s*nowrap/)
+})
diff --git a/app/test/selectedMeeting.test.ts b/app/test/selectedMeeting.test.ts
new file mode 100644
index 00000000..25bea4c4
--- /dev/null
+++ b/app/test/selectedMeeting.test.ts
@@ -0,0 +1,15 @@
+import { afterEach, expect, it, vi } from 'vitest'
+import { createElement } from 'react'
+import { renderToStaticMarkup } from 'react-dom/server'
+import { PastCard } from '../src/renderer/src/screens/Home'
+import type { MeetingCard } from '../src/shared/types'
+
+afterEach(() => vi.unstubAllGlobals())
+
+it('marks each selected meeting inside its identity tile', () => {
+ vi.stubGlobal('window', { matchMedia: () => ({ matches: false }) })
+ const c: MeetingCard = { eventId: null, app: null, language: null, titleSource: 'user', id: 'm1', title: 'Planning', state: 'done', startedAt: 1, endedAt: 2, attendees: [], preview: '' }
+ const row = (selected: boolean) => renderToStaticMarkup(createElement(PastCard, { c, me: '', selected, onOpen() {} }))
+ expect(row(true)).toMatch(/meeting-identity[^<]*>\s*<svg[^>]*data-testid="meeting-selected"/)
+ expect(row(false)).not.toContain('meeting-selected')
+})
diff --git a/app/test/uploadPresentation.test.ts b/app/test/uploadPresentation.test.ts
index 74c16054..f7133793 100644
--- a/app/test/uploadPresentation.test.ts
+++ b/app/test/uploadPresentation.test.ts
@@ -18,7 +18,7 @@ function elements(node:ReactNode):ReactElement<any>[] {
}
function transcript(processing:boolean,hasLines:boolean,replacing=false) {
const lines=hasLines?[{id:1,meetingId:'sample',track:'them',startMs:0,endMs:1000,text:'The draft is ready.'}]:[]
- const states:unknown[]=[[],lines,true,{},false,false,['them']]
+ const states:unknown[]=[[],lines,false,true,{},false,false,['them']]
vi.mocked(useState).mockImplementation((initial?:unknown):[unknown,()=>void]=>[states.length?states.shift():typeof initial==='function'?initial():initial,()=>{}])
return elements(Transcript({id:'sample',recording:false,processing,replacing})).map(e=>e.props.className)
}