# Feature DREAM-490 - Replace work package delete modal with a danger dialog

Project: Stream Design System
Status: closed
URL: https://community.openproject.org/work_packages/DREAM-490

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 17.4.0 |
| Sprint |  |
| Backlog bucket |  |
| Votes |  |
| List | a11y report 2026 |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

| ID | Type | Subject | Status | Assignee | Target versions | Spent time | Module |
| --- | --- | --- | --- | --- | --- | --- | --- |
| OP-19231 | Bug | WP delete work package danger dialog does not list sub-projects | closed |  | 17.4.0 |  | Modules and project features / Work packages, Frontend components and Primer design system |

## Technical Details

| Attribute | Value |
| --- | --- |
| Module | Frontend components and Primer design system, Modules and project features / Work packages |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Oliver Günther |
| Designer | Parimal Satyal |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

**As** a user with permission to remove WPs  
**I want to** see a primerized danger dialog instead of spot modal  
Like PDF generating dialog

**What is the expected behavior?**

  - We should use the Primer DangerWarning component, with the list of work packages in an [insetBox](https://qa.openproject-edge.com/lookbook/pages/components/inset_box).

  - DangerWarning Dialog:
    
      - Title: "Permanently delete these work packages?"
    
      - Text for bulk: "The following work packages, including children and all associated data, will permanently be deleted:"
    
      - Text for single: "Are you sure you want to delete the work package "Task <mention class="mention" data-id="1324" data-type="work_package" data-text="#1324">#1324</mention>: foobar"?"

  - Body: List of work packages in an [insetBox](https://qa.openproject-edge.com/lookbook/pages/components/inset_box); use [Work Package Info Line](https://qa.openproject-edge.com/lookbook/pages/components/work_package_info_line) for listing work packages, but without the status

  - When multiple projects are involved, show a banner at the top of the work packages list
    
      - Show project name in work package list for projects that are not in the current project

  - Buttons:
    
      - Cancel
    
      - Delete permanently (danger)

<img class="image_resized op-uc-image op-uc-image_inline" style="width:754px;" src="/api/v3/attachments/784078/content">
