fix(projects): add delete affordance to project tasks #242

Merged
David merged 2 commits from fix/MAPPS-237-task-delete-affordance into main 2026-06-17 12:27:06 +02:00
Owner

The shared TaskEditModal could create and edit project tasks but never
delete them, and neither task list (ProjectDetailPage, ProjectTasksPage)
exposed a delete control, even though projects/assets/appointments
elsewhere offer Delete. Add a Danger "Delete" button to the modal footer
that opens the styled ConfirmDialog and fires DELETE /tasks/{id} on
confirm, then reports back through a new ondeleted handler so both
callers clear the selection and refresh their task list. Both list pages
reach this single shared modal on row click, so the affordance is now
available everywhere a task is opened.

#MAPPS-237

The shared TaskEditModal could create and edit project tasks but never delete them, and neither task list (ProjectDetailPage, ProjectTasksPage) exposed a delete control, even though projects/assets/appointments elsewhere offer Delete. Add a Danger "Delete" button to the modal footer that opens the styled ConfirmDialog and fires DELETE /tasks/{id} on confirm, then reports back through a new ondeleted handler so both callers clear the selection and refresh their task list. Both list pages reach this single shared modal on row click, so the affordance is now available everywhere a task is opened. #MAPPS-237
fix(projects): add delete affordance to project tasks
All checks were successful
Check / clippy + fmt + tests (pull_request) Successful in 1m42s
8512732e17
The shared TaskEditModal could create and edit project tasks but never
delete them, and neither task list (ProjectDetailPage, ProjectTasksPage)
exposed a delete control, even though projects/assets/appointments
elsewhere offer Delete. Add a Danger "Delete" button to the modal footer
that opens the styled ConfirmDialog and fires DELETE /tasks/{id} on
confirm, then reports back through a new ondeleted handler so both
callers clear the selection and refresh their task list. Both list pages
reach this single shared modal on row click, so the affordance is now
available everywhere a task is opened.

#MAPPS-237
Merge branch 'main' into fix/MAPPS-237-task-delete-affordance
All checks were successful
Create release / Create release from merged PR (pull_request) Has been skipped
Check / clippy + fmt + tests (pull_request) Successful in 2m27s
8c98bac1c5
David merged commit aef1ad4faf into main 2026-06-17 12:27:06 +02:00
David deleted branch fix/MAPPS-237-task-delete-affordance 2026-06-17 12:27:06 +02:00
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!242
No description provided.