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
Recording: the top-right button names the meeting that's happening and takes notes for it, with a menu for the rest
Eric Brownrout6e575a4722f3
diff --git a/app/e2e/autoStop.spec.ts b/app/e2e/autoStop.spec.tsindex 2aa438c2..f294516c 100644--- a/app/e2e/autoStop.spec.ts+++ b/app/e2e/autoStop.spec.ts@@ -130,7 +130,8 @@ for (const call of [await fake(app, 'calendarEvents', [{ ...e, start: new Date(e.start).toISOString(), end: new Date(e.end).toISOString() }])await signals(app, { micApps: [], events: [e] })await page.reload()- await page.getByTestId('event-start').click()+ await expect(page.getByTestId('new-note')).toHaveText(`Take notes · ${e.title}`)+ await page.getByTestId('new-note').click()await expect(page.getByTestId('note-state')).toHaveAttribute('data-state', 'recording')const id = await page.evaluate(() => window.yogurt.nav.current().then(route => route.slice('/note/'.length)))const bound = () => page.evaluate(id => window.yogurt.meetings.get(id).then(m => m?.app), id)diff --git a/app/e2e/home.spec.ts b/app/e2e/home.spec.tsindex 1cf6c1ad..1397d73e 100644--- a/app/e2e/home.spec.ts+++ b/app/e2e/home.spec.ts@@ -119,7 +119,7 @@ test('a prepared calendar note keeps its notes without recording; Start recordin} finally { await app.close() }})-test('agenda opens details on demand, opens only existing notes, and offers recording inline for the current event', async () => {+test('agenda opens details on demand and the title bar records the current event', async () => {const { app, page } = await launch()try {// Keep past/current/upcoming fixture rows on one day even when CI runs at midnight.@@ -140,10 +140,9 @@ test('agenda opens details on demand, opens only existing notes, and offers recoawait expect(details).toHaveCount(0)await expect(page.getByTestId('event-prepare')).toHaveCount(0)await expect(page.getByTestId('event-open')).toHaveCount(0)- await expect(page.getByTestId('event-start')).toHaveCount(1)- await expect(event('Current meeting').getByTestId('event-start')).toBeVisible()- // The time/body area belongs to the event button too, without wrapping Take notes in a button.- await event('Earlier meeting').click({ position: { x: 20, y: 8 } })+ await expect(page.getByTestId('event-start')).toHaveCount(0)+ await expect(page.getByTestId('new-note')).toHaveText('Take notes · Current meeting')+ await event('Earlier meeting').getByTestId('event-details').click()await expect(page.getByTestId('home')).toBeVisible()await expect(details.getByRole('heading')).toHaveText('Earlier meeting')await expect(details.getByTestId('event-open')).toHaveCount(0)@@ -160,12 +159,12 @@ test('agenda opens details on demand, opens only existing notes, and offers recoconst current = await prepareCalendarNote(page, 'Current meeting')await expect(page.getByTestId('note-state')).toHaveAttribute('data-state', 'prepared')await page.getByTestId('nav-home').click()- await event('Current meeting').getByTestId('event-start').click()+ await page.getByTestId('new-note').click()await expect(page.getByTestId('note-state')).toHaveAttribute('data-state', 'recording')expect(await routeOf(page)).toBe(`/note/${current}`)await page.getByTestId('nav-home').click()await expect(page.getByTestId('event-start')).toHaveCount(0)- await expect(event('Current meeting').locator('.agenda-live')).toHaveText('Recording')+ await expect(event('Current meeting').getByRole('img', { name: 'Recording', exact: true })).toBeVisible()await event('Current meeting').getByTestId('event-details').click()await details.getByRole('button', { name: 'Open note', exact: true }).click()expect(await routeOf(page)).toBe(`/note/${current}`)@@ -375,10 +374,19 @@ test('starting an event gone from the calendar says so plainly, and records nothconst now = Date.now()await fake(app, 'calendarEvents', [{ id: 'vanishing', title: 'Current meeting', start: new Date(now - 60000).toISOString(), end: new Date(now + 300000).toISOString(), attendees: [] }])await page.reload()- await expect(page.getByTestId('event-start')).toBeVisible()- await fake(app, 'calendarEvents', [])- await page.getByTestId('event-start').click()- await expect(page.getByTestId('home-message')).toHaveText('That meeting is no longer on your calendar.')+ await expect(page.getByTestId('new-note')).toHaveText('Take notes · Current meeting')+ // Remove it after the click reaches main, so calendar refresh cannot turn this into an unattached action.+ await app.evaluate(({ ipcMain }) => {+ const handlers = (ipcMain as typeof ipcMain & { _invokeHandlers: Map<string, (...args: unknown[]) => unknown> })._invokeHandlers+ const start = handlers.get('meetings:start')!+ ipcMain.removeHandler('meetings:start')+ ipcMain.handle('meetings:start', (...args) => {+ (globalThis as unknown as { __fake__: { calendarEvents(events: unknown[]): void } }).__fake__.calendarEvents([])+ return start(...args)+ })+ })+ await page.getByTestId('new-note').click()+ await expect(page.getByTestId('start-recording-message')).toHaveText('That meeting is no longer on your calendar.')await expect(page.getByTestId('home')).toBeVisible()expect((await page.evaluate(() => window.yogurt.meetings.cards({ limit: 5 }))).length).toBe(0)// the list catches up with the calendardiff --git a/app/e2e/startRecording.spec.ts b/app/e2e/startRecording.spec.tsindex cb8cb7c5..c06b696c 100644--- a/app/e2e/startRecording.spec.ts+++ b/app/e2e/startRecording.spec.ts@@ -151,6 +151,14 @@ test('localized recording actions leave room for a long folder title at the smalconst { app, page } = await launch()try {const folder = await folderPage(page)+ const title = 'Planning the next release and reviewing open questions '.repeat(4).trim()+ await app.evaluate((_e, title) => {+ const now = Date.now()+ ;(globalThis as unknown as { __fake__: { calendarEvents(events: unknown[]): void } }).__fake__.calendarEvents([+ { id: 'long-title', title, start: new Date(now - 60_000).toISOString(), end: new Date(now + 30 * 60_000).toISOString(), attendees: [] },+ ])+ }, title)+ await expect(page.getByTestId('start-recording')).toHaveAttribute('title', `Take notes · ${title}`)await app.evaluate(({ BrowserWindow }) => BrowserWindow.getAllWindows().find(w => !w.webContents.getURL().includes('#'))!.setSize(720, 520))await expect.poll(() => page.evaluate(() => innerWidth)).toBe(720)await page.evaluate(id => window.yogurt.folders.rename(id, 'Therapy and personal reflections '.repeat(6)), folder.id)@@ -165,10 +173,63 @@ test('localized recording actions leave room for a long folder title at the smalconst button = (await action.boundingBox())!return locale === 'ar' ? heading.x - (button.x + button.width) : button.x - (heading.x + heading.width)}).toBeGreaterThanOrEqual(12)- const button = (await action.boundingBox())!+ const split = (await page.locator('.recording-split').boundingBox())!+ expect(split.width).toBeLessThanOrEqual(276)+ expect(await action.locator('.recording-label').evaluate(el => el.scrollWidth > el.clientWidth)).toBe(true)+ await expect(action).toHaveAttribute('title', new RegExp(title.trim()))+ const button = splitexpect(button.x).toBeGreaterThanOrEqual(locale === 'ar' ? 132 : 0)expect(button.x + button.width).toBeLessThanOrEqual(await page.evaluate(() => innerWidth))await expect(action).toBeEnabled()}} finally { await app.close() }})++test('two live meetings open the title-bar menu; arrows, Enter and Escape choose or dismiss it', async () => {+ const { app, page } = await launch()+ try {+ const now = await page.evaluate(() => { const date = new Date(); date.setHours(12, 0, 0, 0); return +date })+ await page.clock.setFixedTime(now)+ await app.evaluate(async (_e, now) => {+ const fake = (globalThis as unknown as { __fake__: { advance(ms: number): Promise<void>; calendarEvents(events: unknown[]): void } }).__fake__+ await fake.advance(now - Date.now())+ fake.calendarEvents([+ { id: 'first', title: 'Planning review', start: new Date(now - 60_000).toISOString(), end: new Date(now + 30 * 60_000).toISOString(), attendees: [{ name: 'Robin Vale', email: null }] },+ { id: 'second', title: 'Project review', start: new Date(now - 30_000).toISOString(), end: new Date(now + 30 * 60_000).toISOString(), attendees: [] },+ { id: 'soon', title: 'Release review', start: new Date(now + 8 * 60_000).toISOString(), end: new Date(now + 38 * 60_000).toISOString(), attendees: [] },+ ])+ }, now)+ await page.reload()+ const action = page.getByTestId('new-note')+ const menu = page.getByRole('menu', { name: 'Start recording', exact: true })+ await expect(action).toHaveText('Take notes · 2 now')+ await expect(page.getByTestId('event-start')).toHaveCount(0)+ await action.click()+ await expect(menu).toBeVisible()+ await expect(page.getByTestId('note-state')).toHaveCount(0)+ await expect(menu.getByTestId('recording-meeting')).toHaveText(['Planning reviewRobin ValeNow', 'Project reviewNow', 'Release reviewin 8 min'])+ await page.keyboard.press('Escape')+ await expect(menu).toHaveCount(0)+ await expect(action).toBeFocused()+ await action.press('ArrowDown')+ await expect(menu.getByTestId('recording-meeting').first()).toBeFocused()+ await page.keyboard.press('ArrowDown')+ await page.keyboard.press('Enter')+ await expect(page.getByTestId('note-state')).toHaveAttribute('data-state', 'recording')+ await expect(page.getByTestId('note-title')).toHaveText('Project review')+ const id = await meetingId(page)+ expect(await page.evaluate(id => window.yogurt.meetings.get(id).then(m => m?.eventId), id)).toBe('second')+ await page.getByTestId('nav-home').click()+ await expect(page.getByTestId('recording-return')).toBeVisible()+ await expect(page.getByTestId('recording-choices')).toHaveCount(0)+ await page.getByTestId('recording-return').click()+ await stop(page)+ await page.getByTestId('nav-home').click()+ await page.getByTestId('recording-choices').press('ArrowUp')+ await expect(menu.getByTestId('recording-unattached')).toBeFocused()+ await page.keyboard.press('Enter')+ await expect(page.getByTestId('note-state')).toHaveAttribute('data-state', 'recording')+ const unattached = await meetingId(page)+ expect(await page.evaluate(id => window.yogurt.meetings.get(id).then(m => m?.eventId), unattached)).toBeNull()+ } finally { await app.close() }+})diff --git a/app/src/renderer/src/agenda.ts b/app/src/renderer/src/agenda.tsindex d60e735c..b955c26a 100644--- a/app/src/renderer/src/agenda.ts+++ b/app/src/renderer/src/agenda.ts@@ -1,3 +1,5 @@+import type { AgendaEvent } from '../../shared/types'+/** Local noon avoids shifting the selected date at daylight-saving boundaries. */export function shiftDay(at: number, offset: number): number {const date = new Date(at)@@ -10,3 +12,7 @@ export function weekDates(at: number): number[] {}export const eventPhase = (event: { start: number; end: number }, now: number) =>now < event.start ? 'upcoming' : now < event.end ? 'live' : 'past'+export function recordingChoices(events: AgendaEvent[], now: number): AgendaEvent[] {+ return events.filter(event => eventPhase(event, now) === 'live' || eventPhase(event, now) === 'upcoming' && event.start - now <= 15 * 60_000)+ .sort((a, b) => Number(eventPhase(b, now) === 'live') - Number(eventPhase(a, now) === 'live') || a.start - b.start)+}diff --git a/app/src/renderer/src/components/Agenda.tsx b/app/src/renderer/src/components/Agenda.tsxindex ee90e3f7..a479f9d2 100644--- a/app/src/renderer/src/components/Agenda.tsx+++ b/app/src/renderer/src/components/Agenda.tsx@@ -127,7 +127,7 @@ export function Agenda({ revision, recording, onStart, onOpen }: Actions & { rev</div><div className="agenda-day"><h3>{relativeDay === 0 ? t('Today') : relativeDay === -1 ? t('Tomorrow') : chosen.toLocaleDateString(language(), { weekday: 'long' })}</h3><span>{chosen.toLocaleDateString(language(), { month: 'short', day: 'numeric' })}</span></div><ScrollFade enabled={!!calendar}><div ref={scroll} className="agenda-scroll" data-testid="agenda-scroll">- <LoadingContent key={selected} pending={!calendar} skeleton={<div className="agenda-events">{[0, 1].map(n => <Event key={n} loading event={{ id: String(n), title: '', url: null, start: selected, end: selected, attendees: [] }} me="" now={now} near={false} initial={false} selected={false} onInspect={() => {}} onStart={onStart} />)}</div>}>+ <LoadingContent key={selected} pending={!calendar} skeleton={<div className="agenda-events">{[0, 1].map(n => <Event key={n} loading event={{ id: String(n), title: '', url: null, start: selected, end: selected, attendees: [] }} me="" now={now} near={false} initial={false} selected={false} onInspect={() => {}} />)}</div>}>{calendar && (calendar.status !== 'granted' ? <section className="agenda-status" data-testid={calendar.status === 'error' ? 'calendar-error' : 'calendar-off'}><CalendarDays size={22} aria-hidden="true" /><h3>{calendar.status === 'error' ? t("Yogurt couldn't read your calendar") : calendar.status === 'denied' ? t('Calendar access is off') : t('See your meetings here')}</h3>@@ -136,17 +136,16 @@ export function Agenda({ revision, recording, onStart, onOpen }: Actions & { rev</section>: <div data-testid="coming-up" className="agenda-events">{calendar.events.length === 0 ? <div className="agenda-status"><CalendarDays size={18} strokeWidth={1.75} aria-hidden="true" /><h3>{t('No meetings')}</h3><p>{t('Your calendar is clear.')}</p></div>- : calendar.events.map((event) => <Event key={event.id} event={event} me={me} now={now} near={event.id === primary} initial={event.id === defaultEvent?.id} selected={event.id === detail?.id} onInspect={button => { opener.current = button; setInspected({ at: selected, id: event.id }) }} recording={recording} onStart={onStart} />)}+ : calendar.events.map((event) => <Event key={event.id} event={event} me={me} now={now} near={event.id === primary} initial={event.id === defaultEvent?.id} selected={event.id === detail?.id} onInspect={button => { opener.current = button; setInspected({ at: selected, id: event.id }) }} recording={recording} />)}</div>)}</LoadingContent></div></ScrollFade>{calendar?.status === 'granted' && detail && <EventDetails key={detail.id} event={detail} recording={recording} onStart={onStart} now={now} onOpen={onOpen} onClose={closeDetails} opener={opener.current} />}</aside>}-export function Event({ event, me, now, near, initial, selected, onInspect, recording, onStart, loading = false }: Pick<Actions, 'recording' | 'onStart'> & {+export function Event({ event, me, now, near, initial, selected, onInspect, recording, loading = false }: Pick<Actions, 'recording'> & {loading?: boolean; event: AgendaEvent; me: string; now: number; near: boolean; initial: boolean; selected: boolean; onInspect: (button: HTMLButtonElement) => void}) {- const [pending, setPending] = useState(false)const phase = eventPhase(event, now)const mine = recording?.eventId === event.idconst row = useRef<HTMLElement>(null)@@ -164,7 +163,6 @@ export function Event({ event, me, now, near, initial, selected, onInspect, reco})useEffect(() => () => animation.current?.cancel(), [])const marker = mine ? recording.paused ? t('Paused') : t('Recording') : event.note ? t('Has notes') : undefined- const takeNotes = () => { setPending(true); void onStart(event.id).finally(() => setPending(false)) }return <article ref={row} className={`agenda-event ${phase}`} data-testid={loading ? "agenda-skeleton" : "event"} data-selected={selected} data-agenda-default={initial} data-has-note={!loading && !!event.note} data-recording={!loading && mine} data-faded={!loading && phase === 'past' && !mine}><div className="agenda-time">{loading ? <span className="loading-bar" style={{ width: 45 }} /> : timeOf(event.start)}</div><div className="agenda-event-body">@@ -176,9 +174,6 @@ export function Event({ event, me, now, near, initial, selected, onInspect, reco</div>{(loading || (phase === 'live' || mine) && event.attendees.length > 0) && <p className="agenda-people" title={event.attendees.map((p) => p.name).join(', ')}>{loading ? <span className="loading-bar" style={{ width: '60%' }} /> : peopleSummary(event.attendees, me)}</p>}{!mine && phase === 'upcoming' && near && <span className="agenda-live">{t('Starts in {count} min', { count: Math.ceil((event.start - now) / 60_000) })}</span>}- {!loading && phase === 'live' && !recording && (!event.note || event.note.state === 'prepared') && <div className="agenda-actions">- <button data-testid="event-start" disabled={pending} className="workspace-button agenda-action" onClick={takeNotes}><Mic size={12} aria-hidden="true" />{t('Take notes')}</button>- </div>}</div></article>}diff --git a/app/src/renderer/src/components/StartRecording.tsx b/app/src/renderer/src/components/StartRecording.tsxindex fe00c396..936248a7 100644--- a/app/src/renderer/src/components/StartRecording.tsx+++ b/app/src/renderer/src/components/StartRecording.tsx@@ -1,8 +1,14 @@-import { useLayoutEffect, useState } from 'react'+import { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react'import { createPortal } from 'react-dom'+import { Menu } from '@base-ui/react/menu'+import { ChevronDown } from 'lucide-react'import { Mic } from './Icons'import { toasts } from './TrashToast'import { t } from '../../../shared/i18n'+import type { AgendaEvent } from '../../../shared/types'+import { eventPhase, recordingChoices } from '../agenda'+import { useDay } from '../dates'+import { personName } from './People'let lastRecording: boolean | undefined@@ -11,6 +17,36 @@ export function StartRecording({ onStarted, testId = 'start-recording' }: { onStconst [actions, setActions] = useState<HTMLElement | null>(null)const [recording, setRecording] = useState(lastRecording)const [starting, setStarting] = useState(false)+ const [events, setEvents] = useState<AgendaEvent[]>([])+ const [now, setNow] = useState(Date.now)+ const [open, setOpen] = useState(false)+ const root = useRef<HTMLDivElement>(null)+ const seq = useRef(0)+ const today = useDay()+ const load = useCallback(async () => {+ const mine = ++seq.current+ try {+ const day = await window.yogurt.calendar.day(Date.now())+ if (mine === seq.current) { setEvents(day.status === 'granted' ? day.events : []); setNow(Date.now()) }+ } catch { if (mine === seq.current) setEvents([]) }+ }, [])+ useEffect(() => {+ if (!window.yogurt.capabilities.calendar) return+ setEvents([])+ void load()+ const refresh = () => { setNow(Date.now()); void load() }+ const timer = setInterval(refresh, 60_000)+ const off = window.yogurt.calendar.onChange(() => { setEvents([]); refresh() })+ window.addEventListener('focus', refresh)+ return () => { seq.current++; off(); clearInterval(timer); window.removeEventListener('focus', refresh) }+ }, [load, today])+ useEffect(() => {+ // Switch at the live/soon boundaries, even between calendar refreshes.+ const at = Date.now()+ const next = Math.min(at + 60_000, ...events.flatMap(event => [event.start - 15 * 60_000, event.start, event.end]).filter(time => time > at))+ const timer = setTimeout(() => setNow(Date.now()), next - at)+ return () => clearTimeout(timer)+ }, [events, now])useLayoutEffect(() => {setActions(document.getElementById('workspace-actions'))let active = true, updated = false@@ -18,19 +54,46 @@ export function StartRecording({ onStarted, testId = 'start-recording' }: { onStvoid window.yogurt.widget.state().then((view) => { if (active && !updated) setRecording(lastRecording = view?.kind === 'recording') })return () => { active = false; off() }}, [])- const start = async () => {+ const start = async (eventId: string | null) => {if (starting || recording !== false) return- setStarting(true); toasts.close('start-recording-message')+ setStarting(true); setOpen(false); toasts.close('start-recording-message')try {- const result = await window.yogurt.meetings.start(null)- if ('error' in result) throw new Error(result.error)+ const result = await window.yogurt.meetings.start(eventId)+ if ('error' in result) {+ if (result.error === 'gone') { setEvents([]); void load() }+ toasts.add({ id: 'start-recording-message', data: { testId: 'start-recording-message' }, title: result.error === 'gone' ? t('That meeting is no longer on your calendar.') : t("Yogurt couldn't start the notes. Try again in a moment.") })+ return+ }if (!result.alreadyRecording) onStarted?.(result.id)} catch {toasts.add({ id: 'start-recording-message', data: { testId: 'start-recording-message' }, title: t("Yogurt couldn't start the notes. Try again in a moment.") })} finally { setStarting(false) }}+ const choices = recordingChoices(events, now)+ useEffect(() => { if (recording !== false || !choices.length) setOpen(false) }, [recording, choices.length])if (recording !== false || !actions) return null- return createPortal(<button data-testid={testId} disabled={starting} onClick={() => void start()} className="workspace-button primary no-drag">- <Mic size={14} aria-hidden="true" />{t('Start recording')}- </button>, actions)+ const live = choices.filter(event => eventPhase(event, now) === 'live')+ const label = live.length === 1 ? t('Take notes · {title}', { title: live[0].title || t('Meeting') })+ : live.length > 1 ? t('Take notes · {count} now', { count: live.length }) : t('Start recording')+ const content = <><Mic size={14} aria-hidden="true" /><span className="recording-label">{label}</span></>+ const button = { 'data-testid': testId, disabled: starting, title: label, className: 'workspace-button primary recording-main no-drag' }+ return createPortal(<Menu.Root modal={false} open={open && choices.length > 0} onOpenChange={setOpen}>+ <div ref={root} className="recording-split no-drag" data-split={choices.length > 0}>+ {live.length > 1 ? <Menu.Trigger {...button}>{content}</Menu.Trigger>+ : <button {...button} onClick={() => void start(live[0]?.id ?? null)}>{content}</button>}+ {choices.length > 0 && <Menu.Trigger data-testid="recording-choices" disabled={starting} className="workspace-button primary recording-chevron no-drag" aria-label={t('More for “{name}”', { name: t('Start recording') })} title={t('More')}><ChevronDown size={13} aria-hidden="true" /></Menu.Trigger>}+ </div>+ {choices.length > 0 && <Menu.Portal>+ <Menu.Positioner anchor={root} side="bottom" align="end" sideOffset={8} className="ask-menu-positioner">+ <Menu.Popup className="menu-entry ask-actions-menu recording-menu" aria-label={t('Start recording')} onKeyDown={e => { if (e.key === 'Escape') e.stopPropagation() }}>+ {choices.map(event => <Menu.Item key={event.id} data-testid="recording-meeting" label={event.title || t('Meeting')} disabled={starting} onClick={() => void start(event.id)}>+ <span className="recording-meeting-copy"><span title={event.title || t('Meeting')}>{event.title || t('Meeting')}</span>{event.attendees.length > 0 && <small>{event.attendees.map(person => personName(person.name)).join(', ')}</small>}</span>+ <span className="recording-timing">{eventPhase(event, now) === 'live' ? t('Now') : t('in {count} min', { count: Math.ceil((event.start - now) / 60_000) })}</span>+ </Menu.Item>)}+ <Menu.Separator className="recording-menu-separator" />+ <Menu.Item data-testid="recording-unattached" disabled={starting} onClick={() => void start(null)}><Mic size={14} aria-hidden="true" />{t('Start recording')}</Menu.Item>+ </Menu.Popup>+ </Menu.Positioner>+ </Menu.Portal>}+ </Menu.Root>, actions)}diff --git a/app/src/renderer/src/workspace.css b/app/src/renderer/src/workspace.cssindex 5de4c127..44067cd3 100644--- a/app/src/renderer/src/workspace.css+++ b/app/src/renderer/src/workspace.css@@ -104,6 +104,19 @@.workspace-button.primary { background-color:var(--primary);background-image:linear-gradient(180deg,#FFFFFF14,transparent 55%,#0000000A);border-color:#00000014;color:#FFFFFF;box-shadow:inset 0 1px 0 #FFFFFF29,0 1px 2px #35006524; }.workspace-button.primary:hover:not(:disabled) { background-color:var(--primary-hover); }.workspace-button.primary:active:not(:disabled) { background-image:none;box-shadow:inset 0 1px 2px #35006533; }+.recording-split { display:flex;min-width:0;max-width:min(100%,276px); }+.recording-main { min-width:0; }+.recording-main>svg { flex:none; }+.recording-label { min-width:0;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }+.recording-split[data-split=true] .recording-main { border-start-end-radius:0;border-end-end-radius:0;border-inline-end:0; }+.workspace-button.primary.recording-chevron { flex:none;width:28px;padding:0;border-start-start-radius:0;border-end-start-radius:0;border-inline-start:1px solid #FFFFFF26; }+.recording-menu { width:276px;max-width:var(--available-width);max-height:var(--available-height);overflow-y:auto;border:1px solid var(--line); }+.recording-meeting-copy { flex:1;min-width:0; }+.recording-meeting-copy>span,.recording-meeting-copy>small { display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }+.recording-meeting-copy>small,.recording-timing { color:var(--muted);font-size:10px;line-height:16px;font-weight:400; }+.recording-timing { flex:none; }+.recording-menu-separator { height:1px;margin:4px 0;background:var(--line); }+.workspace-toolbar[data-recording-return=true] { gap:16px;padding-inline-end:17px; }.workspace-toolbar[data-recording-return=true][data-note=true] { padding-inline-end:62px; }.workspace-toolbar[data-recording-return=true] .workspace-breadcrumb { flex:1;overflow:hidden; }@@ -218,9 +231,6 @@.agenda-event p { font-size:11px;line-height:17px;color:var(--muted);margin-top:0; }.agenda-people { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }.agenda-live { display:inline-flex;align-items:center;white-space:nowrap;color:var(--muted);font-size:10px;font-weight:500;line-height:16px;padding:1px 0; }-.agenda-actions { display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px; }-.agenda-action { position:relative;height:20px;font-size:11px;padding:0;background:transparent;color:var(--muted);border:0;box-shadow:none;font-weight:400; }-.agenda-action:hover:not(:disabled),.agenda-action:active:not(:disabled) { color:var(--ink);background:transparent;box-shadow:none;text-decoration:underline;text-underline-offset:3px; }.agenda-inspector { position:absolute;inset:0 auto auto 0;visibility:hidden;z-index:5;max-width:none;overflow:visible;margin:0;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--float);color:var(--ink);box-shadow:var(--shadow);font-size:12px;line-height:18px;overflow-wrap:anywhere; }.agenda-inspector-content { display:flex;flex-direction:column;gap:16px;overflow:hidden;padding:16px;border-radius:inherit; }.agenda-inspector-scroll { min-width:0;min-height:0;max-height:240px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain; }diff --git a/app/src/shared/locales/ar.json b/app/src/shared/locales/ar.jsonindex 98a36d32..1c933426 100644--- a/app/src/shared/locales/ar.json+++ b/app/src/shared/locales/ar.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "تدوين الملاحظات · {title}",+ "Take notes · {count} now": "تدوين الملاحظات · {count} الآن",+ "Now": "الآن",+ "in {count} min": "خلال {count} د","No matching meetings with {name}.": "لا توجد اجتماعات مطابقة مع {name}.","No matching meetings on {date}.": "لا توجد اجتماعات مطابقة في {date}.","No matching meetings with {name} on {date}.": "لا توجد اجتماعات مطابقة مع {name} في {date}.",diff --git a/app/src/shared/locales/bn.json b/app/src/shared/locales/bn.jsonindex 8f0d4a9b..8b26076c 100644--- a/app/src/shared/locales/bn.json+++ b/app/src/shared/locales/bn.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "নোট নিন · {title}",+ "Take notes · {count} now": "নোট নিন · এখন {count}টি",+ "Now": "এখন",+ "in {count} min": "{count} মিনিট পরে","No matching meetings with {name}.": "{name}-এর সঙ্গে মিলে যাওয়া কোনো মিটিং নেই।","No matching meetings on {date}.": "{date} তারিখে মিলে যাওয়া কোনো মিটিং নেই।","No matching meetings with {name} on {date}.": "{date} তারিখে {name}-এর সঙ্গে মিলে যাওয়া কোনো মিটিং নেই।",diff --git a/app/src/shared/locales/cs.json b/app/src/shared/locales/cs.jsonindex 5990faf1..55f00909 100644--- a/app/src/shared/locales/cs.json+++ b/app/src/shared/locales/cs.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "Dělat poznámky · {title}",+ "Take notes · {count} now": "Dělat poznámky · {count} právě teď",+ "Now": "Nyní",+ "in {count} min": "za {count} min","No matching meetings with {name}.": "Žádné odpovídající schůzky s {name}.","No matching meetings on {date}.": "Žádné odpovídající schůzky dne {date}.","No matching meetings with {name} on {date}.": "Žádné odpovídající schůzky s {name} dne {date}.",diff --git a/app/src/shared/locales/da.json b/app/src/shared/locales/da.jsonindex d01ed273..ae89830c 100644--- a/app/src/shared/locales/da.json+++ b/app/src/shared/locales/da.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "Tag noter · {title}",+ "Take notes · {count} now": "Tag noter · {count} nu",+ "Now": "Nu",+ "in {count} min": "om {count} min","No matching meetings with {name}.": "Ingen matchende møder med {name}.","No matching meetings on {date}.": "Ingen matchende møder den {date}.","No matching meetings with {name} on {date}.": "Ingen matchende møder med {name} den {date}.",diff --git a/app/src/shared/locales/de.json b/app/src/shared/locales/de.jsonindex d8fb282e..b80878bc 100644--- a/app/src/shared/locales/de.json+++ b/app/src/shared/locales/de.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "Notizen machen · {title}",+ "Take notes · {count} now": "Notizen machen · {count} laufen",+ "Now": "Jetzt",+ "in {count} min": "in {count} Min.","No matching meetings with {name}.": "Keine passenden Besprechungen mit {name}.","No matching meetings on {date}.": "Keine passenden Besprechungen am {date}.","No matching meetings with {name} on {date}.": "Keine passenden Besprechungen mit {name} am {date}.",diff --git a/app/src/shared/locales/el.json b/app/src/shared/locales/el.jsonindex a8b0e8c2..ad71cf9d 100644--- a/app/src/shared/locales/el.json+++ b/app/src/shared/locales/el.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "Κράτηση σημειώσεων · {title}",+ "Take notes · {count} now": "Κράτηση σημειώσεων · {count} τώρα",+ "Now": "Τώρα",+ "in {count} min": "σε {count} λεπτά","No matching meetings with {name}.": "Δεν βρέθηκαν συναντήσεις που να ταιριάζουν με {name}.","No matching meetings on {date}.": "Δεν βρέθηκαν συναντήσεις που να ταιριάζουν στις {date}.","No matching meetings with {name} on {date}.": "Δεν βρέθηκαν συναντήσεις που να ταιριάζουν με {name} στις {date}.",diff --git a/app/src/shared/locales/en.json b/app/src/shared/locales/en.jsonindex 1467bc88..4a5978a9 100644--- a/app/src/shared/locales/en.json+++ b/app/src/shared/locales/en.json@@ -1,4 +1,14 @@{+ "Take notes · {title}": "Take notes · {title}",+ "Take notes · {count} now": {+ "one": "Take notes · {count} now",+ "other": "Take notes · {count} now"+ },+ "Now": "Now",+ "in {count} min": {+ "one": "in {count} min",+ "other": "in {count} min"+ },"Has notes": "Has notes","No matching meetings with {name}.": "No matching meetings with {name}.","No matching meetings on {date}.": "No matching meetings on {date}.",diff --git a/app/src/shared/locales/es.json b/app/src/shared/locales/es.jsonindex d54d3559..3098a7fc 100644--- a/app/src/shared/locales/es.json+++ b/app/src/shared/locales/es.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "Tomar notas · {title}",+ "Take notes · {count} now": "Tomar notas · {count} ahora",+ "Now": "Ahora",+ "in {count} min": "en {count} min","No matching meetings with {name}.": "No hay reuniones coincidentes con {name}.","No matching meetings on {date}.": "No hay reuniones coincidentes el {date}.","No matching meetings with {name} on {date}.": "No hay reuniones coincidentes con {name} el {date}.",diff --git a/app/src/shared/locales/fi.json b/app/src/shared/locales/fi.jsonindex f9aa6fa7..daf6ef75 100644--- a/app/src/shared/locales/fi.json+++ b/app/src/shared/locales/fi.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "Tee muistiinpanoja · {title}",+ "Take notes · {count} now": "Tee muistiinpanoja · {count} käynnissä",+ "Now": "Nyt",+ "in {count} min": "{count} min kuluttua","No matching meetings with {name}.": "Ei vastaavia kokouksia henkilön {name} kanssa.","No matching meetings on {date}.": "Ei vastaavia kokouksia päivänä {date}.","No matching meetings with {name} on {date}.": "Ei vastaavia kokouksia henkilön {name} kanssa päivänä {date}.",diff --git a/app/src/shared/locales/fil.json b/app/src/shared/locales/fil.jsonindex 47c72e72..0041e404 100644--- a/app/src/shared/locales/fil.json+++ b/app/src/shared/locales/fil.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "Mag-note · {title}",+ "Take notes · {count} now": "Mag-note · {count} ngayon",+ "Now": "Ngayon",+ "in {count} min": "sa loob ng {count} min","No matching meetings with {name}.": "Walang tumutugmang pulong kasama si {name}.","No matching meetings on {date}.": "Walang tumutugmang pulong sa {date}.","No matching meetings with {name} on {date}.": "Walang tumutugmang pulong kasama si {name} sa {date}.",diff --git a/app/src/shared/locales/fr.json b/app/src/shared/locales/fr.jsonindex 990a0ba5..faa3dd0f 100644--- a/app/src/shared/locales/fr.json+++ b/app/src/shared/locales/fr.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "Prendre des notes · {title}",+ "Take notes · {count} now": "Prendre des notes · {count} en cours",+ "Now": "En cours",+ "in {count} min": "dans {count} min","No matching meetings with {name}.": "Aucune réunion correspondante avec {name}.","No matching meetings on {date}.": "Aucune réunion correspondante le {date}.","No matching meetings with {name} on {date}.": "Aucune réunion correspondante avec {name} le {date}.",diff --git a/app/src/shared/locales/he.json b/app/src/shared/locales/he.jsonindex 82aac985..9440fe01 100644--- a/app/src/shared/locales/he.json+++ b/app/src/shared/locales/he.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "רישום הערות · {title}",+ "Take notes · {count} now": "רישום הערות · {count} עכשיו",+ "Now": "עכשיו",+ "in {count} min": "בעוד {count} דק׳","No matching meetings with {name}.": "אין פגישות תואמות עם {name}.","No matching meetings on {date}.": "אין פגישות תואמות בתאריך {date}.","No matching meetings with {name} on {date}.": "אין פגישות תואמות עם {name} בתאריך {date}.",diff --git a/app/src/shared/locales/hi.json b/app/src/shared/locales/hi.jsonindex f7590277..b83bc13e 100644--- a/app/src/shared/locales/hi.json+++ b/app/src/shared/locales/hi.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "नोट्स लें · {title}",+ "Take notes · {count} now": "नोट्स लें · अभी {count}",+ "Now": "अभी",+ "in {count} min": "{count} मिनट में","No matching meetings with {name}.": "{name} के साथ कोई मेल खाती मीटिंग नहीं मिली।","No matching meetings on {date}.": "{date} को कोई मेल खाती मीटिंग नहीं मिली।","No matching meetings with {name} on {date}.": "{date} को {name} के साथ कोई मेल खाती मीटिंग नहीं मिली।",diff --git a/app/src/shared/locales/hu.json b/app/src/shared/locales/hu.jsonindex d04d17c9..7bad4357 100644--- a/app/src/shared/locales/hu.json+++ b/app/src/shared/locales/hu.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "Jegyzetelés · {title}",+ "Take notes · {count} now": "Jegyzetelés · most {count}",+ "Now": "Most",+ "in {count} min": "{count} perc múlva","No matching meetings with {name}.": "Nincs megfelelő megbeszélés vele: {name}.","No matching meetings on {date}.": "Nincs megfelelő megbeszélés ekkor: {date}.","No matching meetings with {name} on {date}.": "Nincs megfelelő megbeszélés vele: {name}, ekkor: {date}.",diff --git a/app/src/shared/locales/id.json b/app/src/shared/locales/id.jsonindex 6133ff9a..2e2f880e 100644--- a/app/src/shared/locales/id.json+++ b/app/src/shared/locales/id.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "Catat · {title}",+ "Take notes · {count} now": "Catat · {count} sekarang",+ "Now": "Sekarang",+ "in {count} min": "dalam {count} mnt","No matching meetings with {name}.": "Tidak ada rapat yang cocok dengan {name}.","No matching meetings on {date}.": "Tidak ada rapat yang cocok pada {date}.","No matching meetings with {name} on {date}.": "Tidak ada rapat yang cocok dengan {name} pada {date}.",diff --git a/app/src/shared/locales/it.json b/app/src/shared/locales/it.jsonindex 72207b56..704af8a5 100644--- a/app/src/shared/locales/it.json+++ b/app/src/shared/locales/it.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "Prendi appunti · {title}",+ "Take notes · {count} now": "Prendi appunti · {count} in corso",+ "Now": "In corso",+ "in {count} min": "tra {count} min","No matching meetings with {name}.": "Nessuna riunione corrispondente con {name}.","No matching meetings on {date}.": "Nessuna riunione corrispondente in data {date}.","No matching meetings with {name} on {date}.": "Nessuna riunione corrispondente con {name} in data {date}.",diff --git a/app/src/shared/locales/ja.json b/app/src/shared/locales/ja.jsonindex b184d829..ec84113e 100644--- a/app/src/shared/locales/ja.json+++ b/app/src/shared/locales/ja.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "メモを取る · {title}",+ "Take notes · {count} now": "メモを取る · {count}件が進行中",+ "Now": "進行中",+ "in {count} min": "{count}分後","No matching meetings with {name}.": "{name}との一致する会議はありません。","No matching meetings on {date}.": "{date}に一致する会議はありません。","No matching meetings with {name} on {date}.": "{date}の{name}との一致する会議はありません。",diff --git a/app/src/shared/locales/ko.json b/app/src/shared/locales/ko.jsonindex 9dda1776..d8a749c6 100644--- a/app/src/shared/locales/ko.json+++ b/app/src/shared/locales/ko.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "노트 기록 · {title}",+ "Take notes · {count} now": "노트 기록 · {count}개 진행 중",+ "Now": "진행 중",+ "in {count} min": "{count}분 후","No matching meetings with {name}.": "{name}님과의 일치하는 회의가 없습니다.","No matching meetings on {date}.": "{date}에 일치하는 회의가 없습니다.","No matching meetings with {name} on {date}.": "{date}에 {name}님과의 일치하는 회의가 없습니다.",diff --git a/app/src/shared/locales/ms.json b/app/src/shared/locales/ms.jsonindex 2247e751..497143f8 100644--- a/app/src/shared/locales/ms.json+++ b/app/src/shared/locales/ms.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "Ambil nota · {title}",+ "Take notes · {count} now": "Ambil nota · {count} sekarang",+ "Now": "Sekarang",+ "in {count} min": "dalam {count} min","No matching meetings with {name}.": "Tiada mesyuarat yang sepadan dengan {name}.","No matching meetings on {date}.": "Tiada mesyuarat yang sepadan pada {date}.","No matching meetings with {name} on {date}.": "Tiada mesyuarat yang sepadan dengan {name} pada {date}.",diff --git a/app/src/shared/locales/nb.json b/app/src/shared/locales/nb.jsonindex f0dd1493..92e51968 100644--- a/app/src/shared/locales/nb.json+++ b/app/src/shared/locales/nb.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "Ta notater · {title}",+ "Take notes · {count} now": "Ta notater · {count} nå",+ "Now": "Nå",+ "in {count} min": "om {count} min","No matching meetings with {name}.": "Ingen samsvarende møter med {name}.","No matching meetings on {date}.": "Ingen samsvarende møter den {date}.","No matching meetings with {name} on {date}.": "Ingen samsvarende møter med {name} den {date}.",diff --git a/app/src/shared/locales/nl.json b/app/src/shared/locales/nl.jsonindex 329b11d8..e7b63da6 100644--- a/app/src/shared/locales/nl.json+++ b/app/src/shared/locales/nl.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "Notities maken · {title}",+ "Take notes · {count} now": "Notities maken · {count} nu",+ "Now": "Nu",+ "in {count} min": "over {count} min","No matching meetings with {name}.": "Geen overeenkomende vergaderingen met {name}.","No matching meetings on {date}.": "Geen overeenkomende vergaderingen op {date}.","No matching meetings with {name} on {date}.": "Geen overeenkomende vergaderingen met {name} op {date}.",diff --git a/app/src/shared/locales/pl.json b/app/src/shared/locales/pl.jsonindex a7401e89..a46ef03c 100644--- a/app/src/shared/locales/pl.json+++ b/app/src/shared/locales/pl.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "Rób notatki · {title}",+ "Take notes · {count} now": "Rób notatki · {count} teraz",+ "Now": "Teraz",+ "in {count} min": "za {count} min","No matching meetings with {name}.": "Brak pasujących spotkań z {name}.","No matching meetings on {date}.": "Brak pasujących spotkań w dniu {date}.","No matching meetings with {name} on {date}.": "Brak pasujących spotkań z {name} w dniu {date}.",diff --git a/app/src/shared/locales/pt-BR.json b/app/src/shared/locales/pt-BR.jsonindex e58664ba..bdfbdde2 100644--- a/app/src/shared/locales/pt-BR.json+++ b/app/src/shared/locales/pt-BR.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "Fazer anotações · {title}",+ "Take notes · {count} now": "Fazer anotações · {count} agora",+ "Now": "Agora",+ "in {count} min": "em {count} min","No matching meetings with {name}.": "Nenhuma reunião correspondente com {name}.","No matching meetings on {date}.": "Nenhuma reunião correspondente em {date}.","No matching meetings with {name} on {date}.": "Nenhuma reunião correspondente com {name} em {date}.",diff --git a/app/src/shared/locales/ro.json b/app/src/shared/locales/ro.jsonindex e2ce43d7..519b0621 100644--- a/app/src/shared/locales/ro.json+++ b/app/src/shared/locales/ro.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "Luați notițe · {title}",+ "Take notes · {count} now": "Luați notițe · {count} acum",+ "Now": "Acum",+ "in {count} min": "în {count} min","No matching meetings with {name}.": "Nicio întâlnire corespunzătoare cu {name}.","No matching meetings on {date}.": "Nicio întâlnire corespunzătoare pe {date}.","No matching meetings with {name} on {date}.": "Nicio întâlnire corespunzătoare cu {name} pe {date}.",diff --git a/app/src/shared/locales/ru.json b/app/src/shared/locales/ru.jsonindex e00e9454..1caebe7a 100644--- a/app/src/shared/locales/ru.json+++ b/app/src/shared/locales/ru.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "Вести заметки · {title}",+ "Take notes · {count} now": "Вести заметки · {count} сейчас",+ "Now": "Сейчас",+ "in {count} min": "через {count} мин","No matching meetings with {name}.": "Нет подходящих встреч с {name}.","No matching meetings on {date}.": "Нет подходящих встреч на {date}.","No matching meetings with {name} on {date}.": "Нет подходящих встреч с {name} на {date}.",diff --git a/app/src/shared/locales/sv.json b/app/src/shared/locales/sv.jsonindex 2edb0981..1c14ad59 100644--- a/app/src/shared/locales/sv.json+++ b/app/src/shared/locales/sv.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "Anteckna · {title}",+ "Take notes · {count} now": "Anteckna · {count} nu",+ "Now": "Nu",+ "in {count} min": "om {count} min","No matching meetings with {name}.": "Inga matchande möten med {name}.","No matching meetings on {date}.": "Inga matchande möten den {date}.","No matching meetings with {name} on {date}.": "Inga matchande möten med {name} den {date}.",diff --git a/app/src/shared/locales/th.json b/app/src/shared/locales/th.jsonindex 77e91954..51db2847 100644--- a/app/src/shared/locales/th.json+++ b/app/src/shared/locales/th.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "จดโน้ต · {title}",+ "Take notes · {count} now": "จดโน้ต · {count} รายการขณะนี้",+ "Now": "ขณะนี้",+ "in {count} min": "ในอีก {count} นาที","No matching meetings with {name}.": "ไม่มีการประชุมที่ตรงกันกับ {name}","No matching meetings on {date}.": "ไม่มีการประชุมที่ตรงกันในวันที่ {date}","No matching meetings with {name} on {date}.": "ไม่มีการประชุมที่ตรงกันกับ {name} ในวันที่ {date}",diff --git a/app/src/shared/locales/tr.json b/app/src/shared/locales/tr.jsonindex bb4b02e4..6df048ca 100644--- a/app/src/shared/locales/tr.json+++ b/app/src/shared/locales/tr.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "Not al · {title}",+ "Take notes · {count} now": "Not al · şu anda {count}",+ "Now": "Şimdi",+ "in {count} min": "{count} dk sonra","No matching meetings with {name}.": "{name} ile eşleşen toplantı yok.","No matching meetings on {date}.": "{date} tarihinde eşleşen toplantı yok.","No matching meetings with {name} on {date}.": "{date} tarihinde {name} ile eşleşen toplantı yok.",diff --git a/app/src/shared/locales/uk.json b/app/src/shared/locales/uk.jsonindex 902e5041..f4a5d86d 100644--- a/app/src/shared/locales/uk.json+++ b/app/src/shared/locales/uk.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "Вести нотатки · {title}",+ "Take notes · {count} now": "Вести нотатки · {count} зараз",+ "Now": "Зараз",+ "in {count} min": "через {count} хв","No matching meetings with {name}.": "Немає відповідних зустрічей з {name}.","No matching meetings on {date}.": "Немає відповідних зустрічей на {date}.","No matching meetings with {name} on {date}.": "Немає відповідних зустрічей з {name} на {date}.",diff --git a/app/src/shared/locales/vi.json b/app/src/shared/locales/vi.jsonindex 6a21f0b5..3a0a2d80 100644--- a/app/src/shared/locales/vi.json+++ b/app/src/shared/locales/vi.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "Ghi chú · {title}",+ "Take notes · {count} now": "Ghi chú · {count} đang diễn ra",+ "Now": "Đang diễn ra",+ "in {count} min": "sau {count} phút","No matching meetings with {name}.": "Không có cuộc họp phù hợp với {name}.","No matching meetings on {date}.": "Không có cuộc họp phù hợp vào {date}.","No matching meetings with {name} on {date}.": "Không có cuộc họp phù hợp với {name} vào {date}.",diff --git a/app/src/shared/locales/zh-CN.json b/app/src/shared/locales/zh-CN.jsonindex 5eba54ed..47d0f748 100644--- a/app/src/shared/locales/zh-CN.json+++ b/app/src/shared/locales/zh-CN.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "记笔记 · {title}",+ "Take notes · {count} now": "记笔记 · {count} 个正在进行",+ "Now": "正在进行",+ "in {count} min": "{count} 分钟后","No matching meetings with {name}.": "没有与{name}的匹配会议。","No matching meetings on {date}.": "{date}没有匹配的会议。","No matching meetings with {name} on {date}.": "{date}没有与{name}的匹配会议。",diff --git a/app/src/shared/locales/zh-TW.json b/app/src/shared/locales/zh-TW.jsonindex a3effa68..b2f183b2 100644--- a/app/src/shared/locales/zh-TW.json+++ b/app/src/shared/locales/zh-TW.json@@ -1,4 +1,8 @@{+ "Take notes · {title}": "做筆記 · {title}",+ "Take notes · {count} now": "做筆記 · {count} 個進行中",+ "Now": "進行中",+ "in {count} min": "{count} 分鐘後","No matching meetings with {name}.": "沒有與{name}的相符會議。","No matching meetings on {date}.": "{date}沒有相符的會議。","No matching meetings with {name} on {date}.": "{date}沒有與{name}的相符會議。",diff --git a/app/test/agendaMarkers.test.ts b/app/test/agendaMarkers.test.tsindex e3f10008..53b7a22b 100644--- a/app/test/agendaMarkers.test.ts+++ b/app/test/agendaMarkers.test.ts@@ -15,7 +15,7 @@ const event: AgendaEvent = { id: 'event', title: 'Planning', start: 100, end: 20const saved: AgendaEvent = { ...event, note: { id: 'note', state: 'done' } }const recording: MeetingCard = { id: 'note', title: 'Planning', state: 'recording', startedAt: 100, endedAt: null, attendees: [], folders: [], preview: '', eventId: event.id, app: null, language: null, titleSource: 'calendar' }const render = (props: Partial<Parameters<typeof Event>[0]> = {}) => renderToStaticMarkup(createElement(Event, {- event, me: '', now: 150, near: true, initial: false, selected: false, onInspect() {}, async onStart() {}, ...props,+ event, me: '', now: 150, near: true, initial: false, selected: false, onInspect() {}, ...props,}))const css = readFileSync(new URL('../src/renderer/src/workspace.css', import.meta.url), 'utf8')@@ -74,8 +74,8 @@ it('labels paused bars and keeps markers out of loading rows', () => {expect(loading).not.toContain('agenda-recording-levels')})-it('keeps the live action, upcoming countdown and even title spacing', () => {- expect(render()).toContain('Take notes')+it('removes the live row action and keeps the upcoming countdown and title spacing', () => {+ expect(render()).not.toContain('Take notes')expect(render({ now: 99 })).toContain('Starts in 1 min')expect(render()).not.toContain('agenda-live')expect(css).toMatch(/\.agenda-heading \{[^}]*min-height:17px/)@@ -105,14 +105,12 @@ it('fades only ended, non-recording events, leaving row focus outlines at full sexpect(css).toContain(':is(.native-meeting-row,.ask-history-row,.agenda-event):is(:focus-visible,:has(:focus-visible)) { outline:2px solid var(--focus);outline-offset:-2px; }')})-it('shows people on live and recording rows and keeps the quiet action test id', () => {+it('shows people on live and recording rows without a Take notes action', () => {for (const row of [event, { ...event, note: { id: 'note', state: 'prepared' as const } }]) {const html = render({ event: row })expect(html).toContain('class="agenda-people" title="Robin Vale">Robin</p>')- expect(html).toContain('data-testid="event-start"')- expect(html).toContain('class="workspace-button agenda-action"')- expect(html).toContain('lucide-mic')- expect(html).toContain('Take notes')+ expect(html).not.toContain('data-testid="event-start"')+ expect(html).not.toContain('Take notes')expect(html).not.toContain('workspace-button primary')}for (const now of [99, 150, 200]) {@@ -125,7 +123,6 @@ it('shows people on live and recording rows and keeps the quiet action test id',expect(render({ event: { ...event, attendees: [] } })).not.toContain('agenda-people')expect(css).toMatch(/\.agenda-event h3 \{[^}]*font-size:11px;line-height:17px;font-weight:400/)expect(css).toMatch(/\.agenda-event:is\(\.live,\[data-recording=true\]\) \.agenda-title \{ font-weight:600/)- expect(css).toMatch(/\.agenda-action \{[^}]*height:20px;[^}]*background:transparent;[^}]*font-weight:400/)})it('resizes from the previous height, retargets interrupted growth and snaps with reduced motion', () => {diff --git a/app/test/i18n-tables.test.ts b/app/test/i18n-tables.test.tsindex 2c06ccd4..ac23a4e1 100644--- a/app/test/i18n-tables.test.ts+++ b/app/test/i18n-tables.test.ts@@ -26,6 +26,18 @@ it('translates agenda marker labels in every locale', () => {}})+it('translates the contextual recording action and menu timing in every locale', () => {+ for (const { id } of LOCALES) {+ const table = load(id)+ for (const key of ['Take notes · {title}', 'Take notes · {count} now', 'Now', 'in {count} min']) {+ expect(keys).toContain(key)+ expect(table[key]).toBeDefined()+ expect(forms(table[key]).every(value => value.trim().length > 0)).toBe(true)+ if (id !== 'en') expect(forms(table[key])).not.toContain(key)+ }+ }+})+it('uses Ask and conversations throughout the interface', () => {// The rebuild explicitly calls its fresh-conversation action New chat; the page remains Ask.expect(keys.filter(key => /\bchats?\b/i.test(key))).toEqual(['New chat'])diff --git a/app/test/startRecordingActions.test.ts b/app/test/startRecordingActions.test.tsnew file mode 100644index 00000000..b4e74aa3--- /dev/null+++ b/app/test/startRecordingActions.test.ts@@ -0,0 +1,172 @@+import { readFileSync } from 'node:fs'+import { afterEach, beforeEach, expect, it, vi } from 'vitest'+import { isValidElement, type ReactElement, type ReactNode } from 'react'+import { renderToStaticMarkup } from 'react-dom/server'+import { Menu } from '@base-ui/react/menu'+import { StartRecording } from '../src/renderer/src/components/StartRecording'+import { recordingChoices } from '../src/renderer/src/agenda'+import { toasts } from '../src/renderer/src/components/TrashToast'+import type { AgendaEvent, WidgetView } from '../src/shared/types'++// Exercise the component's handlers and subscriptions without a browser or Electron.+const hooks = vi.hoisted(() => ({ values: [] as unknown[], refs: [] as { current: unknown }[], state: 0, ref: 0,+ effects: [] as (() => (() => void) | void)[], layout: [] as (() => (() => void) | void)[] }))+vi.mock('react', async original => ({ ...await original<typeof import('react')>(),+ useState: (initial: unknown) => {+ const index = hooks.state+++ if (!(index in hooks.values)) hooks.values[index] = typeof initial === 'function' ? initial() : initial+ return [hooks.values[index], (value: unknown) => { hooks.values[index] = typeof value === 'function' ? value(hooks.values[index]) : value }]+ },+ useRef: (initial: unknown) => hooks.refs[hooks.ref++] ?? (hooks.refs[hooks.ref - 1] = { current: initial }),+ useCallback: (callback: unknown) => callback,+ useEffect: (effect: () => void) => hooks.effects.push(effect),+ useLayoutEffect: (effect: () => void) => hooks.layout.push(effect),+}))+vi.mock('react-dom', () => ({ createPortal: (children: unknown) => children }))+vi.mock('../src/renderer/src/dates', () => ({ useDay: () => new Date().toDateString() }))+vi.mock('../src/renderer/src/components/TrashToast', () => ({ toasts: { add: vi.fn(), close: vi.fn() } }))+const now = new Date(2026, 10, 13, 12).getTime()+const event = (id: string, start = now - 60_000, end = now + 30 * 60_000): AgendaEvent => ({ id, title: `Planning ${id}`, start, end, url: null, attendees: [{ name: 'Robin Vale', email: null }] })+const start = vi.fn()+const day = vi.fn()+const started = vi.fn()+let calendarChanged: () => void+let widgetChanged: (view: WidgetView | null) => void+let cleanups: (() => void)[]+const flush = async () => { await Promise.resolve(); await Promise.resolve() }+const render = () => {+ hooks.state = 0; hooks.ref = 0; hooks.effects = []; hooks.layout = []+ return StartRecording({ onStarted: started }) as ReactElement<Record<string, unknown>> | null+}+const run = (effect: () => (() => void) | void) => { const cleanup = effect(); if (cleanup) cleanups.push(cleanup) }+type Element = ReactElement<Record<string, unknown>>+function elements(node: ReactNode): Element[] {+ if (Array.isArray(node)) return node.flatMap(elements)+ return isValidElement<Record<string, unknown>>(node) ? [node, ...elements(node.props.children as ReactNode)] : []+}+const find = (tree: ReactNode, id: string) => elements(tree).find(el => el.props['data-testid'] === id)!+const label = (tree: ReactNode) => renderToStaticMarkup(find(tree, 'start-recording').props.children as ReactNode)+const click = async (element: Element) => { (element.props.onClick as () => void)(); await flush() }+async function calendar(events: AgendaEvent[]) {+ day.mockResolvedValue({ status: 'granted', events })+ render(); run(hooks.effects[0]); await flush()+ return render()+}+beforeEach(async () => {+ vi.useFakeTimers(); vi.setSystemTime(now); vi.clearAllMocks()+ hooks.values = []; hooks.refs = []; cleanups = []+ start.mockResolvedValue({ id: 'note' }); day.mockResolvedValue({ status: 'granted', events: [] })+ vi.stubGlobal('document', { getElementById: () => ({ nodeType: 1 }) })+ vi.stubGlobal('window', { addEventListener: vi.fn(), removeEventListener: vi.fn(), yogurt: {+ capabilities: { calendar: true },+ widget: { state: async () => null, onState: (cb: typeof widgetChanged) => { widgetChanged = cb; return vi.fn() } },+ calendar: { day, onChange: (cb: () => void) => { calendarChanged = cb; return vi.fn() } },+ meetings: { start },+ } })+ render(); run(hooks.layout[0]); await flush()+})+afterEach(() => { cleanups.reverse().forEach(cleanup => cleanup()); vi.useRealTimers(); vi.unstubAllGlobals() })++it('keeps the plain, unattached action and no arrow outside the live/15-minute window', async () => {+ for (const events of [[], [event('past', now - 60_000, now)], [event('later', now + 15 * 60_000 + 1)]]) {+ const tree = await calendar(events)+ expect(label(tree)).toContain('Start recording')+ expect(find(tree, 'recording-choices')).toBeUndefined()+ await click(find(tree, 'start-recording'))+ expect(start).toHaveBeenLastCalledWith(null)+ }+})+it('attaches the one live meeting and preserves its full title while CSS truncates the label', async () => {+ const live = { ...event('live'), title: 'Planning the next release and reviewing every open question '.repeat(4) }+ const tree = await calendar([event('soon', now + 8 * 60_000), live])+ expect(label(tree)).toContain(`Take notes · ${live.title}`)+ expect(find(tree, 'start-recording').props.title).toBe(`Take notes · ${live.title}`)+ expect(find(tree, 'recording-choices').type).toBe(Menu.Trigger)+ await click(find(tree, 'start-recording'))+ expect(start).toHaveBeenCalledExactlyOnceWith(live.id)+ expect(started).toHaveBeenCalledExactlyOnceWith('note')+ const css = readFileSync(new URL('../src/renderer/src/workspace.css', import.meta.url), 'utf8')+ expect(css).toMatch(/\.recording-label \{[^}]*max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap/)+ expect(css).toMatch(/\.recording-split \{[^}]*max-width:min\(100%,276px\)/)+})+it('uses the menu trigger for two live meetings, with live choices first and an unattached final action', async () => {+ const tree = await calendar([event('soon', now + 8 * 60_000), event('second', now - 30_000), event('first')])+ expect(label(tree)).toContain('Take notes · 2 now')+ // The same Base UI trigger used by the arrow owns click, Enter, arrows and Escape.+ expect(find(tree, 'start-recording').type).toBe(Menu.Trigger)+ expect(find(tree, 'start-recording').props.onClick).toBeUndefined()+ ;(tree!.props.onOpenChange as (open: boolean) => void)(true)+ expect(render()!.props.open).toBe(true)+ expect(start).not.toHaveBeenCalled()+ const items = elements(tree).filter(el => el.type === Menu.Item)+ expect(items.map(item => item.props.label)).toEqual(['Planning first', 'Planning second', 'Planning soon', undefined])+ expect(renderToStaticMarkup(items[0].props.children as ReactNode)).toContain('Now')+ const soon = renderToStaticMarkup(items[2].props.children as ReactNode)+ expect(soon).toContain('in 8 min'); expect(soon).toContain('Robin Vale')+ await click(items[2]); expect(start).toHaveBeenLastCalledWith('soon')+ expect(render()!.props.open).toBe(false)+ await click(find(render(), 'recording-unattached')); expect(start).toHaveBeenLastCalledWith(null)+})+it('suggests an upcoming meeting but keeps the main action unattached', async () => {+ const tree = await calendar([event('soon', now + 8 * 60_000)])+ expect(label(tree)).toContain('Start recording')+ expect(find(tree, 'recording-choices').type).toBe(Menu.Trigger)+ await click(find(tree, 'start-recording'))+ expect(start).toHaveBeenCalledExactlyOnceWith(null)+})+it('changes at the 15-minute, start and end boundaries and never offers a past event', async () => {+ const upcoming = event('boundary', now + 16 * 60_000, now + 17 * 60_000)+ await calendar([upcoming])+ for (const [minutes, expected, arrow] of [[0, 'Start recording', false], [1, 'Start recording', true], [16, 'Take notes · Planning boundary', true], [17, 'Start recording', false]] as const) {+ vi.setSystemTime(now + minutes * 60_000 - 1)+ render(); run(hooks.effects[1]); await vi.advanceTimersByTimeAsync(1)+ const tree = render()+ expect(label(tree)).toContain(expected)+ expect(!!find(tree, 'recording-choices')).toBe(arrow)+ }+ expect(recordingChoices([upcoming], upcoming.end)).toEqual([])+})+it('hides the entire control during recording and closes a previously open menu', async () => {+ const tree = await calendar([event('first'), event('second')])+ ;(tree!.props.onOpenChange as (open: boolean) => void)(true)+ widgetChanged({ kind: 'recording' } as WidgetView)+ expect(render()).toBeNull(); run(hooks.effects[2])+ widgetChanged(null)+ expect(render()!.props.open).toBe(false)+})+it('clears revoked calendars immediately and ignores an older in-flight response', async () => {+ await calendar([event('live')])+ let reply!: (value: unknown) => void+ day.mockImplementationOnce(() => new Promise(resolve => { reply = resolve }))+ calendarChanged()+ expect(find(render(), 'recording-choices')).toBeUndefined()+ day.mockResolvedValue({ status: 'denied', events: [event('private')] })+ calendarChanged(); await flush()+ reply({ status: 'granted', events: [event('stale')] }); await flush()+ expect(find(render(), 'recording-choices')).toBeUndefined()+})+it('refreshes on focus and polls today without reading the agenda-selected date', async () => {+ await calendar([])+ day.mockClear()+ const focus = vi.mocked(window.addEventListener).mock.calls.find(([name]) => name === 'focus')![1] as () => void+ focus(); await flush()+ expect(day).toHaveBeenCalledExactlyOnceWith(now)+ await vi.advanceTimersByTimeAsync(60_000)+ expect(day).toHaveBeenLastCalledWith(now + 60_000)+})+it('reports a removed event, refreshes choices, and never reports a failed or raced start as new', async () => {+ const tree = await calendar([event('live')])+ start.mockResolvedValueOnce({ error: 'gone' })+ day.mockResolvedValue({ status: 'granted', events: [] })+ await click(find(tree, 'start-recording'))+ expect(toasts.add).toHaveBeenLastCalledWith(expect.objectContaining({ title: 'That meeting is no longer on your calendar.' }))+ expect(find(render(), 'recording-choices')).toBeUndefined()+ expect(started).not.toHaveBeenCalled()+ start.mockResolvedValueOnce({ id: 'existing', alreadyRecording: true })+ await click(find(render(), 'start-recording'))+ expect(started).not.toHaveBeenCalled()+ start.mockRejectedValueOnce(new Error('fixture start failure'))+ await click(find(render(), 'start-recording'))+ expect(toasts.add).toHaveBeenLastCalledWith(expect.objectContaining({ title: "Yogurt couldn't start the notes. Try again in a moment." }))+ expect(find(render(), 'start-recording').props.disabled).toBe(false)+})