News for hackers. Stuff that matters.
Re:Toasts Are Bad UX by JamesSwift on Tuesday August 20, 2024 @10:22AM (#41300337)
I mentioned this in another comment, but the whole reason the archive is able to be optimistic is partially because they offer the undo via toast. Otherwise its likely they would add an 'are you sure' plus a loading-state when doing these "semi-destructive" actions.
Re:Toasts Are Bad UX by ryandrake on Tuesday August 20, 2024 @11:22AM (#41300887)
You can offer Undo via things other than toasts, though. In fact, I wish more software offered Undo--the Undo feature has kind of gone out of fashion since the early 2000s. You should be able to Undo anything (and follow the Undo chain back through many past actions). We somehow lost this ability from software.
Re:Toasts Are Bad UX by JamesSwift on Tuesday August 20, 2024 @12:19PM (#41301402)
For sure you can, but a toast is a tool in the toolbox. When it makes sense to use it, it definitely justifies its existence as a tool to keep around.
Re:Toasts Are Bad UX by Maxion on Wednesday August 21, 2024 @05:26AM (#41308420)
Undo's (and especially re-do) are quite hard and resource intensive to code, especially for web apps that can be simultaneously accessed via multiple devices.

E.g. you can take action A on your laptop, followed by action B on your phone. Undoing action A may not be easily possible if it was followed by action B.

To make that work properly you need to activel sync states between all the users devices using e.g. websocket or what-have-you. Handling edge cases becomes quite the nightmare, e.g. phone has poor connectivity.

Only the big guys would have budget to do these sort of things (And make them work well).

Re:Toasts Are Bad UX by abirch on Tuesday August 20, 2024 @11:59AM (#41301220)
I've accidently archived something only to realize it when the toast pops up. I'm grateful for the toast instead of having the 'are you sure' like you mentioned. It's a nice compromise.
Re:Toasts Are Bad UX by seanmcdirmid on Tuesday August 20, 2024 @11:36PM (#41306549)
Undo via ephemeral toast seems like a bad idea also. I guess if the toast hanged around until the next toast it might make sense?
Re:Toasts Are Bad UX by JamesSwift on Wednesday August 21, 2024 @09:09AM (#41309921)
Theres an implicit assumption that the actions being offered an “undo” are semi-important/permanent.

In other words, if you delete an email and it goes to the trash folder: good use of toast + undo

If you empty the trash, and there is nowhere the user can go to unempty it: bad use of toast + undo

Its also useful as a sleight of hand eg when cancelling an action you havent yet taken (which actually is generally what a toast + undo actually is). The best example of this being toast + undo for an email send

Re:Toasts Are Bad UX by Grustaf on Wednesday August 21, 2024 @12:11PM (#41311607)
Putting an email in trash seems like exactly the kind of action that does _not_ need a toast, since it's easy and obvious to undo.