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 confirmation prompt when trying to delete user #4876

Closed
leonklingele opened this issue May 15, 2017 · 21 comments
Closed

Add confirmation prompt when trying to delete user #4876

leonklingele opened this issue May 15, 2017 · 21 comments

Comments

@leonklingele
Copy link
Member

When deleting a user via the user settings there is no confirmation prompt.
Instead, the user is deleted and a "revert" button is shown for a few seconds.

Why the current behaviour is flawed: Imagine losing Internet connectivity right after accidentally clicking the delete button: The user gets nuked 👎

@MorrisJobke
Copy link
Member

cc @nextcloud/designers

@MorrisJobke
Copy link
Member

Why the current behaviour is flawed: Imagine losing Internet connectivity right after accidentally clicking the delete button: The user gets nuked 👎

Not really. We only send the "Deleted request" after some seconds. So if you loose internet connection the user will not be deleted.

@leonklingele
Copy link
Member Author

I can think of thousand other scenarios where this implementation will cause accidental user deletion. This 'revert' bubble is simply too small.
Dangerous actions like user deletion should only be done after an explicit confirmation, e.g. by typing in the user name.

Let's see what others have to say.

@leonklingele leonklingele reopened this May 15, 2017
@MariusBluem
Copy link
Member

I agree with @leonklingele

@ickennio
Copy link

@leonklingele @MariusBluem
Would be great to have a confirmation.
Best would be with password.
Also a checkbox would be great if you want delete more users in one task.

@MorrisJobke
Copy link
Member

cc @jancborchardt

@stefan-niedermann
Copy link
Member

i like the approach to type in the username. e.g
github does the same on massive-destructable actions like deleting a repository.

@MariusBluem
Copy link
Member

@stefan-niedermann Nice idea. But this may break the user experience ... think about deleting multiple users - with UIDs as username ... copy n' paste?

@ickennio
Copy link

Checkbox for multiple users
Captcha Code showing if you want delete the users
Emergency restore for users (30days) trash cache @MariusBluem @stefan-niedermann

@MorrisJobke
Copy link
Member

Emergency restore for users (30days) trash cache @MariusBluem @stefan-niedermann

If we could restore users for 30 days there would be no need for a modal dialog. ;)

@stefan-niedermann
Copy link
Member

deleting multiple useres does not happen this much imho. we could display a string literal message e.g. (confirm by typing delete all) - depending on the language of course. this is better than a captcha since you are interrupted from the workflow to think about it twice and the topic stays the same (deletion, not a non-related math work or random characters).

@nextcloud-bot nextcloud-bot added the stale Ticket or PR with no recent activity label Jun 20, 2018
@maxhq
Copy link

maxhq commented Oct 12, 2018

With Nextcloud 14 the problem is even more severe: there is no "Undo" popup anymore.
Deleting the user also deletes all the data, shared files etc. It is a huge amount of work to restore it all...

@nextcloud-bot nextcloud-bot removed the stale Ticket or PR with no recent activity label Oct 12, 2018
@MorrisJobke
Copy link
Member

With Nextcloud 14 the problem is even more severe: there is no "Undo" popup anymore.
Deleting the user also deletes all the data, shared files etc. It is a huge amount of work to restore it all...

cc @skjnldsv

@skjnldsv
Copy link
Member

skjnldsv commented Oct 16, 2018

Yes, because everything is behind a three dote menu, that means you cannot click accidentally to delete a user. BUT I agree that such hard action should probably have another feedback. The previous undo button was just a delay and was breaking/broken since it was slowing down the page and preventing the removal and undo of multiple users.
Two options here:

  1. undo (delay)
  2. prompt

Since we already have a two-step-action for deletion, I'll suggest we go for a countdown before sending the request and disable the whole line. What do you think @jancborchardt ?

@jancborchardt
Copy link
Member

Since we already have a two-step-action for deletion, I'll suggest we go for a countdown before sending the request and disable the whole line.

I don’t really know what that means. Is it showing people an "Undo" action for ~7 seconds? If so then yes let’s do it. 👍

you cannot click accidentally to delete a user

Everything happens. ;)

@skjnldsv
Copy link
Member

@jancborchardt we did this before, it was a terrible behaviour (the way it is implemented, the concept itself is very nice!) We used the notifications before and it was not really great!

@jancborchardt what kind of UX do you expect for that?
Change the delete entry on the popover to a cancel one? Add a countdown somewhere? :)

@jancborchardt
Copy link
Member

Another way we could do it is similar to how Github handles destructive actions like repository deletion: Show a blocking modal, where you are prompted to put in the name of the repository to confirm. We could do the same, but with putting in the username.

The questions is if this is ok for people when they need to delete a lot of users. But for that we should probably have multiselect anyway, and then we can have the same kind of modal dialog, except putting in the individual names you have to type "Delete the selected users" to confirm.

@skjnldsv
Copy link
Member

Yeah, probably a bit too hard? We already have a hidden button in a popover, so clicking on the delete one is already pretty bad luck :)

@jancborchardt
Copy link
Member

We already have a hidden button in a popover, so clicking on the delete one is already pretty bad luck :)

This stuff happens all the time. There should always be error prevention. And especially for the future we never know which kind of other actions are in this menu.

@tehZevo
Copy link

tehZevo commented Nov 11, 2019

I tend to test "delete user" buttons on new software I try out. I was very concerned when NC (17) didn't offer a confirmation dialog or "undelete" option. I'm going to avoid that 3-dot menu like the plague until this is resolved :(.

@juliushaertl
Copy link
Member

Fixed by #17785 for Nextcloud 18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests