Skip to content

Improve display of error messages #13423

@juliusknorr

Description

@juliusknorr

We still have quite a lot of error messages, that are using the javascript OC.Notification methods to notify the user about a failure.

image

The ideal solution would be to move the error messages to the actual element where the error happened, so that we have a nice inline feedback. Unfortunately we currently have around 370 usages of the OC.Notification method (including in the apps in my dev environment), so migrating all is not something that will be done quickly.

Therefore I would propose to make the notifications a bit more prominent (and move them out of the header). We could use toast notifications in the lower right. Yes, those are probably blocking the UI for the user, but in general we use those messages if something bad happened, like a request didn't run successfully. In that case it is fine imo to notify the user a bit more prominent. The current notifications can be pretty easily overlooked.

This is what toast notifications might look like, of course we need to adjust them to fit nicely into our design:
image

What do you think @nextcloud/designers

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions