diff --git a/public/pages/Aliases/containers/Aliases/Aliases.tsx b/public/pages/Aliases/containers/Aliases/Aliases.tsx index f1cc6c282..05b87d9c8 100644 --- a/public/pages/Aliases/containers/Aliases/Aliases.tsx +++ b/public/pages/Aliases/containers/Aliases/Aliases.tsx @@ -24,6 +24,7 @@ import { EuiCompressedFormRow, EuiEmptyPrompt, EuiSmallButton, + EuiPanel, } from "@elastic/eui"; import { ContentPanel, ContentPanelActions } from "../../../../components/ContentPanel"; import { DEFAULT_PAGE_SIZE_OPTIONS, DEFAULT_QUERY_PARAMS } from "../../utils/constants"; @@ -471,7 +472,7 @@ class Aliases extends MDSEnabledComponent { } as TopNavControlButtonData, ]} /> - + { history={this.props.history} /> {commonRender()} - + ) : ( +

Template type

+ + ), description: TemplateConvert({ value: values.data_stream, }), }, { - title: "Index patterns", + title: ( + +

Index patterns

+
+ ), description: values.index_patterns?.join(", "), }, { - title: "Priority", + title: ( + +

Priority

+
+ ), description: values.priority, }, { - title: "Associated component templates", + title: ( + +

Associated component templates

+
+ ), description: (values.composed_of || []).length ? (values.composed_of || []).map((item) => (
diff --git a/public/pages/CreateIndexTemplate/components/IndexSettings/IndexSettings.tsx b/public/pages/CreateIndexTemplate/components/IndexSettings/IndexSettings.tsx index 0196df932..2694d8936 100644 --- a/public/pages/CreateIndexTemplate/components/IndexSettings/IndexSettings.tsx +++ b/public/pages/CreateIndexTemplate/components/IndexSettings/IndexSettings.tsx @@ -28,15 +28,27 @@ export default function IndexSettings(props: SubDetailProps) { columns={columns} listItems={[ { - title: "Number of primary shards", + title: ( + +

Number of primary shards

+
+ ), description: values.template?.settings?.["index.number_of_shards"] || "-", }, { - title: "Number of replicas", + title: ( + +

Number of replicas

+
+ ), description: values.template?.settings?.["index.number_of_replicas"] || "-", }, { - title: "Refresh interval", + title: ( + +

Refresh interval

+
+ ), description: values.template?.settings?.["index.refresh_interval"] || "-", }, ]} diff --git a/public/pages/CreateIndexTemplate/components/TemplateType/TemplateType.tsx b/public/pages/CreateIndexTemplate/components/TemplateType/TemplateType.tsx index 5c42e150d..06b640342 100644 --- a/public/pages/CreateIndexTemplate/components/TemplateType/TemplateType.tsx +++ b/public/pages/CreateIndexTemplate/components/TemplateType/TemplateType.tsx @@ -2,7 +2,7 @@ * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ -import { EuiCompressedRadio, EuiSpacer } from "@elastic/eui"; +import { EuiCompressedRadio, EuiSpacer, EuiText } from "@elastic/eui"; import { TEMPLATE_TYPE } from "../../../../utils/constants"; import React from "react"; import { AllBuiltInComponents } from "../../../../components/FormGenerator"; @@ -43,7 +43,13 @@ export default function TemplateType(props: ITemplateTypeProps) { {value !== undefined ? ( <> - + +

Time field

+ + } + > { diff --git a/public/pages/CreateIndexTemplate/containers/CreateIndexTemplate/__snapshots__/CreateIndexTemplate.test.tsx.snap b/public/pages/CreateIndexTemplate/containers/CreateIndexTemplate/__snapshots__/CreateIndexTemplate.test.tsx.snap index cc7bea91e..0859744a4 100644 --- a/public/pages/CreateIndexTemplate/containers/CreateIndexTemplate/__snapshots__/CreateIndexTemplate.test.tsx.snap +++ b/public/pages/CreateIndexTemplate/containers/CreateIndexTemplate/__snapshots__/CreateIndexTemplate.test.tsx.snap @@ -84,7 +84,13 @@ exports[` spec render template pages 1`] = `
- Template type +
+

+ Template type +

+
spec render template pages 1`] = `
- Index patterns +
+

+ Index patterns +

+
spec render template pages 1`] = `
- Priority +
+

+ Priority +

+
spec render template pages 1`] = `
- Associated component templates +
+

+ Associated component templates +

+
spec render template pages 1`] = `
- Alias names +
+

+ Alias names +

+
spec render template pages 1`] = `
- Number of primary shards +
+

+ Number of primary shards +

+
spec render template pages 1`] = `
- Number of replicas +
+

+ Number of replicas +

+
spec render template pages 1`] = `
- Refresh interval +
+

+ Refresh interval +

+
+

Alias names

+ + ), description: Object.keys(values?.template?.aliases || {}).join(",") || "-", }, ]} diff --git a/public/pages/ManagedIndices/containers/ManagedIndices/ManagedIndices.tsx b/public/pages/ManagedIndices/containers/ManagedIndices/ManagedIndices.tsx index 9d3065110..a22cb9571 100644 --- a/public/pages/ManagedIndices/containers/ManagedIndices/ManagedIndices.tsx +++ b/public/pages/ManagedIndices/containers/ManagedIndices/ManagedIndices.tsx @@ -28,6 +28,7 @@ import { EuiContextMenuItem, EuiPopover, EuiContextMenuPanel, + EuiPanel, } from "@elastic/eui"; import queryString from "query-string"; import _ from "lodash"; @@ -656,7 +657,7 @@ export class ManagedIndices extends MDSEnabledComponent
- + {CommonTable()} - + {RemovePolicyModal()}
diff --git a/public/pages/Templates/containers/Templates/Templates.tsx b/public/pages/Templates/containers/Templates/Templates.tsx index aa47248e0..95c71b21c 100644 --- a/public/pages/Templates/containers/Templates/Templates.tsx +++ b/public/pages/Templates/containers/Templates/Templates.tsx @@ -23,6 +23,7 @@ import { EuiText, EuiToolTip, EuiSmallButtonIcon, + EuiPanel, } from "@elastic/eui"; import { ContentPanel, ContentPanelActions } from "../../../../components/ContentPanel"; import { DEFAULT_PAGE_SIZE_OPTIONS, DEFAULT_QUERY_PARAMS } from "../../utils/constants"; @@ -343,6 +344,7 @@ class Templates extends MDSEnabledComponent { onClick={() => { this.props.history.push(ROUTES.CREATE_TEMPLATE); }} + iconType="plus" > Create template , @@ -351,7 +353,7 @@ class Templates extends MDSEnabledComponent { ) : ( +

There are no templates matching your applied filters. Reset your filters to view your templates.

} @@ -415,7 +417,7 @@ class Templates extends MDSEnabledComponent { } as TopNavControlButtonData, ]} /> - + { /> {commonTable()} - +
) : ( spec renders the component 1`] = ` + EuiIconMock