Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persist Error Snackbars #4392

Merged
merged 4 commits into from
Nov 19, 2024
Merged

Persist Error Snackbars #4392

merged 4 commits into from
Nov 19, 2024

Conversation

adrians5j
Copy link
Member

@adrians5j adrians5j commented Nov 15, 2024

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.

@adrians5j adrians5j changed the base branch from next to dev November 15, 2024 12:26
@webiny-bot webiny-bot added this to the 5.41.2 milestone Nov 15, 2024
@adrians5j adrians5j requested a review from Pavel910 November 15, 2024 12:50
@adrians5j adrians5j marked this pull request as ready for review November 15, 2024 13:18
@adrians5j adrians5j merged commit bd038c0 into dev Nov 19, 2024
16 checks passed
@adrians5j adrians5j deleted the adrian/error-snackbars branch January 7, 2025 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants