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, the time and the buttons are evenly spaced
Eric Brownrouteb27a2eeeae0
diff --git a/app/e2e/noteFooter.spec.ts b/app/e2e/noteFooter.spec.tsindex 5f2e8bb6..9d6ea663 100644--- a/app/e2e/noteFooter.spec.ts+++ b/app/e2e/noteFooter.spec.ts@@ -56,6 +56,15 @@ test('recording controls stay in the header and Ask lives in the footer with staawait page.setViewportSize({ width: 720, height: 520 })await expect.poll(() => page.evaluate(() => innerWidth)).toBe(720)await expect(page.getByTestId('workspace')).toHaveClass(/sidebar-collapsed/)+ const gaps = await page.getByTestId('rec-bar').evaluate(bar => {+ const digits = document.createRange()+ digits.selectNodeContents(bar.querySelector('time')!)+ const [left, middle, right] = [bar.querySelector('canvas')!.getBoundingClientRect(),+ digits.getBoundingClientRect(), bar.querySelector('[data-testid="note-state"]')!.getBoundingClientRect()]+ .sort((a, b) => a.left - b.left)+ return [Math.round(middle.left - left.right), Math.round(right.left - middle.right)]+ })+ expect(gaps).toEqual([8, 8])const targets = [page.getByTestId('note-pause'), page.getByTestId('note-stop'), page.getByTestId('chat-open'), page.getByTestId('note-transcript-toggle'), page.getByTestId('note-notes-tab')]const width = await page.evaluate(() => innerWidth)for (const target of targets) {diff --git a/app/src/renderer/src/screens/Note.tsx b/app/src/renderer/src/screens/Note.tsxindex 8660a0f7..616fd32f 100644--- a/app/src/renderer/src/screens/Note.tsx+++ b/app/src/renderer/src/screens/Note.tsx@@ -392,29 +392,31 @@ 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-treatment={RECORDING_CONTROL_TREATMENT} data-recording={recording && !finishing} role="group" aria-label={recording ? m.paused ? t('Paused') : t('Recording') : t('Meeting controls')}>+ <div className="note-recorder-controls">{recording && !finishing && <>- <RecordingAction data-testid="note-pause" disabled={pausing} onClick={() => { void togglePause() }}- label={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} /> }} />- </RecordingAction>- <RecordingAction data-testid="note-stop" onClick={(e) => { requestFinish(true); picked.current = true; setView('mine'); setFinishing(true); setTabPointer(e.detail > 0); window.yogurt.meetings.stop(id) }} label={t('Stop recording')} className="note-record-action note-finish-action">- <span className="note-stop-label">{t('Stop')}</span>- </RecordingAction>+ <LevelBars height={14} bars={3} testId="note-wave" paused={!!m.paused} className="text-muted" />+ <RecordingTime view={recorder} /></>}- {finishing && <span data-testid="note-finishing" role="status" className="note-finishing">{t('Stopping…')}</span>}- {!finishing && (summaryPending || (!transcribing && m.source !== 'audio-file')) && (m.state === 'stopped' || m.state === 'done') && !m.stopSavePending && !trashed && <button data-testid="note-resume" disabled={starting && !summaryPending} onClick={() => { if (summaryPending) void window.yogurt.notes.stop(id).catch(console.error); else void resumeRecording() }}- aria-label={resumeLabel} className="workspace-button note-resume-action" title={summaryPending ? resumeLabel : t('Resume recording in this note')}>- {!summaryPending && <Mic size={14} aria-hidden="true" />}- <SwapText text={starting && !summaryPending ? t('Preparing…') : resumeLabel} />- </button>}- {m.state === 'prepared' && !trashed && <button data-testid="note-start" disabled={starting} onClick={() => { void startPrepared() }} className="note-record-action primary">- <Mic size={14} strokeWidth={1.75} aria-hidden="true" />{starting ? t('Starting…') : t('Start recording')}- </button>}+ <div data-testid="note-state" data-state={m.state} data-paused={!!m.paused} className="note-recording-group" data-treatment={RECORDING_CONTROL_TREATMENT} data-recording={recording && !finishing} role="group" aria-label={recording ? m.paused ? t('Paused') : t('Recording') : t('Meeting controls')}>+ {recording && !finishing && <>+ <RecordingAction data-testid="note-pause" disabled={pausing} onClick={() => { void togglePause() }}+ label={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} /> }} />+ </RecordingAction>+ <RecordingAction data-testid="note-stop" onClick={(e) => { requestFinish(true); picked.current = true; setView('mine'); setFinishing(true); setTabPointer(e.detail > 0); window.yogurt.meetings.stop(id) }} label={t('Stop recording')} className="note-record-action note-finish-action">+ <span className="note-stop-label">{t('Stop')}</span>+ </RecordingAction>+ </>}+ {finishing && <span data-testid="note-finishing" role="status" className="note-finishing">{t('Stopping…')}</span>}+ {!finishing && (summaryPending || (!transcribing && m.source !== 'audio-file')) && (m.state === 'stopped' || m.state === 'done') && !m.stopSavePending && !trashed && <button data-testid="note-resume" disabled={starting && !summaryPending} onClick={() => { if (summaryPending) void window.yogurt.notes.stop(id).catch(console.error); else void resumeRecording() }}+ aria-label={resumeLabel} className="workspace-button note-resume-action" title={summaryPending ? resumeLabel : t('Resume recording in this note')}>+ {!summaryPending && <Mic size={14} aria-hidden="true" />}+ <SwapText text={starting && !summaryPending ? t('Preparing…') : resumeLabel} />+ </button>}+ {m.state === 'prepared' && !trashed && <button data-testid="note-start" disabled={starting} onClick={() => { void startPrepared() }} className="note-record-action primary">+ <Mic size={14} strokeWidth={1.75} aria-hidden="true" />{starting ? t('Starting…') : t('Start recording')}+ </button>}+ </div></div>{transcribing&&<TranscriptionControl state={m.transcriptionState!} onStop={()=>void window.yogurt.transcript.stop(id).catch(()=>toasts.add({title:t("Yogurt couldn't transcribe this file.")}))}/>}<ShareMenu id={id} shown={shown} status={notes.status} hasEnhanced={notes.enhanced != null} beforeUse={saveAll} />diff --git a/app/src/renderer/src/styles.css b/app/src/renderer/src/styles.cssindex 8551405f..15dae1c6 100644--- a/app/src/renderer/src/styles.css+++ b/app/src/renderer/src/styles.css@@ -545,8 +545,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;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-recorder-controls { display:flex;align-items:center;gap:8px; }+.note-elapsed { font-size:11px;font-variant-numeric:tabular-nums;color:var(--muted);white-space:nowrap; }.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:4px;height:36px;padding-inline:4px;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); }