From 26fb3dc1e1e731b413c1774b1a3f7da582967efa Mon Sep 17 00:00:00 2001 From: Catherine Renelle <32781029+catrenelle@users.noreply.github.com> Date: Mon, 9 Feb 2026 23:51:18 -0500 Subject: [PATCH] Add category management tools to AI chat (list, create, delete) Three new tools: list_categories shows all categories with type and parent, create_category adds a new one with optional parent nesting, delete_category removes non-system categories by name. Frontend renders category tables, success alerts for creation, and warning alerts for deletion. Co-Authored-By: Claude Opus 4.6 --- .../src/views/chat/ChatToolResultItem.vue | 38 ++++++ src/Purrse.Api/Services/ChatService.cs | 125 +++++++++++++++++- 2 files changed, 162 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/chat/ChatToolResultItem.vue b/frontend/src/views/chat/ChatToolResultItem.vue index dc5b2bb..16822dc 100644 --- a/frontend/src/views/chat/ChatToolResultItem.vue +++ b/frontend/src/views/chat/ChatToolResultItem.vue @@ -120,6 +120,44 @@ from "{{ data.oldCategory }}" to "{{ data.newCategory }}" + + +
+ + + + Name + Type + Parent + + + + + {{ cat.name }} + + + {{ cat.type }} + + + {{ cat.parentName || '-' }} + + + +
+ + +
+ + Created {{ data.type }} category "{{ data.name }}"{{ data.parentName ? ` under "${data.parentName}"` : '' }} + +
+ + +
+ + Deleted {{ data.type }} category "{{ data.name }}" + +