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.

Update toast: no version number, and never during a call

christianmate11d37d4bcd2
diff --git a/app/e2e/updateToast.spec.ts b/app/e2e/updateToast.spec.ts
index 6ee51aba..784a16e8 100644
--- a/app/e2e/updateToast.spec.ts
+++ b/app/e2e/updateToast.spec.ts
@@ -22,7 +22,7 @@ test('a downloaded version waits, then the corner offers Restart Yogurt, which r
try {
const toast = page.getByTestId('update-toast')
await expect(toast).toHaveCount(0)
- await expect(toast).toContainText('Yogurt 9.9.9 is ready', { timeout: 10_000 })
+ 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)
@@ -54,3 +54,13 @@ test('never offered while recording', async () => {
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 5d85952b..e8cd1907 100644
--- a/app/src/main/index.ts
+++ b/app/src/main/index.ts
@@ -73,7 +73,7 @@ import { hookFolders } from './foldersIpc'
import { hookMcp } from './mcp'
import { startedHidden } from './mcp/paths'
import { AUDIO_SCHEME, audioExts, createAudioHandler, trackFile, type AudioExt } from './audio'
-import { finishQuit, hookUpdates, isPreviewBuild, updatesOn } from './updates'
+import { finishQuit, hookUpdates, isPreviewBuild, updateOfferChanged, 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)
@@ -229,6 +229,8 @@ let presented = 0
/** fake mode: how many times the Mac's Calendar settings would have opened */
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 */
@@ -278,7 +280,8 @@ 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())
+ onMeetingStop(() => { watcher.cleared(); updateOfferChanged() })
+ onCall = () => watcher.onCall()
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 }),
@@ -294,7 +297,7 @@ function startDetection() {
stop: (id) => { stopMeeting(id) },
foreground: () => !!win && !win.isDestroyed() && win.isVisible() && !win.isMinimized() && win.isFocused(),
})
- onMeetingStart(() => { prompts.hide(); watcher.cleared() })
+ onMeetingStart(() => { prompts.hide(); watcher.cleared(); updateOfferChanged() })
// 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 () => {
@@ -938,7 +941,7 @@ 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(),
+ 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 })
.catch((err) => console.warn("couldn't start looking for new versions", err))
diff --git a/app/src/main/updates.ts b/app/src/main/updates.ts
index 6585b49f..35d9e1ab 100644
--- a/app/src/main/updates.ts
+++ b/app/src/main/updates.ts
@@ -26,13 +26,16 @@ 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 recording (restarting would end it).
+ * 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. */
@@ -46,13 +49,13 @@ 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; /** 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; /** 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> {
let state: UpdateStatus['state'] = 'idle'
let next: string | undefined
let readyAt: number | undefined, snoozedUntil = 0
const status = (): UpdateStatus => {
const on = autoUpdateOn(loadSettings(d.file))
- const offer = offersRestart({ readyAt, now: Date.now(), snoozedUntil, recording: d.recording(), on, afterMs: d.fake?.afterMs })
+ 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 }
}
const set = (s: UpdateStatus['state'], version?: string) => {
@@ -62,6 +65,7 @@ export async function hookUpdates(d: { file: string; available: boolean; recordi
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()
@@ -83,7 +87,7 @@ export async function hookUpdates(d: { file: string; available: boolean; recordi
// 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) : 10 * 60 * 1000).unref?.()
+ setInterval(() => { if (state === 'ready') set(state) }, d.fake ? Math.max(200, d.fake.afterMs / 4) : 60 * 1000).unref?.()
if (d.fake) { set('ready', d.fake.version); return }
diff --git a/app/src/main/watch.ts b/app/src/main/watch.ts
index 68826974..d242b6c9 100644
--- a/app/src/main/watch.ts
+++ b/app/src/main/watch.ts
@@ -49,6 +49,9 @@ export class Watcher {
/** the card went away by an action, or a recording started or stopped (a resumed note is watched afresh) */
cleared() { this.shown = null; this.rec = null }
+ /** someone is on a call now: recording, or a call app on the mic (card closed or never clicked) */
+ onCall(): boolean { return !!this.d.active() || this.idleMic.size > 0 }
+
async tick(): Promise<void> {
if (this.busy) return
this.busy = true
diff --git a/app/src/renderer/src/components/TrashToast.tsx b/app/src/renderer/src/components/TrashToast.tsx
index fc4f50ff..ddab446e 100644
--- a/app/src/renderer/src/components/TrashToast.tsx
+++ b/app/src/renderer/src/components/TrashToast.tsx
@@ -74,7 +74,7 @@ export function TrashToast({ go }: { go: (route: string) => void }) {
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('Yogurt {version} is ready', { version: s.next }), timeout: 0,
+ 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 () => {
diff --git a/app/src/shared/locales/ar.json b/app/src/shared/locales/ar.json
index 1dc440e2..60add43c 100644
--- a/app/src/shared/locales/ar.json
+++ b/app/src/shared/locales/ar.json
@@ -715,5 +715,6 @@
"many": "تم نقل {count} اجتماعًا إلى سلة المهملات",
"other": "تم نقل {count} اجتماع إلى سلة المهملات"
},
- "Recorded with {app}": "سُجّل باستخدام {app}"
+ "Recorded with {app}": "سُجّل باستخدام {app}",
+ "A new version of Yogurt is ready": "إصدار جديد من Yogurt جاهز"
}
diff --git a/app/src/shared/locales/bn.json b/app/src/shared/locales/bn.json
index 9259a826..1f96f265 100644
--- a/app/src/shared/locales/bn.json
+++ b/app/src/shared/locales/bn.json
@@ -641,5 +641,6 @@
"Add {count} meetings to folder": "{count}টি মিটিং ফোল্ডারে যোগ করুন",
"Move {count} meetings to Trash": "{count}টি মিটিং ট্র্যাশে সরান",
"{count} meetings moved to Trash": "{count}টি মিটিং ট্র্যাশে সরানো হয়েছে",
- "Recorded with {app}": "{app} দিয়ে রেকর্ড করা"
+ "Recorded with {app}": "{app} দিয়ে রেকর্ড করা",
+ "A new version of Yogurt is ready": "Yogurt-এর নতুন সংস্করণ তৈরি"
}
diff --git a/app/src/shared/locales/cs.json b/app/src/shared/locales/cs.json
index 9dd0a6fd..485c8d3e 100644
--- a/app/src/shared/locales/cs.json
+++ b/app/src/shared/locales/cs.json
@@ -686,5 +686,6 @@
"many": "{count} schůzky přesunuto do koše",
"other": "{count} schůzek přesunuto do koše"
},
- "Recorded with {app}": "Nahráno v aplikaci {app}"
+ "Recorded with {app}": "Nahráno v aplikaci {app}",
+ "A new version of Yogurt is ready": "Nová verze Yogurtu je připravená"
}
diff --git a/app/src/shared/locales/da.json b/app/src/shared/locales/da.json
index e081e40c..f1d975af 100644
--- a/app/src/shared/locales/da.json
+++ b/app/src/shared/locales/da.json
@@ -650,5 +650,6 @@
"one": "{count} møde flyttet til papirkurv",
"other": "{count} møder flyttet til papirkurv"
},
- "Recorded with {app}": "Optaget med {app}"
+ "Recorded with {app}": "Optaget med {app}",
+ "A new version of Yogurt is ready": "En ny version af Yogurt er klar"
}
diff --git a/app/src/shared/locales/de.json b/app/src/shared/locales/de.json
index 944a85c4..493bb04d 100644
--- a/app/src/shared/locales/de.json
+++ b/app/src/shared/locales/de.json
@@ -650,5 +650,6 @@
"one": "{count} Meeting in den Papierkorb verschoben",
"other": "{count} Meetings in den Papierkorb verschoben"
},
- "Recorded with {app}": "Aufgenommen mit {app}"
+ "Recorded with {app}": "Aufgenommen mit {app}",
+ "A new version of Yogurt is ready": "Eine neue Version von Yogurt ist bereit"
}
diff --git a/app/src/shared/locales/el.json b/app/src/shared/locales/el.json
index 433f02db..b4b160bf 100644
--- a/app/src/shared/locales/el.json
+++ b/app/src/shared/locales/el.json
@@ -653,5 +653,6 @@
"one": "{count} σύσκεψη μετακινήθηκε στον Κάδο",
"other": "{count} συσκέψεις μετακινήθηκαν στον Κάδο"
},
- "Recorded with {app}": "Ηχογραφήθηκε με το {app}"
+ "Recorded with {app}": "Ηχογραφήθηκε με το {app}",
+ "A new version of Yogurt is ready": "Μια νέα έκδοση του Yogurt είναι έτοιμη"
}
diff --git a/app/src/shared/locales/es.json b/app/src/shared/locales/es.json
index 0c16c337..0862d3ed 100644
--- a/app/src/shared/locales/es.json
+++ b/app/src/shared/locales/es.json
@@ -666,5 +666,6 @@
"one": "{count} reunión movida a la papelera",
"other": "{count} reuniones movidas a la papelera"
},
- "Recorded with {app}": "Grabado con {app}"
+ "Recorded with {app}": "Grabado con {app}",
+ "A new version of Yogurt is ready": "Hay una nueva versión de Yogurt lista"
}
diff --git a/app/src/shared/locales/fi.json b/app/src/shared/locales/fi.json
index f6711ea1..a0fb7d3f 100644
--- a/app/src/shared/locales/fi.json
+++ b/app/src/shared/locales/fi.json
@@ -653,5 +653,6 @@
"one": "{count} kokous siirretty roskakoriin",
"other": "{count} kokousta siirretty roskakoriin"
},
- "Recorded with {app}": "Tallennettu sovelluksella {app}"
+ "Recorded with {app}": "Tallennettu sovelluksella {app}",
+ "A new version of Yogurt is ready": "Uusi Yogurt-versio on valmis"
}
diff --git a/app/src/shared/locales/fil.json b/app/src/shared/locales/fil.json
index 8ac1190b..41e5e2df 100644
--- a/app/src/shared/locales/fil.json
+++ b/app/src/shared/locales/fil.json
@@ -650,5 +650,6 @@
"one": "Inilipat ang {count} meeting sa Basurahan",
"other": "Inilipat ang {count} na meeting sa Basurahan"
},
- "Recorded with {app}": "Ni-record gamit ang {app}"
+ "Recorded with {app}": "Ni-record gamit ang {app}",
+ "A new version of Yogurt is ready": "Handa na ang bagong bersyon ng Yogurt"
}
diff --git a/app/src/shared/locales/fr.json b/app/src/shared/locales/fr.json
index 5d7d45f4..d7c91aa3 100644
--- a/app/src/shared/locales/fr.json
+++ b/app/src/shared/locales/fr.json
@@ -666,5 +666,6 @@
"one": "{count} réunion déplacée vers la corbeille",
"other": "{count} réunions déplacées vers la corbeille"
},
- "Recorded with {app}": "Enregistré avec {app}"
+ "Recorded with {app}": "Enregistré avec {app}",
+ "A new version of Yogurt is ready": "Une nouvelle version de Yogurt est prête"
}
diff --git a/app/src/shared/locales/he.json b/app/src/shared/locales/he.json
index 406ab74d..d6f8e873 100644
--- a/app/src/shared/locales/he.json
+++ b/app/src/shared/locales/he.json
@@ -663,5 +663,6 @@
"one": "פגישה אחת הועברה לאשפה",
"other": "{count} פגישות הועברו לאשפה"
},
- "Recorded with {app}": "הוקלט עם {app}"
+ "Recorded with {app}": "הוקלט עם {app}",
+ "A new version of Yogurt is ready": "גרסה חדשה של Yogurt מוכנה"
}
diff --git a/app/src/shared/locales/hi.json b/app/src/shared/locales/hi.json
index c6eb82c7..51fc7cc1 100644
--- a/app/src/shared/locales/hi.json
+++ b/app/src/shared/locales/hi.json
@@ -641,5 +641,6 @@
"Add {count} meetings to folder": "{count} मीटिंग फ़ोल्डर में जोड़ें",
"Move {count} meetings to Trash": "{count} मीटिंग ट्रैश में ले जाएँ",
"{count} meetings moved to Trash": "{count} मीटिंग ट्रैश में ले जाई गईं",
- "Recorded with {app}": "{app} से रिकॉर्ड किया गया"
+ "Recorded with {app}": "{app} से रिकॉर्ड किया गया",
+ "A new version of Yogurt is ready": "Yogurt का नया संस्करण तैयार है"
}
diff --git a/app/src/shared/locales/hu.json b/app/src/shared/locales/hu.json
index 1eb31d0e..61a3a9f3 100644
--- a/app/src/shared/locales/hu.json
+++ b/app/src/shared/locales/hu.json
@@ -641,5 +641,6 @@
"Add {count} meetings to folder": "{count} megbeszélés hozzáadása mappához",
"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}"
+ "Recorded with {app}": "Rögzítve: {app}",
+ "A new version of Yogurt is ready": "Elkészült a Yogurt új verziója"
}
diff --git a/app/src/shared/locales/id.json b/app/src/shared/locales/id.json
index 2bc74b00..a05c4265 100644
--- a/app/src/shared/locales/id.json
+++ b/app/src/shared/locales/id.json
@@ -602,5 +602,6 @@
"Add {count} meetings to folder": "Tambahkan {count} rapat ke folder",
"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}"
+ "Recorded with {app}": "Direkam dengan {app}",
+ "A new version of Yogurt is ready": "Versi baru Yogurt sudah siap"
}
diff --git a/app/src/shared/locales/it.json b/app/src/shared/locales/it.json
index 53e4ebb6..eea80a13 100644
--- a/app/src/shared/locales/it.json
+++ b/app/src/shared/locales/it.json
@@ -669,5 +669,6 @@
"one": "{count} riunione spostata nel Cestino",
"other": "{count} riunioni spostate nel Cestino"
},
- "Recorded with {app}": "Registrato con {app}"
+ "Recorded with {app}": "Registrato con {app}",
+ "A new version of Yogurt is ready": "Una nuova versione di Yogurt è pronta"
}
diff --git a/app/src/shared/locales/ja.json b/app/src/shared/locales/ja.json
index 0ef555e2..ad0b0781 100644
--- a/app/src/shared/locales/ja.json
+++ b/app/src/shared/locales/ja.json
@@ -602,5 +602,6 @@
"Add {count} meetings to folder": "{count}件のミーティングをフォルダに追加",
"Move {count} meetings to Trash": "{count}件のミーティングをゴミ箱に移動",
"{count} meetings moved to Trash": "{count}件のミーティングをゴミ箱に移動しました",
- "Recorded with {app}": "{app} で録音"
+ "Recorded with {app}": "{app} で録音",
+ "A new version of Yogurt is ready": "Yogurt の新しいバージョンの準備ができました"
}
diff --git a/app/src/shared/locales/ko.json b/app/src/shared/locales/ko.json
index ab1c3ebb..1ce7eab3 100644
--- a/app/src/shared/locales/ko.json
+++ b/app/src/shared/locales/ko.json
@@ -602,5 +602,6 @@
"Add {count} meetings to folder": "회의 {count}개를 폴더에 추가",
"Move {count} meetings to Trash": "회의 {count}개를 휴지통으로 이동",
"{count} meetings moved to Trash": "회의 {count}개를 휴지통으로 이동했습니다",
- "Recorded with {app}": "{app}(으)로 녹음됨"
+ "Recorded with {app}": "{app}(으)로 녹음됨",
+ "A new version of Yogurt is ready": "Yogurt 새 버전이 준비되었어요"
}
diff --git a/app/src/shared/locales/ms.json b/app/src/shared/locales/ms.json
index 40cc5e9f..c79f2938 100644
--- a/app/src/shared/locales/ms.json
+++ b/app/src/shared/locales/ms.json
@@ -602,5 +602,6 @@
"Add {count} meetings to folder": "Tambah {count} mesyuarat ke folder",
"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}"
+ "Recorded with {app}": "Dirakam dengan {app}",
+ "A new version of Yogurt is ready": "Versi baharu Yogurt sudah sedia"
}
diff --git a/app/src/shared/locales/nb.json b/app/src/shared/locales/nb.json
index b0522602..7f283827 100644
--- a/app/src/shared/locales/nb.json
+++ b/app/src/shared/locales/nb.json
@@ -650,5 +650,6 @@
"one": "{count} møte flyttet til papirkurven",
"other": "{count} møter flyttet til papirkurven"
},
- "Recorded with {app}": "Tatt opp med {app}"
+ "Recorded with {app}": "Tatt opp med {app}",
+ "A new version of Yogurt is ready": "En ny versjon av Yogurt er klar"
}
diff --git a/app/src/shared/locales/nl.json b/app/src/shared/locales/nl.json
index 14da9d64..046940ab 100644
--- a/app/src/shared/locales/nl.json
+++ b/app/src/shared/locales/nl.json
@@ -650,5 +650,6 @@
"one": "{count} meeting naar prullenmand verplaatst",
"other": "{count} meetings naar prullenmand verplaatst"
},
- "Recorded with {app}": "Opgenomen met {app}"
+ "Recorded with {app}": "Opgenomen met {app}",
+ "A new version of Yogurt is ready": "Er is een nieuwe versie van Yogurt klaar"
}
diff --git a/app/src/shared/locales/pl.json b/app/src/shared/locales/pl.json
index fa125ca3..ca12c322 100644
--- a/app/src/shared/locales/pl.json
+++ b/app/src/shared/locales/pl.json
@@ -685,5 +685,6 @@
"many": "Przeniesiono {count} spotkań do kosza",
"other": "Przeniesiono {count} spotkania do kosza"
},
- "Recorded with {app}": "Nagrano w {app}"
+ "Recorded with {app}": "Nagrano w {app}",
+ "A new version of Yogurt is ready": "Nowa wersja Yogurt jest gotowa"
}
diff --git a/app/src/shared/locales/pt-BR.json b/app/src/shared/locales/pt-BR.json
index 9e65e375..2c3f944e 100644
--- a/app/src/shared/locales/pt-BR.json
+++ b/app/src/shared/locales/pt-BR.json
@@ -666,5 +666,6 @@
"one": "{count} reunião movida para a Lixeira",
"other": "{count} reuniões movidas para a Lixeira"
},
- "Recorded with {app}": "Gravado com {app}"
+ "Recorded with {app}": "Gravado com {app}",
+ "A new version of Yogurt is ready": "Uma nova versão do Yogurt está pronta"
}
diff --git a/app/src/shared/locales/ro.json b/app/src/shared/locales/ro.json
index 8a65685d..8ce1d014 100644
--- a/app/src/shared/locales/ro.json
+++ b/app/src/shared/locales/ro.json
@@ -669,5 +669,6 @@
"few": "{count} întâlniri mutate în Coș",
"other": "{count} de întâlniri mutate în Coș"
},
- "Recorded with {app}": "Înregistrat cu {app}"
+ "Recorded with {app}": "Înregistrat cu {app}",
+ "A new version of Yogurt is ready": "O versiune nouă de Yogurt este gata"
}
diff --git a/app/src/shared/locales/ru.json b/app/src/shared/locales/ru.json
index 0089072f..67e23c56 100644
--- a/app/src/shared/locales/ru.json
+++ b/app/src/shared/locales/ru.json
@@ -682,5 +682,6 @@
"many": "{count} встреч перемещено в Корзину",
"other": "{count} встречи перемещены в Корзину"
},
- "Recorded with {app}": "Записано в {app}"
+ "Recorded with {app}": "Записано в {app}",
+ "A new version of Yogurt is ready": "Новая версия Yogurt готова"
}
diff --git a/app/src/shared/locales/sv.json b/app/src/shared/locales/sv.json
index 4f42f94d..7e658997 100644
--- a/app/src/shared/locales/sv.json
+++ b/app/src/shared/locales/sv.json
@@ -653,5 +653,6 @@
"one": "{count} möte flyttat till papperskorgen",
"other": "{count} möten flyttade till papperskorgen"
},
- "Recorded with {app}": "Inspelat med {app}"
+ "Recorded with {app}": "Inspelat med {app}",
+ "A new version of Yogurt is ready": "En ny version av Yogurt är klar"
}
diff --git a/app/src/shared/locales/th.json b/app/src/shared/locales/th.json
index 72fbb829..53fb50f8 100644
--- a/app/src/shared/locales/th.json
+++ b/app/src/shared/locales/th.json
@@ -602,5 +602,6 @@
"Add {count} meetings to folder": "เพิ่มการประชุม {count} รายการไปยังโฟลเดอร์",
"Move {count} meetings to Trash": "ย้ายการประชุม {count} รายการไปถังขยะ",
"{count} meetings moved to Trash": "ย้ายการประชุม {count} รายการไปถังขยะแล้ว",
- "Recorded with {app}": "บันทึกด้วย {app}"
+ "Recorded with {app}": "บันทึกด้วย {app}",
+ "A new version of Yogurt is ready": "Yogurt เวอร์ชันใหม่พร้อมแล้ว"
}
diff --git a/app/src/shared/locales/tr.json b/app/src/shared/locales/tr.json
index a1e13014..90a5ee68 100644
--- a/app/src/shared/locales/tr.json
+++ b/app/src/shared/locales/tr.json
@@ -641,5 +641,6 @@
"Add {count} meetings to folder": "{count} toplantıyı klasöre ekle",
"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"
+ "Recorded with {app}": "{app} ile kaydedildi",
+ "A new version of Yogurt is ready": "Yogurt'un yeni sürümü hazır"
}
diff --git a/app/src/shared/locales/uk.json b/app/src/shared/locales/uk.json
index 3b2697bf..efa961f4 100644
--- a/app/src/shared/locales/uk.json
+++ b/app/src/shared/locales/uk.json
@@ -682,5 +682,6 @@
"many": "{count} зустрічей переміщено до Кошика",
"other": "{count} зустрічі переміщено до Кошика"
},
- "Recorded with {app}": "Записано в {app}"
+ "Recorded with {app}": "Записано в {app}",
+ "A new version of Yogurt is ready": "Нова версія Yogurt готова"
}
diff --git a/app/src/shared/locales/vi.json b/app/src/shared/locales/vi.json
index 362668ed..6a7e4ed1 100644
--- a/app/src/shared/locales/vi.json
+++ b/app/src/shared/locales/vi.json
@@ -602,5 +602,6 @@
"Add {count} meetings to folder": "Thêm {count} cuộc họp vào thư mục",
"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}"
+ "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"
}
diff --git a/app/src/shared/locales/zh-CN.json b/app/src/shared/locales/zh-CN.json
index 1f17f666..236a91a8 100644
--- a/app/src/shared/locales/zh-CN.json
+++ b/app/src/shared/locales/zh-CN.json
@@ -602,5 +602,6 @@
"Add {count} meetings to folder": "将 {count} 个会议添加到文件夹",
"Move {count} meetings to Trash": "将 {count} 个会议移到废纸篓",
"{count} meetings moved to Trash": "已将 {count} 个会议移到废纸篓",
- "Recorded with {app}": "由 {app} 录制"
+ "Recorded with {app}": "由 {app} 录制",
+ "A new version of Yogurt is ready": "Yogurt 新版本已就绪"
}
diff --git a/app/src/shared/locales/zh-TW.json b/app/src/shared/locales/zh-TW.json
index ae613492..9b9e85f5 100644
--- a/app/src/shared/locales/zh-TW.json
+++ b/app/src/shared/locales/zh-TW.json
@@ -602,5 +602,6 @@
"Add {count} meetings to folder": "將 {count} 場會議加入資料夾",
"Move {count} meetings to Trash": "將 {count} 場會議移到垃圾桶",
"{count} meetings moved to Trash": "已將 {count} 場會議移到垃圾桶",
- "Recorded with {app}": "由 {app} 錄製"
+ "Recorded with {app}": "由 {app} 錄製",
+ "A new version of Yogurt is ready": "Yogurt 新版本已準備就緒"
}
diff --git a/app/test/watch.test.ts b/app/test/watch.test.ts
index be4eecce..3c0e18a4 100644
--- a/app/test/watch.test.ts
+++ b/app/test/watch.test.ts
@@ -280,3 +280,22 @@ it('does not keep a FaceTime recording alive for the shared daemon after FaceTim
reading.runningApps = []; clock += 10000; await w.tick()
expect(log).toEqual(['auto:m1'])
})
+
+describe('on a call', () => {
+ it('a call app on the mic is a call, even unrecorded or with its card closed; it ends when the app lets go', async () => {
+ expect(w.onCall()).toBe(false)
+ reading = { micApps: [zoom], events: [] }
+ await w.tick()
+ expect(w.onCall()).toBe(true)
+ w.dismiss('app:Zoom')
+ await w.tick()
+ expect(w.onCall()).toBe(true)
+ reading = { micApps: [], events: [] }
+ await w.tick()
+ expect(w.onCall()).toBe(false)
+ })
+ it('recording is a call too', () => {
+ active = meeting()
+ expect(w.onCall()).toBe(true)
+ })
+})