diff --git a/frontend/src/views/KnowledgeView.vue b/frontend/src/views/KnowledgeView.vue index 4e37804..a5c9f31 100644 --- a/frontend/src/views/KnowledgeView.vue +++ b/frontend/src/views/KnowledgeView.vue @@ -49,6 +49,7 @@ interface KnowledgeItem { status?: string; priority?: string; due_date?: string; + task_kind?: "work" | "plan"; } interface UpcomingEvent { @@ -60,7 +61,7 @@ interface UpcomingEvent { // ─── Filter state ───────────────────────────────────────────────────────────── -const activeType = ref<"" | "note" | "person" | "place" | "list" | "task">(""); +const activeType = ref<"" | "note" | "person" | "place" | "list" | "task" | "plan">(""); const activeTag = ref(""); const sortMode = ref<"modified" | "created" | "alpha" | "type">("modified"); const searchQuery = ref(""); @@ -68,8 +69,8 @@ let searchDebounce: ReturnType | null = null; // ─── Type counts ────────────────────────────────────────────────────────────── -interface KnowledgeCounts { note: number; person: number; place: number; list: number; total: number } -const typeCounts = ref({ note: 0, person: 0, place: 0, list: 0, total: 0 }); +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 }); async function fetchCounts() { try { @@ -416,11 +417,11 @@ onUnmounted(() => { {{ typeCounts.total }}