johannesjo / super-productivity

Super Productivity is an advanced todo list app with integrated Timeboxing and time tracking capabilities. It also comes with integrations for Jira, Gitlab, GitHub and Open Project.
http://super-productivity.com
MIT License
12.03k stars 932 forks source link

Feature: Add Confirmation Dialog for Deletion Operations to Prevent Accidental Task Removal #3561

Closed jiongxuan closed 1 month ago

jiongxuan commented 1 month ago

Problem Statement

Currently, when deleting a task—whether by pressing the Backspace key or performing a long press deletion—there is no secondary confirmation dialog. This lack of confirmation can lead to accidental deletions, which are irreversible.

:grey_question: Possible Solution

Implement a confirmation dialog for deletion and other potentially destructive operations. Ideally, when a user attempts to delete a task, a popup should appear asking for confirmation before the action is finalized.

Alternatively, allow the task to be deleted immediately but display a temporary notification (such as a snackbar) at the top of the screen that offers an option to undo the deletion.

:arrow_heading_up: Describe alternatives you've considered

:heavy_plus_sign: Additional context

If implementing the confirmation dialog is feasible, I am willing to allocate time to develop this feature once the solution is confirmed. I believe adding this safeguard will enhance the user experience by preventing accidental loss of tasks. Open to discussing other potential solutions that may better address this issue.

github-actions[bot] commented 1 month ago

Thank you very much for opening up this issue! I am currently a bit overwhelmed by the many requests that arrive each week, so please forgive me, if I fail to respond personally. I am still very likely to at least skim read your request and I'll probably try to fix all (real) bugs if possible and I will likely review every single PR being made (please, give me a heads up if you intent to do so) and I will try to work on popular requests (please upvote via thumbs up on the original issue) whenever possible, but trying to respond to every single issue over the last years has been kind of draining and I need to adjust my approach for this project to remain fun for me and to make any progress with actually coding new stuff. Thanks for your understanding!

johannesjo commented 1 month ago

Maybe we can make this configurable? Not sure. Personally I like the undo/snack approach that is currently implemented (that doesn't seem to be working for you???), but it is not working well for multiple deleted tasks, which we ideally should improve on.

Another option would be adding a trash can (that we only show if there are deleted tasks).

jiongxuan commented 1 month ago

@johannesjo You're right!

I took another look and found the undo option—it was hiding at the bottom because I’m in full-screen mode. My bad for missing that earlier. 🤦‍♂️

I appreciate you considering the trash can idea, but I agree keeping things simple with the undo feature is the way to go. I’m going to go ahead and close this issue.

Thanks again for your help!