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 level and the time sit beside the buttons, not inside them
Eric Brownrout1c4b8dfac6c2
diff --git a/app/e2e/noteFooter.spec.ts b/app/e2e/noteFooter.spec.tsindex 6eeaa5b8..da04b0a6 100644--- a/app/e2e/noteFooter.spec.ts+++ b/app/e2e/noteFooter.spec.ts@@ -14,6 +14,9 @@ test('recording controls stay in the header and Ask lives in the footer with staawait expect(page.getByTestId('note-notes-tab')).toHaveAttribute('aria-selected', 'true')await page.getByTestId('note-transcript-toggle').click()const header = page.locator('.note-header'), controls = header.getByTestId('note-state')+ await expect(header.getByTestId('note-elapsed')).toHaveAccessibleName('Recorded time')+ await expect(header.getByTestId('note-elapsed')).toBeVisible()+ await expect(controls.locator('time, canvas')).toHaveCount(0)await expect(controls).toHaveAccessibleName('Recording')await expect(controls.getByTestId('note-pause')).toBeVisible()await expect(controls.getByTestId('note-stop')).toBeVisible()@@ -22,6 +25,7 @@ test('recording controls stay in the header and Ask lives in the footer with staawait expect(controls.getByTestId('note-stop')).toHaveCSS('border-top-width', '0px')await expect(header.getByTestId('chat-open')).toHaveCount(0)await expect(page.locator('.note-footer').getByTestId('chat-open')).toContainText('⌘J')+ await expect(header.getByTestId('note-elapsed')).toMatchAriaSnapshot(String.raw`- timer "Recorded time": /^(?:\d+:)?\d+:\d{2}$/`)const brand = (await page.locator('.workspace-brand').boundingBox())!const footer = (await page.locator('.note-footer-bar').boundingBox())!const content = (await page.locator('.workspace-content').boundingBox())!diff --git a/app/src/renderer/src/components/RecordingTime.tsx b/app/src/renderer/src/components/RecordingTime.tsxindex 1bb77bd0..0561be1a 100644--- a/app/src/renderer/src/components/RecordingTime.tsx+++ b/app/src/renderer/src/components/RecordingTime.tsx@@ -14,5 +14,5 @@ export function RecordingTime({ view, testId = 'note-elapsed', className = 'noteconst timer = setInterval(tick, 250)return () => clearInterval(timer)}, [view])- return <time data-testid={testId} className={className} aria-label={t('Recorded time')}>{time}</time>+ return <time role="timer" data-testid={testId} className={className} aria-label={t('Recorded time')}>{time}</time>}diff --git a/app/src/renderer/src/screens/Note.tsx b/app/src/renderer/src/screens/Note.tsxindex 9c13a66e..590eec97 100644--- a/app/src/renderer/src/screens/Note.tsx+++ b/app/src/renderer/src/screens/Note.tsx@@ -386,12 +386,12 @@ export function Note({ id, onTitleChange, at, folderSuggestion, onSource, onResu<FolderChip meetingId={id} onNew={() => setNamingFolder(true)} suggestion={folderSuggestion} /></div><div data-testid={recording ? 'rec-bar' : 'note-bar'} className="note-header-actions">+ {recording && !finishing && <span className="note-recording-status">+ <LevelBars height={14} bars={3} testId="note-wave" paused={!!m.paused} className="text-muted" />+ <RecordingTime view={recorder} />+ </span>}<div data-testid="note-state" data-state={m.state} data-paused={!!m.paused} className="note-recording-group" data-recording={recording && !finishing} role="group" aria-label={recording ? m.paused ? t('Paused') : t('Recording') : t('Meeting controls')}>{recording && !finishing && <>- <span className="note-recording-status">- <LevelBars height={14} bars={3} testId="note-wave" paused={!!m.paused} className="text-muted" />- <RecordingTime view={recorder} />- </span><button data-testid="note-pause" disabled={pausing} onClick={() => { void togglePause() }}aria-label={m.paused ? t('Resume recording') : t('Pause recording')} title={m.paused ? t('Resume recording') : t('Pause recording')} className="note-record-action note-pause-action"><Swap show={m.paused ? 'play' : 'pause'} options={{ pause: <Pause size={14} fill="currentColor" strokeWidth={0} />, play: <Play size={14} fill="currentColor" strokeWidth={0} /> }} />diff --git a/app/src/renderer/src/styles.css b/app/src/renderer/src/styles.cssindex 734e3e2b..d6ba85bc 100644--- a/app/src/renderer/src/styles.css+++ b/app/src/renderer/src/styles.css@@ -542,8 +542,8 @@ input::selection, textarea::selection, .note-prose ::selection { background: var.note-metadata { display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0; }.note-meta-row { display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:16px; }.note-header-actions { display:flex;align-items:center;flex-wrap:wrap;gap:12px; }-.note-recording-status { display:flex;align-items:center;gap:8px;padding-inline:10px;color:var(--muted);white-space:nowrap; }-.note-elapsed { min-width:36px;margin-inline:4px 8px;font-size:11px;font-variant-numeric:tabular-nums;color:var(--muted);text-align:end; }+.note-recording-status { display:flex;align-items:center;gap:8px;color:var(--muted);white-space:nowrap; }+.note-elapsed { min-width:36px;font-size:11px;font-variant-numeric:tabular-nums;color:var(--muted);text-align:end; }.note-primary-tabs { position:relative;display:flex;gap:24px;margin-top:22px;border-bottom:1px solid var(--line); }.note-primary-tabs [role=tab] { display:flex;align-items:center;gap:7px;height:36px;padding-inline:1px;border-bottom:2px solid transparent;color:var(--muted);font-size:13px;font-weight:500; }.note-primary-tabs [role=tab][aria-selected=true] { color:var(--ink); }@@ -583,9 +583,8 @@ input::selection, textarea::selection, .note-prose ::selection { background: var.note-record-hint>svg { margin-top:2px; }.note-recording-group { display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-height:30px; }.note-recording-group[data-recording=true] { height:30px;flex-wrap:nowrap;gap:0;border:1px solid var(--line);border-radius:6px;background:var(--float);box-shadow:var(--shadow-soft); }-.note-recording-group[data-recording=true] .note-elapsed { margin:0; }.note-recording-group[data-recording=true] .note-record-action { flex:none;height:28px;min-width:0;padding-inline:12px;border:0;border-inline-start:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none;color:var(--muted); }-.note-recording-group[data-recording=true] .note-pause-action { width:30px;padding:0; }+.note-recording-group[data-recording=true] .note-pause-action { width:30px;padding:0;border-inline-start:0;border-start-start-radius:5px;border-end-start-radius:5px; }.note-recording-group[data-recording=true] .note-record-action:last-child { border-start-end-radius:6px;border-end-end-radius:6px; }.note-recording-group[data-recording=true] .note-record-action:hover:not(:disabled) { background:var(--control-hover);color:var(--ink); }.note-recording-group[data-recording=true] .note-record-action:active:not(:disabled) { background:var(--control-pressed); }