-
Notifications
You must be signed in to change notification settings - Fork 420
RI-7254 Update the visuals of the toast notifications #4963
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
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
3b6445f
fix(fe): rework the infinite notifications
valkirilov 72e26b5
refactor(ui): update "app update available" notification
valkirilov ae2eec9
refactor(ui): add a way to customize the variant of the infinite noti…
valkirilov 8a7b9f6
fix(ui): update "successfully deployed pipeline" toast notification
valkirilov b7491d7
feat(ui): extend the infinite toasts to support custom icons
valkirilov 61797ad
fix(ui): update the visuals of the "authenticating" toast notification
valkirilov 83b1855
fix(ui): update the visuals of the "pending create database" toast no…
valkirilov db70b36
fix(ui): update the visuals of the "successfully create database" toa…
valkirilov 29b5a56
feat(ui): extend the infinite toasts to support custom onCLose callbacks
valkirilov 546b14d
fix(ui): update the visuals of the "database already exist" toast not…
valkirilov 632fa71
refactor(ui): change the way we control the close button in the infin…
valkirilov 3dfaf86
feat(ui): extend external links to provide a way to customize the var…
valkirilov 8ca9f1c
fix(ui): update the visuals of the "database import forbidden" toast …
valkirilov 9de0f8b
fix(ui): update the visuals of the "subscription exists" toast notifi…
valkirilov 90375d8
fix(ui): update the visuals of the "auto creating database" toast not…
valkirilov 6490b87
refactor(ui): cleanup leftovers from the old infinte notifications to…
valkirilov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redis UI depends on React Toastify, which supports out of the box a callback handler when you dismiss a notification. If we want to follow the Figma design, we should rely on the built-in "dismiss" button, instead of adding a custom action button with an icon, and this is the only way to preserve the telemetry collection on close.
Before
We used to render an action button, with "X" icon and attach callback handler to it.
Also, when having more than a single action, we can't order them, and we end up with the dismiss action left to the primary one, which I think looks wrong.
After
However, Redis UI provides a built-in way to show a dismiss button.
So, here it is, the same thing, but using the native dismiss button.
And also, when we need to pair it with an action button.