From 74b337b587b9128c043de797a2c53ceafb18c76a Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Tue, 2 Jun 2026 22:33:23 -0400 Subject: [PATCH] feat(processes): surface processes in the Knowledge view Task 5 of #582. Add 'process' to the KnowledgeItem/activeType/KnowledgeCounts types, a Processes entry in the type-filter row, a Workflow-icon quick-create button (createNew('process') -> /notes/new?type=process), and a Process card badge. Co-Authored-By: Claude Opus 4.8 (1M context) --- frontend/src/views/KnowledgeView.vue | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/frontend/src/views/KnowledgeView.vue b/frontend/src/views/KnowledgeView.vue index a5c9f31..201c125 100644 --- a/frontend/src/views/KnowledgeView.vue +++ b/frontend/src/views/KnowledgeView.vue @@ -10,6 +10,7 @@ import { User, MapPin, List, + Workflow, Search, Share2, ChevronLeft, @@ -23,7 +24,7 @@ const router = useRouter(); interface KnowledgeItem { id: number; - note_type: "note" | "person" | "place" | "list" | "task"; + note_type: "note" | "person" | "place" | "list" | "task" | "process"; title: string; snippet: string; tags: string[]; @@ -61,7 +62,7 @@ interface UpcomingEvent { // ─── Filter state ───────────────────────────────────────────────────────────── -const activeType = ref<"" | "note" | "person" | "place" | "list" | "task" | "plan">(""); +const activeType = ref<"" | "note" | "person" | "place" | "list" | "task" | "plan" | "process">(""); const activeTag = ref(""); const sortMode = ref<"modified" | "created" | "alpha" | "type">("modified"); const searchQuery = ref(""); @@ -69,8 +70,8 @@ let searchDebounce: ReturnType | null = null; // ─── Type counts ────────────────────────────────────────────────────────────── -interface KnowledgeCounts { note: number; person: number; place: number; list: number; task: number; plan: number; total: number } -const typeCounts = ref({ note: 0, person: 0, place: 0, list: 0, task: 0, plan: 0, total: 0 }); +interface KnowledgeCounts { note: number; person: number; place: number; list: number; task: number; plan: number; process: number; total: number } +const typeCounts = ref({ note: 0, person: 0, place: 0, list: 0, task: 0, plan: 0, process: 0, total: 0 }); async function fetchCounts() { try { @@ -403,6 +404,10 @@ onUnmounted(() => { List + @@ -417,11 +422,11 @@ onUnmounted(() => { {{ typeCounts.total }}