-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Alerting UI]Changed rules table to support visual indication for disabled and muted alerts #104190
[Alerting UI]Changed rules table to support visual indication for disabled and muted alerts #104190
Conversation
…abled or muted alerts
Pinging @elastic/kibana-alerting-services (Team:Alerting Services) |
⏳ Build in-progress, with failures
Failed CI StepsHistory
To update your PR or re-run it, just comment with: cc @YulNaumenko |
@elasticmachine merge upstream |
jenkins, test this (had to abort for Jenkins upgrade) |
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.
I left a couple of questions, but LGTM overall 👍 looking forward to these enhancements!
...actions_ui/public/application/sections/alerts_list/components/collapsed_item_actions_new.tsx
Outdated
Show resolved
Hide resolved
...ugins/triggers_actions_ui/public/application/sections/alerts_list/components/alerts_list.tsx
Outdated
Show resolved
Hide resolved
...ugins/triggers_actions_ui/public/application/sections/alerts_list/components/alerts_list.tsx
Outdated
Show resolved
Hide resolved
...gins/triggers_actions_ui/public/application/sections/alerts_list/components/alerts_list.scss
Outdated
Show resolved
Hide resolved
We should probably change the rule detail view for a disabled rule to use the empty panel page layout instead of a callout. I will mock this up. At the very least, the copy in the callout will need to be updated. We still refer to the 'Disabled' switch. And I would prefer to avoid the icon usage of the arrow to direct them. (Which is why the empty page layout will be better here). Is there a scenario where the user will reach this screen without the privileges to enable the rule? |
Yes, it would be when the user has readonly access to rules (done via feature privileges). |
…/alerts_list/components/alerts_list.scss Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>
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.
These updates look fantastic! The only thing I noticed was that when you click the trash can icon on the hover over, it doesn't trigger the delete action, it triggers the mute all action.
.../triggers_actions_ui/public/application/sections/alerts_list/components/alerts_list.test.tsx
Show resolved
Hide resolved
@elasticmachine merge upstream |
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.
The UI updates look good. There is still ongoing discussions/decisions around this table through the RAC project, so I will open another issue when we have more definitive direction and how to align these tables. But I think these updates achieve the goal of this PR.
One issue i'm noticing that I'm not sure is related to this PR or not is the delay in enabling/disabling a rule. (See gif). I'm wondering if we need to disable the toggle when loading the new state so the user doesn't go click happy like I'm doing here. Subsequently, kibana crashed after about 10-15x of flipping this on and off.
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.
Awesome! Such a great set of enhancements. LGTM
I noticed one thing when playing with it. The new "inline edit" ends up leaving the hover for the "Edit" label on the UI, after the save, when the "Updated" notification is displayed.
The edit hover seems very "sticky" in general. Even if I immediately "cancel" out of the edit, and make sure the mouse will not end up over the edit label, it still appears. Actually, it looks like the edit and delete buttons are still available as well, after the cancel. So maybe it's the edit/delete appear-on-hover buttons that are the problem. Fixable in a follow-on issue, if too big for this one.
Thank you for the catch @pmuellr. It's easy to fix 👍 |
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! I am also seeing the issue that @mdefazio pointed out where flipping between enable/disable quickly will crash Kibana. I'm fine with making a followup issue to fix that separate though.
💚 Build SucceededMetrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: cc @YulNaumenko |
…abled and muted alerts (elastic#104190) * [Alerting UI]Changed rules table to support visual indication for disabled or muted alerts * changed columns styles due to the mockup * added tests * fixed quotas * fixed popover * fixed due to the lates UI updates * fixed errors * moved enabled to a separate component * fixed tests * fixed due to comments * Update x-pack/plugins/triggers_actions_ui/public/application/sections/alerts_list/components/alerts_list.scss Co-authored-by: Mike Côté <mikecote@users.noreply.github.com> * removed test code * fixed tests * fixed due to comments * fixed due to comments Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>
…abled and muted alerts (#104190) (#106282) * [Alerting UI]Changed rules table to support visual indication for disabled or muted alerts * changed columns styles due to the mockup * added tests * fixed quotas * fixed popover * fixed due to the lates UI updates * fixed errors * moved enabled to a separate component * fixed tests * fixed due to comments * Update x-pack/plugins/triggers_actions_ui/public/application/sections/alerts_list/components/alerts_list.scss Co-authored-by: Mike Côté <mikecote@users.noreply.github.com> * removed test code * fixed tests * fixed due to comments * fixed due to comments Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Mike Côté <mikecote@users.noreply.github.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>
Resolves #80310 #80313
Current PR covers the next list of changes:
Here is an updated mockup with the follow changes: