Nextcloud-notes: Confirm before deletion

Created on 23 Dec 2017  路  20Comments  路  Source: stefan-niedermann/nextcloud-notes

A user just called me and was very frustrated because she accentually swiped left and removed a note containing ALL here passwords. The strange thing is that it didn't end up in the trashbin so I couldn't even restore it. Luckily I had a backup and we could revert the note from there, but still, I think it's WAY to easy to delete a note, as you don't even get a confirmation.

So, I suggest that you should add a confirmation when removing a note. Something like a popup asking "Are you sure?" or similar.

Please add this, it's important that notes don't get accentually deleted. Thank you!

cc @stefan-niedermann

Discussion UX

Most helpful comment

Okay, i have a strong opinion here, but let's get some further input! :)

@nextcloud/designers Beside the problem, that the note did not land in the trashbin, as it definitely should have: Please Up-Vote for Undo, Down-Vote for confirm-dialog

All 20 comments

Hi,

The strange thing is that it didn't end up in the trashbin so I couldn't even restore it.

This is definitely a strange behavior. Can you reproduce this? A deleted note should be restoreable from trashbin.

I think, confirm-dialogs are a bad experience, since users are trained to click "ok"-buttons at each dialog. The app provides an Undo-Toast, why didn't the user use it? Didn't it work or was too little time to undo before the toast disappeared?

why didn't the user use it?

The user is over 60 years old, and didn't notice the undo-toast. It should be user friendly for all ages, not just young people and tech-savvy folks.

Sorry, I can't reproduce it.

Okay, i have a strong opinion here, but let's get some further input! :)

@nextcloud/designers Beside the problem, that the note did not land in the trashbin, as it definitely should have: Please Up-Vote for Undo, Down-Vote for confirm-dialog

@stefan-niedermann Both would be nice.

In this specific case the note contained all her passwords, and I got a call late at night with someone more or less screaming "where are my passwords??!?!?!" You can blame the end user, that's the easiest, but in this case we/you could actually do something about it. :)

@enoch85 Did you figured out, why the note wasn't in the trash bin? Is the nextcloud app "Deleted files" activated?

I still like the idea of integrating the server side trash bin into the Android app.

@korelstar I have no clue. The trashbin was the first place I checked, but nothing there.

Also, this was some time ago so I don't have any logs.

I think, confirm-dialogs are a bad experience, since users are trained to click "ok"-buttons at each dialog. The app provides an Undo-Toast, why didn't the user use it? Didn't it work or was too little time to undo before the toast disappeared?

Would a solution be to prompt the user to swipe to delete as @enoch85 suggests but make the dialog options "Delete" or "Cancel" and use a tick box to allow the user to suppress future warnings. Once this is ticked and the user swipes to delete a note they won't see a dialog, just the "Undo" toast. The tick box value could be stored in the settings should the user want to re-enable the dialog.

You can blame the end user

Hell, no! 馃槅 I wouldn't dare!

But the problem is, the app did not work as expected (note was not in trashbin), so this is definitely our fault.
So we have two topics here: confirm vs undo and why-was-the-note-not-in-the-trashbin. While the one is a opinion based choice, the other one is clearly a bug.

Sorry, I can't reproduce it.

And that's a pity, because we have no clue how we can fix this bug.

What leads us back to the first topic.

A prompt like @dan0xii suggested might be a compromise (though i still would prefer to not have confirm-dialogs at all in the app). What do you think @enoch85 ?

I think @dan0xii's solution is the best of two worlds. The end goal here is to not delete notes by accident, and for tech-savvy or younger people they could just tick the box. Older people and less tech-savvy would have to actually press delete, and also confirm to not show the warning again.

I'd say if we implement this and she calls me again, I'd blame her. ;)

What do you think @stefan-niedermann?

I also find the swipe-to-delete option somewhat dangerous :)

How about a swipe behaviour configuration in the settings? The user would have to choose what happens on swiping action, for instance: delete / do nothing / open in edit mode / etc.

No more confirm-dialogs, trashed or vanished notes.

There was a suggestion in another issue to use swipe-from-left-to-right for marking as favorite. That sounded pretty nice, maybe this could be an improvement since it reduces the risk to delete by 50%?

I don't remember which app that used it in the past (maybe ownCloud iOS) but when you swiped to the right an icon was shown (red trash can) and when you pressed it the file got deleted. That would be the best implementation I think.

Something like this:

swipe_listview_item

Another option to prevent accidental deletion (which I agree is an issue, and it has bitten me in the past) could be the option of "locking" specific notes to prevent deletion. On the edit screen, add a locked/unlocked icon that could be toggled like the favorite icon.

I implemented "swiping from left to right -> marks favorite" on this branch:
https://github.com/stefan-niedermann/nextcloud-notes/tree/310-swipe-left-favorite

Open question: swiping from left: background should be yellow, swiping from right: background should be red.

Anyone who is interested can checkout this branch and give feedback.

Marks as favorite? What about the deletion confirmation?

I have no idea how to test this since it's android.

huh? @enoch85 you even upvoted my comment :laughing: https://github.com/stefan-niedermann/nextcloud-notes/issues/310#issuecomment-370085361

@stefan-niedermann Yeah, beacuse I thought you would add that and deletion confirmation. But, let's see how this turns out. :)

That's not what i had in mind @enoch85 ;)

But in the next release the time before the undo-Toast disappears has been doubled to 7 seconds. Mabye that's a start, too. (a4b2a610cd603803833f8d17f708fcc7622475cf)

@stefan-niedermann The user in question was my mom which is 60+, so with that in mind maybe a undo confirmation wouldn't be s bad after all? ;)

  1. Even if it's 7 seconds it's still quite small.
  2. This app is not only for tech-savvy people or people that knows how "standard" logic works.

Sorry @enoch85 but there will definitely no confirmation before deletion. We can always think about other options to make the app less destructive (e. g. a direct trashbin integration is planned, to easily restore deleted notes from within the app itself), but i think confirmation dialogs are learned behavior in sense of "oh, a pop-up - quick! press OK!".

Was this page helpful?
0 / 5 - 0 ratings

Related issues

KopfKrieg picture KopfKrieg  路  6Comments

karlprieb picture karlprieb  路  7Comments

returntrip picture returntrip  路  4Comments

jancborchardt picture jancborchardt  路  4Comments

OpenWick picture OpenWick  路  4Comments