Skip to content

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

feat: improve meeting notes generation, auto-title, and checkbox rendering

Gabriel Stein758b6443fec0
diff --git a/src/components/notes/PersonalNotesView.tsx b/src/components/notes/PersonalNotesView.tsx
index 17440f842..a2fb25d09 100644
--- a/src/components/notes/PersonalNotesView.tsx
+++ b/src/components/notes/PersonalNotesView.tsx
@@ -323,17 +323,22 @@ export default function PersonalNotesView({
);
const handleApplyEnhancement = useCallback(
- async (enhancedContent: string, prompt: string) => {
+ async (enhancedContent: string, prompt: string, title?: string) => {
if (!activeNoteId) return;
setLocalEnhancedContent(enhancedContent);
const hash = makeContentHash(localContentRef.current);
+ const updates: Record<string, string> = {
+ enhanced_content: enhancedContent,
+ enhancement_prompt: prompt,
+ enhanced_at_content_hash: hash,
+ };
+ if (title) {
+ updates.title = title;
+ setLocalTitle(title);
+ }
setIsSaving(true);
try {
- await window.electronAPI.updateNote(activeNoteId, {
- enhanced_content: enhancedContent,
- enhancement_prompt: prompt,
- enhanced_at_content_hash: hash,
- });
+ await window.electronAPI.updateNote(activeNoteId, updates);
} finally {
setIsSaving(false);
}
diff --git a/src/components/ui/MarkdownTextarea.tsx b/src/components/ui/MarkdownTextarea.tsx
index 55445a31f..77d62aea4 100644
--- a/src/components/ui/MarkdownTextarea.tsx
+++ b/src/components/ui/MarkdownTextarea.tsx
@@ -119,6 +119,41 @@ function renderOverlay(text: string): ReactNode[] {
continue;
}
+ // Checkbox: `- [ ] item` or `- [x] item`
+ const cbm = line.match(/^(\s*)([-*]) (\[[ x]\]) /);
+ if (cbm) {
+ const indent = cbm[1];
+ const marker = cbm[2];
+ const bracket = cbm[3];
+ const checked = bracket === "[x]";
+ const p = cbm[0].length;
+ const content = line.slice(p);
+ out.push(
+ <span key={`l${i}`} className={checked ? "text-foreground/40" : ""}>
+ {indent}
+ <span className="relative">
+ <span className="invisible">{`${marker} ${bracket}`}</span>
+ <span
+ className={cn(
+ "absolute left-0 top-0.5 inline-flex items-center justify-center w-3.5 h-3.5 rounded-sm border text-[9px] leading-none",
+ checked
+ ? "bg-primary/80 border-primary/80 text-primary-foreground"
+ : "border-foreground/25"
+ )}
+ >
+ {checked ? "✓" : ""}
+ </span>
+ </span>{" "}
+ {checked ? (
+ <span className="line-through">{parseInline(content, i)}</span>
+ ) : (
+ parseInline(content, i)
+ )}
+ </span>
+ );
+ continue;
+ }
+
// Bullet list: `- item` or `* item` (with optional indent)
const bm = line.match(/^(\s*)([-*])( )/);
if (bm) {
diff --git a/src/hooks/useActionProcessing.ts b/src/hooks/useActionProcessing.ts
index 9b2c89291..4fcec4e92 100644
--- a/src/hooks/useActionProcessing.ts
+++ b/src/hooks/useActionProcessing.ts
@@ -13,10 +13,15 @@ const MEETING_SYSTEM_PROMPT = `You are a professional meeting notes assistant. Y
Your job is to produce clean, actionable meeting notes in markdown. Follow these rules:
-- Do NOT include a date, time, location, or attendee header — that metadata is handled separately.
+FORMAT RULES (strict):
+- Do NOT include any preamble: no title, no "# Meeting Notes", no date/time/location, no attendee list, no topic header. Start directly with the summary.
+- Do NOT use tables, horizontal rules, or block quotes.
+- Do NOT list or guess participant names/roles.
- Start with a concise 1–2 sentence summary of what the meeting was about.
- Use clear section headings: ## Key Discussion Points, ## Decisions Made, ## Action Items, ## Follow-ups (omit any section that has no content).
- Under Action Items, use checkboxes (\`- [ ]\`) and attribute each item to "You" or "Them" where clear.
+
+CONTENT RULES:
- Preserve important quotes or specific commitments verbatim when they carry meaning.
- Remove filler, small talk, false starts, and repeated/redundant content.
- Where speakers refer to the same topic across multiple turns, consolidate into a coherent point rather than listing every utterance.
@@ -25,8 +30,11 @@ Your job is to produce clean, actionable meeting notes in markdown. Follow these
Instructions: `;
+const TITLE_SYSTEM_PROMPT =
+ "Generate a concise 3-8 word title for these meeting notes. Return ONLY the title text, nothing else — no quotes, no prefix, no explanation.";
+
interface UseActionProcessingOptions {
- onSuccess: (enhancedContent: string, prompt: string) => void;
+ onSuccess: (enhancedContent: string, prompt: string, title?: string) => void;
onError: (errorMessage: string) => void;
}
@@ -74,8 +82,22 @@ export function useActionProcessing({ onSuccess, onError }: UseActionProcessingO
if (cancelledRef.current) return;
+ let title: string | undefined;
+ if (options.isMeetingNote) {
+ try {
+ const raw = await reasoningService.processText(enhanced.slice(0, 2000), modelId, null, {
+ systemPrompt: TITLE_SYSTEM_PROMPT,
+ temperature: 0.3,
+ });
+ const cleaned = raw.trim().replace(/^["']|["']$/g, "");
+ if (cleaned.length > 0 && cleaned.length < 100) title = cleaned;
+ } catch {}
+ }
+
+ if (cancelledRef.current) return;
+
setState("success");
- onSuccess(enhanced, action.prompt);
+ onSuccess(enhanced, action.prompt, title);
successTimeoutRef.current = setTimeout(() => {
processingRef.current = false;