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.

Menu bar: the next meeting shows beside the icon, with its date when it is not today

Eric Brownrout15d3d86d8091
diff --git a/app/electron-builder.yml b/app/electron-builder.yml
index f5a537eb..38b89f29 100644
--- a/app/electron-builder.yml
+++ b/app/electron-builder.yml
@@ -27,10 +27,7 @@ extraResources:
- from: resources/vad
to: vad
# the Mac's menu bar icon (tray.ts reads it from Resources; @2x is picked up next to it)
- - from: resources/tray.png
- to: tray.png
- - from: resources/[email protected]
+ - { from: resources, to: ., filter: ["tray.png", "[email protected]", "tray-titled.png", "[email protected]"] }
# licenses of things bundled or downloaded: fonts, whisper.cpp, Silero VAD, libopus, the native recorders' crates,
# whisper-server's headers, animate-ui and the CUDA runtime
- from: resources/licenses
diff --git a/app/native/yogurt-mac/main.swift b/app/native/yogurt-mac/main.swift
index 3e122e66..69f8f044 100644
--- a/app/native/yogurt-mac/main.swift
+++ b/app/native/yogurt-mac/main.swift
@@ -423,8 +423,9 @@ case "events":
let found = store.events(matching: store.predicateForEvents(withStart: from, end: to, calendars: nil))
.filter { !$0.isAllDay && $0.status != .canceled }
.sorted { $0.startDate < $1.startDate }
- .prefix(200)
- out(found.map { e in
+ // A week of hidden calendars can fill the usual 200 rows before the next visible meeting.
+ let events = args.dropFirst(3).contains("--full-range") ? found[...] : found.prefix(200)
+ out(events.map { e in
var o: [String: Any] = [
"id": (e.eventIdentifier ?? e.title ?? "event") + ":" + iso.string(from: e.startDate),
"title": e.title ?? "", "start": iso.string(from: e.startDate), "end": iso.string(from: e.endDate), "calendar": e.calendar.title,
@@ -435,7 +436,10 @@ case "events":
if let n = e.notes, !n.isEmpty { o["notes"] = String(n.prefix(2000)) }
if let u = e.url { o["url"] = u.absoluteString }
// the person using this Mac, apart: their address says which company they are with (Yogurt spells it right)
- if let me = (e.attendees ?? []).first(where: { $0.isCurrentUser }), me.url.absoluteString.hasPrefix("mailto:") { o["me"] = String(me.url.absoluteString.dropFirst(7)) }
+ if let me = e.attendees?.first(where: { $0.isCurrentUser }) {
+ if me.url.absoluteString.hasPrefix("mailto:") { o["me"] = String(me.url.absoluteString.dropFirst(7)) }
+ if me.participantStatus == .declined { o["declined"] = true }
+ }
// everyone but the person using this Mac
o["attendees"] = (e.attendees ?? []).filter { !$0.isCurrentUser }.prefix(50).map { a -> [String: Any] in
let mail = a.url.absoluteString.hasPrefix("mailto:") ? String(a.url.absoluteString.dropFirst(7)) : nil
diff --git a/app/resources/tray-titled.png b/app/resources/tray-titled.png
new file mode 100644
index 00000000..b52c25ae
Binary files /dev/null and b/app/resources/tray-titled.png differ
diff --git a/app/resources/[email protected] b/app/resources/[email protected]
new file mode 100644
index 00000000..1fd0bdaa
Binary files /dev/null and b/app/resources/[email protected] differ
diff --git a/app/src/main/calendar.ts b/app/src/main/calendar.ts
index b762a9f6..d6290339 100644
--- a/app/src/main/calendar.ts
+++ b/app/src/main/calendar.ts
@@ -9,7 +9,7 @@ import { noteOwnEmail } from './vocab'
import { ownAddress } from '../shared/people'
/** One meeting on the calendar, times in ms */
-export type CalEvent = { id: string; title: string; start: number; end: number; attendees: Person[]; url: string | null; calendar?: CalendarSource; aliases?: string[]; ownEmail?: string | null }
+export type CalEvent = { id: string; title: string; start: number; end: number; attendees: Person[]; url: string | null; calendar?: CalendarSource; aliases?: string[]; ownEmail?: string | null; declined?: boolean }
export type CalendarSource = { id: string; name: string; source: string; color?: string }
export const eventIds = (event: CalEvent): string[] => [event.id, ...(event.aliases ?? [])]
export const matchesEvent = (event: CalEvent, id: string | null): boolean => !!id && eventIds(event).includes(id)
@@ -144,26 +144,27 @@ export function parseEvents(raw: unknown, hidden: string[] = []): CalEvent[] {
const key = identity ? JSON.stringify([identity, start, end]) : id
const copies = groups.get(key) ?? []
copies.push({
- id, ...(ownEmail ? { ownEmail } : {}), title: str(r.title) ?? '', start, end, attendees,
+ id, ...(ownEmail ? { ownEmail } : {}), ...(r.declined === true ? { declined: true } : {}), title: str(r.title) ?? '', start, end, attendees,
url: meetingLink(str(r.url)) ?? meetingLink(str(r.location)) ?? meetingLink(str(r.notes)),
...(calendarId ? { calendar: { id: calendarId, name: str(r.calendar) ?? '', source: str(r.calendarSource) ?? '' } } : {}),
})
groups.set(key, copies)
}
return [...groups.values()].flatMap((copies) => {
- const event = copies.find((e) => !e.calendar || !hidden.includes(e.calendar.id))
+ const visible = copies.filter((e) => !e.calendar || !hidden.includes(e.calendar.id))
+ const [event] = visible
if (!event) return []
const aliases = [...new Set(copies.map((e) => e.id))].filter((id) => id !== event.id)
- return [{ ...event, ...(aliases.length ? { aliases } : {}) }]
+ return [{ ...event, ...(aliases.length ? { aliases } : {}), ...(visible.some(copy => copy.declined) ? { declined: true } : {}) }]
})
}
/** Events between two times. No Calendar access, or a helper that fails: none, never a crash. */
-export async function upcoming(fromMs: number, toMs: number, keep?: 'link-event' | ((event: CalEvent) => boolean), unavailable?: string[]): Promise<CalEvent[]> {
+export async function upcoming(fromMs: number, toMs: number, keep?: 'link-event' | ((event: CalEvent) => boolean), unavailable?: string[], { fullRange = false } = {}): Promise<CalEvent[]> {
if (await refreshCalendarStatus() !== 'granted') return []
try {
const fromMac = !links || (alongside && macStatus === 'granted')
- const mac = fromMac ? await helper(['events', new Date(fromMs).toISOString(), new Date(toMs).toISOString()]).catch(() => {
+ const mac = fromMac ? await helper(['events', new Date(fromMs).toISOString(), new Date(toMs).toISOString(), ...(fullRange ? ['--full-range'] : [])]).catch(() => {
macStatus = 'error'
status = overall(macStatus)
return []
diff --git a/app/src/main/calendarLink/ics.ts b/app/src/main/calendarLink/ics.ts
index 9cbeb927..41b9136d 100644
--- a/app/src/main/calendarLink/ics.ts
+++ b/app/src/main/calendarLink/ics.ts
@@ -11,7 +11,7 @@ export type RawEvent = {
id: string; externalId: string; title: string; start: string; end: string
attendees: Array<{ name: string | null; email: string | null }>
url: string | null; location: string | null; notes: string | null
- calendarId: string; calendar: string; calendarSource: string; me: string | null
+ calendarId: string; calendar: string; calendarSource: string; me: string | null; declined?: boolean
}
/** at most this many occurrences of one event are walked, so a feed with a years-long daily event stays quick */
@@ -92,11 +92,13 @@ export function icsFeed(text: string, link: LinkRef) {
const s = start.toJSDate().getTime(), e = end.toJSDate().getTime()
if (!(s < toMs && e > fromMs)) return
const uid = item.uid
+ const declined = me && item.component.getAllProperties('attendee').some(p =>
+ email(p.getFirstValue()) === me && String(p.getParameter('partstat')).toUpperCase() === 'DECLINED')
out.push({
id: `${uid}|${new Date(s).toISOString()}`, externalId: uid, title: item.summary ?? '',
start: new Date(s).toISOString(), end: new Date(e).toISOString(), attendees: people(item.component, me),
url: prop(item.component, 'url') ?? prop(item.component, 'x-google-conference'), location: item.location || null, notes: item.description || null,
- calendarId: link.id, calendar: link.name, calendarSource: 'Calendar link', me,
+ calendarId: link.id, calendar: link.name, calendarSource: 'Calendar link', me, ...(declined ? { declined: true } : {}),
})
}
for (const ev of items) {
diff --git a/app/src/main/index.ts b/app/src/main/index.ts
index 627edc2f..432d08eb 100644
--- a/app/src/main/index.ts
+++ b/app/src/main/index.ts
@@ -41,6 +41,7 @@ import { hookPreferences, onboardingShowing } from './preferences'
import { loginItemOn, openedAtLogin, setLoginItem, syncLoginItem } from './loginItem'
import { createMedia } from './media'
import { createTray, linuxTrayHost } from './tray'
+import { trayWindowEnd } from './trayMenu'
import { SetupController } from './setup'
import { fakeMeasure, measureSpeed, speedClipPath, speedStore } from './asr/speedCheck'
import { vadModelPath, whisperServerPath } from './asr/server'
@@ -113,9 +114,7 @@ let win: BrowserWindow | undefined
let allowQuit = false
let presentMain = (_foreground = false) => {}
let updateMainMenu = () => {}
-let setTrayVisible = (_on: boolean) => {}
-/** whether the tray icon is there to reopen Yogurt from (Windows and Linux minimise on close without it) */
-let trayShown = () => true
+let menuBar: ReturnType<typeof createTray> | undefined
/** test runs: no window on screen, never takes focus from what the person is doing */
const BACKGROUND = process.env.YOGURT_BACKGROUND === '1'
// an AI app's yogurt-mcp starting Yogurt while it was still opening (--hidden) brings no window forward
@@ -139,7 +138,7 @@ function createWindow() {
webPreferences: { preload: join(__dirname, '../preload/index.cjs'), sandbox: false, ...(BACKGROUND ? { backgroundThrottling: false } : {}) },
})
presentMain = keepMainWindow(win, { background: BACKGROUND, canClose: () => allowQuit, activate: () => app.focus({ steal: true }),
- closeTo: () => closeAction(process.platform, trayShown()), glass: process.platform === 'darwin', lift: process.platform === 'darwin' })
+ closeTo: () => closeAction(process.platform, menuBar?.shown() ?? true), glass: process.platform === 'darwin', lift: process.platform === 'darwin' })
if (process.platform !== 'darwin') {
win.setMenuBarVisibility(false)
// the window buttons follow light and dark mode
@@ -259,8 +258,8 @@ let relaunched = 0
/** fake mode: how many times Yogurt would have restarted to install a new version */
let updateRestarts = 0
-async function readCalendar(from: number, to: number, keep?: Parameters<typeof upcoming>[2], unavailable?: string[]): Promise<CalEvent[]> {
- const events = await upcoming(from, to, keep, unavailable)
+async function readCalendar(...range: Parameters<typeof upcoming>): Promise<CalEvent[]> {
+ const events = await upcoming(...range)
refreshEventSnapshots(events)
return events
}
@@ -403,8 +402,9 @@ function startDetection() {
ipcMain.handle('meetings:set-paused', (_e, id: unknown, paused: unknown) => pauseRecording(id, paused))
ipcMain.handle('meetings:retry-stop-save', (_e, id: unknown) => isId(id) && retryStopSave(id))
// the menu bar: open, new note or stop, quit; Yogurt stays there with its window closed
+ const preferences = loadSettings(join(userDataDir(), 'settings.json'))
const tray = createTray({
- show: !BACKGROUND, visible: loadSettings(join(userDataDir(), 'settings.json')).showInMenuBar !== false,
+ show: !BACKGROUND, visible: preferences.showInMenuBar, showNextMeeting: preferences.showNextMeeting,
open: () => { presented++; showMain() },
newNote: () => { if (!activeMeeting()) begin({ title: '', event: null, app: null }) },
stop: (id) => { stopMeeting(id) },
@@ -412,7 +412,11 @@ function startDetection() {
ask: askFromMenu, settings: () => goTo('/settings'),
openNote: (id) => { const note = storeRef?.meeting(id); if (note && note.trashedAt == null) goTo(`/note/${id}`) },
recent: () => storeRef?.meetingCards({ limit: 5 }) ?? [],
- events: comingUp, now,
+ events: () => {
+ const at = now()
+ return readCalendar(at, trayWindowEnd(at), undefined, undefined, { fullRange: true })
+ },
+ now,
elapsed: widget.elapsed,
os: platform,
host: process.platform === 'linux' && !BACKGROUND ? linuxTrayHost : undefined,
@@ -427,8 +431,7 @@ function startDetection() {
},
})
refreshCalendarConsumers = () => { signals.invalidateCalendar(); void tray.refreshCalendar() }
- setTrayVisible = tray.setVisible
- trayShown = tray.shown
+ menuBar = tray
// cheap, and only while Yogurt runs; more often while recording, so the end of a quiet call is noticed promptly
let timer: NodeJS.Timeout | undefined
const watchLoop = () => { timer = setTimeout(() => { void watcher.tick().catch((e) => console.error('detect failed', e)).finally(watchLoop) }, watchEveryMs(!!activeMeeting())) }
@@ -507,7 +510,8 @@ app.whenReady().then(() => {
// fake mode asks the first-run questions only when a test sets the permissions
ask: !isFake() || !!process.env.YOGURT_FAKE_PERMISSIONS,
setLogin: (on) => { if (!isFake()) setLoginItem(on) },
- setTrayVisible: (on) => setTrayVisible(on),
+ setTrayVisible: (on) => menuBar?.setVisible(on),
+ setShowNextMeeting: (on) => menuBar?.setShowNextMeeting(on),
setDockVisible: (on) => setDockVisible(on, win),
loginOn: (saved) => (isFake() ? !!saved : loginItemOn(saved)),
macName,
diff --git a/app/src/main/preferences.ts b/app/src/main/preferences.ts
index f63e6cd5..83427d0e 100644
--- a/app/src/main/preferences.ts
+++ b/app/src/main/preferences.ts
@@ -18,7 +18,7 @@ const isKind = (k: unknown): k is PermissionKind => PERMISSION_KINDS.includes(k
let firstRunShowing = false
export const onboardingShowing = (): boolean => firstRunShowing
-export function hookPreferences(d: { file: string; permissions: Permissions; ask: boolean; setLogin(on: boolean): void; setTrayVisible(on: boolean): void; setDockVisible(on: boolean): void; loginOn(saved: boolean | undefined): boolean; /** the Mac's full name */ macName(): string
+export function hookPreferences(d: { file: string; permissions: Permissions; ask: boolean; setLogin(on: boolean): void; setTrayVisible(on: boolean): void; setShowNextMeeting(on: boolean): void; setDockVisible(on: boolean): void; loginOn(saved: boolean | undefined): boolean; /** the Mac's full name */ macName(): string
/** quit and open again, for a permission the Mac applies only then; false when it can't now (recording) */
relaunch(): boolean
/** fake mode: a slow start, so tests see the launch screen */
@@ -59,7 +59,7 @@ export function hookPreferences(d: { file: string; permissions: Permissions; ask
// what the Mac says, so a change in System Settings shows here
// locale: every window (main, card, widget) shows the interface language
// language: the one picked ('' is the Mac's); locale: the one in use; systemLocale: the Mac's, for the picker
- return { theme: s.theme ?? 'system', openAtLogin: d.loginOn(s.openAtLogin), showInMenuBar: s.showInMenuBar !== false, appVisibility: !visible.showInMenuBar ? 'dock' : visible.showInDock ? 'both' : 'menu-bar', language: isLocale(s.language) ? s.language : '', locale: localeOf(s, systemLocale()), systemLocale: systemLocale(), myName: s.myName?.trim() || d.macName(), macName: d.macName(), stopWhenCallEnds: stopsWhenCallEnds(s), recordingReminder: recordingReminderOn(s), keepRecordings: s.keepRecordings !== false, jargon: cleanJargon(s.jargon), spoken: spokenSetting(s), summaryLanguage: summaryLanguageSetting(s) }
+ return { theme: s.theme ?? 'system', openAtLogin: d.loginOn(s.openAtLogin), showInMenuBar: visible.showInMenuBar, showNextMeeting: s.showNextMeeting !== false, appVisibility: !visible.showInMenuBar ? 'dock' : visible.showInDock ? 'both' : 'menu-bar', language: isLocale(s.language) ? s.language : '', locale: localeOf(s, systemLocale()), systemLocale: systemLocale(), myName: s.myName?.trim() || d.macName(), macName: d.macName(), stopWhenCallEnds: stopsWhenCallEnds(s), recordingReminder: recordingReminderOn(s), keepRecordings: s.keepRecordings !== false, jargon: cleanJargon(s.jargon), spoken: spokenSetting(s), summaryLanguage: summaryLanguageSetting(s) }
})
// what the person is called in meetings (who "You" is when naming voices); blank: the Mac's full name again
ipcMain.handle('settings:name', (_e, v: unknown) => {
@@ -116,6 +116,11 @@ export function hookPreferences(d: { file: string; permissions: Permissions; ask
updateSettings(d.file, { showInMenuBar: on ? undefined : false })
d.setTrayVisible(on)
})
+ ipcMain.handle('settings:next-meeting', (_e, on: unknown) => {
+ if (typeof on !== 'boolean') return
+ updateSettings(d.file, { showNextMeeting: on ? undefined : false })
+ d.setShowNextMeeting(on)
+ })
ipcMain.handle('settings:visibility', (_e, choice: unknown) => {
if (os !== 'darwin' || (choice !== 'both' && choice !== 'menu-bar' && choice !== 'dock')) return
const menuBar = choice !== 'dock', dock = choice !== 'menu-bar'
diff --git a/app/src/main/settings.ts b/app/src/main/settings.ts
index 0eae334b..fc938166 100644
--- a/app/src/main/settings.ts
+++ b/app/src/main/settings.ts
@@ -18,6 +18,8 @@ export type Settings = { theme?: 'light' | 'dark'; language?: string; /** what t
openAtLogin?: boolean
/** the native menu bar icon; on unless turned off */
showInMenuBar?: boolean
+ /** Show a meeting title beside the icon or in its tooltip. Defaults on. */
+ showNextMeeting?: boolean
/** the Dock icon; on unless turned off */
showInDock?: boolean
/** Legacy flag, ignored: it may have come from a different app bundle. Removed after a confirmed post. */
diff --git a/app/src/main/tray.ts b/app/src/main/tray.ts
index 53f82639..8c9045b9 100644
--- a/app/src/main/tray.ts
+++ b/app/src/main/tray.ts
@@ -1,13 +1,23 @@
-import { app, Menu, nativeImage, Tray, type MenuItemConstructorOptions } from 'electron'
+import { app, Menu, nativeImage, powerMonitor, systemPreferences, Tray, type MenuItemConstructorOptions } from 'electron'
import { existsSync } from 'node:fs'
import { join } from 'node:path'
import { activeMeeting, onMeetingChange } from './meeting'
import { execFile } from 'node:child_process'
-import { hasTrayHost, nextTrayEvent, trayItems, trayLook, type TrayItem } from './trayMenu'
-import { onLanguage, t } from '../shared/i18n'
+import { formatTrayTime, hasTrayHost, nextTrayEvent, trayItems, trayLook, type TrayItem } from './trayMenu'
+import { daysAgo } from '../shared/dates'
+import { onLanguage } from '../shared/i18n'
import { onRecordingEvent, recordingPaused } from './capture'
import type { CalEvent } from './calendar'
+function systemTrayTime(start: number, dated: boolean): string {
+ let hour12: boolean | undefined
+ if (process.platform === 'darwin') {
+ if (systemPreferences.getUserDefault('AppleICUForce24HourTime', 'boolean')) hour12 = false
+ else if (systemPreferences.getUserDefault('AppleICUForce12HourTime', 'boolean')) hour12 = true
+ }
+ return formatTrayTime(start, dated, app.getSystemLocale() || undefined, hour12)
+}
+
function iconPath(name = 'tray'): string {
const candidates = [
process.resourcesPath && join(process.resourcesPath, `${name}.png`),
@@ -26,7 +36,7 @@ export const linuxTrayHost = (): Promise<boolean> => new Promise((done) => {
* Yogurt in the menu bar (the notification area on Windows, the tray on Linux): it keeps running there with its window closed, so it still notices calls.
* The menu says what is recording. Tests run without it on screen (show: false) and read the menu through items().
*/
-export function createTray(d: { show: boolean; visible?: boolean; open(): void; newNote(): void; stop(id: string): void
+export function createTray(d: { show: boolean; visible?: boolean; showNextMeeting?: boolean; open(): void; newNote(): void; stop(id: string): void
pause(id: string, paused: boolean): void; ask(): void; settings(): void; openNote(id: string): void
events(): Promise<CalEvent[]>; event(event: CalEvent, join: boolean): Promise<void>
recent(): { id: string; title: string; startedAt: number }[]; elapsed(): number; now?: () => number
@@ -37,6 +47,10 @@ export function createTray(d: { show: boolean; visible?: boolean; open(): void;
}) {
const os = d.os ?? 'darwin'
let visible = d.visible !== false, hosted = true, iconName = ''
+ let showNextMeeting = d.showNextMeeting !== false
+ let lastTitle: string | undefined, lastTooltip: string | undefined
+ let clock: NodeJS.Timeout | undefined
+ let boundary: NodeJS.Timeout | undefined
let tray: Tray | undefined
let items: TrayItem[] = []
let events: CalEvent[] = []
@@ -48,49 +62,61 @@ export function createTray(d: { show: boolean; visible?: boolean; open(): void;
else if (id === 'ask') d.ask()
else if (id === 'settings') d.settings()
else if (id.startsWith('note:')) d.openNote(id.slice(5))
- else if ((id === 'next' || id === 'join') && !m) {
- const event = nextTrayEvent(events, now())
- if (event) void d.event(event, id === 'join').catch(error => console.error('Menu bar event action failed', error))
+ else if ((id === 'next' || id === 'join') && !m && showNextMeeting) {
+ const at = now(), event = nextTrayEvent(events, at)
+ if (event && (event.start <= at || daysAgo(event.start, at) === 0)) void d.event(event, id === 'join').catch(error => console.error('Menu bar event action failed', error))
}
else if (id === 'pause' && m) d.pause(m.id, !recordingPaused(m.id))
else if (id === 'stop' && m) d.stop(m.id)
else if (id === 'quit') app.quit()
}
- const look = () => {
- const m = activeMeeting()
- return trayLook(os, m ? { paused: recordingPaused(m.id) } : null, d.elapsed())
- }
+ const look = (m: ReturnType<typeof activeMeeting>, next?: CalEvent, at = now()) =>
+ trayLook(os, m ? { paused: recordingPaused(m.id) } : null, m ? d.elapsed() : 0, next, at, systemTrayTime)
const image = (name: string) => {
const icon = nativeImage.createFromPath(iconPath(name))
if (os === 'darwin') icon.setTemplateImage(true)
return icon
}
- // each second while recording: the timer beside a Mac's icon, the tooltip elsewhere
- const title = () => {
- const l = look()
- if (l.title !== null) tray?.setTitle(l.title, { fontType: 'monospacedDigit' })
- else tray?.setToolTip(l.tooltip)
+ const updateLook = () => {
+ clearTimeout(boundary)
+ if (!tray) return
+ const m = activeMeeting(), at = now()
+ const next = !m && showNextMeeting ? nextTrayEvent(events, at) : undefined
+ if (next) {
+ // Count down on the meeting's minute boundary, even for off-minute starts.
+ const untilStart = next.start - at
+ let untilChange = next.end - at
+ if (untilStart > 3_600_000) untilChange = untilStart - 3_600_000
+ else if (untilStart > 0) untilChange = untilStart % 60_000 || 60_000
+ if (untilChange < 60_000 - at % 60_000) boundary = setTimeout(updateLook, untilChange).unref()
+ }
+ const l = look(m, next, at)
+ if (l.icon !== iconName) { tray.setImage(image(l.icon)); iconName = l.icon }
+ if (l.title !== null && l.title !== lastTitle) { tray.setTitle(l.title, { fontType: 'monospacedDigit' }); lastTitle = l.title }
+ if (l.tooltip !== lastTooltip) { tray.setToolTip(l.tooltip); lastTooltip = l.tooltip }
}
const template = (list: TrayItem[]): MenuItemConstructorOptions[] => list.map(i => i.id === 'sep' ? { type: 'separator' }
: { label: i.label, enabled: i.enabled, accelerator: i.accelerator, ...(i.submenu ? { submenu: template(i.submenu) } : { click: () => act(i.id) }) })
const refresh = () => {
const m = activeMeeting()
const paused = !!m && recordingPaused(m.id)
- items = trayItems(m ? { id: m.id, title: m.title, paused } : null, nextTrayEvent(events, now()), d.recent(), now(), os)
+ if (tray && m && !paused) clock ??= setInterval(updateLook, 1000).unref()
+ else { clearInterval(clock); clock = undefined }
+ const at = now()
+ items = trayItems(m ? { id: m.id, title: m.title, paused } : null, showNextMeeting ? nextTrayEvent(events, at) : undefined, d.recent(), at, os, systemTrayTime)
if (!tray) return
tray.setContextMenu(Menu.buildFromTemplate(template(items)))
- const l = look()
- if (l.icon !== iconName) { tray.setImage(image(l.icon)); iconName = l.icon }
- title()
- tray.setToolTip(l.tooltip)
+ updateLook()
}
const setVisible = (on: boolean) => {
visible = on
if (!on || !d.show) {
+ clearTimeout(boundary)
tray?.destroy()
tray = undefined
+ lastTitle = lastTooltip = undefined
} else if (!tray) {
- iconName = look().icon
+ iconName = look(activeMeeting()).icon
tray = new Tray(image(iconName))
tray.on('mouse-down', refresh)
// Windows: a left click opens Yogurt and a right click shows the menu (Linux trays mostly show the menu)
@@ -104,23 +130,32 @@ export function createTray(d: { show: boolean; visible?: boolean; open(): void;
try {
const result = await d.events()
if (revision === calendarRevision) { events = result; refresh() }
- } catch (error) { console.warn('Menu bar calendar unavailable', error) }
+ } catch (error) {
+ if (revision === calendarRevision) { events = []; refresh() }
+ console.warn('Menu bar calendar unavailable', error)
+ }
}
setVisible(visible)
void d.host?.().then((yes) => {
hosted = yes
if (!yes) console.warn('TRAY no tray host here (GNOME needs the AppIndicator extension): closing the window minimises it')
})
- void refreshCalendar()
- const clock = setInterval(() => { if (tray && activeMeeting()) title() }, 1000)
- const calendar = setInterval(() => void refreshCalendar(), 60_000)
- clock.unref(); calendar.unref()
- app.on('will-quit', () => { clearInterval(clock); clearInterval(calendar) })
+ let calendar: NodeJS.Timeout
+ const tick = () => {
+ clearTimeout(calendar)
+ calendar = setTimeout(tick, 60_000 - now() % 60_000).unref()
+ updateLook()
+ void refreshCalendar()
+ }
+ tick()
+ powerMonitor.on('resume', tick)
+ app.on('will-quit', () => { clearInterval(clock); clearTimeout(calendar); clearTimeout(boundary); powerMonitor.off('resume', tick) })
onMeetingChange(refresh)
onLanguage(refresh)
onRecordingEvent((e) => { if (e.t === 'paused') refresh() })
return {
- setVisible, refreshCalendar, items: () => { refresh(); return items.map((i) => i.label) }, click: act,
+ setVisible, setShowNextMeeting: (on: boolean) => { showNextMeeting = on; refresh() },
+ refreshCalendar, items: () => { refresh(); return items.map((i) => i.label) }, click: act,
/** whether the person can see the icon (on in Settings, and a tray to show it in): closing hides the window only then */
shown: () => visible && hosted,
/** for tests: each item's shortcut */
diff --git a/app/src/main/trayMenu.ts b/app/src/main/trayMenu.ts
index 54228624..198378a5 100644
--- a/app/src/main/trayMenu.ts
+++ b/app/src/main/trayMenu.ts
@@ -1,23 +1,58 @@
-import { t } from '../shared/i18n'
-import { dayLabel, timeOf } from '../shared/dates'
+import { language, t } from '../shared/i18n'
+import { dayLabel, daysAgo } from '../shared/dates'
import { formatElapsed } from '../shared/wave'
import type { CalEvent } from './calendar'
export type TrayItem = { id: 'status' | 'open' | 'new' | 'stop' | 'pause' | 'ask' | 'next' | 'join' | 'recent' | 'settings' | 'quit' | 'sep' | `note:${string}`; label: string; enabled: boolean; accelerator?: string; submenu?: TrayItem[] }
type Recent = { id: string; title: string; startedAt: number }
-/** The agenda's meeting-shaped events only, still happening or starting later today. */
+/** Include the full seventh local date so next week's meeting can be seen all day. */
+export function trayWindowEnd(now: number): number {
+ const end = new Date(now)
+ end.setDate(end.getDate() + 8)
+ end.setHours(0, 0, 0, 0)
+ return end.getTime()
+}
+
export function nextTrayEvent(events: CalEvent[], now = Date.now()): CalEvent | undefined {
- const end = new Date(now); end.setHours(24, 0, 0, 0)
- return events.filter(e => e.end > now && e.start < end.getTime() && (e.attendees.length > 0 || !!e.url?.trim()))
+ const end = trayWindowEnd(now)
+ return events.filter(e => !e.declined && e.end > now && e.start < end && (e.attendees.length > 0 || !!e.url?.trim()))
.sort((a, b) => a.start - b.start)[0]
}
-export const trayTitle = (active: { elapsedMs: number; paused: boolean } | null): string =>
- active ? `${active.paused ? '' : '● '}${formatElapsed(active.elapsedMs)}` : ''
+const MINUTE = 60_000
+const TITLE_LIMIT = 22
+const graphemes = new Intl.Segmenter()
+
+function shortMeetingTitle(raw: string): string {
+ const title = raw.replace(/[\s\p{Cc}]+/gu, ' ').trim() || t('Meeting')
+ let length = 0
+ for (const { index, segment } of graphemes.segment(title)) {
+ if (++length === TITLE_LIMIT && index + segment.length < title.length) return title.slice(0, index).trimEnd() + '…'
+ }
+ return title
+}
+
+export function formatTrayTime(start: number, dated: boolean, locale: string = language(), hour12?: boolean): string {
+ const date = new Date(start)
+ const time = date.toLocaleTimeString(locale, { hour: 'numeric', minute: '2-digit', hour12 })
+ return dated ? `${date.toLocaleDateString(locale, { month: 'short', day: 'numeric' })} ${time}` : time
+}
+
+export function trayTitle(active: { elapsedMs: number; paused: boolean } | null, next?: CalEvent, now = Date.now(), clock = formatTrayTime): string {
+ if (active) return active.paused ? t('Paused') : formatElapsed(active.elapsedMs)
+ if (!next || next.end <= now) return ''
+ const title = shortMeetingTitle(next.title)
+ if (next.start <= now) return t('Now · {title}', { title })
+ const dated = daysAgo(next.start, now) !== 0
+ const minutes = Math.ceil((next.start - now) / MINUTE)
+ if (dated || minutes > 60) return `${title} · ${clock(next.start, dated)}`
+ const time = new Intl.NumberFormat(language(), { style: 'unit', unit: minutes === 60 ? 'hour' : 'minute', unitDisplay: 'narrow' }).format(minutes === 60 ? 1 : minutes)
+ return t('{title} · in {time}', { title, time })
+}
/** Keep native and hidden-test menus identical; only the native icon is optional. */
-export function trayItems(active: { id?: string; title: string; paused?: boolean } | null, next?: CalEvent, recent: Recent[] = [], now = Date.now(), os = 'darwin'): TrayItem[] {
+export function trayItems(active: { id?: string; title: string; paused?: boolean } | null, next?: CalEvent, recent: Recent[] = [], now = Date.now(), os = 'darwin', clock = formatTrayTime): TrayItem[] {
const sep: TrayItem = { id: 'sep', label: '', enabled: true }
const open: TrayItem = { id: 'open', label: t('Open Yogurt'), enabled: true }
const ask: TrayItem = { id: 'ask', label: t('Ask Yogurt'), enabled: true }
@@ -25,9 +60,10 @@ export function trayItems(active: { id?: string; title: string; paused?: boolean
const quit: TrayItem = { id: 'quit', label: t('Quit Yogurt'), enabled: true }
const history: TrayItem = { id: 'recent', label: t('Recent'), enabled: recent.length > 0, submenu: [...recent].sort((a, b) => b.startedAt - a.startedAt).slice(0, 5)
.map(m => ({ id: `note:${m.id}`, label: `${m.title || t('Untitled meeting')} · ${dayLabel(m.startedAt)}`, enabled: true })) }
+ const laterDay = !!next && next.start > now && daysAgo(next.start, now) !== 0
if (!active) return [
- ...(next ? [{ id: 'next' as const, label: next.start <= now ? t('Now · {title}', { title: next.title || t('Meeting') }) : `${next.title || t('Meeting')} · ${timeOf(next.start)}`, enabled: true },
- ...(next.url?.trim() ? [{ id: 'join' as const, label: t('Join and record'), enabled: true }] : [])] : []),
+ ...(next ? [{ id: 'next' as const, label: next.start <= now ? t('Now · {title}', { title: next.title || t('Meeting') }) : `${next.title || t('Meeting')} · ${clock(next.start, laterDay)}`, enabled: !laterDay },
+ ...(!laterDay && next.url?.trim() ? [{ id: 'join' as const, label: t('Join and record'), enabled: true }] : [])] : []),
{ id: 'new', label: t('Start recording'), enabled: true }, ask, history, sep, open, settings, sep, quit,
]
return [
@@ -38,14 +74,14 @@ export function trayItems(active: { id?: string; title: string; paused?: boolean
]
}
-/**
- * How the icon looks. A Mac: the template mark (the system tints it) with the timer beside it.
- * Windows and Linux have no text beside a tray icon: a colour mark, a recording one while it records, the time in the tooltip.
- */
-export function trayLook(os: string, active: { paused: boolean } | null, elapsedMs: number): { icon: 'tray' | 'tray-color' | 'tray-recording'; template: boolean; title: string | null; tooltip: string } {
+/** macOS shows the timer beside its template icon. Other platforms mark the running timer in the tooltip. */
+export function trayLook(os: string, active: { paused: boolean } | null, elapsedMs: number, next?: CalEvent, now = Date.now(), clock = formatTrayTime): { icon: 'tray' | 'tray-titled' | 'tray-color' | 'tray-recording'; template: boolean; title: string | null; tooltip: string } {
const tooltip = active?.paused ? t('Recording paused') : active ? t('Yogurt is recording') : 'Yogurt'
- if (os === 'darwin') return { icon: 'tray', template: true, title: trayTitle(active ? { elapsedMs, paused: active.paused } : null), tooltip }
- return { icon: active && !active.paused ? 'tray-recording' : 'tray-color', template: false, title: null, tooltip: active ? `${tooltip} · ${formatElapsed(elapsedMs)}` : tooltip }
+ const title = trayTitle(active ? { elapsedMs, paused: active.paused } : null, next, now, clock)
+ // The titled template adds 1 pt between the mark and the native title.
+ if (os === 'darwin') return { icon: title ? 'tray-titled' : 'tray', template: true, title, tooltip }
+ const recording = active && !active.paused
+ return { icon: recording ? 'tray-recording' : 'tray-color', template: false, title: null, tooltip: recording ? `● ${title}` : title || tooltip }
}
/** dbus-send's answer to NameHasOwner org.kde.StatusNotifierWatcher: is there a tray to show an icon in? */
diff --git a/app/src/preload/index.ts b/app/src/preload/index.ts
index 0d4cdcf4..7421d32f 100644
--- a/app/src/preload/index.ts
+++ b/app/src/preload/index.ts
@@ -239,6 +239,7 @@ const api: YogurtApi = {
get: () => ipcRenderer.invoke('settings:get'),
setTheme: (v) => ipcRenderer.invoke('settings:theme', v),
setShowInMenuBar: (on) => ipcRenderer.invoke('settings:menu-bar', on),
+ setShowNextMeeting: (on) => ipcRenderer.invoke('settings:next-meeting', on),
setAppVisibility: (choice) => ipcRenderer.invoke('settings:visibility', choice),
setOpenAtLogin: (on) => ipcRenderer.invoke('settings:login', on),
setName: (name) => ipcRenderer.invoke('settings:name', name),
diff --git a/app/src/renderer/src/screens/Settings.tsx b/app/src/renderer/src/screens/Settings.tsx
index 3a23a8c0..ba57ac4d 100644
--- a/app/src/renderer/src/screens/Settings.tsx
+++ b/app/src/renderer/src/screens/Settings.tsx
@@ -18,6 +18,16 @@ import { CalendarSettings } from '../components/CalendarSettings'
import { supportedKinds, settingsPage } from '../../../shared/platform'
import { Swap, SwapText } from '../components/Swap'
+export function NextMeetingSetting({ visible, on, onChange }: { visible: boolean; on: boolean; onChange(on: boolean): void }) {
+ if (!visible) return null
+ return <div className="settings-row">
+ <label htmlFor="settings-next-meeting" className="settings-label settings-row-copy">{t('Show the next meeting')}</label>
+ <button id="settings-next-meeting" role="switch" aria-checked={on} onClick={() => onChange(!on)} className="settings-toggle">
+ <span className="settings-toggle-knob" />
+ </button>
+ </div>
+}
+
const THEMES = () => [['system', osWords({ mac: t('Match my Mac'), windows: t('Match Windows'), linux: t('Match my system') })], ['light', t('Light')], ['dark', t('Dark')]] as const
// each computer's own words for starting at login and its icon's place: the menu bar, the notification area, the tray
const loginLabel = () => osWords({ mac: t('Open Yogurt when your Mac starts'), windows: t('Open Yogurt when Windows starts'), linux: t('Open Yogurt when you log in') })
@@ -62,7 +72,7 @@ function useSettingSave(actionId: string, refresh: () => void) {
/** focus: the setting requested by the entry point */
export function Settings({ revision = 0, focus }: { revision?: number; focus?: string }) {
const [perms, setPerms] = useState<PermissionStatus>()
- const [prefs, setPrefs] = useState<{ theme: Theme; openAtLogin: boolean; showInMenuBar: boolean; appVisibility: AppVisibility; myName: string; macName: string; stopWhenCallEnds: boolean; recordingReminder: boolean; keepRecordings: boolean }>()
+ const [prefs, setPrefs] = useState<Awaited<ReturnType<typeof window.yogurt.settings.get>>>()
const [name, setName] = useState('')
const [generalReady, setGeneralReady] = useState(false)
const scroll = useScrollMemory<HTMLDivElement>('settings', !!prefs && !!perms)
@@ -168,6 +178,10 @@ export function Settings({ revision = 0, focus }: { revision?: number; focus?: s
<button data-testid="menu-bar-toggle" role="switch" aria-checked={!!prefs?.showInMenuBar} aria-label={trayLabel()} onClick={menuBar}
className="settings-toggle"><span className="settings-toggle-knob" /></button>
</div>}
+ <NextMeetingSetting visible={!!prefs?.showInMenuBar} on={prefs?.showNextMeeting ?? true} onChange={async on => {
+ await window.yogurt.settings.setShowNextMeeting(on)
+ setPrefs(p => p && { ...p, showNextMeeting: on })
+ }} />
<div className="settings-row">
<div className="settings-row-copy">
<p className="settings-label">{t('Finish recording when the call ends')}</p>
diff --git a/app/src/shared/locales/ar.json b/app/src/shared/locales/ar.json
index 4e5d36b0..1d52d20a 100644
--- a/app/src/shared/locales/ar.json
+++ b/app/src/shared/locales/ar.json
@@ -724,6 +724,7 @@
"Export Markdown": "تصدير بتنسيق Markdown",
"Export Markdown…": "تصدير بتنسيق Markdown…",
"Now · {title}": "الآن · {title}",
+ "{title} · in {time}": "{title} · بعد {time}",
"Paused · {title}": "متوقف مؤقتًا · {title}",
"Recording · {title}": "جارٍ التسجيل · {title}",
"Removing this model restores the smaller one.": "تؤدي إزالته إلى استعادة النموذج الأصغر.",
@@ -735,6 +736,7 @@
"Yogurt couldn't save this folder.": "تعذّر على Yogurt حفظ هذا المجلد.",
"Your edits to the summary will be replaced.": "سيتم استبدال تعديلاتك على الملخص.",
"Show Yogurt in": "إظهار Yogurt في",
+ "Show the next meeting": "إظهار الاجتماع القادم",
"Menu bar and Dock": "شريط القوائم وDock",
"Menu bar only": "شريط القوائم فقط",
"Dock only": "Dock فقط",
diff --git a/app/src/shared/locales/bn.json b/app/src/shared/locales/bn.json
index bde4cf67..54736cd3 100644
--- a/app/src/shared/locales/bn.json
+++ b/app/src/shared/locales/bn.json
@@ -656,6 +656,7 @@
"Export Markdown": "Markdown হিসেবে এক্সপোর্ট করুন",
"Export Markdown…": "Markdown হিসেবে এক্সপোর্ট করুন…",
"Now · {title}": "এখন · {title}",
+ "{title} · in {time}": "{title} · {time} পরে",
"Paused · {title}": "বিরতিতে · {title}",
"Recording · {title}": "রেকর্ড হচ্ছে · {title}",
"Removing this model restores the smaller one.": "এটি সরিয়ে দিলে ছোট মডেলটি ফিরিয়ে আনা হয়।",
@@ -667,6 +668,7 @@
"Yogurt couldn't save this folder.": "Yogurt এই ফোল্ডার সেভ করতে পারেনি।",
"Your edits to the summary will be replaced.": "সারাংশে আপনার সম্পাদনা বদলে যাবে।",
"Show Yogurt in": "Yogurt দেখানোর স্থান",
+ "Show the next meeting": "পরবর্তী মিটিং দেখান",
"Menu bar and Dock": "মেনু বার এবং Dock",
"Menu bar only": "শুধু মেনু বার",
"Dock only": "শুধু Dock",
diff --git a/app/src/shared/locales/cs.json b/app/src/shared/locales/cs.json
index 814c2c74..6f2ccff8 100644
--- a/app/src/shared/locales/cs.json
+++ b/app/src/shared/locales/cs.json
@@ -699,6 +699,7 @@
"Export Markdown": "Exportovat jako Markdown",
"Export Markdown…": "Exportovat jako Markdown…",
"Now · {title}": "Právě teď · {title}",
+ "{title} · in {time}": "{title} · za {time}",
"Paused · {title}": "Pozastaveno · {title}",
"Recording · {title}": "Nahrává se · {title}",
"Removing this model restores the smaller one.": "Jeho odstraněním se obnoví menší model.",
@@ -710,6 +711,7 @@
"Yogurt couldn't save this folder.": "Yogurt nemohl uložit tuto složku.",
"Your edits to the summary will be replaced.": "Vaše úpravy souhrnu budou nahrazeny.",
"Show Yogurt in": "Zobrazovat Yogurt v",
+ "Show the next meeting": "Zobrazit příští schůzku",
"Menu bar and Dock": "Řádek nabídek a Dock",
"Menu bar only": "Pouze řádek nabídek",
"Dock only": "Pouze Dock",
diff --git a/app/src/shared/locales/da.json b/app/src/shared/locales/da.json
index f2bb8106..bd7702d0 100644
--- a/app/src/shared/locales/da.json
+++ b/app/src/shared/locales/da.json
@@ -668,6 +668,7 @@
"Export Markdown": "Eksportér som Markdown",
"Export Markdown…": "Eksportér som Markdown…",
"Now · {title}": "Nu · {title}",
+ "{title} · in {time}": "{title} · om {time}",
"Paused · {title}": "På pause · {title}",
"Recording · {title}": "Optager · {title}",
"Removing this model restores the smaller one.": "Hvis du fjerner den, gendannes den mindre model.",
@@ -679,6 +680,7 @@
"Yogurt couldn't save this folder.": "Yogurt kunne ikke gemme denne mappe.",
"Your edits to the summary will be replaced.": "Dine ændringer i resuméet bliver erstattet.",
"Show Yogurt in": "Vis Yogurt i",
+ "Show the next meeting": "Vis det næste møde",
"Menu bar and Dock": "Menulinje og Dock",
"Menu bar only": "Kun menulinjen",
"Dock only": "Kun Dock",
diff --git a/app/src/shared/locales/de.json b/app/src/shared/locales/de.json
index 7d235e4c..900c272d 100644
--- a/app/src/shared/locales/de.json
+++ b/app/src/shared/locales/de.json
@@ -668,6 +668,7 @@
"Export Markdown": "Als Markdown exportieren",
"Export Markdown…": "Als Markdown exportieren …",
"Now · {title}": "Jetzt · {title}",
+ "{title} · in {time}": "{title} · in {time}",
"Paused · {title}": "Pausiert · {title}",
"Recording · {title}": "Aufnahme · {title}",
"Removing this model restores the smaller one.": "Wenn du es entfernst, wird das kleinere Modell wiederhergestellt.",
@@ -679,6 +680,7 @@
"Yogurt couldn't save this folder.": "Yogurt konnte diesen Ordner nicht sichern.",
"Your edits to the summary will be replaced.": "Deine Änderungen an der Zusammenfassung werden ersetzt.",
"Show Yogurt in": "Yogurt anzeigen in",
+ "Show the next meeting": "Nächstes Meeting anzeigen",
"Menu bar and Dock": "Menüleiste und Dock",
"Menu bar only": "Nur Menüleiste",
"Dock only": "Nur Dock",
diff --git a/app/src/shared/locales/el.json b/app/src/shared/locales/el.json
index 26e6c0c7..0b9ab723 100644
--- a/app/src/shared/locales/el.json
+++ b/app/src/shared/locales/el.json
@@ -671,6 +671,7 @@
"Export Markdown": "Εξαγωγή ως Markdown",
"Export Markdown…": "Εξαγωγή ως Markdown…",
"Now · {title}": "Τώρα · {title}",
+ "{title} · in {time}": "{title} · σε {time}",
"Paused · {title}": "Σε παύση · {title}",
"Recording · {title}": "Ηχογράφηση · {title}",
"Removing this model restores the smaller one.": "Η αφαίρεσή του επαναφέρει το μικρότερο μοντέλο.",
@@ -682,6 +683,7 @@
"Yogurt couldn't save this folder.": "Το Yogurt δεν μπόρεσε να αποθηκεύσει αυτόν τον φάκελο.",
"Your edits to the summary will be replaced.": "Οι αλλαγές σας στη σύνοψη θα αντικατασταθούν.",
"Show Yogurt in": "Εμφάνιση Yogurt σε",
+ "Show the next meeting": "Εμφάνιση της επόμενης συνάντησης",
"Menu bar and Dock": "Γραμμή μενού και Dock",
"Menu bar only": "Μόνο γραμμή μενού",
"Dock only": "Μόνο Dock",
diff --git a/app/src/shared/locales/en.json b/app/src/shared/locales/en.json
index ab4e863f..14f3cd76 100644
--- a/app/src/shared/locales/en.json
+++ b/app/src/shared/locales/en.json
@@ -160,6 +160,7 @@
"Export Markdown…": "Export Markdown…",
"Export backup": "Export backup",
"Now · {title}": "Now · {title}",
+ "{title} · in {time}": "{title} · in {time}",
"Paused · {title}": "Paused · {title}",
"Recording is still paused after an interruption.": "Recording is still paused after an interruption.",
"Recording reminders": "Recording reminders",
@@ -208,6 +209,7 @@
"Your question is waiting for Yogurt's AI to download.": "Your question is waiting for Yogurt's AI to download.",
"Your summary is waiting for Yogurt's AI to download.": "Your summary is waiting for Yogurt's AI to download.",
"Show Yogurt in": "Show Yogurt in",
+ "Show the next meeting": "Show the next meeting",
"Menu bar and Dock": "Menu bar and Dock",
"Menu bar only": "Menu bar only",
"Dock only": "Dock only",
diff --git a/app/src/shared/locales/es.json b/app/src/shared/locales/es.json
index 3d1d9a93..33ae3ae9 100644
--- a/app/src/shared/locales/es.json
+++ b/app/src/shared/locales/es.json
@@ -681,6 +681,7 @@
"Export Markdown": "Exportar como Markdown",
"Export Markdown…": "Exportar como Markdown…",
"Now · {title}": "Ahora · {title}",
+ "{title} · in {time}": "{title} · en {time}",
"Paused · {title}": "En pausa · {title}",
"Recording · {title}": "Grabando · {title}",
"Removing this model restores the smaller one.": "Al eliminarlo, se restaura el modelo más pequeño.",
@@ -692,6 +693,7 @@
"Yogurt couldn't save this folder.": "Yogurt no pudo guardar esta carpeta.",
"Your edits to the summary will be replaced.": "Se reemplazarán tus cambios en el resumen.",
"Show Yogurt in": "Mostrar Yogurt en",
+ "Show the next meeting": "Mostrar la próxima reunión",
"Menu bar and Dock": "Barra de menús y Dock",
"Menu bar only": "Solo barra de menús",
"Dock only": "Solo Dock",
diff --git a/app/src/shared/locales/fi.json b/app/src/shared/locales/fi.json
index 52aa25d9..5aa483f7 100644
--- a/app/src/shared/locales/fi.json
+++ b/app/src/shared/locales/fi.json
@@ -674,6 +674,7 @@
"Export Markdown": "Vie Markdownina",
"Export Markdown…": "Vie Markdownina…",
"Now · {title}": "Nyt · {title}",
+ "{title} · in {time}": "{title} · {time} kuluttua",
"Paused · {title}": "Keskeytetty · {title}",
"Recording · {title}": "Tallennetaan · {title}",
"Removing this model restores the smaller one.": "Sen poistaminen palauttaa pienemmän mallin käyttöön.",
@@ -685,6 +686,7 @@
"Yogurt couldn't save this folder.": "Yogurt ei voinut tallentaa tätä kansiota.",
"Your edits to the summary will be replaced.": "Yhteenvetoon tekemäsi muutokset korvataan.",
"Show Yogurt in": "Yogurtin sijainti",
+ "Show the next meeting": "Näytä seuraava kokous",
"Menu bar and Dock": "Valikkorivi ja Dock",
"Menu bar only": "Vain valikkorivi",
"Dock only": "Vain Dock",
diff --git a/app/src/shared/locales/fil.json b/app/src/shared/locales/fil.json
index b23ce633..8ab61c43 100644
--- a/app/src/shared/locales/fil.json
+++ b/app/src/shared/locales/fil.json
@@ -668,6 +668,7 @@
"Export Markdown": "I-export bilang Markdown",
"Export Markdown…": "I-export bilang Markdown…",
"Now · {title}": "Ngayon · {title}",
+ "{title} · in {time}": "{title} · makalipas ang {time}",
"Paused · {title}": "Naka-pause · {title}",
"Recording · {title}": "Nagre-record · {title}",
"Removing this model restores the smaller one.": "Kapag inalis ito, ibabalik ang mas maliit na modelo.",
@@ -679,6 +680,7 @@
"Yogurt couldn't save this folder.": "Hindi ma-save ng Yogurt ang folder na ito.",
"Your edits to the summary will be replaced.": "Papalitan ang mga edit mo sa buod.",
"Show Yogurt in": "Ipakita ang Yogurt sa",
+ "Show the next meeting": "Ipakita ang susunod na pulong",
"Menu bar and Dock": "Menu bar at Dock",
"Menu bar only": "Menu bar lang",
"Dock only": "Dock lang",
diff --git a/app/src/shared/locales/fr.json b/app/src/shared/locales/fr.json
index 6938ac34..ec1efd00 100644
--- a/app/src/shared/locales/fr.json
+++ b/app/src/shared/locales/fr.json
@@ -684,6 +684,7 @@
"Export Markdown": "Exporter en Markdown",
"Export Markdown…": "Exporter en Markdown…",
"Now · {title}": "En cours · {title}",
+ "{title} · in {time}": "{title} · dans {time}",
"Paused · {title}": "En pause · {title}",
"Recording · {title}": "Enregistrement · {title}",
"Removing this model restores the smaller one.": "Le supprimer rétablit le modèle plus petit.",
@@ -695,6 +696,7 @@
"Yogurt couldn't save this folder.": "Yogurt n’a pas pu enregistrer ce dossier.",
"Your edits to the summary will be replaced.": "Vos modifications du résumé seront remplacées.",
"Show Yogurt in": "Afficher Yogurt dans",
+ "Show the next meeting": "Afficher la prochaine réunion",
"Menu bar and Dock": "Barre des menus et Dock",
"Menu bar only": "Barre des menus uniquement",
"Dock only": "Dock uniquement",
diff --git a/app/src/shared/locales/he.json b/app/src/shared/locales/he.json
index 27b201a2..3210d939 100644
--- a/app/src/shared/locales/he.json
+++ b/app/src/shared/locales/he.json
@@ -678,6 +678,7 @@
"Export Markdown": "ייצוא כ־Markdown",
"Export Markdown…": "ייצוא כ־Markdown…",
"Now · {title}": "עכשיו · {title}",
+ "{title} · in {time}": "{title} · בעוד {time}",
"Paused · {title}": "מושהה · {title}",
"Recording · {title}": "מקליט · {title}",
"Removing this model restores the smaller one.": "הסרתו מחזירה את המודל הקטן יותר.",
@@ -689,6 +690,7 @@
"Yogurt couldn't save this folder.": "Yogurt לא הצליח לשמור את התיקייה הזו.",
"Your edits to the summary will be replaced.": "העריכות שלך בסיכום יוחלפו.",
"Show Yogurt in": "הצגת Yogurt ב",
+ "Show the next meeting": "הצגת הפגישה הבאה",
"Menu bar and Dock": "שורת התפריטים ו-Dock",
"Menu bar only": "שורת התפריטים בלבד",
"Dock only": "Dock בלבד",
diff --git a/app/src/shared/locales/hi.json b/app/src/shared/locales/hi.json
index 322c0a3e..f4f0195c 100644
--- a/app/src/shared/locales/hi.json
+++ b/app/src/shared/locales/hi.json
@@ -656,6 +656,7 @@
"Export Markdown": "Markdown के रूप में एक्सपोर्ट करें",
"Export Markdown…": "Markdown के रूप में एक्सपोर्ट करें…",
"Now · {title}": "अभी · {title}",
+ "{title} · in {time}": "{title} · {time} में",
"Paused · {title}": "रुका हुआ · {title}",
"Recording · {title}": "रिकॉर्ड हो रहा है · {title}",
"Removing this model restores the smaller one.": "इसे हटाने पर छोटा मॉडल वापस आ जाता है।",
@@ -667,6 +668,7 @@
"Yogurt couldn't save this folder.": "Yogurt यह फ़ोल्डर सेव नहीं कर सका।",
"Your edits to the summary will be replaced.": "सारांश में आपके बदलाव बदल दिए जाएँगे।",
"Show Yogurt in": "Yogurt दिखाएँ",
+ "Show the next meeting": "अगली मीटिंग दिखाएँ",
"Menu bar and Dock": "मेनू बार और Dock",
"Menu bar only": "केवल मेनू बार",
"Dock only": "केवल Dock",
diff --git a/app/src/shared/locales/hu.json b/app/src/shared/locales/hu.json
index 2bc825d2..f7ad9b11 100644
--- a/app/src/shared/locales/hu.json
+++ b/app/src/shared/locales/hu.json
@@ -656,6 +656,7 @@
"Export Markdown": "Exportálás Markdownként",
"Export Markdown…": "Exportálás Markdownként…",
"Now · {title}": "Most · {title}",
+ "{title} · in {time}": "{title} · {time} múlva",
"Paused · {title}": "Szünetel · {title}",
"Recording · {title}": "Felvétel folyamatban · {title}",
"Removing this model restores the smaller one.": "Eltávolításával a kisebb modell áll vissza.",
@@ -667,6 +668,7 @@
"Yogurt couldn't save this folder.": "A Yogurt nem tudta menteni ezt a mappát.",
"Your edits to the summary will be replaced.": "Az összefoglalón végzett módosításaid lecserélődnek.",
"Show Yogurt in": "Yogurt megjelenítése",
+ "Show the next meeting": "A következő megbeszélés megjelenítése",
"Menu bar and Dock": "Menüsáv és Dock",
"Menu bar only": "Csak a menüsáv",
"Dock only": "Csak a Dock",
diff --git a/app/src/shared/locales/id.json b/app/src/shared/locales/id.json
index 655bc126..10fb5b94 100644
--- a/app/src/shared/locales/id.json
+++ b/app/src/shared/locales/id.json
@@ -626,6 +626,7 @@
"Export Markdown": "Ekspor sebagai Markdown",
"Export Markdown…": "Ekspor sebagai Markdown…",
"Now · {title}": "Sekarang · {title}",
+ "{title} · in {time}": "{title} · {time} lagi",
"Paused · {title}": "Dijeda · {title}",
"Recording · {title}": "Merekam · {title}",
"Removing this model restores the smaller one.": "Menghapusnya akan mengembalikan model yang lebih kecil.",
@@ -637,6 +638,7 @@
"Yogurt couldn't save this folder.": "Yogurt tidak bisa menyimpan folder ini.",
"Your edits to the summary will be replaced.": "Suntingan Anda pada ringkasan akan diganti.",
"Show Yogurt in": "Tampilkan Yogurt di",
+ "Show the next meeting": "Tampilkan rapat berikutnya",
"Menu bar and Dock": "Bar menu dan Dock",
"Menu bar only": "Hanya bar menu",
"Dock only": "Hanya Dock",
diff --git a/app/src/shared/locales/it.json b/app/src/shared/locales/it.json
index 783e8ed8..fc077427 100644
--- a/app/src/shared/locales/it.json
+++ b/app/src/shared/locales/it.json
@@ -687,6 +687,7 @@
"Export Markdown": "Esporta come Markdown",
"Export Markdown…": "Esporta come Markdown…",
"Now · {title}": "Ora · {title}",
+ "{title} · in {time}": "{title} · tra {time}",
"Paused · {title}": "In pausa · {title}",
"Recording · {title}": "In registrazione · {title}",
"Removing this model restores the smaller one.": "Rimuovendolo, viene ripristinato quello più piccolo.",
@@ -698,6 +699,7 @@
"Yogurt couldn't save this folder.": "Yogurt non è riuscito a salvare questa cartella.",
"Your edits to the summary will be replaced.": "Le tue modifiche al riepilogo verranno sostituite.",
"Show Yogurt in": "Mostra Yogurt in",
+ "Show the next meeting": "Mostra la prossima riunione",
"Menu bar and Dock": "Barra dei menu e Dock",
"Menu bar only": "Solo barra dei menu",
"Dock only": "Solo Dock",
diff --git a/app/src/shared/locales/ja.json b/app/src/shared/locales/ja.json
index db57c3da..35e50de1 100644
--- a/app/src/shared/locales/ja.json
+++ b/app/src/shared/locales/ja.json
@@ -626,6 +626,7 @@
"Export Markdown": "Markdownで書き出す",
"Export Markdown…": "Markdownで書き出す…",
"Now · {title}": "開催中 · {title}",
+ "{title} · in {time}": "{title} · {time}後",
"Paused · {title}": "一時停止中 · {title}",
"Recording · {title}": "録音中 · {title}",
"Removing this model restores the smaller one.": "削除すると、小さいモデルに戻ります。",
@@ -637,6 +638,7 @@
"Yogurt couldn't save this folder.": "Yogurtはこのフォルダを保存できませんでした。",
"Your edits to the summary will be replaced.": "要約に加えた編集は置き換えられます。",
"Show Yogurt in": "Yogurtの表示場所",
+ "Show the next meeting": "次の会議を表示",
"Menu bar and Dock": "メニューバーとDock",
"Menu bar only": "メニューバーのみ",
"Dock only": "Dockのみ",
diff --git a/app/src/shared/locales/ko.json b/app/src/shared/locales/ko.json
index 2c1201d3..038fd396 100644
--- a/app/src/shared/locales/ko.json
+++ b/app/src/shared/locales/ko.json
@@ -626,6 +626,7 @@
"Export Markdown": "Markdown으로 내보내기",
"Export Markdown…": "Markdown으로 내보내기…",
"Now · {title}": "진행 중 · {title}",
+ "{title} · in {time}": "{title} · {time} 후",
"Paused · {title}": "일시 정지됨 · {title}",
"Recording · {title}": "녹음 중 · {title}",
"Removing this model restores the smaller one.": "삭제하면 더 작은 모델이 복원됩니다.",
@@ -637,6 +638,7 @@
"Yogurt couldn't save this folder.": "Yogurt가 이 폴더를 저장하지 못했어요.",
"Your edits to the summary will be replaced.": "요약에서 수정한 내용은 바뀌어요.",
"Show Yogurt in": "Yogurt 표시 위치",
+ "Show the next meeting": "다음 회의 표시",
"Menu bar and Dock": "메뉴 막대 및 Dock",
"Menu bar only": "메뉴 막대만",
"Dock only": "Dock만",
diff --git a/app/src/shared/locales/ms.json b/app/src/shared/locales/ms.json
index 84fb3aef..c26a32ca 100644
--- a/app/src/shared/locales/ms.json
+++ b/app/src/shared/locales/ms.json
@@ -626,6 +626,7 @@
"Export Markdown": "Eksport sebagai Markdown",
"Export Markdown…": "Eksport sebagai Markdown…",
"Now · {title}": "Sekarang · {title}",
+ "{title} · in {time}": "{title} · dalam {time}",
"Paused · {title}": "Dijeda · {title}",
"Recording · {title}": "Merakam · {title}",
"Removing this model restores the smaller one.": "Jika model ini dibuang, model yang lebih kecil akan dipulihkan.",
@@ -637,6 +638,7 @@
"Yogurt couldn't save this folder.": "Yogurt tidak dapat menyimpan folder ini.",
"Your edits to the summary will be replaced.": "Suntingan anda pada ringkasan akan diganti.",
"Show Yogurt in": "Paparkan Yogurt di",
+ "Show the next meeting": "Tunjukkan mesyuarat seterusnya",
"Menu bar and Dock": "Bar menu dan Dock",
"Menu bar only": "Bar menu sahaja",
"Dock only": "Dock sahaja",
diff --git a/app/src/shared/locales/nb.json b/app/src/shared/locales/nb.json
index df5265e9..33fdab16 100644
--- a/app/src/shared/locales/nb.json
+++ b/app/src/shared/locales/nb.json
@@ -668,6 +668,7 @@
"Export Markdown": "Eksporter som Markdown",
"Export Markdown…": "Eksporter som Markdown…",
"Now · {title}": "Nå · {title}",
+ "{title} · in {time}": "{title} · om {time}",
"Paused · {title}": "På pause · {title}",
"Recording · {title}": "Tar opp · {title}",
"Removing this model restores the smaller one.": "Hvis du fjerner den, gjenopprettes den mindre modellen.",
@@ -679,6 +680,7 @@
"Yogurt couldn't save this folder.": "Yogurt kunne ikke lagre denne mappen.",
"Your edits to the summary will be replaced.": "Endringene dine i sammendraget blir erstattet.",
"Show Yogurt in": "Vis Yogurt i",
+ "Show the next meeting": "Vis neste møte",
"Menu bar and Dock": "Menylinje og Dock",
"Menu bar only": "Bare menylinjen",
"Dock only": "Bare Dock",
diff --git a/app/src/shared/locales/nl.json b/app/src/shared/locales/nl.json
index c9a412c9..f03bdde5 100644
--- a/app/src/shared/locales/nl.json
+++ b/app/src/shared/locales/nl.json
@@ -668,6 +668,7 @@
"Export Markdown": "Exporteren als Markdown",
"Export Markdown…": "Exporteren als Markdown…",
"Now · {title}": "Nu · {title}",
+ "{title} · in {time}": "{title} · over {time}",
"Paused · {title}": "Gepauzeerd · {title}",
"Recording · {title}": "Opname · {title}",
"Removing this model restores the smaller one.": "Als je het verwijdert, wordt het kleinere model teruggezet.",
@@ -679,6 +680,7 @@
"Yogurt couldn't save this folder.": "Yogurt kon deze map niet bewaren.",
"Your edits to the summary will be replaced.": "Je wijzigingen in de samenvatting worden vervangen.",
"Show Yogurt in": "Yogurt weergeven in",
+ "Show the next meeting": "Volgende vergadering tonen",
"Menu bar and Dock": "Menubalk en Dock",
"Menu bar only": "Alleen menubalk",
"Dock only": "Alleen Dock",
diff --git a/app/src/shared/locales/pl.json b/app/src/shared/locales/pl.json
index efeab51a..79ff01e6 100644
--- a/app/src/shared/locales/pl.json
+++ b/app/src/shared/locales/pl.json
@@ -704,6 +704,7 @@
"Export Markdown": "Eksportuj jako Markdown",
"Export Markdown…": "Eksportuj jako Markdown…",
"Now · {title}": "Teraz · {title}",
+ "{title} · in {time}": "{title} · za {time}",
"Paused · {title}": "Wstrzymano · {title}",
"Recording · {title}": "Nagrywanie · {title}",
"Removing this model restores the smaller one.": "Jego usunięcie przywróci mniejszy model.",
@@ -715,6 +716,7 @@
"Yogurt couldn't save this folder.": "Yogurt nie mógł zapisać tego folderu.",
"Your edits to the summary will be replaced.": "Twoje zmiany w podsumowaniu zostaną zastąpione.",
"Show Yogurt in": "Pokaż Yogurt w",
+ "Show the next meeting": "Pokaż następne spotkanie",
"Menu bar and Dock": "Pasek menu i Dock",
"Menu bar only": "Tylko pasek menu",
"Dock only": "Tylko Dock",
diff --git a/app/src/shared/locales/pt-BR.json b/app/src/shared/locales/pt-BR.json
index a1a4af4a..ee2f678a 100644
--- a/app/src/shared/locales/pt-BR.json
+++ b/app/src/shared/locales/pt-BR.json
@@ -684,6 +684,7 @@
"Export Markdown": "Exportar como Markdown",
"Export Markdown…": "Exportar como Markdown…",
"Now · {title}": "Agora · {title}",
+ "{title} · in {time}": "{title} · em {time}",
"Paused · {title}": "Pausado · {title}",
"Recording · {title}": "Gravando · {title}",
"Removing this model restores the smaller one.": "Removê-lo restaura o modelo menor.",
@@ -695,6 +696,7 @@
"Yogurt couldn't save this folder.": "O Yogurt não conseguiu salvar esta pasta.",
"Your edits to the summary will be replaced.": "Suas edições no resumo serão substituídas.",
"Show Yogurt in": "Mostrar Yogurt em",
+ "Show the next meeting": "Mostrar a próxima reunião",
"Menu bar and Dock": "Barra de menus e Dock",
"Menu bar only": "Apenas barra de menus",
"Dock only": "Apenas Dock",
diff --git a/app/src/shared/locales/ro.json b/app/src/shared/locales/ro.json
index 9a537ee8..a573c165 100644
--- a/app/src/shared/locales/ro.json
+++ b/app/src/shared/locales/ro.json
@@ -685,6 +685,7 @@
"Export Markdown": "Exportați ca Markdown",
"Export Markdown…": "Exportați ca Markdown…",
"Now · {title}": "Acum · {title}",
+ "{title} · in {time}": "{title} · peste {time}",
"Paused · {title}": "Pe pauză · {title}",
"Recording · {title}": "Se înregistrează · {title}",
"Removing this model restores the smaller one.": "Eliminarea lui readuce modelul mai mic.",
@@ -696,6 +697,7 @@
"Yogurt couldn't save this folder.": "Yogurt nu a putut salva acest dosar.",
"Your edits to the summary will be replaced.": "Modificările dvs. din rezumat vor fi înlocuite.",
"Show Yogurt in": "Afișează Yogurt în",
+ "Show the next meeting": "Afișează următoarea întâlnire",
"Menu bar and Dock": "Bara de meniu și Dock",
"Menu bar only": "Doar bara de meniu",
"Dock only": "Doar Dock",
diff --git a/app/src/shared/locales/ru.json b/app/src/shared/locales/ru.json
index d36c3d76..da59e291 100644
--- a/app/src/shared/locales/ru.json
+++ b/app/src/shared/locales/ru.json
@@ -696,6 +696,7 @@
"Export Markdown": "Экспорт в Markdown",
"Export Markdown…": "Экспорт в Markdown…",
"Now · {title}": "Сейчас · {title}",
+ "{title} · in {time}": "{title} · через {time}",
"Paused · {title}": "На паузе · {title}",
"Recording · {title}": "Идёт запись · {title}",
"Removing this model restores the smaller one.": "При её удалении восстанавливается меньшая модель.",
@@ -707,6 +708,7 @@
"Yogurt couldn't save this folder.": "Yogurt не смог сохранить эту папку.",
"Your edits to the summary will be replaced.": "Ваши правки в сводке будут заменены.",
"Show Yogurt in": "Показывать Yogurt в",
+ "Show the next meeting": "Показывать следующую встречу",
"Menu bar and Dock": "Строка меню и Dock",
"Menu bar only": "Только строка меню",
"Dock only": "Только Dock",
diff --git a/app/src/shared/locales/sv.json b/app/src/shared/locales/sv.json
index 438caab2..111ee3d1 100644
--- a/app/src/shared/locales/sv.json
+++ b/app/src/shared/locales/sv.json
@@ -668,6 +668,7 @@
"Export Markdown": "Exportera som Markdown",
"Export Markdown…": "Exportera som Markdown…",
"Now · {title}": "Nu · {title}",
+ "{title} · in {time}": "{title} · om {time}",
"Paused · {title}": "Pausad · {title}",
"Recording · {title}": "Spelar in · {title}",
"Removing this model restores the smaller one.": "Om du tar bort den återställs den mindre modellen.",
@@ -679,6 +680,7 @@
"Yogurt couldn't save this folder.": "Yogurt kunde inte spara mappen.",
"Your edits to the summary will be replaced.": "Dina ändringar i sammanfattningen ersätts.",
"Show Yogurt in": "Visa Yogurt i",
+ "Show the next meeting": "Visa nästa möte",
"Menu bar and Dock": "Menyrad och Dock",
"Menu bar only": "Endast menyraden",
"Dock only": "Endast Dock",
diff --git a/app/src/shared/locales/th.json b/app/src/shared/locales/th.json
index 23d31ab1..857d4a17 100644
--- a/app/src/shared/locales/th.json
+++ b/app/src/shared/locales/th.json
@@ -626,6 +626,7 @@
"Export Markdown": "ส่งออกเป็น Markdown",
"Export Markdown…": "ส่งออกเป็น Markdown…",
"Now · {title}": "ขณะนี้ · {title}",
+ "{title} · in {time}": "{title} · ในอีก {time}",
"Paused · {title}": "หยุดชั่วคราว · {title}",
"Recording · {title}": "กำลังบันทึก · {title}",
"Removing this model restores the smaller one.": "เมื่อลบโมเดลนี้ ระบบจะนำโมเดลที่เล็กกว่ากลับมาใช้",
@@ -637,6 +638,7 @@
"Yogurt couldn't save this folder.": "Yogurt บันทึกโฟลเดอร์นี้ไม่ได้",
"Your edits to the summary will be replaced.": "การแก้ไขในสรุปจะถูกแทนที่",
"Show Yogurt in": "แสดง Yogurt ใน",
+ "Show the next meeting": "แสดงการประชุมถัดไป",
"Menu bar and Dock": "แถบเมนูและ Dock",
"Menu bar only": "แถบเมนูเท่านั้น",
"Dock only": "Dock เท่านั้น",
diff --git a/app/src/shared/locales/tr.json b/app/src/shared/locales/tr.json
index 8ea5ebf9..49e94255 100644
--- a/app/src/shared/locales/tr.json
+++ b/app/src/shared/locales/tr.json
@@ -656,6 +656,7 @@
"Export Markdown": "Markdown olarak dışa aktar",
"Export Markdown…": "Markdown olarak dışa aktar…",
"Now · {title}": "Şimdi · {title}",
+ "{title} · in {time}": "{title} · {time} sonra",
"Paused · {title}": "Duraklatıldı · {title}",
"Recording · {title}": "Kayıt · {title}",
"Removing this model restores the smaller one.": "Kaldırıldığında daha küçük model geri yüklenir.",
@@ -667,6 +668,7 @@
"Yogurt couldn't save this folder.": "Yogurt bu klasörü kaydedemedi.",
"Your edits to the summary will be replaced.": "Özette yaptığınız düzenlemeler değiştirilecek.",
"Show Yogurt in": "Yogurt’u göster",
+ "Show the next meeting": "Sonraki toplantıyı göster",
"Menu bar and Dock": "Menü çubuğu ve Dock",
"Menu bar only": "Yalnızca menü çubuğu",
"Dock only": "Yalnızca Dock",
diff --git a/app/src/shared/locales/uk.json b/app/src/shared/locales/uk.json
index ad792a2c..05a2b872 100644
--- a/app/src/shared/locales/uk.json
+++ b/app/src/shared/locales/uk.json
@@ -696,6 +696,7 @@
"Export Markdown": "Експортувати як Markdown",
"Export Markdown…": "Експортувати як Markdown…",
"Now · {title}": "Зараз · {title}",
+ "{title} · in {time}": "{title} · через {time}",
"Paused · {title}": "Призупинено · {title}",
"Recording · {title}": "Запис · {title}",
"Removing this model restores the smaller one.": "Її видалення відновить меншу модель.",
@@ -707,6 +708,7 @@
"Yogurt couldn't save this folder.": "Yogurt не зміг зберегти цю папку.",
"Your edits to the summary will be replaced.": "Ваші зміни в підсумку буде замінено.",
"Show Yogurt in": "Показувати Yogurt у",
+ "Show the next meeting": "Показувати наступну зустріч",
"Menu bar and Dock": "Рядок меню та Dock",
"Menu bar only": "Лише рядок меню",
"Dock only": "Лише Dock",
diff --git a/app/src/shared/locales/vi.json b/app/src/shared/locales/vi.json
index 9b6503da..68bb4b0e 100644
--- a/app/src/shared/locales/vi.json
+++ b/app/src/shared/locales/vi.json
@@ -626,6 +626,7 @@
"Export Markdown": "Xuất dạng Markdown",
"Export Markdown…": "Xuất dạng Markdown…",
"Now · {title}": "Đang diễn ra · {title}",
+ "{title} · in {time}": "{title} · sau {time}",
"Paused · {title}": "Đã tạm dừng · {title}",
"Recording · {title}": "Đang ghi · {title}",
"Removing this model restores the smaller one.": "Xóa mô hình này sẽ khôi phục mô hình nhỏ hơn.",
@@ -637,6 +638,7 @@
"Yogurt couldn't save this folder.": "Yogurt không lưu được thư mục này.",
"Your edits to the summary will be replaced.": "Những chỉnh sửa của bạn trong tóm tắt sẽ bị thay thế.",
"Show Yogurt in": "Hiển thị Yogurt trong",
+ "Show the next meeting": "Hiện cuộc họp tiếp theo",
"Menu bar and Dock": "Thanh menu và Dock",
"Menu bar only": "Chỉ thanh menu",
"Dock only": "Chỉ Dock",
diff --git a/app/src/shared/locales/zh-CN.json b/app/src/shared/locales/zh-CN.json
index 32857de2..6efbee48 100644
--- a/app/src/shared/locales/zh-CN.json
+++ b/app/src/shared/locales/zh-CN.json
@@ -626,6 +626,7 @@
"Export Markdown": "导出为 Markdown",
"Export Markdown…": "导出为 Markdown…",
"Now · {title}": "进行中 · {title}",
+ "{title} · in {time}": "{title} · {time}后",
"Paused · {title}": "已暂停 · {title}",
"Recording · {title}": "正在录音 · {title}",
"Removing this model restores the smaller one.": "移除此模型后,将恢复使用较小的模型。",
@@ -637,6 +638,7 @@
"Yogurt couldn't save this folder.": "Yogurt 无法保存这个文件夹。",
"Your edits to the summary will be replaced.": "你对摘要的修改将被替换。",
"Show Yogurt in": "Yogurt 显示位置",
+ "Show the next meeting": "显示下一场会议",
"Menu bar and Dock": "菜单栏和 Dock",
"Menu bar only": "仅菜单栏",
"Dock only": "仅 Dock",
diff --git a/app/src/shared/locales/zh-TW.json b/app/src/shared/locales/zh-TW.json
index d3517c27..060d21fc 100644
--- a/app/src/shared/locales/zh-TW.json
+++ b/app/src/shared/locales/zh-TW.json
@@ -626,6 +626,7 @@
"Export Markdown": "匯出為 Markdown",
"Export Markdown…": "匯出為 Markdown…",
"Now · {title}": "進行中 · {title}",
+ "{title} · in {time}": "{title} · {time}後",
"Paused · {title}": "已暫停 · {title}",
"Recording · {title}": "正在錄音 · {title}",
"Removing this model restores the smaller one.": "移除此模型後,將恢復使用較小的模型。",
@@ -637,6 +638,7 @@
"Yogurt couldn't save this folder.": "Yogurt 無法儲存這個資料夾。",
"Your edits to the summary will be replaced.": "你對摘要的修改將被取代。",
"Show Yogurt in": "Yogurt 顯示位置",
+ "Show the next meeting": "顯示下一場會議",
"Menu bar and Dock": "選單列與 Dock",
"Menu bar only": "僅選單列",
"Dock only": "僅 Dock",
diff --git a/app/src/shared/types.ts b/app/src/shared/types.ts
index 6d38f1bf..369eb9c5 100644
--- a/app/src/shared/types.ts
+++ b/app/src/shared/types.ts
@@ -274,12 +274,13 @@ export type YogurtApi = {
}
settings: {
/** myName: what the person is called in meetings (their Mac's full name, macName, when they never changed it) */
- get(): Promise<{ theme: Theme; openAtLogin: boolean; showInMenuBar: boolean; appVisibility: AppVisibility; /** the language picked; '' follows the Mac */ language: string; /** the language in use */ locale: string; /** the Mac's language, among Yogurt's */ systemLocale: string; myName: string; macName: string; /** a recording stops by itself when its call ends (off: ask first) */ stopWhenCallEnds: boolean; recordingReminder: boolean; keepRecordings: boolean; /** personal jargon, spelled as typed */ jargon: string[]; /** the language people speak in meetings */ spoken: import('./spoken').Spoken; /** default summary language; '' follows the meeting */ summaryLanguage: string }>
+ get(): Promise<{ theme: Theme; openAtLogin: boolean; showInMenuBar: boolean; showNextMeeting: boolean; appVisibility: AppVisibility; /** the language picked; '' follows the Mac */ language: string; /** the language in use */ locale: string; /** the Mac's language, among Yogurt's */ systemLocale: string; myName: string; macName: string; /** a recording stops by itself when its call ends (off: ask first) */ stopWhenCallEnds: boolean; recordingReminder: boolean; keepRecordings: boolean; /** personal jargon, spelled as typed */ jargon: string[]; /** the language people speak in meetings */ spoken: import('./spoken').Spoken; /** default summary language; '' follows the meeting */ summaryLanguage: string }>
/** blank goes back to the Mac's full name */
setName(name: string): Promise<void>
setTheme(v: Theme): Promise<void>
setOpenAtLogin(on: boolean): Promise<void>
setShowInMenuBar(on: boolean): Promise<void>
+ setShowNextMeeting(on: boolean): Promise<void>
setAppVisibility(choice: AppVisibility): Promise<void>
setStopWhenCallEnds(on: boolean): Promise<void>
setRecordingReminder(on: boolean): Promise<void>
diff --git a/app/test/builderConfig.test.ts b/app/test/builderConfig.test.ts
index 127217ca..d0541c41 100644
--- a/app/test/builderConfig.test.ts
+++ b/app/test/builderConfig.test.ts
@@ -16,6 +16,17 @@ it('Windows and Linux builds have fixed file names, like the Mac one', () => {
expect(config).toContain('artifactName: Yogurt-linux-${arch}.${ext}')
})
+it('ships the compact and titled Mac tray templates at both display scales', () => {
+ for (const scale of [1, 2]) {
+ for (const [name, width] of [['tray', 22], ['tray-titled', 23]] as const) {
+ const file = name + (scale === 2 ? '@2x' : '') + '.png'
+ expect(config).toContain('"' + file + '"')
+ const png = readFileSync(join(__dirname, '../resources', file))
+ expect([png.readUInt32BE(16), png.readUInt32BE(20)]).toEqual([width * scale, 22 * scale])
+ }
+ }
+})
+
it("only Windows and Linux carry the colour tray icons (the Mac's package keeps its own files)", () => {
const block = (name: string) => config.match(new RegExp(`^${name}:\\n((?: .*\\n|\\n)*)`, 'm'))?.[1] ?? ''
for (const os of ['win', 'linux']) expect(block(os)).toContain('filter: ["tray-color*.png", "tray-recording*.png"]')
diff --git a/app/test/calendar.test.ts b/app/test/calendar.test.ts
index a7585a9f..9f4af8f1 100644
--- a/app/test/calendar.test.ts
+++ b/app/test/calendar.test.ts
@@ -152,6 +152,15 @@ describe('upcoming', () => {
expect(calls.find((c) => c[0] === 'events')).toEqual(['events', '2026-10-29T14:00:00.000Z', '2026-10-29T18:00:00.000Z'])
})
+ it('reads past 200 hidden events for the tray lookahead', async () => {
+ const call = { id: 'call', title: 'Weekly sync', url: 'https://meet.google.com/test', calendarId: 'work', start: '2026-11-26T17:00:00Z', end: '2026-11-26T18:00:00Z' }
+ const hidden = Array.from({ length: 200 }, (_, i) => ({ ...call, id: String(i), calendarId: 'hidden', start: '2026-11-20T17:00:00Z', end: '2026-11-20T18:00:00Z' }))
+ setHelper(async args => args[0] === 'calendar-status' ? { status: 'granted' } : args.includes('--full-range') ? [...hidden, call] : hidden)
+ setCalendarSelection(() => ({ hiddenCalendarIds: ['hidden'], hideEventsWithoutCallLink: true }))
+ const events = await upcoming(Date.parse('2026-11-19T20:00:00Z'), Date.parse('2026-11-27T08:00:00Z'), undefined, undefined, { fullRange: true })
+ expect(events.map(e => e.title)).toEqual(['Weekly sync'])
+ })
+
it('access denied: no events, and the status says denied', async () => {
let asked = false
setHelper(async (args) => { if (args[0] === 'events') asked = true; return { status: 'denied' } })
@@ -263,3 +272,10 @@ describe('a Mac: calendar links sit alongside the built-in calendar (Settings
expect(await refreshCalendarStatus()).toBe('denied')
})
})
+
+it('keeps a known decline from a visible duplicate when the first copy lacks an RSVP', () => {
+ const copy = { id: 'copy', externalId: 'shared', title: 'Review', start: '2026-11-18T10:00:00Z', end: '2026-11-18T11:00:00Z', calendarId: 'one' }
+ const events = [copy, { ...copy, id: 'invitation', calendarId: 'two', declined: true }]
+ expect(parseEvents(events)[0]).toMatchObject({ id: 'copy', declined: true })
+ expect(parseEvents(events, ['two'])[0].declined).toBeUndefined()
+})
diff --git a/app/test/calendarLinkIcs.test.ts b/app/test/calendarLinkIcs.test.ts
index cee81114..30759148 100644
--- a/app/test/calendarLinkIcs.test.ts
+++ b/app/test/calendarLinkIcs.test.ts
@@ -1,4 +1,5 @@
import ICAL from 'ical.js'
+import { parseEvents } from '../src/main/calendar'
import { describe, expect, it, vi } from 'vitest'
import { icsEvents, icsFeed, icsName } from '../src/main/calendarLink/ics'
@@ -147,3 +148,25 @@ END:VEVENT`
parse.mockRestore()
})
})
+
+it('marks a decline only when the feed identifies the attendee as its owner', () => {
+ const text = (owner: string, respondent: string) => `BEGIN:VCALENDAR
+VERSION:2.0
+X-WR-CALNAME:${owner}
+BEGIN:VEVENT
+UID:meeting
+DTSTART:20261118T100000Z
+DTEND:20261118T103000Z
+SUMMARY:Weekly sync
+ATTENDEE;PARTSTAT=DECLINED:mailto:${respondent}
+END:VEVENT
+END:VCALENDAR`
+ for (const [owner, attendee, declined] of [
+ ['Shared calendar', '[email protected]', false],
+ ] as const) {
+ const raw = icsEvents(text(owner, attendee), at('2026-11-18T00:00:00Z'), at('2026-11-19T00:00:00Z'), link)
+ expect(parseEvents(raw)[0].declined === true).toBe(declined)
+ }
+})
diff --git a/app/test/dockPreference.test.ts b/app/test/dockPreference.test.ts
index 82df0ec1..502e612d 100644
--- a/app/test/dockPreference.test.ts
+++ b/app/test/dockPreference.test.ts
@@ -12,7 +12,7 @@ const dirs: string[] = []
afterEach(() => { dirs.splice(0).forEach((dir) => rmSync(dir, { recursive: true, force: true })); handlers.clear(); vi.restoreAllMocks() })
const hook = (file: string, setDockVisible: (...args: any[]) => any, setTrayVisible: (...args: any[]) => any, os = 'darwin') => {
- const deps = { file, os, permissions: {} as Parameters<typeof hookPreferences>[0]['permissions'], ask: false, setLogin: vi.fn(), loginOn: () => false, macName: () => '', relaunch: () => false, setTrayVisible, setDockVisible }
+ const deps = { setShowNextMeeting: vi.fn(), file, os, permissions: {} as Parameters<typeof hookPreferences>[0]['permissions'], ask: false, setLogin: vi.fn(), loginOn: () => false, macName: () => '', relaunch: () => false, setTrayVisible, setDockVisible }
hookPreferences(deps)
return deps
}
diff --git a/app/test/menuBarPreference.test.ts b/app/test/menuBarPreference.test.ts
index 479fd162..eeff0e63 100644
--- a/app/test/menuBarPreference.test.ts
+++ b/app/test/menuBarPreference.test.ts
@@ -14,7 +14,7 @@ it.each(['win32', 'linux'])('%s tray defaults on, persists changes and rejects n
const dir = mkdtempSync(join(tmpdir(), 'yogurt-menu-pref-')); dirs.push(dir)
const file = join(dir, 'settings.json')
const setTrayVisible = vi.fn()
- const deps = { file, os, permissions: {} as Parameters<typeof hookPreferences>[0]['permissions'], ask: false, setLogin: vi.fn(), loginOn: () => false, macName: () => '', relaunch: () => false, setTrayVisible, setDockVisible: vi.fn() }
+ const deps = { setShowNextMeeting: vi.fn(), file, os, permissions: {} as Parameters<typeof hookPreferences>[0]['permissions'], ask: false, setLogin: vi.fn(), loginOn: () => false, macName: () => '', relaunch: () => false, setTrayVisible, setDockVisible: vi.fn() }
hookPreferences(deps)
const get = () => handlers.get('settings:get')!()
const set = (value: unknown) => handlers.get('settings:menu-bar')!(null, value)
@@ -39,7 +39,7 @@ it.each(['win32', 'linux'])('%s tray defaults on, persists changes and rejects n
it('keeps recordings by default and persists only a valid retention preference', () => {
const dir = mkdtempSync(join(tmpdir(), 'yogurt-audio-pref-')); dirs.push(dir)
const file = join(dir, 'settings.json')
- const deps = { file, permissions: {} as Parameters<typeof hookPreferences>[0]['permissions'], ask: false, setLogin: vi.fn(), loginOn: () => false, macName: () => 'Dana', relaunch: () => false, setTrayVisible: vi.fn(), setDockVisible: vi.fn() }
+ const deps = { setShowNextMeeting: vi.fn(), file, permissions: {} as Parameters<typeof hookPreferences>[0]['permissions'], ask: false, setLogin: vi.fn(), loginOn: () => false, macName: () => '', relaunch: () => false, setTrayVisible: vi.fn(), setDockVisible: vi.fn() }
hookPreferences(deps)
const get = () => handlers.get('settings:get')!().keepRecordings
const set = (on: unknown) => handlers.get('settings:keep-recordings')!(null, on)
@@ -59,3 +59,26 @@ it('keeps recordings by default and persists only a valid retention preference',
now.mockReturnValue(4000); set(false)
expect(loadSettings(file).recordingsOffAt).toBe(4000)
})
+
+it('shows meeting titles by default, preserves the opt-out across visibility changes and validates the switch', () => {
+ const dir = mkdtempSync(join(tmpdir(), 'menu-meeting-pref-')); dirs.push(dir)
+ const file = join(dir, 'settings.json'), changed = vi.fn()
+ const deps = { file, os: 'darwin', permissions: {} as Parameters<typeof hookPreferences>[0]['permissions'], ask: false, setLogin: vi.fn(),
+ loginOn: () => false, macName: () => '', relaunch: () => false, setTrayVisible: vi.fn(), setDockVisible: vi.fn(), setShowNextMeeting: changed }
+ hookPreferences(deps)
+ const get = () => handlers.get('settings:get')!()
+ const set = (value: unknown) => handlers.get('settings:next-meeting')!(null, value)
+ expect(get().showNextMeeting).toBe(true)
+ set(false)
+ for (const choice of ['dock', 'menu-bar', 'both']) {
+ handlers.get('settings:visibility')!(null, choice)
+ expect(get()).toMatchObject({ showNextMeeting: false, showInMenuBar: choice !== 'dock' })
+ }
+ hookPreferences(deps)
+ for (const invalid of [undefined, null, 0, 'true']) set(invalid)
+ expect(get().showNextMeeting).toBe(false)
+ expect(changed.mock.calls).toEqual([[false]])
+ set(true)
+ expect(loadSettings(file).showNextMeeting).toBeUndefined()
+ expect(changed).toHaveBeenLastCalledWith(true)
+})
diff --git a/app/test/settingsPermissions.test.ts b/app/test/settingsPermissions.test.ts
index 37dd7094..847bce4b 100644
--- a/app/test/settingsPermissions.test.ts
+++ b/app/test/settingsPermissions.test.ts
@@ -1,7 +1,7 @@
import { describe, expect, it } from 'vitest'
import { createElement } from 'react'
import { renderToStaticMarkup } from 'react-dom/server'
-import { PermissionRow } from '../src/renderer/src/screens/Settings'
+import { NextMeetingSetting, PermissionRow } from '../src/renderer/src/screens/Settings'
import type { Access, PermissionKind } from '../src/shared/types'
const row = (kind: PermissionKind, status: Access) => renderToStaticMarkup(createElement(PermissionRow, { kind, status, onAsk() {} }))
@@ -48,3 +48,15 @@ describe('permission action hierarchy', () => {
expect(action(row('mic', 'restricted'))).toBe('')
})
})
+
+it('shows the next meeting switch only when the menu bar or tray is selected', () => {
+ for (const visible of [false, true]) for (const on of [false, true]) {
+ const html = renderToStaticMarkup(createElement(NextMeetingSetting, { visible, on, onChange() {} }))
+ if (!visible) expect(html).toBe('')
+ else {
+ expect(html).toContain('for="settings-next-meeting"')
+ expect(html).toContain('Show the next meeting')
+ expect(html).toContain(`id="settings-next-meeting" role="switch" aria-checked="${on}"`)
+ }
+ }
+})
diff --git a/app/test/summaryLanguage.test.ts b/app/test/summaryLanguage.test.ts
index 7a03a89c..d920445d 100644
--- a/app/test/summaryLanguage.test.ts
+++ b/app/test/summaryLanguage.test.ts
@@ -15,7 +15,7 @@ afterEach(() => { dirs.splice(0).forEach((dir) => rmSync(dir, { recursive: true,
it('defaults to the meeting, validates IPC, persists every offered language and resets without changing other preferences', () => {
const dir = mkdtempSync(join(tmpdir(), 'yogurt-summary-language-')); dirs.push(dir)
const file = join(dir, 'settings.json')
- const deps = { file, permissions: {} as Parameters<typeof hookPreferences>[0]['permissions'], ask: false, setLogin() {}, loginOn: () => false, macName: () => '', relaunch: () => false, setTrayVisible() {}, setDockVisible() {} }
+ const deps = { setShowNextMeeting: vi.fn(), file, permissions: {} as Parameters<typeof hookPreferences>[0]['permissions'], ask: false, setLogin() {}, loginOn: () => false, macName: () => '', relaunch: () => false, setTrayVisible() {}, setDockVisible() {} }
hookPreferences(deps)
const get = () => handlers.get('settings:get')!()
const set = (value: unknown) => handlers.get('settings:summary-language')!(null, value)
diff --git a/app/test/tray.test.ts b/app/test/tray.test.ts
index ad962ff7..3f2828f9 100644
--- a/app/test/tray.test.ts
+++ b/app/test/tray.test.ts
@@ -2,7 +2,9 @@ import { afterEach, beforeEach, expect, it, vi } from 'vitest'
const state = vi.hoisted(() => ({ meeting: null as null | { id: string; title: string }, paused: false, change: () => {}, recording: (_e: { t: string }) => {}, language: () => {}, trays: [] as any[] }))
vi.mock('electron', () => ({
- app: { quit: vi.fn(), on: vi.fn() },
+ app: { quit: vi.fn(), on: vi.fn(), getSystemLocale: vi.fn(() => 'en-US') },
+ systemPreferences: { getUserDefault: vi.fn(() => false) },
+ powerMonitor: { on: vi.fn(), off: vi.fn() },
Menu: { buildFromTemplate: (items: unknown) => items },
nativeImage: { createFromPath: (path: string) => ({ path, setTemplateImage: vi.fn() }) },
Tray: class {
@@ -18,7 +20,8 @@ vi.mock('electron', () => ({
}))
vi.mock('../src/main/meeting', () => ({ activeMeeting: () => state.meeting, onMeetingChange: (fn: () => void) => { state.change = fn } }))
vi.mock('../src/main/capture', () => ({ recordingPaused: () => state.paused, onRecordingEvent: (fn: typeof state.recording) => { state.recording = fn } }))
-vi.mock('../src/shared/i18n', () => ({ language: () => 'en', t: (text: string, values?: Record<string, string>) => text.replace('{title}', values?.title ?? ''), onLanguage: (fn: () => void) => { state.language = fn } }))
+vi.mock('../src/shared/i18n', async original => ({ ...await original<typeof import('../src/shared/i18n')>(), onLanguage: (fn: () => void) => { state.language = fn } }))
+import { app, powerMonitor, systemPreferences } from 'electron'
const basename = (p: string) => p.split(/[\\/]/).at(-1)
import { createTray } from '../src/main/tray'
@@ -38,7 +41,7 @@ it('creates by default, destroys immediately, and recreates with the current rec
tray.setVisible(true)
tray.setVisible(true)
expect(state.trays).toHaveLength(2)
- expect(state.trays[1].setTitle).toHaveBeenLastCalledWith('● 12:03', { fontType: 'monospacedDigit' })
+ expect(state.trays[1].setTitle).toHaveBeenLastCalledWith('12:03', { fontType: 'monospacedDigit' })
expect(state.trays[1].setContextMenu).toHaveBeenCalled()
})
@@ -54,7 +57,7 @@ it('starts hidden and keeps menu hooks working during recording and pause', () =
state.paused = true; state.recording({ t: 'paused' })
expect(state.trays).toHaveLength(0)
tray.setVisible(true)
- expect(state.trays[0].setTitle).toHaveBeenLastCalledWith('12:03', { fontType: 'monospacedDigit' })
+ expect(state.trays[0].setTitle).toHaveBeenLastCalledWith('Paused', { fontType: 'monospacedDigit' })
expect(state.trays[0].setToolTip).toHaveBeenLastCalledWith('Recording paused')
})
@@ -68,11 +71,12 @@ it('never creates a native icon in background tests, even when toggled on', () =
})
it('updates the title each second and dispatches existing actions, including while hidden', async () => {
- const d = actions(), tray = createTray({ show: true, ...d })
+ const d = actions(), started = Date.now(), tray = createTray({ show: true, ...d, elapsed: () => Date.now() - started })
state.meeting = { id: 'm1', title: 'Standup' }; state.change()
state.trays[0].setTitle.mockClear()
vi.advanceTimersByTime(3000)
expect(state.trays[0].setTitle).toHaveBeenCalledTimes(3)
+ expect(state.trays[0].setTitle).toHaveBeenLastCalledWith('0:03', { fontType: 'monospacedDigit' })
tray.click('pause'); expect(d.pause).toHaveBeenLastCalledWith('m1', true)
state.paused = true
tray.click('pause'); expect(d.pause).toHaveBeenLastCalledWith('m1', false)
@@ -110,9 +114,9 @@ it('Windows and Linux: a colour icon that turns to the recording one, the time i
state.meeting = { id: 'm1', title: 'Standup' }; state.change()
expect(basename(icon.setImage.mock.lastCall[0].path)).toBe('tray-recording.png')
expect(icon.setTitle).not.toHaveBeenCalled()
- expect(icon.setToolTip).toHaveBeenLastCalledWith('Yogurt is recording · 12:03')
+ expect(icon.setToolTip).toHaveBeenLastCalledWith('● 12:03')
vi.advanceTimersByTime(1000)
- expect(icon.setToolTip).toHaveBeenLastCalledWith('Yogurt is recording · 12:03')
+ expect(icon.setToolTip).toHaveBeenLastCalledWith('● 12:03')
state.paused = true; state.recording({ t: 'paused' })
expect(basename(icon.setImage.mock.lastCall[0].path)).toBe('tray-color.png')
expect(tray.accelerators()).toEqual({ 'Settings…': 'Ctrl+,' })
@@ -128,3 +132,132 @@ it('Linux without a tray host (GNOME without its extension) says no icon is show
mac.setVisible(false)
expect(mac.shown()).toBe(false)
})
+
+it('ticks on the wall minute, keeps the same native title between changes, and catches up on wake', async () => {
+ const midnight = new Date(2026, 10, 10).getTime()
+ vi.setSystemTime(midnight - 30_000)
+ const d = actions()
+ const event = { id: 'review', title: 'Weekly sync', start: midnight + 60_000, end: midnight + 120_000, attendees: [], url: 'https://example.com' }
+ d.events.mockResolvedValue([event])
+ const tray = createTray({ show: true, ...d })
+ await tray.refreshCalendar()
+ const writes = state.trays[0].setTitle
+ const title = () => writes.mock.lastCall[0]
+ expect(title()).toBe('Weekly sync · Nov 10 12:01 AM')
+ tray.click('next'); tray.click('join')
+ expect(d.event).not.toHaveBeenCalled()
+ writes.mockClear()
+ await vi.advanceTimersByTimeAsync(29_999)
+ expect(writes).not.toHaveBeenCalled()
+ await vi.advanceTimersByTimeAsync(1)
+ expect(title()).toBe('Weekly sync · in 1m')
+ await tray.refreshCalendar()
+ expect(writes).toHaveBeenCalledTimes(1)
+ await vi.advanceTimersByTimeAsync(60_000)
+ expect(title()).toBe('Now · Weekly sync')
+ vi.setSystemTime(midnight + 3_600_000)
+ const [name, resume] = vi.mocked(powerMonitor.on).mock.lastCall!
+ expect(name).toBe('resume')
+ resume()
+ expect(title()).toBe('')
+})
+
+it.each(['darwin', 'linux', 'win32'])('%s applies the switch immediately and retains it across hiding or recreating the tray', async os => {
+ const at = new Date(2026, 10, 9, 10).getTime()
+ vi.setSystemTime(at)
+ const d = actions()
+ d.events.mockResolvedValue([{ id: 'sync', title: 'Weekly sync', start: at + 1_800_000, end: at + 3_600_000, attendees: [], url: 'https://example.com' }])
+ const tray = createTray({ show: true, visible: false, showNextMeeting: false, os, ...d })
+ await tray.refreshCalendar()
+ expect(state.trays).toHaveLength(0)
+ const text = () => state.trays.at(-1)[os === 'darwin' ? 'setTitle' : 'setToolTip'].mock.lastCall[0]
+ tray.setVisible(true)
+ const idle = text()
+ expect(idle).not.toContain('Weekly sync')
+ tray.setShowNextMeeting(true)
+ expect(text()).toBe('Weekly sync · in 30m')
+ tray.setShowNextMeeting(false)
+ expect(text()).toBe(idle)
+ expect(tray.items().join(' ')).not.toContain('Weekly sync')
+ tray.click('next'); tray.click('join')
+ expect(d.event).not.toHaveBeenCalled()
+ tray.setVisible(false)
+ tray.setVisible(true)
+ expect(text()).toBe(idle)
+ tray.setShowNextMeeting(true)
+ state.meeting = { id: 'recording', title: 'Notes' }; state.change()
+ expect(text()).toBe(os === 'darwin' ? '12:03' : '● 12:03')
+ tray.setShowNextMeeting(false)
+ state.paused = true; state.recording({ t: 'paused' })
+ const writes = state.trays.at(-1)[os === 'darwin' ? 'setTitle' : 'setToolTip']
+ expect(text()).toBe('Paused')
+ writes.mockClear()
+ await vi.advanceTimersByTimeAsync(3000)
+ expect(writes).not.toHaveBeenCalled()
+ state.paused = false; state.recording({ t: 'paused' })
+ expect(text()).toBe(os === 'darwin' ? '12:03' : '● 12:03')
+ state.meeting = null; state.change()
+ expect(text()).toBe(idle)
+ tray.setShowNextMeeting(true)
+ expect(text()).toBe('Weekly sync · in 30m')
+ d.events.mockResolvedValue([]); await tray.refreshCalendar()
+ expect(text()).toBe(idle)
+})
+
+it('switches at an off-minute start and goes straight to the next dated meeting at the end', async () => {
+ const at = new Date(2026, 10, 9, 9).getTime()
+ vi.setSystemTime(at)
+ const d = actions()
+ const review = { id: 'event', title: 'Review', start: at + 20_000, end: at + 50_000, attendees: [], url: 'https://example.com' }
+ const tomorrow = new Date(2026, 10, 10, 11).getTime()
+ d.events.mockResolvedValue([review, { ...review, id: 'event2', title: 'Sync', start: tomorrow, end: tomorrow + 60_000 }])
+ const tray = createTray({ show: true, ...d })
+ await tray.refreshCalendar()
+ const text = () => state.trays[0].setTitle.mock.lastCall[0]
+ expect(text()).toBe('Review · in 1m')
+ d.events.mockClear()
+ await vi.advanceTimersByTimeAsync(20_000)
+ expect(text()).toBe('Now · Review')
+ await vi.advanceTimersByTimeAsync(30_000)
+ expect(text()).toBe('Sync · Nov 10 11:00 AM')
+ expect(d.events).not.toHaveBeenCalled()
+})
+
+it('uses the clock until precisely one hour before an off-minute start', async () => {
+ const at = new Date(2026, 10, 9, 9).getTime(), start = at + 3_615_000
+ vi.setSystemTime(at)
+ const d = actions()
+ d.events.mockResolvedValue([{ id: 'review', title: 'Review', start, end: start + 60_000, attendees: [], url: 'https://example.com' }])
+ const tray = createTray({ show: true, ...d })
+ await tray.refreshCalendar()
+ const text = () => state.trays[0].setTitle.mock.lastCall[0]
+ expect(text()).toBe('Review · 10:00 AM')
+ await vi.advanceTimersByTimeAsync(15_000)
+ expect(text()).toBe('Review · in 1h')
+ await vi.advanceTimersByTimeAsync(60_000)
+ expect(text()).toBe('Review · in 59m')
+})
+
+it('uses the system region for a dated event and honors the Mac clock override', async () => {
+ const at = new Date(2026, 10, 19, 17).getTime(), start = new Date(2026, 10, 20, 14, 30).getTime()
+ vi.setSystemTime(at)
+ const d = actions()
+ d.events.mockResolvedValue([{ id: 'call', title: 'Sync', start, end: start + 60_000, attendees: [], url: 'https://example.com' }])
+ const region = vi.mocked(app.getSystemLocale)
+ region.mockReturnValue('en-GB')
+ try {
+ const tray = createTray({ show: true, ...d })
+ await tray.refreshCalendar()
+ const text = () => state.trays[0].setTitle.mock.lastCall[0]
+ expect(text()).toBe('Sync · 20 Nov 14:30')
+ if (process.platform === 'darwin') {
+ vi.mocked(systemPreferences.getUserDefault).mockImplementation(key => key === 'AppleICUForce24HourTime')
+ region.mockReturnValue('en-US')
+ await tray.refreshCalendar()
+ expect(text()).toBe('Sync · Nov 20 14:30')
+ }
+ } finally {
+ region.mockReturnValue('en-US')
+ vi.mocked(systemPreferences.getUserDefault).mockReset()
+ }
+})
diff --git a/app/test/trayMenu.test.ts b/app/test/trayMenu.test.ts
index b36fbd7c..fa680c25 100644
--- a/app/test/trayMenu.test.ts
+++ b/app/test/trayMenu.test.ts
@@ -1,5 +1,5 @@
import { beforeEach, afterEach, describe, expect, it, vi } from 'vitest'
-import { hasTrayHost, nextTrayEvent, trayItems, trayLook, trayTitle } from '../src/main/trayMenu'
+import { formatTrayTime, hasTrayHost, nextTrayEvent, trayItems, trayLook, trayTitle } from '../src/main/trayMenu'
import { setLanguage } from '../src/shared/i18n'
const now = new Date(2026, 10, 9, 13).getTime()
const event = { id: 'event', title: 'Launch planning', start: now + 3600000, end: now + 7200000, attendees: [], url: 'https://example.com/call' }
@@ -11,10 +11,9 @@ it('idle has recording, Ask, disabled empty Recent and navigation in the approve
expect(items.find(i => i.id === 'recent')).toMatchObject({ enabled: false, submenu: [] })
expect(items.find(i => i.id === 'settings')?.accelerator).toBe('Command+,')
})
-it('shows only a current or later-today meeting-shaped event, with optional Join', () => {
+it('picks an ongoing meeting first and offers Join for a same-day call', () => {
const personal = { ...event, attendees: [], url: null }
expect(nextTrayEvent([personal], now)).toBeUndefined()
- expect(nextTrayEvent([{ ...event, start: now + 86400000 }], now)).toBeUndefined()
expect(nextTrayEvent([{ ...event, end: now }], now)).toBeUndefined()
expect(nextTrayEvent([event, { ...event, id: 'live', start: now - 1000 }], now)?.id).toBe('live')
expect(trayItems(null, event).slice(0, 2).map(i => i.id)).toEqual(['next', 'join'])
@@ -40,11 +39,11 @@ it('Recent keeps the last five by start, with reusable dates and note targets',
expect(submenu[1].label).toBe('Note 1 · Yesterday')
expect(submenu[4].label).toBe('Note 4 · Nov 5')
})
-it('formats recording time, paused time, long recordings and idle', () => {
+it('formats the running timer and names the paused state', () => {
expect(trayTitle(null)).toBe('')
- expect(trayTitle({ elapsedMs: 723999, paused: false })).toBe('● 12:03')
- expect(trayTitle({ elapsedMs: 723999, paused: true })).toBe('12:03')
- expect(trayTitle({ elapsedMs: 3661000, paused: false })).toBe('● 1:01:01')
+ expect(trayTitle({ elapsedMs: 723999, paused: false })).toBe('12:03')
+ expect(trayTitle({ elapsedMs: 723999, paused: true })).toBe('Paused')
+ expect(trayTitle({ elapsedMs: 3661000, paused: false })).toBe('1:01:01')
})
describe('Windows and Linux tray', () => {
@@ -54,14 +53,14 @@ describe('Windows and Linux tray', () => {
})
it('a Mac keeps its template icon and timer title', () => {
expect(trayLook('darwin', null, 0)).toEqual({ icon: 'tray', template: true, title: '', tooltip: 'Yogurt' })
- expect(trayLook('darwin', { paused: false }, 723000)).toEqual({ icon: 'tray', template: true, title: '● 12:03', tooltip: 'Yogurt is recording' })
- expect(trayLook('darwin', { paused: true }, 723000)).toEqual({ icon: 'tray', template: true, title: '12:03', tooltip: 'Recording paused' })
+ expect(trayLook('darwin', { paused: false }, 723000)).toEqual({ icon: 'tray-titled', template: true, title: '12:03', tooltip: 'Yogurt is recording' })
+ expect(trayLook('darwin', { paused: true }, 723000)).toEqual({ icon: 'tray-titled', template: true, title: 'Paused', tooltip: 'Recording paused' })
})
it('elsewhere a colour icon, a recording one while it records, and the time in the tooltip (no title there)', () => {
for (const os of ['win32', 'linux']) {
expect(trayLook(os, null, 0)).toEqual({ icon: 'tray-color', template: false, title: null, tooltip: 'Yogurt' })
- expect(trayLook(os, { paused: false }, 723000)).toEqual({ icon: 'tray-recording', template: false, title: null, tooltip: 'Yogurt is recording · 12:03' })
- expect(trayLook(os, { paused: true }, 723000)).toEqual({ icon: 'tray-color', template: false, title: null, tooltip: 'Recording paused · 12:03' })
+ expect(trayLook(os, { paused: false }, 723000)).toEqual({ icon: 'tray-recording', template: false, title: null, tooltip: '● 12:03' })
+ expect(trayLook(os, { paused: true }, 723000)).toEqual({ icon: 'tray-color', template: false, title: null, tooltip: 'Paused' })
}
})
it('Linux has a tray only when a StatusNotifier host answers (GNOME needs its AppIndicator extension)', () => {
@@ -70,3 +69,88 @@ describe('Windows and Linux tray', () => {
expect(hasTrayHost('')).toBe(false)
})
})
+
+describe('idle meeting title', () => {
+ const min = 60_000
+ it.each([
+ [360, '7:00 PM'], [121, '3:01 PM'], [83, '2:23 PM'], [60 + 1 / 60, '2:00 PM'], [60, 'in 1h'], [30, 'in 30m'],
+ [5, 'in 5m'], [1, 'in 1m'], [1 / 60, 'in 1m'], [0, 'Now'], [-29, 'Now'], [-30, ''],
+ ] as const)('%s minutes until the meeting', (offset, when) => {
+ const start = now + offset * min
+ const next = nextTrayEvent([{ ...event, start, end: start + 30 * min }], now)
+ const line = when === 'Now' ? 'Now · Launch planning' : when ? `Launch planning · ${when}` : ''
+ expect(trayLook('darwin', null, 0, next, now)).toMatchObject({ title: line, icon: line ? 'tray-titled' : 'tray' })
+ for (const os of ['linux', 'win32']) {
+ const look = trayLook(os, null, 0, next, now)
+ expect(look.title).toBeNull()
+ expect(look.tooltip).toBe(line || trayLook(os, null, 0).tooltip)
+ }
+ })
+
+ it('shows the next date after the last meeting ends, through the seventh local date', () => {
+ const at = new Date(2026, 10, 19, 17, 15).getTime()
+ const meeting = (day: number, hour: number) => {
+ const start = new Date(2026, 10, day, hour).getTime()
+ return { ...event, title: 'Quarterly review', start, end: start + 30 * min }
+ }
+ const ended = meeting(19, 16), tomorrow = meeting(20, 9), monday = meeting(23, 14)
+ const last = meeting(26, 23), outside = meeting(27, 0)
+ expect(nextTrayEvent([ended, outside], at)).toBeUndefined()
+ expect(nextTrayEvent([outside, last], at)).toBe(last)
+ expect(nextTrayEvent([last, monday], at)).toBe(monday)
+ const next = nextTrayEvent([monday, ended, tomorrow], at)
+ for (const os of ['darwin', 'linux', 'win32']) {
+ const look = trayLook(os, null, 0, next, at)
+ expect(look.title ?? look.tooltip).toBe('Quarterly review · Nov 20 9:00 AM')
+ }
+ const menu = trayItems(null, next, [], at)
+ expect(menu[0]).toMatchObject({ id: 'next', label: 'Quarterly review · Nov 20 9:00 AM', enabled: false })
+ expect(menu.some(item => item.id === 'join')).toBe(false)
+ expect(trayTitle(null, { ...monday, title: 'W'.repeat(40) }, at)).toBe('W'.repeat(21) + '… · Nov 23 2:00 PM')
+ })
+
+ it('keeps a meeting that started yesterday until its actual end', () => {
+ const at = new Date(2026, 10, 20, 0, 5).getTime()
+ const overnight = { ...event, start: at - 15 * min, end: at + 5 * min }
+ expect(trayTitle(null, nextTrayEvent([overnight], at), at)).toBe('Now · Launch planning')
+ expect(trayItems(null, overnight, [], at)[0].enabled).toBe(true)
+ })
+
+ it('uses regional date order and a 24-hour clock', () => {
+ const at = new Date(2026, 10, 19, 17).getTime(), start = new Date(2026, 10, 20, 14, 30).getTime()
+ const next = { ...event, start, end: start + 30 * min }
+ expect(trayTitle(null, next, at, (ms, dated) => formatTrayTime(ms, dated, 'en-GB'))).toBe('Launch planning · 20 Nov 14:30')
+ expect(formatTrayTime(start, false, 'en-US', false)).toBe('14:30')
+ expect(formatTrayTime(start, false, 'en-GB', true)).toMatch(/2:30\s*pm/i)
+ })
+
+ it('keeps the countdown and whole characters when shortening a single-line title', () => {
+ const cluster = '👩🏽‍💻'
+ const title = (name: string) => trayTitle(null, { ...event, title: name }, now)
+ expect(title(cluster.repeat(22))).toBe(cluster.repeat(22) + ' · in 1h')
+ expect(title(cluster.repeat(23))).toBe(cluster.repeat(21) + '… · in 1h')
+ expect(title(' ')).toBe('Meeting · in 1h')
+ expect(title('Weekly\n sync')).toBe('Weekly sync · in 1h')
+ })
+
+ it('uses the interface language for the sentence and compact time units', () => {
+ setLanguage('zh-TW')
+ expect(trayTitle(null, { ...event, start: now + 45 * min }, now).replace(/\s/g, '')).toBe('Launchplanning·45分鐘後')
+ })
+
+ it('keeps the recording timer and localized pause label ahead of a live meeting on every platform', () => {
+ setLanguage('fr')
+ const live = { ...event, start: now }
+ for (const paused of [false, true]) {
+ expect(trayLook('darwin', { paused }, 754000, live, now).title).toBe(paused ? 'En pause' : '12:34')
+ for (const os of ['win32', 'linux']) expect(trayLook(os, { paused }, 754000, live, now).tooltip).toBe(paused ? 'En pause' : '● 12:34')
+ }
+ })
+
+ it('omits a declined invitation and stays empty without an eligible event', () => {
+ const declined = { ...event, start: now, declined: true }
+ expect(nextTrayEvent([declined, event], now)).toBe(event)
+ expect(trayTitle(null, nextTrayEvent([declined], now), now)).toBe('')
+ expect(trayTitle(null, nextTrayEvent([], now), now)).toBe('')
+ })
+})