feat(kb): add category create/edit/delete UI #244
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/MAPPS-230-kb-category-crud-ui"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The mokosh-server KB module exposes full CRUD for categories (POST/PUT/DELETE /kb/categories), but the SPA only ever GET /kb/categories, so categories could never be created, renamed, or removed from the app and were only settable via direct DB/seed.
Add the missing UI on the Knowledge Base home page: a "New Category" button in the header opens a create/edit modal, and each category card gains edit and delete affordances. The modal collects name, slug (auto-derived from the name until edited, normalized through slugify on save), description, parent category, visibility, and sort order, then POSTs (create) or PUTs (edit) and refetches the grid. Delete goes through the styled ConfirmDialog and DELETEs the category; the confirmation notes that filed articles are not deleted but become uncategorized.
Add CreateKbCategoryRequest and UpdateKbCategoryRequest DTOs mirroring the server's category bodies, alongside the existing article request shapes.
#MAPPS-230