-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Allow disabling alerts #8550
Allow disabling alerts #8550
Conversation
26940cb
to
986eb48
Compare
ui/app/components/app/alerts/unconnected-account-alert/unconnected-account-alert.js
Show resolved
Hide resolved
f4883a1
to
66fdb00
Compare
Builds ready [66fdb00]
Page Load Metrics (652 ± 39 ms)
|
66fdb00
to
8a9c8f9
Compare
Builds ready [8a9c8f9]
Page Load Metrics (709 ± 43 ms)
|
Builds ready [5c4df55]
Page Load Metrics (666 ± 18 ms)
|
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.
LGTM! (One small non-blocking suggestion.)
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.
This looks good. Small copy suggestion on the tooltip > This can be changed in "Settings > Alerts"
The unconnected account alert can now be disabled. A "don't show this again" checkbox has been added to the alert, which prevents that alert from being shown in the future. An alert settings page has been added to the settings as well. This page allows the user to disable or enable any alert.
The string `unconnectedAccount` is now stored as a constant. This was done to make it more clear that this string had to match exactly in each of these places.
740a4f4
to
e9bb114
Compare
@rachelcope Thanks, that does look better. It has been updated here: e9bb114 |
Builds ready [e9bb114]
Page Load Metrics (668 ± 18 ms)
|
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.
LGTM!
Builds ready [82fec4f]
Page Load Metrics (670 ± 21 ms)
|
When disabling an alert, the background `alertEnabledness` state of the alert was being set to `undefined` instead of `false`. This didn't have any user-facing effect, since `undefined` is falsey, but it did result in a PropType error on the Alert settings page. This mistake was made in #8550. The `alertEnabledness` state is now correctly set to `false` instead of `undefined`.
When disabling an alert, the background `alertEnabledness` state of the alert was being set to `undefined` instead of `false`. This didn't have any user-facing effect, since `undefined` is falsey, but it did result in a PropType error on the Alert settings page. This mistake was made in #8550. The `alertEnabledness` state is now correctly set to `false` instead of `undefined`.
The unconnected account alert can now be disabled. A "don't show this again" checkbox has been added to the alert, which prevents that alert from being shown in the future.
An alert settings page has been added to the settings as well. This page allows the user to disable or enable any alert.