Skip to content

Commit

Permalink
[Enterprise Search] Modify licensing callout for 8.5 (#140374)
Browse files Browse the repository at this point in the history
  • Loading branch information
sphilipse authored Sep 9, 2022
1 parent 7360c1d commit c182d32
Show file tree
Hide file tree
Showing 4 changed files with 244 additions and 177 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,59 +9,90 @@ import React from 'react';

import { EuiCallOut, EuiFlexGroup, EuiFlexItem, EuiLink } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { FormattedMessage } from '@kbn/i18n-react';

import { docLinks } from '../../../shared/doc_links/doc_links';

export const LicensingCallout: React.FC = () => (
<EuiCallOut
title={i18n.translate('xpack.enterpriseSearch.content.licensingCallout.title', {
defaultMessage: 'Platinum features',
})}
>
<p>
{i18n.translate('xpack.enterpriseSearch.content.licensingCallout.contentOne', {
export enum LICENSING_FEATURE {
NATIVE_CONNECTOR = 'nativeConnector',
CRAWLER = 'crawler',
INFERENCE = 'inference',
}

type ContentBlock = Record<LICENSING_FEATURE, string>;

export const LicensingCallout: React.FC<{ feature: LICENSING_FEATURE }> = ({ feature }) => {
const firstContentBlock: ContentBlock = {
[LICENSING_FEATURE.NATIVE_CONNECTOR]: i18n.translate(
'xpack.enterpriseSearch.content.licensingCallout.nativeConnector.contentOne',
{
defaultMessage:
'This feature requires a Platinum license or higher. From 8.5 this feature will be unavailable to Standard license self-managed deployments.',
})}
</p>
<p>
<FormattedMessage
id="xpack.enterpriseSearch.content.licensingCallout.contentTwoDetail"
defaultMessage="You will continue to be able to use web crawlers created in previous versions in 8.5. However, you won't be able to create {strongNew} web crawlers without a Platinum license or higher."
values={{
strongNew: (
<strong>
<FormattedMessage
id="xpack.enterpriseSearch.content.licensingCallout.contentTwoStrongNew"
defaultMessage="new"
/>
</strong>
),
}}
/>
</p>
<p>
{i18n.translate('xpack.enterpriseSearch.content.licensingCallout.contentThree', {
'Built-in connectors require a Platinum license or higher and are not available to Standard license self-managed deployments. You need to upgrade to use this feature.',
}
),
[LICENSING_FEATURE.CRAWLER]: i18n.translate(
'xpack.enterpriseSearch.content.licensingCallout.crawler.contentOne',
{
defaultMessage:
"Did you know that the web crawler is available with a Standard Elastic Cloud license? Elastic Cloud gives you the flexibility to run where you want. Deploy our managed service on Google Cloud, Microsoft Azure, or Amazon Web Services, and we'll handle the maintenance and upkeep for you.",
'The web crawler requires a Platinum license or higher and is not available to Standard license self-managed deployments. You need to upgrade to use this feature.',
}
),
[LICENSING_FEATURE.INFERENCE]: i18n.translate(
'xpack.enterpriseSearch.content.licensingCallout.inference.contentOne',
{
defaultMessage:
'Inference processors require a Platinum license or higher and are not available to Standard license self-managed deployments. You need to upgrade to use this feature.',
}
),
};

const secondContentBlock: ContentBlock = {
[LICENSING_FEATURE.NATIVE_CONNECTOR]: i18n.translate(
'xpack.enterpriseSearch.content.licensingCallout.contentTwo',
{
defaultMessage:
"Did you know that built-in connectors are available with a Standard Elastic Cloud license? Elastic Cloud gives you the flexibility to run where you want. Deploy our managed service on Google Cloud, Microsoft Azure, or Amazon Web Services, and we'll handle the maintenance and upkeep for you.",
}
),
[LICENSING_FEATURE.CRAWLER]: i18n.translate(
'xpack.enterpriseSearch.content.licensingCallout.crawler.contentTwo',
{
defaultMessage:
"Did you know that web crawlers are available with a Standard Elastic Cloud license? Elastic Cloud gives you the flexibility to run where you want. Deploy our managed service on Google Cloud, Microsoft Azure, or Amazon Web Services, and we'll handle the maintenance and upkeep for you.",
}
),
[LICENSING_FEATURE.INFERENCE]: i18n.translate(
'xpack.enterpriseSearch.content.licensingCallout.inference.contentTwo',
{
defaultMessage:
"Did you know that inference processors are available with a Standard Elastic Cloud license? Elastic Cloud gives you the flexibility to run where you want. Deploy our managed service on Google Cloud, Microsoft Azure, or Amazon Web Services, and we'll handle the maintenance and upkeep for you.",
}
),
};

return (
<EuiCallOut
title={i18n.translate('xpack.enterpriseSearch.content.licensingCallout.title', {
defaultMessage: 'Platinum features',
})}
</p>
<EuiFlexGroup>
<EuiFlexItem>
<EuiLink external href={docLinks.licenseManagement}>
{i18n.translate('xpack.enterpriseSearch.workplaceSearch.explorePlatinumFeatures.link', {
defaultMessage: 'Explore Platinum features',
})}
</EuiLink>
</EuiFlexItem>
<EuiFlexItem>
<EuiLink href="https://www.elastic.co/cloud/elasticsearch-service/signup" external>
{i18n.translate('xpack.enterpriseSearch.content.licensingCallout.contentCloudTrial', {
defaultMessage: 'Sign up for a free 14-day Elastic Cloud trial.',
})}
</EuiLink>
</EuiFlexItem>
</EuiFlexGroup>
</EuiCallOut>
);
>
<p>{firstContentBlock[feature]}</p>
<p>{secondContentBlock[feature]}</p>
<EuiFlexGroup>
<EuiFlexItem>
<EuiLink external href={docLinks.licenseManagement}>
{i18n.translate('xpack.enterpriseSearch.workplaceSearch.explorePlatinumFeatures.link', {
defaultMessage: 'Explore Platinum features',
})}
</EuiLink>
</EuiFlexItem>
<EuiFlexItem>
<EuiLink href="https://www.elastic.co/cloud/elasticsearch-service/signup" external>
{i18n.translate('xpack.enterpriseSearch.content.licensingCallout.contentCloudTrial', {
defaultMessage: 'Sign up for a free 14-day Elastic Cloud trial.',
})}
</EuiLink>
</EuiFlexItem>
</EuiFlexGroup>
</EuiCallOut>
);
};
Loading

0 comments on commit c182d32

Please sign in to comment.