Skip to content

Private AI meeting notes that stay on your computer. No meeting bot. Free and open source for Mac, Windows and Linux. An alternative to Granola, Otter and Fireflies.

Agenda: one line per meeting; only what's live grows to show people and a quiet Take notes

Eric Brownroutb208a8881887
diff --git a/app/e2e/agendaCard.spec.ts b/app/e2e/agendaCard.spec.ts
index 643acdae..ff8b20d0 100644
--- a/app/e2e/agendaCard.spec.ts
+++ b/app/e2e/agendaCard.spec.ts
@@ -183,7 +183,7 @@ test('long agenda titles stay on one line and forty attendees expand without mov
await expect(page.getByTestId('home')).toBeVisible()
await expect(page.getByTestId('event')).toHaveCount(1)
const trigger = page.getByTestId('event-details')
- await expect(page.locator('.agenda-people')).toHaveText('Guest1, Guest2, Guest3 + 37')
+ await expect(page.locator('.agenda-people')).toHaveCount(0)
const card = page.getByTestId('event-details-content')
for (const [width, height, colorScheme] of [[1100, 760, 'light'], [720, 520, 'dark']] as const) {
await app.evaluate(({ BrowserWindow }, [width, height]) => BrowserWindow.getAllWindows().find(w => !w.webContents.getURL().includes('#'))!.setSize(width, height), [width, height])
diff --git a/app/e2e/home.spec.ts b/app/e2e/home.spec.ts
index df4f02d9..1cf6c1ad 100644
--- a/app/e2e/home.spec.ts
+++ b/app/e2e/home.spec.ts
@@ -62,8 +62,7 @@ test('a prepared calendar note keeps its notes without recording; Start recordin
const coming = page.getByTestId('coming-up')
const standup = coming.getByTestId('event').filter({ hasText: 'Team standup' })
await expect(standup).toBeVisible()
- await expect(standup.locator('.agenda-people')).toHaveText('Ann, Bo')
- await expect(standup.locator('.agenda-people')).toHaveAttribute('title', 'Ann Lee, Bo Park')
+ await expect(standup.locator('.agenda-people')).toHaveCount(0)
await selectUpcomingAgendaDay(page, 1)
await expect(coming.getByTestId('event').filter({ hasText: 'Design review' })).toBeVisible()
await page.getByRole('button', { name: 'Today', exact: true }).click()
diff --git a/app/src/renderer/src/components/Agenda.tsx b/app/src/renderer/src/components/Agenda.tsx
index 733bf047..537b2333 100644
--- a/app/src/renderer/src/components/Agenda.tsx
+++ b/app/src/renderer/src/components/Agenda.tsx
@@ -11,6 +11,7 @@ import { pickNext } from '../../../shared/comingUp'
import { daysAgo, timeOf, useDay } from '../dates'
import { eventPhase, shiftDay, weekDates } from '../agenda'
import { useAgendaCard } from '../useAgendaCard'
+import { scrollBehavior, surfaceMotion } from '../motion'
import { peopleSummary, personName, useMyName } from './People'
type Actions = {
@@ -148,9 +149,23 @@ export function Event({ event, me, now, near, initial, selected, onInspect, reco
const [pending, setPending] = useState(false)
const phase = eventPhase(event, now)
const mine = recording?.eventId === event.id
+ const row = useRef<HTMLElement>(null)
+ const height = useRef<number | undefined>(undefined)
+ const animation = useRef<Animation | undefined>(undefined)
+ useLayoutEffect(() => {
+ const el = row.current!
+ const from = animation.current?.playState === 'running' ? el.getBoundingClientRect().height : height.current
+ animation.current?.cancel()
+ const to = el.getBoundingClientRect().height
+ height.current = to
+ if (!loading && from !== undefined && from !== to && scrollBehavior() !== 'auto') {
+ animation.current = el.animate([{ height: `${from}px` }, { height: `${to}px` }], { duration: surfaceMotion.resizeMs, easing: surfaceMotion.settleEase })
+ }
+ })
+ 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 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}>
+ 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}>
<div className="agenda-time">{loading ? <span className="loading-bar" style={{ width: 45 }} /> : timeOf(event.start)}</div>
<div className="agenda-event-body">
<div className="agenda-heading">
@@ -159,10 +174,10 @@ export function Event({ event, me, now, near, initial, selected, onInspect, reco
{mine ? <LevelBars height={14} className="agenda-levels" testId="agenda-recording-levels" paused={recording.paused} stillBars /> : <FileText size={13} strokeWidth={1.75} aria-hidden="true" />}
</span>}
</div>
- {(loading || 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>}
+ {(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 primary agenda-action" onClick={takeNotes}><Mic size={12} aria-hidden="true" />{t('Take notes')}</button>
+ <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/motion.ts b/app/src/renderer/src/motion.ts
index f6d450fa..f164ad6b 100644
--- a/app/src/renderer/src/motion.ts
+++ b/app/src/renderer/src/motion.ts
@@ -7,6 +7,7 @@ const SETTLE = [.16, .8, .25, 1] as const
/** One stretch and settle on opening surfaces. Reading content never scales or blurs. */
export const surfaceMotion = {
+ resizeMs: 180,
pullMs: 260,
settleMs: 280,
exitMs: 160,
diff --git a/app/src/renderer/src/workspace.css b/app/src/renderer/src/workspace.css
index 630837b0..ae91dd7c 100644
--- a/app/src/renderer/src/workspace.css
+++ b/app/src/renderer/src/workspace.css
@@ -200,26 +200,27 @@
.agenda-day { display:flex;align-items:baseline;gap:9px;margin-bottom:16px; }
.agenda-day h3 { font-size:13px;font-weight:600; }
.agenda-day>span { font-size:11px;color:var(--muted); }
-.agenda-events { display:flex;flex-direction:column;gap:10px; }
-.agenda-event { position:relative;display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px;padding:8px 6px;border-radius:8px;cursor:pointer; }
+.agenda-events { display:flex;flex-direction:column;gap:3px; }
+.agenda-event { position:relative;display:grid;grid-template-columns:48px minmax(0,1fr);align-items:start;gap:12px;padding:8px 6px;border-radius:8px;overflow:hidden;cursor:pointer; }
.agenda-event:hover:not(:has(:focus-visible)) { background:var(--row-hover); }
-.agenda-event-body { min-width:0;border-inline-start:2px solid var(--line);padding-inline-start:12px; }
+.agenda-event-body { display:flex;flex-direction:column;gap:2px;min-width:0;border-inline-start:2px solid var(--line);padding-inline-start:12px; }
.agenda-event:is(.live,[data-recording=true]) .agenda-event-body { border-inline-start-color:var(--accent); }
-.agenda-event.live .agenda-title { font-weight:600; }
-.agenda-event[data-selected=true] .agenda-title { color:var(--ink);font-weight:600; }
-.agenda-time { font-size:10px;line-height:20px;color:var(--muted);padding-top:0;font-variant-numeric:tabular-nums;text-align:end;white-space:nowrap; }
-.agenda-heading { display:flex;align-items:center;gap:8px;min-height:20px; }
-.agenda-marker { flex:none;display:inline-flex;width:23px;height:20px;justify-content:center;align-items:center;position:relative;z-index:1;color:var(--muted); }
+.agenda-event:is(.live,[data-recording=true]) .agenda-title { font-weight:600;letter-spacing:-.1px; }
+.agenda-event[data-selected=true] .agenda-title { color:var(--ink); }
+.agenda-time { font-size:10px;line-height:17px;color:var(--muted);padding-top:0;font-variant-numeric:tabular-nums;text-align:end;white-space:nowrap; }
+.agenda-heading { display:flex;align-items:center;gap:8px;min-height:17px; }
+.agenda-marker { flex:none;display:inline-flex;width:23px;height:17px;justify-content:center;align-items:center;position:relative;z-index:1;color:var(--muted); }
.agenda-event[data-recording=true] .agenda-marker { color:var(--accent); }
.agenda-levels { flex:none;transform:scale(.85); }
-.agenda-event h3 { flex:1;min-width:0;font-size:13px;line-height:19px;font-weight:550;letter-spacing:-.1px; }
+.agenda-event h3 { flex:1;min-width:0;font-size:11px;line-height:17px;font-weight:400; }
.agenda-title { display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:start;border-radius:3px;color:var(--ink);cursor:pointer; }
.agenda-title::after { content:"";position:absolute;inset:0;border-radius:8px; }
-.agenda-event p { font-size:11px;line-height:17px;color:var(--muted);margin-top:4px; }
+.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:10px; }
-.agenda-action { position:relative;height:28px;font-size:11px;padding:0 9px; }
+.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/test/agendaMarkers.test.ts b/app/test/agendaMarkers.test.ts
index 0a40377f..551ae7f0 100644
--- a/app/test/agendaMarkers.test.ts
+++ b/app/test/agendaMarkers.test.ts
@@ -1,11 +1,17 @@
import { readFileSync } from 'node:fs'
-import { createElement } from 'react'
+import { createElement, useEffect, useLayoutEffect, useRef } from 'react'
import { renderToStaticMarkup } from 'react-dom/server'
-import { expect, it } from 'vitest'
+import { expect, it, vi } from 'vitest'
import { Event } from '../src/renderer/src/components/Agenda'
import type { AgendaEvent, MeetingCard } from '../src/shared/types'
+import { surfaceMotion } from '../src/renderer/src/motion'
-const event: AgendaEvent = { id: 'event', title: 'Planning', start: 100, end: 200, attendees: [], url: null }
+vi.mock('react', async importOriginal => {
+ const react = await importOriginal<typeof import('react')>()
+ return { ...react, useEffect: vi.fn(), useLayoutEffect: vi.fn(), useRef: vi.fn(react.useRef) }
+})
+
+const event: AgendaEvent = { id: 'event', title: 'Planning', start: 100, end: 200, attendees: [{ name: 'Robin Vale', email: null }], url: null }
const 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, {
@@ -72,6 +78,72 @@ it('keeps the live action, upcoming countdown and even title spacing', () => {
expect(render()).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:20px/)
+ expect(css).toMatch(/\.agenda-heading \{[^}]*min-height:17px/)
expect(css).toMatch(/\.agenda-time \{[^}]*padding-top:0;/)
})
+
+it('keeps past and upcoming rows compact, even when selected or saved', () => {
+ for (const now of [99, 200]) for (const row of [event, saved]) {
+ const html = render({ event: row, now, selected: true })
+ expect(html).not.toContain('agenda-people')
+ expect(html).not.toContain('Robin')
+ expect(html).not.toContain('event-start')
+ }
+})
+
+it('shows people on live and recording rows and keeps the quiet action test id', () => {
+ 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('workspace-button primary')
+ }
+ for (const now of [99, 150, 200]) {
+ const html = render({ now, recording })
+ expect(html).toContain('agenda-people')
+ expect(html).not.toContain('event-start')
+ }
+ expect(render({ recording: { ...recording, eventId: 'another-event' } })).not.toContain('event-start')
+ expect(render({ event: saved })).not.toContain('event-start')
+ 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', () => {
+ vi.clearAllMocks()
+ render()
+ let height = 33
+ let reduced = false
+ const animation = { playState: 'running', cancel: vi.fn() }
+ const animate = vi.fn(() => animation)
+ const measure = vi.fn(() => ({ height }))
+ vi.mocked(useRef).mock.results[0].value.current = { getBoundingClientRect: measure, animate }
+ const resize = vi.mocked(useLayoutEffect).mock.calls[0][0]
+ const cleanup = vi.mocked(useEffect).mock.calls[0][0]()
+ vi.stubGlobal('window', { matchMedia: () => ({ matches: reduced }) })
+ try {
+ resize()
+ expect(animate).not.toHaveBeenCalled()
+ height = 78
+ resize()
+ expect(surfaceMotion.resizeMs).toBe(180)
+ expect(animate).toHaveBeenLastCalledWith([{ height: '33px' }, { height: '78px' }], { duration: 180, easing: surfaceMotion.settleEase })
+ measure.mockReturnValueOnce({ height: 50 })
+ height = 52
+ resize()
+ expect(animation.cancel).toHaveBeenCalledOnce()
+ expect(animate).toHaveBeenLastCalledWith([{ height: '50px' }, { height: '52px' }], { duration: 180, easing: surfaceMotion.settleEase })
+ reduced = true
+ height = 33
+ resize()
+ expect(animate).toHaveBeenCalledTimes(2)
+ expect(animation.cancel).toHaveBeenCalledTimes(2)
+ if (typeof cleanup === 'function') cleanup()
+ expect(animation.cancel).toHaveBeenCalledTimes(3)
+ } finally { vi.unstubAllGlobals() }
+})