diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_form.tsx b/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_form.tsx index f89bd5ef48d72..8229aced234fa 100644 --- a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_form.tsx +++ b/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_form.tsx @@ -420,14 +420,14 @@ export const AgentPolicyForm: React.FunctionComponent = ({ <> {' '} { return ( - {formState === 'CONFIRM' && agentPolicy && ( - setFormState('VALID')} - /> - )} - {packageInfo && ( - - )} - - - - - - - {!isLoadingAgentPolicyStep && agentPolicy && packageInfo && formState === 'INVALID' ? ( - - ) : null} - - - - - {/* eslint-disable-next-line @elastic/eui/href-or-on-click */} - - - - - - - - - - - - - + + {formState === 'CONFIRM' && agentPolicy && ( + setFormState('VALID')} + /> + )} + {packageInfo && ( + + )} + + + + + + + {!isLoadingAgentPolicyStep && + agentPolicy && + packageInfo && + formState === 'INVALID' ? ( + + ) : null} + + + + + {/* eslint-disable-next-line @elastic/eui/href-or-on-click */} + + + + + + + + + + + + + + ); }; diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/index.tsx b/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/index.tsx index a36bc988da89f..040070bcff7c4 100644 --- a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/index.tsx +++ b/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/index.tsx @@ -25,6 +25,7 @@ import { EuiFlyoutBody, EuiFlyoutHeader, EuiTitle, + EuiErrorBoundary, } from '@elastic/eui'; import styled from 'styled-components'; @@ -510,93 +511,95 @@ export const EditPackagePolicyForm = memo<{ return ( - {isLoadingData ? ( - - ) : loadingError || !agentPolicy || !packageInfo ? ( - - } - error={ - loadingError || - i18n.translate('xpack.fleet.editPackagePolicy.errorLoadingDataMessage', { - defaultMessage: 'There was an error loading this integration information', - }) - } - /> - ) : ( - <> - + {isLoadingData ? ( + + ) : loadingError || !agentPolicy || !packageInfo ? ( + + } + error={ + loadingError || + i18n.translate('xpack.fleet.editPackagePolicy.errorLoadingDataMessage', { + defaultMessage: 'There was an error loading this integration information', + }) + } /> - {formState === 'CONFIRM' && ( - setFormState('VALID')} + ) : ( + <> + - )} - {isUpgrade && dryRunData && ( - <> - - - - )} - {configurePackage} - {/* Extra space to accomodate the EuiBottomBar height */} - - - - - - {agentPolicy && packageInfo && formState === 'INVALID' ? ( - - ) : null} - - - - - - - - - - - - - - - - - - - )} + {formState === 'CONFIRM' && ( + setFormState('VALID')} + /> + )} + {isUpgrade && dryRunData && ( + <> + + + + )} + {configurePackage} + {/* Extra space to accomodate the EuiBottomBar height */} + + + + + + {agentPolicy && packageInfo && formState === 'INVALID' ? ( + + ) : null} + + + + + + + + + + + + + + + + + + + )} + ); }); diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/steps.tsx b/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/steps.tsx index 1cfdc45fb7dba..42746229e5ace 100644 --- a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/steps.tsx +++ b/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/steps.tsx @@ -42,7 +42,7 @@ export const DownloadStep = () => { diff --git a/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/expressions/boundary_index_expression.tsx b/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/expressions/boundary_index_expression.tsx index 76f8eaacb8789..e1eb91af5958e 100644 --- a/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/expressions/boundary_index_expression.tsx +++ b/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/expressions/boundary_index_expression.tsx @@ -16,8 +16,8 @@ import { ES_GEO_SHAPE_TYPES, GeoContainmentAlertParams } from '../../types'; import { GeoIndexPatternSelect } from '../util_components/geo_index_pattern_select'; import { SingleFieldSelect } from '../util_components/single_field_select'; import { ExpressionWithPopover } from '../util_components/expression_with_popover'; -import { IFieldType } from '../../../../../../../../src/plugins/data/common/index_patterns/fields'; -import { IIndexPattern } from '../../../../../../../../src/plugins/data/common/index_patterns'; +import { IFieldType } from '../../../../../../../../src/plugins/data/common'; +import { IIndexPattern } from '../../../../../../../../src/plugins/data/common'; interface Props { alertParams: GeoContainmentAlertParams; diff --git a/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/expressions/entity_by_expression.tsx b/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/expressions/entity_by_expression.tsx index a194bd40d9931..333dd69ce50f5 100644 --- a/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/expressions/entity_by_expression.tsx +++ b/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/expressions/entity_by_expression.tsx @@ -12,7 +12,7 @@ import _ from 'lodash'; import { IErrorObject } from '../../../../../../triggers_actions_ui/public'; import { SingleFieldSelect } from '../util_components/single_field_select'; import { ExpressionWithPopover } from '../util_components/expression_with_popover'; -import { IFieldType } from '../../../../../../../../src/plugins/data/common/index_patterns/fields'; +import { IFieldType } from '../../../../../../../../src/plugins/data/common'; interface Props { errors: IErrorObject; diff --git a/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/expressions/entity_index_expression.tsx b/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/expressions/entity_index_expression.tsx index a3ffe7a3ade0c..e2068ca1b178f 100644 --- a/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/expressions/entity_index_expression.tsx +++ b/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/expressions/entity_index_expression.tsx @@ -20,8 +20,8 @@ import { ES_GEO_FIELD_TYPES } from '../../types'; import { GeoIndexPatternSelect } from '../util_components/geo_index_pattern_select'; import { SingleFieldSelect } from '../util_components/single_field_select'; import { ExpressionWithPopover } from '../util_components/expression_with_popover'; -import { IFieldType } from '../../../../../../../../src/plugins/data/common/index_patterns/fields'; -import { IIndexPattern } from '../../../../../../../../src/plugins/data/common/index_patterns'; +import { IFieldType } from '../../../../../../../../src/plugins/data/common'; +import { IIndexPattern } from '../../../../../../../../src/plugins/data/common'; interface Props { dateField: string; diff --git a/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/index.tsx b/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/index.tsx index 25234126689b9..cdc5c12659ce6 100644 --- a/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/index.tsx +++ b/x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/index.tsx @@ -14,7 +14,7 @@ import { GeoContainmentAlertParams } from '../types'; import { EntityIndexExpression } from './expressions/entity_index_expression'; import { EntityByExpression } from './expressions/entity_by_expression'; import { BoundaryIndexExpression } from './expressions/boundary_index_expression'; -import { IIndexPattern } from '../../../../../../../src/plugins/data/common/index_patterns'; +import { IIndexPattern } from '../../../../../../../src/plugins/data/common'; import { esQuery, esKuery, diff --git a/x-pack/plugins/uptime/public/state/reducers/index_pattern.ts b/x-pack/plugins/uptime/public/state/reducers/index_pattern.ts index d16860850bd78..c4fae4660168d 100644 --- a/x-pack/plugins/uptime/public/state/reducers/index_pattern.ts +++ b/x-pack/plugins/uptime/public/state/reducers/index_pattern.ts @@ -7,7 +7,7 @@ import { handleActions, Action } from 'redux-actions'; import { getIndexPattern, getIndexPatternSuccess, getIndexPatternFail } from '../actions'; -import type { IndexPattern } from '../../../../../../src/plugins/data/common/index_patterns'; +import type { IndexPattern } from '../../../../../../src/plugins/data/common'; export interface IndexPatternState { index_pattern: IndexPattern | null;