-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[#6346, #6477, #6421] Platform: Implemented toaster component for visual feedback #7078
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
Conversation
Please add your comments. |
This pull request introduces 4 alerts when merging a6b69c1 into 3ce9d33 - view on LGTM.com new alerts:
|
managed/ui/src/components/config/Security/KeyManagementConfiguration.js
Outdated
Show resolved
Hide resolved
managed/ui/src/components/config/Security/KeyManagementConfiguration.js
Outdated
Show resolved
Hide resolved
managed/ui/src/components/config/Security/KeyManagementConfiguration.js
Outdated
Show resolved
Hide resolved
managed/ui/src/components/config/Security/KeyManagementConfiguration.js
Outdated
Show resolved
Hide resolved
managed/ui/src/components/config/Security/KeyManagementConfigurationContainer.js
Outdated
Show resolved
Hide resolved
managed/ui/src/components/config/Security/KeyManagementConfigurationContainer.js
Outdated
Show resolved
Hide resolved
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.
Please address all the comments.
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.
- why would you need redux integration for toasts? to me it seems totally unnecessary
- is there a reason for implementing your own toasts solution? I'd strongly suggest reusing some available solution like react-toastify for example
Sure @sshev I will use react-toastify for this, I thought it wasn't acceptable to use any other library for this. |
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.
Check my comments pls. Also, we are using a prettier
tool to automatically format code as per unified code style, so I'd suggest running prettier --write src/**/*
before submitting PR for review.
managed/ui/src/components/config/PublicCloud/ProviderConfiguration.js
Outdated
Show resolved
Hide resolved
managed/ui/src/components/config/PublicCloud/ProviderConfigurationContainer.js
Outdated
Show resolved
Hide resolved
managed/ui/src/components/config/Security/KeyManagementConfigurationContainer.js
Outdated
Show resolved
Hide resolved
managed/ui/src/components/config/Security/KeyManagementConfigurationContainer.js
Outdated
Show resolved
Hide resolved
managed/ui/src/components/config/Security/KeyManagementConfigurationContainer.js
Outdated
Show resolved
Hide resolved
managed/ui/src/components/config/Security/KeyManagementConfigurationContainer.js
Outdated
Show resolved
Hide resolved
managed/ui/src/components/universes/UniverseForm/ClusterFields.js
Outdated
Show resolved
Hide resolved
managed/ui/src/components/config/OnPrem/wizard/OnPremRegionsAndZones.js
Outdated
Show resolved
Hide resolved
managed/ui/src/components/config/PublicCloud/ProviderConfiguration.js
Outdated
Show resolved
Hide resolved
managed/ui/src/components/config/Security/KeyManagementConfiguration.js
Outdated
Show resolved
Hide resolved
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.
👍
@gaurav061 I am seeing an error popup show up in the UI when creating a KMS config even though the creation succeeds. The error seems to be JS related. It is something like: |
@daniel-yb Yes, I reproduced the same it seems that while calling the API to setKMSConfig there is a response dispatcher once the API is successful that is not thenable thus this error is coming, I will fix this as a part of the follow-up ticket. Thanks for pointing it out. |
…oaster component for visual feedback (yugabyte#7078) Description: Added toaster for having visual feedback for user action. cases covered: 1. When the user adds/delete the KMS configuration. 2. When duplicate region code is added for on-prem Provider. 3. Api error response in case of edit universe. Test scenario: - Adding duplicate region code for the on-prem provider notifies the user of an appropriate toaster. - Adding/Deleting the KMS have visual feedback to the users. - Any error encountered during edit universe have visual feedback
Description: Added toaster for having visual feedback for user action.
example: