From 7d62d0ee3826e98a979f60e9ae1cad9d9a8fbae5 Mon Sep 17 00:00:00 2001 From: Kshitij Tandon Date: Tue, 3 Sep 2024 11:26:49 +0530 Subject: [PATCH] Fixed action button padding and removed plus sign in some pages Signed-off-by: Kshitij Tandon --- public/pages/Aliases/containers/AliasActions/index.tsx | 2 +- .../CreateAlias/__snapshots__/CreateAlias.test.tsx.snap | 1 - public/pages/Aliases/containers/CreateAlias/index.tsx | 1 - public/pages/CreateIndex/containers/IndexForm/index.tsx | 9 +-------- .../containers/TemplateDetail/TemplateDetail.tsx | 1 - .../__snapshots__/TemplateDetail.test.tsx.snap | 1 - public/pages/Indices/containers/IndicesActions/index.tsx | 2 +- .../ManagedIndexControls/ManagedIndexControls.tsx | 7 ------- .../containers/ManagedIndices/ManagedIndices.tsx | 2 +- .../ShrinkIndex/container/ShrinkIndex/ShrinkIndex.tsx | 1 - .../ShrinkIndex/__snapshots__/ShrinkIndex.test.tsx.snap | 3 --- .../Templates/containers/TemplatesActions/index.tsx | 2 +- .../Transforms/containers/Transforms/Transforms.tsx | 4 ++-- 13 files changed, 7 insertions(+), 29 deletions(-) diff --git a/public/pages/Aliases/containers/AliasActions/index.tsx b/public/pages/Aliases/containers/AliasActions/index.tsx index 0b467d78e..9601e856b 100644 --- a/public/pages/Aliases/containers/AliasActions/index.tsx +++ b/public/pages/Aliases/containers/AliasActions/index.tsx @@ -54,7 +54,7 @@ export default function AliasesActions(props: AliasesActionsProps) { <> Actions diff --git a/public/pages/Aliases/containers/CreateAlias/__snapshots__/CreateAlias.test.tsx.snap b/public/pages/Aliases/containers/CreateAlias/__snapshots__/CreateAlias.test.tsx.snap index 68c15e74f..2103c2ef7 100644 --- a/public/pages/Aliases/containers/CreateAlias/__snapshots__/CreateAlias.test.tsx.snap +++ b/public/pages/Aliases/containers/CreateAlias/__snapshots__/CreateAlias.test.tsx.snap @@ -232,7 +232,6 @@ HTMLCollection [ - EuiIconMock diff --git a/public/pages/Aliases/containers/CreateAlias/index.tsx b/public/pages/Aliases/containers/CreateAlias/index.tsx index dd50a20bf..a72291886 100644 --- a/public/pages/Aliases/containers/CreateAlias/index.tsx +++ b/public/pages/Aliases/containers/CreateAlias/index.tsx @@ -206,7 +206,6 @@ export default function CreateAlias(props: ICreateAliasProps) { fill color="primary" data-test-subj="createAliasButton" - iconType={isEdit ? undefined : "plus"} onClick={async () => { const { errors, values } = (await formGenerateRef.current?.validatePromise()) || {}; if (errors) { diff --git a/public/pages/CreateIndex/containers/IndexForm/index.tsx b/public/pages/CreateIndex/containers/IndexForm/index.tsx index ebd911e56..8376db37f 100644 --- a/public/pages/CreateIndex/containers/IndexForm/index.tsx +++ b/public/pages/CreateIndex/containers/IndexForm/index.tsx @@ -463,7 +463,6 @@ export class IndexForm extends Component {hideButtons ? null : ( <> - @@ -472,13 +471,7 @@ export class IndexForm extends Component - + {isEdit ? "Update" : "Create"} diff --git a/public/pages/CreateIndexTemplate/containers/TemplateDetail/TemplateDetail.tsx b/public/pages/CreateIndexTemplate/containers/TemplateDetail/TemplateDetail.tsx index bbe0f4784..d4d9c8720 100644 --- a/public/pages/CreateIndexTemplate/containers/TemplateDetail/TemplateDetail.tsx +++ b/public/pages/CreateIndexTemplate/containers/TemplateDetail/TemplateDetail.tsx @@ -503,7 +503,6 @@ const TemplateDetail = (props: TemplateDetailProps, ref: Ref) => }} isLoading={isSubmitting} data-test-subj="CreateIndexTemplateCreateButton" - iconType={"plus"} > Create template diff --git a/public/pages/CreateIndexTemplate/containers/TemplateDetail/__snapshots__/TemplateDetail.test.tsx.snap b/public/pages/CreateIndexTemplate/containers/TemplateDetail/__snapshots__/TemplateDetail.test.tsx.snap index 11270dbc5..c042f03bb 100644 --- a/public/pages/CreateIndexTemplate/containers/TemplateDetail/__snapshots__/TemplateDetail.test.tsx.snap +++ b/public/pages/CreateIndexTemplate/containers/TemplateDetail/__snapshots__/TemplateDetail.test.tsx.snap @@ -1262,7 +1262,6 @@ exports[` spec render component in non-edit-mode 1`] = ` - EuiIconMock diff --git a/public/pages/Indices/containers/IndicesActions/index.tsx b/public/pages/Indices/containers/IndicesActions/index.tsx index 3b88e607a..9640af9c3 100644 --- a/public/pages/Indices/containers/IndicesActions/index.tsx +++ b/public/pages/Indices/containers/IndicesActions/index.tsx @@ -137,7 +137,7 @@ export default function IndicesActions(props: IndicesActionsProps) { {({ onShow }) => ( Actions diff --git a/public/pages/ManagedIndices/components/ManagedIndexControls/ManagedIndexControls.tsx b/public/pages/ManagedIndices/components/ManagedIndexControls/ManagedIndexControls.tsx index ad32ccdff..02a694f77 100644 --- a/public/pages/ManagedIndices/components/ManagedIndexControls/ManagedIndexControls.tsx +++ b/public/pages/ManagedIndices/components/ManagedIndexControls/ManagedIndexControls.tsx @@ -9,21 +9,14 @@ import { ArgsWithError, EuiFlexGroup, EuiFlexItem, - EuiPagination, EuiSearchBar, EuiCompressedSwitch, - EuiButton, - EuiPopover, - EuiContextMenuPanel, EuiButtonIcon, EuiButtonEmpty, EuiSpacer, } from "@elastic/eui"; import { DataStream } from "../../../../../server/models/interfaces"; -import { ManagedIndices } from "../../containers/ManagedIndices/ManagedIndices"; -import { ManagedIndexItem } from "plugins/index-management-dashboards-plugin/models/interfaces"; import { getUISettings } from "../../../../services/Services"; -import { size } from "lodash"; interface ManagedIndexControlsProps { search: string; diff --git a/public/pages/ManagedIndices/containers/ManagedIndices/ManagedIndices.tsx b/public/pages/ManagedIndices/containers/ManagedIndices/ManagedIndices.tsx index a22cb9571..1c52b62e9 100644 --- a/public/pages/ManagedIndices/containers/ManagedIndices/ManagedIndices.tsx +++ b/public/pages/ManagedIndices/containers/ManagedIndices/ManagedIndices.tsx @@ -601,7 +601,7 @@ export class ManagedIndices extends MDSEnabledComponent diff --git a/public/pages/ShrinkIndex/container/ShrinkIndex/ShrinkIndex.tsx b/public/pages/ShrinkIndex/container/ShrinkIndex/ShrinkIndex.tsx index 6a1e68dbd..a14f36a1c 100644 --- a/public/pages/ShrinkIndex/container/ShrinkIndex/ShrinkIndex.tsx +++ b/public/pages/ShrinkIndex/container/ShrinkIndex/ShrinkIndex.tsx @@ -705,7 +705,6 @@ class ShrinkIndex extends Component { operationType={OperationType.SHRINK} /> - diff --git a/public/pages/ShrinkIndex/container/ShrinkIndex/__snapshots__/ShrinkIndex.test.tsx.snap b/public/pages/ShrinkIndex/container/ShrinkIndex/__snapshots__/ShrinkIndex.test.tsx.snap index 2a3c40d49..c7fc7e302 100644 --- a/public/pages/ShrinkIndex/container/ShrinkIndex/__snapshots__/ShrinkIndex.test.tsx.snap +++ b/public/pages/ShrinkIndex/container/ShrinkIndex/__snapshots__/ShrinkIndex.test.tsx.snap @@ -841,9 +841,6 @@ exports[` spec renders the component 1`] = `
-
diff --git a/public/pages/Templates/containers/TemplatesActions/index.tsx b/public/pages/Templates/containers/TemplatesActions/index.tsx index d92d26094..d35a2e8c5 100644 --- a/public/pages/Templates/containers/TemplatesActions/index.tsx +++ b/public/pages/Templates/containers/TemplatesActions/index.tsx @@ -36,7 +36,7 @@ export default function TemplatesActions(props: TemplatesActionsProps) { <> Actions diff --git a/public/pages/Transforms/containers/Transforms/Transforms.tsx b/public/pages/Transforms/containers/Transforms/Transforms.tsx index 3eca49a72..87f3b7ce7 100644 --- a/public/pages/Transforms/containers/Transforms/Transforms.tsx +++ b/public/pages/Transforms/containers/Transforms/Transforms.tsx @@ -293,7 +293,7 @@ export class Transforms extends MDSEnabledComponent @@ -364,7 +364,7 @@ export class Transforms extends MDSEnabledComponent