Private AI meeting notes that stay on your computer. No meeting bot. Free and open source for Mac, Windows and Linux. An alternative to Granola, Otter and Fireflies.
TypeScript ai-meeting-assistantai-notetakerelectrongranola-alternativelinuxllama-cpplocal-ailocal-firstmacosmcpmeeting-minutesmeeting-notesoffline-firstopen-sourceprivacyspeech-to-texttranscriptionwhisperwhisper-cppwindows
Settings: Yogurt can run from the menu bar alone, without a Dock icon (#28)
Aditya Chandrajit Deore61354b367cf3
diff --git a/app/e2e/osWords.spec.ts b/app/e2e/osWords.spec.tsindex 02272185..e77abe46 100644--- a/app/e2e/osWords.spec.ts+++ b/app/e2e/osWords.spec.ts@@ -11,7 +11,7 @@ const launch = (env: Record<string, string> = {}) =>const WORDS = {win32: { theme: 'Match Windows', login: 'Open Yogurt when Windows starts', tray: 'Show Yogurt in the notification area' },linux: { theme: 'Match my system', login: 'Open Yogurt when you log in', tray: 'Show Yogurt in the tray' },- darwin: { theme: 'Match my Mac', login: 'Open Yogurt when your Mac starts', tray: 'Show Yogurt in the menu bar' },+ darwin: { theme: 'Match my Mac', login: 'Open Yogurt when your Mac starts', tray: 'Show Yogurt in' },}for (const platform of ['win32', 'linux', 'darwin'] as const) {@@ -28,7 +28,8 @@ for (const platform of ['win32', 'linux', 'darwin'] as const) {const w = WORDS[platform]await expect(page.getByTestId('settings-theme').locator('option[value="system"]')).toHaveText(w.theme)await expect(page.getByTestId('login-toggle')).toHaveAccessibleName(w.login)- await expect(page.getByTestId('menu-bar-toggle')).toHaveAccessibleName(w.tray)+ await expect(page.getByTestId(mac ? 'settings-visibility' : 'menu-bar-toggle')).toHaveAccessibleName(w.tray)+ await expect(page.getByTestId(mac ? 'menu-bar-toggle' : 'settings-visibility')).toHaveCount(0)await expect(settings.getByText('Yogurt stores your meetings, notes and audio on this computer.')).toBeVisible()if (!mac) expect(await settings.innerText()).not.toMatch(/\bMac\b|menu bar|Finder|System Settings/)} finally { await app.close() }diff --git a/app/e2e/permissions.spec.ts b/app/e2e/permissions.spec.tsindex 4b9a55a0..56648490 100644--- a/app/e2e/permissions.spec.ts+++ b/app/e2e/permissions.spec.ts@@ -104,15 +104,20 @@ test('settings: granted permissions offer Manage, with open at login and theme cawait page.getByTestId('login-toggle').click()await expect(page.getByTestId('login-toggle')).toHaveAttribute('aria-checked', 'true')await expect.poll(() => settingsOf(dir).openAtLogin).toBe(true)- const menuBar = page.getByRole('switch', { name: 'Show Yogurt in the menu bar' })- await expect(menuBar).toHaveAttribute('aria-checked', 'true')- await menuBar.click()- await expect(menuBar).toHaveAttribute('aria-checked', 'false')+ const visibility = page.getByRole('combobox', { name: 'Show Yogurt in', exact: true })+ await expect(visibility).toHaveValue('both')+ await expect(visibility.locator('option')).toHaveText(['Menu bar and Dock', 'Menu bar only', 'Dock only'])+ await visibility.selectOption('dock')+ await expect(visibility).toHaveValue('dock')await expect.poll(() => settingsOf(dir).showInMenuBar).toBe(false)expect(await fake(app, 'tray')).toContain('Open Yogurt')- await menuBar.click()- await expect(menuBar).toHaveAttribute('aria-checked', 'true')+ await visibility.selectOption('menu-bar')+ await expect(visibility).toHaveValue('menu-bar')+ await expect.poll(() => settingsOf(dir).showInDock).toBe(false)await expect.poll(() => settingsOf(dir).showInMenuBar).toBeUndefined()+ await visibility.selectOption('both')+ await expect(visibility).toHaveValue('both')+ await expect.poll(() => settingsOf(dir).showInDock).toBeUndefined()await page.getByTestId('settings-theme').selectOption('dark')await expect.poll(() => app.evaluate(({ nativeTheme }) => nativeTheme.themeSource)).toBe('dark')await expect.poll(() => settingsOf(dir).theme).toBe('dark')@@ -190,7 +195,7 @@ test('the dock icon and a second launch bring back a closed main window with thetry {const page = await app.firstWindow()await expect(page.getByTestId('home')).toBeVisible()- await page.evaluate(() => window.yogurt.settings.setShowInMenuBar(false))+ await page.evaluate(() => window.yogurt.settings.setAppVisibility('dock'))expect(settingsOf(dir).showInMenuBar).toBe(false)await fake(app, 'trayClick', 'new')await expect(page.getByTestId('note')).toBeVisible({ timeout: 15_000 })diff --git a/app/src/main/dock.ts b/app/src/main/dock.tsnew file mode 100644index 00000000..e45a3005--- /dev/null+++ b/app/src/main/dock.ts@@ -0,0 +1,10 @@+import { app, type BrowserWindow } from 'electron'++/** Keep the saved Dock choice even while a window is open. */+export function setDockVisible(on: boolean, window?: BrowserWindow, os = process.platform) {+ if (os !== 'darwin' || !app.dock || app.dock.isVisible() === on) return+ const focused = window && !window.isDestroyed() && window.isFocused()+ // dock.hide() ignores rapid changes after dock.show(); policy changes have no such timer.+ app.setActivationPolicy(on ? 'regular' : 'accessory')+ if (focused) { window.show(); app.focus({ steal: true }); window.focus() }+}diff --git a/app/src/main/index.ts b/app/src/main/index.tsindex 66bca95f..a40fd2b4 100644--- a/app/src/main/index.ts+++ b/app/src/main/index.ts@@ -5,6 +5,7 @@ import { speakerColor } from '../shared/speakerColors'import { createNotificationPermission } from './notificationPermission'import { createRecordingReminder } from './recordingReminder'import { closeAction, keepMainWindow } from './mainWindow'+import { setDockVisible } from './dock'import { titleBarOverlay, windowChrome } from './windowChrome'import { x11Relaunch } from './display'import { isAppRoute } from '../shared/routes'@@ -18,7 +19,7 @@ import { basename, join } from 'node:path'import { pathToFileURL } from 'node:url'import { isFake, userDataDir } from './paths'import { logToFile } from './log'-import { loadSettings, localeOf, keepsRecording, recordingReminderOn, spokenSetting, stopsWhenCallEnds, updateSettings } from './settings'+import { loadSettings, localeOf, keepsRecording, recordingReminderOn, spokenSetting, stopsWhenCallEnds, updateSettings, visibilityOf } from './settings'import { CALL_GONE_MS, useCallApps } from './detect'import { systemLocale } from './locale'import { language as uiLanguage, onLanguage, setLanguage, t } from '../shared/i18n'@@ -456,6 +457,10 @@ app.whenReady().then(() => {// Local Electron launches need the same Dock icon as the packaged application.if (!app.isPackaged && process.platform === 'darwin') app.dock?.setIcon(join(__dirname, '../../build/icon.png'))const settings = loadSettings(join(userDataDir(), 'settings.json'))+ // a settings file edited by hand can leave no visible entry point: heal it before the window shows+ const visible = visibilityOf(settings)+ if (visible.showInDock && settings.showInDock === false) updateSettings(join(userDataDir(), 'settings.json'), { showInDock: undefined })+ setDockVisible(visible.showInDock)// the theme picked in Settings; the system's when nonenativeTheme.themeSource = settings.theme ?? 'system'setLanguage(localeOf(settings, systemLocale()))@@ -468,11 +473,12 @@ app.whenReady().then(() => {// a moved or reinstalled Yogurt loses its login item: put it back if the person wanted itif (!isFake()) syncLoginItem(settings.openAtLogin)hookPreferences({- file: join(userDataDir(), 'settings.json'), permissions, kinds: supportedKinds(caps),+ file: join(userDataDir(), 'settings.json'), permissions, kinds: supportedKinds(caps), os: platform,// fake mode asks the first-run questions only when a test sets the permissionsask: !isFake() || !!process.env.YOGURT_FAKE_PERMISSIONS,setLogin: (on) => { if (!isFake()) setLoginItem(on) },setTrayVisible: (on) => setTrayVisible(on),+ setDockVisible: (on) => setDockVisible(on, win),loginOn: (saved) => (isFake() ? !!saved : loginItemOn(saved)),macName,// never mid-meeting: quitting would end the recordingdiff --git a/app/src/main/preferences.ts b/app/src/main/preferences.tsindex 9ed6b37c..1bbe7a04 100644--- a/app/src/main/preferences.ts+++ b/app/src/main/preferences.ts@@ -1,5 +1,5 @@import { BrowserWindow, ipcMain, nativeTheme } from 'electron'-import { loadSettings, localeOf, recordingReminderOn, spokenSetting, stopsWhenCallEnds, updateSettings } from './settings'+import { loadSettings, localeOf, recordingReminderOn, spokenSetting, stopsWhenCallEnds, updateSettings, visibilityOf } from './settings'import { systemLocale } from './locale'import { PERMISSION_KINDS, type PermissionKind, type Permissions } from './permissions'import { firstRunPlan, missing, nudge } from '../shared/onboarding'@@ -14,7 +14,7 @@ const isKind = (k: unknown): k is PermissionKind => PERMISSION_KINDS.includes(k* Settings, the first run (intro and permissions) and home's Finish setup: permissions (read, asked, or their System Settings pane), open at login, theme.* ask: whether this run may show the first run at all (fake mode only when a test sets the permissions).*/-export function hookPreferences(d: { file: string; permissions: Permissions; ask: boolean; setLogin(on: boolean): void; setTrayVisible(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; 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 */@@ -22,8 +22,9 @@ export function hookPreferences(d: { file: string; permissions: Permissions; ask/** the spoken language changed: the meeting being recorded follows it where it can */onSpoken?: (v: Spoken) => void/** the permissions this computer has (supportedKinds in platform.ts); a Mac has them all */- kinds?: readonly PermissionKind[] }) {+ kinds?: readonly PermissionKind[]; os?: string }) {const kinds = d.kinds ?? PERMISSION_KINDS+ const os = d.os ?? process.platformlet plan: Promise<OnboardingPlan> | undefined// asked once per launch, so the list doesn't shrink under the person as they answeripcMain.handle('onboarding:plan', () => (plan ??= (async () => {@@ -46,10 +47,11 @@ export function hookPreferences(d: { file: string; permissions: Permissions; askipcMain.handle('permissions:open', (_e, k: unknown) => { if (isKind(k)) return d.permissions.openSettings(k) })ipcMain.handle('settings:get', () => {const s = loadSettings(d.file)+ const visible = visibilityOf(s)// 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, 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) }+ 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) }})// what the person is called in meetings (who "You" is when naming voices); blank: the Mac's full name againipcMain.handle('settings:name', (_e, v: unknown) => {@@ -98,10 +100,20 @@ export function hookPreferences(d: { file: string; permissions: Permissions; askd.onSpoken?.(v as Spoken)})ipcMain.handle('settings:menu-bar', (_e, on: unknown) => {- if (typeof on !== 'boolean') return+ if (os === 'darwin' || typeof on !== 'boolean') returnupdateSettings(d.file, { showInMenuBar: on ? undefined : false })d.setTrayVisible(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'+ // Show the kept entry points before saving or hiding either one.+ if (menuBar) d.setTrayVisible(true)+ if (dock) d.setDockVisible(true)+ updateSettings(d.file, { showInMenuBar: menuBar ? undefined : false, showInDock: dock ? undefined : false })+ if (!menuBar) d.setTrayVisible(false)+ if (!dock) d.setDockVisible(false)+ })ipcMain.handle('settings:login', (_e, on: unknown) => {const yes = on === trueupdateSettings(d.file, { openAtLogin: yes })diff --git a/app/src/main/settings.ts b/app/src/main/settings.tsindex 22405b1d..f0a96bf6 100644--- a/app/src/main/settings.ts+++ b/app/src/main/settings.ts@@ -16,6 +16,8 @@ export type Settings = { theme?: 'light' | 'dark'; language?: string; /** what topenAtLogin?: boolean/** the native menu bar icon; on unless turned off */showInMenuBar?: 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. */notificationsAsked?: boolean/** Designated requirements of app identities that successfully posted the registering notification. Not authorization. */@@ -57,6 +59,14 @@ export const keepsRecording = (s: Settings, endedAt: number | null): boolean =>export const autoUpdateOn = (s: Settings): boolean => s.autoUpdate !== false+/** The Dock icon and the menu bar icon, as the person sees them: at least one stays visible, so the app always has an entry point. */+export type Visibility = { showInMenuBar: boolean; showInDock: boolean }+/** A hand-edited file with both icons off restores the Dock. */+export function visibilityOf(s: Settings): Visibility {+ const showInMenuBar = s.showInMenuBar !== false+ return { showInMenuBar, showInDock: !showInMenuBar || s.showInDock !== false }+}+export function loadSettings(path: string): Settings {try { return existsSync(path) ? JSON.parse(readFileSync(path, 'utf8')) : {} } catch { return {} }}diff --git a/app/src/preload/index.ts b/app/src/preload/index.tsindex 390001eb..b82499a5 100644--- a/app/src/preload/index.ts+++ b/app/src/preload/index.ts@@ -226,6 +226,7 @@ const api: YogurtApi = {get: () => ipcRenderer.invoke('settings:get'),setTheme: (v) => ipcRenderer.invoke('settings:theme', v),setShowInMenuBar: (on) => ipcRenderer.invoke('settings:menu-bar', on),+ setAppVisibility: (choice) => ipcRenderer.invoke('settings:visibility', choice),setOpenAtLogin: (on) => ipcRenderer.invoke('settings:login', on),setName: (name) => ipcRenderer.invoke('settings:name', name),setStopWhenCallEnds: (on) => ipcRenderer.invoke('settings:auto-stop', on),diff --git a/app/src/renderer/src/screens/Settings.tsx b/app/src/renderer/src/screens/Settings.tsxindex e513e839..ae77f155 100644--- a/app/src/renderer/src/screens/Settings.tsx+++ b/app/src/renderer/src/screens/Settings.tsx@@ -1,11 +1,11 @@import { LoadingContent } from '../components/LoadingContent'import { useCallback, useEffect, useRef, useState } from 'react'import { Check, ChevronDown, Copy, Download, ExternalLink, Globe, Lock, Upload } from 'lucide-react'-import type { Access, McpStatus, PermissionKind, PermissionStatus, SetupState, Theme, UpdateStatus } from '../../../shared/types'+import type { Access, AppVisibility, McpStatus, PermissionKind, PermissionStatus, SetupState, Theme, UpdateStatus } from '../../../shared/types'import { notesDownloadText, notesUpgradeSize } from '../notesSetup'import { permissionCopy } from '../permissionCopy'import { LOCALES, t } from '../../../shared/i18n'-import { osWords } from '../keys'+import { onMac, osWords } from '../keys'import { applyLanguage } from '../i18n'import { flushOpenNotes } from '../noteAutosave'import { Jargon } from '../components/Jargon'@@ -19,13 +19,13 @@ import { Swap, SwapText } from '../components/Swap'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 trayconst loginLabel = () => osWords({ mac: t('Open Yogurt when your Mac starts'), windows: t('Open Yogurt when Windows starts'), linux: t('Open Yogurt when you log in') })-const trayLabel = () => osWords({ mac: t('Show Yogurt in the menu bar'), windows: t('Show Yogurt in the notification area'), linux: t('Show Yogurt in the tray') })+const trayLabel = () => window.yogurt.os === 'win32' ? t('Show Yogurt in the notification area') : t('Show Yogurt in the tray')/** Settings, kept small: what Yogurt may use, your name, open at login, stop when the call ends, light or dark, a backup and updates. Nothing technical. *//** focus: the setting a toast's Settings button opens, recordings or notes-model */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; myName: string; macName: string; stopWhenCallEnds: boolean; recordingReminder: boolean; keepRecordings: boolean }>()+ const [prefs, setPrefs] = useState<{ theme: Theme; openAtLogin: boolean; showInMenuBar: boolean; appVisibility: AppVisibility; myName: string; macName: string; stopWhenCallEnds: boolean; recordingReminder: boolean; keepRecordings: boolean }>()const [name, setName] = useState('')const [generalReady, setGeneralReady] = useState(false)const scroll = useScrollMemory<HTMLDivElement>('settings', !!prefs && !!perms)@@ -57,6 +57,15 @@ export function Settings({ revision = 0, focus }: { revision?: number; focus?: sconst on = !prefs.stopWhenCallEndssetPrefs({ ...prefs, stopWhenCallEnds: on }); void window.yogurt.settings.setStopWhenCallEnds(on)}+ const menuBar = async () => {+ if (!prefs) return+ await window.yogurt.settings.setShowInMenuBar(!prefs.showInMenuBar)+ setPrefs(await window.yogurt.settings.get())+ }+ const visibility = async (choice: AppVisibility) => {+ await window.yogurt.settings.setAppVisibility(choice)+ setPrefs(await window.yogurt.settings.get())+ }return (<div data-testid="settings" className="settings-screen">@@ -96,12 +105,22 @@ export function Settings({ revision = 0, focus }: { revision?: number; focus?: s<span className="settings-toggle-knob" /></button></div>- <div className="settings-row">- <p className="settings-label settings-row-copy">{trayLabel()}</p>- <button data-testid="menu-bar-toggle" role="switch" aria-checked={!!prefs?.showInMenuBar} aria-label={trayLabel()}- onClick={() => { if (!prefs) return; const on = !prefs.showInMenuBar; setPrefs({ ...prefs, showInMenuBar: on }); void window.yogurt.settings.setShowInMenuBar(on) }}+ {onMac() ? <div className="settings-row">+ <label htmlFor="settings-visibility" className="settings-label settings-row-copy truncate">{t('Show Yogurt in')}</label>+ <span className="settings-select-wrap">+ <select id="settings-visibility" data-testid="settings-visibility" value={prefs?.appVisibility ?? 'both'} disabled={!prefs}+ onChange={(e) => void visibility(e.target.value as AppVisibility)} className="settings-select">+ <option value="both">{t('Menu bar and Dock')}</option>+ <option value="menu-bar">{t('Menu bar only')}</option>+ <option value="dock">{t('Dock only')}</option>+ </select>+ <ChevronDown size={14} aria-hidden="true" />+ </span>+ </div> : <div className="settings-row">+ <p className="settings-label settings-row-copy truncate">{trayLabel()}</p>+ <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>+ </div>}<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.jsonindex 3146538e..e989dbfe 100644--- a/app/src/shared/locales/ar.json+++ b/app/src/shared/locales/ar.json@@ -279,7 +279,6 @@"Open System Settings": "فتح إعدادات النظام","Open Yogurt": "فتح Yogurt","Open Yogurt at login": "فتح Yogurt عند تسجيل الدخول",- "Show Yogurt in the menu bar": "إظهار Yogurt في شريط القوائم","Show Yogurt in the notification area": "إظهار Yogurt في منطقة الإعلامات","Show Yogurt in the tray": "إظهار Yogurt في علبة النظام","Open Yogurt when your Mac starts": "فتح Yogurt عند تشغيل الـMac",@@ -730,5 +729,9 @@"Yogurt couldn't delete this folder.": "تعذّر على Yogurt حذف هذا المجلد.","Yogurt couldn't finish deleting this note.": "تعذّر على Yogurt إكمال حذف هذه الملاحظة.","Yogurt couldn't save this folder.": "تعذّر على Yogurt حفظ هذا المجلد.",- "Your edits to the summary will be replaced.": "سيتم استبدال تعديلاتك على الملخص."+ "Your edits to the summary will be replaced.": "سيتم استبدال تعديلاتك على الملخص.",+ "Show Yogurt in": "إظهار Yogurt في",+ "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.jsonindex c4bfdfbd..fbec664f 100644--- a/app/src/shared/locales/bn.json+++ b/app/src/shared/locales/bn.json@@ -267,7 +267,6 @@"Open System Settings": "সিস্টেম সেটিংস খুলুন","Open Yogurt": "Yogurt খুলুন","Open Yogurt at login": "লগইনের সময় Yogurt খুলুন",- "Show Yogurt in the menu bar": "মেনু বারে Yogurt দেখান","Show Yogurt in the notification area": "বিজ্ঞপ্তি এলাকায় Yogurt দেখান","Show Yogurt in the tray": "সিস্টেম ট্রেতে Yogurt দেখান","Open Yogurt when your Mac starts": "Mac চালু হলে Yogurt খুলুন",@@ -662,5 +661,9 @@"Yogurt couldn't delete this folder.": "Yogurt এই ফোল্ডার মুছতে পারেনি।","Yogurt couldn't finish deleting this note.": "Yogurt এই নোট মোছা শেষ করতে পারেনি।","Yogurt couldn't save this folder.": "Yogurt এই ফোল্ডার সেভ করতে পারেনি।",- "Your edits to the summary will be replaced.": "সারাংশে আপনার সম্পাদনা বদলে যাবে।"+ "Your edits to the summary will be replaced.": "সারাংশে আপনার সম্পাদনা বদলে যাবে।",+ "Show Yogurt in": "Yogurt দেখানোর স্থান",+ "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.jsonindex 5fbc1d0c..73e1a371 100644--- a/app/src/shared/locales/cs.json+++ b/app/src/shared/locales/cs.json@@ -273,7 +273,6 @@"Open System Settings": "Otevřít Nastavení systému","Open Yogurt": "Otevřít Yogurt","Open Yogurt at login": "Otevřít Yogurt při přihlášení",- "Show Yogurt in the menu bar": "Zobrazovat Yogurt v řádku nabídek","Show Yogurt in the notification area": "Zobrazovat Yogurt v oznamovací oblasti","Show Yogurt in the tray": "Zobrazovat Yogurt v systémové liště","Open Yogurt when your Mac starts": "Otevřít Yogurt po spuštění Macu",@@ -705,5 +704,9 @@"Yogurt couldn't delete this folder.": "Yogurt nemohl smazat tuto složku.","Yogurt couldn't finish deleting this note.": "Yogurt nemohl dokončit mazání této poznámky.","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."+ "Your edits to the summary will be replaced.": "Vaše úpravy souhrnu budou nahrazeny.",+ "Show Yogurt in": "Zobrazovat Yogurt v",+ "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.jsonindex 878dcea4..61040882 100644--- a/app/src/shared/locales/da.json+++ b/app/src/shared/locales/da.json@@ -267,7 +267,6 @@"Open System Settings": "Åbn Systemindstillinger","Open Yogurt": "Åbn Yogurt","Open Yogurt at login": "Åbn Yogurt ved login",- "Show Yogurt in the menu bar": "Vis Yogurt i menulinjen","Show Yogurt in the notification area": "Vis Yogurt i meddelelsesområdet","Show Yogurt in the tray": "Vis Yogurt i systembakken","Open Yogurt when your Mac starts": "Åbn Yogurt, når din Mac starter",@@ -674,5 +673,9 @@"Yogurt couldn't delete this folder.": "Yogurt kunne ikke slette denne mappe.","Yogurt couldn't finish deleting this note.": "Yogurt kunne ikke slette denne note færdig.","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."+ "Your edits to the summary will be replaced.": "Dine ændringer i resuméet bliver erstattet.",+ "Show Yogurt in": "Vis Yogurt i",+ "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.jsonindex 2bffc211..e499fa1c 100644--- a/app/src/shared/locales/de.json+++ b/app/src/shared/locales/de.json@@ -267,7 +267,6 @@"Open System Settings": "Systemeinstellungen öffnen","Open Yogurt": "Yogurt öffnen","Open Yogurt at login": "Yogurt bei der Anmeldung öffnen",- "Show Yogurt in the menu bar": "Yogurt in der Menüleiste anzeigen","Show Yogurt in the notification area": "Yogurt im Infobereich anzeigen","Show Yogurt in the tray": "Yogurt in der Systemleiste anzeigen","Open Yogurt when your Mac starts": "Yogurt beim Start des Mac öffnen",@@ -674,5 +673,9 @@"Yogurt couldn't delete this folder.": "Yogurt konnte diesen Ordner nicht löschen.","Yogurt couldn't finish deleting this note.": "Yogurt konnte diese Notiz nicht fertig löschen.","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."+ "Your edits to the summary will be replaced.": "Deine Änderungen an der Zusammenfassung werden ersetzt.",+ "Show Yogurt in": "Yogurt anzeigen in",+ "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.jsonindex 1b97821c..f7369709 100644--- a/app/src/shared/locales/el.json+++ b/app/src/shared/locales/el.json@@ -267,7 +267,6 @@"Open System Settings": "Άνοιγμα Ρυθμίσεων συστήματος","Open Yogurt": "Άνοιγμα Yogurt","Open Yogurt at login": "Άνοιγμα του Yogurt κατά τη σύνδεση",- "Show Yogurt in the menu bar": "Εμφάνιση του Yogurt στη γραμμή μενού","Show Yogurt in the notification area": "Εμφάνιση του Yogurt στην περιοχή ειδοποιήσεων","Show Yogurt in the tray": "Εμφάνιση του Yogurt στη γραμμή συστήματος","Open Yogurt when your Mac starts": "Άνοιγμα του Yogurt με την εκκίνηση του Mac",@@ -677,5 +676,9 @@"Yogurt couldn't delete this folder.": "Το Yogurt δεν μπόρεσε να διαγράψει αυτόν τον φάκελο.","Yogurt couldn't finish deleting this note.": "Το Yogurt δεν μπόρεσε να ολοκληρώσει τη διαγραφή αυτής της σημείωσης.","Yogurt couldn't save this folder.": "Το Yogurt δεν μπόρεσε να αποθηκεύσει αυτόν τον φάκελο.",- "Your edits to the summary will be replaced.": "Οι αλλαγές σας στη σύνοψη θα αντικατασταθούν."+ "Your edits to the summary will be replaced.": "Οι αλλαγές σας στη σύνοψη θα αντικατασταθούν.",+ "Show Yogurt in": "Εμφάνιση Yogurt σε",+ "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.jsonindex ecc5a672..9c85edc5 100644--- a/app/src/shared/locales/en.json+++ b/app/src/shared/locales/en.json@@ -193,5 +193,9 @@"Your edits to the summary will be replaced.": "Your edits to the summary will be replaced.","Your next recording will use both the microphone and call audio.": "Your next recording will use both the microphone and call audio.","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."+ "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",+ "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.jsonindex 361dff1d..532e794f 100644--- a/app/src/shared/locales/es.json+++ b/app/src/shared/locales/es.json@@ -270,7 +270,6 @@"Open System Settings": "Abrir Ajustes del Sistema","Open Yogurt": "Abrir Yogurt","Open Yogurt at login": "Abrir Yogurt al iniciar sesión",- "Show Yogurt in the menu bar": "Mostrar Yogurt en la barra de menús","Show Yogurt in the notification area": "Mostrar Yogurt en el área de notificación","Show Yogurt in the tray": "Mostrar Yogurt en la bandeja del sistema","Open Yogurt when your Mac starts": "Abrir Yogurt al iniciar el Mac",@@ -687,5 +686,9 @@"Yogurt couldn't delete this folder.": "Yogurt no pudo eliminar esta carpeta.","Yogurt couldn't finish deleting this note.": "Yogurt no pudo terminar de eliminar esta nota.","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."+ "Your edits to the summary will be replaced.": "Se reemplazarán tus cambios en el resumen.",+ "Show Yogurt in": "Mostrar Yogurt en",+ "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.jsonindex e3359657..fcae137e 100644--- a/app/src/shared/locales/fi.json+++ b/app/src/shared/locales/fi.json@@ -267,7 +267,6 @@"Open System Settings": "Avaa Järjestelmäasetukset","Open Yogurt": "Avaa Yogurt","Open Yogurt at login": "Avaa Yogurt sisäänkirjauduttaessa",- "Show Yogurt in the menu bar": "Näytä Yogurt valikkorivillä","Show Yogurt in the notification area": "Näytä Yogurt ilmaisinalueella","Show Yogurt in the tray": "Näytä Yogurt ilmoitusalueella","Open Yogurt when your Mac starts": "Avaa Yogurt, kun Mac käynnistyy",@@ -680,5 +679,9 @@"Yogurt couldn't delete this folder.": "Yogurt ei voinut poistaa tätä kansiota.","Yogurt couldn't finish deleting this note.": "Yogurt ei voinut viimeistellä tämän muistiinpanon poistamista.","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."+ "Your edits to the summary will be replaced.": "Yhteenvetoon tekemäsi muutokset korvataan.",+ "Show Yogurt in": "Yogurtin sijainti",+ "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.jsonindex 172222de..3e670d2a 100644--- a/app/src/shared/locales/fil.json+++ b/app/src/shared/locales/fil.json@@ -267,7 +267,6 @@"Open System Settings": "Buksan ang System Settings","Open Yogurt": "Buksan ang Yogurt","Open Yogurt at login": "Buksan ang Yogurt sa pag-login",- "Show Yogurt in the menu bar": "Ipakita ang Yogurt sa menu bar","Show Yogurt in the notification area": "Ipakita ang Yogurt sa notification area","Show Yogurt in the tray": "Ipakita ang Yogurt sa system tray","Open Yogurt when your Mac starts": "Buksan ang Yogurt pagbukas ng Mac mo",@@ -674,5 +673,9 @@"Yogurt couldn't delete this folder.": "Hindi ma-delete ng Yogurt ang folder na ito.","Yogurt couldn't finish deleting this note.": "Hindi natapos ng Yogurt ang pag-delete sa note na ito.","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."+ "Your edits to the summary will be replaced.": "Papalitan ang mga edit mo sa buod.",+ "Show Yogurt in": "Ipakita ang Yogurt sa",+ "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.jsonindex e00dc35c..a660c4a8 100644--- a/app/src/shared/locales/fr.json+++ b/app/src/shared/locales/fr.json@@ -270,7 +270,6 @@"Open System Settings": "Ouvrir Réglages Système","Open Yogurt": "Ouvrir Yogurt","Open Yogurt at login": "Ouvrir Yogurt à la connexion",- "Show Yogurt in the menu bar": "Afficher Yogurt dans la barre des menus","Show Yogurt in the notification area": "Afficher Yogurt dans la zone de notification","Show Yogurt in the tray": "Afficher Yogurt dans la barre d’état système","Open Yogurt when your Mac starts": "Ouvrir Yogurt au démarrage du Mac",@@ -690,5 +689,9 @@"Yogurt couldn't delete this folder.": "Yogurt n’a pas pu supprimer ce dossier.","Yogurt couldn't finish deleting this note.": "Yogurt n’a pas pu terminer la suppression de cette note.","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."+ "Your edits to the summary will be replaced.": "Vos modifications du résumé seront remplacées.",+ "Show Yogurt in": "Afficher Yogurt dans",+ "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.jsonindex e476a296..b4649e9a 100644--- a/app/src/shared/locales/he.json+++ b/app/src/shared/locales/he.json@@ -270,7 +270,6 @@"Open System Settings": "פתיחת הגדרות המערכת","Open Yogurt": "פתיחת Yogurt","Open Yogurt at login": "פתיחת Yogurt בעת ההתחברות",- "Show Yogurt in the menu bar": "הצגת Yogurt בשורת התפריטים","Show Yogurt in the notification area": "הצגת Yogurt באזור ההודעות","Show Yogurt in the tray": "הצגת Yogurt במגש המערכת","Open Yogurt when your Mac starts": "לפתוח את Yogurt כשה־Mac מופעל",@@ -684,5 +683,9 @@"Yogurt couldn't delete this folder.": "Yogurt לא הצליח למחוק את התיקייה הזו.","Yogurt couldn't finish deleting this note.": "Yogurt לא הצליח לסיים למחוק את ההערה הזו.","Yogurt couldn't save this folder.": "Yogurt לא הצליח לשמור את התיקייה הזו.",- "Your edits to the summary will be replaced.": "העריכות שלך בסיכום יוחלפו."+ "Your edits to the summary will be replaced.": "העריכות שלך בסיכום יוחלפו.",+ "Show Yogurt in": "הצגת Yogurt ב",+ "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.jsonindex f4c34a4f..dbe92bec 100644--- a/app/src/shared/locales/hi.json+++ b/app/src/shared/locales/hi.json@@ -267,7 +267,6 @@"Open System Settings": "सिस्टम सेटिंग्ज़ खोलें","Open Yogurt": "Yogurt खोलें","Open Yogurt at login": "लॉगिन पर Yogurt खोलें",- "Show Yogurt in the menu bar": "मेनू बार में Yogurt दिखाएँ","Show Yogurt in the notification area": "सूचना क्षेत्र में Yogurt दिखाएँ","Show Yogurt in the tray": "सिस्टम ट्रे में Yogurt दिखाएँ","Open Yogurt when your Mac starts": "Mac शुरू होने पर Yogurt खोलें",@@ -662,5 +661,9 @@"Yogurt couldn't delete this folder.": "Yogurt यह फ़ोल्डर डिलीट नहीं कर सका।","Yogurt couldn't finish deleting this note.": "Yogurt यह नोट पूरी तरह डिलीट नहीं कर सका।","Yogurt couldn't save this folder.": "Yogurt यह फ़ोल्डर सेव नहीं कर सका।",- "Your edits to the summary will be replaced.": "सारांश में आपके बदलाव बदल दिए जाएँगे।"+ "Your edits to the summary will be replaced.": "सारांश में आपके बदलाव बदल दिए जाएँगे।",+ "Show Yogurt in": "Yogurt दिखाएँ",+ "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.jsonindex c3b8b686..649a50c7 100644--- a/app/src/shared/locales/hu.json+++ b/app/src/shared/locales/hu.json@@ -267,7 +267,6 @@"Open System Settings": "Rendszerbeállítások megnyitása","Open Yogurt": "Yogurt megnyitása","Open Yogurt at login": "Yogurt megnyitása bejelentkezéskor",- "Show Yogurt in the menu bar": "Yogurt megjelenítése a menüsávban","Show Yogurt in the notification area": "Yogurt megjelenítése az értesítési területen","Show Yogurt in the tray": "Yogurt megjelenítése a rendszertálcán","Open Yogurt when your Mac starts": "A Yogurt megnyitása a Mac indulásakor",@@ -662,5 +661,9 @@"Yogurt couldn't delete this folder.": "A Yogurt nem tudta törölni ezt a mappát.","Yogurt couldn't finish deleting this note.": "A Yogurt nem tudta befejezni a jegyzet törlését.","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."+ "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",+ "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.jsonindex e5da9caf..c9eaf480 100644--- a/app/src/shared/locales/id.json+++ b/app/src/shared/locales/id.json@@ -258,7 +258,6 @@"Open System Settings": "Buka Pengaturan Sistem","Open Yogurt": "Buka Yogurt","Open Yogurt at login": "Buka Yogurt saat masuk",- "Show Yogurt in the menu bar": "Tampilkan Yogurt di bar menu","Show Yogurt in the notification area": "Tampilkan Yogurt di area notifikasi","Show Yogurt in the tray": "Tampilkan Yogurt di baki sistem","Open Yogurt when your Mac starts": "Buka Yogurt saat Mac menyala",@@ -632,5 +631,9 @@"Yogurt couldn't delete this folder.": "Yogurt tidak bisa menghapus folder ini.","Yogurt couldn't finish deleting this note.": "Yogurt tidak bisa menyelesaikan penghapusan catatan ini.","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."+ "Your edits to the summary will be replaced.": "Suntingan Anda pada ringkasan akan diganti.",+ "Show Yogurt in": "Tampilkan Yogurt di",+ "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.jsonindex e301a89c..ed65ea0d 100644--- a/app/src/shared/locales/it.json+++ b/app/src/shared/locales/it.json@@ -270,7 +270,6 @@"Open System Settings": "Apri Impostazioni di Sistema","Open Yogurt": "Apri Yogurt","Open Yogurt at login": "Apri Yogurt all’accesso",- "Show Yogurt in the menu bar": "Mostra Yogurt nella barra dei menu","Show Yogurt in the notification area": "Mostra Yogurt nell’area di notifica","Show Yogurt in the tray": "Mostra Yogurt nell’area di sistema","Open Yogurt when your Mac starts": "Apri Yogurt all’avvio del Mac",@@ -693,5 +692,9 @@"Yogurt couldn't delete this folder.": "Yogurt non è riuscito a eliminare questa cartella.","Yogurt couldn't finish deleting this note.": "Yogurt non è riuscito a completare l’eliminazione di questa nota.","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."+ "Your edits to the summary will be replaced.": "Le tue modifiche al riepilogo verranno sostituite.",+ "Show Yogurt in": "Mostra Yogurt in",+ "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.jsonindex 5befe6c9..eb20772a 100644--- a/app/src/shared/locales/ja.json+++ b/app/src/shared/locales/ja.json@@ -258,7 +258,6 @@"Open System Settings": "システム設定を開く","Open Yogurt": "Yogurtを開く","Open Yogurt at login": "ログイン時にYogurtを開く",- "Show Yogurt in the menu bar": "メニューバーにYogurtを表示","Show Yogurt in the notification area": "通知領域にYogurtを表示","Show Yogurt in the tray": "システムトレイにYogurtを表示","Open Yogurt when your Mac starts": "Mac起動時にYogurtを開く",@@ -632,5 +631,9 @@"Yogurt couldn't delete this folder.": "Yogurtはこのフォルダを削除できませんでした。","Yogurt couldn't finish deleting this note.": "Yogurtはこのノートの削除を完了できませんでした。","Yogurt couldn't save this folder.": "Yogurtはこのフォルダを保存できませんでした。",- "Your edits to the summary will be replaced.": "要約に加えた編集は置き換えられます。"+ "Your edits to the summary will be replaced.": "要約に加えた編集は置き換えられます。",+ "Show Yogurt in": "Yogurtの表示場所",+ "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.jsonindex df30bfe0..2e20241b 100644--- a/app/src/shared/locales/ko.json+++ b/app/src/shared/locales/ko.json@@ -258,7 +258,6 @@"Open System Settings": "시스템 설정 열기","Open Yogurt": "Yogurt 열기","Open Yogurt at login": "로그인 시 Yogurt 열기",- "Show Yogurt in the menu bar": "메뉴 막대에 Yogurt 표시","Show Yogurt in the notification area": "알림 영역에 Yogurt 표시","Show Yogurt in the tray": "시스템 트레이에 Yogurt 표시","Open Yogurt when your Mac starts": "Mac을 시작할 때 Yogurt 열기",@@ -632,5 +631,9 @@"Yogurt couldn't delete this folder.": "Yogurt가 이 폴더를 삭제하지 못했어요.","Yogurt couldn't finish deleting this note.": "Yogurt가 이 노트 삭제를 마치지 못했어요.","Yogurt couldn't save this folder.": "Yogurt가 이 폴더를 저장하지 못했어요.",- "Your edits to the summary will be replaced.": "요약에서 수정한 내용은 바뀌어요."+ "Your edits to the summary will be replaced.": "요약에서 수정한 내용은 바뀌어요.",+ "Show Yogurt in": "Yogurt 표시 위치",+ "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.jsonindex dae3994a..0b166ced 100644--- a/app/src/shared/locales/ms.json+++ b/app/src/shared/locales/ms.json@@ -258,7 +258,6 @@"Open System Settings": "Buka Seting Sistem","Open Yogurt": "Buka Yogurt","Open Yogurt at login": "Buka Yogurt semasa log masuk",- "Show Yogurt in the menu bar": "Tunjukkan Yogurt dalam bar menu","Show Yogurt in the notification area": "Tunjukkan Yogurt dalam kawasan pemberitahuan","Show Yogurt in the tray": "Tunjukkan Yogurt dalam dulang sistem","Open Yogurt when your Mac starts": "Buka Yogurt apabila Mac anda bermula",@@ -632,5 +631,9 @@"Yogurt couldn't delete this folder.": "Yogurt tidak dapat memadam folder ini.","Yogurt couldn't finish deleting this note.": "Yogurt tidak dapat selesai memadam nota ini.","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."+ "Your edits to the summary will be replaced.": "Suntingan anda pada ringkasan akan diganti.",+ "Show Yogurt in": "Paparkan Yogurt di",+ "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.jsonindex b7d902f2..7094fc47 100644--- a/app/src/shared/locales/nb.json+++ b/app/src/shared/locales/nb.json@@ -267,7 +267,6 @@"Open System Settings": "Åpne Systeminnstillinger","Open Yogurt": "Åpne Yogurt","Open Yogurt at login": "Åpne Yogurt ved innlogging",- "Show Yogurt in the menu bar": "Vis Yogurt i menylinjen","Show Yogurt in the notification area": "Vis Yogurt i varslingsområdet","Show Yogurt in the tray": "Vis Yogurt i systemkurven","Open Yogurt when your Mac starts": "Åpne Yogurt når Macen starter",@@ -674,5 +673,9 @@"Yogurt couldn't delete this folder.": "Yogurt kunne ikke slette denne mappen.","Yogurt couldn't finish deleting this note.": "Yogurt kunne ikke slette dette notatet helt.","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."+ "Your edits to the summary will be replaced.": "Endringene dine i sammendraget blir erstattet.",+ "Show Yogurt in": "Vis Yogurt i",+ "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.jsonindex 9b3cdcad..804d9d92 100644--- a/app/src/shared/locales/nl.json+++ b/app/src/shared/locales/nl.json@@ -267,7 +267,6 @@"Open System Settings": "Open Systeeminstellingen","Open Yogurt": "Open Yogurt","Open Yogurt at login": "Yogurt openen bij inloggen",- "Show Yogurt in the menu bar": "Toon Yogurt in de menubalk","Show Yogurt in the notification area": "Toon Yogurt in het systeemvak","Show Yogurt in the tray": "Toon Yogurt in het systeemvak","Open Yogurt when your Mac starts": "Open Yogurt als je Mac opstart",@@ -674,5 +673,9 @@"Yogurt couldn't delete this folder.": "Yogurt kon deze map niet verwijderen.","Yogurt couldn't finish deleting this note.": "Yogurt kon het verwijderen van deze notitie niet afronden.","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."+ "Your edits to the summary will be replaced.": "Je wijzigingen in de samenvatting worden vervangen.",+ "Show Yogurt in": "Yogurt weergeven in",+ "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.jsonindex 4bb5603b..1a0d7593 100644--- a/app/src/shared/locales/pl.json+++ b/app/src/shared/locales/pl.json@@ -273,7 +273,6 @@"Open System Settings": "Otwórz Ustawienia systemowe","Open Yogurt": "Otwórz Yogurt","Open Yogurt at login": "Otwieraj Yogurt przy logowaniu",- "Show Yogurt in the menu bar": "Pokazuj Yogurt na pasku menu","Show Yogurt in the notification area": "Pokazuj Yogurt w obszarze powiadomień","Show Yogurt in the tray": "Pokazuj Yogurt w zasobniku systemowym","Open Yogurt when your Mac starts": "Otwieraj Yogurt przy starcie Maca",@@ -710,5 +709,9 @@"Yogurt couldn't delete this folder.": "Yogurt nie mógł usunąć tego folderu.","Yogurt couldn't finish deleting this note.": "Yogurt nie mógł dokończyć usuwania tej notatki.","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."+ "Your edits to the summary will be replaced.": "Twoje zmiany w podsumowaniu zostaną zastąpione.",+ "Show Yogurt in": "Pokaż Yogurt w",+ "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.jsonindex 52f7fe9d..da2ae619 100644--- a/app/src/shared/locales/pt-BR.json+++ b/app/src/shared/locales/pt-BR.json@@ -270,7 +270,6 @@"Open System Settings": "Abrir Ajustes do Sistema","Open Yogurt": "Abrir o Yogurt","Open Yogurt at login": "Abrir Yogurt ao iniciar sessão",- "Show Yogurt in the menu bar": "Mostrar Yogurt na barra de menus","Show Yogurt in the notification area": "Mostrar Yogurt na área de notificação","Show Yogurt in the tray": "Mostrar Yogurt na bandeja do sistema","Open Yogurt when your Mac starts": "Abrir o Yogurt quando o Mac iniciar",@@ -690,5 +689,9 @@"Yogurt couldn't delete this folder.": "O Yogurt não conseguiu apagar esta pasta.","Yogurt couldn't finish deleting this note.": "O Yogurt não conseguiu terminar de apagar esta nota.","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."+ "Your edits to the summary will be replaced.": "Suas edições no resumo serão substituídas.",+ "Show Yogurt in": "Mostrar Yogurt em",+ "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.jsonindex f2d312d4..6ee5e59d 100644--- a/app/src/shared/locales/ro.json+++ b/app/src/shared/locales/ro.json@@ -270,7 +270,6 @@"Open System Settings": "Deschideți Configurări sistem","Open Yogurt": "Deschide Yogurt","Open Yogurt at login": "Deschide Yogurt la autentificare",- "Show Yogurt in the menu bar": "Afișează Yogurt în bara de meniu","Show Yogurt in the notification area": "Afișează Yogurt în zona de notificare","Show Yogurt in the tray": "Afișează Yogurt în tava sistemului","Open Yogurt when your Mac starts": "Deschide Yogurt la pornirea Mac-ului",@@ -691,5 +690,9 @@"Yogurt couldn't delete this folder.": "Yogurt nu a putut șterge acest dosar.","Yogurt couldn't finish deleting this note.": "Yogurt nu a putut termina ștergerea acestei notițe.","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."+ "Your edits to the summary will be replaced.": "Modificările dvs. din rezumat vor fi înlocuite.",+ "Show Yogurt in": "Afișează Yogurt în",+ "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.jsonindex d8c5e35c..fd9f6b12 100644--- a/app/src/shared/locales/ru.json+++ b/app/src/shared/locales/ru.json@@ -273,7 +273,6 @@"Open System Settings": "Открыть Системные настройки","Open Yogurt": "Открыть Yogurt","Open Yogurt at login": "Открывать Yogurt при входе",- "Show Yogurt in the menu bar": "Показывать Yogurt в строке меню","Show Yogurt in the notification area": "Показывать Yogurt в области уведомлений","Show Yogurt in the tray": "Показывать Yogurt в системном трее","Open Yogurt when your Mac starts": "Открывать Yogurt при запуске Mac",@@ -702,5 +701,9 @@"Yogurt couldn't delete this folder.": "Yogurt не смог удалить эту папку.","Yogurt couldn't finish deleting this note.": "Yogurt не смог до конца удалить эту заметку.","Yogurt couldn't save this folder.": "Yogurt не смог сохранить эту папку.",- "Your edits to the summary will be replaced.": "Ваши правки в сводке будут заменены."+ "Your edits to the summary will be replaced.": "Ваши правки в сводке будут заменены.",+ "Show Yogurt in": "Показывать Yogurt в",+ "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.jsonindex 2dbf5123..6ac6854f 100644--- a/app/src/shared/locales/sv.json+++ b/app/src/shared/locales/sv.json@@ -267,7 +267,6 @@"Open System Settings": "Öppna Systeminställningar","Open Yogurt": "Öppna Yogurt","Open Yogurt at login": "Öppna Yogurt vid inloggning",- "Show Yogurt in the menu bar": "Visa Yogurt i menyraden","Show Yogurt in the notification area": "Visa Yogurt i meddelandefältet","Show Yogurt in the tray": "Visa Yogurt i systemfältet","Open Yogurt when your Mac starts": "Öppna Yogurt när din Mac startar",@@ -674,5 +673,9 @@"Yogurt couldn't delete this folder.": "Yogurt kunde inte radera mappen.","Yogurt couldn't finish deleting this note.": "Yogurt kunde inte radera klart anteckningen.","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."+ "Your edits to the summary will be replaced.": "Dina ändringar i sammanfattningen ersätts.",+ "Show Yogurt in": "Visa Yogurt i",+ "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.jsonindex 7f3b17d4..69e04548 100644--- a/app/src/shared/locales/th.json+++ b/app/src/shared/locales/th.json@@ -258,7 +258,6 @@"Open System Settings": "เปิดการตั้งค่าระบบ","Open Yogurt": "เปิด Yogurt","Open Yogurt at login": "เปิด Yogurt เมื่อเข้าสู่ระบบ",- "Show Yogurt in the menu bar": "แสดง Yogurt ในแถบเมนู","Show Yogurt in the notification area": "แสดง Yogurt ในพื้นที่แจ้งเตือน","Show Yogurt in the tray": "แสดง Yogurt ในถาดระบบ","Open Yogurt when your Mac starts": "เปิด Yogurt เมื่อ Mac เริ่มทำงาน",@@ -632,5 +631,9 @@"Yogurt couldn't delete this folder.": "Yogurt ลบโฟลเดอร์นี้ไม่ได้","Yogurt couldn't finish deleting this note.": "Yogurt ลบโน้ตนี้ไม่เสร็จ","Yogurt couldn't save this folder.": "Yogurt บันทึกโฟลเดอร์นี้ไม่ได้",- "Your edits to the summary will be replaced.": "การแก้ไขในสรุปจะถูกแทนที่"+ "Your edits to the summary will be replaced.": "การแก้ไขในสรุปจะถูกแทนที่",+ "Show Yogurt in": "แสดง Yogurt ใน",+ "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.jsonindex 619177a5..0b2cf572 100644--- a/app/src/shared/locales/tr.json+++ b/app/src/shared/locales/tr.json@@ -267,7 +267,6 @@"Open System Settings": "Sistem Ayarları’nı aç","Open Yogurt": "Yogurt’u aç","Open Yogurt at login": "Oturum açıldığında Yogurt’u aç",- "Show Yogurt in the menu bar": "Yogurt’u menü çubuğunda göster","Show Yogurt in the notification area": "Yogurt’u bildirim alanında göster","Show Yogurt in the tray": "Yogurt’u sistem tepsisinde göster","Open Yogurt when your Mac starts": "Mac açıldığında Yogurt’u aç",@@ -662,5 +661,9 @@"Yogurt couldn't delete this folder.": "Yogurt bu klasörü silemedi.","Yogurt couldn't finish deleting this note.": "Yogurt bu notu silmeyi bitiremedi.","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."+ "Your edits to the summary will be replaced.": "Özette yaptığınız düzenlemeler değiştirilecek.",+ "Show Yogurt in": "Yogurt’u 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.jsonindex 5da81622..159dd3a0 100644--- a/app/src/shared/locales/uk.json+++ b/app/src/shared/locales/uk.json@@ -273,7 +273,6 @@"Open System Settings": "Відкрити Системні параметри","Open Yogurt": "Відкрити Yogurt","Open Yogurt at login": "Відкривати Yogurt під час входу",- "Show Yogurt in the menu bar": "Показувати Yogurt у рядку меню","Show Yogurt in the notification area": "Показувати Yogurt в області сповіщень","Show Yogurt in the tray": "Показувати Yogurt у системному треї","Open Yogurt when your Mac starts": "Відкривати Yogurt під час запуску Mac",@@ -702,5 +701,9 @@"Yogurt couldn't delete this folder.": "Yogurt не зміг видалити цю папку.","Yogurt couldn't finish deleting this note.": "Yogurt не зміг до кінця видалити цю нотатку.","Yogurt couldn't save this folder.": "Yogurt не зміг зберегти цю папку.",- "Your edits to the summary will be replaced.": "Ваші зміни в підсумку буде замінено."+ "Your edits to the summary will be replaced.": "Ваші зміни в підсумку буде замінено.",+ "Show Yogurt in": "Показувати Yogurt у",+ "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.jsonindex 6132c9bc..e90b2105 100644--- a/app/src/shared/locales/vi.json+++ b/app/src/shared/locales/vi.json@@ -258,7 +258,6 @@"Open System Settings": "Mở Cài đặt hệ thống","Open Yogurt": "Mở Yogurt","Open Yogurt at login": "Mở Yogurt khi đăng nhập",- "Show Yogurt in the menu bar": "Hiển thị Yogurt trên thanh menu","Show Yogurt in the notification area": "Hiển thị Yogurt trong vùng thông báo","Show Yogurt in the tray": "Hiển thị Yogurt trong khay hệ thống","Open Yogurt when your Mac starts": "Mở Yogurt khi máy Mac khởi động",@@ -632,5 +631,9 @@"Yogurt couldn't delete this folder.": "Yogurt không xóa được thư mục này.","Yogurt couldn't finish deleting this note.": "Yogurt không xóa xong ghi chú này.","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ế."+ "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",+ "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.jsonindex b41f4eea..56280c69 100644--- a/app/src/shared/locales/zh-CN.json+++ b/app/src/shared/locales/zh-CN.json@@ -258,7 +258,6 @@"Open System Settings": "打开系统设置","Open Yogurt": "打开 Yogurt","Open Yogurt at login": "登录时打开 Yogurt",- "Show Yogurt in the menu bar": "在菜单栏中显示 Yogurt","Show Yogurt in the notification area": "在通知区域中显示 Yogurt","Show Yogurt in the tray": "在系统托盘中显示 Yogurt","Open Yogurt when your Mac starts": "Mac 启动时打开 Yogurt",@@ -632,5 +631,9 @@"Yogurt couldn't delete this folder.": "Yogurt 无法删除这个文件夹。","Yogurt couldn't finish deleting this note.": "Yogurt 未能删除完这条笔记。","Yogurt couldn't save this folder.": "Yogurt 无法保存这个文件夹。",- "Your edits to the summary will be replaced.": "你对摘要的修改将被替换。"+ "Your edits to the summary will be replaced.": "你对摘要的修改将被替换。",+ "Show Yogurt in": "Yogurt 显示位置",+ "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.jsonindex 3740003e..05ddb249 100644--- a/app/src/shared/locales/zh-TW.json+++ b/app/src/shared/locales/zh-TW.json@@ -258,7 +258,6 @@"Open System Settings": "打開系統設定","Open Yogurt": "打開 Yogurt","Open Yogurt at login": "登入時開啟 Yogurt",- "Show Yogurt in the menu bar": "在選單列中顯示 Yogurt","Show Yogurt in the notification area": "在通知區域中顯示 Yogurt","Show Yogurt in the tray": "在系統匣中顯示 Yogurt","Open Yogurt when your Mac starts": "Mac 啟動時打開 Yogurt",@@ -632,5 +631,9 @@"Yogurt couldn't delete this folder.": "Yogurt 無法刪除這個資料夾。","Yogurt couldn't finish deleting this note.": "Yogurt 未能刪除完這則筆記。","Yogurt couldn't save this folder.": "Yogurt 無法儲存這個資料夾。",- "Your edits to the summary will be replaced.": "你對摘要的修改將被取代。"+ "Your edits to the summary will be replaced.": "你對摘要的修改將被取代。",+ "Show Yogurt in": "Yogurt 顯示位置",+ "Menu bar and Dock": "選單列與 Dock",+ "Menu bar only": "僅選單列",+ "Dock only": "僅 Dock"}diff --git a/app/src/shared/types.ts b/app/src/shared/types.tsindex ca4100ce..c4289e1b 100644--- a/app/src/shared/types.ts+++ b/app/src/shared/types.ts@@ -16,6 +16,7 @@ export type MissingPermission = { kind: PermissionKind; status: Access; essentiaexport type DeleteRecordingResult = 'deleted' | 'missing' | 'recording' | 'not-transcribed' | 'kept' | 'failed'export type Theme = 'light' | 'dark' | 'system'+export type AppVisibility = 'both' | 'menu-bar' | 'dock'/** The capture has stopped, but its final database state may still need an explicit retry. */export type MeetingView = Meeting & { stopSavePending?: true; paused?: true }export type MeetingCard = StoredMeetingCard & { paused?: true }@@ -248,12 +249,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; /** 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 }>+ 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 }>/** 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>+ setAppVisibility(choice: AppVisibility): Promise<void>setStopWhenCallEnds(on: boolean): Promise<void>setRecordingReminder(on: boolean): Promise<void>setKeepRecordings(on: boolean): Promise<void>diff --git a/app/test/dock.test.ts b/app/test/dock.test.tsnew file mode 100644index 00000000..ab2e5f39--- /dev/null+++ b/app/test/dock.test.ts@@ -0,0 +1,55 @@+import { beforeEach, expect, it, vi } from 'vitest'+import type { BrowserWindow } from 'electron'++const native = vi.hoisted(() => ({+ visible: false,+ app: { dock: { isVisible: vi.fn((): boolean => native.visible) }, setActivationPolicy: vi.fn((policy: string) => { native.visible = policy === 'regular' }), focus: vi.fn() },+}))+vi.mock('electron', () => ({ app: native.app }))+import { setDockVisible } from '../src/main/dock'++const window = () => ({ isDestroyed: vi.fn(() => false), isFocused: vi.fn(() => true), show: vi.fn(), focus: vi.fn() })+const apply = (on: boolean, win?: ReturnType<typeof window>, os: NodeJS.Platform = 'darwin') => setDockVisible(on, win as unknown as BrowserWindow, os)+beforeEach(() => { vi.clearAllMocks(); native.visible = false })++it('leaves default startup alone and applies the saved Dock-off choice without taking focus', () => {+ native.visible = true+ apply(true)+ expect(native.app.setActivationPolicy).not.toHaveBeenCalled()+ apply(false)+ expect(native.app.setActivationPolicy).toHaveBeenCalledExactlyOnceWith('accessory')+ expect(native.app.focus).not.toHaveBeenCalled()+})++it('applies rapid changes using the native state, without a cached state or a hide timer', () => {+ for (const on of [true, false, true, true, false]) apply(on)+ expect(native.app.setActivationPolicy.mock.calls).toEqual([['regular'], ['accessory'], ['regular'], ['accessory']])+ expect(native.visible).toBe(false)+ native.visible = true+ apply(false)+ expect(native.app.setActivationPolicy).toHaveBeenCalledTimes(5)+})++it('keeps the focused Settings window usable when the policy changes', () => {+ const win = window()+ apply(true, win)+ expect(native.app.focus).toHaveBeenCalledExactlyOnceWith({ steal: true })+ expect(win.focus).toHaveBeenCalledOnce()+ expect(win.show).toHaveBeenCalledOnce()+ expect(native.app.setActivationPolicy.mock.invocationCallOrder[0]).toBeLessThan(win.show.mock.invocationCallOrder[0])+ expect(win.show.mock.invocationCallOrder[0]).toBeLessThan(native.app.focus.mock.invocationCallOrder[0])+ expect(native.app.focus.mock.invocationCallOrder[0]).toBeLessThan(win.focus.mock.invocationCallOrder[0])+})++it('never focuses a background or destroyed window, or touches other platforms', () => {+ const win = window()+ win.isFocused.mockReturnValue(false)+ apply(true, win)+ win.isDestroyed.mockReturnValue(true)+ apply(false, win)+ expect(native.app.focus).not.toHaveBeenCalled()+ expect(win.focus).not.toHaveBeenCalled()+ expect(win.show).not.toHaveBeenCalled()+ for (const os of ['win32', 'linux'] as const) apply(true, win, os)+ expect(native.app.setActivationPolicy).toHaveBeenCalledTimes(2)+})diff --git a/app/test/dockPreference.test.ts b/app/test/dockPreference.test.tsnew file mode 100644index 00000000..82df0ec1--- /dev/null+++ b/app/test/dockPreference.test.ts@@ -0,0 +1,121 @@+import { afterEach, expect, it, vi } from 'vitest'+import { mkdtempSync, rmSync } from 'node:fs'+import { tmpdir } from 'node:os'+import { join } from 'node:path'++const handlers = vi.hoisted(() => new Map<string, (...args: any[]) => any>())+vi.mock('electron', () => ({ app: { getPreferredSystemLanguages: () => ['en-US'] }, ipcMain: { handle: (name: string, fn: (...args: any[]) => any) => handlers.set(name, fn) }, BrowserWindow: {}, nativeTheme: {} }))+import { hookPreferences } from '../src/main/preferences'+import { loadSettings, updateSettings, visibilityOf } from '../src/main/settings'++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 }+ hookPreferences(deps)+ return deps+}++it('defaults to both and persists each choice as the existing two booleans', () => {+ const dir = mkdtempSync(join(tmpdir(), 'yogurt-dock-pref-')); dirs.push(dir)+ const file = join(dir, 'settings.json')+ hook(file, vi.fn(), vi.fn())+ const get = () => handlers.get('settings:get')!()+ const set = (value: unknown) => handlers.get('settings:visibility')!(null, value)+ expect(get().appVisibility).toBe('both')+ updateSettings(file, { openAtLogin: true })+ set('menu-bar')+ expect(loadSettings(file)).toEqual({ showInDock: false, openAtLogin: true })+ hook(file, vi.fn(), vi.fn())+ expect(get().appVisibility).toBe('menu-bar')+ set('dock')+ expect(loadSettings(file)).toEqual({ showInMenuBar: false, openAtLogin: true })+ expect(get().appVisibility).toBe('dock')+ set('both')+ expect(loadSettings(file)).toEqual({ openAtLogin: true })+ expect(get().appVisibility).toBe('both')+})++it('rejects invalid choices without persisting or touching either icon', () => {+ const dir = mkdtempSync(join(tmpdir(), 'yogurt-dock-invalid-')); dirs.push(dir)+ const file = join(dir, 'settings.json')+ updateSettings(file, { showInDock: false })+ const dock = vi.fn(), tray = vi.fn()+ hook(file, dock, tray)+ for (const value of [null, undefined, true, false, 1, '', 'neither', 'BOTH', [], {}]) handlers.get('settings:visibility')!(null, value)+ expect(loadSettings(file)).toEqual({ showInDock: false })+ expect(dock).not.toHaveBeenCalled()+ expect(tray).not.toHaveBeenCalled()+})++it('shows the kept icon before hiding the other in all nine choice transitions', () => {+ const dir = mkdtempSync(join(tmpdir(), 'yogurt-dock-transitions-')); dirs.push(dir)+ const file = join(dir, 'settings.json')+ for (const initial of [[true, true], [true, false], [false, true]]) {+ for (const [choice, expected, calls] of [+ ['both', [true, true], ['tray:true', 'dock:true']],+ ['menu-bar', [true, false], ['tray:true', 'dock:false']],+ ['dock', [false, true], ['dock:true', 'tray:false']],+ ] as const) {+ let [menuBar, dock] = initial+ const order: string[] = []+ updateSettings(file, { showInMenuBar: menuBar, showInDock: dock, openAtLogin: true })+ const changed = (kind: string, on: boolean) => {+ order.push(`${kind}:${on}`)+ expect(menuBar || dock).toBe(true)+ if (!on) expect(handlers.get('settings:get')!().appVisibility).toBe(choice)+ }+ hook(file, (on) => { dock = on; changed('dock', on) }, (on) => { menuBar = on; changed('tray', on) })+ handlers.get('settings:visibility')!(null, choice)+ expect(order).toEqual(calls)+ expect([menuBar, dock]).toEqual(expected)+ expect(handlers.get('settings:get')!().appVisibility).toBe(choice)+ expect(visibilityOf(loadSettings(file))).toEqual({ showInMenuBar: expected[0], showInDock: expected[1] })+ expect(loadSettings(file).openAtLogin).toBe(true)+ }+ }+})++it('keeps the existing entry point and saved choice if showing its replacement fails', () => {+ const dir = mkdtempSync(join(tmpdir(), 'yogurt-dock-failure-')); dirs.push(dir)+ const file = join(dir, 'settings.json')+ updateSettings(file, { showInMenuBar: false })+ const dock = vi.fn()+ hook(file, dock, () => { throw new Error('unavailable') })+ expect(() => handlers.get('settings:visibility')!(null, 'menu-bar')).toThrow('unavailable')+ expect(dock).not.toHaveBeenCalled()+ expect(loadSettings(file)).toEqual({ showInMenuBar: false })+})++it('keeps platform-specific IPCs separate, so the tray setter cannot bypass the Mac choice', () => {+ const dir = mkdtempSync(join(tmpdir(), 'yogurt-dock-platform-')); dirs.push(dir)+ const file = join(dir, 'settings.json')+ updateSettings(file, { showInDock: false })+ const dock = vi.fn(), tray = vi.fn()+ hook(file, dock, tray)+ handlers.get('settings:menu-bar')!(null, false)+ for (const os of ['win32', 'linux']) {+ hook(file, dock, tray, os)+ handlers.get('settings:visibility')!(null, 'dock')+ }+ expect(loadSettings(file)).toEqual({ showInDock: false })+ expect(dock).not.toHaveBeenCalled()+ expect(tray).not.toHaveBeenCalled()+})++it('reads legacy booleans without a migration and retains the both-off startup heal', () => {+ const dir = mkdtempSync(join(tmpdir(), 'yogurt-dock-legacy-')); dirs.push(dir)+ const file = join(dir, 'settings.json')+ hook(file, vi.fn(), vi.fn())+ for (const [menuBar, dock, choice] of [+ [undefined, undefined, 'both'], [true, true, 'both'],+ [undefined, false, 'menu-bar'], [false, undefined, 'dock'], [false, false, 'dock'],+ ] as const) {+ updateSettings(file, { showInMenuBar: menuBar, showInDock: dock })+ expect(handlers.get('settings:get')!().appVisibility).toBe(choice)+ expect(loadSettings(file).showInMenuBar).toBe(menuBar)+ expect(loadSettings(file).showInDock).toBe(dock)+ }+ expect(visibilityOf({ showInMenuBar: false, showInDock: false })).toEqual({ showInMenuBar: false, showInDock: true })+})diff --git a/app/test/i18n-tables.test.ts b/app/test/i18n-tables.test.tsindex 1b2698ec..657795c3 100644--- a/app/test/i18n-tables.test.ts+++ b/app/test/i18n-tables.test.ts@@ -11,6 +11,22 @@ const load = (id: string): Record<string, Entry> => JSON.parse(readFileSync(joinconst blanks = (s: string) => [...new Set(s.match(/\{\w+\}/g) ?? [])].sort()const forms = (e: Entry) => (typeof e === 'string' ? [e] : Object.values(e))+it('translates the app location choice and removes the old Mac toggle labels', () => {+ for (const { id } of LOCALES) {+ const table = load(id)+ for (const key of ['Show Yogurt in', 'Menu bar and Dock', 'Menu bar only', 'Dock only']) {+ expect(keys).toContain(key)+ expect(table[key]).toBeTypeOf('string')+ expect(table[key]).not.toBe('')+ if (id !== 'en') expect(table[key]).not.toBe(key)+ }+ for (const key of ['Show Yogurt in the menu bar', 'Show Yogurt in the Dock']) {+ expect(keys).not.toContain(key)+ expect(table).not.toHaveProperty(key)+ }+ }+})+it('translates the summary waiting label in every locale', () => {const key = 'Reading the transcript…'expect(keys).toContain(key)diff --git a/app/test/menuBarPreference.test.ts b/app/test/menuBarPreference.test.tsindex 30864237..479fd162 100644--- a/app/test/menuBarPreference.test.ts+++ b/app/test/menuBarPreference.test.ts@@ -10,16 +10,16 @@ import { loadSettings, updateSettings } from '../src/main/settings'const dirs: string[] = []afterEach(() => { dirs.splice(0).forEach((dir) => rmSync(dir, { recursive: true, force: true })); handlers.clear(); vi.restoreAllMocks() })-it('defaults on, persists off across reloads, rejects non-booleans and applies changes immediately', () => {+it.each(['win32', 'linux'])('%s tray defaults on, persists changes and rejects non-booleans without changing the Dock preference', (os) => {const dir = mkdtempSync(join(tmpdir(), 'yogurt-menu-pref-')); dirs.push(dir)const file = join(dir, 'settings.json')const setTrayVisible = vi.fn()- const deps = { file, permissions: {} as Parameters<typeof hookPreferences>[0]['permissions'], ask: false, setLogin: vi.fn(), loginOn: () => false, macName: () => 'Dana', relaunch: () => false, setTrayVisible }+ 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() }hookPreferences(deps)const get = () => handlers.get('settings:get')!()const set = (value: unknown) => handlers.get('settings:menu-bar')!(null, value)expect(get().showInMenuBar).toBe(true)- updateSettings(file, { openAtLogin: true })+ updateSettings(file, { openAtLogin: true, showInDock: false })set(false)expect(loadSettings(file)).toMatchObject({ showInMenuBar: false, openAtLogin: true })expect(setTrayVisible).toHaveBeenLastCalledWith(false)@@ -31,13 +31,15 @@ it('defaults on, persists off across reloads, rejects non-booleans and applies cexpect(get().showInMenuBar).toBe(true)expect(loadSettings(file).showInMenuBar).toBeUndefined()expect(setTrayVisible).toHaveBeenLastCalledWith(true)+ expect(loadSettings(file).showInDock).toBe(false)+ expect(deps.setDockVisible).not.toHaveBeenCalled()})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() }+ 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() }hookPreferences(deps)const get = () => handlers.get('settings:get')!().keepRecordingsconst set = (on: unknown) => handlers.get('settings:keep-recordings')!(null, on)diff --git a/app/test/osWords.test.ts b/app/test/osWords.test.tsindex 0f60253a..3050fc7f 100644--- a/app/test/osWords.test.ts+++ b/app/test/osWords.test.ts@@ -44,7 +44,7 @@ describe('Mac text', () => {expect(keys.filter((k) => /\bMac\b/.test(k))).toEqual(MAC)})it('keeps the ⌘, menu bar, Finder and System Settings words', () => {- for (const k of ['Ask Yogurt (⌘J)', 'Show Yogurt in the menu bar', 'Show in Finder', 'Open System Settings', 'Turn it on in System Settings'])+ for (const k of ['Ask Yogurt (⌘J)', 'Menu bar and Dock', 'Menu bar only', 'Dock only', 'Show in Finder', 'Open System Settings', 'Turn it on in System Settings'])expect(keys).toContain(k)})it('has a Windows and Linux sentence beside each one shown there', () => {