diff --git a/x-pack/plugins/triggers_actions_ui/public/application/sections/rule_details/components/rule.tsx b/x-pack/plugins/triggers_actions_ui/public/application/sections/rule_details/components/rule.tsx index b6b46057f8981..ffed5364cf1b3 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/sections/rule_details/components/rule.tsx +++ b/x-pack/plugins/triggers_actions_ui/public/application/sections/rule_details/components/rule.tsx @@ -163,7 +163,6 @@ export function RuleComponent({ return ( <> - @@ -171,6 +170,7 @@ export function RuleComponent({ gutterSize="none" direction="column" justifyContent="spaceBetween" + responsive={false} style={{ height: '100%' }} > diff --git a/x-pack/plugins/triggers_actions_ui/public/application/sections/rule_details/components/rule_details.tsx b/x-pack/plugins/triggers_actions_ui/public/application/sections/rule_details/components/rule_details.tsx index d648a5888870d..b2783aa3ecd83 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/sections/rule_details/components/rule_details.tsx +++ b/x-pack/plugins/triggers_actions_ui/public/application/sections/rule_details/components/rule_details.tsx @@ -263,6 +263,96 @@ export const RuleDetails: React.FunctionComponent = ({ values={{ ruleName: rule.name }} /> } + description={ + + + + + +

+ +

+
+
+ + await disableRule(rule)} + enableRule={async () => await enableRule(rule)} + snoozeRule={async (snoozeEndTime: string | -1) => + await snoozeRule(rule, snoozeEndTime) + } + unsnoozeRule={async () => await unsnoozeRule(rule)} + item={rule as RuleTableItem} + onRuleChanged={requestRefresh} + direction="row" + isEditable={hasEditButton} + previousSnoozeInterval={null} + /> + +
+
+ + + + +

+ +

+
+
+ + {ruleType.name} + +
+
+ + {uniqueActions && uniqueActions.length ? ( + + + + {' '} + {hasActionsWithBrokenConnector && ( + + )} + + + + + {uniqueActions.map((action, index) => ( + + + {actionTypesByTypeId[action].name ?? action} + + + ))} + + + + ) : null} + +
+ } rightSideItems={[ , = ({ /> - - - - - -

- -

-
-
- - await disableRule(rule)} - enableRule={async () => await enableRule(rule)} - snoozeRule={async (snoozeEndTime: string | -1) => - await snoozeRule(rule, snoozeEndTime) - } - unsnoozeRule={async () => await unsnoozeRule(rule)} - item={rule as RuleTableItem} - onRuleChanged={requestRefresh} - direction="row" - isEditable={hasEditButton} - previousSnoozeInterval={null} - /> - -
-
- - - - -

- -

-
-
- - {ruleType.name} - -
-
- - {uniqueActions && uniqueActions.length ? ( - - - - {' '} - {hasActionsWithBrokenConnector && ( - - )} - - - - - {uniqueActions.map((action, index) => ( - - - {actionTypesByTypeId[action].name ?? action} - - - ))} - - - - ) : null} - -
{rule.enabled && rule.executionStatus.error?.reason === AlertExecutionStatusErrorReasons.License ? ( diff --git a/x-pack/plugins/triggers_actions_ui/public/application/sections/rules_list/components/rule_status_dropdown.tsx b/x-pack/plugins/triggers_actions_ui/public/application/sections/rules_list/components/rule_status_dropdown.tsx index bb8eaa3bfc137..098d7c08a78f5 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/sections/rules_list/components/rule_status_dropdown.tsx +++ b/x-pack/plugins/triggers_actions_ui/public/application/sections/rules_list/components/rule_status_dropdown.tsx @@ -158,9 +158,10 @@ export const RuleStatusDropdown: React.FunctionComponent = ({ return ( {isEditable ? (