techmatters / terraso-product

Non-engineering tasks or tasks that have significance across repos in Terraso.
0 stars 0 forks source link

Design error notification #1064

Closed DerekCaelin closed 1 month ago

DerekCaelin commented 1 month ago

Design a temporary notification for the user when an error occurs, eg:

Carissa recommends a "toast" which appears to be like a web based "snack bar"

Figma design

CourtneyLee333 commented 1 month ago

I've combined this with https://github.com/techmatters/terraso-product/issues/1021

DerekCaelin commented 1 month ago

We're bringing it back!

CourtneyLee333 commented 1 month ago

@DerekCaelin @knipec I'm wondering what the scope of this task is. Are you just wanting the component to use? Are you looking for a generic message that can be used in all instances of error? Do you want me to create specific messaging for every kind of error that might happen?

DerekCaelin commented 1 month ago

@CourtneyLee333 the specific goal is to decide how to notify to the user if there is an error in syncing (such as site no longer exists, or site has been moved and user doesn't have permissions). @knipec recommends a "toast" notification.

We could expand the scope a little to think about unexpected error messages in general. The toast could be a way to expose to the user that something has gone wrong.

knipec commented 1 month ago

@DerekCaelin @CourtneyLee333 The scope I’m imagining for this task is:

Non-goal: There is other error handling that it would be nice to do, but I’m imagining that as out of scope for this task, and instead part of the unplanned #902

Let me know if that sounds right to you! (Side note: I have been using "toast" and "snackbar" interchangeably but I can standardize on "snackbar" 😄)