Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional confirmation UI before destructive actions #3006

Merged
merged 6 commits into from
Apr 26, 2023

Conversation

tillprochaska
Copy link
Contributor

@tillprochaska tillprochaska commented Apr 24, 2023

Recently, we had to handle multiple support cases of users deleting collections and entity sets by accident. In some cases, this was because users thought they were only deleting an entity within the investigation or entity set. Even though we do show a confirmation dialog before destructive actions, users often do not read the actual dialog message.

In order to prevent users from deleting data by accident, this PR adds an additional confirmation UI before deleting collections or entity sets and asks users to confirm the title of the collection/investigation.

The following video shows the flow to delete a collection:

Screen.Recording.2023-04-24.at.19.08.19.mov

The flows for deleting entity sets (diagrams, lists, timelines, profiles) use a similar UI:

Screen Shot 2023-04-24 at 19 16 45


To do:

  • Extract common UI into DeleteDialog component to reduce redundancy
  • Adjust steps to delete investigation in e2e tests

Closes #2334

@tillprochaska tillprochaska changed the base branch from main to develop April 24, 2023 13:05
@tillprochaska tillprochaska changed the title Features/2334 confirm destructive actions Add additional confirmation UI before destructive actions Apr 24, 2023
@tillprochaska tillprochaska marked this pull request as ready for review April 24, 2023 20:41
values={{ type }}
/>
)}
</>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick. To me it would be better to create a set of values and then make only one element.

@Rosencrantz Rosencrantz merged commit e8e0840 into develop Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FEATURE: Confirmation before destructive actions
2 participants