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
fix e2e for the ask morph, 60% sidebar glass, and an ask page that holds its scrollbar gutter
Eric Brownrout2ca3d09f249d
diff --git a/app/e2e/askContext.spec.ts b/app/e2e/askContext.spec.tsindex c8905842..8f821f43 100644--- a/app/e2e/askContext.spec.ts+++ b/app/e2e/askContext.spec.ts@@ -127,8 +127,8 @@ test('Ask has soft thread edges, compact bubbles, and expands the same reading pawait expect(panel).toHaveCSS('width', '420px')await expect(panel.locator('.ask-conversation-head')).toHaveCSS('border-bottom-width', '0px')await expect(panel.locator('.ask-composer')).toHaveCSS('border-top-width', '0px')+ await expect(page.getByTestId('chat-suggestion')).toHaveCount(3)const suggestions = await page.getByTestId('chat-suggestion').all()- expect(suggestions).toHaveLength(3)const boxes = await Promise.all(suggestions.map(s => s.boundingBox()))for (let i = 1; i < boxes.length; i++) {expect(boxes[i]!.y).toBeGreaterThan(boxes[i - 1]!.y + boxes[i - 1]!.height)@@ -148,7 +148,8 @@ test('Ask has soft thread edges, compact bubbles, and expands the same reading pid: i + 1, question: `Question ${i + 1}`, answer: 'A saved paragraph about the meeting. '.repeat(20), status: 'done', sources: [],})) }))}, view)- await input.press('Escape'); await page.keyboard.press('Meta+j')+ // Escape folds Ask back into its button; reopening after that loads the saved draft+ await input.press('Escape'); await expect(panel).toHaveCount(0); await page.keyboard.press('Meta+j')await expect(input).toHaveValue('Keep my draft')const thread = panel.locator('.ask-thread')for (const colorScheme of ['light', 'dark'] as const) {diff --git a/app/e2e/chat.spec.ts b/app/e2e/chat.spec.tsindex 6bba2910..9657d7c2 100644--- a/app/e2e/chat.spec.ts+++ b/app/e2e/chat.spec.ts@@ -323,7 +323,7 @@ test('an unacknowledged question cannot be sent twice, and a rejected request ke})-test('Ask fades without stretching, preserves its draft, and respects reduced motion', async () => {+test('Ask grows out of its button without stretching its content, preserves its draft, and respects reduced motion', async () => {const { app, page } = await launch()try {const id = await fake<string>(app, 'bigMeeting', 10)@@ -331,10 +331,10 @@ test('Ask fades without stretching, preserves its draft, and respects reduced moawait page.emulateMedia({ reducedMotion: 'no-preference' })const trigger = page.getByTestId('chat-open')await trigger.click()- const surface = page.getByTestId('chat-panel')- const frames = await surface.evaluate((el) => (el.getAnimations()[0]?.effect as KeyframeEffect)?.getKeyframes())- expect(frames.map(f => Number(f.opacity))).toEqual([0, 1])- expect(frames.every(f => !f.transform)).toBe(true)+ // only the surface stretches out of the button; the chat inside keeps its size+ const shell = page.locator('.chat-morph-surface')+ const frames = await shell.evaluate((el) => el.getAnimations().map(a => (a.effect as KeyframeEffect).getKeyframes()).find(k => k.some(f => f.transform)))+ expect(frames?.at(-1)?.transform).toBe('none')await expect(page.locator('.chat-panel-contents')).toHaveCSS('transform', 'none')await expect(page.locator('.chat-panel-contents')).toHaveCSS('filter', 'none')await page.getByTestId('chat-input').fill('Keep this thought')@@ -343,13 +343,14 @@ test('Ask fades without stretching, preserves its draft, and respects reduced moawait expect(trigger).toBeFocused()await page.keyboard.press('Meta+j')await expect(page.getByTestId('chat-input')).toBeFocused()- expect(await surface.evaluate(el => el.getAnimations().length)).toBe(0)+ // ⌘J grows it out of the button too+ expect(await shell.evaluate(el => el.getAnimations().length)).toBeGreaterThan(0)await page.keyboard.press('Escape')await expect(trigger).toBeFocused()await page.emulateMedia({ reducedMotion: 'reduce' })await page.keyboard.press('Meta+j')await expect(page.getByTestId('chat-input')).toHaveValue('Keep this thought')- expect(await surface.evaluate((el) => el.getAnimations().length)).toBe(0)+ expect(await shell.evaluate((el) => el.getAnimations().length)).toBe(0)await page.keyboard.press('Escape')await expect(trigger).toBeFocused()} finally { await app.close() }diff --git a/app/e2e/loadingAndFeedback.spec.ts b/app/e2e/loadingAndFeedback.spec.tsindex 077d9aba..cb7ff20e 100644--- a/app/e2e/loadingAndFeedback.spec.ts+++ b/app/e2e/loadingAndFeedback.spec.ts@@ -94,7 +94,7 @@ test('toast yields to Ask Yogurt and returns without replacing its Undo action',return !!a && !!b && a.x + a.width + 10 <= b.x}).toBe(true)await toast.hover()- await page.getByTestId('chat-panel').evaluate(el => Promise.allSettled(el.getAnimations({ subtree: true }).map(a => a.finished)))+ await page.getByTestId('chat-panel').evaluate(el => Promise.allSettled(el.getAnimations({ subtree: true }).filter(a => a.effect?.getComputedTiming().endTime !== Infinity).map(a => a.finished)))await page.emulateMedia({ colorScheme: 'dark' })await page.screenshot({ path: testInfo.outputPath('toast-beside-chat.png') })await page.getByTestId('chat-close').click()@@ -106,7 +106,7 @@ test('toast yields to Ask Yogurt and returns without replacing its Undo action',const a = await toast.boundingBox(), b = await page.getByTestId('chat-panel').boundingBox()return !!a && !!b && b.y + b.height + 8 <= a.y}).toBe(true)- await page.getByTestId('chat-panel').evaluate(el => Promise.allSettled(el.getAnimations({ subtree: true }).map(a => a.finished)))+ await page.getByTestId('chat-panel').evaluate(el => Promise.allSettled(el.getAnimations({ subtree: true }).filter(a => a.effect?.getComputedTiming().endTime !== Infinity).map(a => a.finished)))await page.screenshot({ path: testInfo.outputPath('toast-narrow-chat.png') })await page.getByTestId('trash-undo').click()await expect(toast).toHaveCount(0)diff --git a/app/e2e/windowChrome.spec.ts b/app/e2e/windowChrome.spec.tsindex b290efb4..21da426d 100644--- a/app/e2e/windowChrome.spec.ts+++ b/app/e2e/windowChrome.spec.ts@@ -21,7 +21,7 @@ test('glass is limited to chrome, with solid reading surfaces and a reduced-tran{ name: 'prefers-contrast', value: 'no-preference' },] })const chrome = await page.locator('.workspace').evaluate(el => ({ background: getComputedStyle(el).backgroundColor, opacity: getComputedStyle(el).opacity }))- expect(chrome.background).toContain('0.7')+ expect(chrome.background).toContain('0.6')expect(chrome.opacity).toBe('1')for (const selector of ['html', 'body', '#root', '[data-testid=app-shell]']) {expect(await page.locator(selector).evaluate(el => getComputedStyle(el).backgroundColor)).toBe('rgba(0, 0, 0, 0)')diff --git a/app/src/renderer/src/workspace.css b/app/src/renderer/src/workspace.cssindex 8ff38284..3ea25c31 100644--- a/app/src/renderer/src/workspace.css+++ b/app/src/renderer/src/workspace.css@@ -417,7 +417,8 @@ body:has(.chat-panel[open]) .app-toast-viewport { inset-inline-end:460px; }}/* Ask keeps one reading column and one composer in both surfaces. */-.ask-page { contain:layout;height:100%;min-height:0;display:flex;flex-direction:column;overflow-y:auto;padding:104px 32px 24px; }+/* a gutter held from the start: a scrollbar appearing as context grows would shift the centred page sideways */+.ask-page { contain:layout;height:100%;min-height:0;display:flex;flex-direction:column;overflow-y:auto;scrollbar-gutter:stable both-edges;padding:104px 32px 24px; }.ask-page-toolbar { position:absolute;z-index:4;top:68px;inset-inline:24px;display:flex;align-items:center;justify-content:flex-end;gap:12px;height:28px; }.ask-recent-button,.ask-back { display:inline-flex;align-items:center;gap:8px;height:28px;padding-inline:8px;border-radius:6px;color:var(--muted);font-size:12px; }.ask-recent-button:hover,.ask-recent-button[aria-expanded=true],.ask-back:hover { background:var(--control);color:var(--ink); }