Skip to content

PM-4633: restore engagement delete actions#1584

Merged
jmgasper merged 3 commits intodevfrom
PM-4633
Apr 2, 2026
Merged

PM-4633: restore engagement delete actions#1584
jmgasper merged 3 commits intodevfrom
PM-4633

Conversation

@jmgasper
Copy link
Copy Markdown
Collaborator

@jmgasper jmgasper commented Apr 1, 2026

What was broken
The new Work app engagement list omitted the Delete action on both the global engagements page and the project-scoped engagements page, so admins could no longer delete engagements from the list.

Root cause
The migrated EngagementsListPage only rendered View and Edit actions even though the work app already had a delete service available and the legacy work-manager list exposed an admin-only delete flow.

What was changed
Added the missing admin-only Delete action to engagement rows, wired it to the existing deleteEngagement service through a confirmation modal, refreshed the list after a successful delete, and surfaced the assigned-members delete conflict message with the existing toast utilities. Also hardened the status-pill helper to safely handle empty status strings.

Any added/updated tests
Updated EngagementsListPage.spec.tsx to cover admin delete visibility, non-admin manager visibility, and the delete-confirmation success flow.


Open with Devin

What was broken
The new Work app engagement list omitted the Delete action on both the global engagements page and the project-scoped engagements page, so admins could no longer delete engagements from the list.

Root cause
The migrated EngagementsListPage only rendered View and Edit actions even though the work app already had a delete service available and the legacy work-manager list exposed an admin-only delete flow.

What was changed
Added the missing admin-only Delete action to engagement rows, wired it to the existing deleteEngagement service through a confirmation modal, refreshed the list after a successful delete, and surfaced the assigned-members delete conflict message with the existing toast utilities. Also hardened the status-pill helper to safely handle empty status strings.

Any added/updated tests
Updated EngagementsListPage.spec.tsx to cover admin delete visibility, non-admin manager visibility, and the delete-confirmation success flow.
@jmgasper jmgasper requested a review from kkartunov as a code owner April 1, 2026 15:56
devin-ai-integration[bot]

This comment was marked as resolved.

@jmgasper jmgasper merged commit 2a312b6 into dev Apr 2, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant