From 323136f58465f5b134149fa05bbfda0be2ca48d2 Mon Sep 17 00:00:00 2001 From: saarikabhasi Date: Tue, 30 Apr 2024 13:51:25 -0400 Subject: [PATCH] add optional badge --- .../application/components/overview.tsx | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/x-pack/plugins/serverless_search/public/application/components/overview.tsx b/x-pack/plugins/serverless_search/public/application/components/overview.tsx index fd953436cbd32..b28e7fd18c115 100644 --- a/x-pack/plugins/serverless_search/public/application/components/overview.tsx +++ b/x-pack/plugins/serverless_search/public/application/components/overview.tsx @@ -15,6 +15,7 @@ import { EuiPageTemplate, EuiPanel, EuiText, + EuiBadge, } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { @@ -53,6 +54,7 @@ import { ConnectorIngestionPanel } from './connectors_ingestion'; import { PipelineButtonOverview } from './pipeline_button_overview'; import { SelectClientCallouts } from './select_client_callouts'; import { PipelineManageButton } from './pipeline_manage_button'; +import { OPTIONAL_LABEL } from '../../../common/i18n_string'; export const ElasticsearchOverview = () => { const [selectedLanguage, setSelectedLanguage] = useState(javaDefinition); @@ -243,10 +245,21 @@ export const ElasticsearchOverview = () => { data-test-subj="preprocess-data-section" > + +
+ {OPTIONAL_LABEL} +
+
+ + {i18n.translate('xpack.serverlessSearch.preprocessData.description', { + defaultMessage: + "Use ingest pipelines to preprocess your data before it's indexed into Elasticsearch, which is often much easier and cheaper than post-processing. Use any combination of ingest processors to add, delete, or transform fields in your documents.", + })} + + + } leftPanelContent={} links={[]} title={i18n.translate('xpack.serverlessSearch.preprocessData.title', {