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
Site: a walkthrough step's description no longer overlaps its title while the step opens
Eric Brownrout45197245b0ea
diff --git a/site/content/home.html b/site/content/home.htmlindex 727bcf94..70b2a47c 100644--- a/site/content/home.html+++ b/site/content/home.html@@ -62,7 +62,9 @@><span>Record the conversation</span><span aria-hidden="true" class="tour-plus">−</span></button></h3>- <p class="tour-description">Yogurt transcribes the call while you add your own notes.</p>+ <div class="tour-detail">+ <p class="tour-description">Yogurt transcribes the call while you add your own notes.</p>+ </div></div><div class="tour-item" data-selected="false"><h3>@@ -98,9 +100,9 @@><span>Leave with a clear plan</span><span aria-hidden="true" class="tour-plus">+</span></button></h3>- <p class="tour-description" hidden="">- Yogurt’s AI turns your notes and the conversation into a summary.- </p>+ <div class="tour-detail">+ <p class="tour-description">Yogurt’s AI turns your notes and the conversation into a summary.</p>+ </div></div><div class="tour-item" data-selected="false"><h3>@@ -130,7 +132,9 @@><span>Ask what you missed</span><span aria-hidden="true" class="tour-plus">+</span></button></h3>- <p class="tour-description" hidden="">Ask Yogurt’s AI and get an answer linked to the meeting.</p>+ <div class="tour-detail">+ <p class="tour-description">Ask Yogurt’s AI and get an answer linked to the meeting.</p>+ </div></div></div><div class="tour-visual">diff --git a/site/public/marketing/reserve.mjs b/site/public/marketing/reserve.mjsindex 1c842f37..4d3e7ee3 100644--- a/site/public/marketing/reserve.mjs+++ b/site/public/marketing/reserve.mjs@@ -35,7 +35,6 @@ reserve(document.querySelector('.faq-list'), 'details', (row, open) => {})reserve(document.querySelector('.tour-list'), '.tour-item', (row, open) => {row.dataset.selected = String(open)- row.querySelector('.tour-description').hidden = !open})function revealAnswer() {diff --git a/site/public/marketing/site.css b/site/public/marketing/site.cssindex 3d1d08d6..9749f7cf 100644--- a/site/public/marketing/site.css+++ b/site/public/marketing/site.css@@ -1610,7 +1610,8 @@ body[data-background=ribbon] .hero-copy{padding-bottom:70px}border-radius: 7px;}.tour-item {- padding: 0 20px;+ flex: 0 0 auto;+ padding: 0 20px 24px;}.tour-item h3 {margin: 0;@@ -1627,22 +1628,47 @@ body[data-background=ribbon] .hero-copy{padding-bottom:70px}font-size: 15px;line-height: 20px;font-weight: 500;- padding: 24px 0;+ padding: 24px 0 0;text-align: left;}+/* Keep the full closed-row button hit area, including the space below its title. */+.tour-item[data-selected='false'] button {+ padding-bottom: 24px;+ margin-bottom: -24px;+}.tour-item[data-selected='true'] {- flex: 1;+ flex-grow: 1;+}+.tour-detail {+ display: grid;+ grid-template-rows: 0fr;}-.tour-item[data-selected='true'] button {- padding-bottom: 0;+.tour-item[data-selected='true'] .tour-detail {+ grid-template-rows: 1fr;}.tour-description {color: var(--reading);font-size: 13px;line-height: 20px;- padding: 0 26px 24px 44px;+ min-height: 0;+ overflow: hidden;+ padding: 0 26px 0 44px;+ visibility: hidden;+ opacity: 0;margin: 0;}+.tour-item[data-selected='true'] .tour-description {+ visibility: inherit;+ opacity: 1;+}+@media (prefers-reduced-motion: no-preference) {+ /* The inert copy used to reserve space must always measure the final heights. */+ .tour-list:not([inert]) .tour-item { transition: flex-grow 240ms ease-out; }+ .tour-list:not([inert]) .tour-detail { transition: grid-template-rows 240ms ease-out; }+ .tour-list:not([inert]) .tour-item[data-selected='true'] .tour-description {+ transition: opacity 120ms ease-out 70ms;+ }+}.tour-plus {color: var(--reading);text-align: right;diff --git a/site/public/marketing/walkthrough.mjs b/site/public/marketing/walkthrough.mjsindex 554f2a0a..5bd02c7a 100644--- a/site/public/marketing/walkthrough.mjs+++ b/site/public/marketing/walkthrough.mjs@@ -78,7 +78,6 @@ function sync() {}function select(next, manual = false) {if (manual) automatic = false- const old = buttons.map((button) => button.getBoundingClientRect().top)active = nextelapsed = 0lastSent = -1@@ -87,23 +86,11 @@ function select(next, manual = false) {row = button.closest('.tour-item')row.dataset.selected = String(selected)button.setAttribute('aria-expanded', String(selected))- row.querySelector('.tour-description').hidden = !selectedrow.querySelector('.tour-plus').textContent = selected ? '−' : '+'row.querySelector('.marker-rim').style.strokeDashoffset = '1'panels[i].hidden = !selectedpanels[i].setAttribute('aria-hidden', String(!selected))})- if (!reduced.matches && visible) {- buttons.forEach((button, i) => {- button.getAnimations().forEach((a) => a.cancel())- const delta = old[i] - button.getBoundingClientRect().top- if (Math.abs(delta) > 1)- button.animate([{ transform: `translateY(${delta}px)` }, { transform: 'none' }], {- duration: 240,- easing: 'ease-out',- })- })- }sync()}buttons.forEach((button, i) => button.addEventListener('click', () => select(i, true)))diff --git a/site/scripts/stills.mjs b/site/scripts/stills.mjsindex 81cd26e5..9f0eb998 100644--- a/site/scripts/stills.mjs+++ b/site/scripts/stills.mjs@@ -4,6 +4,7 @@ import fs from 'node:fs/promises'import os from 'node:os'import path from 'node:path'import { fileURLToPath } from 'node:url'+import { verifyWalkthroughFrames } from './walkthrough-frames.mjs'import assert from 'node:assert/strict'const site = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..')@@ -41,6 +42,7 @@ try {return result.result.value}await call('Page.enable'); await call('Runtime.enable')+ await verifyWalkthroughFrames(call, origin)const {createRequire}=await import('node:module')const require=createRequire(await fs.realpath(path.join(site,'node_modules/next/package.json'))),sharp=require('sharp')const {beats,timing}=await import('../renderer/timeline.mjs')diff --git a/site/scripts/walkthrough-frames.mjs b/site/scripts/walkthrough-frames.mjsnew file mode 100644index 00000000..200b5fd2--- /dev/null+++ b/site/scripts/walkthrough-frames.mjs@@ -0,0 +1,130 @@+import assert from 'node:assert/strict'++// Runs inside Chrome against the rendered walkthrough. Capture the synchronous+// selection frame as well as each painted frame, including interrupted transitions.+export async function sampleWalkthrough(mode) {+ const rows = [...document.querySelectorAll('.tour-item')]+ const buttons = rows.map((row) => row.querySelector('button'))+ const result = {+ frames: 0,+ collisions: 0,+ worst: 0,+ closingVisible: 0,+ aboveTitle: 0,+ changes: [],+ settled: false,+ }+ let active = -1+ const start = performance.now()+ let lastChange = start+ function capture() {+ result.frames+++ const current = rows.findIndex((row) => row.dataset.selected === 'true')+ if (active !== current) {+ active = current+ result.changes.push(current)+ lastChange = performance.now()+ }+ const headings = buttons.map((button) =>+ button.querySelector('span:nth-child(2)').getBoundingClientRect()+ )+ for (const [i, row] of rows.entries()) {+ const description = row.querySelector('.tour-description')+ const rect = description.getBoundingClientRect(),+ style = getComputedStyle(description)+ if (!rect.height || style.visibility !== 'visible' || Number(style.opacity) === 0) continue+ if (i !== active) result.closingVisible+++ if (rect.top < headings[i].bottom - 0.01) result.aboveTitle+++ for (const title of headings) {+ if (rect.left >= title.right || rect.right <= title.left) continue+ const overlap = Math.min(rect.bottom, title.bottom) - Math.max(rect.top, title.top)+ if (overlap > 0.01) {+ result.collisions+++ result.worst = Math.max(result.worst, overlap)+ }+ }+ }+ }+ async function sampleFor(ms) {+ const end = performance.now() + ms+ do {+ capture()+ await new Promise(requestAnimationFrame)+ } while (performance.now() < end)+ capture()+ }+ capture()+ if (mode === 'auto') {+ while (performance.now() - start < 90000) {+ await new Promise(requestAnimationFrame)+ capture()+ if (result.changes.length >= 4 && performance.now() - lastChange >= 310) break+ }+ } else {+ // Select every ordered pair so each title moves both up and down.+ const selections = mode === 'rapid' ? [1, 1, 0, 2, 1, 2, 0] : [1, 0, 2, 1, 2, 0]+ for (const index of selections) {+ buttons[index].click()+ capture()+ await sampleFor(mode === 'rapid' ? 45 : 310)+ }+ }+ await sampleFor(310)+ const index = buttons.findIndex((button) => button.getAttribute('aria-expanded') === 'true')+ const open = rows[index].querySelector('.tour-description')+ result.settled =+ getComputedStyle(open).visibility === 'visible' &&+ Number(getComputedStyle(open).opacity) === 1 &&+ open.clientHeight >= open.scrollHeight+ return result+}++export async function verifyWalkthroughFrames(call, origin) {+ await call('Page.bringToFront')+ // Verify the live CSS and title positions before exporting static renderer images.+ for (const width of [1280, 390]) {+ await call('Emulation.setDeviceMetricsOverride', {+ width,+ height: 900,+ deviceScaleFactor: 1,+ mobile: width < 761,+ })+ await call('Emulation.setEmulatedMedia', {+ features: [{ name: 'prefers-reduced-motion', value: 'no-preference' }],+ })+ await call('Page.navigate', { url: origin + '/?walkthroughViewport=' + width + '#how-it-works' })+ const sampled = await call('Runtime.evaluate', {+ expression: `(async () => {+ if (document.readyState !== 'complete') await new Promise(resolve => addEventListener('load', resolve, {once:true}))+ await document.fonts.ready+ document.querySelector('.tour-visual').scrollIntoView({block:'center', behavior:'instant'})+ await new Promise(resolve => requestAnimationFrame(() => requestAnimationFrame(resolve)))+ return [await (${sampleWalkthrough})('auto'), await (${sampleWalkthrough})('manual'), await (${sampleWalkthrough})('rapid')]+ })()`,+ awaitPromise: true,+ returnByValue: true,+ })+ assert(!sampled.exceptionDetails, sampled.exceptionDetails?.exception?.description)+ for (const [i, trace] of sampled.result.value.entries()) {+ assert.deepEqual(+ trace.changes,+ i === 0 ? [0, 1, 2, 0] : [0, 1, 0, 2, 1, 2, 0],+ 'every step must open and close'+ )+ assert(+ trace.frames > 10 && trace.settled,+ 'the walkthrough must render intermediate frames and settle'+ )+ assert.equal(+ trace.collisions + trace.aboveTitle,+ 0,+ 'visible walkthrough text must stay below its title and clear every other title'+ )+ assert.equal(+ trace.closingVisible,+ 0,+ 'a closing description must disappear before its row contracts'+ )+ }+ }+}