News for hackers. Stuff that matters.
Re:Toasts Are Bad UX by CRConrad on Tuesday August 20, 2024 @11:44AM (#41301081)
> Toasts also give you a good place to put other shortcuts like “Item updated. [View item]” that make it much easier to act on state changes

Not if they go away, and take their “[View item]” button with them, before you've had time to read the notification, decide if you want to click the button, and actually get your cursor there to click it.

Which they usually do. So nyaaah, dubious benefit.

Re:Toasts Are Bad UX by lolinder on Tuesday August 20, 2024 @11:45AM (#41301090)
So there are badly implemented toasts that have bad UX. That's not the same thing as the whole concept being bad.
Re:Toasts Are Bad UX by exmadscientist on Tuesday August 20, 2024 @01:51PM (#41302243)
If something is so hard to implement that everyone who tries gets it wrong (to a first approximation), then maybe the concept is bad. Or, at least, the concept isn't fully baked and is missing something critical.
Re:Toasts Are Bad UX by lolinder on Tuesday August 20, 2024 @01:57PM (#41302312)
Most implementations of toasts-with-actions that I've seen don't have the problem OP described. I more often find myself manually dismissing them than wishing they'd have stuck around longer.
Re:Toasts Are Bad UX by TRiG_Ireland on Wednesday August 21, 2024 @11:58AM (#41311486)
So because you are a fast reader and have a fast reaction time with your mouse, toasts are good for everyone? No.
Re:Toasts Are Bad UX by michaelmrose on Tuesday August 20, 2024 @12:10PM (#41301315)
Should complex websites have a notification center where you can look at prior notifications? Would this be alike enough to existing desktop metaphors to be easily recognizable or simply confusing.

Maybe your browser should could have an icon for same instead making it more standardized across different sites.

Re:Toasts Are Bad UX by hunter2_ on Tuesday August 20, 2024 @12:43PM (#41301617)
> Browsers that support JavaScript typically implement the Notification API. This API asks for user confirmation to allow popups and give the programmer the opportunity to display notifications with a text (body) along with an descriptive icon and header.

https://en.wikipedia.org/wiki/Pop-up_notification#JavaScript

Re:Toasts Are Bad UX by michaelmrose on Tuesday August 20, 2024 @01:51PM (#41302245)
I only allow notifications from a tiny number of sites. The ability to notify me while on the page is different from notifying me while the tab is in the background and more so yet than the ability to bug me whenever.

Ask for everything get nothing. I imagine most people click no

Re:Toasts Are Bad UX by TeMPOraL on Tuesday August 20, 2024 @12:55PM (#41301708)
Of course, this is just abused by sites to spew their garbage outside the confines of their own pages, which makes the API effectively dead.
Re:Toasts Are Bad UX by xp84 on Tuesday August 20, 2024 @09:48PM (#41306012)
Indeed. I would rather all browsers just disable it by default with not even the popup asking if I want it. If I install a webapp as a PWA then maybe ask me. Otherwise? Website operators are on crack if they think I want them to be able to spam my desktop multiple times a day even months or years after I visited them!
Re:Toasts Are Bad UX by Maxion on Wednesday August 21, 2024 @05:23AM (#41308398)
Yep, if this feature was limited to the window in focus, then the API could make sense. The way it is now, I know all savvy users will just block it, and many of the non savvy ones will too... Complete waste of time to dedicate developer resources too over e.g. in-line toasts.
Re:Toasts Are Bad UX by TRiG_Ireland on Wednesday August 21, 2024 @11:59AM (#41311497)
Sometimes (as in a chat app) I want the window to notify me when anything changes, so I don't have to sit and look at it.
Re:Toasts Are Bad UX by xp84 on Tuesday August 27, 2024 @01:28AM (#41364789)
Sure! Unfortunately I am not sure I’ve ever seen the api used for anything other than what I’d call spam. To the point where as soon as I’m prompted I’m finding that “block” button before even speculating what it’s supposedly for.
Re:Toasts Are Bad UX by TeMPOraL on Tuesday August 20, 2024 @01:21PM (#41301979)
I'd go for an action log. It's almost the same thing, but notifications imply ephemeral pokes about some of the stuff that happened, mixed with engagement boosting spam - there's a lot of unpredictability embedded in this concept, as the app is usually trying to guess what you may (or it thinks you should) find relevant.

An action/activity log is just a reverse-chonological log of things that happened. You could make one by recording every would-be toast and putting it on that list, complete with a timestamp, and any of the context-relevant action buttons (like "undo", or "view item", etc.). The list should be a fixed recording[0], without any way to dismiss some or all of the entries. Add some attention-grabbing indicator whenever something is added there, and you get all the benefits of toasts with none of the drawbacks: the log lets you report completion of optimistically-executed actions, provide place for context-relevant buttons, and also is accessible, can be browsed at uses' own time, improves discoverability and learning, and can be upgraded to also enable undo feature.

--

[0] - Well, appended from top, and possibly unwinded by undo. Users understand that. Can't be append-only, because mixing that with undo gives you the undo system from Emacs - very powerful but also nearly incomprehensible to most people.

Re:Toasts Are Bad UX by michaelmrose on Tuesday August 20, 2024 @02:44PM (#41302751)
This sounds like something the browsers could standardize.
Re:Toasts Are Bad UX by xp84 on Tuesday August 20, 2024 @09:44PM (#41305981)
I love this idea! And also I like how it implies dispensing with the wrong notion that I care about every so-called notification and thus that I have “unread” notifs.
Re:Toasts Are Bad UX by hnbad on Wednesday August 21, 2024 @04:57AM (#41308264)
I think the best UX for async actions with optimistic UI updates would be having an (attention-grabbing?) indicator when an action is added and then another when it completes as well as indicating the number of pending (i.e. unconfirmed) actions and a persistent indicator if any of the actions failed.