Skip to content

Commit

Permalink
[Cloud Posture] remove beta tag (#140949)
Browse files Browse the repository at this point in the history
  • Loading branch information
orouz authored Sep 19, 2022
1 parent beea080 commit 19c4188
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,14 @@
*/

import React from 'react';
import { i18n } from '@kbn/i18n';
import { EuiBetaBadge, EuiFlexGroup, EuiFlexItem, EuiTitle } from '@elastic/eui';
import { css } from '@emotion/react';
import { EuiFlexGroup, EuiFlexItem, EuiTitle } from '@elastic/eui';

export const CloudPosturePageTitle = ({ title, isBeta }: { title: string; isBeta: boolean }) => (
export const CloudPosturePageTitle = ({ title }: { title: string }) => (
<EuiFlexGroup alignItems="center" gutterSize="s">
<EuiFlexItem grow={false}>
<EuiTitle>
<h1>{title}</h1>
</EuiTitle>
</EuiFlexItem>
{isBeta && (
<EuiFlexItem
grow={false}
css={css`
// tooltipContent wraps EuiBetaBadge with a span element which breaks alignment
.euiToolTipAnchor {
display: flex;
}
`}
>
<EuiBetaBadge
label={i18n.translate('xpack.csp.common.cloudPosturePageTitle.BetaBadgeLabel', {
defaultMessage: 'Beta',
})}
tooltipContent={i18n.translate(
'xpack.csp.common.cloudPosturePageTitle.BetaBadgeTooltip',
{
defaultMessage:
'This functionality is in beta and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but features in beta are not subject to the support SLA of official GA features.',
}
)}
/>
</EuiFlexItem>
)}
</EuiFlexGroup>
);
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ export const Benchmarks = () => {
data-test-subj={TEST_SUBJ.BENCHMARKS_PAGE_HEADER}
pageTitle={
<CloudPosturePageTitle
isBeta
title={i18n.translate(
'xpack.csp.benchmarks.benchmarksPageHeader.benchmarkIntegrationsTitle',
{ defaultMessage: 'Benchmark Integrations' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export const ComplianceDashboard = () => {
bottomBorder
pageTitle={
<CloudPosturePageTitle
isBeta
title={i18n.translate('xpack.csp.dashboard.cspPageTemplate.pageTitle', {
defaultMessage: 'Cloud Posture',
})}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ const LatestFindingsPageTitle = () => (
<PageTitleText
title={
<CloudPosturePageTitle
isBeta
title={i18n.translate('xpack.csp.findings.latestFindings.latestFindingsPageTitle', {
defaultMessage: 'Findings',
})}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ const LatestFindingsByResource = ({ dataView }: FindingsBaseProps) => {
<PageTitleText
title={
<CloudPosturePageTitle
isBeta
title={i18n.translate(
'xpack.csp.findings.findingsByResource.findingsByResourcePageTitle',
{ defaultMessage: 'Findings' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ export const ResourceFindings = ({ dataView }: FindingsBaseProps) => {
<PageTitleText
title={
<CloudPosturePageTitle
isBeta
title={i18n.translate(
'xpack.csp.findings.resourceFindings.resourceFindingsPageTitle',
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ export const Rules = ({ match: { params } }: RouteComponentProps<PageUrlParams>)
</EuiButtonEmpty>
</Link>
<CloudPosturePageTitle
isBeta
title={i18n.translate('xpack.csp.rules.rulePageHeader.pageHeaderTitle', {
defaultMessage: 'Rules - {integrationName}',
values: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { IconExceptionLists } from '../management/icons/exception_lists';
const commonLinkProperties: Partial<LinkItem> = {
hideTimeline: true,
capabilities: [`${SERVER_APP_ID}.show`],
isBeta: true,
};

export const rootLinks: LinkItem = {
Expand Down

0 comments on commit 19c4188

Please sign in to comment.