Refactor project delete modal

What does this MR do and why?

Related to #573101

Refactors the project delete modal to simplify the set up. Previously we had multiple delete button components and the footer was being added with a slot. This MR moves the footer into the main modal component and consolidates the multiple delete button components into one.

Note: there is a bug with the stats that will be fixed in !211123

Screenshots or screen recordings

No visual changes

List view (Your work -> Projects)

Delayed deletion

Before After
Screenshot_2025-10-31_at_12.10.22_PM Screenshot_2025-10-31_at_11.59.35_AM

Immediate deletion

Before After
Screenshot_2025-10-31_at_12.10.41_PM Screenshot_2025-10-31_at_11.59.58_AM

Settings -> General -> Advanced

Delayed deletion

Before After
Screenshot_2025-10-31_at_12.11.02_PM Screenshot_2025-10-31_at_12.00.31_PM

Immediate deletion

Before After
Screenshot_2025-10-31_at_12.11.40_PM Screenshot_2025-10-31_at_12.00.52_PM

How to set up and validate locally

  1. Go to Your work -> Projects
  2. Delete a project
  3. It should show the date that the project can be restored until
  4. Go to a project -> Settings -> General -> Advanced
  5. Delete the project
  6. It should show the date that the project can be restored until

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Peter Hegman

Merge request reports

Loading