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.

Updates: a downloaded update shows as Update ready in the title bar, with Restart and Later

Eric Brownrout72c9c0b2b8fd
diff --git a/app/e2e/notesSetup.spec.ts b/app/e2e/notesSetup.spec.ts
index 2b3b160b..df0cb6ad 100644
--- a/app/e2e/notesSetup.spec.ts
+++ b/app/e2e/notesSetup.spec.ts
@@ -219,10 +219,18 @@ test('AI status stays on every workspace page and clears recording and More in n
const popup = page.getByTestId('notes-setup')
await expect(popup).toBeVisible()
const box = (await trigger.boundingBox())!, panel = (await popup.boundingBox())!
+ const width = await page.evaluate(() => innerWidth)
expect(panel.x).toBeGreaterThanOrEqual(12)
- expect(panel.x + panel.width).toBeLessThanOrEqual((await page.evaluate(() => innerWidth)) - 12)
+ expect(panel.x + panel.width).toBeLessThanOrEqual(width - 12)
expect(panel.y).toBeGreaterThanOrEqual(box.y + box.height + 8)
- expect(locale === 'ar' ? panel.x - box.x : panel.x + panel.width - box.x - box.width).toBeCloseTo(0, 0)
+ const end = locale === 'ar' ? box.x : box.x + box.width - panel.width
+ const start = locale === 'ar' ? box.x + box.width - panel.width : box.x
+ // In narrow RTL Trash, Empty Trash and the recorder leave room only for the flipped alignment.
+ // Base UI adds a pixel to collision padding when deciding whether to flip.
+ const fits = (x: number) => x >= 13 && x + panel.width <= width - 13
+ if (fits(end)) expect(Math.abs(panel.x - end)).toBeLessThanOrEqual(0.5)
+ else if (fits(start)) expect(Math.abs(panel.x - start)).toBeLessThanOrEqual(0.5)
+ else expect(Math.min(Math.abs(panel.x - 12), Math.abs(panel.x + panel.width - width + 12))).toBeLessThanOrEqual(1)
await page.keyboard.press('Escape')
}
}
diff --git a/app/e2e/updatePill.spec.ts b/app/e2e/updatePill.spec.ts
new file mode 100644
index 00000000..19db8f2c
--- /dev/null
+++ b/app/e2e/updatePill.spec.ts
@@ -0,0 +1,174 @@
+import { _electron as electron, expect, test } from '@playwright/test'
+import { mkdtempSync } from 'node:fs'
+import { tmpdir } from 'node:os'
+import { join } from 'node:path'
+
+async function launch(root = mkdtempSync(join(tmpdir(), 'yogurt-update-'))) {
+ const app = await electron.launch({ args: [join(import.meta.dirname, '../out/main/index.js')], env: {
+ ...process.env, YOGURT_FAKE: '1', YOGURT_USER_DATA: root,
+ YOGURT_FAKE_UPDATE: '9.9.9',
+ } })
+ const page = await app.firstWindow()
+ await expect(page.getByTestId('home')).toBeVisible()
+ return { app, page }
+}
+const restarts = (app: Awaited<ReturnType<typeof launch>>['app']) =>
+ app.evaluate(() => (globalThis as any).__fake__.main().updateRestarts as number)
+
+test('a ready version is visible immediately and can restart', async () => {
+ const { app, page } = await launch()
+ try {
+ const pill = page.getByTestId('update-ready'), popup = page.getByTestId('update-popover')
+ await expect(pill).toHaveText('Update ready')
+ await expect(page.getByTestId('update-toast')).toHaveCount(0)
+ await pill.click()
+ await expect(popup).toContainText('Yogurt 9.9.9')
+ await expect(popup).toContainText('Installs when you restart Yogurt')
+ await page.keyboard.press('Escape')
+ await expect(popup).toHaveCount(0); await expect(pill).toBeVisible()
+ expect(await restarts(app)).toBe(0)
+ await pill.focus(); await page.keyboard.press('Enter')
+ await expect(popup).toBeVisible()
+ await page.keyboard.press('Escape')
+ await expect(pill).toBeFocused()
+ await pill.click(); await page.getByTestId('update-restart').click()
+ await expect.poll(() => restarts(app)).toBe(1)
+ await expect(pill).toHaveCount(0)
+ } finally { await app.close() }
+})
+
+test('the pill stays visible while recording and ending recording only enables Restart', async () => {
+ const { app, page } = await launch()
+ try {
+ await page.evaluate(() => window.yogurt.meetings.start(null))
+ await expect(page.getByTestId('note-state')).toHaveAttribute('data-state', 'recording')
+ await expect.poll(() => page.evaluate(() => {
+ const pill = document.querySelector('[data-testid="update-ready"]')!.getBoundingClientRect()
+ const more = document.querySelector('[data-testid="note-menu-button"]')!.getBoundingClientRect()
+ return { pillHeight: pill.height, moreHeight: more.height, moreWidth: more.width, centre: pill.y + pill.height / 2 - more.y - more.height / 2 }
+ })).toEqual({ pillHeight: 30, moreHeight: 30, moreWidth: 30, centre: 0 })
+ await page.getByTestId('update-ready').click()
+ await expect(page.getByTestId('update-popover')).toContainText('You can restart after recording')
+ await expect(page.getByTestId('update-restart')).toBeDisabled()
+ await page.keyboard.press('Escape'); await page.getByTestId('note-stop').click()
+ await page.getByTestId('update-ready').click()
+ await expect(page.getByTestId('update-restart')).toBeEnabled()
+ expect(await restarts(app)).toBe(0)
+ } finally { await app.close() }
+})
+
+for (const failure of ['false', 'reject'] as const) test(`keeps the update ready when restart returns ${failure}`, async () => {
+ const { app, page } = await launch()
+ try {
+ await app.evaluate(({ ipcMain }, failure) => {
+ ipcMain.removeHandler('updates:restart')
+ ipcMain.handle('updates:restart', () => { if (failure === 'reject') throw new Error('unavailable'); return false })
+ }, failure)
+ await page.getByTestId('update-ready').click(); await page.getByTestId('update-restart').click()
+ await expect(page.getByTestId('update-popover').getByRole('alert')).toHaveText("Yogurt couldn't restart. Try again.")
+ await expect(page.getByTestId('update-ready')).toBeVisible()
+ await expect(page.getByTestId('update-restart')).toBeEnabled()
+ expect(await restarts(app)).toBe(0)
+ } finally { await app.close() }
+})
+
+test('keeps update and AI download controls visible together before the main action', async () => {
+ const { app, page } = await launch()
+ try {
+ await app.evaluate(({ ipcMain, BrowserWindow }) => {
+ const state = { phase: 'ready', fraction: 1, notesUpgradeDownloading: true, notesUpgradeFraction: .27 }
+ ipcMain.removeHandler('setup:state'); ipcMain.handle('setup:state', () => state)
+ for (const win of BrowserWindow.getAllWindows()) win.webContents.send('setup:state', state)
+ })
+ await expect(page.getByTestId('notes-setup-open')).toBeVisible()
+ for (const width of [1200, 800, 720]) {
+ await app.evaluate(({ BrowserWindow }, width) => BrowserWindow.getAllWindows()[0].setSize(width, 800), width)
+ await expect.poll(() => page.evaluate(() => {
+ const update = document.querySelector('[data-testid="update-ready"]')!.getBoundingClientRect()
+ const ai = document.querySelector('[data-testid="notes-setup-open"]')!.getBoundingClientRect()
+ const action = document.querySelector('#workspace-actions button')!.getBoundingClientRect()
+ return update.width >= 44 && ai.width >= 44 && update.right <= ai.left && ai.right <= action.left && action.right <= innerWidth
+ })).toBe(true)
+ }
+ await page.emulateMedia({ reducedMotion: 'reduce' })
+ await page.getByTestId('update-ready').click()
+ await expect(page.getByTestId('update-popover')).toHaveCSS('transform', 'none')
+ await page.keyboard.press('Escape')
+ await app.evaluate(() => (globalThis as any).__fake__.manyMeetings({ n: 1, clean: true }))
+ await page.evaluate(async () => {
+ const [card] = await window.yogurt.meetings.cards({ limit: 1 })
+ await window.yogurt.meetings.trash(card.id)
+ await window.yogurt.meetings.start(null)
+ await window.yogurt.nav.go('/trash')
+ })
+ await expect(page.getByTestId('trash-empty')).toBeVisible()
+ await expect(page.getByTestId('recording-return')).toBeVisible()
+ for (const locale of ['en', 'de', 'ar']) {
+ await page.evaluate(locale => window.yogurt.settings.setLanguage(locale), locale)
+ await expect(page.locator('html')).toHaveAttribute('lang', locale)
+ for (const collapsed of [false, true]) {
+ const toggle = page.locator('.workspace-sidebar-toggle')
+ if (await toggle.getAttribute('aria-expanded') !== String(!collapsed)) await toggle.click()
+ await expect.poll(() => page.evaluate(() => {
+ const controls = [...document.querySelectorAll<HTMLElement>('[data-testid="update-ready"], [data-testid="notes-setup-open"], [data-testid="recording-return"], [data-testid="trash-empty"], .workspace-sidebar-toggle')]
+ return controls.length === 5 && controls.every((control, index) => {
+ const box = control.getBoundingClientRect()
+ return box.width >= (control.classList.contains('workspace-sidebar-toggle') ? 28 : 44)
+ && box.x >= 0 && box.right <= innerWidth
+ && control.contains(document.elementFromPoint(box.x + box.width / 2, box.y + box.height / 2))
+ && controls.slice(index + 1).every(other => {
+ const rect = other.getBoundingClientRect()
+ return box.right <= rect.x || box.x >= rect.right
+ })
+ })
+ })).toBe(true)
+ }
+ }
+ } finally { await app.close() }
+})
+
+
+test('Later survives a renderer reload but Settings still offers Restart', async () => {
+ const { app, page } = await launch()
+ try {
+ await page.getByTestId('update-ready').click(); await page.getByTestId('update-later').click()
+ await expect(page.getByTestId('update-ready')).toHaveCount(0)
+ await expect(page.getByTestId('update-popover')).toHaveCount(0)
+ expect(await restarts(app)).toBe(0)
+ await page.reload(); await expect(page.getByTestId('home')).toBeVisible()
+ await expect(page.getByTestId('update-ready')).toHaveCount(0)
+ await page.evaluate(() => window.yogurt.nav.go('/settings'))
+ await expect(page.getByTestId('updates-restart')).toBeVisible()
+ await expect(page.getByTestId('updates-state')).toHaveAttribute('data-state', 'ready')
+ await expect(page.getByTestId('updates-toggle')).toHaveAttribute('aria-checked', 'true')
+ await page.getByTestId('updates-restart').click()
+ await expect.poll(() => restarts(app)).toBe(1)
+ } finally { await app.close() }
+})
+
+test('a newer ready version is visible after Later', async () => {
+ const { app, page } = await launch()
+ try {
+ await page.getByTestId('update-ready').click(); await page.getByTestId('update-later').click()
+ await expect(page.getByTestId('update-ready')).toHaveCount(0)
+ await app.evaluate(({ BrowserWindow }) => {
+ for (const win of BrowserWindow.getAllWindows()) win.webContents.send('updates:status', {
+ state: 'ready', version: '0.3.1', next: '9.9.10', available: true, on: true, dismissed: false,
+ })
+ })
+ await page.getByTestId('update-ready').click()
+ await expect(page.getByTestId('update-popover')).toContainText('Yogurt 9.9.10')
+ } finally { await app.close() }
+})
+
+test('restarting the app offers the same ready version again', async () => {
+ const root = mkdtempSync(join(tmpdir(), 'yogurt-update-session-'))
+ const first = await launch(root)
+ try {
+ await first.page.getByTestId('update-ready').click(); await first.page.getByTestId('update-later').click()
+ await expect(first.page.getByTestId('update-ready')).toHaveCount(0)
+ } finally { await first.app.close() }
+ const second = await launch(root)
+ try { await expect(second.page.getByTestId('update-ready')).toBeVisible() }
+ finally { await second.app.close() }
+})
diff --git a/app/e2e/updateToast.spec.ts b/app/e2e/updateToast.spec.ts
deleted file mode 100644
index 784a16e8..00000000
--- a/app/e2e/updateToast.spec.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-import { _electron as electron, expect, test } from '@playwright/test'
-import { mkdtempSync } from 'node:fs'
-import { tmpdir } from 'node:os'
-import { join } from 'node:path'
-
-// a version "downloaded" at launch; the corner waits AFTER_MS (a day in a real install) before offering Restart
-const AFTER_MS = 1500
-async function launch() {
- 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-update-')),
- YOGURT_FAKE_UPDATE: '9.9.9', YOGURT_FAKE_UPDATE_AFTER_MS: String(AFTER_MS),
- } })
- const page = await app.firstWindow()
- await expect(page.getByTestId('home')).toBeVisible()
- return { app, page }
-}
-const restarts = (app: Awaited<ReturnType<typeof launch>>['app']) =>
- app.evaluate(() => (globalThis as any).__fake__.main().updateRestarts as number)
-
-test('a downloaded version waits, then the corner offers Restart Yogurt, which restarts', async () => {
- const { app, page } = await launch()
- try {
- const toast = page.getByTestId('update-toast')
- await expect(toast).toHaveCount(0)
- await expect(toast).toContainText('A new version of Yogurt is ready', { timeout: 10_000 })
- await toast.getByTestId('update-restart').click()
- await expect.poll(() => restarts(app)).toBe(1)
- await expect(toast).toHaveCount(0)
- } finally { await app.close() }
-})
-
-test('closing the offer puts it off, and it comes back later', async () => {
- const { app, page } = await launch()
- try {
- const toast = page.getByTestId('update-toast')
- await expect(toast).toBeVisible({ timeout: 10_000 })
- await toast.locator('.app-toast-close').click()
- await expect(toast).toHaveCount(0)
- await page.waitForTimeout(AFTER_MS / 2)
- await expect(toast).toHaveCount(0)
- await expect(toast).toBeVisible({ timeout: 10_000 })
- expect(await restarts(app)).toBe(0)
- } finally { await app.close() }
-})
-
-test('never offered while recording', async () => {
- const { app, page } = await launch()
- try {
- await page.evaluate(() => window.yogurt.meetings.start(null))
- await expect(page.getByTestId('note-state')).toHaveAttribute('data-state', 'recording')
- await page.waitForTimeout(AFTER_MS * 3)
- await expect(page.getByTestId('update-toast')).toHaveCount(0)
- await page.getByTestId('note-stop').click()
- await expect(page.getByTestId('update-toast')).toBeVisible({ timeout: 10_000 })
- } finally { await app.close() }
-})
-
-test('an offer already in the corner goes away the moment a recording starts', async () => {
- const { app, page } = await launch()
- try {
- const toast = page.getByTestId('update-toast')
- await expect(toast).toBeVisible({ timeout: 10_000 })
- await page.evaluate(() => window.yogurt.meetings.start(null))
- await expect(toast).toHaveCount(0, { timeout: 1000 })
- } finally { await app.close() }
-})
diff --git a/app/src/main/index.ts b/app/src/main/index.ts
index 8ed5264e..350a32b2 100644
--- a/app/src/main/index.ts
+++ b/app/src/main/index.ts
@@ -78,7 +78,7 @@ import { startedHidden } from './mcp/paths'
import { deleteRecording } from './deleteRecording'
import { AUDIO_SCHEME, audioExts, createAudioHandler, trackFile, type AudioExt } from './audio'
import { helperDecode, wavDecode } from './asr/backfill'
-import { finishQuit, hookUpdates, isPreviewBuild, updateOfferChanged, updatesOn } from './updates'
+import { finishQuit, hookUpdates, isPreviewBuild, updatesOn } from './updates'
import type { NoteSaveResult, StartResult } from '../shared/types'
// the transcript's player streams each meeting's audio from here; seeking needs stream support (before ready)
@@ -242,7 +242,6 @@ let presented = 0
let settingsOpened = 0
let refreshCalendarConsumers = () => {}
/** a call is on (recording or not): the corner never offers Restart then */
-let onCall = () => false
/** fake mode: the System Settings panes the permission steps and Settings would have opened */
const systemSettings: string[] = []
/** fake mode: how many times Yogurt would have quit and opened again for a permission */
@@ -298,8 +297,7 @@ function startDetection() {
// fake mode: tests can shorten the grace
graceMs: isFake() && process.env.YOGURT_FAKE_CALL_GONE_MS ? Number(process.env.YOGURT_FAKE_CALL_GONE_MS) : CALL_GONE_MS,
})
- onMeetingStop(() => { watcher.cleared(); updateOfferChanged() })
- onCall = () => watcher.onCall()
+ onMeetingStop(() => { watcher.cleared() })
const prompts = createPrompts({
windowVisible: () => !!win && win.isVisible() && !win.isMinimized(),
takeNotes: (p) => begin({ title: p.title || t('{app} call', { app: p.app ?? '' }).trim(), event: p.event, app: p.app }),
@@ -315,7 +313,7 @@ function startDetection() {
stop: (id) => { stopMeeting(id) },
foreground: () => !!win && !win.isDestroyed() && win.isVisible() && !win.isMinimized() && win.isFocused(),
})
- onMeetingStart(() => { prompts.hide(); watcher.cleared(); updateOfferChanged() })
+ onMeetingStart(() => { prompts.hide(); watcher.cleared() })
// Recording needs the mic and the call audio: one never asked is asked now (the Mac's own prompt, as any app does
// when it first records); one still off says so under the note, where its button turns it on.
onMeetingStart((m) => void (async () => {
@@ -1031,9 +1029,9 @@ app.whenReady().then(() => {
const updatesAvailable = updatesOn({ packaged: app.isPackaged, fake: isFake(), profile: !!process.env.YOGURT_USER_DATA, platform: process.platform, appImage: !!process.env.APPIMAGE,
feed: app.isPackaged && existsSync(join(process.resourcesPath, 'app-update.yml')),
preview: app.isPackaged && isPreviewBuild((() => { try { return readFileSync(join(app.getAppPath(), 'package.json'), 'utf8') } catch { return '' } })()) })
- hookUpdates({ file: join(userDataDir(), 'settings.json'), available: updatesAvailable, recording: () => !!activeMeeting(), onCall: () => onCall(),
- // fake mode: a test pretends a version downloaded, and how long it waits before the corner offers Restart
- fake: isFake() && process.env.YOGURT_FAKE_UPDATE ? { version: process.env.YOGURT_FAKE_UPDATE, afterMs: Number(process.env.YOGURT_FAKE_UPDATE_AFTER_MS ?? 0), restarted: () => { updateRestarts++ } } : undefined })
+ hookUpdates({ file: join(userDataDir(), 'settings.json'), available: updatesAvailable, recording: () => !!activeMeeting(),
+ // fake mode: a test pretends a version downloaded
+ fake: isFake() && process.env.YOGURT_FAKE_UPDATE ? { version: process.env.YOGURT_FAKE_UPDATE, restarted: () => { updateRestarts++ } } : undefined })
.catch((err) => console.warn("couldn't start looking for new versions", err))
// the Dock icon: the main window, even while the widget is up
app.on('activate', showMain)
diff --git a/app/src/main/updates.ts b/app/src/main/updates.ts
index 35d9e1ab..ee3ddde7 100644
--- a/app/src/main/updates.ts
+++ b/app/src/main/updates.ts
@@ -21,21 +21,7 @@ export const isPreviewBuild = (packageJson: string): boolean => {
try { return JSON.parse(packageJson).yogurtPreview === true } catch { return false }
}
-/** how long a downloaded version waits for a quit before the corner offers Restart, and how long X puts it off */
-export const OFFER_AFTER_MS = 24 * 60 * 60 * 1000
-
-/**
- * The corner offers Restart Yogurt for a downloaded version. Most people quit within a day, and it installs then
- * without a word; only someone who keeps Yogurt open longer is asked. Never during a call or a recording (restarting would end it).
- */
-export function offersRestart(o: { readyAt?: number; now: number; snoozedUntil: number; recording: boolean; on: boolean; afterMs?: number }): boolean {
- return o.readyAt !== undefined && o.on && !o.recording && o.now - o.readyAt >= (o.afterMs ?? OFFER_AFTER_MS) && o.now >= o.snoozedUntil
-}
-
let updater: AppUpdater | undefined
-let announce = () => {}
-/** a recording started or stopped: the corner's offer may change now */
-export const updateOfferChanged = (): void => announce()
let installOnQuit = false
/** After quit, installs a downloaded version and reopens if that was requested via Settings. */
@@ -49,23 +35,19 @@ export function finishQuit(): void {
* available: false in a build that never updates (see updatesOn); Settings then shows only the version.
* DOES NOT WORK WHILE RECORDING.
*/
-export async function hookUpdates(d: { file: string; available: boolean; recording(): boolean; /** a call app is on the mic, recorded or not */ onCall?(): boolean; /** fake mode: a version already downloaded */ fake?: { version: string; afterMs: number; restarted(): void } }): Promise<void> {
+export async function hookUpdates(d: { file: string; available: boolean; recording(): boolean; /** fake mode: a version already downloaded */ fake?: { version: string; restarted(): void } }): Promise<void> {
let state: UpdateStatus['state'] = 'idle'
- let next: string | undefined
- let readyAt: number | undefined, snoozedUntil = 0
+ let next: string | undefined, dismissedVersion: string | undefined
const status = (): UpdateStatus => {
const on = autoUpdateOn(loadSettings(d.file))
- const offer = offersRestart({ readyAt, now: Date.now(), snoozedUntil, recording: d.recording() || !!d.onCall?.(), on, afterMs: d.fake?.afterMs })
- return { version: app.getVersion(), available: d.available || !!d.fake, on, state, next, offer }
+ return { version: app.getVersion(), available: d.available || !!d.fake, on, state, next, dismissed: !!next && next === dismissedVersion }
}
const set = (s: UpdateStatus['state'], version?: string) => {
state = s
if (version) next = version
- if (s === 'ready') readyAt ??= Date.now()
for (const w of BrowserWindow.getAllWindows()) if (!w.isDestroyed()) w.webContents.send('updates:status', status())
}
- announce = () => set(state)
ipcMain.handle('updates:status', status)
ipcMain.handle('updates:set', (_e, on: unknown) => {
if (typeof on !== 'boolean') return status()
@@ -76,22 +58,21 @@ export async function hookUpdates(d: { file: string; available: boolean; recordi
return status()
})
ipcMain.handle('updates:check', () => { check() })
+ ipcMain.handle('updates:later', () => {
+ if (state !== 'ready' || !next) return
+ dismissedVersion = next
+ set(state)
+ })
ipcMain.handle('updates:restart', () => {
if (state !== 'ready' || d.recording()) return false
// fake mode: as if Yogurt came back on the new version
- if (d.fake) { d.fake.restarted(); readyAt = undefined; set('latest'); return true }
+ if (d.fake) { d.fake.restarted(); set('latest'); return true }
installOnQuit = true
app.quit()
return true
})
- // the corner's X: ask again tomorrow
- ipcMain.handle('updates:later', () => { snoozedUntil = Date.now() + (d.fake?.afterMs ?? OFFER_AFTER_MS); set(state) })
- // the offer depends on the clock and on recording, so tell the windows again now and then once a version is ready
- setInterval(() => { if (state === 'ready') set(state) }, d.fake ? Math.max(200, d.fake.afterMs / 4) : 60 * 1000).unref?.()
-
+ const check = () => { if (!d.fake && updater && autoUpdateOn(loadSettings(d.file)) && state !== 'ready') updater.checkForUpdates().catch(() => {}) }
if (d.fake) { set('ready', d.fake.version); return }
-
- const check = () => { if (updater && autoUpdateOn(loadSettings(d.file)) && state !== 'ready') updater.checkForUpdates().catch(() => {}) }
if (!d.available) return
// loaded here: it reads Electron's app as it loads, which tests don't have
diff --git a/app/src/renderer/src/components/TrashToast.tsx b/app/src/renderer/src/components/TrashToast.tsx
index 3808fd99..4c3718ba 100644
--- a/app/src/renderer/src/components/TrashToast.tsx
+++ b/app/src/renderer/src/components/TrashToast.tsx
@@ -2,7 +2,7 @@ import { useEffect, useLayoutEffect, useRef, useState } from 'react'
import { Toast } from '@animate-ui/react/primitives/base-ui/toast'
import { X } from 'lucide-react'
import { t } from '../../../shared/i18n'
-import type { SetupState, UpdateStatus } from '../../../shared/types'
+import type { SetupState } from '../../../shared/types'
import { motion, useReducedMotion } from '../motion'
import { notesReadyNotice } from '../notesSetup'
import { changeMeetingRows } from '../meetingRowMotion'
@@ -82,29 +82,6 @@ export function TrashToast({ go }: { go: (route: string) => void }) {
remind()
return off
}, [])
- useEffect(() => {
- // a downloaded version Yogurt has waited a day to install: Restart Yogurt here; X asks again tomorrow
- let shown: string | undefined, restarting = false
- const offer = (s: UpdateStatus) => {
- if (!s.offer || !s.next) { if (shown) toasts.close(shown); shown = undefined; return }
- if (shown) return
- const id = shown = toasts.add({
- id: 'update-ready', title: t('A new version of Yogurt is ready'), timeout: 0,
- data: { testId: 'update-toast', actionTestId: 'update-restart' },
- onClose: () => { if (shown !== id) return; shown = undefined; if (!restarting) void window.yogurt.updates.later() },
- actionProps: { children: t('Restart Yogurt'), onClick: async () => {
- restarting = true
- const ok = await window.yogurt.updates.restart().catch(() => false)
- if (ok) { toasts.close(id); return }
- restarting = false
- toasts.update(id, { title: t('Stop the recording first, then try again.') })
- } },
- })
- }
- const off = window.yogurt.updates.onStatus(offer)
- void window.yogurt.updates.status().then(offer)
- return off
- }, [])
const previous = useRef<string>(undefined)
useEffect(() => {
show = (s) => {
diff --git a/app/src/renderer/src/components/UpdateReady.tsx b/app/src/renderer/src/components/UpdateReady.tsx
new file mode 100644
index 00000000..30ef8b04
--- /dev/null
+++ b/app/src/renderer/src/components/UpdateReady.tsx
@@ -0,0 +1,58 @@
+import { useEffect, useState } from 'react'
+import { Popover } from '@base-ui/react/popover'
+import { DirectionProvider } from '@base-ui/react/direction-provider'
+import type { UpdateStatus } from '../../../shared/types'
+import { dirOf, language, t } from '../../../shared/i18n'
+
+export function UpdateReady({ recording }: { recording: boolean }) {
+ const [status, setStatus] = useState<UpdateStatus>()
+ const [open, setOpen] = useState(false)
+ const [restarting, setRestarting] = useState(false)
+ const [failed, setFailed] = useState<'restart' | 'later'>()
+ useEffect(() => {
+ let active = true, updated = false
+ const update = (next: UpdateStatus) => {
+ if (!active) return
+ updated = true; setStatus(next)
+ if (next.state !== 'ready' || next.dismissed) { setOpen(false); setFailed(undefined) }
+ }
+ const off = window.yogurt.updates.onStatus(update)
+ void window.yogurt.updates.status().then(next => { if (!updated) update(next) }).catch(() => {})
+ return () => { active = false; off() }
+ }, [])
+ const restart = async () => {
+ if (recording || restarting || status?.state !== 'ready') return
+ setRestarting(true); setFailed(undefined)
+ try {
+ if (await window.yogurt.updates.restart()) setOpen(false)
+ else setFailed('restart')
+ } catch { setFailed('restart') }
+ finally { setRestarting(false) }
+ }
+ const later = async () => {
+ setFailed(undefined)
+ try { await window.yogurt.updates.later(); setOpen(false) }
+ catch { setFailed('later') }
+ }
+ if (status?.state !== 'ready' || status.dismissed) return null
+ return <DirectionProvider direction={dirOf(language())}><span className="notes-download-status update-ready-status">
+ <Popover.Root open={open} onOpenChange={setOpen}>
+ <Popover.Trigger data-testid="update-ready" className="bar-btn notes-download-trigger no-drag" title={t('Update ready')}>
+ <span className="truncate">{t('Update ready')}</span>
+ </Popover.Trigger>
+ <Popover.Portal>
+ <Popover.Positioner side="bottom" align="end" sideOffset={8} collisionPadding={12} positionMethod="fixed" className="notes-download-positioner">
+ <Popover.Popup data-testid="update-popover" data-anchor="end" data-pointer="true" className="menu-entry notes-download-menu update-ready-menu">
+ <Popover.Title>{t('Yogurt {version}', { version: status.next ?? '' })}</Popover.Title>
+ <Popover.Description className="update-ready-description">{recording ? t('You can restart after recording') : t('Installs when you restart Yogurt')}</Popover.Description>
+ <div className="update-ready-actions">
+ <button data-testid="update-later" className="update-ready-later" onClick={() => void later()}>{t('Later')}</button>
+ <button data-testid="update-restart" className="workspace-button primary" disabled={recording || restarting} onClick={() => void restart()}>{t('Restart')}</button>
+ </div>
+ {failed && (failed === 'later' || !recording) && <p role="alert">{failed === 'later' ? t("Yogurt couldn't make that change. Try again.") : t("Yogurt couldn't restart. Try again.")}</p>}
+ </Popover.Popup>
+ </Popover.Positioner>
+ </Popover.Portal>
+ </Popover.Root>
+ </span></DirectionProvider>
+}
diff --git a/app/src/renderer/src/components/Workspace.tsx b/app/src/renderer/src/components/Workspace.tsx
index c365c2e8..0194cdff 100644
--- a/app/src/renderer/src/components/Workspace.tsx
+++ b/app/src/renderer/src/components/Workspace.tsx
@@ -13,6 +13,7 @@ import { FileText, MessageCircle, Search, Settings, SidebarToggle } from './Icon
import { FoldersNav } from './FoldersNav'
import { FinishSetup } from './FinishSetup'
import { NotesSetup } from './NotesSetup'
+import { UpdateReady } from './UpdateReady'
export function Workspace({ route, meeting, folders, go, back, forward, search, collapsed, sidebarMotion, toggleSidebar, children }: {
meeting?: Pick<MeetingView, 'id' | 'title'>
@@ -104,12 +105,13 @@ export function Workspace({ route, meeting, folders, go, back, forward, search,
</span>
<span data-testid="workspace-heading" aria-current="page" title={label}>{label}</span>
</div>
+ <UpdateReady recording={recording?.kind === 'recording'} />
+ <NotesSetup go={go} />
{returnToRecording && <button className="workspace-recording-link no-drag" data-testid="recording-return" data-paused={recording.paused}
aria-label={t('Open {title}', { title: recording.title })} title={t('Open {title}', { title: recording.title })} onClick={() => go(`/note/${recording.meetingId}`)}>
<LevelBars testId="recording-return-wave" height={16} paused={recording.paused} />
<RecordingTime view={recording} testId="recording-return-time" className="recording-return-time" />
</button>}
- <NotesSetup go={go} />
<div id="workspace-actions" className="workspace-toolbar-actions" />
</header>
{children}
diff --git a/app/src/renderer/src/styles.css b/app/src/renderer/src/styles.css
index 8cb52ae5..31cb2333 100644
--- a/app/src/renderer/src/styles.css
+++ b/app/src/renderer/src/styles.css
@@ -964,3 +964,15 @@ html:not(.widget) button:focus-visible, html:not(.widget) input:focus-visible {
.renderer-recovery-titlebar { position:absolute;inset:0 0 auto;height:52px; }
.renderer-recovery-content { display:flex;flex-direction:column;align-items:center;gap:16px;max-width:360px;text-align:center;font-size:14px; }
.renderer-recovery-content .modal-button { width:auto;min-width:80px; }
+
+/* The update shares the download status pattern, without a progress indicator. */
+.update-ready-status { max-width:35%; }
+.update-ready-menu { width:max-content;min-width:286px;max-width:calc(100vw - 24px); }
+.update-ready-menu h2 { font-size:12px;font-weight:550;line-height:18px; }
+.update-ready-menu .update-ready-description { margin:6px 0 15px;color:var(--muted);font-size:11px;white-space:nowrap;text-wrap:nowrap;overflow:hidden;text-overflow:ellipsis; }
+.update-ready-actions { display:flex;justify-content:flex-end;align-items:center;gap:14px; }
+.update-ready-later { border:0;padding:4px 0;background:transparent;color:var(--muted);font-size:11px; }
+.update-ready-later:hover { color:var(--ink);background:transparent; }
+.update-ready-later:active { transform:none; }
+.update-ready-later:focus-visible { outline:2px solid var(--focus);outline-offset:2px; }
+.update-ready-menu [role=alert] { max-width:320px;font-size:11px;color:var(--muted); }
diff --git a/app/src/renderer/src/workspace.css b/app/src/renderer/src/workspace.css
index c6ae5328..c77f25a2 100644
--- a/app/src/renderer/src/workspace.css
+++ b/app/src/renderer/src/workspace.css
@@ -82,6 +82,9 @@
.document-body { padding-inline:clamp(20px,calc(10cqw - 42px),48px); }
.workspace-toolbar { position:absolute;inset-inline:0;top:0;height:52px;z-index:50;display:flex;align-items:center;padding:0 24px;border-bottom:1px solid var(--line);background:transparent; }
.workspace-toolbar[data-note=true] { padding-inline-end:185px; }
+/* Match the 30px controls centred above the title bar's bottom hairline. */
+.note-topbar { top:calc((52px - 1px - 30px) / 2); }
+.note-topbar > div > button { width:30px;height:30px; }
.workspace-breadcrumb { display:flex;gap:9px;align-items:center;min-width:0;color:var(--muted);font-size:13px;white-space:nowrap; }
.workspace-breadcrumb>svg { flex:none; }
.workspace-breadcrumb>[aria-current] { color:var(--ink);font-weight:500;overflow:hidden;text-overflow:ellipsis; }
@@ -133,6 +136,7 @@
.workspace:dir(rtl) .workspace-toolbar:has(.workspace-toolbar-actions:not(:empty)) { padding-inline-end:132px; }
/* Reserve space for the status and More, truncating labels in a narrow window. */
.workspace-toolbar:has(.notes-download-status) { gap:10px;padding-inline-end:17px; }
+.workspace-toolbar:has(.update-ready-status):has(.notes-download-status:not(.update-ready-status)) { gap:8px; }
.workspace-toolbar:has(.notes-download-status) .workspace-breadcrumb { flex:1;overflow:hidden; }
.workspace-toolbar[data-note=true]:has(.notes-download-status) { padding-inline-end:62px; }
.workspace:dir(rtl) .workspace-toolbar:has(.notes-download-status) { padding-inline-end:132px; }
diff --git a/app/src/shared/locales/ar.json b/app/src/shared/locales/ar.json
index 827563fc..6d72243c 100644
--- a/app/src/shared/locales/ar.json
+++ b/app/src/shared/locales/ar.json
@@ -626,7 +626,6 @@
"other": "تم نقل {count} اجتماع إلى سلة المهملات"
},
"Recorded with {app}": "سُجّل باستخدام {app}",
- "A new version of Yogurt is ready": "إصدار جديد من Yogurt جاهز",
"Upgrading AI": "جارٍ ترقية الذكاء الاصطناعي",
"Upgrading AI · {percent}": "جارٍ ترقية الذكاء الاصطناعي · {percent}",
"AI upgrade paused": "ترقية الذكاء الاصطناعي متوقفة مؤقتًا",
@@ -749,5 +748,12 @@
},
"No matches": "لا توجد نتائج",
"Previous match": "النتيجة السابقة",
- "Next match": "النتيجة التالية"
+ "Next match": "النتيجة التالية",
+ "Update ready": "التحديث جاهز",
+ "Installs when you restart Yogurt": "يُثبّت عند إعادة تشغيل Yogurt",
+ "You can restart after recording": "يمكنك إعادة التشغيل بعد التسجيل",
+ "Later": "لاحقًا",
+ "Restart": "إعادة التشغيل",
+ "Yogurt couldn't restart. Try again.": "تعذّرت إعادة تشغيل Yogurt. حاول مجددًا.",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/bn.json b/app/src/shared/locales/bn.json
index 1b8ddc5f..25180ca4 100644
--- a/app/src/shared/locales/bn.json
+++ b/app/src/shared/locales/bn.json
@@ -564,7 +564,6 @@
"Move {count} meetings to Trash": "{count}টি মিটিং ট্র্যাশে সরান",
"{count} meetings moved to Trash": "{count}টি মিটিং ট্র্যাশে সরানো হয়েছে",
"Recorded with {app}": "{app} দিয়ে রেকর্ড করা",
- "A new version of Yogurt is ready": "Yogurt-এর নতুন সংস্করণ তৈরি",
"Upgrading AI": "AI আপগ্রেড হচ্ছে",
"Upgrading AI · {percent}": "AI আপগ্রেড হচ্ছে · {percent}",
"AI upgrade paused": "AI আপগ্রেড সাময়িকভাবে বন্ধ",
@@ -681,5 +680,12 @@
},
"No matches": "কোনো মিল নেই",
"Previous match": "আগের মিল",
- "Next match": "পরের মিল"
+ "Next match": "পরের মিল",
+ "Update ready": "আপডেট প্রস্তুত",
+ "Installs when you restart Yogurt": "Yogurt আবার চালু করলে ইনস্টল হবে",
+ "You can restart after recording": "রেকর্ডিং শেষে আবার চালু করতে পারবেন",
+ "Later": "পরে",
+ "Restart": "আবার চালু",
+ "Yogurt couldn't restart. Try again.": "Yogurt আবার চালু করা যায়নি। আবার চেষ্টা করুন।",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/cs.json b/app/src/shared/locales/cs.json
index 1ad0e4a6..aa296d38 100644
--- a/app/src/shared/locales/cs.json
+++ b/app/src/shared/locales/cs.json
@@ -603,7 +603,6 @@
"other": "{count} schůzek přesunuto do koše"
},
"Recorded with {app}": "Nahráno v aplikaci {app}",
- "A new version of Yogurt is ready": "Nová verze Yogurtu je připravená",
"Upgrading AI": "Vylepšování AI",
"Upgrading AI · {percent}": "Vylepšování AI · {percent}",
"AI upgrade paused": "Vylepšování AI pozastaveno",
@@ -724,5 +723,12 @@
},
"No matches": "Žádné shody",
"Previous match": "Předchozí shoda",
- "Next match": "Další shoda"
+ "Next match": "Další shoda",
+ "Update ready": "Aktualizace připravena",
+ "Installs when you restart Yogurt": "Nainstaluje se po restartu Yogurtu",
+ "You can restart after recording": "Restart bude možný po nahrávání",
+ "Later": "Později",
+ "Restart": "Restartovat",
+ "Yogurt couldn't restart. Try again.": "Yogurt se nepodařilo restartovat. Zkuste to znovu.",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/da.json b/app/src/shared/locales/da.json
index 3c6bbb0c..2942b4e3 100644
--- a/app/src/shared/locales/da.json
+++ b/app/src/shared/locales/da.json
@@ -573,7 +573,6 @@
"other": "{count} møder flyttet til papirkurv"
},
"Recorded with {app}": "Optaget med {app}",
- "A new version of Yogurt is ready": "En ny version af Yogurt er klar",
"Upgrading AI": "Opgraderer AI",
"Upgrading AI · {percent}": "Opgraderer AI · {percent}",
"AI upgrade paused": "AI-opgradering sat på pause",
@@ -693,5 +692,12 @@
},
"No matches": "Ingen resultater",
"Previous match": "Forrige resultat",
- "Next match": "Næste resultat"
+ "Next match": "Næste resultat",
+ "Update ready": "Opdatering klar",
+ "Installs when you restart Yogurt": "Installeres, når du genstarter Yogurt",
+ "You can restart after recording": "Du kan genstarte efter optagelsen",
+ "Later": "Senere",
+ "Restart": "Genstart",
+ "Yogurt couldn't restart. Try again.": "Yogurt kunne ikke genstarte. Prøv igen.",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/de.json b/app/src/shared/locales/de.json
index 2027bf05..5f113b34 100644
--- a/app/src/shared/locales/de.json
+++ b/app/src/shared/locales/de.json
@@ -573,7 +573,6 @@
"other": "{count} Meetings in den Papierkorb verschoben"
},
"Recorded with {app}": "Aufgenommen mit {app}",
- "A new version of Yogurt is ready": "Eine neue Version von Yogurt ist bereit",
"Upgrading AI": "KI wird verbessert",
"Upgrading AI · {percent}": "KI wird verbessert · {percent}",
"AI upgrade paused": "KI-Upgrade pausiert",
@@ -693,5 +692,12 @@
},
"No matches": "Keine Treffer",
"Previous match": "Vorheriger Treffer",
- "Next match": "Nächster Treffer"
+ "Next match": "Nächster Treffer",
+ "Update ready": "Update bereit",
+ "Installs when you restart Yogurt": "Wird beim Neustart von Yogurt installiert",
+ "You can restart after recording": "Neustart ist nach der Aufnahme möglich",
+ "Later": "Später",
+ "Restart": "Neu starten",
+ "Yogurt couldn't restart. Try again.": "Yogurt konnte nicht neu starten. Versuche es erneut.",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/el.json b/app/src/shared/locales/el.json
index 1b883ea4..4d310019 100644
--- a/app/src/shared/locales/el.json
+++ b/app/src/shared/locales/el.json
@@ -576,7 +576,6 @@
"other": "{count} συσκέψεις μετακινήθηκαν στον Κάδο"
},
"Recorded with {app}": "Ηχογραφήθηκε με το {app}",
- "A new version of Yogurt is ready": "Μια νέα έκδοση του Yogurt είναι έτοιμη",
"Upgrading AI": "Αναβάθμιση AI",
"Upgrading AI · {percent}": "Αναβάθμιση AI · {percent}",
"AI upgrade paused": "Η αναβάθμιση AI έχει παύσει",
@@ -696,5 +695,12 @@
},
"No matches": "Δεν βρέθηκαν αποτελέσματα",
"Previous match": "Προηγούμενο αποτέλεσμα",
- "Next match": "Επόμενο αποτέλεσμα"
+ "Next match": "Επόμενο αποτέλεσμα",
+ "Update ready": "Η ενημέρωση είναι έτοιμη",
+ "Installs when you restart Yogurt": "Εγκαθίσταται στην επανεκκίνηση του Yogurt",
+ "You can restart after recording": "Μπορείτε να επανεκκινήσετε μετά την εγγραφή",
+ "Later": "Αργότερα",
+ "Restart": "Επανεκκίνηση",
+ "Yogurt couldn't restart. Try again.": "Το Yogurt δεν μπόρεσε να επανεκκινηθεί. Δοκιμάστε ξανά.",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/en.json b/app/src/shared/locales/en.json
index 3f72400d..98101c98 100644
--- a/app/src/shared/locales/en.json
+++ b/app/src/shared/locales/en.json
@@ -217,5 +217,12 @@
},
"No matches": "No matches",
"Previous match": "Previous match",
- "Next match": "Next match"
+ "Next match": "Next match",
+ "Update ready": "Update ready",
+ "Installs when you restart Yogurt": "Installs when you restart Yogurt",
+ "You can restart after recording": "You can restart after recording",
+ "Later": "Later",
+ "Restart": "Restart",
+ "Yogurt couldn't restart. Try again.": "Yogurt couldn't restart. Try again.",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/es.json b/app/src/shared/locales/es.json
index 4d079a8e..398c076d 100644
--- a/app/src/shared/locales/es.json
+++ b/app/src/shared/locales/es.json
@@ -586,7 +586,6 @@
"other": "{count} reuniones movidas a la papelera"
},
"Recorded with {app}": "Grabado con {app}",
- "A new version of Yogurt is ready": "Hay una nueva versión de Yogurt lista",
"Upgrading AI": "Mejorando la IA",
"Upgrading AI · {percent}": "Mejorando la IA · {percent}",
"AI upgrade paused": "Mejora de la IA en pausa",
@@ -706,5 +705,12 @@
},
"No matches": "Sin coincidencias",
"Previous match": "Coincidencia anterior",
- "Next match": "Coincidencia siguiente"
+ "Next match": "Coincidencia siguiente",
+ "Update ready": "Actualización lista",
+ "Installs when you restart Yogurt": "Se instala al reiniciar Yogurt",
+ "You can restart after recording": "Puedes reiniciar después de grabar",
+ "Later": "Más tarde",
+ "Restart": "Reiniciar",
+ "Yogurt couldn't restart. Try again.": "No se pudo reiniciar Yogurt. Inténtalo de nuevo.",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/fi.json b/app/src/shared/locales/fi.json
index b12dcae6..d891ee3b 100644
--- a/app/src/shared/locales/fi.json
+++ b/app/src/shared/locales/fi.json
@@ -576,7 +576,6 @@
"other": "{count} kokousta siirretty roskakoriin"
},
"Recorded with {app}": "Tallennettu sovelluksella {app}",
- "A new version of Yogurt is ready": "Uusi Yogurt-versio on valmis",
"Upgrading AI": "Päivitetään tekoälyä",
"Upgrading AI · {percent}": "Päivitetään tekoälyä · {percent}",
"AI upgrade paused": "Tekoälyn päivitys keskeytetty",
@@ -699,5 +698,12 @@
},
"No matches": "Ei osumia",
"Previous match": "Edellinen osuma",
- "Next match": "Seuraava osuma"
+ "Next match": "Seuraava osuma",
+ "Update ready": "Päivitys valmis",
+ "Installs when you restart Yogurt": "Asennetaan, kun käynnistät Yogurtin uudelleen",
+ "You can restart after recording": "Voit käynnistää uudelleen tallennuksen jälkeen",
+ "Later": "Myöhemmin",
+ "Restart": "Käynnistä uudelleen",
+ "Yogurt couldn't restart. Try again.": "Yogurt ei voinut käynnistyä uudelleen. Yritä uudelleen.",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/fil.json b/app/src/shared/locales/fil.json
index eee3df72..5840f98d 100644
--- a/app/src/shared/locales/fil.json
+++ b/app/src/shared/locales/fil.json
@@ -573,7 +573,6 @@
"other": "Inilipat ang {count} na meeting sa Basurahan"
},
"Recorded with {app}": "Ni-record gamit ang {app}",
- "A new version of Yogurt is ready": "Handa na ang bagong bersyon ng Yogurt",
"Upgrading AI": "Ina-upgrade ang AI",
"Upgrading AI · {percent}": "Ina-upgrade ang AI · {percent}",
"AI upgrade paused": "Naka-pause ang pag-upgrade ng AI",
@@ -693,5 +692,12 @@
},
"No matches": "Walang tugma",
"Previous match": "Nakaraang tugma",
- "Next match": "Susunod na tugma"
+ "Next match": "Susunod na tugma",
+ "Update ready": "Handa na ang update",
+ "Installs when you restart Yogurt": "Mai-install kapag ni-restart mo ang Yogurt",
+ "You can restart after recording": "Maaari kang mag-restart pagkatapos mag-record",
+ "Later": "Mamaya",
+ "Restart": "I-restart",
+ "Yogurt couldn't restart. Try again.": "Hindi ma-restart ang Yogurt. Subukan muli.",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/fr.json b/app/src/shared/locales/fr.json
index f372bec0..86468cce 100644
--- a/app/src/shared/locales/fr.json
+++ b/app/src/shared/locales/fr.json
@@ -586,7 +586,6 @@
"other": "{count} réunions déplacées vers la corbeille"
},
"Recorded with {app}": "Enregistré avec {app}",
- "A new version of Yogurt is ready": "Une nouvelle version de Yogurt est prête",
"Upgrading AI": "Amélioration de l’IA",
"Upgrading AI · {percent}": "Amélioration de l’IA · {percent}",
"AI upgrade paused": "Amélioration de l’IA en pause",
@@ -709,5 +708,12 @@
},
"No matches": "Aucune correspondance",
"Previous match": "Correspondance précédente",
- "Next match": "Correspondance suivante"
+ "Next match": "Correspondance suivante",
+ "Update ready": "Mise à jour prête",
+ "Installs when you restart Yogurt": "S’installe au redémarrage de Yogurt",
+ "You can restart after recording": "Vous pourrez redémarrer après l’enregistrement",
+ "Later": "Plus tard",
+ "Restart": "Redémarrer",
+ "Yogurt couldn't restart. Try again.": "Yogurt n’a pas pu redémarrer. Réessayez.",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/he.json b/app/src/shared/locales/he.json
index 7d203218..ca464e99 100644
--- a/app/src/shared/locales/he.json
+++ b/app/src/shared/locales/he.json
@@ -583,7 +583,6 @@
"other": "{count} פגישות הועברו לאשפה"
},
"Recorded with {app}": "הוקלט עם {app}",
- "A new version of Yogurt is ready": "גרסה חדשה של Yogurt מוכנה",
"Upgrading AI": "משדרגים את הבינה המלאכותית",
"Upgrading AI · {percent}": "משדרגים את הבינה המלאכותית · {percent}",
"AI upgrade paused": "שדרוג הבינה המלאכותית מושהה",
@@ -703,5 +702,12 @@
},
"No matches": "אין התאמות",
"Previous match": "ההתאמה הקודמת",
- "Next match": "ההתאמה הבאה"
+ "Next match": "ההתאמה הבאה",
+ "Update ready": "העדכון מוכן",
+ "Installs when you restart Yogurt": "יותקן בהפעלה מחדש של Yogurt",
+ "You can restart after recording": "אפשר להפעיל מחדש אחרי ההקלטה",
+ "Later": "מאוחר יותר",
+ "Restart": "הפעלה מחדש",
+ "Yogurt couldn't restart. Try again.": "לא ניתן היה להפעיל מחדש את Yogurt. נסו שוב.",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/hi.json b/app/src/shared/locales/hi.json
index ab2ccf42..3cc48e2d 100644
--- a/app/src/shared/locales/hi.json
+++ b/app/src/shared/locales/hi.json
@@ -564,7 +564,6 @@
"Move {count} meetings to Trash": "{count} मीटिंग ट्रैश में ले जाएँ",
"{count} meetings moved to Trash": "{count} मीटिंग ट्रैश में ले जाई गईं",
"Recorded with {app}": "{app} से रिकॉर्ड किया गया",
- "A new version of Yogurt is ready": "Yogurt का नया संस्करण तैयार है",
"Upgrading AI": "AI अपग्रेड हो रहा है",
"Upgrading AI · {percent}": "AI अपग्रेड हो रहा है · {percent}",
"AI upgrade paused": "AI अपग्रेड रुका हुआ है",
@@ -681,5 +680,12 @@
},
"No matches": "कोई मेल नहीं",
"Previous match": "पिछला मेल",
- "Next match": "अगला मेल"
+ "Next match": "अगला मेल",
+ "Update ready": "अपडेट तैयार है",
+ "Installs when you restart Yogurt": "Yogurt फिर शुरू करने पर इंस्टॉल होगा",
+ "You can restart after recording": "रिकॉर्डिंग के बाद फिर शुरू कर सकते हैं",
+ "Later": "बाद में",
+ "Restart": "फिर शुरू करें",
+ "Yogurt couldn't restart. Try again.": "Yogurt फिर शुरू नहीं हो सका। फिर कोशिश करें।",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/hu.json b/app/src/shared/locales/hu.json
index 26597ae4..353948c5 100644
--- a/app/src/shared/locales/hu.json
+++ b/app/src/shared/locales/hu.json
@@ -564,7 +564,6 @@
"Move {count} meetings to Trash": "{count} megbeszélés áthelyezése a kukába",
"{count} meetings moved to Trash": "{count} megbeszélés a kukába helyezve",
"Recorded with {app}": "Rögzítve: {app}",
- "A new version of Yogurt is ready": "Elkészült a Yogurt új verziója",
"Upgrading AI": "AI frissítése",
"Upgrading AI · {percent}": "AI frissítése · {percent}",
"AI upgrade paused": "Az AI frissítése szünetel",
@@ -681,5 +680,12 @@
},
"No matches": "Nincs találat",
"Previous match": "Előző találat",
- "Next match": "Következő találat"
+ "Next match": "Következő találat",
+ "Update ready": "Frissítés kész",
+ "Installs when you restart Yogurt": "A Yogurt újraindításakor települ",
+ "You can restart after recording": "A felvétel után újraindítható",
+ "Later": "Később",
+ "Restart": "Újraindítás",
+ "Yogurt couldn't restart. Try again.": "A Yogurt nem tudott újraindulni. Próbáld újra.",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/id.json b/app/src/shared/locales/id.json
index 1c4f0f20..abb34ee7 100644
--- a/app/src/shared/locales/id.json
+++ b/app/src/shared/locales/id.json
@@ -534,7 +534,6 @@
"Move {count} meetings to Trash": "Pindahkan {count} rapat ke Sampah",
"{count} meetings moved to Trash": "{count} rapat dipindahkan ke Sampah",
"Recorded with {app}": "Direkam dengan {app}",
- "A new version of Yogurt is ready": "Versi baru Yogurt sudah siap",
"Upgrading AI": "Meningkatkan AI",
"Upgrading AI · {percent}": "Meningkatkan AI · {percent}",
"AI upgrade paused": "Peningkatan AI dijeda",
@@ -651,5 +650,12 @@
},
"No matches": "Tidak ada kecocokan",
"Previous match": "Kecocokan sebelumnya",
- "Next match": "Kecocokan berikutnya"
+ "Next match": "Kecocokan berikutnya",
+ "Update ready": "Pembaruan siap",
+ "Installs when you restart Yogurt": "Dipasang saat Yogurt dimulai ulang",
+ "You can restart after recording": "Anda dapat memulai ulang setelah merekam",
+ "Later": "Nanti",
+ "Restart": "Mulai ulang",
+ "Yogurt couldn't restart. Try again.": "Yogurt tidak dapat dimulai ulang. Coba lagi.",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/it.json b/app/src/shared/locales/it.json
index 8e594400..46ecce28 100644
--- a/app/src/shared/locales/it.json
+++ b/app/src/shared/locales/it.json
@@ -589,7 +589,6 @@
"other": "{count} riunioni spostate nel Cestino"
},
"Recorded with {app}": "Registrato con {app}",
- "A new version of Yogurt is ready": "Una nuova versione di Yogurt è pronta",
"Upgrading AI": "Miglioramento dell’IA",
"Upgrading AI · {percent}": "Miglioramento dell’IA · {percent}",
"AI upgrade paused": "Miglioramento dell’IA in pausa",
@@ -712,5 +711,12 @@
},
"No matches": "Nessuna corrispondenza",
"Previous match": "Corrispondenza precedente",
- "Next match": "Corrispondenza successiva"
+ "Next match": "Corrispondenza successiva",
+ "Update ready": "Aggiornamento pronto",
+ "Installs when you restart Yogurt": "Si installa al riavvio di Yogurt",
+ "You can restart after recording": "Puoi riavviare dopo la registrazione",
+ "Later": "Più tardi",
+ "Restart": "Riavvia",
+ "Yogurt couldn't restart. Try again.": "Impossibile riavviare Yogurt. Riprova.",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/ja.json b/app/src/shared/locales/ja.json
index fb510719..c61dac88 100644
--- a/app/src/shared/locales/ja.json
+++ b/app/src/shared/locales/ja.json
@@ -534,7 +534,6 @@
"Move {count} meetings to Trash": "{count}件のミーティングをゴミ箱に移動",
"{count} meetings moved to Trash": "{count}件のミーティングをゴミ箱に移動しました",
"Recorded with {app}": "{app} で録音",
- "A new version of Yogurt is ready": "Yogurt の新しいバージョンの準備ができました",
"Upgrading AI": "AIをアップグレード中",
"Upgrading AI · {percent}": "AIをアップグレード中 · {percent}",
"AI upgrade paused": "AIのアップグレードは一時停止中",
@@ -651,5 +650,12 @@
},
"No matches": "一致する結果なし",
"Previous match": "前の一致",
- "Next match": "次の一致"
+ "Next match": "次の一致",
+ "Update ready": "更新の準備完了",
+ "Installs when you restart Yogurt": "Yogurtの再起動時にインストールされます",
+ "You can restart after recording": "録音後に再起動できます",
+ "Later": "後で",
+ "Restart": "再起動",
+ "Yogurt couldn't restart. Try again.": "Yogurtを再起動できませんでした。もう一度お試しください。",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/ko.json b/app/src/shared/locales/ko.json
index a84bca75..833d5c1d 100644
--- a/app/src/shared/locales/ko.json
+++ b/app/src/shared/locales/ko.json
@@ -534,7 +534,6 @@
"Move {count} meetings to Trash": "회의 {count}개를 휴지통으로 이동",
"{count} meetings moved to Trash": "회의 {count}개를 휴지통으로 이동했습니다",
"Recorded with {app}": "{app}(으)로 녹음됨",
- "A new version of Yogurt is ready": "Yogurt 새 버전이 준비되었어요",
"Upgrading AI": "AI 업그레이드 중",
"Upgrading AI · {percent}": "AI 업그레이드 중 · {percent}",
"AI upgrade paused": "AI 업그레이드 일시 중지",
@@ -651,5 +650,12 @@
},
"No matches": "일치하는 결과 없음",
"Previous match": "이전 일치 항목",
- "Next match": "다음 일치 항목"
+ "Next match": "다음 일치 항목",
+ "Update ready": "업데이트 준비 완료",
+ "Installs when you restart Yogurt": "Yogurt를 다시 시작하면 설치됩니다",
+ "You can restart after recording": "녹음 후 다시 시작할 수 있습니다",
+ "Later": "나중에",
+ "Restart": "다시 시작",
+ "Yogurt couldn't restart. Try again.": "Yogurt를 다시 시작하지 못했습니다. 다시 시도하세요.",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/ms.json b/app/src/shared/locales/ms.json
index 1229c152..b766318d 100644
--- a/app/src/shared/locales/ms.json
+++ b/app/src/shared/locales/ms.json
@@ -534,7 +534,6 @@
"Move {count} meetings to Trash": "Alih {count} mesyuarat ke Sampah",
"{count} meetings moved to Trash": "{count} mesyuarat dialihkan ke Sampah",
"Recorded with {app}": "Dirakam dengan {app}",
- "A new version of Yogurt is ready": "Versi baharu Yogurt sudah sedia",
"Upgrading AI": "Menaik taraf AI",
"Upgrading AI · {percent}": "Menaik taraf AI · {percent}",
"AI upgrade paused": "Naik taraf AI dijeda",
@@ -651,5 +650,12 @@
},
"No matches": "Tiada padanan",
"Previous match": "Padanan sebelumnya",
- "Next match": "Padanan seterusnya"
+ "Next match": "Padanan seterusnya",
+ "Update ready": "Kemas kini sedia",
+ "Installs when you restart Yogurt": "Dipasang apabila Yogurt dimulakan semula",
+ "You can restart after recording": "Anda boleh mula semula selepas rakaman",
+ "Later": "Kemudian",
+ "Restart": "Mula semula",
+ "Yogurt couldn't restart. Try again.": "Yogurt tidak dapat dimulakan semula. Cuba lagi.",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/nb.json b/app/src/shared/locales/nb.json
index 58037348..d433e3ac 100644
--- a/app/src/shared/locales/nb.json
+++ b/app/src/shared/locales/nb.json
@@ -573,7 +573,6 @@
"other": "{count} møter flyttet til papirkurven"
},
"Recorded with {app}": "Tatt opp med {app}",
- "A new version of Yogurt is ready": "En ny versjon av Yogurt er klar",
"Upgrading AI": "Oppgraderer KI",
"Upgrading AI · {percent}": "Oppgraderer KI · {percent}",
"AI upgrade paused": "KI-oppgradering satt på pause",
@@ -693,5 +692,12 @@
},
"No matches": "Ingen treff",
"Previous match": "Forrige treff",
- "Next match": "Neste treff"
+ "Next match": "Neste treff",
+ "Update ready": "Oppdatering klar",
+ "Installs when you restart Yogurt": "Installeres når du starter Yogurt på nytt",
+ "You can restart after recording": "Du kan starte på nytt etter opptaket",
+ "Later": "Senere",
+ "Restart": "Start på nytt",
+ "Yogurt couldn't restart. Try again.": "Yogurt kunne ikke starte på nytt. Prøv igjen.",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/nl.json b/app/src/shared/locales/nl.json
index cbf45c26..63e2a46b 100644
--- a/app/src/shared/locales/nl.json
+++ b/app/src/shared/locales/nl.json
@@ -573,7 +573,6 @@
"other": "{count} meetings naar prullenmand verplaatst"
},
"Recorded with {app}": "Opgenomen met {app}",
- "A new version of Yogurt is ready": "Er is een nieuwe versie van Yogurt klaar",
"Upgrading AI": "AI upgraden",
"Upgrading AI · {percent}": "AI upgraden · {percent}",
"AI upgrade paused": "AI-upgrade gepauzeerd",
@@ -693,5 +692,12 @@
},
"No matches": "Geen overeenkomsten",
"Previous match": "Vorige overeenkomst",
- "Next match": "Volgende overeenkomst"
+ "Next match": "Volgende overeenkomst",
+ "Update ready": "Update gereed",
+ "Installs when you restart Yogurt": "Wordt geïnstalleerd als je Yogurt herstart",
+ "You can restart after recording": "Je kunt herstarten na de opname",
+ "Later": "Later",
+ "Restart": "Herstarten",
+ "Yogurt couldn't restart. Try again.": "Yogurt kon niet herstarten. Probeer het opnieuw.",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/pl.json b/app/src/shared/locales/pl.json
index 5defc4e8..7015b4d7 100644
--- a/app/src/shared/locales/pl.json
+++ b/app/src/shared/locales/pl.json
@@ -602,7 +602,6 @@
"other": "Przeniesiono {count} spotkania do kosza"
},
"Recorded with {app}": "Nagrano w {app}",
- "A new version of Yogurt is ready": "Nowa wersja Yogurt jest gotowa",
"Upgrading AI": "Ulepszanie AI",
"Upgrading AI · {percent}": "Ulepszanie AI · {percent}",
"AI upgrade paused": "Ulepszanie AI wstrzymane",
@@ -729,5 +728,12 @@
},
"No matches": "Brak dopasowań",
"Previous match": "Poprzednie dopasowanie",
- "Next match": "Następne dopasowanie"
+ "Next match": "Następne dopasowanie",
+ "Update ready": "Aktualizacja gotowa",
+ "Installs when you restart Yogurt": "Instaluje się po ponownym uruchomieniu Yogurt",
+ "You can restart after recording": "Możesz uruchomić ponownie po nagraniu",
+ "Later": "Później",
+ "Restart": "Uruchom ponownie",
+ "Yogurt couldn't restart. Try again.": "Nie udało się ponownie uruchomić Yogurt. Spróbuj ponownie.",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/pt-BR.json b/app/src/shared/locales/pt-BR.json
index 3d5250d7..356a37b7 100644
--- a/app/src/shared/locales/pt-BR.json
+++ b/app/src/shared/locales/pt-BR.json
@@ -586,7 +586,6 @@
"other": "{count} reuniões movidas para a Lixeira"
},
"Recorded with {app}": "Gravado com {app}",
- "A new version of Yogurt is ready": "Uma nova versão do Yogurt está pronta",
"Upgrading AI": "Melhorando a IA",
"Upgrading AI · {percent}": "Melhorando a IA · {percent}",
"AI upgrade paused": "Melhoria da IA pausada",
@@ -709,5 +708,12 @@
},
"No matches": "Nenhum resultado",
"Previous match": "Resultado anterior",
- "Next match": "Próximo resultado"
+ "Next match": "Próximo resultado",
+ "Update ready": "Atualização pronta",
+ "Installs when you restart Yogurt": "Instala ao reiniciar o Yogurt",
+ "You can restart after recording": "Você pode reiniciar após a gravação",
+ "Later": "Mais tarde",
+ "Restart": "Reiniciar",
+ "Yogurt couldn't restart. Try again.": "Não foi possível reiniciar o Yogurt. Tente novamente.",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/ro.json b/app/src/shared/locales/ro.json
index 6701a800..6e3b6b8d 100644
--- a/app/src/shared/locales/ro.json
+++ b/app/src/shared/locales/ro.json
@@ -589,7 +589,6 @@
"other": "{count} de întâlniri mutate în Coș"
},
"Recorded with {app}": "Înregistrat cu {app}",
- "A new version of Yogurt is ready": "O versiune nouă de Yogurt este gata",
"Upgrading AI": "Îmbunătățire AI",
"Upgrading AI · {percent}": "Îmbunătățire AI · {percent}",
"AI upgrade paused": "Îmbunătățirea AI este în pauză",
@@ -710,5 +709,12 @@
},
"No matches": "Nicio potrivire",
"Previous match": "Potrivirea anterioară",
- "Next match": "Potrivirea următoare"
+ "Next match": "Potrivirea următoare",
+ "Update ready": "Actualizare pregătită",
+ "Installs when you restart Yogurt": "Se instalează când repornești Yogurt",
+ "You can restart after recording": "Poți reporni după înregistrare",
+ "Later": "Mai târziu",
+ "Restart": "Repornește",
+ "Yogurt couldn't restart. Try again.": "Yogurt nu a putut reporni. Încearcă din nou.",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/ru.json b/app/src/shared/locales/ru.json
index 80f9b691..b86a1752 100644
--- a/app/src/shared/locales/ru.json
+++ b/app/src/shared/locales/ru.json
@@ -599,7 +599,6 @@
"other": "{count} встречи перемещены в Корзину"
},
"Recorded with {app}": "Записано в {app}",
- "A new version of Yogurt is ready": "Новая версия Yogurt готова",
"Upgrading AI": "Улучшение ИИ",
"Upgrading AI · {percent}": "Улучшение ИИ · {percent}",
"AI upgrade paused": "Улучшение ИИ приостановлено",
@@ -721,5 +720,12 @@
},
"No matches": "Нет совпадений",
"Previous match": "Предыдущее совпадение",
- "Next match": "Следующее совпадение"
+ "Next match": "Следующее совпадение",
+ "Update ready": "Обновление готово",
+ "Installs when you restart Yogurt": "Установится при перезапуске Yogurt",
+ "You can restart after recording": "Можно перезапустить после записи",
+ "Later": "Позже",
+ "Restart": "Перезапустить",
+ "Yogurt couldn't restart. Try again.": "Не удалось перезапустить Yogurt. Попробуйте ещё раз.",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/sv.json b/app/src/shared/locales/sv.json
index 41b36484..c9823ac1 100644
--- a/app/src/shared/locales/sv.json
+++ b/app/src/shared/locales/sv.json
@@ -576,7 +576,6 @@
"other": "{count} möten flyttade till papperskorgen"
},
"Recorded with {app}": "Inspelat med {app}",
- "A new version of Yogurt is ready": "En ny version av Yogurt är klar",
"Upgrading AI": "Uppgraderar AI",
"Upgrading AI · {percent}": "Uppgraderar AI · {percent}",
"AI upgrade paused": "AI-uppgradering pausad",
@@ -693,5 +692,12 @@
},
"No matches": "Inga träffar",
"Previous match": "Föregående träff",
- "Next match": "Nästa träff"
+ "Next match": "Nästa träff",
+ "Update ready": "Uppdatering klar",
+ "Installs when you restart Yogurt": "Installeras när du startar om Yogurt",
+ "You can restart after recording": "Du kan starta om efter inspelningen",
+ "Later": "Senare",
+ "Restart": "Starta om",
+ "Yogurt couldn't restart. Try again.": "Yogurt kunde inte starta om. Försök igen.",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/th.json b/app/src/shared/locales/th.json
index 04f3c553..45b23f52 100644
--- a/app/src/shared/locales/th.json
+++ b/app/src/shared/locales/th.json
@@ -534,7 +534,6 @@
"Move {count} meetings to Trash": "ย้ายการประชุม {count} รายการไปถังขยะ",
"{count} meetings moved to Trash": "ย้ายการประชุม {count} รายการไปถังขยะแล้ว",
"Recorded with {app}": "บันทึกด้วย {app}",
- "A new version of Yogurt is ready": "Yogurt เวอร์ชันใหม่พร้อมแล้ว",
"Upgrading AI": "กำลังอัปเกรด AI",
"Upgrading AI · {percent}": "กำลังอัปเกรด AI · {percent}",
"AI upgrade paused": "การอัปเกรด AI หยุดชั่วคราว",
@@ -651,5 +650,12 @@
},
"No matches": "ไม่พบรายการที่ตรงกัน",
"Previous match": "รายการก่อนหน้า",
- "Next match": "รายการถัดไป"
+ "Next match": "รายการถัดไป",
+ "Update ready": "อัปเดตพร้อมแล้ว",
+ "Installs when you restart Yogurt": "ติดตั้งเมื่อเริ่ม Yogurt ใหม่",
+ "You can restart after recording": "คุณเริ่มใหม่ได้หลังบันทึกเสร็จ",
+ "Later": "ภายหลัง",
+ "Restart": "เริ่มใหม่",
+ "Yogurt couldn't restart. Try again.": "เริ่ม Yogurt ใหม่ไม่ได้ ลองอีกครั้ง",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/tr.json b/app/src/shared/locales/tr.json
index 4f46e2da..d54be114 100644
--- a/app/src/shared/locales/tr.json
+++ b/app/src/shared/locales/tr.json
@@ -564,7 +564,6 @@
"Move {count} meetings to Trash": "{count} toplantıyı Çöp Kutusuna taşı",
"{count} meetings moved to Trash": "{count} toplantı Çöp Kutusuna taşındı",
"Recorded with {app}": "{app} ile kaydedildi",
- "A new version of Yogurt is ready": "Yogurt'un yeni sürümü hazır",
"Upgrading AI": "Yapay zeka yükseltiliyor",
"Upgrading AI · {percent}": "Yapay zeka yükseltiliyor · {percent}",
"AI upgrade paused": "Yapay zeka yükseltmesi duraklatıldı",
@@ -681,5 +680,12 @@
},
"No matches": "Eşleşme yok",
"Previous match": "Önceki eşleşme",
- "Next match": "Sonraki eşleşme"
+ "Next match": "Sonraki eşleşme",
+ "Update ready": "Güncelleme hazır",
+ "Installs when you restart Yogurt": "Yogurt yeniden başlatıldığında yüklenir",
+ "You can restart after recording": "Kayıttan sonra yeniden başlatabilirsiniz",
+ "Later": "Daha sonra",
+ "Restart": "Yeniden başlat",
+ "Yogurt couldn't restart. Try again.": "Yogurt yeniden başlatılamadı. Tekrar deneyin.",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/uk.json b/app/src/shared/locales/uk.json
index be2475d2..e522d0e9 100644
--- a/app/src/shared/locales/uk.json
+++ b/app/src/shared/locales/uk.json
@@ -599,7 +599,6 @@
"other": "{count} зустрічі переміщено до Кошика"
},
"Recorded with {app}": "Записано в {app}",
- "A new version of Yogurt is ready": "Нова версія Yogurt готова",
"Upgrading AI": "Покращення ШІ",
"Upgrading AI · {percent}": "Покращення ШІ · {percent}",
"AI upgrade paused": "Покращення ШІ призупинено",
@@ -721,5 +720,12 @@
},
"No matches": "Немає збігів",
"Previous match": "Попередній збіг",
- "Next match": "Наступний збіг"
+ "Next match": "Наступний збіг",
+ "Update ready": "Оновлення готове",
+ "Installs when you restart Yogurt": "Встановиться після перезапуску Yogurt",
+ "You can restart after recording": "Можна перезапустити після запису",
+ "Later": "Пізніше",
+ "Restart": "Перезапустити",
+ "Yogurt couldn't restart. Try again.": "Не вдалося перезапустити Yogurt. Спробуйте ще раз.",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/vi.json b/app/src/shared/locales/vi.json
index aa12c315..e225d8f9 100644
--- a/app/src/shared/locales/vi.json
+++ b/app/src/shared/locales/vi.json
@@ -534,7 +534,6 @@
"Move {count} meetings to Trash": "Chuyển {count} cuộc họp vào Thùng rác",
"{count} meetings moved to Trash": "Đã chuyển {count} cuộc họp vào Thùng rác",
"Recorded with {app}": "Ghi âm bằng {app}",
- "A new version of Yogurt is ready": "Phiên bản mới của Yogurt đã sẵn sàng",
"Upgrading AI": "Đang nâng cấp AI",
"Upgrading AI · {percent}": "Đang nâng cấp AI · {percent}",
"AI upgrade paused": "Nâng cấp AI đã tạm dừng",
@@ -651,5 +650,12 @@
},
"No matches": "Không có kết quả",
"Previous match": "Kết quả trước",
- "Next match": "Kết quả tiếp theo"
+ "Next match": "Kết quả tiếp theo",
+ "Update ready": "Bản cập nhật đã sẵn sàng",
+ "Installs when you restart Yogurt": "Cài đặt khi bạn khởi động lại Yogurt",
+ "You can restart after recording": "Bạn có thể khởi động lại sau khi ghi âm",
+ "Later": "Để sau",
+ "Restart": "Khởi động lại",
+ "Yogurt couldn't restart. Try again.": "Không thể khởi động lại Yogurt. Hãy thử lại.",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/zh-CN.json b/app/src/shared/locales/zh-CN.json
index 0dcc1a11..2b3cfc37 100644
--- a/app/src/shared/locales/zh-CN.json
+++ b/app/src/shared/locales/zh-CN.json
@@ -534,7 +534,6 @@
"Move {count} meetings to Trash": "将 {count} 个会议移到废纸篓",
"{count} meetings moved to Trash": "已将 {count} 个会议移到废纸篓",
"Recorded with {app}": "由 {app} 录制",
- "A new version of Yogurt is ready": "Yogurt 新版本已就绪",
"Upgrading AI": "正在升级 AI",
"Upgrading AI · {percent}": "正在升级 AI · {percent}",
"AI upgrade paused": "AI 升级已暂停",
@@ -651,5 +650,12 @@
},
"No matches": "无匹配结果",
"Previous match": "上一个匹配项",
- "Next match": "下一个匹配项"
+ "Next match": "下一个匹配项",
+ "Update ready": "更新已就绪",
+ "Installs when you restart Yogurt": "重启 Yogurt 时安装",
+ "You can restart after recording": "录音结束后即可重启",
+ "Later": "稍后",
+ "Restart": "重启",
+ "Yogurt couldn't restart. Try again.": "无法重启 Yogurt。请重试。",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/locales/zh-TW.json b/app/src/shared/locales/zh-TW.json
index 69f784c7..f4cacdf7 100644
--- a/app/src/shared/locales/zh-TW.json
+++ b/app/src/shared/locales/zh-TW.json
@@ -534,7 +534,6 @@
"Move {count} meetings to Trash": "將 {count} 場會議移到垃圾桶",
"{count} meetings moved to Trash": "已將 {count} 場會議移到垃圾桶",
"Recorded with {app}": "由 {app} 錄製",
- "A new version of Yogurt is ready": "Yogurt 新版本已準備就緒",
"Upgrading AI": "正在升級 AI",
"Upgrading AI · {percent}": "正在升級 AI · {percent}",
"AI upgrade paused": "AI 升級已暫停",
@@ -651,5 +650,12 @@
},
"No matches": "沒有相符結果",
"Previous match": "上一個相符項目",
- "Next match": "下一個相符項目"
+ "Next match": "下一個相符項目",
+ "Update ready": "更新已準備就緒",
+ "Installs when you restart Yogurt": "重新啟動 Yogurt 時安裝",
+ "You can restart after recording": "錄音結束後即可重新啟動",
+ "Later": "稍後",
+ "Restart": "重新啟動",
+ "Yogurt couldn't restart. Try again.": "無法重新啟動 Yogurt。請重試。",
+ "Yogurt {version}": "Yogurt {version}"
}
diff --git a/app/src/shared/types.ts b/app/src/shared/types.ts
index 2a8ce89b..e1e2ea18 100644
--- a/app/src/shared/types.ts
+++ b/app/src/shared/types.ts
@@ -160,7 +160,7 @@ export type YogurtApi = {
check(): Promise<void>
/** quits, installs the downloaded version and reopens; false while recording or with nothing downloaded */
restart(): Promise<boolean>
- /** the corner's offer was closed: it comes back tomorrow */
+ /** hides this version in the title bar until the app restarts; installation is unchanged */
later(): Promise<void>
onStatus(fn: (s: UpdateStatus) => void): () => void
}
@@ -440,6 +440,4 @@ export type ConversationSummary = { id: string; title: string; updatedAt: number
/** enabled: in Settings. clients: apps connected now. command: the program to give an AI app */
export type McpStatus = { enabled: boolean; clients: string[]; command: string }
/** Settings → Updates. available: this build updates itself (not in development or a preview); next: the version found */
-export type UpdateStatus = { version: string; available: boolean; on: boolean; state: 'idle' | 'checking' | 'latest' | 'downloading' | 'ready' | 'error'; next?: string
- /** the corner should offer Restart Yogurt for the version that downloaded (offersRestart) */
- offer?: boolean }
+export type UpdateStatus = { version: string; available: boolean; on: boolean; state: 'idle' | 'checking' | 'latest' | 'downloading' | 'ready' | 'error'; next?: string; dismissed?: boolean }
diff --git a/app/test/updateReady.test.ts b/app/test/updateReady.test.ts
new file mode 100644
index 00000000..99daacf7
--- /dev/null
+++ b/app/test/updateReady.test.ts
@@ -0,0 +1,106 @@
+import { afterEach, beforeEach, expect, it, vi } from 'vitest'
+import { isValidElement, useEffect, useState, type ReactElement, type ReactNode } from 'react'
+import { Popover } from '@base-ui/react/popover'
+import { UpdateReady } from '../src/renderer/src/components/UpdateReady'
+import type { UpdateStatus } from '../src/shared/types'
+
+vi.mock('react', async original => ({ ...await original<typeof import('react')>(), useState: vi.fn(), useEffect: vi.fn() }))
+let values: unknown[], cursor: number, tree: ReactNode
+let notify: (status: UpdateStatus) => void
+let initial: (status: UpdateStatus) => void
+const off = vi.fn(), restart = vi.fn(), later = vi.fn()
+const ready: UpdateStatus = { version: '0.3.1', next: '0.3.2', state: 'ready', available: true, on: true }
+function nodes(node: ReactNode): ReactElement<Record<string, any>>[] {
+ if (Array.isArray(node)) return node.flatMap(nodes)
+ if (!isValidElement<Record<string, any>>(node)) return []
+ return [node, ...nodes(node.props.children)]
+}
+function render(recording = false) { cursor = 0; tree = UpdateReady({ recording }); return tree }
+const control = (id: string) => nodes(tree).find(n => n.props['data-testid'] === id)!.props
+const root = () => nodes(tree).find(n => n.type === Popover.Root)!.props
+const content = () => JSON.stringify(tree)
+function mount() { render(); return vi.mocked(useEffect).mock.calls[0][0]() }
+beforeEach(() => {
+ vi.clearAllMocks(); values = []; cursor = 0
+ vi.mocked(useState).mockImplementation(((value: unknown) => {
+ const index = cursor++
+ if (!(index in values)) values[index] = value
+ return [values[index], (next: unknown) => { values[index] = next }]
+ }) as typeof useState)
+ restart.mockResolvedValue(true)
+ later.mockImplementation(async () => notify({ ...ready, dismissed: true }))
+ vi.stubGlobal('window', { yogurt: { updates: {
+ status: () => new Promise<UpdateStatus>(resolve => { initial = resolve }),
+ onStatus: (fn: typeof notify) => { notify = fn; return off }, restart, later,
+ } } })
+})
+afterEach(() => vi.unstubAllGlobals())
+
+it('shows only ready, uses the downloaded version, and never lets the initial read overwrite an event', async () => {
+ const cleanup = mount()
+ for (const state of ['idle', 'checking', 'downloading', 'latest', 'error'] as const) {
+ notify({ ...ready, state }); expect(render()).toBeNull()
+ }
+ notify(ready); initial({ ...ready, state: 'idle' }); await Promise.resolve(); render()
+ expect(control('update-ready').title).toBe('Update ready')
+ expect(content()).toContain('Yogurt 0.3.2')
+ expect(content()).not.toContain('Yogurt 0.3.1')
+ cleanup?.(); notify({ ...ready, state: 'latest' }); render()
+ expect(control('update-ready')).toBeDefined(); expect(off).toHaveBeenCalledOnce()
+})
+
+it('ignores a pending status read after unmount', async () => {
+ const cleanup = mount(); cleanup?.(); initial(ready); await Promise.resolve()
+ expect(render()).toBeNull(); expect(off).toHaveBeenCalledOnce()
+})
+
+it('closing the popover keeps the pill and does not restart', async () => {
+ mount(); initial(ready); await Promise.resolve(); render()
+ root().onOpenChange(true); render(); expect(root().open).toBe(true)
+ root().onOpenChange(false); render()
+ expect(control('update-ready')).toBeDefined(); expect(root().open).toBe(false)
+ expect(restart).not.toHaveBeenCalled()
+})
+
+it('disables Restart while recording and enables it afterward without restarting', () => {
+ mount(); notify(ready); render(true)
+ expect(control('update-restart').disabled).toBe(true)
+ expect(content()).toContain('You can restart after recording')
+ control('update-restart').onClick(); expect(restart).not.toHaveBeenCalled()
+ render(false); expect(control('update-restart').disabled).toBe(false)
+ expect(content()).toContain('Installs when you restart Yogurt')
+ expect(restart).not.toHaveBeenCalled()
+})
+
+it.each(['false', 'reject'] as const)('retains ready and the open popover if restart returns %s, and allows retry', async result => {
+ mount(); notify(ready); render(); root().onOpenChange(true); render()
+ if (result === 'false') restart.mockResolvedValueOnce(false)
+ else restart.mockRejectedValueOnce(new Error('unavailable'))
+ control('update-restart').onClick(); render()
+ expect(control('update-restart').disabled).toBe(true)
+ await vi.waitFor(() => { render(); expect(control('update-restart').disabled).toBe(false) })
+ expect(control('update-ready')).toBeDefined(); expect(root().open).toBe(true)
+ expect(content()).toContain("Yogurt couldn't restart. Try again.")
+ control('update-restart').onClick()
+ await vi.waitFor(() => { render(); expect(root().open).toBe(false) })
+ expect(restart).toHaveBeenCalledTimes(2)
+ notify({ ...ready, state: 'latest' }); expect(render()).toBeNull()
+})
+
+it('Later hides the version across remounts, then a newer ready version returns', async () => {
+ mount(); initial(ready); await Promise.resolve(); render(); root().onOpenChange(true); render()
+ control('update-later').onClick(); await Promise.resolve()
+ expect(render()).toBeNull(); expect(later).toHaveBeenCalledOnce(); expect(restart).not.toHaveBeenCalled()
+ values = []; mount(); initial({ ...ready, dismissed: true }); await Promise.resolve()
+ expect(render()).toBeNull()
+ notify({ ...ready, next: '0.3.3', dismissed: false }); render()
+ expect(control('update-ready')).toBeDefined(); expect(content()).toContain('Yogurt 0.3.3')
+})
+
+it('keeps the pill and popover available if Later fails', async () => {
+ mount(); notify(ready); render(); root().onOpenChange(true); render()
+ later.mockRejectedValueOnce(new Error('unavailable'))
+ control('update-later').onClick()
+ await vi.waitFor(() => { render(); expect(content()).toContain("Yogurt couldn't make that change. Try again.") })
+ expect(root().open).toBe(true); expect(control('update-ready')).toBeDefined()
+})
diff --git a/app/test/updates.test.ts b/app/test/updates.test.ts
index 025b880f..f12b7db5 100644
--- a/app/test/updates.test.ts
+++ b/app/test/updates.test.ts
@@ -1,5 +1,5 @@
import { expect, it } from 'vitest'
-import { isPreviewBuild, offersRestart, updatesOn } from '../src/main/updates'
+import { isPreviewBuild, updatesOn } from '../src/main/updates'
const installed = { packaged: true, fake: false, profile: false, feed: true }
@@ -35,18 +35,3 @@ it('a preview build is told by its package.json; a release build or anything unr
expect(isPreviewBuild('')).toBe(false)
})
-const HOUR = 60 * 60 * 1000
-const ready = { readyAt: 0, now: 25 * HOUR, snoozedUntil: 0, recording: false, on: true }
-
-it('a downloaded version is offered with Restart only after a day, so someone who quits Yogurt meanwhile never sees it', () => {
- expect(offersRestart({ ...ready, now: 23 * HOUR })).toBe(false)
- expect(offersRestart(ready)).toBe(true)
- expect(offersRestart({ ...ready, readyAt: undefined })).toBe(false)
-})
-
-it('never during a recording, with updates off, or while put off until tomorrow', () => {
- expect(offersRestart({ ...ready, recording: true })).toBe(false)
- expect(offersRestart({ ...ready, on: false })).toBe(false)
- expect(offersRestart({ ...ready, snoozedUntil: 26 * HOUR })).toBe(false)
- expect(offersRestart({ ...ready, snoozedUntil: 25 * HOUR })).toBe(true)
-})
diff --git a/app/test/updatesReady.test.ts b/app/test/updatesReady.test.ts
new file mode 100644
index 00000000..8ac4eacb
--- /dev/null
+++ b/app/test/updatesReady.test.ts
@@ -0,0 +1,34 @@
+import { mkdtempSync } from 'node:fs'
+import { tmpdir } from 'node:os'
+import { join } from 'node:path'
+import { expect, it, vi } from 'vitest'
+import type { UpdateStatus } from '../src/shared/types'
+const handlers = new Map<string, (...args: unknown[]) => any>()
+const send = vi.fn()
+vi.mock('electron', () => ({
+ app: { getVersion: () => '0.3.1', quit: vi.fn() },
+ BrowserWindow: { getAllWindows: () => [{ isDestroyed: () => false, webContents: { send } }] },
+ ipcMain: { handle: (name: string, fn: (...args: unknown[]) => any) => handlers.set(name, fn) },
+ Notification: { isSupported: () => false },
+}))
+it('publishes ready immediately, protects recordings, and restarts only on request', async () => {
+ const { hookUpdates } = await import('../src/main/updates')
+ let recording = true
+ const restarted = vi.fn()
+ await hookUpdates({ file: join(mkdtempSync(join(tmpdir(), 'yogurt-update-')), 'settings.json'), available: false,
+ recording: () => recording, fake: { version: '0.3.2', restarted } })
+ const status = () => handlers.get('updates:status')!() as UpdateStatus
+ expect(status()).toMatchObject({ state: 'ready', next: '0.3.2' })
+ expect(send).toHaveBeenCalledWith('updates:status', expect.objectContaining({ state: 'ready' }))
+ expect(handlers.get('updates:restart')!()).toBe(false)
+ expect(status().state).toBe('ready'); expect(restarted).not.toHaveBeenCalled()
+ recording = false
+ expect(restarted).not.toHaveBeenCalled()
+ handlers.get('updates:set')!({}, false)
+ expect(status()).toMatchObject({ state: 'ready', on: false })
+ handlers.get('updates:set')!({}, true)
+ expect(handlers.get('updates:restart')!()).toBe(true)
+ expect(restarted).toHaveBeenCalledOnce(); expect(status().state).toBe('latest')
+ expect(handlers.get('updates:restart')!()).toBe(false)
+ expect(handlers.has('updates:later')).toBe(true)
+})
diff --git a/app/test/updatesSwitch.test.ts b/app/test/updatesSwitch.test.ts
index 5e26f6c0..5c31fd43 100644
--- a/app/test/updatesSwitch.test.ts
+++ b/app/test/updatesSwitch.test.ts
@@ -27,3 +27,32 @@ it('updates are on by default, and turning them off also keeps a downloaded vers
expect(updater.autoInstallOnAppQuit).toBe(true)
vi.useRealTimers()
})
+
+it('Later hides only this version for this app session without changing installation or Settings restart', async () => {
+ vi.useFakeTimers()
+ try {
+ updater.removeAllListeners()
+ const { hookUpdates } = await import('../src/main/updates')
+ const file = join(mkdtempSync(join(tmpdir(), 'yogurt-updates-')), 'settings.json')
+ await hookUpdates({ file, available: true, recording: () => false })
+ const status = () => handlers.get('updates:status')!() as import('../src/shared/types').UpdateStatus
+ handlers.get('updates:later')!()
+ updater.emit('update-downloaded', { version: '0.3.7' })
+ expect(status()).toMatchObject({ state: 'ready', next: '0.3.7', dismissed: false })
+ handlers.get('updates:later')!()
+ expect(status()).toMatchObject({ state: 'ready', next: '0.3.7', dismissed: true, on: true })
+ expect(updater.autoInstallOnAppQuit).toBe(true)
+ expect(handlers.get('updates:restart')!()).toBe(true)
+ updater.emit('update-downloaded', { version: '0.3.7' })
+ expect(status().dismissed).toBe(true)
+ updater.emit('update-downloaded', { version: '0.3.8' })
+ expect(status()).toMatchObject({ state: 'ready', next: '0.3.8', dismissed: false })
+ handlers.get('updates:later')!()
+ expect(status().dismissed).toBe(true)
+ updater.removeAllListeners()
+ await hookUpdates({ file, available: true, recording: () => false })
+ updater.emit('update-downloaded', { version: '0.3.8' })
+ expect(status().dismissed).toBe(false)
+ expect(updater.autoInstallOnAppQuit).toBe(true)
+ } finally { vi.clearAllTimers(); vi.useRealTimers() }
+})