Clean-up presentation of "pending deletion" tab on the project list page

Following the proposals in https://gitlab.com/gitlab-org/gitlab/-/issues/381261, #396771 (closed), and #396772 (closed) - we're going to align the experience for restoring a deleted project or group on the list and Admin pages.

To do so, we'll need to align the presentation of the content in the current pending deletion tab on the project list page so that it is consistent with the presentation of the content on those similar pages. This will require the following changes:

This means:

  • Moving the "restore" button to the final column in the table (where the "updated" timestamp is)
  • Making the Restore link a normal tertiary button

image

This will look as follows:

Possible_updates

Note: the pending deletion badge is being updated as part of !145277 (merged). In this MR, the badge is changing from medium to small, and pending deletion text is being updated to Pending deletion, as shown in the image.

Implementation plan

  1. Move ee/app/views/shared/projects/_removed.html.haml#L10-14 into a ee/app/views/shared/projects/_actions.html.haml partial
  2. Use render_if_exists to render ee/app/views/shared/projects/_actions.html.haml in the correct location in app/views/shared/projects/_project.html.haml
Edited Feb 29, 2024 by Amelia Bauerly
Assignee Loading
Time tracking Loading