-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Rollups] Add deprecated prompt (#185896)
Closes #185861 ## Summary This PR replaces the empty prompt in Rollup Jobs with a deprecation prompt: <img width="1494" alt="Screenshot 2024-06-10 at 17 55 38" src="https://github.com/elastic/kibana/assets/59341489/dd245836-6e9b-4efd-9657-74e2c372059f"> <br> <br> **How to test:** 1. Start Es and Kibana 2. Go to Stack Management -> Rollup Jobs 3. Since there are no existing rollup jobs, verify that the deprecation prompt is displayed and the Downsampling documentation link is correct. ### Checklist - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md) - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] Any UI touched in this PR is usable by keyboard only (learn more about [keyboard accessibility](https://webaim.org/techniques/keyboard/)) - [x] Any UI touched in this PR does not create any new axe failures (run axe in browser: [FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/), [Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US)) - [x] This renders correctly on smaller devices using a responsive layout. (You can test this [in your browser](https://www.browserstack.com/guide/responsive-testing-on-local-server)) - [x] This was checked for [cross-browser compatibility](https://www.elastic.co/support/matrix#matrix_browsers)
- Loading branch information
1 parent
c7b5af6
commit 1cca809
Showing
10 changed files
with
68 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
x-pack/plugins/rollup/public/crud_app/sections/job_list/deprecated_prompt.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
* 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 React, { Fragment } from 'react'; | ||
import { FormattedMessage } from '@kbn/i18n-react'; | ||
import { EuiButton, EuiEmptyPrompt, EuiPageSection } from '@elastic/eui'; | ||
import { documentationLinks } from '../../services/documentation_links'; | ||
|
||
export const DeprecatedPrompt = () => { | ||
return ( | ||
<EuiPageSection alignment="center" grow={true}> | ||
<EuiEmptyPrompt | ||
color="primary" | ||
data-test-subj="jobListDeprecatedPrompt" | ||
iconType="iInCircle" | ||
title={ | ||
<h1> | ||
<FormattedMessage | ||
id="xpack.rollupJobs.deprecatedPromptTitle" | ||
defaultMessage="Deprecated in 8.11.0" | ||
/> | ||
</h1> | ||
} | ||
body={ | ||
<Fragment> | ||
<p> | ||
<FormattedMessage | ||
id="xpack.rollupJobs.deprecatedPromptDescription" | ||
defaultMessage="Rollups are deprecated and will be removed in a future version. Use downsampling instead." | ||
/> | ||
</p> | ||
</Fragment> | ||
} | ||
actions={ | ||
<EuiButton | ||
href={documentationLinks.fleet.datastreamsDownsampling} | ||
target="_blank" | ||
fill | ||
iconType="help" | ||
> | ||
<FormattedMessage | ||
id="xpack.rollupJobs.deprecatedPrompt.downsamplingDocsButtonLabel" | ||
defaultMessage="Downsampling docs" | ||
/> | ||
</EuiButton> | ||
} | ||
/> | ||
</EuiPageSection> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters