From 8b3bd4804e2659c5c4d1b5c00c6d0281e614fa7d Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Tue, 2 Jun 2026 22:33:23 -0400 Subject: [PATCH] feat(processes): monospace prompt editor for note_type=process MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task 6 of #582. NoteType gains 'process'. NoteEditorView branches to a plain monospace textarea (labeled Prompt) for processes instead of the TipTap rich-text editor — prompts are plain markdown and rich-text round-tripping would mangle them. Title/tags/save path unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) --- frontend/src/types/note.ts | 2 +- frontend/src/views/NoteEditorView.vue | 33 +++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/frontend/src/types/note.ts b/frontend/src/types/note.ts index d68d2be..cb97688 100644 --- a/frontend/src/types/note.ts +++ b/frontend/src/types/note.ts @@ -1,6 +1,6 @@ export type TaskStatus = "todo" | "in_progress" | "done" | "cancelled"; export type TaskPriority = "none" | "low" | "medium" | "high"; -export type NoteType = "note" | "person" | "place" | "list"; +export type NoteType = "note" | "person" | "place" | "list" | "process"; export interface Note { id: number; diff --git a/frontend/src/views/NoteEditorView.vue b/frontend/src/views/NoteEditorView.vue index c7a49da..70e46f2 100644 --- a/frontend/src/views/NoteEditorView.vue +++ b/frontend/src/views/NoteEditorView.vue @@ -130,6 +130,7 @@ const titlePlaceholder = computed(() => { case 'person': return 'Name'; case 'place': return 'Place name'; case 'list': return 'List title'; + case 'process': return 'Process name'; default: return 'Title'; } }); @@ -602,6 +603,18 @@ onUnmounted(() => assist.clearSelection()); + + +