OpenSearch-Dashboards icon indicating copy to clipboard operation
OpenSearch-Dashboards copied to clipboard

[MD] Optimize delete button on listing page

Open noCharger opened this issue 2 years ago • 1 comments

User Story - Delete multiple credentials from credentials view page:

A user clicked "Credentials" button under stack management, looking through all credentials listed. Then Andrew decided to delete some of credentials by selecting them:

* CredentialName1
* CredentialName2
* CredentialName3

A window pops up with all selected credentials with such context:

Delete *2 credentials* permanently? 
This will also delete all their crypto info and any attached credentials profiles.

* CredentialName1
* CredentialName3

This action cannot be undone.

To confirm deletion, enter delete in the text input field.

Following confirmation of deletion, the OSD server received delete multiple credentials request and deleted credential saved objects. Meanwhile, a spinning effect is visible. Following the response, there is an error handling toast that includes which credential could not be deleted.

  1. Delete method with non-blocking IO - @yibow98
  2. Delete button layout and text cases (Singular VS Plural) - @yibow98
  3. Confirmation pops up after delete button clicking - @yibow98
  4. Localization for delete button pops up (part of #2047) - @yibow98
  5. Spinning in progress page - @yibow98

noCharger avatar Aug 02 '22 21:08 noCharger

Please make changes based on comments left on https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2076

noCharger avatar Aug 05 '22 21:08 noCharger