Repository navigation
Undo deletion (of files, users, contacts etc) #3216
Description
Activity
- added1. to developAccepted and waiting to be taken care ofAccepted and waiting to be taken care ofdesignDesign, UI, UX, etc.Design, UI, UX, etc.
on Jan 23, 2017 What style of popup/modal/notification do we want for that?
I would say
showNotificationis fitting in this case. We used that before I think in the News app or somewhere else.@schiessle mentioned that this could be done by triggering the restore function of the »Deleted files« app. Might be good as a first working implementation. :)
What about a menu like the contact menu with a count indicator (like the notification icon) of how many items are still in the undo section?
On each item we could have a progressbar to display how many time left the user have before final deletion?@skjnldsv a counter is not really necessary and strangely obstructive. That’s also not how any other undo mechanism works which people are used to from Google or Apple apps. :)
Traditional tri-yearly postponing of this issue to the next milestone. 🎉
Reacted by John Molakvoæ and Roland HäderReacted by Christoph Wurst, John Molakvoæ and Roland Häder10 remaining items
You are running through open door here. :-) Mine was exactly the same with a specific idea for the database side.
if the client looses the connection to the server during these seven seconds, the object can't be finally deleted. Is this anyway a valid approach for generalization?
@korelstar Good point. What do you say @jancborchardt ?
Drawback of this approach: if the client looses the connection to the server during these seven seconds, the object can't be finally deleted. Is this anyway a valid approach for generalization? The advantage is that it's implementation is relatively easy (only frontend).
Wouldn't it be possible to have something like a cron job in the backend handle such requests of deletion? The frontend would then only communicate, that the file to be deleted will be gone in minimum 7 seconds and maximum $cron_repeat_time_for_delete_requests (or something).
Sorry I am just a hobbyist developer, no more coding expierience in PHP for many years..
I just lost all of my contacts in Nextcloud because Outlook decided that a deletion of its contact via the Google Contacts Android application deletes all linked contacts. I can't believe that I can see all of my contacts in the activity log, but that no recycle bin of sorts exists.
This is really necessary.
By the way, @jancborchardt, http://alistapart.com/article/neveruseawarning was exactly the reason that I accidentally did this.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fields🧭 Planning evaluation / ideas
- StatusShow more project fieldsEnhancements
(Since the relevant pull request was closed, opening this to track the feature: #1610 )
We should offer undo for destructive actions. This is a normal software pattern now (see Gmail, Android etc) and is very nice as opposed to modal windows. Also read Never Use a Warning When you Mean Undo
cc @nextcloud/javascript @ChristophWurst