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
Calls (Mac): the Take notes card is a non-activating panel, so closing it never brings Yogurt's window forward
christianmatb4d3e395a11f
diff --git a/app/src/main/float.ts b/app/src/main/float.tsindex c09232b0..ad3754e4 100644--- a/app/src/main/float.ts+++ b/app/src/main/float.ts@@ -10,7 +10,7 @@ export function floatOverFullScreen(w: Floating): void {}/**- * The floating windows' type. A Mac: the widget is a non-activating panel, the card a plain window, as always.+ * The floating windows' type. A Mac: the widget and the Take notes card are non-activating panels, the stop card a plain window.* Windows and Linux have no panels: a tool window stays out of Alt+Tab and the taskbar; focusable: false keeps it from taking focus.*/export const floatingType = (os: string, mac?: 'panel'): 'panel' | 'toolbar' | undefined => (os === 'darwin' ? mac : 'toolbar')diff --git a/app/src/main/prompts.ts b/app/src/main/prompts.tsindex 6de00def..3d81d351 100644--- a/app/src/main/prompts.ts+++ b/app/src/main/prompts.ts@@ -15,7 +15,9 @@ function createCard(kind: PromptView['kind'], os = 'darwin'): BrowserWindow {const { workArea } = screen.getPrimaryDisplay()const width = 381, height = 60const background = () => nativeTheme.shouldUseDarkColors ? '#29292B' : '#FFFFFF'- const type = floatingType(os)+ // A Mac: the Take notes card is a non-activating panel like the widget, so clicking it (its X included) never makes+ // Yogurt the active app and brings its window forward. The stop card takes keyboard focus, so it stays a plain window.+ const type = floatingType(os, kind === 'start' ? 'panel' : undefined)const w = new BrowserWindow({...(type ? { type } : {}),width, height, x: workArea.x + workArea.width - width - 16, y: workArea.y + 12,diff --git a/app/test/promptWindow.test.ts b/app/test/promptWindow.test.tsindex 83288554..3216afab 100644--- a/app/test/promptWindow.test.ts+++ b/app/test/promptWindow.test.ts@@ -41,9 +41,12 @@ it('gives both prompts the same compact frame and top-right placement', () => {prompts.askStop({id:'meeting',title:'Design review'} as any)expect(state.windows[1].options).toMatchObject({width:381,height:60,x:803,y:12,focusable:true})})-it("a Mac's card is a plain window, as before; Windows and Linux make it a tool window that never takes focus", async () => {+it("a Mac's Take notes card is a non-activating panel, so its X never brings Yogurt forward; Windows and Linux make it a tool window that never takes focus", async () => {prompts.offer({key:'call',app:'Zoom',title:''} as any)- expect(state.windows[0].options.type).toBeUndefined()+ expect(state.windows[0].options.type).toBe('panel')+ prompts.askStop({id:'meeting',title:'Design review'} as any)+ // the stop card takes keyboard focus for its buttons, so it stays a plain window+ expect(state.windows.at(-1).options.type).toBeUndefined()prompts.hide()const { createPrompts } = await import('../src/main/prompts')const pc = createPrompts({windowVisible:()=>true,takeNotes:vi.fn(),stop:vi.fn(),dismissed:vi.fn(),keepGoing:vi.fn(),dismissStop:vi.fn(),open:vi.fn(),os:'win32'})