feat(projects): disable Add Task on cancelled project with messaging #254
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/mapps-245-disable-add-task-cancelled"
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?
Gate the project detail page's Add Task control on the loaded project's status. When the project is cancelled, the Add Task button is disabled (with a native tooltip explaining why) and a plainly worded gray banner at the top of the Overview card states that the project is cancelled and adding tasks is disabled. The onclick is also guarded so the modal cannot open even if the disabled attribute is bypassed.
View Tasks, Edit (including un-cancelling via the status select), and Delete remain enabled. The existing Add Task POST error path already surfaces the backend b2 409 message in the modal's error area, so a guard-bypass still renders a readable message rather than failing silently.
#MAPPS-245
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com