Skip to content

Commit 8d0ec00

Browse files
feat: make search relevance visible in first level of all use case (#416)
Signed-off-by: SuZhou-Joe <[email protected]> (cherry picked from commit 8744214) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent b0f371e commit 8d0ec00

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

public/plugin_nav.tsx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6+
import { i18n } from '@osd/i18n';
67
import { CoreSetup } from '../../../src/core/public';
78
import { SearchRelevancePluginSetup } from './types';
89
import { PLUGIN_ID } from '../common';
9-
import { DEFAULT_NAV_GROUPS, DEFAULT_APP_CATEGORIES, AppCategory } from '../../../src/core/public';
10-
import { i18n } from "@osd/i18n";
10+
import { DEFAULT_NAV_GROUPS, AppCategory } from '../../../src/core/public';
1111

1212
const searchRelevance_category: Record<string, AppCategory & { group?: AppCategory }> = {
1313
evaluateSearch: {
@@ -19,11 +19,20 @@ const searchRelevance_category: Record<string, AppCategory & { group?: AppCatego
1919
},
2020
};
2121

22+
const titleForSearchRelevance = i18n.translate(
23+
'plugins.dashboards_search_relevance.nav.title.label',
24+
{
25+
defaultMessage: 'Compare search results',
26+
}
27+
);
28+
2229
export function registerAllPluginNavGroups(core: CoreSetup<SearchRelevancePluginSetup>) {
2330
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.search, [
2431
{
2532
id: PLUGIN_ID,
2633
category: searchRelevance_category.evaluateSearch,//change to Evaluate Search
34+
title: titleForSearchRelevance,
35+
showInAllNavGroup: true
2736
},
2837
]);
2938
}

0 commit comments

Comments
 (0)