Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

Replace "Clean Up Notes" with "Generate Notes" as default action

Gabriel Stein4026676c5ce4
diff --git a/src/components/notes/NoteEditor.tsx b/src/components/notes/NoteEditor.tsx
index 9bfd94a12..9e6a54243 100644
--- a/src/components/notes/NoteEditor.tsx
+++ b/src/components/notes/NoteEditor.tsx
@@ -66,7 +66,6 @@ interface NoteEditorProps {
isMeetingRecording?: boolean;
meetingTranscript?: string;
onStopMeetingRecording?: () => void;
- onGenerateNotes?: () => void;
liveTranscript?: string;
}
@@ -163,7 +162,6 @@ export default function NoteEditor({
isMeetingRecording,
meetingTranscript,
onStopMeetingRecording,
- onGenerateNotes,
liveTranscript,
}: NoteEditorProps) {
const { t } = useTranslation();
@@ -648,30 +646,6 @@ export default function NoteEditor({
const noteDate = formatNoteDate(note.created_at);
- const generateNotesButton = onGenerateNotes ? (
- <button
- onClick={onGenerateNotes}
- disabled={actionProcessingState === "processing"}
- className={cn(
- "flex items-center gap-2 h-11 px-5 rounded-xl",
- "bg-accent/8 dark:bg-accent/12",
- "backdrop-blur-xl",
- "border border-accent/15 dark:border-accent/20",
- "shadow-sm hover:shadow-md",
- "text-accent/70 hover:text-accent",
- "transition-[background-color,color,transform] duration-200",
- "hover:bg-accent/12 dark:hover:bg-accent/18",
- "active:scale-[0.98]",
- "disabled:opacity-40 disabled:pointer-events-none"
- )}
- >
- <Sparkles size={14} />
- <span className="text-xs font-semibold tracking-tight">
- {t("notes.editor.generateNotes")}
- </span>
- </button>
- ) : null;
-
return (
<div className="flex flex-col h-full min-h-0">
<div className="px-5 pt-4 pb-0">
@@ -836,13 +810,7 @@ export default function NoteEditor({
isProcessing={isProcessing}
onStart={handleStartRecording}
onStop={isMeetingRecording ? onStopMeetingRecording! : onStopRecording}
- actionPicker={
- isMeetingRecording
- ? undefined
- : hasMeetingTranscript && !enhancement
- ? generateNotesButton
- : actionPicker
- }
+ actionPicker={isMeetingRecording ? undefined : actionPicker}
/>
</div>
</div>
diff --git a/src/components/notes/PersonalNotesView.tsx b/src/components/notes/PersonalNotesView.tsx
index 4177ff859..ef141de24 100644
--- a/src/components/notes/PersonalNotesView.tsx
+++ b/src/components/notes/PersonalNotesView.tsx
@@ -17,7 +17,6 @@ import ActionManagerDialog from "./ActionManagerDialog";
import AddNotesToFolderDialog from "./AddNotesToFolderDialog";
import { useNoteRecording } from "../../hooks/useNoteRecording";
import { useActionProcessing } from "../../hooks/useActionProcessing";
-import type { ActionItem } from "../../types/electron";
import { useSettingsStore, selectIsCloudReasoningMode } from "../../stores/settingsStore";
import { useFolderManagement } from "../../hooks/useFolderManagement";
import { useNoteDragAndDrop } from "../../hooks/useNoteDragAndDrop";
@@ -367,41 +366,6 @@ export default function PersonalNotesView({
return () => cancelAction();
}, [activeNoteId, cancelAction]);
- const handleGenerateNotes = useCallback(() => {
- const transcript = meetingTranscript || activeNote?.transcript;
- if (!transcript) return;
-
- const combinedContent = [
- localContentRef.current.trim() ? `## My Notes\n${localContentRef.current}` : "",
- `## Meeting Transcript\n${transcript}`,
- ]
- .filter(Boolean)
- .join("\n\n");
-
- const generateAction = {
- id: -1,
- name: "Generate notes",
- description: "",
- prompt:
- "You are given a meeting transcript and optionally the user's own notes taken during the meeting. " +
- "Combine them into clean, well-structured meeting notes in markdown. " +
- "Include: key discussion points, decisions made, action items, and any follow-ups. " +
- "Preserve the user's notes where relevant and enrich them with context from the transcript. " +
- "Do not include filler, small talk, or redundant information.",
- icon: "sparkles",
- is_builtin: 0,
- sort_order: 0,
- translation_key: null,
- created_at: "",
- updated_at: "",
- } satisfies ActionItem;
-
- runAction(generateAction, combinedContent, {
- isCloudMode,
- modelId: effectiveModelId,
- });
- }, [meetingTranscript, activeNote?.transcript, runAction, isCloudMode, effectiveModelId]);
-
const isEnhancementStale = useMemo(() => {
if (!activeNote?.enhanced_content || !activeNote?.enhanced_at_content_hash) return false;
const currentHash = makeContentHash(localContent);
@@ -788,7 +752,6 @@ export default function PersonalNotesView({
isMeetingRecording={isMeetingRecording}
meetingTranscript={meetingTranscript}
onStopMeetingRecording={stopMeetingTranscription}
- onGenerateNotes={handleGenerateNotes}
liveTranscript={liveTranscript}
actionProcessingState={actionProcessingState}
actionName={actionName}
diff --git a/src/helpers/database.js b/src/helpers/database.js
index f10e7b622..32284dfc1 100644
--- a/src/helpers/database.js
+++ b/src/helpers/database.js
@@ -237,19 +237,26 @@ class DatabaseManager {
"INSERT INTO actions (name, description, prompt, icon, is_builtin, sort_order, translation_key) VALUES (?, ?, ?, ?, 1, 0, ?)"
)
.run(
- "Clean Up Notes",
- "Fix grammar, structure, and formatting",
- "Clean up grammar, improve structure, and format these notes for readability while preserving all original meaning.",
+ "Generate Notes",
+ "Clean up, structure, and enhance your notes",
+ "You are given the user's notes and/or a meeting transcript. If a meeting transcript is present, combine all inputs into clean, well-structured meeting notes in markdown — include key discussion points, decisions made, action items, and follow-ups. If only personal notes are provided, clean up grammar, improve structure, and format for readability. Preserve the user's intent and meaning. Do not include filler, small talk, or redundant information.",
"sparkles",
- "notes.actions.builtin.cleanupNotes"
+ "notes.actions.builtin.generateNotes"
);
}
+ // Migrate built-in action to "Generate Notes"
this.db
.prepare(
- "UPDATE actions SET translation_key = ? WHERE is_builtin = 1 AND name = ? AND translation_key IS NULL"
+ "UPDATE actions SET name = ?, description = ?, prompt = ?, translation_key = ? WHERE is_builtin = 1 AND translation_key != ?"
)
- .run("notes.actions.builtin.cleanupNotes", "Clean Up Notes");
+ .run(
+ "Generate Notes",
+ "Clean up, structure, and enhance your notes",
+ "You are given the user's notes and/or a meeting transcript. If a meeting transcript is present, combine all inputs into clean, well-structured meeting notes in markdown — include key discussion points, decisions made, action items, and follow-ups. If only personal notes are provided, clean up grammar, improve structure, and format for readability. Preserve the user's intent and meaning. Do not include filler, small talk, or redundant information.",
+ "notes.actions.builtin.generateNotes",
+ "notes.actions.builtin.generateNotes"
+ );
this.db.exec(`
CREATE TABLE IF NOT EXISTS google_calendar_tokens (
diff --git a/src/locales/de/translation.json b/src/locales/de/translation.json
index 45cbebeed..4b6f92387 100644
--- a/src/locales/de/translation.json
+++ b/src/locales/de/translation.json
@@ -1491,8 +1491,7 @@
"staleIndicator": "Der Inhalt hat sich seit der Verbesserung geändert",
"live": "Live",
"transcript": "Transkript",
- "notes": "Notizen",
- "generateNotes": "Notizen generieren"
+ "notes": "Notizen"
},
"upload": {
"title": "Audio hochladen",
@@ -1569,9 +1568,9 @@
"selectAction": "Aktion auswählen",
"done": "Fertig",
"builtin": {
- "cleanupNotes": {
- "name": "Notizen bereinigen",
- "description": "Grammatik, Struktur und Formatierung verbessern"
+ "generateNotes": {
+ "name": "Notizen generieren",
+ "description": "Notizen bereinigen, strukturieren und verbessern"
}
},
"errors": {
diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json
index 6d4f0996f..daefa25b4 100644
--- a/src/locales/en/translation.json
+++ b/src/locales/en/translation.json
@@ -1605,8 +1605,7 @@
"staleIndicator": "Content has changed since enhancement",
"live": "Live",
"transcript": "Transcript",
- "notes": "Notes",
- "generateNotes": "Generate notes"
+ "notes": "Notes"
},
"upload": {
"title": "Upload Audio",
@@ -1699,9 +1698,9 @@
"runAction": "Run {{name}}",
"selectAction": "Select action",
"builtin": {
- "cleanupNotes": {
- "name": "Clean Up Notes",
- "description": "Fix grammar, structure, and formatting"
+ "generateNotes": {
+ "name": "Generate Notes",
+ "description": "Clean up, structure, and enhance your notes"
}
},
"errors": {
diff --git a/src/locales/es/translation.json b/src/locales/es/translation.json
index 1475b6700..82d430291 100644
--- a/src/locales/es/translation.json
+++ b/src/locales/es/translation.json
@@ -1491,8 +1491,7 @@
"staleIndicator": "El contenido ha cambiado desde la mejora",
"live": "En vivo",
"transcript": "Transcripción",
- "notes": "Notas",
- "generateNotes": "Generar notas"
+ "notes": "Notas"
},
"upload": {
"title": "Subir audio",
@@ -1569,9 +1568,9 @@
"selectAction": "Seleccionar acción",
"done": "Listo",
"builtin": {
- "cleanupNotes": {
- "name": "Limpiar notas",
- "description": "Corregir gramática, estructura y formato"
+ "generateNotes": {
+ "name": "Generar notas",
+ "description": "Limpiar, estructurar y mejorar tus notas"
}
},
"errors": {
diff --git a/src/locales/fr/translation.json b/src/locales/fr/translation.json
index 5d3954239..9a576ec67 100644
--- a/src/locales/fr/translation.json
+++ b/src/locales/fr/translation.json
@@ -1529,8 +1529,7 @@
"staleIndicator": "Le contenu a changé depuis l'amélioration",
"live": "En direct",
"transcript": "Transcription",
- "notes": "Notes",
- "generateNotes": "Générer des notes"
+ "notes": "Notes"
},
"upload": {
"title": "Téléverser un fichier audio",
@@ -1623,9 +1622,9 @@
"runAction": "Exécuter {{name}}",
"selectAction": "Sélectionner l'action",
"builtin": {
- "cleanupNotes": {
- "name": "Nettoyer les notes",
- "description": "Corriger la grammaire, la structure et la mise en forme"
+ "generateNotes": {
+ "name": "Générer des notes",
+ "description": "Nettoyer, structurer et améliorer vos notes"
}
},
"errors": {
diff --git a/src/locales/it/translation.json b/src/locales/it/translation.json
index e9a6552b7..ec9bc55c0 100644
--- a/src/locales/it/translation.json
+++ b/src/locales/it/translation.json
@@ -1491,8 +1491,7 @@
"staleIndicator": "Il contenuto è cambiato dall'ultimo miglioramento",
"live": "Dal vivo",
"transcript": "Trascrizione",
- "notes": "Note",
- "generateNotes": "Genera note"
+ "notes": "Note"
},
"upload": {
"title": "Carica audio",
@@ -1569,9 +1568,9 @@
"selectAction": "Seleziona azione",
"done": "Fatto",
"builtin": {
- "cleanupNotes": {
- "name": "Pulisci note",
- "description": "Correggere grammatica, struttura e formattazione"
+ "generateNotes": {
+ "name": "Genera note",
+ "description": "Pulire, strutturare e migliorare le note"
}
},
"errors": {
diff --git a/src/locales/ja/translation.json b/src/locales/ja/translation.json
index c9b5ad84f..40f0a427d 100644
--- a/src/locales/ja/translation.json
+++ b/src/locales/ja/translation.json
@@ -1390,7 +1390,6 @@
"live": "ライブ",
"transcript": "文字起こし",
"notes": "ノート",
- "generateNotes": "ノートを生成",
"untitled": "無題",
"noteTitle": "ノートのタイトル",
"stop": "停止",
@@ -1429,9 +1428,9 @@
"selectAction": "アクションを選択",
"done": "完了",
"builtin": {
- "cleanupNotes": {
- "name": "ノートを整理",
- "description": "文法、構成、書式を修正する"
+ "generateNotes": {
+ "name": "ノートを生成",
+ "description": "ノートを整理、構成、強化する"
}
},
"errors": {
diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.json
index b61a818b9..a473c9300 100644
--- a/src/locales/pt/translation.json
+++ b/src/locales/pt/translation.json
@@ -1491,8 +1491,7 @@
"staleIndicator": "O conteúdo mudou desde o aprimoramento",
"live": "Ao vivo",
"transcript": "Transcrição",
- "notes": "Notas",
- "generateNotes": "Gerar notas"
+ "notes": "Notas"
},
"upload": {
"title": "Enviar áudio",
@@ -1569,9 +1568,9 @@
"selectAction": "Selecionar ação",
"done": "Concluído",
"builtin": {
- "cleanupNotes": {
- "name": "Limpar notas",
- "description": "Corrigir gramática, estrutura e formatação"
+ "generateNotes": {
+ "name": "Gerar notas",
+ "description": "Limpar, estruturar e aprimorar suas notas"
}
},
"errors": {
diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.json
index 0cea0d2a5..44ce2d64f 100644
--- a/src/locales/ru/translation.json
+++ b/src/locales/ru/translation.json
@@ -1491,8 +1491,7 @@
"staleIndicator": "Содержимое изменилось после улучшения",
"live": "Живой",
"transcript": "Транскрипция",
- "notes": "Заметки",
- "generateNotes": "Сгенерировать заметки"
+ "notes": "Заметки"
},
"upload": {
"title": "Загрузить аудио",
@@ -1569,9 +1568,9 @@
"selectAction": "Выбрать действие",
"done": "Готово",
"builtin": {
- "cleanupNotes": {
- "name": "Очистить заметки",
- "description": "Исправить грамматику, структуру и форматирование"
+ "generateNotes": {
+ "name": "Сгенерировать заметки",
+ "description": "Очистить, структурировать и улучшить заметки"
}
},
"errors": {
diff --git a/src/locales/zh-CN/translation.json b/src/locales/zh-CN/translation.json
index 4c11ef99e..3e0b5ba4a 100644
--- a/src/locales/zh-CN/translation.json
+++ b/src/locales/zh-CN/translation.json
@@ -1491,8 +1491,7 @@
"staleIndicator": "内容在增强后已更改",
"live": "实时",
"transcript": "转录",
- "notes": "笔记",
- "generateNotes": "生成笔记"
+ "notes": "笔记"
},
"upload": {
"title": "上传音频",
@@ -1569,9 +1568,9 @@
"selectAction": "选择操作",
"done": "完成",
"builtin": {
- "cleanupNotes": {
- "name": "整理笔记",
- "description": "修正语法、结构和格式"
+ "generateNotes": {
+ "name": "生成笔记",
+ "description": "清理、结构化和增强您的笔记"
}
},
"errors": {
diff --git a/src/locales/zh-TW/translation.json b/src/locales/zh-TW/translation.json
index a0f7285de..eba40a8e5 100644
--- a/src/locales/zh-TW/translation.json
+++ b/src/locales/zh-TW/translation.json
@@ -1491,8 +1491,7 @@
"staleIndicator": "內容在增強後已變更",
"live": "即時",
"transcript": "轉錄",
- "notes": "筆記",
- "generateNotes": "生成筆記"
+ "notes": "筆記"
},
"upload": {
"title": "上傳音訊",
@@ -1569,9 +1568,9 @@
"selectAction": "選擇動作",
"done": "完成",
"builtin": {
- "cleanupNotes": {
- "name": "整理筆記",
- "description": "修正文法、結構和格式"
+ "generateNotes": {
+ "name": "生成筆記",
+ "description": "清理、結構化和增強您的筆記"
}
},
"errors": {