feat(projects): disable Add Task on cancelled project with messaging #254

Merged
vas2000-work merged 1 commit from feat/mapps-245-disable-add-task-cancelled into main 2026-06-17 23:01:39 +02:00
Owner

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

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>
feat(projects): disable Add Task on cancelled project with messaging
All checks were successful
Check / clippy + fmt + tests (pull_request) Successful in 2m3s
Create release / Create release from merged PR (pull_request) Has been skipped
8fbcc4e39c
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>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/mokosh-apps!254
No description provided.