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.

Ask: the meeting scope is a quiet button like the composer's other controls

Eric Brownrouteeec8dba5847
diff --git a/app/src/renderer/src/components/AskConversation.tsx b/app/src/renderer/src/components/AskConversation.tsx
index febd3f44..f2b2107c 100644
--- a/app/src/renderer/src/components/AskConversation.tsx
+++ b/app/src/renderer/src/components/AskConversation.tsx
@@ -353,7 +353,7 @@ export function AskConversation({ id, pendingDraftKey, initial, loadError = fals
setSelector(open ? { query: '' } : undefined)
}}>
<span className="ask-scope-group">
- <Popover.Trigger type="button" className="ask-scope" data-testid="ask-scope" onPointerEnter={prefetch} onFocus={prefetch} disabled={busy} aria-label={scopeName} title={chooseScope}><AskContext chips={chips} /></Popover.Trigger>
+ <Popover.Trigger type="button" className={chips.length ? 'ask-scope ask-scope-selected' : 'ask-scope ghost-btn'} data-testid="ask-scope" onPointerEnter={prefetch} onFocus={prefetch} disabled={busy} aria-label={scopeName} title={chooseScope}><AskContext chips={chips} /></Popover.Trigger>
{!!chips.length && <button type="button" className="ask-scope-clear" data-testid="ask-scope-clear" disabled={busy} aria-label={t('Clear')} title={t('Clear')}
onClick={() => { void remove(chips); input.current?.focus({ preventScroll: true }) }}><X size={12} aria-hidden="true" /></button>}
</span>
diff --git a/app/src/renderer/src/workspace.css b/app/src/renderer/src/workspace.css
index cffeaf2d..c6198e53 100644
--- a/app/src/renderer/src/workspace.css
+++ b/app/src/renderer/src/workspace.css
@@ -500,13 +500,11 @@ body:has(.chat-panel[open]) .app-toast-viewport:dir(rtl) { --toast-x:440px; }
.ask-stop:hover:not(:disabled) { background:var(--control-hover);color:var(--ink); }
.ask-stop:active:not(:disabled) { background:var(--control-pressed); }
.ask-scope-group { display:flex;align-items:center;gap:1px;min-width:0;max-width:calc(100% - 40px); }
-.ask-scope { display:flex;align-items:center;gap:6px;min-width:0;max-width:100%;height:28px;padding:0 8px;border-radius:8px;background:var(--control);color:var(--muted);font-size:12px;white-space:nowrap; }
-.ask-scope:hover:not(:disabled) { background:var(--control-hover);color:var(--ink); }
-.ask-scope:disabled { opacity:.45; }
-.ask-scope-group:has(.ask-scope-clear) .ask-scope { border-start-end-radius:0;border-end-end-radius:0; }
+.ask-scope { display:flex;align-items:center;gap:6px;min-width:0;max-width:100%;height:28px;padding:0 8px;border:0;border-radius:14px;color:var(--muted);font-size:12px;white-space:nowrap; }
+.ask-scope-selected { background:var(--control);border-radius:8px;border-start-end-radius:0;border-end-end-radius:0; }
.ask-scope-clear { flex:none;display:flex;align-items:center;justify-content:center;width:26px;height:28px;border-start-end-radius:8px;border-end-end-radius:8px;background:var(--control);color:var(--muted); }
-.ask-scope-clear:hover:not(:disabled) { background:var(--control-hover);color:var(--ink); }
-.ask-scope-clear:disabled { opacity:.45; }
+.ask-scope-selected:hover:not(:disabled),.ask-scope-clear:hover:not(:disabled) { background:var(--control-hover);color:var(--ink); }
+.ask-scope-selected:disabled,.ask-scope-clear:disabled { opacity:.45; }
.ask-picker h3:has(.text-action) { display:flex;align-items:center;justify-content:space-between; }
.ask-scope-label { display:flex;min-width:0; }
.ask-scope-name { min-width:0;overflow:hidden;text-overflow:ellipsis; }
diff --git a/app/test/motionInteractions.test.ts b/app/test/motionInteractions.test.ts
index 5b10ee41..8419763a 100644
--- a/app/test/motionInteractions.test.ts
+++ b/app/test/motionInteractions.test.ts
@@ -897,6 +897,15 @@ it('collapses expanded results for a new search and each new button opening', as
})
+it.each([false, true])('uses a ghost scope button only for All meetings (panel: %s)', panel => {
+ const c = mentionComposer(panel)
+ const scope = () => find(c.render(), 'ask-scope').props
+ expect(scope().className.split(' ')).not.toContain('ghost-btn')
+ c.initial.chips = []
+ expect(scope()['aria-label']).toBe('Choose meetings or folders')
+ expect(scope().className.split(' ')).toContain('ghost-btn')
+})
+
it.each([0, 1, 2, 5])('labels a scope of %s items without truncating its count', count => {
const chips = Array.from({ length: count }, (_, i) => ({ kind: 'meeting' as const, id: String(i), title: 'A very long meeting title '.repeat(20) }))
const label = scopeLabel(chips)