Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BeatsCM] Add deprecation warning to all Beats CM pages. #90741

Merged
merged 1 commit into from
Feb 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions x-pack/plugins/beats_management/public/application.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@

import * as euiVars from '@elastic/eui/dist/eui_theme_light.json';
import { i18n } from '@kbn/i18n';
import { FormattedMessage } from '@kbn/i18n/react';
import React from 'react';
import ReactDOM from 'react-dom';
import { Router } from 'react-router-dom';
import { ThemeProvider } from 'styled-components';
import { Provider as UnstatedProvider, Subscribe } from 'unstated';
import { EuiCallOut, EuiLink, EuiSpacer } from '@elastic/eui';
import { Background } from './components/layouts/background';
import { BreadcrumbProvider } from './components/navigation/breadcrumb';
import { Breadcrumb } from './components/navigation/breadcrumb/breadcrumb';
Expand All @@ -37,6 +39,38 @@ export const renderApp = ({ element, history }: ManagementAppMountParams, libs:
defaultMessage: 'Management',
})}
/>
<EuiCallOut
title={i18n.translate('xpack.beatsManagement.management.deprecationTitle', {
defaultMessage: 'Beats central management has been deprecated',
})}
color="warning"
iconType="help"
>
<p>
<FormattedMessage
id="xpack.beatsManagement.management.deprecationMessage"
defaultMessage="We have ceased development on Beats central management and are working on a
comprehensive solution to replace it. Thank you for participating in the
beta and providing feedback. If you have any questions or concerns, please
reach out to us on the {forumLink}."
values={{
forumLink: (
<EuiLink
href="https://discuss.elastic.co/c/beats"
external
target="_blank"
>
<FormattedMessage
id="xpack.beatsManagement.management.forumLink"
defaultMessage="Discuss forum"
/>
</EuiLink>
),
}}
/>
</p>
</EuiCallOut>
<EuiSpacer />
<AppRouter libs={libs} beatsContainer={beats} tagsContainer={tags} />
</Background>
)}
Expand Down