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.

first run: the notes model's download shows in the sidebar, on every system; Ask keeps a question until the model lands; one toast when it's ready

Eric Brownrout835d932279d1
diff --git a/app/src/main/library/conversations.ts b/app/src/main/library/conversations.ts
index a95f0d51..057a7007 100644
--- a/app/src/main/library/conversations.ts
+++ b/app/src/main/library/conversations.ts
@@ -52,9 +52,9 @@ export function hookConversations(p: Deps) {
const turns = (id: string) => {
let list = open.get(id)
if (!list) {
- // Preserve interrupted questions too; they can be asked again.
+ // Only a question that was waiting for the download resumes after a restart.
list = p.library.turns(id)
- .map((t) => ({ id: t.id, question: t.question, answer: t.answer, status: t.stopped || !t.answer ? 'stopped' as const : 'done' as const, sources: t.sources }))
+ .map((t) => ({ id: t.id, question: t.question, answer: t.answer, status: t.waitingModel ? 'waiting' as const : t.stopped || !t.answer ? 'stopped' as const : 'done' as const, sources: t.sources }))
open.set(id, list)
}
return list
@@ -93,115 +93,123 @@ export function hookConversations(p: Deps) {
return { items: kept, history: recent }
}
- return {
- list,
- view,
- /** id null: a new conversation. Returns its id once the question is saved; done once the answer is */
- ask(id: string | null, raw: string, o: { scope?: string[] } = {}): { id: string; done: Promise<void> } {
- const question = raw.trim().slice(0, 4000)
- if (id && !p.library.conversation(id)) throw new Error('Conversation not found')
- if (id && running.has(id)) throw new Error('An answer is already running')
- if (!question) return { id: id ?? '', done: Promise.resolve() }
- const cid = id ?? p.library.current([], true)
- if (!p.library.conversation(cid)?.title) p.library.renameConversation(cid, titleOf(question))
- const conversation = p.library.conversation(cid)!
- const chips = attachContext(conversation.chips, conversation.draftChips)
- const scope = p.library.scope(chips) ?? o.scope
- const single = singleOf(chips)
- const all = turns(cid)
- // asking again after a failure replaces the failed turn
- while (all.at(-1)?.status === 'failed') all.pop()
- // only full answers follow on: a stopped one may be cut mid-sentence
- const done = all.filter((t) => t.status === 'done' && t.answer)
- const history = done.map((t) => ({ question: t.question, answer: t.answer }))
- const turn: ConversationTurn = { id: p.library.addTurn(cid, question, now()), question, answer: '', status: 'waiting', sources: [] }
- all.push(turn)
- const ac = new AbortController()
- running.set(cid, ac)
- p.sendList(list())
- push(cid)
+ /** A resumed question keeps its saved turn and context. */
+ function ask(id: string | null, raw: string, o: { scope?: string[] } = {}, resume?: number): { id: string; done: Promise<void> } {
+ const question = raw.trim().slice(0, 4000)
+ if (id && !p.library.conversation(id)) throw new Error('Conversation not found')
+ if (id && running.has(id)) throw new Error('An answer is already running')
+ if (!question) return { id: id ?? '', done: Promise.resolve() }
+ const cid = id ?? p.library.current([], true)
+ if (!p.library.conversation(cid)?.title) p.library.renameConversation(cid, titleOf(question))
+ const conversation = p.library.conversation(cid)!
+ const chips = attachContext(conversation.chips, conversation.draftChips)
+ const scope = p.library.scope(chips) ?? o.scope
+ const single = singleOf(chips)
+ const all = turns(cid)
+ // asking again after a failure replaces the failed turn
+ while (all.at(-1)?.status === 'failed') all.pop()
+ // only full answers follow on: a stopped one may be cut mid-sentence
+ const done = all.filter((t) => t.status === 'done' && t.answer)
+ const history = done.map((t) => ({ question: t.question, answer: t.answer }))
+ const turn: ConversationTurn = resume === undefined
+ ? { id: p.library.addTurn(cid, question, now(), p.waitsForModel()), question, answer: '', status: 'waiting', sources: [] }
+ : all.find(t => t.id === resume)!
+ if (resume === undefined) all.push(turn)
+ const ac = new AbortController()
+ running.set(cid, ac)
+ p.sendList(list())
+ push(cid)
- let timer: NodeJS.Timeout | undefined, last = 0, over = false
- const flush = () => { timer = undefined; last = Date.now(); if (!over) push(cid) }
- const later = () => {
- // a stopped job can still be finishing in the queue: the turn is settled, nothing more to show
- if (timer || over) return
- const wait = SEND_EVERY_MS - (Date.now() - last)
- if (wait <= 0) flush(); else timer = setTimeout(flush, wait)
- }
- let written = '', completed: string | undefined
- const job = single ? (async () => {
- for await (const text of askMeeting(p, single, question, history, {
- signal: ac.signal,
- onStart: () => { turn.status = 'answering'; later() },
- onStep: (step) => { turn.step = step; later() },
- onRestart: () => { written = ''; completed = undefined; turn.answer = ''; turn.status = 'waiting'; turn.step = undefined; later() },
- onComplete: answer => { completed = answer },
- })) { written += text; turn.answer = written; later() }
- })() : p.queue.enqueue(async (stop) => {
- if (ac.signal.aborted) return
- const signal = AbortSignal.any([stop, ac.signal])
- turn.status = 'answering'; turn.step = { kind: 'searching' }; later()
- try {
- const got = await retrieve(p, question, { now: now(), scope, context: done.at(-1)?.question })
- if (p.model.needsLoad?.()) { turn.step = { kind: 'loading' }; later() }
- const llm = await p.model.llm(signal)
- // the names of every meeting found, spelled right
- const words = got.items.map((i) => p.store.meeting(i.meetingId)).filter((m) => !!m).map((m) => meetingWords(m))
- // the person's jargon too, found meetings or none
- const { jargon } = meetingWords({ title: '', titleSource: 'generic', attendees: [] })
- const spelling = spellingLine({ title: '', names: words.flatMap((w) => w.names), companies: words.flatMap((w) => w.companies), ...(jargon ? { jargon } : {}) })
- const fitted = await fit(llm, got.items, question, history, spelling)
- const items = byMeeting(fitted.items), recent = fitted.history
- turn.sources = items.map((i, k): LibrarySource => {
- const source: LibrarySource = { n: k + 1, meetingId: i.meetingId, title: i.title, startedAt: i.startedAt, atMs: i.atMs, excerpt: i.text }
- const range = i.transcriptRange, meeting = p.store.meeting(i.meetingId)
- if (range && meeting) source.transcript = {
- speakers: p.store.speakerOrder(i.meetingId),
- lines: p.store.segments(i.meetingId).filter(s => s.startMs >= range.startMs && s.startMs < range.endMs)
- .map(({ text, track, speaker, startMs }) => ({ text: respell(text, meetingWords(meeting)), track, speaker, startMs })),
- }
- return source
- })
- const found = [...new Set(items.map((i) => i.meetingId))]
- turn.step = { kind: 'reading', meetings: found.length, ...(found.length === 1 ? { title: items[0].title } : {}) }
- // the sources go out at once, so citations become links as they are written
- if (!over) flush()
+ let timer: NodeJS.Timeout | undefined, last = 0, over = false
+ const flush = () => { timer = undefined; last = Date.now(); if (!over) push(cid) }
+ const later = () => {
+ // a stopped job can still be finishing in the queue: the turn is settled, nothing more to show
+ if (timer || over) return
+ const wait = SEND_EVERY_MS - (Date.now() - last)
+ if (wait <= 0) flush(); else timer = setTimeout(flush, wait)
+ }
+ let written = '', completed: string | undefined
+ const job = single ? (async () => {
+ for await (const text of askMeeting(p, single, question, history, {
+ signal: ac.signal,
+ onStart: () => { p.library.startTurn(turn.id); turn.status = 'answering'; later() },
+ onStep: (step) => { turn.step = step; later() },
+ onRestart: () => { written = ''; completed = undefined; turn.answer = ''; turn.status = 'waiting'; turn.step = undefined; later() },
+ onComplete: answer => { completed = answer },
+ })) { written += text; turn.answer = written; later() }
+ })() : p.queue.enqueue(async (stop) => {
+ if (ac.signal.aborted) return
+ const signal = AbortSignal.any([stop, ac.signal])
+ p.library.startTurn(turn.id)
+ turn.status = 'answering'; turn.step = { kind: 'searching' }; later()
+ try {
+ const got = await retrieve(p, question, { now: now(), scope, context: done.at(-1)?.question })
+ if (p.model.needsLoad?.()) { turn.step = { kind: 'loading' }; later() }
+ const llm = await p.model.llm(signal)
+ // the names of every meeting found, spelled right
+ const words = got.items.map((i) => p.store.meeting(i.meetingId)).filter((m) => !!m).map((m) => meetingWords(m))
+ // the person's jargon too, found meetings or none
+ const { jargon } = meetingWords({ title: '', titleSource: 'generic', attendees: [] })
+ const spelling = spellingLine({ title: '', names: words.flatMap((w) => w.names), companies: words.flatMap((w) => w.companies), ...(jargon ? { jargon } : {}) })
+ const fitted = await fit(llm, got.items, question, history, spelling)
+ const items = byMeeting(fitted.items), recent = fitted.history
+ turn.sources = items.map((i, k): LibrarySource => {
+ const source: LibrarySource = { n: k + 1, meetingId: i.meetingId, title: i.title, startedAt: i.startedAt, atMs: i.atMs, excerpt: i.text }
+ const range = i.transcriptRange, meeting = p.store.meeting(i.meetingId)
+ if (range && meeting) source.transcript = {
+ speakers: p.store.speakerOrder(i.meetingId),
+ lines: p.store.segments(i.meetingId).filter(s => s.startMs >= range.startMs && s.startMs < range.endMs)
+ .map(({ text, track, speaker, startMs }) => ({ text: respell(text, meetingWords(meeting)), track, speaker, startMs })),
+ }
+ return source
+ })
+ const found = [...new Set(items.map((i) => i.meetingId))]
+ turn.step = { kind: 'reading', meetings: found.length, ...(found.length === 1 ? { title: items[0].title } : {}) }
+ // the sources go out at once, so citations become links as they are written
+ if (!over) flush()
+ if (signal.aborted) return
+ const answer = await llm.chat(libraryPrompt({ items, question, history: recent, now: now(), spelling }), (t) => {
if (signal.aborted) return
- const answer = await llm.chat(libraryPrompt({ items, question, history: recent, now: now(), spelling }), (t) => {
- if (signal.aborted) return
- written += t; turn.answer = written; later()
- }, { maxTokens: ANSWER_TOKENS })
- if (!signal.aborted) completed = answer
- } finally {
- // stopped by the queue alone (a recording needs the room): it starts over later, so what was written goes
- if (stop.aborted && !ac.signal.aborted) { written = ''; completed = undefined; turn.answer = ''; turn.sources = []; turn.status = 'waiting'; turn.step = undefined; later() }
- }
- }, 'chat')
- // a stop ends it at once, even while it still waits in the queue (the job then does nothing when its turn comes)
- const stopped = new Promise<void>((r) => ac.signal.addEventListener('abort', () => r(), { once: true }))
+ written += t; turn.answer = written; later()
+ }, { maxTokens: ANSWER_TOKENS })
+ if (!signal.aborted) completed = answer
+ } finally {
+ // stopped by the queue alone (a recording needs the room): it starts over later, so what was written goes
+ if (stop.aborted && !ac.signal.aborted) { written = ''; completed = undefined; turn.answer = ''; turn.sources = []; turn.status = 'waiting'; turn.step = undefined; later() }
+ }
+ }, 'chat')
+ // a stop ends it at once, even while it still waits in the queue (the job then does nothing when its turn comes)
+ const stopped = new Promise<void>((r) => ac.signal.addEventListener('abort', () => r(), { once: true }))
- const finished = (async () => {
- try {
- await Promise.race([job, stopped])
- turn.answer = single ? (completed ?? written).trim() : tidyCitations((completed ?? written).trim(), turn.sources)
- turn.status = ac.signal.aborted ? 'stopped' : 'done'
- turn.step = undefined
- const cited = new Set(citedIn(turn.answer))
- p.library.setTurn(turn.id, turn.answer, turn.status === 'stopped', turn.sources.filter((s) => cited.has(s.n)))
- } catch (e) {
- console.error('answering a question across meetings failed', e)
- turn.status = 'failed'
- p.library.deleteTurn(turn.id)
- } finally {
- over = true
- if (timer) clearTimeout(timer)
- if (running.get(cid) === ac) running.delete(cid)
- if (open.get(cid) === all) push(cid)
- }
- })()
- return { id: cid, done: finished }
- },
+ const finished = (async () => {
+ try {
+ await Promise.race([job, stopped])
+ turn.answer = single ? (completed ?? written).trim() : tidyCitations((completed ?? written).trim(), turn.sources)
+ turn.status = ac.signal.aborted ? 'stopped' : 'done'
+ turn.step = undefined
+ const cited = new Set(citedIn(turn.answer))
+ p.library.setTurn(turn.id, turn.answer, turn.status === 'stopped', turn.sources.filter((s) => cited.has(s.n)))
+ } catch (e) {
+ console.error('answering a question across meetings failed', e)
+ turn.status = 'failed'
+ p.library.deleteTurn(turn.id)
+ } finally {
+ over = true
+ if (timer) clearTimeout(timer)
+ if (running.get(cid) === ac) running.delete(cid)
+ if (open.get(cid) === all) push(cid)
+ }
+ })()
+ return { id: cid, done: finished }
+ }
+
+ const recover = () => {
+ for (const turn of p.library.waitingTurns()) if (!running.has(turn.conversationId)) void ask(turn.conversationId, turn.question, {}, turn.id).done
+ }
+ const api = {
+ list,
+ view,
+ ask: (id: string | null, raw: string, o: { scope?: string[] } = {}) => ask(id, raw, o),
context(id: string, chips: import('../../shared/askContext').ContextChip[]) {
if (running.has(id)) throw new Error('Wait for the current answer before changing context')
p.library.setContext(id, chips); push(id); p.sendList(list())
@@ -239,8 +247,10 @@ export function hookConversations(p: Deps) {
p.library.deleteConversation(id)
p.sendList(list())
},
- /** the windows hear again what open conversations wait for (the notes model arrived) */
- refresh() { for (const id of open.keys()) push(id) },
+ /** Imports may bring waiting questions too; open conversations hear when the model arrives. */
+ refresh() { recover(); for (const id of open.keys()) push(id) },
}
+ recover()
+ return api
}
export type Conversations = ReturnType<typeof hookConversations>
diff --git a/app/src/main/library/store.ts b/app/src/main/library/store.ts
index b7f1f27e..de49b201 100644
--- a/app/src/main/library/store.ts
+++ b/app/src/main/library/store.ts
@@ -28,6 +28,7 @@ export function libraryTables(db: DatabaseSync) {
question TEXT NOT NULL, answer TEXT NOT NULL DEFAULT '', stopped INTEGER NOT NULL DEFAULT 0, sources TEXT NOT NULL DEFAULT '[]', asked_at INTEGER NOT NULL);
CREATE INDEX IF NOT EXISTS conversation_turns_conversation ON conversation_turns(conversation_id, id);
`)
+ if (!(db.prepare('PRAGMA table_info(conversation_turns)').all() as Row[]).some(r => r.name === 'waiting_model')) db.exec('ALTER TABLE conversation_turns ADD COLUMN waiting_model INTEGER NOT NULL DEFAULT 0')
const cols = (db.prepare('PRAGMA table_info(conversations)').all() as Row[]).map(r => r.name)
for (const [name, definition] of Object.entries({ chips: "TEXT NOT NULL DEFAULT '[]'", draft: "TEXT NOT NULL DEFAULT ''", draft_chips: "TEXT NOT NULL DEFAULT '[]'", current_key: 'TEXT', legacy_meeting_id: 'TEXT', first_chips: 'TEXT' })) {
if (!cols.includes(name)) db.exec(`ALTER TABLE conversations ADD COLUMN ${name} ${definition}`)
@@ -65,7 +66,7 @@ export function migrateMeetingChats(db: DatabaseSync) {
export type LibraryChunk = { id: number; meetingId: string; startMs: number; endMs: number; text: string; speakers: string[] }
export type ConversationRow = { id: string; title: string; createdAt: number; updatedAt: number; chips: ContextChip[]; draft: string; draftChips: ContextChip[]; firstChips: ContextChip[] | null }
-export type TurnRow = { id: number; question: string; answer: string; stopped: boolean; sources: LibrarySource[] }
+export type TurnRow = { id: number; question: string; answer: string; stopped: boolean; waitingModel: boolean; sources: LibrarySource[] }
const toChunk = (r: Row): LibraryChunk => ({ id: Number(r.id), meetingId: String(r.meeting_id), startMs: Number(r.start_ms), endMs: Number(r.end_ms), text: String(r.text), speakers: JSON.parse(String(r.speakers)) })
const toConversation = (r: Row): ConversationRow => ({ id: String(r.id), title: String(r.title), createdAt: Number(r.created_at), updatedAt: Number(r.updated_at), chips: JSON.parse(String(r.chips)), draft: String(r.draft), draftChips: JSON.parse(String(r.draft_chips)), firstChips: r.first_chips == null ? null : JSON.parse(String(r.first_chips)) })
@@ -238,13 +239,13 @@ export class Library {
turns(conversationId: string): TurnRow[] {
return (this.db.prepare('SELECT * FROM conversation_turns WHERE conversation_id = ? ORDER BY id').all(conversationId) as Row[])
- .map((r) => ({ id: Number(r.id), question: String(r.question), answer: String(r.answer), stopped: Number(r.stopped) === 1, sources: JSON.parse(String(r.sources)) }))
+ .map((r) => ({ id: Number(r.id), question: String(r.question), answer: String(r.answer), stopped: Number(r.stopped) === 1, waitingModel: Number(r.waiting_model) === 1, sources: JSON.parse(String(r.sources)) }))
}
/** a question asked: the conversation comes to the top of the list */
- addTurn(conversationId: string, question: string, now = Date.now()): number {
+ addTurn(conversationId: string, question: string, now = Date.now(), waitingModel = false): number {
this.db.exec('SAVEPOINT ask_turn')
try {
- const id = Number(this.db.prepare('INSERT INTO conversation_turns (conversation_id, question, asked_at) VALUES (?, ?, ?)').run(conversationId, question, now).lastInsertRowid)
+ const id = Number(this.db.prepare('INSERT INTO conversation_turns (conversation_id, question, asked_at, waiting_model) VALUES (?, ?, ?, ?)').run(conversationId, question, now, waitingModel ? 1 : 0).lastInsertRowid)
const chat = this.conversation(conversationId)!
if (chat.draftChips.length) this.writeScope(conversationId, attachContext(chat.chips, chat.draftChips))
this.db.prepare("UPDATE conversations SET updated_at = ?, first_chips = coalesce(first_chips, chips), draft = '', draft_chips = '[]' WHERE id = ?").run(now, conversationId)
@@ -252,7 +253,12 @@ export class Library {
} catch (e) { this.db.exec('ROLLBACK TO ask_turn; RELEASE ask_turn'); throw e }
}
setTurn(id: number, answer: string, stopped: boolean, sources: LibrarySource[]) {
- this.db.prepare('UPDATE conversation_turns SET answer = ?, stopped = ?, sources = ? WHERE id = ?').run(answer, stopped ? 1 : 0, JSON.stringify(sources), id)
+ this.db.prepare('UPDATE conversation_turns SET answer = ?, stopped = ?, sources = ?, waiting_model = 0 WHERE id = ?').run(answer, stopped ? 1 : 0, JSON.stringify(sources), id)
}
+ waitingTurns(): Array<{ conversationId: string; id: number; question: string }> {
+ return (this.db.prepare('SELECT conversation_id, id, question FROM conversation_turns WHERE waiting_model = 1 ORDER BY id').all() as Row[])
+ .map(r => ({ conversationId: String(r.conversation_id), id: Number(r.id), question: String(r.question) }))
+ }
+ startTurn(id: number) { this.db.prepare('UPDATE conversation_turns SET waiting_model = 0 WHERE id = ?').run(id) }
deleteTurn(id: number) { this.db.prepare('DELETE FROM conversation_turns WHERE id = ?').run(id) }
}
diff --git a/app/src/main/setup.ts b/app/src/main/setup.ts
index 4244bbcb..d0f2554f 100644
--- a/app/src/main/setup.ts
+++ b/app/src/main/setup.ts
@@ -181,7 +181,7 @@ export class SetupController {
}
this.paths = { asr: asrPath }
this.set({ phase: 'ready', fraction: 1 })
- this.startNotes(starterItem, embedItem, later && llmItem(dirs.llm, later), hw.os !== 'darwin')
+ this.startNotes(starterItem, embedItem, later && llmItem(dirs.llm, later))
} catch (err) {
console.error('setup failed', err)
this.set({ phase: 'error', fraction: this._state.fraction, message: friendly(err) })
@@ -215,20 +215,20 @@ export class SetupController {
* The first notes model downloads while Yogurt already records: it is tried until it lands (meetings recorded
* meanwhile get their notes then). The bigger one follows.
*/
- private startNotes(first: Item, embed: Item, later: Item | undefined, showProgress: boolean) {
+ private startNotes(first: Item, embed: Item, later: Item | undefined) {
this.background = (async () => {
const waits = this.deps.notesRetryMs ?? NOTES_RETRY_MS
- // Windows and Linux: notes waiting for it show how far it is (whole percents); every 10% goes in the log
+ // Waiting notes show whole percents; every 10% goes in the log.
let shown = -1, logged = -1
const progress = (p: { fraction: number }) => {
const pct = Math.floor(p.fraction * 100)
if (Math.floor(pct / 10) > logged) { logged = Math.floor(pct / 10); console.info('NOTES', `notes model download ${pct}%`) }
- if (showProgress && pct !== shown) { shown = pct; this.set({ ...this._state, notesFraction: p.fraction }) }
+ if (pct !== shown) { shown = pct; this.set({ ...this._state, notesFraction: p.fraction }) }
}
const already = isVerified(first.dir, first.fileName, this.sha(first))
if (!already) console.info('NOTES', `downloading the notes model ${first.fileName}`)
for (let i = 0; ; i++) {
- this.set({ ...this._state, notesError: undefined, ...(already ? {} : { notesDownloading: true }) })
+ this.set({ ...this._state, notesError: undefined, ...(already ? {} : { notesDownloading: true, notesFraction: 0 }) })
try {
const path = await this.fetch(first, already ? undefined : progress)
if (this.paths) this.paths = { ...this.paths, llm: path }
diff --git a/app/src/renderer/src/components/AskConversation.tsx b/app/src/renderer/src/components/AskConversation.tsx
index 422b4124..6885e6c5 100644
--- a/app/src/renderer/src/components/AskConversation.tsx
+++ b/app/src/renderer/src/components/AskConversation.tsx
@@ -232,7 +232,7 @@ function Turn({ turn, chat, panel, onSource, onRetry }: { turn: ConversationTurn
return <div data-testid={`${prefix}-turn`} data-status={turn.status} className="ask-turn">
<p className="ask-question" data-testid={`${prefix}-question`}>{turn.question}</p>
{(turn.status === 'waiting' || live && !answer) && (chat.waitsForModel && turn.status === 'waiting'
- ? <NotesModelWait><p>{t('Getting ready to answer. Yogurt is still setting up.')}</p></NotesModelWait>
+ ? <NotesModelWait downloading={percent => <p role="status" className="text-sm text-muted">{t("Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.", { percent })}</p>}><p role="status" className="text-sm text-muted">{t('Getting ready to answer. Yogurt is still setting up.')}</p></NotesModelWait>
: <p className="chat-progress" role="status">{chat.waitsForMeeting && turn.status === 'waiting' ? t('Yogurt will answer once the meeting ends.') : <><ThinkingDots /><StepText step={turn.status === 'waiting' ? undefined : turn.step} /></>}</p>)}
{answer && <div data-testid={`${prefix}-answer`} dir="auto" data-streaming={live || undefined} className={`note-prose chat-answer${live ? ' stream-caret' : ''}`}><AnswerText md={answer} live={live} sources={turn.sources} onSource={onSource} /></div>}
{answer && !live && <div className="chat-answer-actions"><button className="chat-copy-action" data-testid="chat-copy-answer" aria-label={copied ? t('Copied') : t('Copy answer')} onClick={() => {
diff --git a/app/src/renderer/src/components/NotesModelWait.tsx b/app/src/renderer/src/components/NotesModelWait.tsx
index d216cb2a..b9e6bfdb 100644
--- a/app/src/renderer/src/components/NotesModelWait.tsx
+++ b/app/src/renderer/src/components/NotesModelWait.tsx
@@ -1,12 +1,13 @@
import { useEffect, useState, type ReactNode } from 'react'
import type { SetupState } from '../../../shared/types'
-import { language, t } from '../../../shared/i18n'
+import { t } from '../../../shared/i18n'
+import { notesPercent } from '../notesSetup'
/**
* Waiting notes and answers share the first model's failure and its existing setup retry. downloading: what to show
- * instead while the first notes model is still downloading (Windows and Linux report how far it is, as percent).
+ * instead while the first notes model is still downloading (every system reports how far it is, as percent).
*/
-export function NotesModelWait({ children, downloading }: { children: ReactNode; downloading?: (percent?: string) => ReactNode }) {
+export function NotesModelWait({ children, downloading }: { children: ReactNode; downloading?: (percent: string) => ReactNode }) {
const [setup, setSetup] = useState<SetupState>()
const [retrying, setRetrying] = useState(false)
const [retryFailed, setRetryFailed] = useState(false)
@@ -21,9 +22,7 @@ export function NotesModelWait({ children, downloading }: { children: ReactNode;
finally { setRetrying(false) }
}
if (!setup?.notesError) {
- if (downloading && setup?.notesFraction !== undefined) return downloading(new Intl.NumberFormat(language(), { style: 'percent', maximumFractionDigits: 0 }).format(Math.floor(Math.max(0, Math.min(1, setup.notesFraction)) * 100) / 100))
- // a Mac doesn't say how far
- if (downloading && setup?.notesDownloading) return downloading()
+ if (downloading && setup && (setup.notesFraction !== undefined || setup.notesDownloading)) return downloading(notesPercent(setup.notesFraction ?? 0))
return children
}
return (
diff --git a/app/src/renderer/src/components/NotesSetup.tsx b/app/src/renderer/src/components/NotesSetup.tsx
new file mode 100644
index 00000000..8edec94e
--- /dev/null
+++ b/app/src/renderer/src/components/NotesSetup.tsx
@@ -0,0 +1,65 @@
+import { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react'
+import { createPortal } from 'react-dom'
+import { X } from 'lucide-react'
+import type { SetupState } from '../../../shared/types'
+import { t } from '../../../shared/i18n'
+import { notesPercent, notesReadyNotice } from '../notesSetup'
+import { NotesModelWait } from './NotesModelWait'
+import { toasts } from './TrashToast'
+
+export function NotesSetup({ collapsed = false }: { collapsed?: boolean }) {
+ const [setup, setSetup] = useState<SetupState>()
+ const [open, setOpen] = useState(false)
+ const trigger = useRef<HTMLButtonElement>(null)
+ const panel = useRef<HTMLDialogElement>(null)
+ const notice = useRef<ReturnType<typeof notesReadyNotice>>(undefined)
+ notice.current ??= notesReadyNotice()
+ const waiting = !!setup && (setup.notesDownloading || !!setup.notesError)
+ useEffect(() => {
+ let current: SetupState | undefined, active = true
+ const update = (state: SetupState) => {
+ current = state; setSetup(state)
+ if (notice.current!(state, document.visibilityState === 'visible', Date.now())) {
+ toasts.add({ title: t("Yogurt's AI is ready. Summaries and Ask now work."), data: { testId: 'notes-ready-toast' } })
+ }
+ if (!state.notesDownloading && !state.notesError) setOpen(false)
+ }
+ const off = window.yogurt.setup.onState(update)
+ void window.yogurt.setup.state().then(state => { if (active && !current) update(state) })
+ const visibility = () => { if (current) update(current) }
+ document.addEventListener('visibilitychange', visibility)
+ return () => { active = false; off(); document.removeEventListener('visibilitychange', visibility) }
+ }, [])
+ const close = useCallback(() => { panel.current?.close(); setOpen(false); trigger.current?.focus({ preventScroll: true }) }, [])
+ useLayoutEffect(() => {
+ const el = panel.current
+ if (!open || !el || !waiting) return
+ el.show()
+ const position = () => {
+ const rect = trigger.current!.getBoundingClientRect()
+ const start = getComputedStyle(el).direction === 'rtl' ? innerWidth - rect.right : rect.x
+ el.style.insetInlineStart = `${Math.max(12, Math.min(start, innerWidth - el.getBoundingClientRect().width - 12))}px`
+ el.style.bottom = `${Math.max(64, innerHeight - rect.y + 8)}px`
+ }
+ position()
+ el.querySelector<HTMLButtonElement>('button')?.focus()
+ const away = (e: PointerEvent) => { if (!el.contains(e.target as Node) && !trigger.current?.contains(e.target as Node)) close() }
+ const key = (e: KeyboardEvent) => { if (e.key === 'Escape') { e.preventDefault(); close() } }
+ window.addEventListener('resize', position); document.addEventListener('pointerdown', away); document.addEventListener('keydown', key)
+ return () => { el.close(); window.removeEventListener('resize', position); document.removeEventListener('pointerdown', away); document.removeEventListener('keydown', key) }
+ }, [open, waiting, collapsed, close])
+ if (!waiting) return null
+ const percent = notesPercent(setup.notesFraction ?? 0)
+ const label = setup.notesError ? t('Setting up notes') : t('Setting up notes · {percent}', { percent })
+ return <>
+ <button ref={trigger} data-testid="notes-setup-open" data-sidebar="menu-button" className="setup-checklist-trigger workspace-nav" aria-label={label} title={collapsed ? label : undefined}
+ aria-haspopup="dialog" aria-expanded={open} onClick={() => setOpen(value => !value)}>
+ <svg className="setup-progress" viewBox="0 0 16 16" fill="none" aria-hidden="true"><circle cx="8" cy="8" r="5.5" stroke="currentColor" strokeWidth="2.5" className="setup-progress-track" /><circle cx="8" cy="8" r="5.5" pathLength="100" stroke="currentColor" strokeWidth="2.5" strokeDasharray="100" strokeDashoffset={100 - (setup.notesFraction ?? 0) * 100} strokeLinecap="round" /></svg>
+ <span>{label}</span>
+ </button>
+ {open && createPortal(<dialog ref={panel} data-testid="notes-setup" aria-label={t('Setting up notes')} className="finish-setup" onCancel={e => { e.preventDefault(); close() }}>
+ <div className="finish-setup-header"><h2>{t('Setting up notes')}</h2><button aria-label={t('Close')} className="finish-setup-close no-drag" onClick={close}><X size={14} aria-hidden="true" /></button></div>
+ <div className="p-3 text-sm text-muted"><NotesModelWait><p>{t("Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.")}</p></NotesModelWait></div>
+ </dialog>, document.body)}
+ </>
+}
diff --git a/app/src/renderer/src/components/Workspace.tsx b/app/src/renderer/src/components/Workspace.tsx
index a25fc39b..141fe8b5 100644
--- a/app/src/renderer/src/components/Workspace.tsx
+++ b/app/src/renderer/src/components/Workspace.tsx
@@ -12,6 +12,7 @@ import { RecordingTime } from './RecordingTime'
import { FileText, MessageCircle, Search, Settings, SidebarToggle } from './Icons'
import { FoldersNav } from './FoldersNav'
import { FinishSetup } from './FinishSetup'
+import { NotesSetup } from './NotesSetup'
export function Workspace({ route, meeting, folders, go, back, forward, search, collapsed, sidebarMotion, toggleSidebar, children }: {
meeting?: Pick<MeetingView, 'id' | 'title'>
@@ -88,6 +89,7 @@ export function Workspace({ route, meeting, folders, go, back, forward, search,
</div>
<div className="workspace-sidebar-footer">
<FinishSetup collapsed={collapsed} />
+ <NotesSetup collapsed={collapsed} />
{nav(links[2])}
{nav(links[3])}
<div className="workspace-brand"><span className="workspace-wordmark"><Wordmark height={25} /></span></div>
diff --git a/app/src/renderer/src/notesSetup.ts b/app/src/renderer/src/notesSetup.ts
new file mode 100644
index 00000000..ec0ef26d
--- /dev/null
+++ b/app/src/renderer/src/notesSetup.ts
@@ -0,0 +1,20 @@
+import type { SetupState } from '../../shared/types'
+import { language } from '../../shared/i18n'
+
+export const notesPercent = (fraction: number) => new Intl.NumberFormat(language(), { style: 'percent', maximumFractionDigits: 0 })
+ .format(Math.floor(Math.max(0, Math.min(1, fraction)) * 100) / 100)
+
+/** Skip cached installs and flashes; announce only a download visible for at least a second. */
+export function notesReadyNotice() {
+ let since: number | undefined, noticed = false, announced = false
+ return (setup: SetupState, visible: boolean, now: number): boolean => {
+ if (announced) return false
+ if (since !== undefined && now - since >= 1000) noticed = true
+ const waiting = setup.notesDownloading || !!setup.notesError
+ if (setup.phase === 'ready' && waiting && visible) since ??= now
+ else since = undefined
+ if (setup.phase !== 'ready' || waiting || !noticed) return false
+ announced = true
+ return true
+ }
+}
diff --git a/app/src/shared/locales/ar.json b/app/src/shared/locales/ar.json
index b56fb8cf..f260c731 100644
--- a/app/src/shared/locales/ar.json
+++ b/app/src/shared/locales/ar.json
@@ -666,5 +666,10 @@
"Disconnect": "فصل",
"Yogurt stops using these calendars.": "يتوقف Yogurt عن استخدام هذه التقويمات.",
"Calendar access": "الوصول إلى التقويم",
- "Remove Yogurt’s access in System Settings.": "أزِل وصول Yogurt من إعدادات النظام."
+ "Remove Yogurt’s access in System Settings.": "أزِل وصول Yogurt من إعدادات النظام.",
+ "Setting up notes": "جارٍ إعداد الملاحظات",
+ "Setting up notes · {percent}": "جارٍ إعداد الملاحظات · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "يمكنك التسجيل الآن. ستعمل الملخصات وميزة السؤال عند اكتمال تنزيل ذكاء Yogurt الاصطناعي.",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "بانتظار اكتمال تنزيل ذكاء Yogurt الاصطناعي ({percent}). ستصلك الإجابة بمجرد أن يصبح جاهزًا.",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "ذكاء Yogurt الاصطناعي جاهز. يمكنك الآن استخدام الملخصات وميزة السؤال."
}
diff --git a/app/src/shared/locales/bn.json b/app/src/shared/locales/bn.json
index 5d8640c4..3285cdb5 100644
--- a/app/src/shared/locales/bn.json
+++ b/app/src/shared/locales/bn.json
@@ -610,5 +610,10 @@
"Disconnect": "বিচ্ছিন্ন করুন",
"Yogurt stops using these calendars.": "Yogurt এই ক্যালেন্ডারগুলো ব্যবহার করা বন্ধ করে।",
"Calendar access": "ক্যালেন্ডার অ্যাক্সেস",
- "Remove Yogurt’s access in System Settings.": "সিস্টেম সেটিংসে Yogurt-এর অ্যাক্সেস সরান।"
+ "Remove Yogurt’s access in System Settings.": "সিস্টেম সেটিংসে Yogurt-এর অ্যাক্সেস সরান।",
+ "Setting up notes": "নোট প্রস্তুত হচ্ছে",
+ "Setting up notes · {percent}": "নোট প্রস্তুত হচ্ছে · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "এখনই রেকর্ড করা যায়। Yogurt-এর AI ডাউনলোড শেষ হলে সারাংশ ও প্রশ্ন করার সুবিধা চালু হবে।",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "Yogurt-এর AI ডাউনলোড শেষ হওয়ার অপেক্ষায় ({percent})। প্রস্তুত হলেই আপনার উত্তর আসবে।",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "Yogurt-এর AI প্রস্তুত। সারাংশ ও প্রশ্ন করার সুবিধা এখন কাজ করছে।"
}
diff --git a/app/src/shared/locales/cs.json b/app/src/shared/locales/cs.json
index 44f2f879..bea23232 100644
--- a/app/src/shared/locales/cs.json
+++ b/app/src/shared/locales/cs.json
@@ -636,5 +636,10 @@
"Disconnect": "Odpojit",
"Yogurt stops using these calendars.": "Yogurt přestane tyto kalendáře používat.",
"Calendar access": "Přístup ke kalendáři",
- "Remove Yogurt’s access in System Settings.": "Přístup Yogurtu odeberete v Nastavení systému."
+ "Remove Yogurt’s access in System Settings.": "Přístup Yogurtu odeberete v Nastavení systému.",
+ "Setting up notes": "Příprava poznámek",
+ "Setting up notes · {percent}": "Příprava poznámek · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "Nahrávání už funguje. Souhrny a dotazy začnou fungovat po stažení AI Yogurtu.",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "Čeká se na stažení AI Yogurtu ({percent}). Odpověď dostanete, jakmile bude připravena.",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "AI Yogurtu je připravena. Souhrny a dotazy už fungují."
}
diff --git a/app/src/shared/locales/da.json b/app/src/shared/locales/da.json
index 81886af8..414d9f08 100644
--- a/app/src/shared/locales/da.json
+++ b/app/src/shared/locales/da.json
@@ -610,5 +610,10 @@
"Disconnect": "Frakobl",
"Yogurt stops using these calendars.": "Yogurt holder op med at bruge disse kalendere.",
"Calendar access": "Kalenderadgang",
- "Remove Yogurt’s access in System Settings.": "Fjern Yogurts adgang i Systemindstillinger."
+ "Remove Yogurt’s access in System Settings.": "Fjern Yogurts adgang i Systemindstillinger.",
+ "Setting up notes": "Klargør noter",
+ "Setting up notes · {percent}": "Klargør noter · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "Du kan optage nu. Resuméer og spørgsmål virker, når Yogurts AI er hentet.",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "Venter på, at Yogurts AI bliver hentet ({percent}). Du får svar, så snart den er klar.",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "Yogurts AI er klar. Resuméer og spørgsmål virker nu."
}
diff --git a/app/src/shared/locales/de.json b/app/src/shared/locales/de.json
index 4d70c484..11d5bb8a 100644
--- a/app/src/shared/locales/de.json
+++ b/app/src/shared/locales/de.json
@@ -610,5 +610,10 @@
"Disconnect": "Trennen",
"Yogurt stops using these calendars.": "Yogurt verwendet diese Kalender nicht mehr.",
"Calendar access": "Kalenderzugriff",
- "Remove Yogurt’s access in System Settings.": "Entferne den Zugriff von Yogurt in den Systemeinstellungen."
+ "Remove Yogurt’s access in System Settings.": "Entferne den Zugriff von Yogurt in den Systemeinstellungen.",
+ "Setting up notes": "Notizen werden eingerichtet",
+ "Setting up notes · {percent}": "Notizen werden eingerichtet · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "Du kannst jetzt aufnehmen. Zusammenfassungen und Fragen funktionieren, sobald Yogurts KI heruntergeladen ist.",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "Warten auf den Download von Yogurts KI ({percent}). Du erhältst deine Antwort, sobald sie bereit ist.",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "Yogurts KI ist bereit. Zusammenfassungen und Fragen funktionieren jetzt."
}
diff --git a/app/src/shared/locales/el.json b/app/src/shared/locales/el.json
index d97cbb54..9dcc3453 100644
--- a/app/src/shared/locales/el.json
+++ b/app/src/shared/locales/el.json
@@ -610,5 +610,10 @@
"Disconnect": "Αποσύνδεση",
"Yogurt stops using these calendars.": "Το Yogurt σταματά να χρησιμοποιεί αυτά τα ημερολόγια.",
"Calendar access": "Πρόσβαση στο ημερολόγιο",
- "Remove Yogurt’s access in System Settings.": "Αφαίρεσε την πρόσβαση του Yogurt στις Ρυθμίσεις συστήματος."
+ "Remove Yogurt’s access in System Settings.": "Αφαίρεσε την πρόσβαση του Yogurt στις Ρυθμίσεις συστήματος.",
+ "Setting up notes": "Προετοιμασία σημειώσεων",
+ "Setting up notes · {percent}": "Προετοιμασία σημειώσεων · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "Η εγγραφή λειτουργεί ήδη. Οι περιλήψεις και οι ερωτήσεις θα είναι διαθέσιμες μόλις ολοκληρωθεί η λήψη της AI του Yogurt.",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "Αναμονή για την ολοκλήρωση λήψης της AI του Yogurt ({percent}). Η απάντησή σας θα έρθει μόλις είναι έτοιμη.",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "Η AI του Yogurt είναι έτοιμη. Οι περιλήψεις και οι ερωτήσεις λειτουργούν πλέον."
}
diff --git a/app/src/shared/locales/en.json b/app/src/shared/locales/en.json
index 0c3474a7..1a6bc567 100644
--- a/app/src/shared/locales/en.json
+++ b/app/src/shared/locales/en.json
@@ -58,5 +58,10 @@
"Still reading {count} meetings…": {
"one": "Still reading 1 meeting…",
"other": "Still reading {count} meetings…"
- }
+ },
+ "Setting up notes": "Setting up notes",
+ "Setting up notes · {percent}": "Setting up notes · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "Yogurt's AI is ready. Summaries and Ask now work."
}
diff --git a/app/src/shared/locales/es.json b/app/src/shared/locales/es.json
index 40b07d61..be6bb42a 100644
--- a/app/src/shared/locales/es.json
+++ b/app/src/shared/locales/es.json
@@ -623,5 +623,10 @@
"Disconnect": "Desconectar",
"Yogurt stops using these calendars.": "Yogurt deja de usar estos calendarios.",
"Calendar access": "Acceso al calendario",
- "Remove Yogurt’s access in System Settings.": "Quita el acceso de Yogurt en Ajustes del Sistema."
+ "Remove Yogurt’s access in System Settings.": "Quita el acceso de Yogurt en Ajustes del Sistema.",
+ "Setting up notes": "Preparando las notas",
+ "Setting up notes · {percent}": "Preparando las notas · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "Ya puedes grabar. Los resúmenes y las preguntas estarán disponibles cuando termine la descarga de la IA de Yogurt.",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "Esperando a que termine la descarga de la IA de Yogurt ({percent}). Recibirás tu respuesta en cuanto esté lista.",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "La IA de Yogurt está lista. Ya puedes usar los resúmenes y las preguntas."
}
diff --git a/app/src/shared/locales/fi.json b/app/src/shared/locales/fi.json
index 613d9293..8a2c9913 100644
--- a/app/src/shared/locales/fi.json
+++ b/app/src/shared/locales/fi.json
@@ -613,5 +613,10 @@
"Disconnect": "Irrota",
"Yogurt stops using these calendars.": "Yogurt lakkaa käyttämästä näitä kalentereita.",
"Calendar access": "Kalenterin käyttöoikeus",
- "Remove Yogurt’s access in System Settings.": "Poista Yogurtin käyttöoikeus Järjestelmäasetuksista."
+ "Remove Yogurt’s access in System Settings.": "Poista Yogurtin käyttöoikeus Järjestelmäasetuksista.",
+ "Setting up notes": "Valmistellaan muistiinpanoja",
+ "Setting up notes · {percent}": "Valmistellaan muistiinpanoja · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "Voit jo tallentaa. Yhteenvedot ja kysymykset toimivat, kun Yogurtin tekoäly on ladattu.",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "Odotetaan Yogurtin tekoälyn latautumista ({percent}). Saat vastauksen heti, kun se on valmis.",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "Yogurtin tekoäly on valmis. Yhteenvedot ja kysymykset toimivat nyt."
}
diff --git a/app/src/shared/locales/fil.json b/app/src/shared/locales/fil.json
index 755f082e..6e725980 100644
--- a/app/src/shared/locales/fil.json
+++ b/app/src/shared/locales/fil.json
@@ -610,5 +610,10 @@
"Disconnect": "Idiskonekta",
"Yogurt stops using these calendars.": "Hihinto ang Yogurt sa paggamit ng mga kalendaryong ito.",
"Calendar access": "Access sa kalendaryo",
- "Remove Yogurt’s access in System Settings.": "Alisin ang access ng Yogurt sa System Settings."
+ "Remove Yogurt’s access in System Settings.": "Alisin ang access ng Yogurt sa System Settings.",
+ "Setting up notes": "Inihahanda ang mga tala",
+ "Setting up notes · {percent}": "Inihahanda ang mga tala · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "Puwede ka nang mag-record. Gagana ang mga buod at mga tanong kapag natapos ang pag-download ng AI ng Yogurt.",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "Hinihintay matapos ang pag-download ng AI ng Yogurt ({percent}). Makukuha mo ang sagot kapag handa na ito.",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "Handa na ang AI ng Yogurt. Gumagana na ang mga buod at mga tanong."
}
diff --git a/app/src/shared/locales/fr.json b/app/src/shared/locales/fr.json
index 0d75d659..47805257 100644
--- a/app/src/shared/locales/fr.json
+++ b/app/src/shared/locales/fr.json
@@ -623,5 +623,10 @@
"Disconnect": "Déconnecter",
"Yogurt stops using these calendars.": "Yogurt cesse d’utiliser ces calendriers.",
"Calendar access": "Accès aux calendriers",
- "Remove Yogurt’s access in System Settings.": "Retirez l’accès de Yogurt dans Réglages Système."
+ "Remove Yogurt’s access in System Settings.": "Retirez l’accès de Yogurt dans Réglages Système.",
+ "Setting up notes": "Préparation des notes",
+ "Setting up notes · {percent}": "Préparation des notes · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "Vous pouvez déjà enregistrer. Les résumés et les questions seront disponibles une fois le téléchargement de l’IA de Yogurt terminé.",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "En attente de la fin du téléchargement de l’IA de Yogurt ({percent}). Vous recevrez votre réponse dès qu’elle sera prête.",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "L’IA de Yogurt est prête. Les résumés et les questions sont maintenant disponibles."
}
diff --git a/app/src/shared/locales/he.json b/app/src/shared/locales/he.json
index 8d0baf45..7d4549c1 100644
--- a/app/src/shared/locales/he.json
+++ b/app/src/shared/locales/he.json
@@ -623,5 +623,10 @@
"Disconnect": "ניתוק",
"Yogurt stops using these calendars.": "Yogurt יפסיק להשתמש בלוחות השנה האלה.",
"Calendar access": "גישה ללוח השנה",
- "Remove Yogurt’s access in System Settings.": "הסירו את הגישה של Yogurt בהגדרות המערכת."
+ "Remove Yogurt’s access in System Settings.": "הסירו את הגישה של Yogurt בהגדרות המערכת.",
+ "Setting up notes": "הגדרת סיכומים",
+ "Setting up notes · {percent}": "הגדרת סיכומים · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "אפשר להקליט כבר עכשיו. סיכומים ושאלות יהיו זמינים כשהורדת הבינה המלאכותית של Yogurt תסתיים.",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "ממתינים לסיום הורדת הבינה המלאכותית של Yogurt ({percent}). התשובה תגיע ברגע שהיא תהיה מוכנה.",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "הבינה המלאכותית של Yogurt מוכנה. סיכומים ושאלות זמינים עכשיו."
}
diff --git a/app/src/shared/locales/hi.json b/app/src/shared/locales/hi.json
index 22e218c2..ffa8cb7b 100644
--- a/app/src/shared/locales/hi.json
+++ b/app/src/shared/locales/hi.json
@@ -610,5 +610,10 @@
"Disconnect": "डिस्कनेक्ट करें",
"Yogurt stops using these calendars.": "Yogurt इन कैलेंडर का इस्तेमाल बंद कर देता है।",
"Calendar access": "कैलेंडर की पहुँच",
- "Remove Yogurt’s access in System Settings.": "सिस्टम सेटिंग्स में Yogurt की पहुँच हटाएँ।"
+ "Remove Yogurt’s access in System Settings.": "सिस्टम सेटिंग्स में Yogurt की पहुँच हटाएँ।",
+ "Setting up notes": "नोट्स तैयार हो रहे हैं",
+ "Setting up notes · {percent}": "नोट्स तैयार हो रहे हैं · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "अब रिकॉर्डिंग की जा सकती है। Yogurt का AI डाउनलोड होने के बाद सारांश और सवालों की सुविधा शुरू होगी।",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "Yogurt का AI डाउनलोड होने का इंतज़ार है ({percent})। तैयार होते ही आपका जवाब आ जाएगा।",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "Yogurt का AI तैयार है। अब सारांश और सवालों की सुविधा काम कर रही है।"
}
diff --git a/app/src/shared/locales/hu.json b/app/src/shared/locales/hu.json
index c0a2bc82..a27799d1 100644
--- a/app/src/shared/locales/hu.json
+++ b/app/src/shared/locales/hu.json
@@ -610,5 +610,10 @@
"Disconnect": "Leválasztás",
"Yogurt stops using these calendars.": "A Yogurt nem használja tovább ezeket a naptárakat.",
"Calendar access": "Naptár-hozzáférés",
- "Remove Yogurt’s access in System Settings.": "A Yogurt hozzáférését a Rendszerbeállításokban szüntetheted meg."
+ "Remove Yogurt’s access in System Settings.": "A Yogurt hozzáférését a Rendszerbeállításokban szüntetheted meg.",
+ "Setting up notes": "Jegyzetek előkészítése",
+ "Setting up notes · {percent}": "Jegyzetek előkészítése · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "A felvétel már működik. Az összefoglalók és a kérdések a Yogurt AI letöltése után lesznek elérhetők.",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "Várakozás a Yogurt AI letöltésére ({percent}). Amint készen áll, megkapod a választ.",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "A Yogurt AI készen áll. Az összefoglalók és a kérdések már működnek."
}
diff --git a/app/src/shared/locales/id.json b/app/src/shared/locales/id.json
index fcab3cf0..59af7ab4 100644
--- a/app/src/shared/locales/id.json
+++ b/app/src/shared/locales/id.json
@@ -571,5 +571,10 @@
"Disconnect": "Putuskan",
"Yogurt stops using these calendars.": "Yogurt berhenti menggunakan kalender ini.",
"Calendar access": "Akses kalender",
- "Remove Yogurt’s access in System Settings.": "Hapus akses Yogurt di Pengaturan Sistem."
+ "Remove Yogurt’s access in System Settings.": "Hapus akses Yogurt di Pengaturan Sistem.",
+ "Setting up notes": "Menyiapkan catatan",
+ "Setting up notes · {percent}": "Menyiapkan catatan · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "Perekaman sudah bisa digunakan. Ringkasan dan pertanyaan akan tersedia setelah AI Yogurt selesai diunduh.",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "Menunggu AI Yogurt selesai diunduh ({percent}). Jawaban akan muncul begitu siap.",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "AI Yogurt sudah siap. Ringkasan dan pertanyaan kini bisa digunakan."
}
diff --git a/app/src/shared/locales/it.json b/app/src/shared/locales/it.json
index afd7ad10..484a9c58 100644
--- a/app/src/shared/locales/it.json
+++ b/app/src/shared/locales/it.json
@@ -626,5 +626,10 @@
"Disconnect": "Scollega",
"Yogurt stops using these calendars.": "Yogurt smette di usare questi calendari.",
"Calendar access": "Accesso al calendario",
- "Remove Yogurt’s access in System Settings.": "Rimuovi l’accesso di Yogurt in Impostazioni di Sistema."
+ "Remove Yogurt’s access in System Settings.": "Rimuovi l’accesso di Yogurt in Impostazioni di Sistema.",
+ "Setting up notes": "Preparazione delle note",
+ "Setting up notes · {percent}": "Preparazione delle note · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "Puoi già registrare. I riepiloghi e le domande saranno disponibili al termine del download dell’IA di Yogurt.",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "In attesa del download dell’IA di Yogurt ({percent}). Riceverai la risposta non appena sarà pronta.",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "L’IA di Yogurt è pronta. I riepiloghi e le domande sono ora disponibili."
}
diff --git a/app/src/shared/locales/ja.json b/app/src/shared/locales/ja.json
index c541eae1..9a7e90a0 100644
--- a/app/src/shared/locales/ja.json
+++ b/app/src/shared/locales/ja.json
@@ -571,5 +571,10 @@
"Disconnect": "接続を解除",
"Yogurt stops using these calendars.": "Yogurt はこれらのカレンダーを使わなくなります。",
"Calendar access": "カレンダーへのアクセス",
- "Remove Yogurt’s access in System Settings.": "Yogurt のアクセス権はシステム設定で外せます。"
+ "Remove Yogurt’s access in System Settings.": "Yogurt のアクセス権はシステム設定で外せます。",
+ "Setting up notes": "ノートを準備中",
+ "Setting up notes · {percent}": "ノートを準備中 · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "録音はすでに利用できます。YogurtのAIのダウンロードが完了すると、要約と質問が使えるようになります。",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "YogurtのAIのダウンロード完了を待っています({percent})。準備ができ次第、回答します。",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "YogurtのAIの準備ができました。要約と質問が利用できます。"
}
diff --git a/app/src/shared/locales/ko.json b/app/src/shared/locales/ko.json
index 7db645c9..66539166 100644
--- a/app/src/shared/locales/ko.json
+++ b/app/src/shared/locales/ko.json
@@ -571,5 +571,10 @@
"Disconnect": "연결 해제",
"Yogurt stops using these calendars.": "Yogurt가 이 캘린더들을 더 이상 사용하지 않습니다.",
"Calendar access": "캘린더 접근 권한",
- "Remove Yogurt’s access in System Settings.": "시스템 설정에서 Yogurt의 접근 권한을 해제하세요."
+ "Remove Yogurt’s access in System Settings.": "시스템 설정에서 Yogurt의 접근 권한을 해제하세요.",
+ "Setting up notes": "노트 준비 중",
+ "Setting up notes · {percent}": "노트 준비 중 · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "지금 녹음할 수 있어요. Yogurt AI 다운로드가 끝나면 요약과 질문을 사용할 수 있어요.",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "Yogurt AI 다운로드가 끝나기를 기다리고 있어요({percent}). 준비되는 대로 답변해 드릴게요.",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "Yogurt AI가 준비됐어요. 이제 요약과 질문을 사용할 수 있어요."
}
diff --git a/app/src/shared/locales/ms.json b/app/src/shared/locales/ms.json
index 3cfb3ba6..2c95d09d 100644
--- a/app/src/shared/locales/ms.json
+++ b/app/src/shared/locales/ms.json
@@ -571,5 +571,10 @@
"Disconnect": "Putuskan sambungan",
"Yogurt stops using these calendars.": "Yogurt berhenti menggunakan kalendar ini.",
"Calendar access": "Akses kalendar",
- "Remove Yogurt’s access in System Settings.": "Buang akses Yogurt dalam Tetapan Sistem."
+ "Remove Yogurt’s access in System Settings.": "Buang akses Yogurt dalam Tetapan Sistem.",
+ "Setting up notes": "Menyediakan nota",
+ "Setting up notes · {percent}": "Menyediakan nota · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "Rakaman sudah boleh digunakan. Ringkasan dan soalan akan tersedia apabila AI Yogurt selesai dimuat turun.",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "Menunggu AI Yogurt selesai dimuat turun ({percent}). Jawapan anda akan diberikan sebaik sahaja ia sedia.",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "AI Yogurt sudah sedia. Ringkasan dan soalan kini boleh digunakan."
}
diff --git a/app/src/shared/locales/nb.json b/app/src/shared/locales/nb.json
index fc5904c5..df7a710e 100644
--- a/app/src/shared/locales/nb.json
+++ b/app/src/shared/locales/nb.json
@@ -610,5 +610,10 @@
"Disconnect": "Koble fra",
"Yogurt stops using these calendars.": "Yogurt slutter å bruke disse kalenderne.",
"Calendar access": "Kalendertilgang",
- "Remove Yogurt’s access in System Settings.": "Fjern tilgangen til Yogurt i Systeminnstillinger."
+ "Remove Yogurt’s access in System Settings.": "Fjern tilgangen til Yogurt i Systeminnstillinger.",
+ "Setting up notes": "Klargjør notater",
+ "Setting up notes · {percent}": "Klargjør notater · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "Du kan ta opp nå. Sammendrag og spørsmål virker når Yogurts KI er lastet ned.",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "Venter på at Yogurts KI blir lastet ned ({percent}). Du får svar så snart den er klar.",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "Yogurts KI er klar. Sammendrag og spørsmål virker nå."
}
diff --git a/app/src/shared/locales/nl.json b/app/src/shared/locales/nl.json
index b97402b3..44c32909 100644
--- a/app/src/shared/locales/nl.json
+++ b/app/src/shared/locales/nl.json
@@ -610,5 +610,10 @@
"Disconnect": "Ontkoppelen",
"Yogurt stops using these calendars.": "Yogurt gebruikt deze agenda’s niet meer.",
"Calendar access": "Agendatoegang",
- "Remove Yogurt’s access in System Settings.": "Trek de toegang van Yogurt in via Systeeminstellingen."
+ "Remove Yogurt’s access in System Settings.": "Trek de toegang van Yogurt in via Systeeminstellingen.",
+ "Setting up notes": "Notities voorbereiden",
+ "Setting up notes · {percent}": "Notities voorbereiden · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "Je kunt nu al opnemen. Samenvattingen en vragen werken zodra de AI van Yogurt is gedownload.",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "Wachten tot de AI van Yogurt is gedownload ({percent}). Je krijgt antwoord zodra deze klaar is.",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "De AI van Yogurt is klaar. Samenvattingen en vragen werken nu."
}
diff --git a/app/src/shared/locales/pl.json b/app/src/shared/locales/pl.json
index 9c0f0752..36c1209e 100644
--- a/app/src/shared/locales/pl.json
+++ b/app/src/shared/locales/pl.json
@@ -636,5 +636,10 @@
"Disconnect": "Odłącz",
"Yogurt stops using these calendars.": "Yogurt przestanie używać tych kalendarzy.",
"Calendar access": "Dostęp do kalendarza",
- "Remove Yogurt’s access in System Settings.": "Odbierz Yogurtowi dostęp w Ustawieniach systemowych."
+ "Remove Yogurt’s access in System Settings.": "Odbierz Yogurtowi dostęp w Ustawieniach systemowych.",
+ "Setting up notes": "Przygotowywanie notatek",
+ "Setting up notes · {percent}": "Przygotowywanie notatek · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "Nagrywanie już działa. Podsumowania i pytania będą dostępne po pobraniu AI Yogurt.",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "Oczekiwanie na pobranie AI Yogurt ({percent}). Odpowiedź otrzymasz, gdy tylko będzie gotowa.",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "AI Yogurt jest gotowe. Podsumowania i pytania już działają."
}
diff --git a/app/src/shared/locales/pt-BR.json b/app/src/shared/locales/pt-BR.json
index 75a329fa..654a5b8c 100644
--- a/app/src/shared/locales/pt-BR.json
+++ b/app/src/shared/locales/pt-BR.json
@@ -623,5 +623,10 @@
"Disconnect": "Desconectar",
"Yogurt stops using these calendars.": "O Yogurt deixa de usar esses calendários.",
"Calendar access": "Acesso ao calendário",
- "Remove Yogurt’s access in System Settings.": "Remova o acesso do Yogurt nos Ajustes do Sistema."
+ "Remove Yogurt’s access in System Settings.": "Remova o acesso do Yogurt nos Ajustes do Sistema.",
+ "Setting up notes": "Preparando as notas",
+ "Setting up notes · {percent}": "Preparando as notas · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "Você já pode gravar. Os resumos e as perguntas estarão disponíveis quando o download da IA do Yogurt terminar.",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "Aguardando o download da IA do Yogurt ({percent}). Você receberá a resposta assim que ela estiver pronta.",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "A IA do Yogurt está pronta. Os resumos e as perguntas já funcionam."
}
diff --git a/app/src/shared/locales/ro.json b/app/src/shared/locales/ro.json
index b094f872..70aaa4dc 100644
--- a/app/src/shared/locales/ro.json
+++ b/app/src/shared/locales/ro.json
@@ -623,5 +623,10 @@
"Disconnect": "Deconectează",
"Yogurt stops using these calendars.": "Yogurt nu mai folosește aceste calendare.",
"Calendar access": "Acces la calendar",
- "Remove Yogurt’s access in System Settings.": "Elimină accesul Yogurt din Setările de sistem."
+ "Remove Yogurt’s access in System Settings.": "Elimină accesul Yogurt din Setările de sistem.",
+ "Setting up notes": "Se pregătesc notițele",
+ "Setting up notes · {percent}": "Se pregătesc notițele · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "Poți înregistra deja. Rezumatele și întrebările vor funcționa după descărcarea AI-ului Yogurt.",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "Se așteaptă descărcarea AI-ului Yogurt ({percent}). Vei primi răspunsul imediat ce este gata.",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "AI-ul Yogurt este gata. Rezumatele și întrebările funcționează acum."
}
diff --git a/app/src/shared/locales/ru.json b/app/src/shared/locales/ru.json
index b7045a83..7b4db0bc 100644
--- a/app/src/shared/locales/ru.json
+++ b/app/src/shared/locales/ru.json
@@ -636,5 +636,10 @@
"Disconnect": "Отключить",
"Yogurt stops using these calendars.": "Yogurt перестанет использовать эти календари.",
"Calendar access": "Доступ к календарю",
- "Remove Yogurt’s access in System Settings.": "Уберите доступ Yogurt в Системных настройках."
+ "Remove Yogurt’s access in System Settings.": "Уберите доступ Yogurt в Системных настройках.",
+ "Setting up notes": "Подготовка заметок",
+ "Setting up notes · {percent}": "Подготовка заметок · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "Запись уже работает. Сводки и вопросы станут доступны после загрузки ИИ Yogurt.",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "Ожидание завершения загрузки ИИ Yogurt ({percent}). Вы получите ответ, как только он будет готов.",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "ИИ Yogurt готов. Сводки и вопросы теперь доступны."
}
diff --git a/app/src/shared/locales/sv.json b/app/src/shared/locales/sv.json
index 0d331086..559e494b 100644
--- a/app/src/shared/locales/sv.json
+++ b/app/src/shared/locales/sv.json
@@ -610,5 +610,10 @@
"Disconnect": "Koppla från",
"Yogurt stops using these calendars.": "Yogurt slutar använda de här kalendrarna.",
"Calendar access": "Kalenderåtkomst",
- "Remove Yogurt’s access in System Settings.": "Ta bort Yogurts åtkomst i Systeminställningar."
+ "Remove Yogurt’s access in System Settings.": "Ta bort Yogurts åtkomst i Systeminställningar.",
+ "Setting up notes": "Förbereder anteckningar",
+ "Setting up notes · {percent}": "Förbereder anteckningar · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "Du kan spela in nu. Sammanfattningar och frågor fungerar när Yogurts AI har laddats ner.",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "Väntar på att Yogurts AI laddas ner ({percent}). Du får svar så snart den är redo.",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "Yogurts AI är redo. Sammanfattningar och frågor fungerar nu."
}
diff --git a/app/src/shared/locales/th.json b/app/src/shared/locales/th.json
index 4ba7b471..6fe66700 100644
--- a/app/src/shared/locales/th.json
+++ b/app/src/shared/locales/th.json
@@ -571,5 +571,10 @@
"Disconnect": "ยกเลิกการเชื่อมต่อ",
"Yogurt stops using these calendars.": "Yogurt จะหยุดใช้ปฏิทินเหล่านี้",
"Calendar access": "การเข้าถึงปฏิทิน",
- "Remove Yogurt’s access in System Settings.": "เอาสิทธิ์เข้าถึงของ Yogurt ออกในการตั้งค่าระบบ"
+ "Remove Yogurt’s access in System Settings.": "เอาสิทธิ์เข้าถึงของ Yogurt ออกในการตั้งค่าระบบ",
+ "Setting up notes": "กำลังเตรียมบันทึก",
+ "Setting up notes · {percent}": "กำลังเตรียมบันทึก · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "บันทึกเสียงได้แล้ว สรุปและคำถามจะพร้อมใช้งานเมื่อดาวน์โหลด AI ของ Yogurt เสร็จ",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "กำลังรอให้ดาวน์โหลด AI ของ Yogurt เสร็จ ({percent}) คุณจะได้รับคำตอบทันทีที่พร้อม",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "AI ของ Yogurt พร้อมแล้ว สรุปและคำถามใช้งานได้แล้ว"
}
diff --git a/app/src/shared/locales/tr.json b/app/src/shared/locales/tr.json
index 4b1beeac..805260bf 100644
--- a/app/src/shared/locales/tr.json
+++ b/app/src/shared/locales/tr.json
@@ -610,5 +610,10 @@
"Disconnect": "Bağlantıyı kes",
"Yogurt stops using these calendars.": "Yogurt bu takvimleri kullanmayı bırakır.",
"Calendar access": "Takvim erişimi",
- "Remove Yogurt’s access in System Settings.": "Yogurt’un erişimini Sistem Ayarları’ndan kaldır."
+ "Remove Yogurt’s access in System Settings.": "Yogurt’un erişimini Sistem Ayarları’ndan kaldır.",
+ "Setting up notes": "Notlar hazırlanıyor",
+ "Setting up notes · {percent}": "Notlar hazırlanıyor · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "Şimdi kayıt yapabilirsiniz. Yogurt’un yapay zekası indirildiğinde özetler ve sorular çalışacak.",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "Yogurt’un yapay zekasının indirilmesi bekleniyor ({percent}). Hazır olur olmaz yanıtınızı alacaksınız.",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "Yogurt’un yapay zekası hazır. Özetler ve sorular artık çalışıyor."
}
diff --git a/app/src/shared/locales/uk.json b/app/src/shared/locales/uk.json
index fbc8814c..f29e28fa 100644
--- a/app/src/shared/locales/uk.json
+++ b/app/src/shared/locales/uk.json
@@ -636,5 +636,10 @@
"Disconnect": "Відключити",
"Yogurt stops using these calendars.": "Yogurt перестане використовувати ці календарі.",
"Calendar access": "Доступ до календаря",
- "Remove Yogurt’s access in System Settings.": "Приберіть доступ Yogurt у Системних параметрах."
+ "Remove Yogurt’s access in System Settings.": "Приберіть доступ Yogurt у Системних параметрах.",
+ "Setting up notes": "Підготовка нотаток",
+ "Setting up notes · {percent}": "Підготовка нотаток · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "Запис уже працює. Підсумки та запитання стануть доступними після завантаження ШІ Yogurt.",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "Очікування завершення завантаження ШІ Yogurt ({percent}). Ви отримаєте відповідь, щойно він буде готовий.",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "ШІ Yogurt готовий. Підсумки та запитання тепер доступні."
}
diff --git a/app/src/shared/locales/vi.json b/app/src/shared/locales/vi.json
index f7a254f0..df2262db 100644
--- a/app/src/shared/locales/vi.json
+++ b/app/src/shared/locales/vi.json
@@ -571,5 +571,10 @@
"Disconnect": "Ngắt kết nối",
"Yogurt stops using these calendars.": "Yogurt ngừng dùng các lịch này.",
"Calendar access": "Quyền truy cập lịch",
- "Remove Yogurt’s access in System Settings.": "Gỡ quyền truy cập của Yogurt trong Cài đặt hệ thống."
+ "Remove Yogurt’s access in System Settings.": "Gỡ quyền truy cập của Yogurt trong Cài đặt hệ thống.",
+ "Setting up notes": "Đang chuẩn bị ghi chú",
+ "Setting up notes · {percent}": "Đang chuẩn bị ghi chú · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "Bạn đã có thể ghi âm. Tóm tắt và câu hỏi sẽ hoạt động khi AI của Yogurt tải xong.",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "Đang chờ AI của Yogurt tải xong ({percent}). Bạn sẽ nhận được câu trả lời ngay khi sẵn sàng.",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "AI của Yogurt đã sẵn sàng. Tóm tắt và câu hỏi đã hoạt động."
}
diff --git a/app/src/shared/locales/zh-CN.json b/app/src/shared/locales/zh-CN.json
index f239130d..47b34042 100644
--- a/app/src/shared/locales/zh-CN.json
+++ b/app/src/shared/locales/zh-CN.json
@@ -571,5 +571,10 @@
"Disconnect": "断开",
"Yogurt stops using these calendars.": "Yogurt 将停止使用这些日历。",
"Calendar access": "日历访问权限",
- "Remove Yogurt’s access in System Settings.": "在系统设置中移除 Yogurt 的访问权限。"
+ "Remove Yogurt’s access in System Settings.": "在系统设置中移除 Yogurt 的访问权限。",
+ "Setting up notes": "正在准备笔记",
+ "Setting up notes · {percent}": "正在准备笔记 · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "现在可以录音。Yogurt 的 AI 下载完成后,即可使用摘要和提问。",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "正在等待 Yogurt 的 AI 下载完成({percent})。准备就绪后会立即回答。",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "Yogurt 的 AI 已就绪。现在可以使用摘要和提问。"
}
diff --git a/app/src/shared/locales/zh-TW.json b/app/src/shared/locales/zh-TW.json
index c246c18d..a341ee51 100644
--- a/app/src/shared/locales/zh-TW.json
+++ b/app/src/shared/locales/zh-TW.json
@@ -571,5 +571,10 @@
"Disconnect": "中斷連結",
"Yogurt stops using these calendars.": "Yogurt 會停止使用這些日曆。",
"Calendar access": "日曆存取權限",
- "Remove Yogurt’s access in System Settings.": "在系統設定中移除 Yogurt 的存取權限。"
+ "Remove Yogurt’s access in System Settings.": "在系統設定中移除 Yogurt 的存取權限。",
+ "Setting up notes": "正在準備筆記",
+ "Setting up notes · {percent}": "正在準備筆記 · {percent}",
+ "Recording works now. Summaries and Ask start when Yogurt's AI finishes downloading.": "現在可以錄音。Yogurt 的 AI 下載完成後,即可使用摘要和提問。",
+ "Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.": "正在等待 Yogurt 的 AI 下載完成({percent})。準備就緒後會立即回答。",
+ "Yogurt's AI is ready. Summaries and Ask now work.": "Yogurt 的 AI 已就緒。現在可以使用摘要和提問。"
}
diff --git a/app/src/shared/types.ts b/app/src/shared/types.ts
index b910fe58..95ff33c0 100644
--- a/app/src/shared/types.ts
+++ b/app/src/shared/types.ts
@@ -285,9 +285,9 @@ export type SetupState = {
message?: string
/** Speech is ready, but the first notes-model download failed. Recording and transcription still work. */
notesError?: string
- /** Windows and Linux: the first notes model is still downloading after ready, this far (0 to 1); waiting notes say so */
+ /** The first notes model is still downloading after ready, this far (0 to 1), on every system. */
notesFraction?: number
- /** the first notes model is still downloading after ready (every system; only Windows and Linux say how far) */
+ /** The first notes model is still downloading after ready, on every system. */
notesDownloading?: boolean
}
diff --git a/app/test/libraryChat.test.ts b/app/test/libraryChat.test.ts
index 4d605c34..15156708 100644
--- a/app/test/libraryChat.test.ts
+++ b/app/test/libraryChat.test.ts
@@ -45,8 +45,9 @@ async function rig(o: { llm?: Partial<Llm>; queue?: ReturnType<typeof createQueu
}
const views: ConversationView[] = []
const lists: unknown[] = []
- const chats = hookConversations({ store, library, indexer, embedder, queue, model: { llm: async () => llm }, send: (v) => views.push(v), sendList: (l) => lists.push(l), waitsForMeeting: () => false, waitsForModel: o.waitsForModel ?? (() => false), warmAllowed: o.warmAllowed, now: () => now })
- return { store, library, chats, prompts, read, views, lists, meeting: m }
+ const deps = { store, library, indexer, embedder, queue, model: { llm: async () => llm }, send: (v: ConversationView) => { views.push(v) }, sendList: (l: unknown) => { lists.push(l) }, waitsForMeeting: () => false, waitsForModel: o.waitsForModel ?? (() => false), warmAllowed: o.warmAllowed, now: () => now }
+ const chats = hookConversations(deps)
+ return { store, library, chats, prompts, read, views, lists, meeting: m, deps, file: join(d, 'yogurt.db') }
}
describe('conversations across meetings', () => {
@@ -275,3 +276,83 @@ describe('warm: one meeting read in when its conversation opens', () => {
expect([...off.read, ...waiting.read]).toEqual([])
})
})
+
+
+describe('questions waiting for the first notes download', () => {
+ it.each(['meeting', 'library'])('answers a waiting %s question when the model arrives', async scope => {
+ let ready = true
+ const queue = createQueue({ smallMac: false, recording: () => false, modelReady: () => ready })
+ const t = await rig({ queue, waitsForModel: () => !ready })
+ ready = false
+ const cid = scope === 'meeting' ? t.library.current([{ kind: 'meeting', id: t.meeting.id }]) : null
+ const { id, done } = t.chats.ask(cid, 'What is the price?')
+ expect(t.chats.view(id)?.turns[0].status).toBe('waiting')
+ expect(t.library.turns(id)[0].waitingModel).toBe(true)
+ expect(t.prompts).toEqual([])
+ ready = true; queue.modelArrived()
+ await done
+ expect(t.chats.view(id)?.turns[0].status).toBe('done')
+ expect(t.library.waitingTurns()).toEqual([])
+ expect(t.prompts).toHaveLength(1)
+ })
+
+ it.each([
+ ['meeting', false], ['library', false], ['meeting', true], ['library', true],
+ ] as const)('resumes the same saved %s question after reopening the database (model already ready: %s)', async (scope, readyOnRestart) => {
+ let ready = true
+ const queue = createQueue({ smallMac: false, recording: () => false, modelReady: () => ready })
+ const t = await rig({ queue, waitsForModel: () => !ready })
+ ready = false
+ const cid = scope === 'meeting' ? t.library.current([{ kind: 'meeting', id: t.meeting.id }]) : null
+ const { id } = t.chats.ask(cid, 'What is the price?')
+ const saved = t.library.turns(id)[0]
+ t.store.close(); stores.splice(stores.indexOf(t.store), 1)
+ const store = openStore(t.file); stores.push(store)
+ const library = new Library(store.db)
+ ready = readyOnRestart
+ const resumedQueue = createQueue({ smallMac: false, recording: () => false, modelReady: () => ready })
+ const engine = new FakeEngine()
+ const embedder = createEmbedder({ engine, modelPath: () => '/m/e.gguf', id: 'fake', dims: 768 })
+ const indexer = createIndexer({ store, library, embedder, queue: resumedQueue })
+ const resumed = hookConversations({ ...t.deps, store, library, embedder, indexer, queue: resumedQueue })
+ if (!ready) expect(resumed.view(id)?.turns[0].status).toBe('waiting')
+ ready = true; resumedQueue.modelArrived()
+ await expect.poll(() => resumed.view(id)?.turns[0].status).toBe('done')
+ expect(library.turns(id)).toHaveLength(1)
+ expect(library.turns(id)[0]).toMatchObject({ id: saved.id, question: saved.question, waitingModel: false })
+ expect(t.prompts).toHaveLength(1)
+ if (scope === 'meeting') expect(resumed.view(id)?.chips).toMatchObject([{ kind: 'meeting', id: t.meeting.id }])
+ })
+
+ it('queues imported waiting questions on refresh, without duplicating running work', async () => {
+ let ready = true
+ const queue = createQueue({ smallMac: false, recording: () => false, modelReady: () => ready })
+ const t = await rig({ queue, waitsForModel: () => !ready })
+ ready = false
+ const id = t.library.current([], true)
+ const turn = t.library.addTurn(id, 'Imported waiting question', now, true)
+ t.chats.refresh(); t.chats.refresh()
+ expect(t.chats.view(id)?.turns).toMatchObject([{ id: turn, status: 'waiting' }])
+ ready = true; queue.modelArrived()
+ await expect.poll(() => t.chats.view(id)?.turns[0].status).toBe('done')
+ expect(t.library.turns(id)).toHaveLength(1)
+ expect(t.prompts).toHaveLength(1)
+ })
+
+ it('keeps cancelled questions stopped and never resumes an interrupted answer', async () => {
+ let ready = true
+ const queue = createQueue({ smallMac: false, recording: () => false, modelReady: () => ready })
+ const t = await rig({ queue, waitsForModel: () => !ready })
+ ready = false
+ const { id, done } = t.chats.ask(null, 'Cancel this question')
+ t.chats.stop(id); await done
+ expect(t.library.waitingTurns()).toEqual([])
+ const other = t.library.current([], true)
+ t.library.addTurn(other, 'Interrupted during inference')
+ const resumed = hookConversations(t.deps)
+ expect(resumed.view(id)?.turns[0].status).toBe('stopped')
+ expect(resumed.view(other)?.turns[0].status).toBe('stopped')
+ ready = true; queue.modelArrived()
+ expect(t.prompts).toEqual([])
+ })
+})
diff --git a/app/test/libraryStore.test.ts b/app/test/libraryStore.test.ts
index 163d7ca6..4b91ab96 100644
--- a/app/test/libraryStore.test.ts
+++ b/app/test/libraryStore.test.ts
@@ -3,7 +3,7 @@ import { mkdtempSync, rmSync } from 'node:fs'
import { tmpdir } from 'node:os'
import { join } from 'node:path'
import { openStore, type Store } from '../src/main/store'
-import { Library } from '../src/main/library/store'
+import { Library, libraryTables } from '../src/main/library/store'
const dirs: string[] = []
const stores: Store[] = []
@@ -96,7 +96,7 @@ describe('conversations', () => {
lib.setTurn(t, 'It is 20 dollars [1].', false, [{ n: 1, meetingId: 'm1', title: 'Pricing', startedAt: 5, atMs: 6000 }])
// asking moves a conversation to the top
expect(lib.conversations().map((c) => c.id)).toEqual([a, b])
- expect(lib.turns(a)).toEqual([{ id: t, question: 'what about pricing?', answer: 'It is 20 dollars [1].', stopped: false, sources: [{ n: 1, meetingId: 'm1', title: 'Pricing', startedAt: 5, atMs: 6000 }] }])
+ expect(lib.turns(a)).toEqual([{ id: t, question: 'what about pricing?', answer: 'It is 20 dollars [1].', stopped: false, waitingModel: false, sources: [{ n: 1, meetingId: 'm1', title: 'Pricing', startedAt: 5, atMs: 6000 }] }])
lib.renameConversation(a, 'Pricing questions')
expect(lib.conversation(a)?.title).toBe('Pricing questions')
lib.deleteConversation(a)
@@ -104,3 +104,22 @@ describe('conversations', () => {
expect(lib.turns(a)).toEqual([])
})
})
+
+
+it('adds download-wait persistence to an existing database without reclassifying old turns', () => {
+ const { s, lib } = fresh()
+ const id = lib.createConversation('Existing conversation')
+ const answered = lib.addTurn(id, 'Answered question')
+ lib.setTurn(answered, 'Saved answer', false, [])
+ const interrupted = lib.addTurn(id, 'Interrupted question')
+ s.db.exec('ALTER TABLE conversation_turns DROP COLUMN waiting_model')
+ libraryTables(s.db)
+ expect(lib.turns(id)).toMatchObject([
+ { id: answered, answer: 'Saved answer', waitingModel: false },
+ { id: interrupted, answer: '', waitingModel: false },
+ ])
+ expect(lib.waitingTurns()).toEqual([])
+ const waiting = lib.addTurn(id, 'Waiting for the download', 3000, true)
+ libraryTables(s.db)
+ expect(lib.waitingTurns()).toEqual([{ conversationId: id, id: waiting, question: 'Waiting for the download' }])
+})
diff --git a/app/test/notesSetup.test.ts b/app/test/notesSetup.test.ts
new file mode 100644
index 00000000..5e190b67
--- /dev/null
+++ b/app/test/notesSetup.test.ts
@@ -0,0 +1,44 @@
+import { describe, expect, it } from 'vitest'
+import { notesPercent, notesReadyNotice } from '../src/renderer/src/notesSetup'
+import type { SetupState } from '../src/shared/types'
+
+const downloading: SetupState = { phase: 'ready', fraction: 1, notesDownloading: true, notesFraction: 0.42 }
+const ready: SetupState = { phase: 'ready', fraction: 1 }
+
+describe('first notes model progress', () => {
+ it('clamps and floors progress without rounding up before the download finishes', () => {
+ expect([-0.1, 0, 0.429, 0.999, 1, 2].map(notesPercent)).toEqual(['0%', '0%', '42%', '99%', '100%', '100%'])
+ })
+ it('announces once after a noticeable download, never again on ready updates', () => {
+ const notice = notesReadyNotice()
+ expect(notice(downloading, true, 0)).toBe(false)
+ expect(notice(downloading, true, 1100)).toBe(false)
+ expect(notice(ready, true, 1200)).toBe(true)
+ expect(notice(ready, true, 1300)).toBe(false)
+ expect(notice(downloading, true, 1400)).toBe(false)
+ expect(notice(ready, true, 3000)).toBe(false)
+ })
+ it('skips cached launches, brief downloads, and downloads only seen while hidden', () => {
+ expect(notesReadyNotice()(ready, true, 5000)).toBe(false)
+ const brief = notesReadyNotice()
+ brief(downloading, true, 0)
+ expect(brief(ready, true, 999)).toBe(false)
+ const hidden = notesReadyNotice()
+ hidden(downloading, false, 0)
+ expect(hidden(ready, false, 5000)).toBe(false)
+ expect(hidden(ready, true, 6000)).toBe(false)
+ })
+ it('does not mistake a failed download for readiness; a retry can finish it', () => {
+ const notice = notesReadyNotice()
+ notice(downloading, true, 0)
+ expect(notice({ ...ready, notesError: 'Offline' }, true, 2000)).toBe(false)
+ expect(notice(downloading, true, 3000)).toBe(false)
+ expect(notice(ready, true, 4000)).toBe(true)
+ })
+ it('does not count hidden time toward a briefly visible download', () => {
+ const notice = notesReadyNotice()
+ notice(downloading, true, 0)
+ notice(downloading, false, 100)
+ expect(notice(ready, false, 5000)).toBe(false)
+ })
+})
diff --git a/app/test/setup.test.ts b/app/test/setup.test.ts
index 4bf71ce0..d8ec9556 100644
--- a/app/test/setup.test.ts
+++ b/app/test/setup.test.ts
@@ -328,27 +328,30 @@ describe('the speed check (Windows and Linux): speech models timed on this compu
return { deps, timed, stored: () => stored }
}
- it('the first notes model shows how far its download is (off a Mac), and stops showing it once it is in', async () => {
+ it('the first notes model shows progress on Windows, then clears it when installed', async () => {
const s = speed({ 'whisper-small-q5_1': 0.3 })
const { c, states } = setup({ getHardware: async () => cpuPc, speed: s.deps })
await c.start(); await c.idle()
const shown = states.filter((x) => x.phase === 'ready' && x.notesFraction !== undefined).map((x) => x.notesFraction)
- expect(shown).toEqual([0.25, 0.5, 0.75, 1])
+ expect(shown).toEqual([0, 0.25, 0.5, 0.75, 1])
expect(c.state.notesFraction).toBeUndefined()
expect(c.installed()?.llm).toBeTruthy()
})
- it('a Mac shows no notes download progress (as before)', async () => {
+ it('a Mac reports the same notes download progress', async () => {
const { c, states } = setup()
await c.start(); await c.idle()
- expect(states.some((x) => x.notesFraction !== undefined)).toBe(false)
+ expect(states.filter(x => x.notesFraction !== undefined).map(x => x.notesFraction)).toEqual([0, 0.25, 0.5, 0.75, 1])
+ expect(c.state.notesFraction).toBeUndefined()
})
it('every system says the first notes model is still downloading, until it is in', async () => {
- for (const hw of [undefined, cpuPc]) {
- const { c, states } = setup(hw ? { getHardware: async () => hw, speed: speed({ 'whisper-small-q5_1': 0.3 }).deps } : {})
+ for (const hw of [m1max, cpuPc, gpuPc]) {
+ const { c, states } = setup({ getHardware: async () => hw })
await c.start(); await c.idle()
- expect(states.some((x) => x.phase === 'ready' && x.notesDownloading)).toBe(true)
+ expect(states.some((x) => x.phase === 'ready' && x.notesDownloading && x.notesFraction === 0)).toBe(true)
+ expect(states.some((x) => (x.notesFraction ?? 0) > 0)).toBe(true)
+ expect(c.state.notesFraction).toBeUndefined()
expect(c.state.notesDownloading).toBeUndefined()
}
})