webiny / webiny-js

Open-source serverless enterprise CMS. Includes a headless CMS, page builder, form builder, and file manager. Easy to customize and expand. Deploys to AWS.
https://www.webiny.com
Other
7.41k stars 613 forks source link

Persist Error Snackbars #4392

Closed adrians5j closed 1 week ago

adrians5j commented 2 weeks ago

Changes

With this PR, we've introduced the showErrorSnackbar function, which, as the name itself suggests, shows a snackbar that's more suitable for showing error messages. The main difference between this and the existing showSnackbar snackbar is that, here, the snackbar won't disappear automatically. It'll only disappear once a user clicks on the OK button.

Snipaste_2024-11-15_12-57-27

With this PR, this behaviour has been propagated across a couple of areas within the Headless CMS code. Other areas could use the same improvement probably, but that would be out of scope for this PR.

How Has This Been Tested?

Manually.

Documentation

Changelog.