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.

Notes: Regenerate summary lives in the note's … menu with an optional note, greyed with the reason while recording, writing or waiting for Yogurt AI

Eric Brownrout7769538558a8
diff --git a/app/e2e/menuMotion.spec.ts b/app/e2e/menuMotion.spec.ts
index 48957438..1789ab04 100644
--- a/app/e2e/menuMotion.spec.ts
+++ b/app/e2e/menuMotion.spec.ts
@@ -5,8 +5,7 @@ import { join } from 'node:path'
const menus = [
{ trigger: 'share-button', surface: 'share-menu', first: 'share-copy-notes', logical: false },
- { trigger: 'note-menu-button', surface: 'note-menu', first: 'note-rename', logical: false },
- { trigger: 'note-view-menu', surface: 'note-view-menu-list', first: 'note-write-again', logical: true, end: true },
+ { trigger: 'note-menu-button', surface: 'note-menu', first: 'note-rename', logical: true, end: true },
{ trigger: 'note-date', surface: 'note-date-card', first: 'note-date-heading', logical: true },
{ trigger: 'note-attendees', surface: 'people-card', first: 'people-add', logical: true },
]
@@ -81,3 +80,22 @@ test('pointer menus share anchored entry in LTR and RTL; reduced motion keeps on
}
} finally { await app.close() }
})
+
+test('regeneration uses the top menu anchor and restores it after Escape', async () => {
+ const { app, page } = await launch()
+ try {
+ await expect(page.getByTestId('note-view-menu')).toHaveCount(0)
+ await page.getByTestId('note-menu-button').click()
+ await page.getByTestId('note-write-again').click()
+ const popup = page.getByTestId('note-regenerate')
+ await expect(popup).toBeVisible()
+ await expect(page.getByTestId('note-menu')).toHaveCount(0)
+ await expect(page.getByTestId('note-regenerate-input')).toBeFocused()
+ const anchor = await page.getByTestId('note-menu-button').boundingBox()
+ const box = await popup.boundingBox()
+ expect(box!.y).toBeCloseTo(anchor!.y + anchor!.height + 8, 0)
+ await page.keyboard.press('Escape')
+ await expect(popup).toHaveCount(0)
+ await expect(page.getByTestId('note-menu-button')).toBeFocused()
+ } finally { await app.close() }
+})
diff --git a/app/e2e/note-layout.spec.ts b/app/e2e/note-layout.spec.ts
index 502564d5..3cb85d92 100644
--- a/app/e2e/note-layout.spec.ts
+++ b/app/e2e/note-layout.spec.ts
@@ -111,8 +111,9 @@ test('My notes and Summary tabs switch versions; summary actions regenerate', as
await selectNoteVersion(page, 'mine')
await expect(page.getByTestId('note-mine')).toBeVisible()
await expect(page.getByTestId('note-notes-tab')).toHaveAttribute('data-version', 'mine')
- await page.getByTestId('note-view-menu').click()
+ await page.getByTestId('note-menu-button').click()
await page.getByTestId('note-write-again').click()
+ await page.getByTestId('note-write-again-confirm').click()
// The previous summary stays dimmed while reading, then the replacement writes in.
await expect(page.getByTestId('note-notes-tab')).toHaveAttribute('data-version', 'enhanced')
await expect(page.getByTestId('note-enhanced')).toHaveAttribute('data-status', 'writing', { timeout: 30_000 })
diff --git a/app/e2e/note.spec.ts b/app/e2e/note.spec.ts
index 4fb1b021..eac0eaf2 100644
--- a/app/e2e/note.spec.ts
+++ b/app/e2e/note.spec.ts
@@ -231,10 +231,12 @@ test('edits to the enhanced notes are saved; Write again asks first, then writes
await page.keyboard.press('End')
await page.keyboard.type(' (moved)')
await expect.poll(async () => (await notesOf(page, id)).enhanced, { timeout: 5000 }).toContain('## Launch plan (moved)')
- await page.getByTestId('note-view-menu').click()
+ await page.getByTestId('note-menu-button').click()
await page.getByTestId('note-write-again').click()
+ await expect(page.getByTestId('note-regenerate')).toBeVisible()
await expect(page.getByTestId('note-confirm')).toBeVisible()
- await page.getByTestId('note-write-again-confirm').click()
+ await expect(page.getByTestId('note-regenerate-input')).toHaveValue('')
+ await page.getByTestId('note-regenerate-input').press('Enter')
await expect(page.getByTestId('note-enhanced')).toHaveAttribute('data-status', 'writing', { timeout: 30_000 })
await expect(page.getByTestId('note-summary-rim')).toHaveCount(0)
await expect(editor.locator('h2').first()).not.toHaveText('Launch plan (moved)')
diff --git a/app/e2e/rewriteConfirm.spec.ts b/app/e2e/rewriteConfirm.spec.ts
index f7e2d614..943ae76e 100644
--- a/app/e2e/rewriteConfirm.spec.ts
+++ b/app/e2e/rewriteConfirm.spec.ts
@@ -13,51 +13,59 @@ async function launchEdited() {
await app.evaluate(() => (globalThis as unknown as { __fake__: { manyMeetings(o: { n: number; clean: boolean }): void } }).__fake__.manyMeetings({ n: 1, clean: true }))
await page.reload()
await page.getByTestId('past-note').click()
- const editor = page.getByTestId('note-enhanced-editor'), trigger = page.getByTestId('note-view-menu')
+ const editor = page.getByTestId('note-enhanced-editor'), trigger = page.getByTestId('note-menu-button')
const exact = 'My edited notes must survive a cancelled rewrite.'
await editor.fill(exact)
await expect(page.getByTestId('note-save-status')).toHaveAttribute('data-state', 'saved')
return { app, page, editor, trigger, exact }
}
-test('keyboard rewrite confirmation starts on Cancel, respects later Search, and restores its trigger on dismissal', async () => {
+test('keyboard regeneration focuses the optional note, respects Search, and restores its trigger on dismissal', async () => {
const { app, page, editor, trigger, exact } = await launchEdited()
try {
await expect(page.getByRole('tablist')).toHaveCount(1)
await expect(page.getByRole('tablist').getByRole('tab')).toHaveText(['Transcript', 'My notes', 'Summary'])
- await expect(page.getByRole('tablist').getByRole('button', { name: 'Summary actions' })).toHaveCount(0)
+ await expect(page.getByTestId('note-view-menu')).toHaveCount(0)
await expect(page.getByRole('textbox', { name: 'Summary', exact: true })).toBeVisible()
await trigger.focus()
await page.keyboard.press('Enter')
+ await expect(page.getByTestId('note-rename')).toBeFocused()
+ await page.keyboard.press('ArrowDown')
+ await page.keyboard.press('ArrowDown')
await expect(page.getByTestId('note-write-again')).toBeFocused()
await expect(page.getByTestId('note-write-again')).toHaveText('Regenerate summary')
await page.keyboard.press('Enter')
- const dialog = page.getByRole('alertdialog', { name: 'Regenerate summary?' })
+ const dialog = page.getByRole('dialog', { name: 'Regenerate summary' })
await expect(dialog).toBeVisible()
await expect(dialog).toHaveAttribute('aria-describedby', 'note-rewrite-description')
- await expect(page.getByTestId('note-write-again-cancel')).toBeFocused()
+ await expect(page.getByTestId('note-regenerate-input')).toBeFocused()
await page.keyboard.press('Meta+k')
await expect(page.getByTestId('search-input')).toBeFocused()
await page.keyboard.press('Escape')
await expect(page.getByTestId('search')).toHaveCount(0)
await expect(dialog).toBeVisible()
- await expect(page.getByTestId('note-write-again-cancel')).toBeFocused()
+ await expect(page.getByTestId('note-regenerate-input')).toBeFocused()
await page.keyboard.press('Escape')
await expect(dialog).toHaveCount(0)
await expect(trigger).toBeFocused()
await expect(editor).toHaveText(exact)
await page.keyboard.press('Enter')
+ await page.keyboard.press('ArrowDown')
+ await page.keyboard.press('ArrowDown')
await page.keyboard.press('Enter')
- await expect(page.getByTestId('note-write-again-cancel')).toBeFocused()
- // Return on the initial focus cancels; replacing edits still needs an explicit confirmation.
- await page.keyboard.press('Enter')
+ await expect(page.getByTestId('note-regenerate-input')).toBeFocused()
+ // Escape discards the one-time note without changing the saved summary.
+ await page.getByTestId('note-regenerate-input').fill('shorter')
+ await page.keyboard.press('Escape')
await expect(dialog).toHaveCount(0)
await expect(trigger).toBeFocused()
await expect(editor).toHaveText(exact)
await expect(page.getByTestId('note-enhanced')).toHaveAttribute('data-status', 'done')
await page.keyboard.press('Enter')
await page.getByTestId('note-write-again').press('Enter')
- await expect(page.getByTestId('note-write-again-cancel')).toBeFocused()
+ await expect(page.getByTestId('note-regenerate-input')).toBeFocused()
+ await expect(page.getByTestId('note-regenerate-input')).toHaveValue('')
+ await page.getByTestId('note-regenerate-input').fill('shorter')
await page.keyboard.press('Tab')
await expect(page.getByTestId('note-write-again-confirm')).toBeFocused()
await page.keyboard.press('Enter')
@@ -70,9 +78,6 @@ test('keyboard rewrite confirmation starts on Cancel, respects later Search, and
test('explicit rewrite confirmation closes before a delayed save; a failed save still prevents generation', async () => {
const { app, page, editor, trigger } = await launchEdited()
try {
- await trigger.click()
- await page.getByTestId('note-write-again').click()
- await expect(page.getByTestId('note-confirm')).toBeVisible()
await app.evaluate(({ ipcMain }) => {
type Invoke = (event: Electron.IpcMainInvokeEvent, ...args: unknown[]) => unknown
const original = (ipcMain as unknown as { _invokeHandlers: Map<string, Invoke> })._invokeHandlers.get('notes:set-enhanced')!
@@ -89,6 +94,9 @@ test('explicit rewrite confirmation closes before a delayed save; a failed save
})
const latest = 'This edit still needs its save acknowledged.'
await editor.fill(latest)
+ await trigger.click()
+ await page.getByTestId('note-write-again').click()
+ await expect(page.getByTestId('note-confirm')).toBeVisible()
await page.getByTestId('note-write-again-confirm').click()
await expect.poll(() => app.evaluate(() => (globalThis as unknown as { __saveRequested: boolean }).__saveRequested)).toBe(true)
await expect(page.getByTestId('note-confirm')).toHaveCount(0)
diff --git a/app/e2e/rewriteRecovery.spec.ts b/app/e2e/rewriteRecovery.spec.ts
index 16d0fb68..c0e57e01 100644
--- a/app/e2e/rewriteRecovery.spec.ts
+++ b/app/e2e/rewriteRecovery.spec.ts
@@ -36,7 +36,7 @@ test('a failed rewrite keeps the previous edited Enhanced note visible, copyable
await page.getByTestId('note-enhanced-editor').fill(prior)
await expect(page.getByTestId('note-save-status')).toHaveAttribute('data-state', 'saved')
fail(db)
- await page.getByTestId('note-view-menu').click()
+ await page.getByTestId('note-menu-button').click()
await page.getByTestId('note-write-again').click()
await page.getByTestId('note-write-again-confirm').click()
await expect(page.getByTestId('note-enhanced-rewrite-failed')).toBeVisible()
diff --git a/app/src/main/index.ts b/app/src/main/index.ts
index c9f3e6a5..8329ba04 100644
--- a/app/src/main/index.ts
+++ b/app/src/main/index.ts
@@ -46,7 +46,7 @@ import { createPrompts } from './prompts'
import { activeMeeting, bindMeetingApp, getMeeting, initMeetings, onMeetingBound, onMeetingChange, onMeetingStart, onMeetingStop, onMeetingStopSaved, refreshEventSnapshots, linkEvent, unlinkEvent, prepareMeeting, startPreparedMeeting, resumeMeeting, pauseMeetingClock, renameMeeting, retryStopSave, setAttendees, startMeeting, stopMeeting, stopSavePending, withStopState } from './meeting'
import { deleteMeeting } from './deleteMeeting'
import { emptyTrash, moveToTrash, purgeTrash } from './trash'
-import { isId, text } from './ipcArgs'
+import { isId, text, rewriteNote } from './ipcArgs'
import { hookMics } from './mics'
import { activeCapture, audioHelperPath, hookCapture, joinParts, onCaptureStart, onRecordingEvent, prepareAppend, recordingFinished, recordingPaused, recordingSettled, rejoinInterrupted, setRecordingPaused, settleRecording, tell, type WarnCode } from './capture'
import { createWidget } from './widget'
@@ -741,7 +741,10 @@ app.whenReady().then(() => {
ipcMain.handle('notes:set-enhanced', (_e, id: unknown, md: unknown, revision: unknown) => saveEdit(id, 'enhanced', md, revision))
ipcMain.on('notes:flush-sync', (e, id: unknown, side: unknown, md: unknown, revision: unknown) => { e.returnValue = saveEdit(id, side, md, revision) })
ipcMain.on('notes:kept-edits', (_e, id: unknown) => { if (known(id)) notes.keptEdits(id) })
- ipcMain.handle('notes:write-again', (_e, id: unknown) => { if (known(id)) void notes.writeAgain(id) })
+ ipcMain.handle('notes:write-again', (_e, id: unknown, note: unknown) => {
+ const instruction = rewriteNote(note)
+ if (known(id) && instruction !== undefined) void notes.writeAgain(id, instruction)
+ })
app.on('will-quit', () => engine.dispose())
// an earlier quit or crash may have left parts unjoined: try again now
const rejoined = rejoinInterrupted(join(userDataDir(), 'meetings'), async dir => {
diff --git a/app/src/main/ipcArgs.ts b/app/src/main/ipcArgs.ts
index e78876fc..1026cd7d 100644
--- a/app/src/main/ipcArgs.ts
+++ b/app/src/main/ipcArgs.ts
@@ -1,3 +1,5 @@
+import { REWRITE_NOTE_MAX } from '../shared/rewriteNote'
+
/**
* What the windows send is checked before it is used: a page should never be able to make main throw, or reach a
* file outside a meeting's folder, by sending something odd.
@@ -8,3 +10,6 @@ export const isId = (x: unknown): x is string => typeof x === 'string' && /^[\w-
/** text from a page, at most `max` characters; anything that isn't text is undefined */
export const text = (x: unknown, max: number): string | undefined => (typeof x === 'string' ? x.slice(0, max) : undefined)
+
+/** Missing or blank means the usual rewrite; malformed values must not start one. */
+export const rewriteNote = (x: unknown): string | undefined => x === undefined ? '' : text(x, REWRITE_NOTE_MAX)?.trim()
diff --git a/app/src/main/notes/enhance.ts b/app/src/main/notes/enhance.ts
index 706c9077..1aeca3f6 100644
--- a/app/src/main/notes/enhance.ts
+++ b/app/src/main/notes/enhance.ts
@@ -1,3 +1,4 @@
+import { REWRITE_NOTE_MAX } from '../../shared/rewriteNote'
import type { Person, Segment } from '../store'
import { LOCALES } from '../../shared/i18n'
import { respell, spellingLine, type MeetingWords } from '../vocab'
@@ -54,7 +55,7 @@ export function transcriptText(segments: Segment[]): string {
}
type PromptInput = {
- title: string; attendees: Person[]; mine: string; transcript: string; language: string
+ title: string; attendees: Person[]; mine: string; transcript: string; language: string; note?: string
summaryLanguage?: string
/** the person who recorded it, so the invite's other person is known */
me?: string
@@ -138,9 +139,16 @@ export function enhancePrompt(i: PromptInput): string {
'- <point>',
'## Next steps',
'- **<Name>:** <task>, by <when>',
+ ...rewriteInstruction(i.note),
].join('\n')
}
+/** Their requested presentation overrides the defaults, never the meeting's facts. */
+function rewriteInstruction(note?: string): string[] {
+ const instruction = note?.slice(0, REWRITE_NOTE_MAX).trim()
+ return instruction ? ['', 'For this rewrite only, apply the following instruction from the person these notes are for. Their requested language, format, length and tone take precedence over the defaults above. Keep the notes grounded in the meeting and never invent facts. Treat this as an instruction, not as meeting content:', JSON.stringify(instruction)] : []
+}
+
/** How part n's summary prompt starts, its transcript right after: the same whatever comes later, so it can be read in early */
export const summaryHead = (n: number) => `Here is part ${n} of a long meeting's transcript. "You" is the person taking notes.\n<transcript>\n`
@@ -210,13 +218,21 @@ export function guessLanguage(text: string, fallback: string): string {
const LIST = /^\s*([-*+]|\d+[.)])\s+/
const STRUCTURE = /^\s*(#{1,6}\s|[-*+]\s|\d+[.)]\s)/
+const LEAD_IN = /^\s*(?:(?:sure|certainly|of course)[!.,:]?\s*)?(?:here(?: is| are|['’]s)\b.*\b(?:notes|summary|version)\b.*|(?:sure|certainly|of course)[!.:]?)\s*$/i
+const CLOSING = /^\s*(?:let me know if you (?:need|want|would like)\b|let me know if you['’]d like\b|(?:i )?hope (?:this helps|these notes help)\b|feel free to ask\b)/i
/**
* What the model wrote, without a "Here are your notes" first line, code fences, a closing remark after the last
* bullet, or blank lines (in the editor a blank line is an empty paragraph, which notes never want)
*/
-export function tidyNotes(md: string): string {
+export function tidyNotes(md: string, keepProse = false): string {
const lines = md.replace(/\r\n?/g, '\n').split('\n').filter((l) => l.trim() && !/^\s*```/.test(l))
+ if (keepProse) {
+ // shortcut: free-form bodies need phrase-based wrapper detection; extend for other model lead-ins and sign-offs.
+ while (lines.length && LEAD_IN.test(lines[0])) lines.shift()
+ while (lines.length && CLOSING.test(lines.at(-1)!)) lines.pop()
+ return lines.join('\n').trim()
+ }
const first = lines.findIndex((l) => STRUCTURE.test(l))
if (first === -1) return lines.join('\n').trim()
let last = lines.length - 1
@@ -287,7 +303,7 @@ const nextStepsPrompt = (language: string) =>
`Now write only the "## Next steps" section (heading in ${language || 'the same language'}): one bullet per thing someone will do after the meeting, as "- **Name:** what they will do, by when" (the when only if it was said), "You" for the person these notes are for, and plain words for who they are for someone without a name ("Them" is not a name). If nobody is to do anything, answer only NONE. Nothing else.`
export type EnhanceInput = {
- meeting: { title: string; attendees: Person[] }; mine: string; segments: Segment[]; language: string | null
+ meeting: { title: string; attendees: Person[] }; mine: string; segments: Segment[]; language: string | null; note?: string
/** a locale from Settings; a rewrite note may override it */
summaryLanguage?: string
/** the person who recorded it */
@@ -364,7 +380,7 @@ export async function enhance(input: EnhanceInput, llm: Llm, onToken: (text: str
let first = Infinity, last = -Infinity
for (const s of input.segments) { first = Math.min(first, s.startMs); last = Math.max(last, s.endMs) }
const minutes = input.segments.length ? (last - first) / 60_000 : undefined
- const base = { title: input.meeting.title, attendees: input.meeting.attendees, mine: input.mine, language, summaryLanguage, minutes, me: input.me, spelling: input.words && spellingLine(input.words), oneMic: oneMic(input.segments) }
+ const base = { note: input.note, title: input.meeting.title, attendees: input.meeting.attendees, mine: input.mine, language, summaryLanguage, minutes, me: input.me, spelling: input.words && spellingLine(input.words), oneMic: oneMic(input.segments) }
const segments = input.words ? input.segments.map((x) => ({ ...x, text: respell(x.text, input.words!) })) : input.segments
let transcript = transcriptText(segments)
let parts = false
@@ -395,7 +411,7 @@ export async function enhance(input: EnhanceInput, llm: Llm, onToken: (text: str
}
const prompt = enhancePrompt({ ...base, transcript, parts })
- let md = tidyNotes(await llm.chat(prompt, onToken, { maxTokens: NOTES_TOKENS }))
+ let md = tidyNotes(await llm.chat(prompt, onToken, { maxTokens: NOTES_TOKENS }), !!input.note?.trim())
const written = md
// the model sometimes stops before the next steps (it samples): ask for just that part, after what it wrote. Notes
// with three sections or more and still none had none to give
@@ -407,12 +423,12 @@ export async function enhance(input: EnhanceInput, llm: Llm, onToken: (text: str
held += t
if (held.trimStart().startsWith('#')) { showing = true; onToken(`\n${held.trimStart()}`) }
}
- const more = tidyNotes(await llm.chat(nextStepsPrompt(summaryLanguage ? 'the same language as the notes; write the bullets in that language too' : language), show, { maxTokens: 400, before: [prompt, md] }))
+ const more = tidyNotes(await llm.chat([nextStepsPrompt(summaryLanguage ? 'the same language as the notes; write the bullets in that language too' : language), ...rewriteInstruction(input.note), ...(input.note?.trim() ? ['If that instruction excludes next steps, answer only NONE.'] : [])].join('\n'), show, { maxTokens: 400, before: [prompt, md] }))
// only a real next-steps list is kept; anything else it said is dropped
if (OWNER.test(more)) md = `${md}\n${more}`
}
// a title is nice to have: one that fails or comes out empty leaves the meeting's as it is
- if (written) input.titleLater?.((model) => model.chat(titlePrompt(summaryLanguage ? '' : language, input.me, input.meeting.attendees), () => {}, { maxTokens: 40, before: [prompt, written], temperature: 0.3 })
+ if (written) input.titleLater?.((model) => model.chat([titlePrompt(summaryLanguage ? '' : language, input.me, input.meeting.attendees), ...(input.note?.trim() ? ['Use the language requested in this rewrite instruction for the title too; its other requests apply only to the notes:', JSON.stringify(input.note.slice(0, REWRITE_NOTE_MAX).trim())] : [])].join('\n'), () => {}, { maxTokens: 40, before: [prompt, written], temperature: 0.3 })
.then((raw) => cleanTitle(raw, input.me), (e) => { console.error('a title from the notes failed', e); return '' }))
return markMine(withoutCopies(md, input.mine), input.mine)
}
diff --git a/app/src/main/notes/index.ts b/app/src/main/notes/index.ts
index c10b8009..05632422 100644
--- a/app/src/main/notes/index.ts
+++ b/app/src/main/notes/index.ts
@@ -115,7 +115,7 @@ export function hookNotes(p: {
* quiet: written again for new people, out of sight. The notes on screen stay as they are until the new ones are done,
* then change all at once (never if the person edited them meanwhile).
*/
- const write = async (id: string, signal: AbortSignal, quiet = false) => {
+ const write = async (id: string, signal: AbortSignal, quiet = false, note?: string) => {
const m = p.store.meeting(id)
if (!m || m.state === 'recording' || resuming.has(id)) return
const was = currentNotes(id)
@@ -139,7 +139,7 @@ export function hookNotes(p: {
// a generic title (or one made from earlier notes) gets one from these notes; theirs or the calendar's never
const retitle = (x: Meeting) => x.titleSource === 'generic' || x.titleSource === 'auto'
let askTitle: ((llm: Llm) => Promise<string>) | undefined
- const md = await enhance({ meeting: m, mine, segments, language, summaryLanguage: p.summaryLanguage?.(), me: p.me?.(), words: meetingWords(m), ...(retitle(m) ? { titleLater: (ask) => { askTitle = ask } } : {}) }, llm, (t) => {
+ const md = await enhance({ meeting: m, mine, segments, language, note, summaryLanguage: p.summaryLanguage?.(), me: p.me?.(), words: meetingWords(m), ...(retitle(m) ? { titleLater: (ask) => { askTitle = ask } } : {}) }, llm, (t) => {
if (quiet) return
draft += t
if (timer) return
@@ -219,10 +219,10 @@ export function hookNotes(p: {
p.send(view(m.id))
}
- const queueWrite = (id: string) => {
+ const queueWrite = (id: string, note?: string) => {
console.info('NOTES', `queued the notes of ${id}`)
set(id, 'waiting')
- return p.queue.enqueue((signal) => write(id, signal), 'enhance', id).catch(() => {})
+ return p.queue.enqueue((signal) => write(id, signal, false, note), 'enhance', id).catch(() => {})
}
/** each meeting's notes after it stopped, until they are written */
@@ -300,12 +300,12 @@ export function hookNotes(p: {
pendingDraftId: () => [...edits].find(([, sides]) => Object.values(sides).some((v) => v.text !== undefined))?.[0],
forgetDrafts: (id: string) => { edits.delete(id) },
/** "Write again": the same job, now (after anything already waiting) */
- writeAgain(id: string) {
+ writeAgain(id: string, note?: string) {
if (resuming.has(id) || p.store.meeting(id)?.state === 'recording') return Promise.resolve()
if (!retryDrafts(id)) return Promise.resolve()
const s = live.get(id)?.status
if (s === 'waiting' || s === 'writing') return Promise.resolve()
- return queueWrite(id)
+ return queueWrite(id, note)
},
/** at launch: meetings a quit or crash left without notes get them now, one at a time */
recover() {
diff --git a/app/src/preload/index.ts b/app/src/preload/index.ts
index ad7c2ad7..8588cb72 100644
--- a/app/src/preload/index.ts
+++ b/app/src/preload/index.ts
@@ -118,7 +118,7 @@ const api: YogurtApi = {
return () => { ipcRenderer.removeListener('notes:flush-request', run) }
},
keptEdits: (id) => { ipcRenderer.send('notes:kept-edits', id) },
- writeAgain: (id) => ipcRenderer.invoke('notes:write-again', id),
+ writeAgain: (id, note) => ipcRenderer.invoke('notes:write-again', id, note),
onChange: (cb) => {
const on = (_e: unknown, v: NoteView) => cb(v)
ipcRenderer.on('notes:changed', on)
diff --git a/app/src/renderer/src/components/NoteMenu.tsx b/app/src/renderer/src/components/NoteMenu.tsx
index ea6bf53e..5792a2aa 100644
--- a/app/src/renderer/src/components/NoteMenu.tsx
+++ b/app/src/renderer/src/components/NoteMenu.tsx
@@ -1,27 +1,46 @@
+import { Tooltip } from '@base-ui/react/tooltip'
import { usePopoverPresence } from '../motion'
import { useEffect, useRef, useState, type KeyboardEvent, type ReactNode } from 'react'
-import { ChevronRight, Ellipsis, FolderIcon, Pencil, Trash2 } from 'lucide-react'
+import { ChevronRight, Ellipsis, FolderIcon, Pencil, RotateCcw, Trash2 } from 'lucide-react'
+import { RegenerateForm } from './RegenerateForm'
import { t } from '../../../shared/i18n'
-/**
- * The note's "more" menu beside Share: rename it, add it to folders (folders: that list, shown in the menu's place),
- * or delete it (not while it records)
- */
-export function NoteMenu({ recording, savePending, onRename, onDelete, folders, trashed }: { recording: boolean; savePending?: boolean; onRename: () => void; onDelete: () => void; folders?: (close: () => void) => ReactNode; /** in the Trash already: Delete is for good */ trashed?: boolean }) {
+/** Only show generation when it can produce a summary; explain temporary waits. */
+export function summaryAction({ hasSummary, hasContent, recording, busy, downloading, trashed }: {
+ hasSummary: boolean; hasContent: boolean; recording: boolean; busy: boolean; downloading: boolean; trashed: boolean
+}) {
+ if (trashed || (!hasSummary && !hasContent)) return undefined
+ return {
+ label: hasSummary ? t('Regenerate summary') : t('Generate summary'),
+ reason: recording ? t('Available after recording') : downloading ? t('Waiting for Yogurt AI to download') : busy ? t('Writing the summary') : undefined,
+ }
+}
+
+/** The note's actions share one menu and one anchor for folders and generation. */
+export function NoteMenu({ recording, savePending, onRename, onDelete, folders, trashed, generation, hasSummary, edited, rewriteOpen, setRewriteOpen, onWriteAgain }: {
+ recording: boolean; savePending?: boolean; onRename: () => void; onDelete: () => void; folders?: (close: () => void) => ReactNode
+ /** in the Trash already: Delete is for good */
+ trashed?: boolean
+ generation: ReturnType<typeof summaryAction>; hasSummary: boolean; edited: boolean
+ rewriteOpen: boolean; setRewriteOpen: (open: boolean) => void; onWriteAgain: (note: string) => void
+}) {
const [open, setOpen] = useState<false | 'pointer' | 'keyboard'>(false)
- const presence = usePopoverPresence(open)
+ const presence = usePopoverPresence(rewriteOpen && generation ? 'rewrite' : open)
const [inFolders, setInFolders] = useState(false)
const root = useRef<HTMLDivElement>(null)
const button = useRef<HTMLButtonElement>(null)
const first = useRef<HTMLButtonElement>(null)
+ const close = (restore = true) => { setOpen(false); setRewriteOpen(false); if (restore) button.current?.focus({ preventScroll: true }) }
+ useEffect(() => { if (!generation) setRewriteOpen(false) }, [!!generation])
useEffect(() => {
- if (!open) { if (!presence.value) setInFolders(false); return }
- first.current?.focus()
- const away = (e: MouseEvent) => { if (!root.current?.contains(e.target as Node)) setOpen(false) }
+ if (rewriteOpen) root.current?.querySelector('input')?.focus({ preventScroll: true })
+ if (!open && !rewriteOpen) { if (!presence.value) setInFolders(false); return }
+ if (!rewriteOpen) first.current?.focus()
+ const away = (e: MouseEvent) => { if (!root.current?.contains(e.target as Node)) close(false) }
document.addEventListener('mousedown', away)
return () => document.removeEventListener('mousedown', away)
- }, [open, presence.value])
+ }, [open, rewriteOpen, presence.value])
const onKey = (e: KeyboardEvent) => {
const list = Array.from(root.current?.querySelectorAll<HTMLButtonElement>('[role="menuitem"]:not(:disabled), [role="menuitemcheckbox"]') ?? [])
const at = list.indexOf(document.activeElement as HTMLButtonElement)
@@ -35,11 +54,18 @@ export function NoteMenu({ recording, savePending, onRename, onDelete, folders,
const row = 'flex w-full items-center gap-2.5 rounded-xl px-3 py-2 text-start text-sm hover:bg-[var(--line)] focus-visible:bg-[var(--line)] focus-visible:outline-none disabled:opacity-50 disabled:hover:bg-transparent'
return (
<div ref={root} className="relative">
- <button ref={button} data-testid="note-menu-button" aria-haspopup="menu" aria-expanded={!!open} aria-label={t('More')} title={t('More')}
- onClick={(e) => setOpen((o) => o ? false : e.detail > 0 ? 'pointer' : 'keyboard')} className="bar-btn grid size-7 place-items-center rounded-md text-muted"><Ellipsis size={17} strokeWidth={1.75} aria-hidden="true" /></button>
- {presence.value && (
- <div data-testid="note-menu" {...presence.props} role="menu" aria-label={t('More')} onKeyDown={onKey}
- className="menu-entry absolute end-0 top-full z-30 mt-2 w-60 rounded-xl border border-line bg-float p-1.5 shadow-[var(--shadow)]">
+ <button ref={button} data-testid="note-menu-button" aria-haspopup={rewriteOpen ? "dialog" : "menu"} aria-expanded={!!open || rewriteOpen} aria-label={t('More')} title={t('More')}
+ onClick={(e) => { if (rewriteOpen) close(); else setOpen((o) => o ? false : e.detail > 0 ? 'pointer' : 'keyboard') }} className="bar-btn grid size-7 place-items-center rounded-md text-muted"><Ellipsis size={17} strokeWidth={1.75} aria-hidden="true" /></button>
+ {presence.value === 'rewrite' ? (
+ <div key="rewrite" role="dialog" data-testid="note-regenerate" aria-label={hasSummary ? t('Regenerate summary') : t('Generate summary')}
+ aria-describedby={edited ? 'note-rewrite-description' : undefined} {...presence.props} data-anchor="end"
+ className="menu-entry summary-regenerate" onKeyDown={(e) => { if (e.key === 'Escape') { e.preventDefault(); e.stopPropagation(); close() } }}>
+ <RegenerateForm active={rewriteOpen} hasSummary={hasSummary} edited={edited} disabled={!generation || !!generation.reason}
+ onClose={close} onSubmit={(note) => { if (!generation || generation.reason) return; close(); onWriteAgain(note) }} />
+ </div>
+ ) : presence.value && (
+ <div key="menu" data-testid="note-menu" {...presence.props} role="menu" data-anchor="end" aria-label={t('More')} onKeyDown={onKey}
+ className="menu-entry absolute end-0 top-full z-30 mt-2 w-max min-w-60 max-w-[calc(100vw-32px)] rounded-xl border border-line bg-float p-1.5 shadow-[var(--shadow)]">
{inFolders && folders ? folders(() => { setOpen(false); button.current?.focus() }) : <>
<button ref={first} role="menuitem" data-testid="note-rename" onClick={() => run(onRename)} className={row}>
<Pencil size={15} strokeWidth={1.75} aria-hidden="true" className="text-muted" />{t('Rename')}
@@ -51,6 +77,16 @@ export function NoteMenu({ recording, savePending, onRename, onDelete, folders,
}} className={row}>
<FolderIcon size={15} aria-hidden="true" className="text-muted" /><span className="flex-1">{t('Add to folder')}</span><ChevronRight size={14} aria-hidden="true" className="text-muted rtl:-scale-x-100" />
</button>}
+ {generation && <Tooltip.Root disabled={!generation.reason}><Tooltip.Trigger delay={180} closeOnClick={false} role="menuitem" data-testid="note-write-again" aria-disabled={!!generation.reason}
+ aria-description={generation.reason}
+ onClick={() => { if (generation.reason) return; setOpen(false); setRewriteOpen(true) }}
+ className={`${row} whitespace-nowrap aria-disabled:opacity-50 aria-disabled:hover:bg-transparent`}>
+ <RotateCcw size={15} strokeWidth={1.75} aria-hidden="true" className="text-muted" />{generation.label}
+ </Tooltip.Trigger>
+ <Tooltip.Portal><Tooltip.Positioner side="left" align="center" sideOffset={6} collisionPadding={12} className="z-[80]">
+ <Tooltip.Popup role="tooltip" className="rounded-md border border-line bg-float px-2 py-1 text-xs whitespace-nowrap text-ink shadow-[var(--shadow)]">{generation.reason}</Tooltip.Popup>
+ </Tooltip.Positioner></Tooltip.Portal>
+ </Tooltip.Root>}
<button role="menuitem" data-testid="note-delete" disabled={recording || savePending} onClick={() => run(() => { button.current?.focus(); onDelete() })} className={`${row} text-danger`}>
<Trash2 size={15} strokeWidth={1.75} aria-hidden="true" />
<span className="flex flex-col">
diff --git a/app/src/renderer/src/components/RegenerateForm.tsx b/app/src/renderer/src/components/RegenerateForm.tsx
new file mode 100644
index 00000000..93a5a1f7
--- /dev/null
+++ b/app/src/renderer/src/components/RegenerateForm.tsx
@@ -0,0 +1,22 @@
+import { useLayoutEffect, useState } from 'react'
+import { X } from 'lucide-react'
+import { REWRITE_NOTE_MAX } from '../../../shared/rewriteNote'
+import { t } from '../../../shared/i18n'
+
+export function RegenerateForm({ active, edited, disabled, hasSummary, onClose, onSubmit }: {
+ hasSummary: boolean; active: boolean; edited: boolean; disabled: boolean; onClose: () => void; onSubmit: (note: string) => void
+}) {
+ const [note, setNote] = useState('')
+ useLayoutEffect(() => { if (active) setNote('') }, [active])
+ const action = hasSummary ? t('Regenerate summary') : t('Generate summary')
+ return <form onSubmit={(e) => { e.preventDefault(); if (!disabled) onSubmit(note.trim()) }}>
+ <div className="summary-regenerate-heading"><span>{action}</span>
+ <button type="button" className="bar-btn" aria-label={t('Close')} onClick={onClose}><X size={14} aria-hidden="true" /></button>
+ </div>
+ <input autoFocus data-testid="note-regenerate-input" className="summary-regenerate-input" aria-label={t('Note for the summary')}
+ placeholder={t('Add a note, like shorter or in Spanish')} maxLength={REWRITE_NOTE_MAX} value={note}
+ onChange={(e) => setNote(e.target.value)} onKeyDown={(e) => { if (e.key === 'Enter' && e.nativeEvent.isComposing) e.preventDefault() }} />
+ {edited && <p id="note-rewrite-description" data-testid="note-confirm" className="summary-regenerate-warning">{t('Your edits to the summary will be replaced.')}</p>}
+ <div className="summary-regenerate-actions"><button data-testid="note-write-again-confirm" type="submit" disabled={disabled} className="workspace-button primary">{hasSummary ? t('Regenerate') : t('Generate summary')}</button></div>
+ </form>
+}
diff --git a/app/src/renderer/src/components/ViewPill.tsx b/app/src/renderer/src/components/ViewPill.tsx
deleted file mode 100644
index 19417fd1..00000000
--- a/app/src/renderer/src/components/ViewPill.tsx
+++ /dev/null
@@ -1,46 +0,0 @@
-import { usePopoverPresence } from '../motion'
-import { useEffect, useRef, useState, type RefObject } from 'react'
-import { Ellipsis, RotateCcw } from 'lucide-react'
-import { t } from '../../../shared/i18n'
-
-/**
- * Generation actions remain separate from navigation.
- */
-export function SummaryActions({ hasSummary, canWriteAgain, onWriteAgain, menuButton }: {
- /** the enhanced notes are done (not waiting or being written) */
- hasSummary: boolean
- canWriteAgain: boolean
- onWriteAgain: () => void
- menuButton: RefObject<HTMLButtonElement | null>
-}) {
- const action = hasSummary ? t('Regenerate summary') : t('Generate summary')
- const [open, setOpen] = useState<false | 'pointer' | 'keyboard'>(false)
- const presence = usePopoverPresence(open)
- const root = useRef<HTMLDivElement>(null)
- const item = useRef<HTMLButtonElement>(null)
- useEffect(() => {
- if (!open) return
- item.current?.focus()
- const away = (e: MouseEvent) => { if (!root.current?.contains(e.target as Node)) setOpen(false) }
- document.addEventListener('mousedown', away)
- return () => document.removeEventListener('mousedown', away)
- }, [open])
- return (
- <div ref={root} className="note-summary-actions relative">
- <button ref={menuButton} data-testid="note-view-menu" aria-haspopup="menu" aria-expanded={!!open} aria-label={t('Summary actions')} title={action}
- onClick={(e) => setOpen((o) => o ? false : e.detail > 0 ? 'pointer' : 'keyboard')} className="note-view-menu">
- <Ellipsis size={15} strokeWidth={1.75} aria-hidden="true" />
- </button>
- {presence.value && (
- <div role="menu" data-testid="note-view-menu-list" {...presence.props} data-anchor="end" aria-label={t('Summary')}
- onKeyDown={(e) => { if (e.key === 'Escape' || e.key === 'Tab') { e.preventDefault(); setOpen(false); menuButton.current?.focus() } }}
- className="menu-entry absolute end-0 top-full z-30 mt-2 w-52 rounded-xl border border-line bg-float p-1.5 text-ink shadow-[var(--shadow)]">
- <button ref={item} role="menuitem" data-testid="note-write-again" disabled={!canWriteAgain} onClick={() => { setOpen(false); onWriteAgain() }}
- className="flex w-full items-center gap-2.5 rounded-xl px-3 py-2 text-start text-sm hover:bg-[var(--line)] focus-visible:bg-[var(--line)] focus-visible:outline-none disabled:opacity-50 disabled:hover:bg-transparent">
- <RotateCcw size={15} strokeWidth={1.75} aria-hidden="true" className="text-muted" />{action}
- </button>
- </div>
- )}
- </div>
- )
-}
diff --git a/app/src/renderer/src/screens/Note.tsx b/app/src/renderer/src/screens/Note.tsx
index 779815a5..04593ff0 100644
--- a/app/src/renderer/src/screens/Note.tsx
+++ b/app/src/renderer/src/screens/Note.tsx
@@ -8,7 +8,7 @@ import { motion, useReducedMotion } from '../motion'
import { useEffect, useLayoutEffect, useMemo, useRef, useState, type KeyboardEvent } from 'react'
import { useScrollMemory } from '../useScrollMemory'
import { AudioLines, Lock, RotateCcw, Trash2, TextAlignStart, TriangleAlert } from 'lucide-react'
-import type { MeetingView, NoteSaveResult, NoteSide, NoteView, WidgetView } from '../../../shared/types'
+import type { MeetingView, NoteSaveResult, NoteSide, NoteView, SetupState, WidgetView } from '../../../shared/types'
import { t } from '../../../shared/i18n'
import { osWords } from '../keys'
import { Modal, ModalClose } from '../components/Modal'
@@ -22,7 +22,7 @@ import { LevelBars } from '../components/LevelBars'
import { RecordingTime } from '../components/RecordingTime'
import { Mic, Pause, Play, Sparkles, Loader } from '../components/Icons'
import { ShareMenu } from '../components/ShareMenu'
-import { NoteMenu } from '../components/NoteMenu'
+import { NoteMenu, summaryAction } from '../components/NoteMenu'
import { DeleteNote } from '../components/DeleteNote'
import { moveToTrash } from '../components/TrashToast'
import { useSummaryPresentation } from '../summaryPresentation'
@@ -30,7 +30,6 @@ import { useSmoothText } from '../useSmoothText'
import { NoteAutosave, registerAutosave } from '../noteAutosave'
import { People } from '../components/People'
import { NoteDate } from '../components/NoteDate'
-import { SummaryActions } from '../components/ViewPill'
import { MicMenu } from '../components/MicMenu'
import { SpokenMenu } from '../components/SpokenMenu'
import { RecordingHint } from '../components/RecordingHint'
@@ -83,6 +82,28 @@ export function Note({ id, onTitleChange, at, folderSuggestion, onSource, onResu
const [pausing, setPausing] = useState(false)
const [pauseFailed, setPauseFailed] = useState<'pause' | 'resume' | null>(null)
const [notes, setNotes] = useState<NoteView>()
+ const [hasTranscript, setHasTranscript] = useState(false)
+ const [setup, setSetup] = useState<SetupState>()
+ useEffect(() => {
+ let active = true, revision = 0
+ setHasTranscript(false)
+ const load = () => {
+ const request = ++revision
+ void window.yogurt.transcript.get(id, { last: 1 }).then(lines => {
+ if (active && request === revision) setHasTranscript(lines.some(line => !!line.text.trim()))
+ })
+ }
+ const off = window.yogurt.transcript.onSegment(line => { if (line.meetingId === id && line.text.trim()) { revision++; setHasTranscript(true) } })
+ const changed = window.yogurt.transcript.onSpeakers(meetingId => { if (meetingId === id) load() })
+ load()
+ return () => { active = false; off(); changed() }
+ }, [id])
+ useEffect(() => {
+ let active = true, received = false
+ const off = window.yogurt.setup.onState(state => { received = true; setSetup(state) })
+ void window.yogurt.setup.state().then(state => { if (active && !received) setSetup(state) })
+ return () => { active = false; off() }
+ }, [])
const [viewState, setView] = useState<'mine' | 'enhanced'>(() => readingViews.get(id)?.view ?? 'mine')
const [finishRequested, requestFinish] = useState(false)
const reducedMotion = useReducedMotion()
@@ -109,8 +130,7 @@ export function Note({ id, onTitleChange, at, folderSuggestion, onSource, onResu
const transcriptButton = useRef<HTMLButtonElement>(null)
const notesButton = useRef<HTMLButtonElement>(null)
const summaryButton = useRef<HTMLButtonElement>(null)
- const [confirming, setConfirming] = useState(false)
- const rewriteButton = useRef<HTMLButtonElement>(null)
+ const [rewriteOpen, setRewriteOpen] = useState(false)
const [editedHere, setEditedHere] = useState(false)
const [renaming, setRenaming] = useState(false)
const [deleting, setDeleting] = useState(false)
@@ -161,7 +181,7 @@ export function Note({ id, onTitleChange, at, folderSuggestion, onSource, onResu
useEffect(() => {
requestFinish(false)
- setTabPointer(false); setNotes(undefined); current.current = undefined; setView(readingViews.get(id)?.view ?? 'mine'); picked.current = readingViews.has(id); typing.current = false; setEditedHere(false); setConfirming(false); setRenaming(false); setDeleting(false); setResumeConfirm(false); setResumeFailed(false)
+ setTabPointer(false); setNotes(undefined); current.current = undefined; setView(readingViews.get(id)?.view ?? 'mine'); picked.current = readingViews.has(id); typing.current = false; setEditedHere(false); setRewriteOpen(false); setRenaming(false); setDeleting(false); setResumeConfirm(false); setResumeFailed(false)
const show = (v: NoteView) => {
const first = !current.current
// what they typed here is newer than any copy from the app; notes written again for new people replace it unless edited (noteMerge.ts)
@@ -237,7 +257,7 @@ export function Note({ id, onTitleChange, at, folderSuggestion, onSource, onResu
setTabPointer(pointer)
if (next === primaryState) return
setPrimary(next)
- if (next === 'transcript') setConfirming(false)
+ if (next === 'transcript') setRewriteOpen(false)
void mineSave.flush(); void enhancedSave.flush()
}
const pickTab = (next: 'transcript' | 'notes', side?: 'mine' | 'enhanced', pointer = false) => {
@@ -295,17 +315,14 @@ export function Note({ id, onTitleChange, at, folderSuggestion, onSource, onResu
}
const saveStatus = mineSave.status === 'failed' || enhancedSave.status === 'failed' ? 'failed'
: mineSave.status === 'saving' || enhancedSave.status === 'saving' ? 'saving' : 'saved'
- const dismissRewrite = () => { setConfirming(false); rewriteButton.current?.focus({ preventScroll: true }) }
- const writeAgain = async () => {
- const confirmed = confirming
- // Confirm is a completed choice; do not offer a Cancel UI while its save is still pending.
- if (confirmed) dismissRewrite()
+ const writeAgain = async (note?: string) => {
if (!await saveAll()) return
- if ((notes.edited || editedHere) && !confirmed) { setConfirming(true); return }
- if (!confirmed) dismissRewrite()
setEditedHere(false)
- void window.yogurt.notes.writeAgain(id)
+ void window.yogurt.notes.writeAgain(id, note)
}
+ const hasSummary = !!notes.enhanced?.trim()
+ const generation = summaryAction({ hasSummary, hasContent: hasTranscript || !!notes.mine.trim(), recording, busy: summarizing, downloading: !!(setup?.notesDownloading || setup?.notesError), trashed })
+ const requestRewrite = () => { if (generation && !generation.reason) setRewriteOpen(true) }
return (
<LoadingContent pending={false} skeleton={<Loading layout="note" />} className="loading-note-frame"><div data-testid="note" className="document-main relative flex h-full bg-bg">
@@ -317,8 +334,9 @@ export function Note({ id, onTitleChange, at, folderSuggestion, onSource, onResu
<ModalClose data-dialog-cancel data-testid="resume-cancel" className="modal-button">{t('Cancel')}</ModalClose>
</div>
</Modal>}
- <div data-testid="note-topbar" className="note-topbar no-drag fixed right-4 top-[10px] z-[60]">
- <NoteMenu recording={recording} savePending={m.stopSavePending} trashed={trashed} onRename={() => setRenaming(true)} onDelete={() => { void saveAll().then((saved) => { if (!saved) return; if (trashed) setDeleting(true); else void moveToTrash(id, `/note/${id}`) }) }}
+ <div data-testid="note-topbar" className="note-topbar no-drag fixed end-4 top-[10px] z-[60]">
+ <NoteMenu key={id} generation={generation} hasSummary={hasSummary} edited={notes.edited || editedHere} rewriteOpen={rewriteOpen} setRewriteOpen={setRewriteOpen}
+ onWriteAgain={(note) => { if (!generation || generation.reason) return; pickPrimary('notes'); pick('enhanced'); void writeAgain(note) }} recording={recording} savePending={m.stopSavePending} trashed={trashed} onRename={() => setRenaming(true)} onDelete={() => { void saveAll().then((saved) => { if (!saved) return; if (trashed) setDeleting(true); else void moveToTrash(id, `/note/${id}`) }) }}
folders={(close) => <FolderPicker testId="note-menu-folders" meetingId={id} onNew={() => { close(); setNamingFolder(true) }} />} />
</div>
<div className="note-layout relative flex min-w-0 flex-1 flex-col" data-tab-pointer={tabPointer}>
@@ -385,7 +403,6 @@ export function Note({ id, onTitleChange, at, folderSuggestion, onSource, onResu
</div>
{primary === 'transcript' && <div ref={setTranscriptToolbar} className="note-primary-tools" />}
<span data-testid="note-tab-indicator" className="note-tab-indicator" aria-hidden="true" />
- {hasEnhanced && primary === 'notes' && <SummaryActions menuButton={rewriteButton} hasSummary={notes.enhanced != null} canWriteAgain={notes.status === 'done' || notes.status === 'failed' || notes.status === 'empty'} onWriteAgain={() => { pick('enhanced'); writeAgain() }} />}
</div>
</header>
<div ref={setChatAnchor} className="note-reading-area">
@@ -395,7 +412,7 @@ export function Note({ id, onTitleChange, at, folderSuggestion, onSource, onResu
focus={primary === 'notes' && at?.ms === null ? at : undefined} testId="note-mine" label={t('My notes')} className="min-h-[40vh]" markdown={notes.mine} placeholder={t('You can add notes here to guide the summary.')}
onChange={(md) => { typing.current = true; const next = { ...current.current!, mine: md }; current.current = next; setNotes(next); mineSave.change(md) }}
onBlur={() => { typing.current = false; mineSave.flush() }}
- /> : <Enhanced key={id} presentation={summaryState} focus={primary === 'notes' && at?.ms === null ? at : undefined} notes={notes} disabled={starting} onChange={(md) => { setEditedHere(true); const next = { ...current.current!, enhanced: md }; current.current = next; setNotes(next); enhancedSave.change(md) }} onBlur={enhancedSave.flush} onRetry={writeAgain} />}
+ /> : <Enhanced key={id} presentation={summaryState} focus={primary === 'notes' && at?.ms === null ? at : undefined} notes={notes} disabled={starting} onChange={(md) => { setEditedHere(true); const next = { ...current.current!, enhanced: md }; current.current = next; setNotes(next); enhancedSave.change(md) }} onBlur={enhancedSave.flush} onRetry={requestRewrite} />}
</NoteReadingPane>
{(primary === 'transcript' || transcriptVisited) && <section hidden={primary !== 'transcript'} id="note-transcript-panel" role="tabpanel" aria-labelledby="note-transcript-tab" className="note-content note-transcript-pane">
<Transcript id={id} recording={recording} active={primary === 'transcript'} inline toolbar={transcriptToolbar} focus={at?.ms != null ? { ...at, ms: at.ms } : undefined} />
@@ -415,19 +432,10 @@ export function Note({ id, onTitleChange, at, folderSuggestion, onSource, onResu
}}>{retryingStop ? t('Saving…') : t('Try again')}</button>
</div>
)}
- {primary === 'notes' && shown === 'enhanced' && notes.status === 'done' && notes.peopleChanged && !confirming && (
+ {primary === 'notes' && shown === 'enhanced' && notes.status === 'done' && notes.peopleChanged && !rewriteOpen && (
<div data-testid="note-people-changed" className="pointer-events-auto mx-auto mt-3 flex w-fit max-w-[calc(100%-32px)] flex-wrap items-center gap-3 rounded-xl border border-line bg-float px-4 py-2 text-[13px] shadow-[var(--shadow)]">
<span>{t('The attendee list has changed.')}</span>
- <button data-testid="note-people-write-again" onClick={writeAgain} className="workspace-button primary">{t('Regenerate summary')}</button>
- </div>
- )}
- {confirming && (
- <div data-testid="note-confirm" role="alertdialog" aria-label={t('Regenerate summary?')} aria-describedby="note-rewrite-description"
- onKeyDown={(e) => { if (e.key === 'Escape') { e.preventDefault(); e.stopPropagation(); dismissRewrite() } }}
- className="pointer-events-auto mx-auto mt-3 flex w-fit max-w-[calc(100%-32px)] flex-wrap items-center gap-3 rounded-xl border border-line bg-float px-4 py-2.5 text-sm shadow-[var(--shadow)]">
- <span id="note-rewrite-description">{t('Your edits to the summary will be replaced.')}</span>
- <button data-testid="note-write-again-cancel" autoFocus onClick={dismissRewrite} className="workspace-button">{t('Cancel')}</button>
- <button data-testid="note-write-again-confirm" onClick={writeAgain} className="workspace-button primary">{t('Regenerate summary')}</button>
+ <button data-testid="note-people-write-again" onClick={requestRewrite} className="workspace-button primary">{t('Regenerate summary')}</button>
</div>
)}
{saveStatus === 'failed' && (
diff --git a/app/src/renderer/src/styles.css b/app/src/renderer/src/styles.css
index 718e67f7..589764e5 100644
--- a/app/src/renderer/src/styles.css
+++ b/app/src/renderer/src/styles.css
@@ -225,9 +225,16 @@ html.widget { --pill:#232326;--pill-ink:#F7F7FA;--accent:#B780FF;--pill-accent:v
@media (prefers-reduced-motion: reduce) { .widget-btn { transition: none; } }
/* ---- the note screen ---- */
-.note-summary-actions { align-self:center;margin-inline-start:auto; }
-.note-view-menu { display:grid;place-items:center;width:28px;height:28px;border-radius:4px;color:var(--muted); }
-.note-view-menu:hover,.note-view-menu[aria-expanded=true] { background:var(--control-hover);color:var(--ink); }
+/* The rewrite stays anchored to the note menu, leaving the reading surface still. */
+.summary-regenerate { position:absolute;inset-inline-end:0;top:calc(100% + 8px);z-index:40;width:420px;max-width:calc(100vw - 32px);padding:14px;overflow:hidden;border:1px solid var(--line);border-radius:9px;background:var(--float);box-shadow:var(--shadow); }
+.summary-regenerate-heading { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;font-size:12px;line-height:20px;font-weight:500;white-space:nowrap; }
+.summary-regenerate-heading button { display:grid;place-items:center;width:22px;height:22px;border-radius:4px;color:var(--muted); }
+.summary-regenerate-input { width:100%;height:36px;border:1px solid var(--control-border);border-radius:6px;background:var(--control);padding:0 10px;font-size:12px;color:var(--ink); }
+.main-window .summary-regenerate-input:focus-visible { outline:2px solid var(--muted);outline-offset:2px; }
+.summary-regenerate-input::placeholder { color:var(--muted); }
+.summary-regenerate-warning { margin-top:10px;font-size:12px;line-height:20px;color:var(--muted);white-space:nowrap; }
+.summary-regenerate-actions { display:flex;justify-content:flex-end;margin-top:12px; }
+.summary-regenerate-actions button { white-space:nowrap;font-size:12px; }
.note-chip, .note-record-action { height:32px; }
.note-chip, .share-btn, .person-remove { transition: background-color var(--dur-micro) ease, color var(--dur-micro) ease, opacity var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) ease; }
.note-chip:hover, .note-chip[aria-expanded="true"] { background:var(--control-hover);color:var(--ink); }
diff --git a/app/src/shared/locales/ar.json b/app/src/shared/locales/ar.json
index 99cb417d..825c520e 100644
--- a/app/src/shared/locales/ar.json
+++ b/app/src/shared/locales/ar.json
@@ -326,7 +326,6 @@
"Recording {title}": "جارٍ تسجيل {title}",
"Redo": "إعادة",
"Regenerate summary": "إعادة إنشاء الملخص",
- "Regenerate summary?": "هل تريد إعادة إنشاء الملخص؟",
"Reload": "إعادة تحميل",
"Remove": "إزالة",
"Remove {name}": "إزالة {name}",
@@ -397,7 +396,6 @@
"Sum up the meeting so far": "لخّص الاجتماع حتى الآن",
"Summarizing…": "جارٍ التلخيص…",
"Summary": "الملخص",
- "Summary actions": "إجراءات الملخص",
"Sure. The site goes live on Tuesday.": "بالتأكيد. سيُطلق الموقع يوم الثلاثاء.",
"System Audio Recording Only": "تسجيل صوت النظام فقط",
"System Settings is open at {pane}.": "إعدادات النظام مفتوحة على «{pane}».",
@@ -736,5 +734,11 @@
"Dock only": "Dock فقط",
"Summary language": "لغة الملخص",
"Same as the meeting": "نفس لغة الاجتماع",
- "Used for new summaries and when you write them again.": "تُستخدم للملخصات الجديدة وعند إعادة كتابتها."
+ "Used for new summaries and when you write them again.": "تُستخدم للملخصات الجديدة وعند إعادة كتابتها.",
+ "Available after recording": "متاح بعد التسجيل",
+ "Writing the summary": "جارٍ كتابة الملخص",
+ "Regenerate": "إعادة الإنشاء",
+ "Note for the summary": "تعليمات للملخص",
+ "Add a note, like shorter or in Spanish": "أضف تعليمات، مثل أقصر أو بالإسبانية",
+ "Waiting for Yogurt AI to download": "بانتظار تنزيل ذكاء Yogurt الاصطناعي"
}
diff --git a/app/src/shared/locales/bn.json b/app/src/shared/locales/bn.json
index 3fce3f91..d4e8de63 100644
--- a/app/src/shared/locales/bn.json
+++ b/app/src/shared/locales/bn.json
@@ -314,7 +314,6 @@
"Recording {title}": "{title} রেকর্ড হচ্ছে",
"Redo": "আবার করুন",
"Regenerate summary": "সারাংশ আবার তৈরি করুন",
- "Regenerate summary?": "সারাংশ আবার তৈরি করবেন?",
"Reload": "আবার লোড করুন",
"Remove": "সরান",
"Remove {name}": "{name} সরান",
@@ -381,7 +380,6 @@
"Sum up the meeting so far": "এখন পর্যন্ত মিটিংয়ের সারাংশ দাও",
"Summarizing…": "সারাংশ তৈরি হচ্ছে…",
"Summary": "সারাংশ",
- "Summary actions": "সারাংশের কাজ",
"Sure. The site goes live on Tuesday.": "অবশ্যই। সাইট মঙ্গলবার লাইভ হবে।",
"System Audio Recording Only": "শুধু সিস্টেম অডিও রেকর্ডিং",
"System Settings is open at {pane}.": "সিস্টেম সেটিংস {pane}-এ খোলা আছে।",
@@ -668,5 +666,11 @@
"Dock only": "শুধু Dock",
"Summary language": "সারাংশের ভাষা",
"Same as the meeting": "মিটিংয়ের ভাষা",
- "Used for new summaries and when you write them again.": "নতুন সারাংশ ও সারাংশ আবার লেখার সময় ব্যবহৃত হয়।"
+ "Used for new summaries and when you write them again.": "নতুন সারাংশ ও সারাংশ আবার লেখার সময় ব্যবহৃত হয়।",
+ "Available after recording": "রেকর্ডিংয়ের পরে উপলব্ধ",
+ "Writing the summary": "সারাংশ লেখা হচ্ছে",
+ "Regenerate": "আবার তৈরি করুন",
+ "Note for the summary": "সারাংশের নির্দেশনা",
+ "Add a note, like shorter or in Spanish": "নির্দেশ দিন, যেমন ছোট বা স্প্যানিশে",
+ "Waiting for Yogurt AI to download": "Yogurt AI ডাউনলোডের অপেক্ষায়"
}
diff --git a/app/src/shared/locales/cs.json b/app/src/shared/locales/cs.json
index 4b8384ac..aad588a3 100644
--- a/app/src/shared/locales/cs.json
+++ b/app/src/shared/locales/cs.json
@@ -320,7 +320,6 @@
"Recording {title}": "Nahrává se {title}",
"Redo": "Znovu",
"Regenerate summary": "Vytvořit souhrn znovu",
- "Regenerate summary?": "Vytvořit souhrn znovu?",
"Reload": "Znovu načíst",
"Remove": "Odstranit",
"Remove {name}": "Odstranit {name}",
@@ -389,7 +388,6 @@
"Sum up the meeting so far": "Shrň dosavadní schůzku",
"Summarizing…": "Vytváření shrnutí…",
"Summary": "Souhrn",
- "Summary actions": "Akce souhrnu",
"Sure. The site goes live on Tuesday.": "Jasně. Web spouštíme v úterý.",
"System Audio Recording Only": "Pouze nahrávání systémového zvuku",
"System Settings is open at {pane}.": "Nastavení systému je otevřené v části {pane}.",
@@ -711,5 +709,11 @@
"Dock only": "Pouze Dock",
"Summary language": "Jazyk shrnutí",
"Same as the meeting": "Stejný jako na schůzce",
- "Used for new summaries and when you write them again.": "Použije se pro nová i znovu vytvořená shrnutí."
+ "Used for new summaries and when you write them again.": "Použije se pro nová i znovu vytvořená shrnutí.",
+ "Available after recording": "Dostupné po nahrávání",
+ "Writing the summary": "Vytváření shrnutí",
+ "Regenerate": "Vygenerovat znovu",
+ "Note for the summary": "Pokyn pro shrnutí",
+ "Add a note, like shorter or in Spanish": "Přidejte pokyn, třeba kratší nebo španělsky",
+ "Waiting for Yogurt AI to download": "Čekání na stažení Yogurt AI"
}
diff --git a/app/src/shared/locales/da.json b/app/src/shared/locales/da.json
index f53d41b9..31a08ae9 100644
--- a/app/src/shared/locales/da.json
+++ b/app/src/shared/locales/da.json
@@ -314,7 +314,6 @@
"Recording {title}": "Optager {title}",
"Redo": "Gentag",
"Regenerate summary": "Lav resumé igen",
- "Regenerate summary?": "Lav resuméet igen?",
"Reload": "Genindlæs",
"Remove": "Fjern",
"Remove {name}": "Fjern {name}",
@@ -381,7 +380,6 @@
"Sum up the meeting so far": "Opsummer mødet indtil nu",
"Summarizing…": "Opsummerer…",
"Summary": "Resumé",
- "Summary actions": "Handlinger for resumé",
"Sure. The site goes live on Tuesday.": "Klart. Sitet går live på tirsdag.",
"System Audio Recording Only": "Kun systemlydoptagelse",
"System Settings is open at {pane}.": "Systemindstillinger er åbnet ved {pane}.",
@@ -680,5 +678,11 @@
"Dock only": "Kun Dock",
"Summary language": "Opsummeringssprog",
"Same as the meeting": "Samme som mødet",
- "Used for new summaries and when you write them again.": "Bruges til nye opsummeringer, og når du skriver dem igen."
+ "Used for new summaries and when you write them again.": "Bruges til nye opsummeringer, og når du skriver dem igen.",
+ "Available after recording": "Tilgængelig efter optagelsen",
+ "Writing the summary": "Skriver opsummeringen",
+ "Regenerate": "Generér igen",
+ "Note for the summary": "Note til opsummeringen",
+ "Add a note, like shorter or in Spanish": "Tilføj en note, som kortere eller på spansk",
+ "Waiting for Yogurt AI to download": "Venter på download af Yogurt AI"
}
diff --git a/app/src/shared/locales/de.json b/app/src/shared/locales/de.json
index 94f16e3f..a6100c96 100644
--- a/app/src/shared/locales/de.json
+++ b/app/src/shared/locales/de.json
@@ -314,7 +314,6 @@
"Recording {title}": "{title} wird aufgenommen",
"Redo": "Wiederholen",
"Regenerate summary": "Zusammenfassung neu erstellen",
- "Regenerate summary?": "Zusammenfassung neu erstellen?",
"Reload": "Neu laden",
"Remove": "Entfernen",
"Remove {name}": "{name} entfernen",
@@ -381,7 +380,6 @@
"Sum up the meeting so far": "Fass das Meeting bisher zusammen",
"Summarizing…": "Wird zusammengefasst…",
"Summary": "Zusammenfassung",
- "Summary actions": "Aktionen für die Zusammenfassung",
"Sure. The site goes live on Tuesday.": "Klar. Die Website geht am Dienstag online.",
"System Audio Recording Only": "Nur Systemaudioaufnahme",
"System Settings is open at {pane}.": "Die Systemeinstellungen sind bei „{pane}“ geöffnet.",
@@ -680,5 +678,11 @@
"Dock only": "Nur Dock",
"Summary language": "Sprache der Zusammenfassung",
"Same as the meeting": "Wie im Meeting",
- "Used for new summaries and when you write them again.": "Gilt für neue und neu geschriebene Zusammenfassungen."
+ "Used for new summaries and when you write them again.": "Gilt für neue und neu geschriebene Zusammenfassungen.",
+ "Available after recording": "Nach der Aufnahme verfügbar",
+ "Writing the summary": "Zusammenfassung wird geschrieben",
+ "Regenerate": "Neu erstellen",
+ "Note for the summary": "Hinweis für die Zusammenfassung",
+ "Add a note, like shorter or in Spanish": "Hinweis hinzufügen, etwa kürzer oder auf Spanisch",
+ "Waiting for Yogurt AI to download": "Warten auf den Download von Yogurt AI"
}
diff --git a/app/src/shared/locales/el.json b/app/src/shared/locales/el.json
index 1f3696d9..09e2e35e 100644
--- a/app/src/shared/locales/el.json
+++ b/app/src/shared/locales/el.json
@@ -314,7 +314,6 @@
"Recording {title}": "Ηχογράφηση {title}",
"Redo": "Επανάληψη",
"Regenerate summary": "Νέα δημιουργία σύνοψης",
- "Regenerate summary?": "Νέα δημιουργία σύνοψης;",
"Reload": "Επαναφόρτωση",
"Remove": "Αφαίρεση",
"Remove {name}": "Αφαίρεση {name}",
@@ -381,7 +380,6 @@
"Sum up the meeting so far": "Συνόψισε τη σύσκεψη ως τώρα",
"Summarizing…": "Δημιουργία σύνοψης…",
"Summary": "Σύνοψη",
- "Summary actions": "Ενέργειες σύνοψης",
"Sure. The site goes live on Tuesday.": "Βεβαίως. Ο ιστότοπος βγαίνει την Τρίτη.",
"System Audio Recording Only": "Μόνο εγγραφή ήχου συστήματος",
"System Settings is open at {pane}.": "Οι Ρυθμίσεις συστήματος είναι ανοιχτές στο {pane}.",
@@ -683,5 +681,11 @@
"Dock only": "Μόνο Dock",
"Summary language": "Γλώσσα σύνοψης",
"Same as the meeting": "Ίδια με τη συνάντηση",
- "Used for new summaries and when you write them again.": "Χρησιμοποιείται για νέες συνόψεις και όταν τις ξαναγράφετε."
+ "Used for new summaries and when you write them again.": "Χρησιμοποιείται για νέες συνόψεις και όταν τις ξαναγράφετε.",
+ "Available after recording": "Διαθέσιμο μετά την εγγραφή",
+ "Writing the summary": "Γράφεται η σύνοψη",
+ "Regenerate": "Νέα δημιουργία",
+ "Note for the summary": "Οδηγία για τη σύνοψη",
+ "Add a note, like shorter or in Spanish": "Προσθέστε οδηγία, π.χ. πιο σύντομα ή στα ισπανικά",
+ "Waiting for Yogurt AI to download": "Αναμονή λήψης του Yogurt AI"
}
diff --git a/app/src/shared/locales/en.json b/app/src/shared/locales/en.json
index f2308ca2..bde0aa8a 100644
--- a/app/src/shared/locales/en.json
+++ b/app/src/shared/locales/en.json
@@ -200,5 +200,11 @@
"Dock only": "Dock only",
"Summary language": "Summary language",
"Same as the meeting": "Same as the meeting",
- "Used for new summaries and when you write them again.": "Used for new summaries and when you write them again."
+ "Used for new summaries and when you write them again.": "Used for new summaries and when you write them again.",
+ "Writing the summary": "Writing the summary",
+ "Regenerate": "Regenerate",
+ "Available after recording": "Available after recording",
+ "Note for the summary": "Note for the summary",
+ "Add a note, like shorter or in Spanish": "Add a note, like shorter or in Spanish",
+ "Waiting for Yogurt AI to download": "Waiting for Yogurt AI to download"
}
diff --git a/app/src/shared/locales/es.json b/app/src/shared/locales/es.json
index ffdbb44d..295ac4e2 100644
--- a/app/src/shared/locales/es.json
+++ b/app/src/shared/locales/es.json
@@ -317,7 +317,6 @@
"Recording {title}": "Grabando {title}",
"Redo": "Rehacer",
"Regenerate summary": "Regenerar resumen",
- "Regenerate summary?": "¿Regenerar el resumen?",
"Reload": "Volver a cargar",
"Remove": "Quitar",
"Remove {name}": "Quitar {name}",
@@ -385,7 +384,6 @@
"Sum up the meeting so far": "Resume la reunión hasta ahora",
"Summarizing…": "Resumiendo…",
"Summary": "Resumen",
- "Summary actions": "Acciones del resumen",
"Sure. The site goes live on Tuesday.": "Claro. El sitio sale el martes.",
"System Audio Recording Only": "Solo grabación de audio del sistema",
"System Settings is open at {pane}.": "Ajustes del Sistema está abierto en {pane}.",
@@ -693,5 +691,11 @@
"Dock only": "Solo Dock",
"Summary language": "Idioma del resumen",
"Same as the meeting": "El de la reunión",
- "Used for new summaries and when you write them again.": "Se usa en resúmenes nuevos y cuando los vuelves a escribir."
+ "Used for new summaries and when you write them again.": "Se usa en resúmenes nuevos y cuando los vuelves a escribir.",
+ "Available after recording": "Disponible después de grabar",
+ "Writing the summary": "Escribiendo el resumen",
+ "Regenerate": "Regenerar",
+ "Note for the summary": "Indicación para el resumen",
+ "Add a note, like shorter or in Spanish": "Añade una nota, como más corto o en español",
+ "Waiting for Yogurt AI to download": "Esperando la descarga de Yogurt AI"
}
diff --git a/app/src/shared/locales/fi.json b/app/src/shared/locales/fi.json
index 5e7e86bc..debb49aa 100644
--- a/app/src/shared/locales/fi.json
+++ b/app/src/shared/locales/fi.json
@@ -314,7 +314,6 @@
"Recording {title}": "Tallennetaan {title}",
"Redo": "Tee uudelleen",
"Regenerate summary": "Luo yhteenveto uudelleen",
- "Regenerate summary?": "Luodaanko yhteenveto uudelleen?",
"Reload": "Lataa uudelleen",
"Remove": "Poista",
"Remove {name}": "Poista {name}",
@@ -381,7 +380,6 @@
"Sum up the meeting so far": "Tee yhteenveto kokouksesta tähän asti",
"Summarizing…": "Tehdään yhteenvetoa…",
"Summary": "Yhteenveto",
- "Summary actions": "Yhteenvedon toiminnot",
"Sure. The site goes live on Tuesday.": "Selvä. Sivusto julkaistaan tiistaina.",
"System Audio Recording Only": "Vain järjestelmän äänen tallennus",
"System Settings is open at {pane}.": "Järjestelmäasetukset on auki kohdassa {pane}.",
@@ -686,5 +684,11 @@
"Dock only": "Vain Dock",
"Summary language": "Yhteenvedon kieli",
"Same as the meeting": "Sama kuin kokouksessa",
- "Used for new summaries and when you write them again.": "Käytetään uusissa ja uudelleen kirjoitetuissa yhteenvedoissa."
+ "Used for new summaries and when you write them again.": "Käytetään uusissa ja uudelleen kirjoitetuissa yhteenvedoissa.",
+ "Available after recording": "Käytettävissä tallennuksen jälkeen",
+ "Writing the summary": "Yhteenvetoa kirjoitetaan",
+ "Regenerate": "Luo uudelleen",
+ "Note for the summary": "Ohje yhteenvedolle",
+ "Add a note, like shorter or in Spanish": "Lisää ohje, kuten lyhyemmin tai espanjaksi",
+ "Waiting for Yogurt AI to download": "Odotetaan Yogurt AI:n latausta"
}
diff --git a/app/src/shared/locales/fil.json b/app/src/shared/locales/fil.json
index 106e15a1..d2b21bcb 100644
--- a/app/src/shared/locales/fil.json
+++ b/app/src/shared/locales/fil.json
@@ -314,7 +314,6 @@
"Recording {title}": "Nire-record ang {title}",
"Redo": "Ulitin",
"Regenerate summary": "Gawin ulit ang buod",
- "Regenerate summary?": "Gawin ulit ang buod?",
"Reload": "I-reload",
"Remove": "Alisin",
"Remove {name}": "Alisin ang {name}",
@@ -381,7 +380,6 @@
"Sum up the meeting so far": "Ibuod ang meeting hanggang ngayon",
"Summarizing…": "Binubuod…",
"Summary": "Buod",
- "Summary actions": "Mga aksiyon sa buod",
"Sure. The site goes live on Tuesday.": "Sige. Live na ang site sa Martes.",
"System Audio Recording Only": "System Audio Recording Only",
"System Settings is open at {pane}.": "Nakabukas ang System Settings sa {pane}.",
@@ -680,5 +678,11 @@
"Dock only": "Dock lang",
"Summary language": "Wika ng buod",
"Same as the meeting": "Tulad ng sa pulong",
- "Used for new summaries and when you write them again.": "Gagamitin sa mga bagong buod at kapag isinulat muli ang mga ito."
+ "Used for new summaries and when you write them again.": "Gagamitin sa mga bagong buod at kapag isinulat muli ang mga ito.",
+ "Available after recording": "Magagamit pagkatapos mag-record",
+ "Writing the summary": "Isinusulat ang buod",
+ "Regenerate": "Buuin muli",
+ "Note for the summary": "Tagubilin para sa buod",
+ "Add a note, like shorter or in Spanish": "Magdagdag ng bilin, gaya ng mas maikli o sa Espanyol",
+ "Waiting for Yogurt AI to download": "Hinihintay ang pag-download ng Yogurt AI"
}
diff --git a/app/src/shared/locales/fr.json b/app/src/shared/locales/fr.json
index 9790260a..082df861 100644
--- a/app/src/shared/locales/fr.json
+++ b/app/src/shared/locales/fr.json
@@ -317,7 +317,6 @@
"Recording {title}": "Enregistrement de {title}",
"Redo": "Rétablir",
"Regenerate summary": "Régénérer le résumé",
- "Regenerate summary?": "Régénérer le résumé ?",
"Reload": "Recharger",
"Remove": "Supprimer",
"Remove {name}": "Supprimer {name}",
@@ -385,7 +384,6 @@
"Sum up the meeting so far": "Résume la réunion jusqu’ici",
"Summarizing…": "Résumé en cours…",
"Summary": "Résumé",
- "Summary actions": "Actions du résumé",
"Sure. The site goes live on Tuesday.": "Bien sûr. Le site est mis en ligne mardi.",
"System Audio Recording Only": "Enregistrement de l’audio du système uniquement",
"System Settings is open at {pane}.": "Réglages Système est ouvert sur {pane}.",
@@ -696,5 +694,11 @@
"Dock only": "Dock uniquement",
"Summary language": "Langue des résumés",
"Same as the meeting": "Celle de la réunion",
- "Used for new summaries and when you write them again.": "Utilisée pour les nouveaux résumés et leur réécriture."
+ "Used for new summaries and when you write them again.": "Utilisée pour les nouveaux résumés et leur réécriture.",
+ "Available after recording": "Disponible après l’enregistrement",
+ "Writing the summary": "Rédaction du résumé",
+ "Regenerate": "Régénérer",
+ "Note for the summary": "Consigne pour le résumé",
+ "Add a note, like shorter or in Spanish": "Ajoutez une consigne, comme plus court ou en espagnol",
+ "Waiting for Yogurt AI to download": "En attente du téléchargement de l’IA Yogurt"
}
diff --git a/app/src/shared/locales/he.json b/app/src/shared/locales/he.json
index f966756b..9b9d026b 100644
--- a/app/src/shared/locales/he.json
+++ b/app/src/shared/locales/he.json
@@ -317,7 +317,6 @@
"Recording {title}": "מקליט את {title}",
"Redo": "בצע שוב",
"Regenerate summary": "יצירה מחדש של הסיכום",
- "Regenerate summary?": "ליצור מחדש את הסיכום?",
"Reload": "טען מחדש",
"Remove": "הסרה",
"Remove {name}": "הסרת {name}",
@@ -385,7 +384,6 @@
"Sum up the meeting so far": "סכם את הפגישה עד עכשיו",
"Summarizing…": "יצירת סיכום…",
"Summary": "סיכום",
- "Summary actions": "פעולות סיכום",
"Sure. The site goes live on Tuesday.": "בטח. האתר עולה ביום שלישי.",
"System Audio Recording Only": "הקלטת שמע מערכת בלבד",
"System Settings is open at {pane}.": "הגדרות המערכת פתוחות בחלונית {pane}.",
@@ -690,5 +688,11 @@
"Dock only": "Dock בלבד",
"Summary language": "שפת הסיכום",
"Same as the meeting": "כמו בפגישה",
- "Used for new summaries and when you write them again.": "משמשת לסיכומים חדשים ולכתיבה מחדש שלהם."
+ "Used for new summaries and when you write them again.": "משמשת לסיכומים חדשים ולכתיבה מחדש שלהם.",
+ "Available after recording": "זמין לאחר ההקלטה",
+ "Writing the summary": "הסיכום נכתב",
+ "Regenerate": "יצירה מחדש",
+ "Note for the summary": "הנחיה לסיכום",
+ "Add a note, like shorter or in Spanish": "הוסיפו הנחיה, כמו קצר יותר או בספרדית",
+ "Waiting for Yogurt AI to download": "ממתינים להורדת Yogurt AI"
}
diff --git a/app/src/shared/locales/hi.json b/app/src/shared/locales/hi.json
index d2cb3a72..8909f057 100644
--- a/app/src/shared/locales/hi.json
+++ b/app/src/shared/locales/hi.json
@@ -314,7 +314,6 @@
"Recording {title}": "{title} रिकॉर्ड हो रहा है",
"Redo": "फिर से करें",
"Regenerate summary": "सारांश फिर से बनाएँ",
- "Regenerate summary?": "सारांश फिर से बनाएँ?",
"Reload": "फिर से लोड करें",
"Remove": "हटाएं",
"Remove {name}": "{name} हटाएं",
@@ -381,7 +380,6 @@
"Sum up the meeting so far": "अब तक की मीटिंग का सार बताओ",
"Summarizing…": "सारांश बनाया जा रहा है…",
"Summary": "सारांश",
- "Summary actions": "सारांश के विकल्प",
"Sure. The site goes live on Tuesday.": "ज़रूर। साइट मंगलवार को लाइव होगी।",
"System Audio Recording Only": "केवल सिस्टम ऑडियो रिकॉर्डिंग",
"System Settings is open at {pane}.": "सिस्टम सेटिंग्ज़ {pane} पर खुली है।",
@@ -668,5 +666,11 @@
"Dock only": "केवल Dock",
"Summary language": "सारांश की भाषा",
"Same as the meeting": "मीटिंग की भाषा",
- "Used for new summaries and when you write them again.": "नए सारांशों और उन्हें दोबारा लिखते समय इस्तेमाल होती है।"
+ "Used for new summaries and when you write them again.": "नए सारांशों और उन्हें दोबारा लिखते समय इस्तेमाल होती है।",
+ "Available after recording": "रिकॉर्डिंग के बाद उपलब्ध",
+ "Writing the summary": "सारांश लिखा जा रहा है",
+ "Regenerate": "फिर से बनाएँ",
+ "Note for the summary": "सारांश के लिए निर्देश",
+ "Add a note, like shorter or in Spanish": "निर्देश जोड़ें, जैसे छोटा या स्पेनिश में",
+ "Waiting for Yogurt AI to download": "Yogurt AI डाउनलोड होने का इंतज़ार"
}
diff --git a/app/src/shared/locales/hu.json b/app/src/shared/locales/hu.json
index 44eef143..65215831 100644
--- a/app/src/shared/locales/hu.json
+++ b/app/src/shared/locales/hu.json
@@ -314,7 +314,6 @@
"Recording {title}": "Felvétel: {title}",
"Redo": "Ismétlés",
"Regenerate summary": "Összefoglaló újrakészítése",
- "Regenerate summary?": "Újra elkészíted az összefoglalót?",
"Reload": "Újratöltés",
"Remove": "Eltávolítás",
"Remove {name}": "{name} eltávolítása",
@@ -381,7 +380,6 @@
"Sum up the meeting so far": "Foglald össze az eddigi megbeszélést",
"Summarizing…": "Összegzés…",
"Summary": "Összefoglaló",
- "Summary actions": "Összefoglaló műveletei",
"Sure. The site goes live on Tuesday.": "Persze. Kedden élesedik az oldal.",
"System Audio Recording Only": "Csak rendszerhangfelvétel",
"System Settings is open at {pane}.": "A Rendszerbeállítások itt van nyitva: {pane}.",
@@ -668,5 +666,11 @@
"Dock only": "Csak a Dock",
"Summary language": "Összefoglaló nyelve",
"Same as the meeting": "A megbeszélés nyelve",
- "Used for new summaries and when you write them again.": "Új és újraírt összefoglalókhoz használjuk."
+ "Used for new summaries and when you write them again.": "Új és újraírt összefoglalókhoz használjuk.",
+ "Available after recording": "Felvétel után elérhető",
+ "Writing the summary": "Az összefoglaló készül",
+ "Regenerate": "Újragenerálás",
+ "Note for the summary": "Utasítás az összefoglalóhoz",
+ "Add a note, like shorter or in Spanish": "Adjon meg kérést, például rövidebben vagy spanyolul",
+ "Waiting for Yogurt AI to download": "Várakozás a Yogurt AI letöltésére"
}
diff --git a/app/src/shared/locales/id.json b/app/src/shared/locales/id.json
index 72b92c9a..c80301db 100644
--- a/app/src/shared/locales/id.json
+++ b/app/src/shared/locales/id.json
@@ -305,7 +305,6 @@
"Recording {title}": "Merekam {title}",
"Redo": "Ulang",
"Regenerate summary": "Buat ulang ringkasan",
- "Regenerate summary?": "Buat ulang ringkasan?",
"Reload": "Muat Ulang",
"Remove": "Hapus",
"Remove {name}": "Hapus {name}",
@@ -369,7 +368,6 @@
"Sum up the meeting so far": "Ringkas rapat sejauh ini",
"Summarizing…": "Merangkum…",
"Summary": "Ringkasan",
- "Summary actions": "Tindakan ringkasan",
"Sure. The site goes live on Tuesday.": "Tentu. Situsnya tayang hari Selasa.",
"System Audio Recording Only": "Hanya Rekaman Audio Sistem",
"System Settings is open at {pane}.": "Pengaturan Sistem terbuka di {pane}.",
@@ -638,5 +636,11 @@
"Dock only": "Hanya Dock",
"Summary language": "Bahasa ringkasan",
"Same as the meeting": "Sama dengan rapat",
- "Used for new summaries and when you write them again.": "Digunakan untuk ringkasan baru dan saat menulisnya ulang."
+ "Used for new summaries and when you write them again.": "Digunakan untuk ringkasan baru dan saat menulisnya ulang.",
+ "Available after recording": "Tersedia setelah perekaman",
+ "Writing the summary": "Sedang menulis ringkasan",
+ "Regenerate": "Buat ulang",
+ "Note for the summary": "Catatan untuk ringkasan",
+ "Add a note, like shorter or in Spanish": "Catatan, misalnya lebih singkat atau bahasa Spanyol",
+ "Waiting for Yogurt AI to download": "Menunggu unduhan Yogurt AI"
}
diff --git a/app/src/shared/locales/it.json b/app/src/shared/locales/it.json
index 6a109ed1..3e39e669 100644
--- a/app/src/shared/locales/it.json
+++ b/app/src/shared/locales/it.json
@@ -317,7 +317,6 @@
"Recording {title}": "Registrazione di {title}",
"Redo": "Ripristina",
"Regenerate summary": "Rigenera riepilogo",
- "Regenerate summary?": "Rigenerare il riepilogo?",
"Reload": "Ricarica",
"Remove": "Rimuovi",
"Remove {name}": "Rimuovi {name}",
@@ -385,7 +384,6 @@
"Sum up the meeting so far": "Riassumi la riunione fin qui",
"Summarizing…": "Riepilogo in corso…",
"Summary": "Riepilogo",
- "Summary actions": "Azioni del riepilogo",
"Sure. The site goes live on Tuesday.": "Certo. Il sito va online martedì.",
"System Audio Recording Only": "Solo registrazione audio di sistema",
"System Settings is open at {pane}.": "Impostazioni di Sistema è aperto su {pane}.",
@@ -699,5 +697,11 @@
"Dock only": "Solo Dock",
"Summary language": "Lingua dei riepiloghi",
"Same as the meeting": "Quella della riunione",
- "Used for new summaries and when you write them again.": "Usata per i nuovi riepiloghi e quando li riscrivi."
+ "Used for new summaries and when you write them again.": "Usata per i nuovi riepiloghi e quando li riscrivi.",
+ "Available after recording": "Disponibile dopo la registrazione",
+ "Writing the summary": "Scrittura del riepilogo",
+ "Regenerate": "Rigenera",
+ "Note for the summary": "Istruzione per il riepilogo",
+ "Add a note, like shorter or in Spanish": "Aggiungi una nota, come più breve o in spagnolo",
+ "Waiting for Yogurt AI to download": "In attesa del download di Yogurt AI"
}
diff --git a/app/src/shared/locales/ja.json b/app/src/shared/locales/ja.json
index 89653379..45722870 100644
--- a/app/src/shared/locales/ja.json
+++ b/app/src/shared/locales/ja.json
@@ -305,7 +305,6 @@
"Recording {title}": "{title}を録音中",
"Redo": "やり直す",
"Regenerate summary": "要約を作り直す",
- "Regenerate summary?": "要約を作り直しますか?",
"Reload": "再読み込み",
"Remove": "削除",
"Remove {name}": "{name} を削除",
@@ -369,7 +368,6 @@
"Sum up the meeting so far": "ここまでのミーティングをまとめて",
"Summarizing…": "要約中…",
"Summary": "要約",
- "Summary actions": "要約の操作",
"Sure. The site goes live on Tuesday.": "はい。サイトは火曜日に公開です。",
"System Audio Recording Only": "システムオーディオ録音のみ",
"System Settings is open at {pane}.": "システム設定で「{pane}」が開いています。",
@@ -638,5 +636,11 @@
"Dock only": "Dockのみ",
"Summary language": "要約の言語",
"Same as the meeting": "会議と同じ",
- "Used for new summaries and when you write them again.": "新しい要約と書き直す要約に使用します。"
+ "Used for new summaries and when you write them again.": "新しい要約と書き直す要約に使用します。",
+ "Available after recording": "録音終了後に利用可能",
+ "Writing the summary": "要約を作成中",
+ "Regenerate": "再生成",
+ "Note for the summary": "要約への指示",
+ "Add a note, like shorter or in Spanish": "短めに、スペイン語で、などの指示を追加",
+ "Waiting for Yogurt AI to download": "Yogurt AIのダウンロードを待機中"
}
diff --git a/app/src/shared/locales/ko.json b/app/src/shared/locales/ko.json
index af2705c9..febc47eb 100644
--- a/app/src/shared/locales/ko.json
+++ b/app/src/shared/locales/ko.json
@@ -305,7 +305,6 @@
"Recording {title}": "{title} 녹음 중",
"Redo": "실행 복귀",
"Regenerate summary": "요약 다시 만들기",
- "Regenerate summary?": "요약을 다시 만들까요?",
"Reload": "새로 고침",
"Remove": "제거",
"Remove {name}": "{name} 제거",
@@ -369,7 +368,6 @@
"Sum up the meeting so far": "지금까지 회의 요약해 줘",
"Summarizing…": "요약 중…",
"Summary": "요약",
- "Summary actions": "요약 작업",
"Sure. The site goes live on Tuesday.": "물론이죠. 사이트는 화요일에 공개돼요.",
"System Audio Recording Only": "시스템 오디오 녹음만",
"System Settings is open at {pane}.": "시스템 설정에서 {pane}이(가) 열려 있어요.",
@@ -638,5 +636,11 @@
"Dock only": "Dock만",
"Summary language": "요약 언어",
"Same as the meeting": "회의와 동일",
- "Used for new summaries and when you write them again.": "새 요약과 다시 작성하는 요약에 사용됩니다."
+ "Used for new summaries and when you write them again.": "새 요약과 다시 작성하는 요약에 사용됩니다.",
+ "Available after recording": "녹음 후 사용 가능",
+ "Writing the summary": "요약 작성 중",
+ "Regenerate": "다시 생성",
+ "Note for the summary": "요약 지침",
+ "Add a note, like shorter or in Spanish": "더 짧게, 스페인어로 등 지침 추가",
+ "Waiting for Yogurt AI to download": "Yogurt AI 다운로드 대기 중"
}
diff --git a/app/src/shared/locales/ms.json b/app/src/shared/locales/ms.json
index cfba6ef3..824475b8 100644
--- a/app/src/shared/locales/ms.json
+++ b/app/src/shared/locales/ms.json
@@ -305,7 +305,6 @@
"Recording {title}": "Merakam {title}",
"Redo": "Buat Semula",
"Regenerate summary": "Jana semula ringkasan",
- "Regenerate summary?": "Jana semula ringkasan?",
"Reload": "Muat Semula",
"Remove": "Alih keluar",
"Remove {name}": "Alih keluar {name}",
@@ -369,7 +368,6 @@
"Sum up the meeting so far": "Ringkaskan mesyuarat setakat ini",
"Summarizing…": "Meringkaskan…",
"Summary": "Ringkasan",
- "Summary actions": "Tindakan ringkasan",
"Sure. The site goes live on Tuesday.": "Baiklah. Laman web dilancarkan pada hari Selasa.",
"System Audio Recording Only": "Rakaman Audio Sistem Sahaja",
"System Settings is open at {pane}.": "Seting Sistem dibuka di {pane}.",
@@ -638,5 +636,11 @@
"Dock only": "Dock sahaja",
"Summary language": "Bahasa ringkasan",
"Same as the meeting": "Sama seperti mesyuarat",
- "Used for new summaries and when you write them again.": "Digunakan untuk ringkasan baharu dan apabila ditulis semula."
+ "Used for new summaries and when you write them again.": "Digunakan untuk ringkasan baharu dan apabila ditulis semula.",
+ "Available after recording": "Tersedia selepas rakaman",
+ "Writing the summary": "Sedang menulis ringkasan",
+ "Regenerate": "Jana semula",
+ "Note for the summary": "Arahan untuk ringkasan",
+ "Add a note, like shorter or in Spanish": "Tambah arahan, seperti lebih pendek atau bahasa Sepanyol",
+ "Waiting for Yogurt AI to download": "Menunggu muat turun Yogurt AI"
}
diff --git a/app/src/shared/locales/nb.json b/app/src/shared/locales/nb.json
index d513b9f8..d8bfa961 100644
--- a/app/src/shared/locales/nb.json
+++ b/app/src/shared/locales/nb.json
@@ -314,7 +314,6 @@
"Recording {title}": "Tar opp {title}",
"Redo": "Gjør om",
"Regenerate summary": "Lag sammendrag på nytt",
- "Regenerate summary?": "Lage sammendraget på nytt?",
"Reload": "Last inn på nytt",
"Remove": "Fjern",
"Remove {name}": "Fjern {name}",
@@ -381,7 +380,6 @@
"Sum up the meeting so far": "Oppsummer møtet så langt",
"Summarizing…": "Oppsummerer…",
"Summary": "Sammendrag",
- "Summary actions": "Handlinger for sammendrag",
"Sure. The site goes live on Tuesday.": "Klart. Nettstedet går live på tirsdag.",
"System Audio Recording Only": "Kun systemlydopptak",
"System Settings is open at {pane}.": "Systeminnstillinger er åpnet ved {pane}.",
@@ -680,5 +678,11 @@
"Dock only": "Bare Dock",
"Summary language": "Oppsummeringsspråk",
"Same as the meeting": "Samme som møtet",
- "Used for new summaries and when you write them again.": "Brukes til nye oppsummeringer og når du skriver dem på nytt."
+ "Used for new summaries and when you write them again.": "Brukes til nye oppsummeringer og når du skriver dem på nytt.",
+ "Available after recording": "Tilgjengelig etter opptaket",
+ "Writing the summary": "Skriver sammendraget",
+ "Regenerate": "Generer på nytt",
+ "Note for the summary": "Merknad til sammendraget",
+ "Add a note, like shorter or in Spanish": "Legg til en merknad, som kortere eller på spansk",
+ "Waiting for Yogurt AI to download": "Venter på nedlasting av Yogurt AI"
}
diff --git a/app/src/shared/locales/nl.json b/app/src/shared/locales/nl.json
index 909baa90..eafcf692 100644
--- a/app/src/shared/locales/nl.json
+++ b/app/src/shared/locales/nl.json
@@ -314,7 +314,6 @@
"Recording {title}": "{title} wordt opgenomen",
"Redo": "Opnieuw",
"Regenerate summary": "Samenvatting opnieuw maken",
- "Regenerate summary?": "Samenvatting opnieuw maken?",
"Reload": "Laad opnieuw",
"Remove": "Verwijderen",
"Remove {name}": "{name} verwijderen",
@@ -381,7 +380,6 @@
"Sum up the meeting so far": "Vat de meeting tot nu toe samen",
"Summarizing…": "Samenvatten…",
"Summary": "Samenvatting",
- "Summary actions": "Acties voor samenvatting",
"Sure. The site goes live on Tuesday.": "Zeker. De site gaat dinsdag live.",
"System Audio Recording Only": "Alleen systeemaudio-opname",
"System Settings is open at {pane}.": "Systeeminstellingen is geopend bij {pane}.",
@@ -680,5 +678,11 @@
"Dock only": "Alleen Dock",
"Summary language": "Taal van samenvattingen",
"Same as the meeting": "Dezelfde als de vergadering",
- "Used for new summaries and when you write them again.": "Voor nieuwe samenvattingen en wanneer je ze opnieuw schrijft."
+ "Used for new summaries and when you write them again.": "Voor nieuwe samenvattingen en wanneer je ze opnieuw schrijft.",
+ "Available after recording": "Beschikbaar na de opname",
+ "Writing the summary": "Samenvatting wordt geschreven",
+ "Regenerate": "Opnieuw maken",
+ "Note for the summary": "Instructie voor de samenvatting",
+ "Add a note, like shorter or in Spanish": "Voeg iets toe, zoals korter of in het Spaans",
+ "Waiting for Yogurt AI to download": "Wachten op de download van Yogurt AI"
}
diff --git a/app/src/shared/locales/pl.json b/app/src/shared/locales/pl.json
index f278d456..cbe57e20 100644
--- a/app/src/shared/locales/pl.json
+++ b/app/src/shared/locales/pl.json
@@ -320,7 +320,6 @@
"Recording {title}": "Nagrywanie: {title}",
"Redo": "Przywróć",
"Regenerate summary": "Utwórz podsumowanie od nowa",
- "Regenerate summary?": "Utworzyć podsumowanie od nowa?",
"Reload": "Wczytaj ponownie",
"Remove": "Usuń",
"Remove {name}": "Usuń {name}",
@@ -389,7 +388,6 @@
"Sum up the meeting so far": "Podsumuj dotychczasowe spotkanie",
"Summarizing…": "Tworzenie podsumowania…",
"Summary": "Podsumowanie",
- "Summary actions": "Działania podsumowania",
"Sure. The site goes live on Tuesday.": "Jasne. Strona rusza we wtorek.",
"System Audio Recording Only": "Tylko nagrywanie dźwięku systemowego",
"System Settings is open at {pane}.": "Ustawienia systemowe są otwarte w sekcji {pane}.",
@@ -716,5 +714,11 @@
"Dock only": "Tylko Dock",
"Summary language": "Język podsumowań",
"Same as the meeting": "Taki jak na spotkaniu",
- "Used for new summaries and when you write them again.": "Używany w nowych i ponownie tworzonych podsumowaniach."
+ "Used for new summaries and when you write them again.": "Używany w nowych i ponownie tworzonych podsumowaniach.",
+ "Available after recording": "Dostępne po nagraniu",
+ "Writing the summary": "Trwa pisanie podsumowania",
+ "Regenerate": "Generuj ponownie",
+ "Note for the summary": "Wskazówka do podsumowania",
+ "Add a note, like shorter or in Spanish": "Dodaj wskazówkę, np. krócej lub po hiszpańsku",
+ "Waiting for Yogurt AI to download": "Oczekiwanie na pobranie Yogurt AI"
}
diff --git a/app/src/shared/locales/pt-BR.json b/app/src/shared/locales/pt-BR.json
index a0caff1d..eea7debd 100644
--- a/app/src/shared/locales/pt-BR.json
+++ b/app/src/shared/locales/pt-BR.json
@@ -317,7 +317,6 @@
"Recording {title}": "Gravando {title}",
"Redo": "Refazer",
"Regenerate summary": "Gerar resumo de novo",
- "Regenerate summary?": "Gerar o resumo de novo?",
"Reload": "Recarregar",
"Remove": "Remover",
"Remove {name}": "Remover {name}",
@@ -385,7 +384,6 @@
"Sum up the meeting so far": "Resuma a reunião até agora",
"Summarizing…": "Resumindo…",
"Summary": "Resumo",
- "Summary actions": "Ações do resumo",
"Sure. The site goes live on Tuesday.": "Claro. O site entra no ar na terça.",
"System Audio Recording Only": "Somente Gravação de Áudio do Sistema",
"System Settings is open at {pane}.": "Os Ajustes do Sistema estão abertos em {pane}.",
@@ -696,5 +694,11 @@
"Dock only": "Apenas Dock",
"Summary language": "Idioma do resumo",
"Same as the meeting": "O mesmo da reunião",
- "Used for new summaries and when you write them again.": "Usado em novos resumos e quando você os reescreve."
+ "Used for new summaries and when you write them again.": "Usado em novos resumos e quando você os reescreve.",
+ "Available after recording": "Disponível após a gravação",
+ "Writing the summary": "Escrevendo o resumo",
+ "Regenerate": "Gerar novamente",
+ "Note for the summary": "Instrução para o resumo",
+ "Add a note, like shorter or in Spanish": "Adicione uma nota, como mais curto ou em espanhol",
+ "Waiting for Yogurt AI to download": "Aguardando o download do Yogurt AI"
}
diff --git a/app/src/shared/locales/ro.json b/app/src/shared/locales/ro.json
index fbb3334a..9e89101e 100644
--- a/app/src/shared/locales/ro.json
+++ b/app/src/shared/locales/ro.json
@@ -317,7 +317,6 @@
"Recording {title}": "Se înregistrează {title}",
"Redo": "Refă",
"Regenerate summary": "Regenerați rezumatul",
- "Regenerate summary?": "Regenerați rezumatul?",
"Reload": "Reîncarcă",
"Remove": "Elimină",
"Remove {name}": "Elimină {name}",
@@ -385,7 +384,6 @@
"Sum up the meeting so far": "Rezumă întâlnirea până acum",
"Summarizing…": "Se generează rezumatul…",
"Summary": "Rezumat",
- "Summary actions": "Acțiuni rezumat",
"Sure. The site goes live on Tuesday.": "Sigur. Site-ul se lansează marți.",
"System Audio Recording Only": "Numai înregistrare audio sistem",
"System Settings is open at {pane}.": "Configurări sistem e deschis la {pane}.",
@@ -697,5 +695,11 @@
"Dock only": "Doar Dock",
"Summary language": "Limba rezumatului",
"Same as the meeting": "Aceeași ca în întâlnire",
- "Used for new summaries and when you write them again.": "Folosită pentru rezumate noi și când le rescrii."
+ "Used for new summaries and when you write them again.": "Folosită pentru rezumate noi și când le rescrii.",
+ "Available after recording": "Disponibil după înregistrare",
+ "Writing the summary": "Se scrie rezumatul",
+ "Regenerate": "Regenerează",
+ "Note for the summary": "Instrucțiune pentru rezumat",
+ "Add a note, like shorter or in Spanish": "Adaugă o notă, precum mai scurt sau în spaniolă",
+ "Waiting for Yogurt AI to download": "Se așteaptă descărcarea Yogurt AI"
}
diff --git a/app/src/shared/locales/ru.json b/app/src/shared/locales/ru.json
index 4de5ee3e..af141f30 100644
--- a/app/src/shared/locales/ru.json
+++ b/app/src/shared/locales/ru.json
@@ -320,7 +320,6 @@
"Recording {title}": "Запись: {title}",
"Redo": "Повторить",
"Regenerate summary": "Пересоздать сводку",
- "Regenerate summary?": "Пересоздать сводку?",
"Reload": "Перезагрузить",
"Remove": "Удалить",
"Remove {name}": "Удалить {name}",
@@ -389,7 +388,6 @@
"Sum up the meeting so far": "Подведи итог встречи на этот момент",
"Summarizing…": "Создание сводки…",
"Summary": "Сводка",
- "Summary actions": "Действия со сводкой",
"Sure. The site goes live on Tuesday.": "Конечно. Сайт запускается во вторник.",
"System Audio Recording Only": "Только запись системного звука",
"System Settings is open at {pane}.": "Системные настройки открыты на разделе «{pane}».",
@@ -708,5 +706,11 @@
"Dock only": "Только Dock",
"Summary language": "Язык сводки",
"Same as the meeting": "Как на встрече",
- "Used for new summaries and when you write them again.": "Используется для новых и повторно созданных сводок."
+ "Used for new summaries and when you write them again.": "Используется для новых и повторно созданных сводок.",
+ "Available after recording": "Доступно после записи",
+ "Writing the summary": "Создаётся сводка",
+ "Regenerate": "Создать заново",
+ "Note for the summary": "Пожелание к сводке",
+ "Add a note, like shorter or in Spanish": "Добавьте пожелание, например короче или на испанском",
+ "Waiting for Yogurt AI to download": "Ожидание загрузки Yogurt AI"
}
diff --git a/app/src/shared/locales/sv.json b/app/src/shared/locales/sv.json
index 1ad1583f..18b60fcc 100644
--- a/app/src/shared/locales/sv.json
+++ b/app/src/shared/locales/sv.json
@@ -314,7 +314,6 @@
"Recording {title}": "Spelar in {title}",
"Redo": "Gör om",
"Regenerate summary": "Skapa sammanfattningen igen",
- "Regenerate summary?": "Skapa sammanfattningen igen?",
"Reload": "Läs in igen",
"Remove": "Ta bort",
"Remove {name}": "Ta bort {name}",
@@ -381,7 +380,6 @@
"Sum up the meeting so far": "Sammanfatta mötet hittills",
"Summarizing…": "Sammanfattar…",
"Summary": "Sammanfattning",
- "Summary actions": "Åtgärder för sammanfattningen",
"Sure. The site goes live on Tuesday.": "Visst. Sajten går live på tisdag.",
"System Audio Recording Only": "Endast systemljudinspelning",
"System Settings is open at {pane}.": "Systeminställningar är öppet vid {pane}.",
@@ -680,5 +678,11 @@
"Dock only": "Endast Dock",
"Summary language": "Sammanfattningsspråk",
"Same as the meeting": "Samma som mötet",
- "Used for new summaries and when you write them again.": "Används för nya sammanfattningar och när du skriver om dem."
+ "Used for new summaries and when you write them again.": "Används för nya sammanfattningar och när du skriver om dem.",
+ "Available after recording": "Tillgängligt efter inspelningen",
+ "Writing the summary": "Skriver sammanfattningen",
+ "Regenerate": "Skapa igen",
+ "Note for the summary": "Instruktion för sammanfattningen",
+ "Add a note, like shorter or in Spanish": "Lägg till en notering, som kortare eller på spanska",
+ "Waiting for Yogurt AI to download": "Väntar på nedladdning av Yogurt AI"
}
diff --git a/app/src/shared/locales/th.json b/app/src/shared/locales/th.json
index 183d3041..ce14b04c 100644
--- a/app/src/shared/locales/th.json
+++ b/app/src/shared/locales/th.json
@@ -305,7 +305,6 @@
"Recording {title}": "กำลังบันทึก {title}",
"Redo": "ทำซ้ำ",
"Regenerate summary": "สร้างสรุปใหม่",
- "Regenerate summary?": "สร้างสรุปใหม่ไหม",
"Reload": "โหลดซ้ำ",
"Remove": "เอาออก",
"Remove {name}": "เอา {name} ออก",
@@ -369,7 +368,6 @@
"Sum up the meeting so far": "สรุปการประชุมจนถึงตอนนี้",
"Summarizing…": "กำลังสรุป…",
"Summary": "สรุป",
- "Summary actions": "การทำงานกับสรุป",
"Sure. The site goes live on Tuesday.": "ได้เลย เว็บไซต์จะเปิดวันอังคาร",
"System Audio Recording Only": "การบันทึกเสียงระบบเท่านั้น",
"System Settings is open at {pane}.": "การตั้งค่าระบบเปิดอยู่ที่ {pane}",
@@ -638,5 +636,11 @@
"Dock only": "Dock เท่านั้น",
"Summary language": "ภาษาสรุป",
"Same as the meeting": "ภาษาเดียวกับการประชุม",
- "Used for new summaries and when you write them again.": "ใช้สำหรับสรุปใหม่และเมื่อเขียนสรุปอีกครั้ง"
+ "Used for new summaries and when you write them again.": "ใช้สำหรับสรุปใหม่และเมื่อเขียนสรุปอีกครั้ง",
+ "Available after recording": "ใช้งานได้หลังบันทึกเสร็จ",
+ "Writing the summary": "กำลังเขียนสรุป",
+ "Regenerate": "สร้างใหม่",
+ "Note for the summary": "คำสั่งสำหรับสรุป",
+ "Add a note, like shorter or in Spanish": "เพิ่มคำสั่ง เช่น สั้นลงหรือเป็นภาษาสเปน",
+ "Waiting for Yogurt AI to download": "รอการดาวน์โหลด Yogurt AI"
}
diff --git a/app/src/shared/locales/tr.json b/app/src/shared/locales/tr.json
index aa2a45f6..af35e4a0 100644
--- a/app/src/shared/locales/tr.json
+++ b/app/src/shared/locales/tr.json
@@ -314,7 +314,6 @@
"Recording {title}": "Kaydediliyor: {title}",
"Redo": "Yinele",
"Regenerate summary": "Özeti yeniden oluştur",
- "Regenerate summary?": "Özet yeniden oluşturulsun mu?",
"Reload": "Yeniden Yükle",
"Remove": "Kaldır",
"Remove {name}": "Kaldır: {name}",
@@ -381,7 +380,6 @@
"Sum up the meeting so far": "Toplantıyı şimdiye kadar özetle",
"Summarizing…": "Özetleniyor…",
"Summary": "Özet",
- "Summary actions": "Özet işlemleri",
"Sure. The site goes live on Tuesday.": "Tabii. Site salı günü yayına giriyor.",
"System Audio Recording Only": "Yalnızca Sistem Sesi Kaydı",
"System Settings is open at {pane}.": "Sistem Ayarları şu bölümde açık: {pane}.",
@@ -668,5 +666,11 @@
"Dock only": "Yalnızca Dock",
"Summary language": "Özet dili",
"Same as the meeting": "Toplantıyla aynı",
- "Used for new summaries and when you write them again.": "Yeni özetlerde ve özetleri yeniden yazarken kullanılır."
+ "Used for new summaries and when you write them again.": "Yeni özetlerde ve özetleri yeniden yazarken kullanılır.",
+ "Available after recording": "Kayıttan sonra kullanılabilir",
+ "Writing the summary": "Özet yazılıyor",
+ "Regenerate": "Yeniden oluştur",
+ "Note for the summary": "Özet için talimat",
+ "Add a note, like shorter or in Spanish": "Daha kısa veya İspanyolca gibi bir not ekleyin",
+ "Waiting for Yogurt AI to download": "Yogurt AI indirmesi bekleniyor"
}
diff --git a/app/src/shared/locales/uk.json b/app/src/shared/locales/uk.json
index 36ea0b4d..04bdc258 100644
--- a/app/src/shared/locales/uk.json
+++ b/app/src/shared/locales/uk.json
@@ -320,7 +320,6 @@
"Recording {title}": "Записуємо {title}",
"Redo": "Повторити",
"Regenerate summary": "Створити підсумок заново",
- "Regenerate summary?": "Створити підсумок заново?",
"Reload": "Перезавантажити",
"Remove": "Вилучити",
"Remove {name}": "Вилучити {name}",
@@ -389,7 +388,6 @@
"Sum up the meeting so far": "Підсумуй зустріч на цю мить",
"Summarizing…": "Створення підсумку…",
"Summary": "Підсумок",
- "Summary actions": "Дії з підсумком",
"Sure. The site goes live on Tuesday.": "Звісно. Сайт запускається у вівторок.",
"System Audio Recording Only": "Лише записування системного звуку",
"System Settings is open at {pane}.": "Системні параметри відкрито на розділі «{pane}».",
@@ -708,5 +706,11 @@
"Dock only": "Лише Dock",
"Summary language": "Мова підсумку",
"Same as the meeting": "Як на зустрічі",
- "Used for new summaries and when you write them again.": "Використовується для нових і повторно створених підсумків."
+ "Used for new summaries and when you write them again.": "Використовується для нових і повторно створених підсумків.",
+ "Available after recording": "Доступно після запису",
+ "Writing the summary": "Створюється підсумок",
+ "Regenerate": "Створити знову",
+ "Note for the summary": "Побажання до підсумку",
+ "Add a note, like shorter or in Spanish": "Додайте побажання, як-от коротше чи іспанською",
+ "Waiting for Yogurt AI to download": "Очікування завантаження Yogurt AI"
}
diff --git a/app/src/shared/locales/vi.json b/app/src/shared/locales/vi.json
index ff0e8a74..462361fd 100644
--- a/app/src/shared/locales/vi.json
+++ b/app/src/shared/locales/vi.json
@@ -305,7 +305,6 @@
"Recording {title}": "Đang ghi {title}",
"Redo": "Làm lại",
"Regenerate summary": "Tạo lại tóm tắt",
- "Regenerate summary?": "Tạo lại tóm tắt?",
"Reload": "Tải lại",
"Remove": "Gỡ bỏ",
"Remove {name}": "Gỡ {name}",
@@ -369,7 +368,6 @@
"Sum up the meeting so far": "Tóm tắt cuộc họp đến giờ",
"Summarizing…": "Đang tóm tắt…",
"Summary": "Tóm tắt",
- "Summary actions": "Thao tác tóm tắt",
"Sure. The site goes live on Tuesday.": "Được chứ. Trang web lên sóng vào thứ Ba.",
"System Audio Recording Only": "Chỉ ghi âm thanh hệ thống",
"System Settings is open at {pane}.": "Cài đặt hệ thống đang mở ở {pane}.",
@@ -638,5 +636,11 @@
"Dock only": "Chỉ Dock",
"Summary language": "Ngôn ngữ tóm tắt",
"Same as the meeting": "Giống cuộc họp",
- "Used for new summaries and when you write them again.": "Dùng cho bản tóm tắt mới và khi bạn viết lại."
+ "Used for new summaries and when you write them again.": "Dùng cho bản tóm tắt mới và khi bạn viết lại.",
+ "Available after recording": "Có sau khi ghi âm xong",
+ "Writing the summary": "Đang viết bản tóm tắt",
+ "Regenerate": "Tạo lại",
+ "Note for the summary": "Chỉ dẫn cho bản tóm tắt",
+ "Add a note, like shorter or in Spanish": "Thêm chỉ dẫn, như ngắn hơn hoặc bằng tiếng Tây Ban Nha",
+ "Waiting for Yogurt AI to download": "Đang chờ tải Yogurt AI"
}
diff --git a/app/src/shared/locales/zh-CN.json b/app/src/shared/locales/zh-CN.json
index b20d15b8..717b005a 100644
--- a/app/src/shared/locales/zh-CN.json
+++ b/app/src/shared/locales/zh-CN.json
@@ -305,7 +305,6 @@
"Recording {title}": "正在录制{title}",
"Redo": "重做",
"Regenerate summary": "重新生成摘要",
- "Regenerate summary?": "要重新生成摘要吗?",
"Reload": "重新载入",
"Remove": "移除",
"Remove {name}": "移除 {name}",
@@ -369,7 +368,6 @@
"Sum up the meeting so far": "总结一下目前为止的会议",
"Summarizing…": "正在总结…",
"Summary": "摘要",
- "Summary actions": "摘要操作",
"Sure. The site goes live on Tuesday.": "没问题。网站周二上线。",
"System Audio Recording Only": "仅系统录音",
"System Settings is open at {pane}.": "系统设置已打开“{pane}”。",
@@ -638,5 +636,11 @@
"Dock only": "仅 Dock",
"Summary language": "摘要语言",
"Same as the meeting": "与会议相同",
- "Used for new summaries and when you write them again.": "用于新摘要和重新生成的摘要。"
+ "Used for new summaries and when you write them again.": "用于新摘要和重新生成的摘要。",
+ "Available after recording": "录音结束后可用",
+ "Writing the summary": "正在撰写摘要",
+ "Regenerate": "重新生成",
+ "Note for the summary": "摘要要求",
+ "Add a note, like shorter or in Spanish": "添加要求,例如更简短或用西班牙语",
+ "Waiting for Yogurt AI to download": "等待下载 Yogurt AI"
}
diff --git a/app/src/shared/locales/zh-TW.json b/app/src/shared/locales/zh-TW.json
index 841dff52..0ce48700 100644
--- a/app/src/shared/locales/zh-TW.json
+++ b/app/src/shared/locales/zh-TW.json
@@ -305,7 +305,6 @@
"Recording {title}": "正在錄製{title}",
"Redo": "重做",
"Regenerate summary": "重新產生摘要",
- "Regenerate summary?": "要重新產生摘要嗎?",
"Reload": "重新載入",
"Remove": "移除",
"Remove {name}": "移除 {name}",
@@ -369,7 +368,6 @@
"Sum up the meeting so far": "總結一下到目前為止的會議",
"Summarizing…": "正在摘要…",
"Summary": "摘要",
- "Summary actions": "摘要動作",
"Sure. The site goes live on Tuesday.": "沒問題。網站週二上線。",
"System Audio Recording Only": "僅限系統錄音",
"System Settings is open at {pane}.": "系統設定已打開「{pane}」。",
@@ -638,5 +636,11 @@
"Dock only": "僅 Dock",
"Summary language": "摘要語言",
"Same as the meeting": "與會議相同",
- "Used for new summaries and when you write them again.": "用於新摘要和重新產生的摘要。"
+ "Used for new summaries and when you write them again.": "用於新摘要和重新產生的摘要。",
+ "Available after recording": "錄音結束後可用",
+ "Writing the summary": "正在撰寫摘要",
+ "Regenerate": "重新產生",
+ "Note for the summary": "摘要要求",
+ "Add a note, like shorter or in Spanish": "新增要求,例如更簡短或用西班牙語",
+ "Waiting for Yogurt AI to download": "等待下載 Yogurt AI"
}
diff --git a/app/src/shared/rewriteNote.ts b/app/src/shared/rewriteNote.ts
new file mode 100644
index 00000000..ed8faf5c
--- /dev/null
+++ b/app/src/shared/rewriteNote.ts
@@ -0,0 +1,2 @@
+/** A one-time instruction for regenerating a summary. */
+export const REWRITE_NOTE_MAX = 240
diff --git a/app/src/shared/types.ts b/app/src/shared/types.ts
index 4a8e24b2..929f3c35 100644
--- a/app/src/shared/types.ts
+++ b/app/src/shared/types.ts
@@ -132,7 +132,7 @@ export type YogurtApi = {
/** the open note kept its unsaved edits over notes written again for new people */
keptEdits(meetingId: string): void
/** writes the enhanced notes again */
- writeAgain(meetingId: string): Promise<void>
+ writeAgain(meetingId: string, note?: string): Promise<void>
/** status, the draft as it is written, and the saved notes; returns the way to stop listening */
onChange(cb: (v: NoteView) => void): () => void
}
diff --git a/app/test/enhance.test.ts b/app/test/enhance.test.ts
index 7010a246..44568555 100644
--- a/app/test/enhance.test.ts
+++ b/app/test/enhance.test.ts
@@ -9,6 +9,20 @@ const words = (s: string) => s.split(/\s+/).filter(Boolean).length
describe('enhancePrompt', () => {
const base = { title: 'Launch sync', attendees: [{ name: 'Maya Chen', email: null }], mine: '- ship Tuesday\n- pricing?', transcript: 'You: Hi.\nMaya Chen: Hello.', language: 'Spanish' }
+ it('keeps the default prompt byte-for-byte for an absent or blank rewrite note', () => {
+ expect(enhancePrompt({ ...base, note: '' })).toBe(enhancePrompt(base))
+ expect(enhancePrompt({ ...base, note: ' ' })).toBe(enhancePrompt(base))
+ })
+ it('adds a bounded presentation instruction after the full built-in prompt', () => {
+ const original = enhancePrompt(base)
+ const prompt = enhancePrompt({ ...base, note: ' shorter, in Spanish ' })
+ expect(prompt.startsWith(original)).toBe(true)
+ expect(prompt).toContain('take precedence over the defaults above')
+ expect(prompt).toContain('never invent facts')
+ expect(prompt.endsWith('"shorter, in Spanish"')).toBe(true)
+ expect(enhancePrompt({ ...base, note: 'x'.repeat(300) })).toContain('"' + 'x'.repeat(240) + '"')
+ expect(tidyNotes('## Plan\nA short paragraph.\nA second paragraph.', true)).toBe('## Plan\nA short paragraph.\nA second paragraph.')
+ })
it('carries the person\'s own notes, the transcript and the language', () => {
const p = enhancePrompt(base)
expect(p).toContain('- ship Tuesday\n- pricing?')
@@ -180,6 +194,13 @@ describe('tidyNotes and markMine', () => {
it('drops a preamble, code fences and a closing remark', () => {
expect(tidyNotes('Sure! Here are your notes:\n```markdown\n## Plan\n- Ship it\n```\nLet me know if you need anything else.')).toBe('## Plan\n- Ship it')
})
+ it.each([
+ '## Plan\nShip on Tuesday.\nKeep the first release small.',
+ 'Ship on Tuesday.\nKeep the first release small.',
+ '| Task | Due |\n| --- | --- |\n| Release | Tuesday |',
+ ])('removes rewrite wrappers while keeping the whole body (%s)', body => {
+ expect(tidyNotes(`Sure! Here is the shorter version:\n\n${body}\n\nLet me know if you would like any changes.`, true)).toBe(body)
+ })
it('marks a bullet that says what the person wrote, when the model did not', () => {
const md = markMine('## Plan\n- Ship the site on Tuesday\n- Budget is fine', '- ship site tuesday')
expect(md).toBe('## Plan\n- <mine>Ship the site on Tuesday</mine>\n- Budget is fine')
@@ -280,13 +301,13 @@ describe('enhance', () => {
// their notes steer the summary; nothing of theirs is pasted in after it
expect(md).toBe('## Done\n- **You:** x')
})
- it('a long meeting reuses the part summaries written while it was recorded, and summarises only the rest', async () => {
+ it.each([undefined, 'Write a shorter summary in Spanish'])('a long meeting reuses part summaries and applies the rewrite note only to the final summary (%s)', async note => {
const lines = transcriptText(segs).split('\n')
const earlier = [{ lines: lines.slice(0, 150), summary: '- early topic0' }]
const summarised: string[] = []
const parts: Array<[number, number]> = []
let last = ''
- await enhance({ meeting, mine: '', segments: segs, language: 'en' }, {
+ await enhance({ meeting, mine: '', segments: segs, language: 'en', note }, {
contextSize: 8192, count: async (xs) => xs.map(words),
chat: async (prompt, onToken, o) => {
if (o?.summary) { summarised.push(prompt); return `- ${(prompt.match(/topic\d+/g) ?? []).join(' ')}` }
@@ -299,6 +320,7 @@ describe('enhance', () => {
expect(parts[0][0]).toBe(2)
expect(last).toContain('- early topic0')
expect(last).toContain('topic399')
+ if (note) { expect(last).toContain(note); expect(summarised.join('\n')).not.toContain(note) }
})
it('a part whose lines changed since (new speaker letters) is summarised again', async () => {
const earlier = [{ lines: ['Speaker Z: not what was said'], summary: '- stale' }]
@@ -438,3 +460,38 @@ describe('summary language preference', () => {
expect(prompts[0]).toContain('By default, write in German')
})
})
+
+it.each(['in Spanish', 'shorter'])('keeps the summary language default and rewrite instruction %s through next steps and titles', async (note) => {
+ const prompts: string[] = []
+ let askTitle: ((llm: Llm) => Promise<string>) | undefined
+ const llm: Llm = {
+ contextSize: 32000, count: async xs => xs.map(words),
+ chat: async prompt => { prompts.push(prompt); return prompt.startsWith('Now') ? 'NONE' : '## Plan\nA short paragraph.' },
+ }
+ const result = await enhance({ meeting: { title: 'Plan', attendees: [] }, mine: '', segments: [seg('me', 0, 'Release on Tuesday.')], language: 'en', summaryLanguage: 'fr', note, titleLater: ask => { askTitle = ask } }, llm, () => {})
+ await askTitle!(llm)
+ expect(result).toBe('## Plan\nA short paragraph.')
+ expect(prompts).toHaveLength(3)
+ expect(prompts.every(prompt => prompt.includes(note))).toBe(true)
+ expect(prompts[0]).toContain('By default, write in French')
+ expect(prompts[0]).toContain('A rewrite note asking for another language takes precedence')
+ expect(prompts[0].indexOf(JSON.stringify(note))).toBeGreaterThan(prompts[0].indexOf('By default, write in French'))
+ expect(prompts[1]).toContain('heading in the same language as the notes')
+ expect(prompts[2]).toContain('title, in the same language as the notes')
+ for (const prompt of prompts.slice(1)) {
+ expect(prompt).not.toContain('French')
+ expect(prompt).not.toContain('English')
+ }
+ expect(prompts[1]).toContain('excludes next steps')
+ expect(prompts[2]).toContain('other requests apply only to the notes')
+})
+
+it('cleans a shorter rewrite with a lead-in line and a closing remark', async () => {
+ const body = '## Plan\n- Ship on Tuesday.\n- Keep the first release small.'
+ const llm: Llm = {
+ contextSize: 32000, count: async xs => xs.map(words),
+ chat: async prompt => prompt.startsWith('Now') ? 'NONE' : `Here is a shorter version:\n${body}\nLet me know if you need anything else.`,
+ }
+ const result = await enhance({ meeting: { title: 'Plan', attendees: [] }, mine: '', segments: [seg('me', 0, 'Release on Tuesday.')], language: 'en', note: 'shorter' }, llm, () => {})
+ expect(result).toBe(body)
+})
diff --git a/app/test/noteMenu.test.ts b/app/test/noteMenu.test.ts
new file mode 100644
index 00000000..8316df35
--- /dev/null
+++ b/app/test/noteMenu.test.ts
@@ -0,0 +1,44 @@
+import { createElement } from 'react'
+import { renderToStaticMarkup } from 'react-dom/server'
+import { afterEach, expect, it, vi } from 'vitest'
+import { NoteMenu, summaryAction } from '../src/renderer/src/components/NoteMenu'
+import { LOCALES, setLanguage } from '../src/shared/i18n'
+
+vi.mock('../src/renderer/src/motion', () => ({ usePopoverPresence: () => ({ value: 'keyboard', props: {} }) }))
+afterEach(() => setLanguage('en'))
+const available = { hasSummary: true, hasContent: false, recording: false, busy: false, downloading: false, trashed: false }
+
+it('shows the correct action for existing summaries and source content, hiding empty notes and Trash', () => {
+ expect(summaryAction(available)).toEqual({ label: 'Regenerate summary', reason: undefined })
+ expect(summaryAction({ ...available, hasSummary: false, hasContent: true })?.label).toBe('Generate summary')
+ for (const recording of [true, false]) for (const busy of [true, false]) for (const downloading of [true, false]) {
+ expect(summaryAction({ ...available, hasSummary: false, recording, busy, downloading })).toBeUndefined()
+ expect(summaryAction({ ...available, hasContent: true, recording, busy, downloading, trashed: true })).toBeUndefined()
+ }
+})
+
+it('explains disabled actions, prioritizing recording and model download over queued writing', () => {
+ expect(summaryAction({ ...available, recording: true, busy: true, downloading: true })?.reason).toBe('Available after recording')
+ expect(summaryAction({ ...available, busy: true, downloading: true })?.reason).toBe('Waiting for Yogurt AI to download')
+ expect(summaryAction({ ...available, busy: true })?.reason).toBe('Writing the summary')
+})
+
+it('renders a focusable but unavailable menu item with a separate accessible description in every locale', () => {
+ for (const locale of LOCALES) {
+ setLanguage(locale.id)
+ for (const wait of ['recording', 'busy', 'downloading'] as const) {
+ const generation = summaryAction({ ...available, [wait]: true })!
+ const html = renderToStaticMarkup(createElement(NoteMenu, {
+ recording: wait === 'recording', generation, hasSummary: true, edited: false, rewriteOpen: false,
+ setRewriteOpen() {}, onWriteAgain() {}, onRename() {}, onDelete() {},
+ }))
+ const item = html.match(/<button[^>]*data-testid="note-write-again"[^>]*>/)![0]
+ expect(item).toContain('role="menuitem"')
+ expect(item).toContain('aria-disabled="true"')
+ expect(item).toContain('aria-description=')
+ expect(item).not.toMatch(/\sdisabled=/)
+ expect(item).not.toContain('tabindex="-1"')
+ if (locale.id !== 'en') expect(generation.reason).not.toMatch(/^(Available after recording|Writing the summary|Waiting for Yogurt AI to download)$/)
+ }
+ }
+})
diff --git a/app/test/notes.test.ts b/app/test/notes.test.ts
index 5e6b77b8..d9392a12 100644
--- a/app/test/notes.test.ts
+++ b/app/test/notes.test.ts
@@ -44,6 +44,17 @@ function setup(o: { summaryLanguage?: () => string; me?: string; named?: () => P
}
describe('hookNotes', () => {
+ it('keeps a rewrite note only in its queued job, never the next regeneration or saved notes', async () => {
+ const s = setup()
+ await s.notes.writeAgain(s.m.id, 'Use a concise formal tone')
+ expect(s.prompts[0]).toContain('Use a concise formal tone')
+ expect(JSON.stringify(s.store.notes(s.m.id))).not.toContain('Use a concise formal tone')
+ s.prompts.length = 0
+ await s.notes.writeAgain(s.m.id)
+ expect(s.prompts.length).toBeGreaterThan(0)
+ expect(s.prompts.every(prompt => !prompt.includes('Use a concise formal tone'))).toBe(true)
+ })
+
it('off a Mac, a note waiting on the model to load says so; then it writes', async () => {
let release!: () => void
const load = new Promise<void>((resolve) => { release = resolve })
@@ -507,3 +518,16 @@ it('a title-only refresh follows the retained summary language when a default is
expect(s.prompts[0]).not.toContain('Spanish')
expect(s.store.notes(s.m.id).enhanced).toBe('## Plan\n- Envoyer le plan.')
})
+
+
+it('combines the current summary language with a one-time rewrite note', async () => {
+ const s = setup({ summaryLanguage: () => 'fr', reply: '## Plan\n- **You:** Send the plan.' })
+ s.stop(); s.transcribed(); await s.notes.written(s.m.id)
+ await s.notes.writeAgain(s.m.id, 'in Spanish')
+ expect(s.prompts.at(-1)).toContain('By default, write in French')
+ expect(s.prompts.at(-1)).toContain('"in Spanish"')
+ expect(s.prompts.at(-1)).toContain('take precedence over the defaults above')
+ await s.notes.writeAgain(s.m.id)
+ expect(s.prompts.at(-1)).toContain('By default, write in French')
+ expect(s.prompts.at(-1)).not.toContain('"in Spanish"')
+})
diff --git a/app/test/regenerateSummary.test.ts b/app/test/regenerateSummary.test.ts
new file mode 100644
index 00000000..36570bda
--- /dev/null
+++ b/app/test/regenerateSummary.test.ts
@@ -0,0 +1,75 @@
+import { createElement, useLayoutEffect, type ReactElement } from 'react'
+import { renderToStaticMarkup } from 'react-dom/server'
+import { afterEach, expect, it, vi } from 'vitest'
+import { RegenerateForm } from '../src/renderer/src/components/RegenerateForm'
+import { LOCALES, setLanguage, t } from '../src/shared/i18n'
+import { REWRITE_NOTE_MAX } from '../src/shared/rewriteNote'
+
+const state = vi.hoisted(() => ({ note: '', setNote: vi.fn() }))
+vi.mock('react', async original => ({ ...await original<typeof import('react')>(), useState: () => [state.note, state.setNote], useLayoutEffect: vi.fn() }))
+afterEach(() => { state.note = ''; vi.clearAllMocks(); setLanguage('en') })
+
+function form(edited = false, disabled = false) {
+ const onSubmit = vi.fn(), onClose = vi.fn()
+ const tree = RegenerateForm({ hasSummary: true, active: true, edited, disabled, onSubmit, onClose })
+ const find = (node: any, type: string): ReactElement<any> | undefined => {
+ if (!node || typeof node !== 'object') return
+ if (node.type === type) return node
+ for (const child of [node.props?.children].flat()) { const found = find(child, type); if (found) return found }
+ }
+ return { tree, onSubmit, onClose, input: find(tree, 'input')!, close: find(tree, 'button')! }
+}
+
+it('submits an optional trimmed note, closes without submitting, and respects disabled generation', () => {
+ for (const note of ['', ' ', ' shorter in Spanish ']) {
+ state.note = note
+ const f = form(), preventDefault = vi.fn()
+ f.tree.props.onSubmit({ preventDefault })
+ expect(preventDefault).toHaveBeenCalledOnce()
+ expect(f.onSubmit).toHaveBeenCalledWith(note.trim())
+ f.close.props.onClick()
+ expect(f.onClose).toHaveBeenCalledOnce()
+ expect(f.onSubmit).toHaveBeenCalledOnce()
+ }
+ const disabled = form(false, true)
+ disabled.tree.props.onSubmit({ preventDefault() {} })
+ expect(disabled.onSubmit).not.toHaveBeenCalled()
+})
+
+it('limits a single-line field and does not submit while an input method is composing', () => {
+ const f = form(), preventDefault = vi.fn()
+ expect(f.input.props.maxLength).toBe(REWRITE_NOTE_MAX)
+ expect(f.input.props.autoFocus).toBe(true)
+ f.input.props.onChange({ target: { value: 'shorter' } })
+ expect(state.setNote).toHaveBeenCalledWith('shorter')
+ f.input.props.onKeyDown({ key: 'Enter', nativeEvent: { isComposing: true }, preventDefault })
+ expect(preventDefault).toHaveBeenCalledOnce()
+})
+
+it('shows the edit warning only when needed and translates every new label', () => {
+ for (const locale of LOCALES) {
+ setLanguage(locale.id)
+ for (const key of ['Note for the summary', 'Add a note, like shorter or in Spanish', 'Regenerate']) {
+ if (locale.id !== 'en') expect(t(key), locale.id).not.toBe(key)
+ }
+ const render = (edited: boolean) => renderToStaticMarkup(createElement(RegenerateForm, { hasSummary: true, active: true, edited, disabled: false, onClose() {}, onSubmit() {} }))
+ expect(render(true)).toContain('data-testid="note-confirm"')
+ expect(render(false)).not.toContain('data-testid="note-confirm"')
+ expect(render(true)).not.toContain('type="checkbox"')
+ }
+})
+
+it('clears a note on reopening while preserving its text during the exit', () => {
+ RegenerateForm({ hasSummary: true, active: false, edited: false, disabled: false, onClose() {}, onSubmit() {} })
+ vi.mocked(useLayoutEffect).mock.calls.at(-1)![0]()
+ expect(state.setNote).not.toHaveBeenCalled()
+ RegenerateForm({ hasSummary: true, active: true, edited: false, disabled: false, onClose() {}, onSubmit() {} })
+ vi.mocked(useLayoutEffect).mock.calls.at(-1)![0]()
+ expect(state.setNote).toHaveBeenCalledWith('')
+})
+
+it('labels the optional-note form for first generation when no summary exists', () => {
+ const html = renderToStaticMarkup(createElement(RegenerateForm, { hasSummary: false, active: true, edited: false, disabled: false, onClose() {}, onSubmit() {} }))
+ expect(html).toContain('Generate summary')
+ expect(html).not.toContain('Regenerate summary')
+})
diff --git a/app/test/resumeRequest.test.ts b/app/test/resumeRequest.test.ts
index 75c421c8..418c4de5 100644
--- a/app/test/resumeRequest.test.ts
+++ b/app/test/resumeRequest.test.ts
@@ -1,7 +1,8 @@
import { afterEach, beforeEach, expect, it, vi } from 'vitest'
import { isValidElement, type ReactElement, type ReactNode } from 'react'
+import { NoteMenu } from '../src/renderer/src/components/NoteMenu'
import { Note } from '../src/renderer/src/screens/Note'
-import type { MeetingView, NoteView } from '../src/shared/types'
+import type { MeetingView, NoteView, SetupState } from '../src/shared/types'
// Run the note's effects and handlers without mounting editors, a browser, or capture.
const hooks = vi.hoisted(() => ({ values: [] as unknown[], refs: [] as { current: unknown }[],
@@ -25,6 +26,8 @@ vi.mock('../src/renderer/src/motion', async original => ({ ...await original<typ
let meeting: MeetingView, notes: NoteView
let meetingChanged: () => void, notesChanged: (notes: NoteView) => void
const resume = vi.fn(), consumed = vi.fn(), title = vi.fn(), source = vi.fn()
+const transcriptGet = vi.fn()
+let segmentChanged: (line: { meetingId: string; text: string }) => void, transcriptChanged: (id: string) => void, setupChanged: (state: SetupState) => void
let requested: (() => void) | undefined
let tree: ReactNode
const unmount = () => { hooks.effects.forEach(effect => effect.cleanup?.()); hooks.values = []; hooks.refs = []; hooks.memos = []; hooks.effects = [] }
@@ -38,20 +41,23 @@ async function render() {
}
for (let i = 0; i < 6; i++) await Promise.resolve()
}
-function find(node: ReactNode, id: string): ReactElement<Record<string, unknown>> | undefined {
+function find(node: ReactNode, id: string | typeof NoteMenu): ReactElement<Record<string, unknown>> | undefined {
if (Array.isArray(node)) return node.map(child => find(child, id)).find(Boolean)
if (!isValidElement<Record<string, unknown>>(node)) return
- return node.props['data-testid'] === id || node.props.testId === id ? node : find(node.props.children as ReactNode, id)
+ return node.type === id || node.props['data-testid'] === id || node.props.testId === id ? node : find(node.props.children as ReactNode, id)
}
beforeEach(() => {
vi.clearAllMocks()
meeting = { id: 'resume-fixture', title: 'Resume fixture', startedAt: 1, endedAt: 2, eventId: 'event', app: null, attendees: [], state: 'stopped', language: null, titleSource: 'calendar' }
notes = { meetingId: meeting.id, mine: '', enhanced: null, edited: false, status: 'writing', draft: '', peopleChanged: false }
requested = () => { consumed(); requested = undefined }
+ transcriptGet.mockResolvedValue([])
resume.mockResolvedValue({ id: meeting.id })
vi.stubGlobal('window', { matchMedia: () => ({ matches: true }), yogurt: {
meetings: { get: async () => meeting, onChange: (cb: typeof meetingChanged) => { meetingChanged = cb; return vi.fn() }, resume, stop: vi.fn() },
- notes: { get: async () => notes, onChange: (cb: typeof notesChanged) => { notesChanged = cb; return vi.fn() } },
+ notes: { setMine: async (_id: string, _text: string, revision: number) => ({ revision, status: 'saved' }), get: async () => notes, onChange: (cb: typeof notesChanged) => { notesChanged = cb; return vi.fn() } },
+ transcript: { get: transcriptGet, onSegment: (cb: typeof segmentChanged) => { segmentChanged = cb; return vi.fn() }, onSpeakers: (cb: typeof transcriptChanged) => { transcriptChanged = cb; return vi.fn() } },
+ setup: { state: async () => ({ phase: 'ready', fraction: 1 }), onState: (cb: typeof setupChanged) => { setupChanged = cb; return vi.fn() } },
widget: { state: async () => null, onState: () => vi.fn() },
} })
})
@@ -107,3 +113,40 @@ it('waits through Finish before the summary starts and still asks before replaci
await render()
expect(resume).toHaveBeenCalledExactlyOnceWith(meeting.id)
})
+
+it('updates generation availability for typed notes, existing summaries, and Trash', async () => {
+ notes.status = 'empty'; requested = undefined
+ await render(); await render()
+ expect(find(tree, NoteMenu)?.props.generation).toBeUndefined()
+ ;(find(tree, 'note-notes-tab')!.props.onClick as (e: { detail: number }) => void)({ detail: 0 }); await render()
+ ;(find(tree, 'note-mine')!.props.onChange as (md: string) => void)('Keep the release small.'); await render()
+ expect(find(tree, NoteMenu)?.props.generation).toMatchObject({ label: 'Generate summary', reason: undefined })
+ notesChanged({ ...notes, enhanced: '## Plan', status: 'done' }); await render()
+ expect(find(tree, NoteMenu)?.props.generation).toMatchObject({ label: 'Regenerate summary' })
+ meeting.trashedAt = 1; meetingChanged(); await render(); await render()
+ expect(find(tree, NoteMenu)?.props.generation).toBeUndefined()
+})
+
+it('keeps a live transcript arrival over an older empty read, and refreshes after hidden lines change', async () => {
+ notes.status = 'empty'; requested = undefined
+ let resolve!: (lines: []) => void
+ transcriptGet.mockImplementationOnce(() => new Promise(r => { resolve = r }))
+ await render(); await render()
+ segmentChanged({ meetingId: meeting.id, text: 'Release on Tuesday.' })
+ resolve([]); await render(); await render()
+ expect(find(tree, NoteMenu)?.props.generation).toMatchObject({ label: 'Generate summary' })
+ expect(transcriptGet).toHaveBeenCalledWith(meeting.id, { last: 1 })
+ transcriptChanged(meeting.id); await render(); await render()
+ expect(find(tree, NoteMenu)?.props.generation).toBeUndefined()
+})
+
+it('waits for the first notes model but allows generation during an optional upgrade', async () => {
+ notes = { ...notes, status: 'done', enhanced: '## Plan' }; requested = undefined
+ await render(); await render()
+ setupChanged({ phase: 'ready', fraction: 1, notesDownloading: true }); await render()
+ expect(find(tree, NoteMenu)?.props.generation).toMatchObject({ reason: 'Waiting for Yogurt AI to download' })
+ setupChanged({ phase: 'ready', fraction: 1, notesUpgradeDownloading: true }); await render()
+ expect(find(tree, NoteMenu)?.props.generation).toMatchObject({ reason: undefined })
+ setupChanged({ phase: 'ready', fraction: 1, notesError: 'Download failed' }); await render()
+ expect(find(tree, NoteMenu)?.props.generation).toMatchObject({ reason: 'Waiting for Yogurt AI to download' })
+})
diff --git a/app/test/rewriteNote.test.ts b/app/test/rewriteNote.test.ts
new file mode 100644
index 00000000..81635857
--- /dev/null
+++ b/app/test/rewriteNote.test.ts
@@ -0,0 +1,13 @@
+import { expect, it } from 'vitest'
+import { rewriteNote } from '../src/main/ipcArgs'
+import { REWRITE_NOTE_MAX } from '../src/shared/rewriteNote'
+
+it('accepts missing and blank IPC notes as the original regeneration', () => {
+ for (const value of [undefined, '', ' \n\t']) expect(rewriteNote(value)).toBe('')
+ expect(rewriteNote(' shorter, in Spanish ')).toBe('shorter, in Spanish')
+})
+
+it('rejects non-text IPC notes and caps text before it reaches the model', () => {
+ for (const value of [null, false, 42, {}, [], ['shorter']]) expect(rewriteNote(value)).toBeUndefined()
+ expect(rewriteNote('x'.repeat(REWRITE_NOTE_MAX + 1))).toBe('x'.repeat(REWRITE_NOTE_MAX))
+})