Skip to content

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.

Launch: frosted glass with a still mark on the Mac

Eric Brownroutf8333a21cc9c
diff --git a/app/src/renderer/src/App.tsx b/app/src/renderer/src/App.tsx
index ea2a8b45..7a7cb103 100644
--- a/app/src/renderer/src/App.tsx
+++ b/app/src/renderer/src/App.tsx
@@ -15,7 +15,7 @@ import { command, onMac } from './keys'
import { TrashToast } from './components/TrashToast'
import { Trash } from './screens/Trash'
import { ChatPage } from './screens/ChatPage'
-import { BootScreen } from './components/BootScreen'
+import { BootScreen, MacLaunch } from './components/BootScreen'
import { bootHoldMs } from '../../shared/onboarding'
import { Folder } from './screens/Folder'
import { AskRecordingWait, watchRecordingWait } from './askAvailability'
@@ -183,8 +183,6 @@ export function App() {
open(s.meetingId)
}
- // still starting, or checking what is on disk: the launch screen, so a finished install never flashes the first-run screen
- if (!setup || !plan || holding) return <div data-testid="app-shell" className="flex h-full flex-col bg-bg"><TitleBar />{!setup && setupFailed ? <ReadError testId="setup-read-error" retry={() => setSetupAttempt(n => n + 1)} /> : <BootScreen />}</div>
const noteId = route.startsWith('/note/') ? route.slice(6) : null
const settings = route === '/settings' || route.startsWith('/settings/')
const trash = route === '/trash'
@@ -199,15 +197,25 @@ export function App() {
folderSuggestion={suggestedFolder ? { folder: suggestedFolder, dismiss: () => dismissFolderSuggestion(noteId) } : undefined} />
: chatId !== undefined ? <ChatPage id={chatId} go={go} openSource={openSource} />
: trash ? <Trash open={open} /> : folderScreen || <Home open={open} openFolder={(id) => go(`/folder/${id}`)} agendaJump={agendaJump} />
- return (
- <AskRecordingWait value={recordingWait}><div data-testid="app-shell" className={`h-full text-ink ${ready ? 'bg-transparent' : 'bg-bg'}`}>
- {ready ? <Workspace route={route} meeting={meeting} folders={folders} go={go} back={history.current.length ? back : undefined} forward={future.current.length ? forward : undefined} search={() => setSearching(true)} collapsed={sidebarCollapsed} sidebarMotion={sidebarMotion} toggleSidebar={toggleSidebar}>{screen}</Workspace>
- : <><TitleBar />{setup.phase === 'checking' && firstRunDone ? <BootScreen /> : <Onboarding state={setup} plan={plan} onDone={() => setPlan({ intro: false, steps: [] })} />}</>}
- {ready && searching && <Search folder={folder} folders={folders} onOpen={open} onNavigate={go} onShortcuts={openShortcuts} onSettingsChange={() => setSettingsRevision((v) => v + 1)} onClose={() => setSearching(false)} sidebarCollapsed={sidebarCollapsed} onToggleSidebar={() => toggleSidebar()} />}
- {ready && shortcuts && <Shortcuts onClose={() => setShortcuts(false)} />}
- {ready && <TrashToast go={go} />}
- </div></AskRecordingWait>
- )
+ const mac = window.yogurt.platform === 'darwin'
+ const startupError = !setup && setupFailed
+ const launching = mac && !startupError && (!booted || holding)
+ const boot = mac ? null : <BootScreen />
+ const starting = !setup || !plan || holding
+ const inWorkspace = !starting && ready
+ const page = starting
+ ? <><TitleBar />{startupError ? <ReadError testId="setup-read-error" retry={() => setSetupAttempt(n => n + 1)} /> : boot}</>
+ : ready ? <Workspace route={route} meeting={meeting} folders={folders} go={go} back={history.current.length ? back : undefined} forward={future.current.length ? forward : undefined} search={() => setSearching(true)} collapsed={sidebarCollapsed} sidebarMotion={sidebarMotion} toggleSidebar={toggleSidebar}>{screen}</Workspace>
+ : <><TitleBar />{setup.phase === 'checking' && firstRunDone ? boot : <Onboarding state={setup} plan={plan} onDone={() => setPlan({ intro: false, steps: [] })} />}</>
+ return <AskRecordingWait value={recordingWait}>
+ {mac && <MacLaunch active={launching} />}
+ <div data-testid="app-shell" inert={launching || undefined} className={starting ? 'app-shell flex h-full flex-col bg-bg' : `app-shell h-full text-ink ${ready ? 'bg-transparent' : 'bg-bg'}`}>
+ {page}
+ {inWorkspace && searching && <Search folder={folder} folders={folders} onOpen={open} onNavigate={go} onShortcuts={openShortcuts} onSettingsChange={() => setSettingsRevision((v) => v + 1)} onClose={() => setSearching(false)} sidebarCollapsed={sidebarCollapsed} onToggleSidebar={() => toggleSidebar()} />}
+ {inWorkspace && shortcuts && <Shortcuts onClose={() => setShortcuts(false)} />}
+ {inWorkspace && <TrashToast go={go} />}
+ </div>
+ </AskRecordingWait>
}
/** Keep the native traffic-light strip clear during setup; draggable, and the page's own colour so first run reads as one surface. */
diff --git a/app/src/renderer/src/components/BootScreen.tsx b/app/src/renderer/src/components/BootScreen.tsx
index 29cab3d6..35c8d7ba 100644
--- a/app/src/renderer/src/components/BootScreen.tsx
+++ b/app/src/renderer/src/components/BootScreen.tsx
@@ -1,4 +1,4 @@
-import { useId } from 'react'
+import { useEffect, useId, useState } from 'react'
import { MARK } from '../../../shared/logo'
import { BOOT } from '../../../shared/onboarding'
@@ -28,3 +28,19 @@ export function BootScreen() {
</div>
)
}
+
+/** The existing native material sits behind the whole window. Only expose it during launch. */
+export function MacLaunch({ active }: { active: boolean }) {
+ const [showMark, setShowMark] = useState(() => performance.now() >= BOOT.showAfterMs)
+ useEffect(() => {
+ if (!active || showMark) return
+ const timer = setTimeout(() => setShowMark(true), Math.max(0, BOOT.showAfterMs - performance.now()))
+ return () => clearTimeout(timer)
+ }, [active, showMark])
+ return <div className="mac-launch" data-active={active || undefined} aria-hidden={!active || undefined}
+ data-testid={active ? 'boot-screen' : undefined} role="status" aria-label="Yogurt">
+ {showMark && <svg width={52} height={52} viewBox="0 0 100 100" aria-hidden="true" className="mac-launch-mark text-neutral-400 dark:text-white">
+ <path d={MARK} fill="currentColor" />
+ </svg>}
+ </div>
+}
diff --git a/app/src/renderer/src/setup.css b/app/src/renderer/src/setup.css
index 57658e8c..887dec7b 100644
--- a/app/src/renderer/src/setup.css
+++ b/app/src/renderer/src/setup.css
@@ -105,6 +105,19 @@
@keyframes boot-in { to { opacity:1; } }
@keyframes boot-sweep { 0% { transform:translateX(0); } 70%,100% { transform:translateX(190px); } }
+/* The window already has native under-window vibrancy; the launch surface needs no painted fill. */
+.mac-launch { position:fixed;inset:0;display:grid;place-items:center;visibility:hidden;opacity:0;pointer-events:none; }
+.mac-launch[data-active] { visibility:visible;opacity:1;-webkit-app-region:drag;pointer-events:auto; }
+.mac-launch-mark { translate:0 -1vh; }
+.mac-launch[data-active] + .app-shell { visibility:hidden;opacity:0; }
+@media (prefers-reduced-transparency:reduce) {
+ .mac-launch,html.main-window:not([data-chrome=overlay]) #root:empty { background:var(--bg); }
+}
+@media (prefers-reduced-motion:no-preference) and (prefers-reduced-transparency:no-preference) {
+ .mac-launch:not([data-active]) { transition:opacity var(--dur-base) var(--ease-out),visibility 0s var(--dur-base); }
+ .mac-launch:not([data-active]) + .app-shell { transition:opacity var(--dur-base) var(--ease-out); }
+}
+
.ob-guide { display:flex;flex-direction:column;align-items:center;gap:12px;width:100%;max-width:360px; }
.ob-guide-copy { width:100%;font-size:13px;line-height:20px;color:var(--written);text-align:start; }
.ob-guide-waiting { width:100%;font-size:12px;line-height:18px;color:var(--muted);text-align:start; }
diff --git a/app/test/glassLaunch.test.ts b/app/test/glassLaunch.test.ts
new file mode 100644
index 00000000..b3871036
--- /dev/null
+++ b/app/test/glassLaunch.test.ts
@@ -0,0 +1,44 @@
+import { readFileSync } from 'node:fs'
+import { createElement } from 'react'
+import { renderToStaticMarkup } from 'react-dom/server'
+import { afterEach, expect, it, vi } from 'vitest'
+import { App } from '../src/renderer/src/App'
+import { MacLaunch } from '../src/renderer/src/components/BootScreen'
+import { MARK } from '../src/shared/logo'
+import { BOOT } from '../src/shared/onboarding'
+
+afterEach(() => { vi.restoreAllMocks(); vi.unstubAllGlobals() })
+
+function startup(platform: string, elapsed: number) {
+ vi.stubGlobal('window', { innerWidth: 1100, yogurt: { platform } })
+ vi.spyOn(performance, 'now').mockReturnValue(elapsed)
+ return renderToStaticMarkup(createElement(App))
+}
+
+it('exposes the Mac material with one still Yogurt mark after the existing startup delay', () => {
+ expect(startup('darwin', BOOT.showAfterMs - 1)).not.toContain('<svg')
+ const html = startup('darwin', BOOT.showAfterMs)
+ expect(html).toContain('class="mac-launch" data-active="true"')
+ expect(html).toContain('data-testid="app-shell" inert=""')
+ expect(html).toContain('width="52" height="52"')
+ expect(html).toContain(`d="${MARK}" fill="currentColor"`)
+ expect(html).toContain('text-neutral-400 dark:text-white')
+ expect(html).not.toMatch(/boot-band|linearGradient/)
+ const done = renderToStaticMarkup(createElement(MacLaunch, { active: false }))
+ expect(done).toContain('aria-hidden="true"')
+ expect(done).not.toMatch(/data-active|data-testid="boot-screen"/)
+})
+
+it.each(['win32', 'linux'])('keeps the existing solid launch on %s', os => {
+ const html = startup(os, BOOT.showAfterMs)
+ expect(html).toContain('class="boot-screen"')
+ expect(html).toContain('class="boot-band"')
+ expect(html).not.toMatch(/mac-launch|inert=""/)
+})
+
+it('positions the mark at 49% and gates the handoff on both accessibility preferences', () => {
+ const css = readFileSync(new URL('../src/renderer/src/setup.css', import.meta.url), 'utf8')
+ expect(css).toMatch(/\.mac-launch-mark \{[^}]*translate:0 -1vh/)
+ expect(css).toMatch(/@media \(prefers-reduced-transparency:reduce\)\s*\{\s*\.mac-launch,[^{]+\{ background:var\(--bg\)/)
+ expect(css).toMatch(/@media \(prefers-reduced-motion:no-preference\) and \(prefers-reduced-transparency:no-preference\)\s*\{\s*\.mac-launch:not\(\[data-active\]\) \{[^}]+\}\s*\.mac-launch:not\(\[data-active\]\) \+ \.app-shell \{ transition:opacity var\(--dur-base\)/)
+})
diff --git a/app/test/motionInteractions.test.ts b/app/test/motionInteractions.test.ts
index d982b556..5bbef919 100644
--- a/app/test/motionInteractions.test.ts
+++ b/app/test/motionInteractions.test.ts
@@ -1,5 +1,6 @@
import { CalendarDays, Check, FileText, ICON_STROKE_WIDTH } from '../src/renderer/src/components/Icons'
import { renderToStaticMarkup } from 'react-dom/server'
+import { App } from '../src/renderer/src/App'
import { afterEach, expect, it, vi } from 'vitest'
import { useEffect, useLayoutEffect, useRef, useState, type ReactElement, type ReactNode } from 'react'
import { useDialogFocus } from '../src/renderer/src/useDialogFocus'
@@ -1088,3 +1089,35 @@ it.each([false, true])('keeps Copy on the current answer without revealing older
initial.turns[2].answer = ''
expect(turns().map(turn => turn.props.showCopy)).toEqual([false, false, true])
})
+
+it('hands the same shell from the Mac launch to a read error, checking and the ready workspace', async () => {
+ vi.useFakeTimers()
+ let checking!: (s: { phase: string }) => void
+ vi.stubGlobal('window', { innerWidth: 1100, yogurt: { platform: 'darwin',
+ setup: { state: vi.fn().mockRejectedValue(new Error('read')), onState: (update: typeof checking) => { checking = update; return () => {} } },
+ onboarding: { plan: async () => ({ steps: [], intro: false }) },
+ } })
+ const render = renderer(App)
+ let tree = render()
+ expect(find(tree, 'MacLaunch').props.active).toBe(true)
+ const shell = find(tree, 'app-shell')
+ expect(shell.props.inert).toBe(true)
+ const [readSetup, readPlan] = vi.mocked(useEffect).mock.calls.slice(2, 4)
+ readSetup[0](); readPlan[0]()
+ await Promise.resolve()
+ tree = render()
+ expect(find(tree, 'MacLaunch').props.active).toBe(false)
+ expect(find(tree, 'ReadError').props.testId).toBe('setup-read-error')
+ checking({ phase: 'checking' })
+ expect(find(render(), 'MacLaunch').props.active).toBe(true)
+ checking({ phase: 'ready' })
+ render()
+ vi.mocked(useEffect).mock.calls[4][0]() // readiness releases the launch hold
+ vi.runAllTimers()
+ tree = render()
+ expect(find(tree, 'app-shell').type).toBe(shell.type)
+ expect(find(tree, 'app-shell').props.inert).toBeUndefined()
+ expect(find(tree, 'MacLaunch').props.active).toBe(false)
+ const workspace = find(tree, 'Workspace')
+ expect(workspace.props.route).toBe('')
+})