-
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.
[Enterprise Search] [Behavioral analytics] Add search to collection l…
…ist (#155524) ✔️ Implement search for collection list Page ✔️ Add search query to fetch collection request ✔️ Update server-side to support new search query <img width="1162" alt="image" src="https://user-images.githubusercontent.com/17390745/233668294-0b3dd60b-a016-43dd-8362-91a368212d5c.png"> --------- Co-authored-by: Joseph McElroy <joseph.mcelroy@elastic.co>
- Loading branch information
1 parent
d01fe07
commit 7c920d1
Showing
16 changed files
with
395 additions
and
66 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
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
43 changes: 43 additions & 0 deletions
43
...c/applications/analytics/components/analytics_overview/analytics_collection_not_found.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,43 @@ | ||
/* | ||
* 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 { EuiEmptyPrompt, EuiImage } from '@elastic/eui'; | ||
|
||
import { i18n } from '@kbn/i18n'; | ||
|
||
import noMlModelsGraphicDark from '../../../../assets/images/no_ml_models_dark.svg'; | ||
|
||
const ICON_WIDTH = 294; | ||
|
||
interface AnalyticsCollectionNotFoundProps { | ||
query: string; | ||
} | ||
|
||
export const AnalyticsCollectionNotFound: React.FC<AnalyticsCollectionNotFoundProps> = ({ | ||
query, | ||
}) => ( | ||
<EuiEmptyPrompt | ||
icon={<EuiImage size={ICON_WIDTH} src={noMlModelsGraphicDark} alt="icon" />} | ||
title={ | ||
<h2> | ||
{i18n.translate('xpack.enterpriseSearch.analytics.collections.notFound.headingTitle', { | ||
defaultMessage: 'No results found for “{query}”', | ||
values: { query }, | ||
})} | ||
</h2> | ||
} | ||
body={ | ||
<p> | ||
{i18n.translate('xpack.enterpriseSearch.analytics.collections.notFound.subHeading', { | ||
defaultMessage: 'Try searching for another term.', | ||
})} | ||
</p> | ||
} | ||
/> | ||
); |
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
Oops, something went wrong.