When you mark a task as “done” a toast pops up with a button “undo”. If you click “undo”, a second one pops up that lets you undo what you just undid. While funny, it’s a bit confusing as you might end up in an endless loop of undoing in an attempt to “just leave everything as it was before I opened this page”.
The responsible code:
- frontend/TaskDetailView.vue at 0eb78e32f994e7032725e38d564320a5a04cbf2a - frontend - Gitea
- frontend/singleTaskInList.vue at b4dd23b85d909f7e629e953f1d8543ccbf963a1c - frontend - Gitea
I suggest not showing the popup if a change is a result of undoing a change.
An alternative is to more clearly show that it’s not actually “undoing” but rather “redoing”. But I don’t think it’s useful enough. And it could be hard to achieve without keeping it confusing.
The issue about introducing the “undo” feature: #59