From 6b7c91f9ee31aafa1b8b3dbe80078a1e32b5c117 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 21 Aug 2024 08:34:24 +0000 Subject: [PATCH] Use smaller and compressed varients of buttons and form components (#1103) * Use EuiSmallButton Signed-off-by: Miki * Use EuiSmallButtonIcon Signed-off-by: Miki * Use EuiSmallButtonEmpty Signed-off-by: Miki * Use EuiCompressedFormRow Signed-off-by: Miki * Use EuiCompressedField* Signed-off-by: Miki * Use EuiCompressedSelect and EuiCompressedSuperSelect Signed-off-by: Miki * Use EuiCompressedCheckbox and EuiCompressedCheckboxGroup Signed-off-by: Miki * Use EuiCompressedRadio and EuiCompressedRadioGroup Signed-off-by: Miki * Use EuiCompressedSwitch Signed-off-by: Miki * Use EuiCompressedEuiTextArea Signed-off-by: Miki * Use EuiCompressedComboBox Signed-off-by: Miki * Use EuiSmallFilterButton Signed-off-by: Miki * Use EuiCompressedSuperDatePicker Signed-off-by: Miki * Update snapshots Signed-off-by: Miki * Fix bad `useNewUX` applications Signed-off-by: Miki * Fix tests Signed-off-by: Miki * Update tests and snapshots post-conflict resolution Signed-off-by: Miki * fix: e2e test Signed-off-by: SuZhou-Joe --------- Signed-off-by: Miki Signed-off-by: SuZhou-Joe Co-authored-by: SuZhou-Joe (cherry picked from commit 7077166c7ce2130ad34d9e29a1fc30fa49213c1d) Signed-off-by: github-actions[bot] --- .../aliases.js | 2 +- .../components/ErrorToastContentForJob.tsx | 6 +- .../__snapshots__/components.test.tsx.snap | 2 +- .../AdvancedSettings.test.tsx.snap | 2 +- .../__snapshots__/AliasSelect.test.tsx.snap | 12 +-- .../ChannelNotification.tsx | 14 ++-- .../ChannelNotification.test.tsx.snap | 10 +-- .../ComboBoxWithoutWarning/index.tsx | 4 +- .../ConfirmationModal/ConfirmationModal.tsx | 12 +-- .../ConfirmationModal.test.tsx.snap | 4 +- .../ContentPanel/ContentPanelActions.tsx | 10 +-- .../ContentPanelActions.test.tsx.snap | 2 +- .../CreatePolicyModal/CreatePolicyModal.tsx | 30 ++++---- .../CreatePolicyModal.test.tsx.snap | 24 +++--- .../__snapshots__/CustomFormRow.test.tsx.snap | 2 +- public/components/CustomFormRow/index.tsx | 8 +- public/components/DeleteModal/DeleteModal.tsx | 16 ++-- .../__snapshots__/DeleteModal.test.tsx.snap | 8 +- .../__snapshots__/FilterGroup.test.tsx.snap | 8 +- public/components/FilterGroup/index.tsx | 5 +- .../__snapshots__/FormGenerator.test.tsx.snap | 16 ++-- .../built_in_components/index.tsx | 26 ++++--- public/components/IndexDetail/IndexDetail.tsx | 16 ++-- .../__snapshots__/IndexDetail.test.tsx.snap | 16 ++-- .../components/IndexMapping/IndexMapping.tsx | 26 ++++--- .../__snapshots__/IndexMapping.test.tsx.snap | 4 +- .../JSONDiffEditor/JSONDiffEditor.tsx | 6 +- .../JSONDiffEditor/JSONTextArea.tsx | 6 +- public/components/JSONEditor/JSONEditor.tsx | 6 +- public/components/JSONModal/JSONModal.tsx | 6 +- .../__snapshots__/JSONModal.test.tsx.snap | 2 +- .../LegacyNotification/LegacyNotification.tsx | 8 +- .../LegacyNotification.test.tsx.snap | 2 +- public/components/Modal/Modal.tsx | 16 ++-- .../MonacoJSONEditor/MonacoJSONEditor.tsx | 6 +- public/components/PolicyModal/PolicyModal.tsx | 20 ++--- .../__snapshots__/PolicyModal.test.tsx.snap | 8 +- .../__snapshots__/RemoteSelect.test.tsx.snap | 12 +-- public/components/RemoteSelect/index.tsx | 4 +- .../SwitchableEditor/SwitchableEditor.tsx | 4 +- .../SwitchableEditor.test.tsx.snap | 18 ++--- .../UnsavedChangesBottomBar.tsx | 4 +- .../UnsavedChangesBottomBar.test.tsx.snap | 2 +- .../__snapshots__/ChannelSelect.test.tsx.snap | 12 +-- .../ClearCacheModal/ClearCacheModal.tsx | 12 +-- .../ClearCacheModal.test.tsx.snap | 4 +- .../ErrorNotification.test.tsx.snap | 12 +-- .../FlushIndexModal/FlushIndexModal.tsx | 12 +-- .../FlushIndexModal.test.tsx.snap | 20 ++--- .../__snapshots__/IndexForm.test.tsx.snap | 44 +++++------ .../NotificationConfig/NotificationConfig.tsx | 6 +- .../NotificationConfig.test.tsx.snap | 22 +++--- public/containers/RefreshAction/index.tsx | 10 +-- .../IndexControls/IndexControls.tsx | 14 ++-- .../__snapshots__/IndexControls.test.tsx.snap | 14 ++-- .../__snapshots__/AliasActions.test.tsx.snap | 28 +++---- .../Aliases/containers/AliasActions/index.tsx | 6 +- .../Aliases/containers/Aliases/Aliases.tsx | 24 +++--- .../__snapshots__/Aliases.test.tsx.snap | 18 ++--- .../__snapshots__/CreateAlias.test.tsx.snap | 18 ++--- .../Aliases/containers/CreateAlias/index.tsx | 10 +-- .../DeleteAliasModal/DeleteAliasModal.tsx | 14 ++-- .../DeleteAliasModal.test.tsx.snap | 8 +- .../ChangeManagedIndices.tsx | 14 ++-- .../ChangeManagedIndices.test.tsx.snap | 4 +- .../components/NewPolicy/NewPolicy.tsx | 25 +++++-- .../__snapshots__/NewPolicy.test.tsx.snap | 12 +-- .../containers/ChangePolicy/ChangePolicy.tsx | 10 +-- .../__snapshots__/ChangePolicy.test.tsx.snap | 20 ++--- .../IndexControls/IndexControls.tsx | 5 +- .../__snapshots__/IndexControls.test.tsx.snap | 8 +- .../AssociatedTemplatesModal.tsx | 8 +- .../AssociatedTemplatesModal.test.tsx.snap | 2 +- .../ComposableTemplates.tsx | 31 ++++---- .../ComposableTemplates.test.tsx.snap | 12 +-- .../ComposableTemplatesActions.test.tsx.snap | 4 +- .../ComposableTemplatesActions/index.tsx | 11 ++- .../DeleteComposableTemplatesModal.tsx | 23 ++++-- ...leteComposableTemplatesModal.test.tsx.snap | 4 +- .../components/TemplateType/TemplateType.tsx | 6 +- .../CreateComposableTemplate.test.tsx.snap | 35 ++++----- .../TemplateDetail/TemplateDetail.tsx | 20 ++--- .../TemplateDetail.test.tsx.snap | 45 +++++------ .../TemplateMappings/TemplateMappings.tsx | 10 +-- .../CreateDataStream.test.tsx.snap | 18 ++--- .../DataStreamDetail/DataStreamDetail.tsx | 18 ++--- .../DataStreamDetail.test.tsx.snap | 18 ++--- .../TemplateMappings/TemplateMappings.tsx | 10 +-- .../containers/IndexForm/index.tsx | 16 ++-- .../DefineTemplate.test.tsx.snap | 52 ++++++------- .../components/TemplateType/TemplateType.tsx | 6 +- .../ComposableTemplate/ComposableTemplate.tsx | 14 ++-- .../CreateIndexTemplate.test.tsx.snap | 12 +-- .../TemplateDetail/TemplateDetail.tsx | 23 +++--- .../TemplateDetail.test.tsx.snap | 70 +++++++++--------- .../TemplateMappings/TemplateMappings.tsx | 10 +-- .../ConfigurePolicy/ConfigurePolicy.tsx | 14 +++- .../ConfigurePolicy.test.tsx.snap | 6 +- .../components/DefinePolicy/DefinePolicy.tsx | 10 +-- .../__mocks__/DefinePolicyMock.tsx | 20 +++-- .../__snapshots__/DefinePolicy.test.tsx.snap | 4 +- .../containers/CreatePolicy/CreatePolicy.tsx | 19 ++--- .../__snapshots__/CreatePolicy.test.tsx.snap | 36 ++++----- .../AdvancedAggregation.tsx | 34 ++++----- .../ConfigureRollup/ConfigureRollup.tsx | 18 +++-- .../MetricsCalculation/MetricsCalculation.tsx | 54 +++++++------- .../RollupIndices/RollupIndices.tsx | 16 ++-- .../components/Schedule/Schedule.tsx | 74 +++++++++++-------- .../TimeAggregations/TimeAggregation.tsx | 59 ++++++++------- .../CreateRollupForm/CreateRollupForm.tsx | 18 ++--- .../CreateRollupForm.test.tsx.snap | 28 +++---- .../components/CronSchedule/CronSchedule.tsx | 33 +++++---- .../components/Notification/Notification.tsx | 14 ++-- .../SnapshotAdvancedSettings.tsx | 8 +- .../SnapshotIndicesRepoInput.tsx | 18 ++--- .../CreateSnapshotPolicy.tsx | 72 ++++++++++-------- .../ConfigureTransform/ConfigureTransform.tsx | 17 +++-- .../IndexFilterPopover/IndexFilterPopover.tsx | 38 +++++----- .../EditTransformPanel/EditTransformPanel.tsx | 25 +++++-- .../PreviewOptions/PreviewOptions.tsx | 4 +- .../components/Schedule/Schedule.tsx | 29 ++++++-- .../TransformIndices/TransformIndices.tsx | 16 ++-- .../DateHistogramPanel/DateHistogramPanel.tsx | 14 ++-- .../DateHistogramPanel.test.tsx.snap | 20 ++--- .../Panels/HistogramPanel/HistogramPanel.tsx | 24 ++++-- .../PercentilePanel/PercentilePanel.tsx | 16 ++-- .../ScriptedMetricsPanel.tsx | 14 ++-- .../TransformOptions/TransformOptions.tsx | 4 +- .../CreateTransformForm.tsx | 18 ++--- .../CreateTransformForm.test.tsx.snap | 28 +++---- .../IndexControls/IndexControls.tsx | 5 +- .../__snapshots__/IndexControls.test.tsx.snap | 6 +- .../containers/DataStreams/DataStreams.tsx | 17 ++--- .../__snapshots__/DataStreams.test.tsx.snap | 12 +-- .../DataStreamsActions.test.tsx.snap | 22 +++--- .../containers/DataStreamsActions/index.tsx | 8 +- .../DeleteDataStreamsModal.test.tsx.snap | 8 +- .../EditRollup/containers/EditRollup.tsx | 10 +-- .../__snapshots__/EditRollup.test.tsx.snap | 48 ++++++------ .../ForceMergeAdvancedOptions.test.tsx.snap | 28 +++---- .../__snapshots__/IndexSelect.test.tsx.snap | 12 +-- .../components/SwitchNumber/index.tsx | 4 +- .../container/ForceMerge/ForceMerge.tsx | 16 ++-- .../__snapshots__/ForceMerge.test.tsx.snap | 16 ++-- .../containers/IndexDetail/IndexDetail.tsx | 6 +- .../ApplyPolicyModal/ApplyPolicyModal.tsx | 30 ++++---- .../ApplyPolicyModal.test.tsx.snap | 12 +-- .../CloseIndexModal/CloseIndexModal.tsx | 16 ++-- .../CloseIndexModal.test.tsx.snap | 8 +- .../DeleteIndexModal/DeleteIndexModal.tsx | 14 ++-- .../DeleteIndexModal.test.tsx.snap | 8 +- .../IndexControls/IndexControls.tsx | 7 +- .../__snapshots__/IndexControls.test.tsx.snap | 14 +--- .../IndexEmptyPrompt/IndexEmptyPrompt.tsx | 8 +- .../OpenIndexModal/OpenIndexModal.tsx | 12 +-- .../OpenIndexModal.test.tsx.snap | 4 +- .../__snapshots__/Indices.test.tsx.snap | 13 ++-- .../IndicesActions.test.tsx.snap | 44 +++++------ .../containers/IndicesActions/index.tsx | 6 +- .../components/InfoModal/InfoModal.tsx | 6 +- .../__snapshots__/InfoModal.test.tsx.snap | 2 +- .../ManagedIndexControls.tsx | 7 +- .../ManagedIndexControls.test.tsx.snap | 14 +--- .../ManagedIndexEmptyPrompt.tsx | 10 +-- .../ManagedIndexEmptyPrompt.test.tsx.snap | 2 +- .../components/RetryModal/RetryModal.tsx | 26 +++---- .../__snapshots__/RetryModal.test.tsx.snap | 14 ++-- .../RolloverAliasModal/RolloverAliasModal.tsx | 27 ++++--- .../RolloverAliasModal.test.tsx.snap | 10 +-- .../ManagedIndices/ManagedIndices.tsx | 15 ++-- .../ManagedIndices.test.tsx.snap | 17 ++--- .../Notifications/Notifications.tsx | 6 +- .../__snapshots__/Notifications.test.tsx.snap | 40 +++++----- .../PolicyControls/PolicyControls.tsx | 4 +- .../PolicyControls.test.tsx.snap | 6 +- .../PolicyEmptyPrompt/PolicyEmptyPrompt.tsx | 10 +-- .../PolicyEmptyPrompt.test.tsx.snap | 2 +- .../Policies/containers/Policies/Policies.tsx | 7 +- .../__snapshots__/Policies.test.tsx.snap | 10 +-- .../components/DeleteModal/DeleteModal.tsx | 13 +++- .../__snapshots__/DeleteModal.test.tsx.snap | 6 +- .../PolicyDetails/PolicyDetails.tsx | 14 ++-- .../CreateIndexFlyout.test.tsx.snap | 48 ++++++------ .../__snapshots__/IndexSelect.test.tsx.snap | 16 ++-- .../ReindexAdvancedOptions.tsx | 22 ++++-- .../ReindexAdvancedOptions.test.tsx.snap | 60 +++++++-------- .../Reindex/container/Reindex/Reindex.tsx | 24 +++--- .../__snapshots__/Reindex.test.tsx.snap | 34 ++++----- .../CreateRepositoryFlyout.tsx | 26 +++---- .../components/DeleteModal/DeleteModal.tsx | 13 +++- .../containers/Repositories/Repositories.tsx | 18 ++--- .../Rollover/containers/Rollover/Rollover.tsx | 18 ++--- .../__snapshots__/Rollover.test.tsx.snap | 16 ++-- .../RollupDetails/RollupDetails.tsx | 20 ++--- .../components/DeleteModal/DeleteModal.tsx | 13 +++- .../RollupEmptyPrompt/RollupEmptyPrompt.tsx | 10 +-- .../Rollups/containers/Rollups/Rollups.tsx | 30 ++++---- .../__snapshots__/Rollups.test.tsx.snap | 14 ++-- .../container/ShrinkIndex/ShrinkIndex.tsx | 26 +++---- .../__snapshots__/ShrinkIndex.test.tsx.snap | 40 +++++----- .../SnapshotPolicies/SnapshotPolicies.tsx | 23 +++--- .../components/InfoModal/InfoModal.tsx | 6 +- .../SnapshotPolicyDetails.tsx | 12 +-- .../AddPrefixInput/AddPrefixInput.tsx | 8 +- .../AddPrefixInput.test.tsx.snap | 6 +- .../CreateSnapshotFlyout.tsx | 10 +-- .../components/ErrorModal/ErrorModal.tsx | 20 +++-- .../IndexSettingsInput/IndexSettingsInput.tsx | 15 ++-- .../components/RenameInput/RenameInput.tsx | 30 +++++--- .../__snapshots__/RenameInput.test.tsx.snap | 12 +-- .../RestoreActivitiesPanel.tsx | 6 +- .../RestoreSnapshotFlyout.tsx | 4 +- .../SnapshotFlyout/SnapshotFlyout.tsx | 4 +- .../SnapshotIndicesInput.tsx | 10 +-- .../SnapshotIndicesInput.test.tsx.snap | 8 +- .../SnapshotRenameOptions.tsx | 8 +- .../SnapshotRenameOptions.test.tsx.snap | 6 +- .../SnapshotRestoreAdvancedOptions.tsx | 41 +++++----- .../SnapshotRestoreOption.tsx | 6 +- .../SnapshotRestoreOption.test.tsx.snap | 4 +- .../containers/Snapshots/Snapshots.tsx | 22 +++--- public/pages/Snapshots/helper.tsx | 40 +++++----- .../SplitIndexForm/SplitIndexForm.tsx | 10 +-- .../container/SplitIndex/SplitIndex.tsx | 14 ++-- .../__snapshots__/SplitIndex.test.tsx.snap | 2 +- .../components/DeleteTemplate/index.tsx | 4 +- .../IndexControls/IndexControls.tsx | 12 ++- .../__snapshots__/IndexControls.test.tsx.snap | 6 +- .../AssociatedComponentsModal.tsx | 13 +++- .../AssociatedComponentsModal.test.tsx.snap | 2 +- .../DeleteTemplateModal.test.tsx.snap | 8 +- .../containers/Templates/Templates.tsx | 24 +++--- .../__snapshots__/Templates.test.tsx.snap | 12 +-- .../TemplatesActions.test.tsx.snap | 4 +- .../containers/TemplatesActions/index.tsx | 6 +- .../ConfigureTransform/Configure.tsx | 18 +++-- .../components/DeleteModal/DeleteModal.tsx | 13 +++- .../components/ErrorModal/ErrorModal.tsx | 6 +- .../components/Schedule/Schedule.tsx | 10 +-- .../TransformEmptyPrompt.tsx | 14 ++-- .../containers/Transforms/EditTransform.tsx | 15 ++-- .../Transforms/TransformDetails.tsx | 25 ++++--- .../containers/Transforms/Transforms.tsx | 26 +++---- .../__snapshots__/EditTransform.test.tsx.snap | 32 ++++---- .../__snapshots__/Transforms.test.tsx.snap | 14 ++-- .../pages/Transforms/utils/metadataHelper.tsx | 34 ++++++--- .../ChannelNotification.tsx | 20 +++-- .../DraggableItem/DraggableItem.tsx | 6 +- .../__snapshots__/DraggableItem.test.tsx.snap | 4 +- .../components/FlyoutFooter/FlyoutFooter.tsx | 16 ++-- .../__snapshots__/FlyoutFooter.test.tsx.snap | 4 +- .../components/ISMTemplate/ISMTemplate.tsx | 27 ++++--- .../__snapshots__/ISMTemplate.test.tsx.snap | 16 ++-- .../components/ISMTemplates/ISMTemplates.tsx | 7 +- .../__snapshots__/ISMTemplates.test.tsx.snap | 2 +- .../LegacyNotification/LegacyNotification.tsx | 8 +- .../LegacyNotification.test.tsx.snap | 2 +- .../components/PolicyInfo/PolicyInfo.tsx | 12 +-- .../__snapshots__/PolicyInfo.test.tsx.snap | 8 +- .../components/States/State.tsx | 6 +- .../components/States/States.tsx | 21 ++---- .../States/__snapshots__/State.test.tsx.snap | 4 +- .../States/__snapshots__/States.test.tsx.snap | 12 +-- .../TimeoutRetrySettings.tsx | 35 +++++---- .../TimeoutRetrySettings.test.tsx.snap | 24 +++--- .../components/Transition/Transition.tsx | 53 +++++++------ .../AliasUIAction/AliasUIActionComponent.tsx | 18 ++--- .../__snapshots__/AliasUIAction.test.tsx.snap | 64 +++++++--------- .../UIActions/AllocationUIAction.tsx | 6 +- .../UIActions/ForceMergeUIAction.tsx | 8 +- .../UIActions/IndexPriorityUIAction.tsx | 8 +- .../UIActions/ReplicaCountUIAction.tsx | 8 +- .../components/UIActions/RolloverUIAction.tsx | 26 +++---- .../components/UIActions/RollupUIAction.tsx | 6 +- .../components/UIActions/ShrinkUIAction.tsx | 34 ++++----- .../components/UIActions/SnapshotUIAction.tsx | 14 ++-- .../containers/CreateAction/CreateAction.tsx | 9 +-- .../__snapshots__/CreateAction.test.tsx.snap | 54 +++++++------- .../containers/CreateState/Actions.tsx | 10 +-- .../containers/CreateState/CreateState.tsx | 39 +++++----- .../containers/CreateState/Transitions.tsx | 10 +-- .../CreateTransition/CreateTransition.tsx | 19 +++-- .../CreateTransition.test.tsx.snap | 20 ++--- .../ErrorNotification.test.tsx.snap | 12 +-- .../VisualCreatePolicy/VisualCreatePolicy.tsx | 10 +-- public/temporary/EuiRefreshPicker.tsx | 4 +- 286 files changed, 2324 insertions(+), 2218 deletions(-) diff --git a/cypress/integration/plugins/index-management-dashboards-plugin/aliases.js b/cypress/integration/plugins/index-management-dashboards-plugin/aliases.js index 29bcf6476..4e23e1fea 100644 --- a/cypress/integration/plugins/index-management-dashboards-plugin/aliases.js +++ b/cypress/integration/plugins/index-management-dashboards-plugin/aliases.js @@ -60,7 +60,7 @@ describe("Aliases", () => { describe("can create a alias with wildcard and specific name", () => { it("successfully", () => { cy.get('[data-test-subj="Create aliasButton"]').click(); - cy.get('[data-test-subj="form-name-alias"]').type(CREATE_ALIAS); + cy.get('[data-test-subj="form-name-alias"] input').type(CREATE_ALIAS); cy.get('[data-test-subj="form-name-indexArray"] [data-test-subj="comboBoxSearchInput"]').type( `${EDIT_INDEX}{enter}${SAMPLE_INDEX_PREFIX}-*{enter}` ); diff --git a/public/JobHandler/components/ErrorToastContentForJob.tsx b/public/JobHandler/components/ErrorToastContentForJob.tsx index 586fde083..76bb962c9 100644 --- a/public/JobHandler/components/ErrorToastContentForJob.tsx +++ b/public/JobHandler/components/ErrorToastContentForJob.tsx @@ -2,7 +2,7 @@ * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ -import { EuiButton, EuiSpacer, EuiText } from "@elastic/eui"; +import { EuiSmallButton, EuiSpacer, EuiText } from "@elastic/eui"; import React from "react"; import { Modal } from "../../components/Modal"; @@ -14,7 +14,7 @@ export const ErrorToastContentForJob = (props: { shortError?: React.ReactChild; {fullError ? ( <> - { Modal.show({ @@ -34,7 +34,7 @@ export const ErrorToastContentForJob = (props: { shortError?: React.ReactChild; color="danger" > See full error - + ) : null} diff --git a/public/JobHandler/components/__snapshots__/components.test.tsx.snap b/public/JobHandler/components/__snapshots__/components.test.tsx.snap index f08aeffe9..ed86b3107 100644 --- a/public/JobHandler/components/__snapshots__/components.test.tsx.snap +++ b/public/JobHandler/components/__snapshots__/components.test.tsx.snap @@ -48,7 +48,7 @@ exports[` spec render with action 1`] = ` class="euiSpacer euiSpacer--l" />
( - + ), [onClickCancel] diff --git a/public/components/UnsavedChangesBottomBar/__snapshots__/UnsavedChangesBottomBar.test.tsx.snap b/public/components/UnsavedChangesBottomBar/__snapshots__/UnsavedChangesBottomBar.test.tsx.snap index f24bafde0..cf8474e50 100644 --- a/public/components/UnsavedChangesBottomBar/__snapshots__/UnsavedChangesBottomBar.test.tsx.snap +++ b/public/components/UnsavedChangesBottomBar/__snapshots__/UnsavedChangesBottomBar.test.tsx.snap @@ -20,7 +20,7 @@ HTMLCollection [ class="euiFlexItem euiFlexItem--flexGrowZero" >
spec it goes to templates page when click >
spec it goes to templates page when click Index mapping
spec it goes to templates page when click >
) : ( - + View JSON - + )} @@ -304,20 +304,14 @@ const TemplateDetail = (props: TemplateDetailProps, ref: Ref - + Cancel - + - + Create component template - + diff --git a/public/pages/CreateComposableTemplate/containers/TemplateDetail/__snapshots__/TemplateDetail.test.tsx.snap b/public/pages/CreateComposableTemplate/containers/TemplateDetail/__snapshots__/TemplateDetail.test.tsx.snap index e497072b8..491aa488c 100644 --- a/public/pages/CreateComposableTemplate/containers/TemplateDetail/__snapshots__/TemplateDetail.test.tsx.snap +++ b/public/pages/CreateComposableTemplate/containers/TemplateDetail/__snapshots__/TemplateDetail.test.tsx.snap @@ -14,7 +14,7 @@ exports[` spec render component 1`] = ` Create component template
spec render component 1`] = ` class="euiSpacer euiSpacer--s" />
@@ -106,13 +106,13 @@ exports[` spec render component 1`] = ` class="euiToolTipAnchor euiToolTipAnchor--displayBlock" >
@@ -122,7 +122,7 @@ exports[` spec render component 1`] = `
spec render component 1`] = ` class="euiSpacer euiSpacer--l" />
@@ -175,13 +175,13 @@ exports[` spec render component 1`] = ` class="euiToolTipAnchor euiToolTipAnchor--displayBlock" >
@@ -207,7 +207,7 @@ exports[` spec render component 1`] = ` class="euiFlexItem" >
spec render component 1`] = ` >
spec render component 1`] = ` >
spec render component 1`] = ` Index mapping
spec render component 1`] = ` >
spec render component 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" >
); diff --git a/public/pages/CreatePolicy/components/ConfigurePolicy/__snapshots__/ConfigurePolicy.test.tsx.snap b/public/pages/CreatePolicy/components/ConfigurePolicy/__snapshots__/ConfigurePolicy.test.tsx.snap index 310fd6a83..75b67021c 100644 --- a/public/pages/CreatePolicy/components/ConfigurePolicy/__snapshots__/ConfigurePolicy.test.tsx.snap +++ b/public/pages/CreatePolicy/components/ConfigurePolicy/__snapshots__/ConfigurePolicy.test.tsx.snap @@ -45,7 +45,7 @@ exports[` spec renders the component 1`] = ` class="euiSpacer euiSpacer--s" />
spec renders the component 1`] = ` class="euiFormRow__fieldWrapper" >
{(copy: () => void) => ( - + Copy - + )} , - + Auto indent - , + , ]} >
diff --git a/public/pages/CreatePolicy/components/DefinePolicy/__mocks__/DefinePolicyMock.tsx b/public/pages/CreatePolicy/components/DefinePolicy/__mocks__/DefinePolicyMock.tsx index 1697b2169..9c979eb5c 100644 --- a/public/pages/CreatePolicy/components/DefinePolicy/__mocks__/DefinePolicyMock.tsx +++ b/public/pages/CreatePolicy/components/DefinePolicy/__mocks__/DefinePolicyMock.tsx @@ -6,8 +6,8 @@ import React, { ChangeEvent } from "react"; import { EuiSpacer, - EuiButton, - EuiTextArea, + EuiSmallButton, + EuiCompressedTextArea, EuiText, // @ts-ignore EuiCopy, @@ -23,7 +23,7 @@ interface DefinePolicyProps { /* * Attempting to test EuiCodeEditor which uses react-ace was a lot more effort than seemed worthwhile - * at the moment, so in the meantime we will mock DefinePolicy as a EuiTextArea so that we can still test + * at the moment, so in the meantime we will mock DefinePolicy as a EuiCompressedTextArea so that we can still test * the functionality of CreatePolicy (minus the JSON code editor). * */ const DefinePolicy = ({ jsonString, onChange, onAutoIndent, hasJSONError }: DefinePolicyProps) => ( @@ -34,14 +34,14 @@ const DefinePolicy = ({ jsonString, onChange, onAutoIndent, hasJSONError }: Defi actions={[ {(copy: () => void) => ( - + Copy - + )} , - + Auto Indent - , + , ]} >
@@ -50,7 +50,11 @@ const DefinePolicy = ({ jsonString, onChange, onAutoIndent, hasJSONError }: Defi
- ) => onChange(e.target.value)} aria-label="Code Editor" /> + ) => onChange(e.target.value)} + aria-label="Code Editor" + /> ); diff --git a/public/pages/CreatePolicy/components/DefinePolicy/__snapshots__/DefinePolicy.test.tsx.snap b/public/pages/CreatePolicy/components/DefinePolicy/__snapshots__/DefinePolicy.test.tsx.snap index 5de09b1d9..57122b9d4 100644 --- a/public/pages/CreatePolicy/components/DefinePolicy/__snapshots__/DefinePolicy.test.tsx.snap +++ b/public/pages/CreatePolicy/components/DefinePolicy/__snapshots__/DefinePolicy.test.tsx.snap @@ -37,7 +37,7 @@ exports[` spec renders the component 1`] = ` class="euiToolTipAnchor" >
diff --git a/public/pages/CreatePolicy/containers/CreatePolicy/__snapshots__/CreatePolicy.test.tsx.snap b/public/pages/CreatePolicy/containers/CreatePolicy/__snapshots__/CreatePolicy.test.tsx.snap index b5eaf64c7..b4be236d8 100644 --- a/public/pages/CreatePolicy/containers/CreatePolicy/__snapshots__/CreatePolicy.test.tsx.snap +++ b/public/pages/CreatePolicy/containers/CreatePolicy/__snapshots__/CreatePolicy.test.tsx.snap @@ -57,7 +57,7 @@ exports[` spec renders the create component 1`] = ` class="euiSpacer euiSpacer--s" />
spec renders the create component 1`] = ` class="euiFormRow__fieldWrapper" >
spec renders the create component 1`] = ` class="euiToolTipAnchor" >