feature: client disable/deletion #67
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Deleting clients should require extra explicit confirmation and the default should be to disable a client profile/login instead. Disabled clients should still show up in reporting outside of the churn risk but should be hidden from the client list by default, exposable in a convenient way by staff.
CTO Triage
Good feature request. Here's the technical approach:
Schema changes (
packages/db):statuscolumn toclientstable:enum('active', 'disabled')defaulting to'active'disabledAttimestamp (nullable)API changes (
apps/api):PATCH /api/clients/:id— acceptstatus: 'disabled' | 'active'to toggleGET /api/clients— default filter tostatus = 'active', accept?includeDisabled=truequery paramDELETE /api/clients/:idwith a confirmation body paramFrontend changes (
apps/web):Priority: medium — no blocking dependencies, can be picked up when bandwidth allows.
PR opened: #69
Implementation follows the triage plan:
client_statusenum (active/disabled) +disabled_attimestamp added to clients table?includeDisabled=true