feat(kb): article delete UI on the detail page (MAPPS-309) #342
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
psa-systems/mokosh-apps!342
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/MAPPS-309-kb-article-delete"
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?
QA report: KB articles have no delete affordance anywhere in the SPA
icon on Recent Articles rows; no Delete on the edit form. The server
already exposes
DELETE /api/v1/kb/articles/{id}; the client justnever wired it.
Adds a Danger
DeleteButton toKBArticleDetailPage's overflowactions, alongside the existing Edit Link. Click opens a
ConfirmDialogthat spells out the article title. Confirming firesdelete_authed("/kb/articles/{id}"), toasts on success, andnavigator.push(Route::KBHome)so the now-404 article id doesn'ttrap the user on a missing page.
State signals follow the same pattern KB category delete uses
(MAPPS-230):
confirming_deletedrives open,delete_busylocksthe dialog while in flight,
delete_errorsurfaces a failed DELETEinline in the dialog message.
Out of scope (filed separately as MAPPS-313 if needed):
canonical surface; editor stays read-write only).
#MAPPS-309
QA report: KB articles have no delete affordance anywhere in the SPA - only Edit, Open ticket, density toggle on the detail page; no trash icon on Recent Articles rows; no Delete on the edit form. The server already exposes `DELETE /api/v1/kb/articles/{id}`; the client just never wired it. Adds a Danger `Delete` Button to `KBArticleDetailPage`'s overflow actions, alongside the existing Edit Link. Click opens a `ConfirmDialog` that spells out the article title. Confirming fires `delete_authed("/kb/articles/{id}")`, toasts on success, and `navigator.push(Route::KBHome)` so the now-404 article id doesn't trap the user on a missing page. State signals follow the same pattern KB category delete uses (MAPPS-230): `confirming_delete` drives open, `delete_busy` locks the dialog while in flight, `delete_error` surfaces a failed DELETE inline in the dialog message. Out of scope (filed separately as MAPPS-313 if needed): - Trash icon on Recent Articles rows in KBHomePage. - Delete button on KBArticleEditPage (the detail page is the canonical surface; editor stays read-write only). #MAPPS-309