mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[ML] Data visualizer: Removes experimental badge from file data visualizer (#104075)
* [ML] Data visualizer: Removes experimental badge from file data visualizer * [ML] Remove experimental badge scss import
This commit is contained in:
parent
bc99bb0399
commit
03c713123c
10 changed files with 2 additions and 124 deletions
|
@ -1,4 +1,3 @@
|
|||
@import 'embedded_map/index';
|
||||
@import 'experimental_badge/index';
|
||||
@import 'stats_table/index';
|
||||
@import 'top_values/top_values';
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
.experimental-badge.euiBetaBadge {
|
||||
font-size: 10px;
|
||||
vertical-align: middle;
|
||||
margin-bottom: 5px;
|
||||
padding: 0 20px;
|
||||
line-height: 20px;
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
@import 'experimental_badge'
|
|
@ -1,28 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
import { FormattedMessage } from '@kbn/i18n/react';
|
||||
import React, { FC } from 'react';
|
||||
|
||||
import { EuiBetaBadge } from '@elastic/eui';
|
||||
|
||||
export const ExperimentalBadge: FC<{ tooltipContent: string }> = ({ tooltipContent }) => {
|
||||
return (
|
||||
<span>
|
||||
<EuiBetaBadge
|
||||
className="experimental-badge"
|
||||
label={
|
||||
<FormattedMessage
|
||||
id="xpack.dataVisualizer.experimentalBadge.experimentalLabel"
|
||||
defaultMessage="Experimental"
|
||||
/>
|
||||
}
|
||||
tooltipContent={tooltipContent}
|
||||
/>
|
||||
</span>
|
||||
);
|
||||
};
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
export { ExperimentalBadge } from './experimental_badge';
|
|
@ -7,30 +7,12 @@
|
|||
|
||||
import { FormattedMessage } from '@kbn/i18n/react';
|
||||
import React, { FC } from 'react';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
import {
|
||||
EuiFlexGroup,
|
||||
EuiFlexItem,
|
||||
EuiIcon,
|
||||
EuiLink,
|
||||
EuiSpacer,
|
||||
EuiText,
|
||||
EuiTitle,
|
||||
} from '@elastic/eui';
|
||||
|
||||
import { ExperimentalBadge } from '../../../common/components/experimental_badge';
|
||||
import { EuiFlexGroup, EuiFlexItem, EuiIcon, EuiSpacer, EuiText, EuiTitle } from '@elastic/eui';
|
||||
|
||||
import { useDataVisualizerKibana } from '../../../kibana_context';
|
||||
|
||||
export const WelcomeContent: FC = () => {
|
||||
const toolTipContent = i18n.translate(
|
||||
'xpack.dataVisualizer.file.welcomeContent.experimentalFeatureTooltip',
|
||||
{
|
||||
defaultMessage: "Experimental feature. We'd love to hear your feedback.",
|
||||
}
|
||||
);
|
||||
|
||||
const {
|
||||
services: {
|
||||
fileUpload: { getMaxBytesFormatted },
|
||||
|
@ -48,10 +30,7 @@ export const WelcomeContent: FC = () => {
|
|||
<h1>
|
||||
<FormattedMessage
|
||||
id="xpack.dataVisualizer.file.welcomeContent.visualizeDataFromLogFileTitle"
|
||||
defaultMessage="Visualize data from a log file {experimentalBadge}"
|
||||
values={{
|
||||
experimentalBadge: <ExperimentalBadge tooltipContent={toolTipContent} />,
|
||||
}}
|
||||
defaultMessage="Visualize data from a log file"
|
||||
/>
|
||||
</h1>
|
||||
</EuiTitle>
|
||||
|
@ -132,25 +111,6 @@ export const WelcomeContent: FC = () => {
|
|||
/>
|
||||
</p>
|
||||
</EuiText>
|
||||
<EuiSpacer size="s" />
|
||||
<EuiText>
|
||||
<p>
|
||||
<FormattedMessage
|
||||
id="xpack.dataVisualizer.file.welcomeContent.experimentalFeatureDescription"
|
||||
defaultMessage="This feature is experimental. Got feedback? Please create an issue in {githubLink}."
|
||||
values={{
|
||||
githubLink: (
|
||||
<EuiLink
|
||||
href="https://github.com/elastic/kibana/issues/new/choose"
|
||||
target="_blank"
|
||||
>
|
||||
GitHub
|
||||
</EuiLink>
|
||||
),
|
||||
}}
|
||||
/>
|
||||
</p>
|
||||
</EuiText>
|
||||
</EuiFlexItem>
|
||||
</EuiFlexGroup>
|
||||
);
|
||||
|
|
|
@ -31,7 +31,6 @@ import {
|
|||
addCombinedFieldsToMappings,
|
||||
getDefaultCombinedFields,
|
||||
} from '../../../common/components/combined_fields';
|
||||
import { ExperimentalBadge } from '../../../common/components/experimental_badge';
|
||||
|
||||
const DEFAULT_TIME_FIELD = '@timestamp';
|
||||
const DEFAULT_INDEX_SETTINGS = { number_of_shards: 1 };
|
||||
|
@ -510,15 +509,6 @@ export class ImportView extends Component {
|
|||
id="xpack.dataVisualizer.file.importView.importDataTitle"
|
||||
defaultMessage="Import data"
|
||||
/>
|
||||
|
||||
<ExperimentalBadge
|
||||
tooltipContent={
|
||||
<FormattedMessage
|
||||
id="xpack.dataVisualizer.file.importView.experimentalFeatureTooltip"
|
||||
defaultMessage="Experimental feature. We'd love to hear your feedback."
|
||||
/>
|
||||
}
|
||||
/>
|
||||
</h2>
|
||||
</EuiTitle>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue