-
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.
[Enterprise Search] Adds Callout for Upcoming Decommissioning of App …
…Search and Workplace Search (#194363) ## Summary This PR adds a callout to the overview pages for App Search and Workplace Search, informing the user of the updating decommissioning of the Enterprise Search product. Once the user clicks the "Dismiss" link, or the "x" button (upper-right), the callout will not be shown again until the user logs back in from a new tab or window. Note that the flag to show the callout or not is independent of the product (i.e. dismissing the callout in App Search will still show the callout in Workplace Search, until that one is dismissed as well). (Note that the link provided to the _App Search_ (catalog) blog post _is_ the correct URL, but the actual post will be forthcoming before the release) ![image](https://github.com/user-attachments/assets/57b41839-ca44-4bbc-af27-b8b7e65298f6) ### 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] This was checked for [cross-browser compatibility](https://www.elastic.co/support/matrix#matrix_browsers) ### For maintainers - [ ] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) --------- Co-authored-by: kibanamachine <[email protected]>
- Loading branch information
1 parent
e435c47
commit 6910f15
Showing
11 changed files
with
363 additions
and
63 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
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
32 changes: 32 additions & 0 deletions
32
...rprise_search/public/applications/shared/deprecation_callout/deprecation_callout.test.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,32 @@ | ||
/* | ||
* 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 from 'react'; | ||
|
||
import { shallow } from 'enzyme'; | ||
|
||
import { EnterpriseSearchDeprecationCallout } from './deprecation_callout'; | ||
|
||
describe('EnterpriseSearchDeprecationCallout', () => { | ||
it('renders', () => { | ||
const dismissFxn = jest.fn(); | ||
const wrapper = shallow(<EnterpriseSearchDeprecationCallout onDismissAction={dismissFxn} />); | ||
|
||
expect(wrapper.find('EuiCallOut')).toHaveLength(1); | ||
wrapper.find('EuiCallOut').simulate('dismiss'); | ||
expect(dismissFxn).toHaveBeenCalledTimes(1); | ||
}); | ||
|
||
it('dismisses via the link', () => { | ||
const dismissFxn = jest.fn(); | ||
const wrapper = shallow(<EnterpriseSearchDeprecationCallout onDismissAction={dismissFxn} />); | ||
|
||
expect(wrapper.find('EuiLink')).toHaveLength(1); | ||
wrapper.find('EuiLink').simulate('click'); | ||
expect(dismissFxn).toHaveBeenCalledTimes(1); | ||
}); | ||
}); |
Oops, something went wrong.