From f419eba33d8c9799ab2192e3bb83eb4aae37f217 Mon Sep 17 00:00:00 2001 From: kohinoor98 Date: Thu, 16 Nov 2023 02:26:05 -0800 Subject: [PATCH 1/4] increased width for indices index column Signed-off-by: kohinoor98 --- public/pages/Indices/utils/constants.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/pages/Indices/utils/constants.tsx b/public/pages/Indices/utils/constants.tsx index a529f712a..543cc0384 100644 --- a/public/pages/Indices/utils/constants.tsx +++ b/public/pages/Indices/utils/constants.tsx @@ -45,7 +45,7 @@ const getColumns = (props: IColumnOptions): EuiTableFieldDataColumnType { return ; }, From b262a018de2ba4ee65c60287b0b35ae17f099dd5 Mon Sep 17 00:00:00 2001 From: kohinoor98 Date: Thu, 16 Nov 2023 02:38:23 -0800 Subject: [PATCH 2/4] changing page size options for indices page Signed-off-by: kohinoor98 --- public/pages/Indices/containers/Indices/Indices.tsx | 4 ++-- public/pages/Indices/utils/constants.tsx | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/public/pages/Indices/containers/Indices/Indices.tsx b/public/pages/Indices/containers/Indices/Indices.tsx index 2d882693e..94d269a66 100644 --- a/public/pages/Indices/containers/Indices/Indices.tsx +++ b/public/pages/Indices/containers/Indices/Indices.tsx @@ -24,7 +24,7 @@ import { import { ContentPanel, ContentPanelActions } from "../../../../components/ContentPanel"; import IndexControls from "../../components/IndexControls"; import IndexEmptyPrompt from "../../components/IndexEmptyPrompt"; -import { DEFAULT_PAGE_SIZE_OPTIONS, DEFAULT_QUERY_PARAMS, indicesColumns } from "../../utils/constants"; +import { DEFAULT_PAGE_SIZE_OPTIONS_INDICES, DEFAULT_QUERY_PARAMS, indicesColumns } from "../../utils/constants"; import IndexService from "../../../../services/IndexService"; import CommonService from "../../../../services/CommonService"; import { DataStream, ManagedCatIndex } from "../../../../../server/models/interfaces"; @@ -214,7 +214,7 @@ export default class Indices extends Component { const pagination: Pagination = { pageIndex: page, pageSize: size, - pageSizeOptions: DEFAULT_PAGE_SIZE_OPTIONS, + pageSizeOptions: DEFAULT_PAGE_SIZE_OPTIONS_INDICES, totalItemCount: totalIndices, }; diff --git a/public/pages/Indices/utils/constants.tsx b/public/pages/Indices/utils/constants.tsx index 543cc0384..ac7e98d67 100644 --- a/public/pages/Indices/utils/constants.tsx +++ b/public/pages/Indices/utils/constants.tsx @@ -14,6 +14,7 @@ const renderNumber = (value) => { }; export const DEFAULT_PAGE_SIZE_OPTIONS = [5, 10, 20, 50]; +export const DEFAULT_PAGE_SIZE_OPTIONS_INDICES = [10, 20, 50, 100, 500]; export const DEFAULT_QUERY_PARAMS = { from: 0, From e84dd3f31aa2e6bed55807f89884edfa455fe264 Mon Sep 17 00:00:00 2001 From: kohinoor98 Date: Thu, 16 Nov 2023 02:52:23 -0800 Subject: [PATCH 3/4] snapshot changes Signed-off-by: kohinoor98 --- .../containers/Indices/__snapshots__/Indices.test.tsx.snap | 2 +- .../__snapshots__/AssociatedComponentsModal.test.tsx.snap | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/public/pages/Indices/containers/Indices/__snapshots__/Indices.test.tsx.snap b/public/pages/Indices/containers/Indices/__snapshots__/Indices.test.tsx.snap index 493fc52b4..6960e513f 100644 --- a/public/pages/Indices/containers/Indices/__snapshots__/Indices.test.tsx.snap +++ b/public/pages/Indices/containers/Indices/__snapshots__/Indices.test.tsx.snap @@ -303,7 +303,7 @@ exports[` spec renders the component 1`] = ` data-test-subj="tableHeaderCell_index_0" role="columnheader" scope="col" - style="width: 250px;" + style="width: 320px;" >