Improve modal copy when deleting either the last or package files

Problem

When the user deletes all package files from a package, the modal copy is not very clear: Screen_Shot_2022-07-27_at_13.23.01

It may not be obvious to the user that deleting all files would delete the package.

Solution

Update the body copy of the modal

When the user deletes all files via a bulk delete action When the user deletes the last file via individual delete action
Deleting the last package asset will remove version 0.0.0 of package name Deleting all package assets will remove version 0.0.0 of package name

Update confirmation button of modal

Screen_Shot_2022-07-27_at_13.26.26

Before After
Delete Permanently delete

Implementation guide

Edited by Rahul Chanila