Skip to content

Commit

Permalink
add optional badge
Browse files Browse the repository at this point in the history
  • Loading branch information
saarikabhasi committed Apr 30, 2024
1 parent 3baa1af commit 323136f
Showing 1 changed file with 17 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
EuiPageTemplate,
EuiPanel,
EuiText,
EuiBadge,
} from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import {
Expand Down Expand Up @@ -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<LanguageDefinition>(javaDefinition);
Expand Down Expand Up @@ -243,10 +245,21 @@ export const ElasticsearchOverview = () => {
data-test-subj="preprocess-data-section"
>
<OverviewPanel
description={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.",
})}
description={
<EuiFlexGroup direction="column">
<EuiFlexItem grow={false}>
<div>
<EuiBadge>{OPTIONAL_LABEL}</EuiBadge>
</div>
</EuiFlexItem>
<EuiFlexItem>
{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.",
})}
</EuiFlexItem>
</EuiFlexGroup>
}
leftPanelContent={<PreprocessDataPanel />}
links={[]}
title={i18n.translate('xpack.serverlessSearch.preprocessData.title', {
Expand Down

0 comments on commit 323136f

Please sign in to comment.