[Feature] Add "undo" option after resolving duplicates (Gmail-style pattern) #30470
MontejoJorge
started this conversation in
Feature Request
Replies: 1 comment
|
I've accidentally stacked photos instead of deleting one of them. No idea how to even find that stack now :) at least some confirmation message that would disappear on timeout would solve the problem. Something like "the image was deleted" or "the images were stacked" with links to affected assets. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have searched the existing feature requests, both open and closed, to make sure this is not a duplicate request.
The feature
Currently, there's no straightforward way to revert an action after resolving duplicates. Although items go to the trash, restoring them from there isn't enough, since the resolve process triggers other actions besides the deletion itself, so simply recovering the item doesn't put things back the way they were. Also, not every user has the trash feature enabled, so that path doesn't cover all cases.
Proposal:
Since implementing a real undo is complex due to the side effects generated by the resolve process, I'd propose applying a pattern similar to the one Gmail uses when sending emails:
When the resolve action is confirmed, the endpoint isn't called immediately.
We wait a few seconds before executing the actual action, showing the undo option during that window.
If the user tries to close the window/tab within that period, we show an alert or force the request to be sent before closing, to avoid inconsistent states.
Note: I'd like to take on the implementation myself, if that's alright.
Platform
All reactions