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
Ask: the chip shows the note's own title, and a tidier rename dialog
Eric Brownrout62d576183d16
diff --git a/app/e2e/libraryChat.spec.ts b/app/e2e/libraryChat.spec.tsindex 1e383b8d..cd5068bd 100644--- a/app/e2e/libraryChat.spec.ts+++ b/app/e2e/libraryChat.spec.ts@@ -147,6 +147,15 @@ test('a follow-up stays in the chat; New chat starts another; chats can be renamexpect(await recentTime.boundingBox()).toEqual(timeBox)await page.locator('.ask-history-row').nth(1).getByTestId('chat-menu').click()await page.getByTestId('chat-rename').click()+ await expect(page.getByTestId('chat-rename-input')).toBeFocused()+ await expect(page.getByTestId('chat-rename-input')).toHaveCSS('outline-style', 'none')+ await expect(page.getByTestId('chat-rename-save')).toHaveClass(/\bprimary\b/)+ const renameField = await page.getByTestId('chat-rename-dialog').locator('.people-add-field').boundingBox()+ const renameSave = await page.getByTestId('chat-rename-save').boundingBox()+ const renameDialog = await page.getByTestId('chat-rename-dialog').boundingBox()+ expect(renameField!.x).toBeCloseTo(renameSave!.x, 0)+ expect(renameField!.width).toBeCloseTo(renameSave!.width, 0)+ expect(renameField!.x - renameDialog!.x).toBeGreaterThanOrEqual(20)await page.getByTestId('chat-rename-input').fill('Weekly to-dos')await page.getByTestId('chat-rename-input').press('Enter')await page.getByTestId('chat-recent').click()diff --git a/app/src/main/library/store.ts b/app/src/main/library/store.tsindex de49b201..adac474d 100644--- a/app/src/main/library/store.ts+++ b/app/src/main/library/store.ts@@ -173,8 +173,8 @@ export class Library {}describe(chips: ContextChip[]): ContextTarget[] {return chips.map(c => {- const r = (c.kind === 'meeting' ? this.db.prepare('SELECT title,title_source FROM meetings WHERE id = ?') : this.db.prepare('SELECT name AS title FROM folders WHERE id = ?')).get(c.id) as Row | undefined- return { ...c, title: r?.title_source === 'generic' ? '' : String(r?.title ?? '').trim() }+ const r = (c.kind === 'meeting' ? this.db.prepare('SELECT title FROM meetings WHERE id = ?') : this.db.prepare('SELECT name AS title FROM folders WHERE id = ?')).get(c.id) as Row | undefined+ return { ...c, title: String(r?.title ?? '').trim() }})}scope(chips: ContextChip[]) {diff --git a/app/src/renderer/src/components/ConversationActions.tsx b/app/src/renderer/src/components/ConversationActions.tsxindex 3b8c497c..157ef003 100644--- a/app/src/renderer/src/components/ConversationActions.tsx+++ b/app/src/renderer/src/components/ConversationActions.tsx@@ -56,12 +56,14 @@ export function ConversationDialog({ id, title, kind, container, onClose, onDeletitle={kind === 'delete' ? t('Delete “{title}”?', { title: title || t('New chat') }) : t('Rename “{title}”', { title: title || t('New chat') })}description={kind === 'delete' ? osWords({ mac: t('This conversation is removed from this Mac for good. Your meetings stay as they are.'), other: t('This conversation is removed from this computer for good. Your meetings stay as they are.') }) : undefined}><form onSubmit={e => { e.preventDefault(); void save() }}>- {kind === 'rename' && <input data-dialog-focus data-testid="chat-rename-input" aria-label={t('Conversation name')} value={draft} maxLength={200}- className="chat-rename-input" disabled={busy} onChange={e => setDraft(e.target.value)} />}+ {kind === 'rename' && <div className="people-add-field mx-5 mb-4 flex h-9 items-center rounded-md border border-line bg-card px-2.5">+ <input data-dialog-focus data-testid="chat-rename-input" aria-label={t('Conversation name')} value={draft} maxLength={200}+ className="h-full min-w-0 flex-1 bg-transparent text-[13px] outline-none placeholder:text-muted" disabled={busy} onChange={e => setDraft(e.target.value)} />+ </div>}{error && <p className="chat-error" role="alert">{t("Couldn't save your changes")}</p>}<div className="modal-actions"><button type="submit" data-testid={kind === 'delete' ? 'chat-delete-yes' : 'chat-rename-save'} disabled={busy || kind === 'rename' && !draft.trim()}- className={`modal-button${kind === 'delete' ? ' danger' : ''}`}>{kind === 'delete' ? t('Delete') : t('Save')}</button>+ className={`modal-button ${kind === 'delete' ? 'danger' : 'primary'}`}>{kind === 'delete' ? t('Delete') : t('Save')}</button><ModalClose type="button" data-dialog-cancel data-testid="chat-delete-cancel" className="modal-button" disabled={busy}>{t('Cancel')}</ModalClose></div></form>diff --git a/app/src/renderer/src/workspace.css b/app/src/renderer/src/workspace.cssindex 46878ac9..af9d6c84 100644--- a/app/src/renderer/src/workspace.css+++ b/app/src/renderer/src/workspace.css@@ -344,7 +344,6 @@100% { clip-path:inset(0 round 12px); }}@media(prefers-reduced-motion:reduce) { .citation-card { transition:none; }.citation-card * { animation:none!important; }.citation-liquid { filter:none!important; } }-.chat-rename-input { width:100%;height:34px;padding:0 8px;border:1px solid var(--focus);border-radius:6px;background:var(--float);color:var(--ink); }::highlight(citation-target) { background:color-mix(in srgb,var(--accent-soft) 70%,transparent); }[data-focused] { background:color-mix(in srgb,var(--accent-soft) 70%,transparent); }@container (max-width:700px) { .native-home { grid-template-columns:minmax(0,1fr) 235px; }.native-library { padding:24px 18px; }.native-agenda { padding-block:25px;--agenda-inset:15px; }.meeting-description strong { font-size:13px; }.meeting-meta { font-size:10px; } }diff --git a/app/test/askContext.test.ts b/app/test/askContext.test.tsindex 1a26b198..d55bf49e 100644--- a/app/test/askContext.test.ts+++ b/app/test/askContext.test.ts@@ -198,12 +198,12 @@ it('a failed question insert leaves the draft and first-message context intact',expect(l.conversation(id)).toMatchObject({ draft: 'Keep this draft', firstChips: null })})-it('resolves current meeting and folder titles, preserving user titles and identifying unnamed meetings', () => {+it('resolves current meeting and folder titles, showing the same title as the note', () => {const { store: s, library: l } = fresh(), m = meeting(s, 'Meeting')const folder = s.db.prepare('INSERT INTO folders (id,name,created_at) VALUES (?,?,?)')folder.run('f', 'Customers', 1)const chips = [{ kind: 'meeting' as const, id: m.id }, { kind: 'folder' as const, id: 'f' }]- expect(l.describe(chips).map(c => c.title)).toEqual(['', 'Customers'])+ expect(l.describe(chips).map(c => c.title)).toEqual(['Meeting', 'Customers'])s.updateMeeting(m.id, { title: 'Design review with LT', titleSource: 'user' })s.db.prepare('UPDATE folders SET name = ? WHERE id = ?').run('Product', 'f')expect(l.describe(chips).map(c => c.title)).toEqual(['Design review with LT', 'Product'])