-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate Search Session UX (#187923)
## Summary Part of #186334. Adds a deprecation message to the main components of the Search Sessions feature: the pop-up indicator (used to save search sessions) and the management page (used to restore search sessions). Search sessions indicator: ![image](https://github.com/elastic/kibana/assets/1178348/78c9f078-f01c-4a80-bc30-b60016586a76) Search sessions management UX: ![image](https://github.com/elastic/kibana/assets/1178348/8bbe483a-94e7-41d6-98ca-3e82872a6057) ### 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) - [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [ ] [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 ### Release note Search Sessions are deprecated and will be removed in a future version.
- Loading branch information
1 parent
37845b0
commit 523e304
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
src/plugins/data/public/search/session/search_sessions_deprecation_message.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,40 @@ | ||
/* | ||
* 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 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
import React from 'react'; | ||
import { i18n } from '@kbn/i18n'; | ||
import { FormattedMessage } from '@kbn/i18n-react'; | ||
import { EuiCallOut } from '@elastic/eui'; | ||
|
||
const searchSessionsDeprecatedWarningTitle = i18n.translate( | ||
'data.searchSessionIndicator.deprecationWarning.title', | ||
{ | ||
defaultMessage: 'Deprecated in 8.15.0', | ||
} | ||
); | ||
|
||
export interface SearchSessionsDeprecatedWarningProps { | ||
size?: 's' | 'm'; | ||
} | ||
|
||
export const SearchSessionsDeprecatedWarning = ({ | ||
size = 'm', | ||
}: SearchSessionsDeprecatedWarningProps) => ( | ||
<EuiCallOut | ||
title={searchSessionsDeprecatedWarningTitle} | ||
size={size} | ||
color="warning" | ||
iconType="help" | ||
data-test-subj="searchSessionsDeprecatedWarningTitle" | ||
> | ||
<FormattedMessage | ||
id="data.searchSessionIndicator.deprecationWarning.textParagraphOne" | ||
defaultMessage="Search Sessions are deprecated and will be removed in a future version." | ||
/> | ||
</EuiCallOut> | ||
); |
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