The current static banner notifications are used in many different capacities. They are used to notify of important upgrades, tasks that need to be performed, and when an action is a success or a failure. These messages persist and are not dismissable, taking up valuable real estate.
Proposal
Replace user-action based notification banners (success, error, etc.) with toast notifications. Users will have the ability to dismiss the notification before it fades. This dismissal should persist in the database so it is never shown again.
Links / references
Documentation blurb
Overview
Toasts are an unobtrusive window element intended to display brief, auto-expiring bits of information to the user.
Use cases
Temporary notifications, user-action feedback.
Feature checklist
Make sure these are completed before closing the issue,
with a link to the relevant commit.
Agreed, much nicer @sarrahvesselov. Maybe they should be on the right, below the top navigation, as opposed the left? So it doesn't block the navigation ever.
Anyways, I like our current static user-action based banners because they often contain actionable links. Wouldn't the smallest iteration be to just a dismissible x in the banner?
The toasts look great. But we'd need them to persist on the screen if we provide call to action links right? And is it typical UX to provide links in toasts?
Agreed, much nicer @sarrahvesselov. Maybe they should be on the right, below the top navigation, as opposed the left? So it doesn't block the navigation ever.
This was just a quick POC
We should definitely standardize location in an unobtrusive location.
I thought the banners discussed in gitlab-foss#35649 (moved) is referring to something like the marketing use cases:
No, that issue is referring to all the different types of banners we currently use. Toast notifications should only be used for temporary alerts (not for the example you provided). We currently use permanent banners for temporary alerts, an annoying user experience IMO. Here is just one example:
Wouldn't the smallest iteration be to just a dismissible x in the banner?
Sure, it certainly would be. In the end, I believe users should not be forced to dismiss temporary alerts (file uploaded, commit successful, etc.). That is why I suggested the addition of a toast notification system.
Sarrah Vesselovchanged title from Replace static notification banners with toast notification to For temporary alerts, replace static notification banners with toast notification
changed title from Replace static notification banners with toast notification to For temporary alerts, replace static notification banners with toast notification
I think it's okay to have one issue for this. We would just want to make sure that issue references each place where we want to use toast versus our existing notification system
@sarrahvesselov cool that you're talking this on. Regarding "Depending on the message being displayed, we can offer users the ability to dismiss the notification before it fades." I think we should always offer the option to dismiss it and we should persist the dismissal that in the database, not the cookie, so that it never shows again.
I think we should always offer the option to dismiss it and we should persist the dismissal that in the database, not the cookie, so that it never shows again.
I think you are right here @sytses. There is no reason not to allow a message to be dismissed. I will update the description.
https://dribbble.com/shots/2568870-Toast gives an example of an auto-receding banner.. which does kind of the same thing/is kind of similar (jus takes up the whole width.. which is perhaps not what is really needed
gives an example of an auto-receding banner.. which does kind of the same thing/is kind of similar (jus takes up the whole width.. which is perhaps not what is really needed
This one is interesting, there may be an opportunity to improve the static banners with this. For a toast, I don't think full width is the way to go.
a simple codepen example (no sliding animation, which I think would be nice):
On this one, do you prefer no animation? It was hard to tell from your comment.