From 0faab4aa48509fac2e5a4de3469b594df67f947f Mon Sep 17 00:00:00 2001 From: Andrea Del Rio Date: Wed, 12 Feb 2020 14:58:15 -0800 Subject: [PATCH] [Alerting] Create alert design cleanup (#56929) --- .../threshold/expression.tsx | 27 +++++++++++++++++-- .../threshold/visualization.tsx | 3 +-- .../action_connector_form/_index.scss | 4 +++ .../sections/alert_add/alert_form.tsx | 25 ++++++++++------- 4 files changed, 45 insertions(+), 14 deletions(-) diff --git a/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_alert_types/threshold/expression.tsx b/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_alert_types/threshold/expression.tsx index 1708b2f0ae016d..f7d2b8f60157ff 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_alert_types/threshold/expression.tsx +++ b/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_alert_types/threshold/expression.tsx @@ -10,6 +10,7 @@ import { FormattedMessage } from '@kbn/i18n/react'; import { EuiFlexItem, EuiFlexGroup, + EuiFormLabel, EuiExpression, EuiPopover, EuiPopoverTitle, @@ -327,7 +328,15 @@ export const IndexThresholdAlertTypeExpression: React.FunctionComponent ) : null} - + + + + + + { setIndexPopoverOpen(true); @@ -370,6 +379,8 @@ export const IndexThresholdAlertTypeExpression: React.FunctionComponent + + ) : null} + + + + + + + + + = ({ > {error} - ); } @@ -248,7 +247,7 @@ export const ThresholdVisualization: React.FunctionComponent = ({
{alertVisualizationDataKeys.length ? ( - + +
@@ -609,17 +610,20 @@ export const AlertForm = ({ {canChangeTrigger ? ( - { setAlertProperty('alertTypeId', null); setAlertTypeModel(null); }} - > - - + /> ) : null} @@ -636,7 +640,7 @@ export const AlertForm = ({ {selectedGroupActions} {isAddActionPanelOpen ? ( - +
{alertTypeDetails} ) : ( +