mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[Enterprise Search] rebrand ent-search Kibana nav category to Search (#161593)
## Summary
Updated the Kibana collapsible nav Enterprise Search category to Search.
Updated the App Search & Workplace Search app navLinkStatuses to
`hidden` to remove them from the Kibana nav.
### Screenshots
<img width="270" alt="image"
src="1397e701
-ca87-46f2-8c15-565bc3a9202c">
This commit is contained in:
parent
26334b5111
commit
5935c4312e
5 changed files with 30 additions and 31 deletions
|
@ -21,8 +21,8 @@ export const DEFAULT_APP_CATEGORIES: Record<string, AppCategory> = Object.freeze
|
|||
},
|
||||
enterpriseSearch: {
|
||||
id: 'enterpriseSearch',
|
||||
label: i18n.translate('core.ui.enterpriseSearchNavList.label', {
|
||||
defaultMessage: 'Enterprise Search',
|
||||
label: i18n.translate('core.ui.searchNavList.label', {
|
||||
defaultMessage: 'Search',
|
||||
}),
|
||||
order: 2000,
|
||||
euiIconType: 'logoEnterpriseSearch',
|
||||
|
|
|
@ -144,6 +144,29 @@ export class EnterpriseSearchPlugin implements Plugin {
|
|||
title: ENTERPRISE_SEARCH_OVERVIEW_PLUGIN.NAV_TITLE,
|
||||
});
|
||||
|
||||
core.application.register({
|
||||
appRoute: ENTERPRISE_SEARCH_CONTENT_PLUGIN.URL,
|
||||
category: DEFAULT_APP_CATEGORIES.enterpriseSearch,
|
||||
euiIconType: ENTERPRISE_SEARCH_CONTENT_PLUGIN.LOGO,
|
||||
id: ENTERPRISE_SEARCH_CONTENT_PLUGIN.ID,
|
||||
mount: async (params: AppMountParameters) => {
|
||||
const kibanaDeps = await this.getKibanaDeps(core, params, cloud);
|
||||
const { chrome, http } = kibanaDeps.core;
|
||||
chrome.docTitle.change(ENTERPRISE_SEARCH_CONTENT_PLUGIN.NAME);
|
||||
|
||||
await this.getInitialData(http);
|
||||
const pluginData = this.getPluginData();
|
||||
|
||||
const { renderApp } = await import('./applications');
|
||||
const { EnterpriseSearchContent } = await import(
|
||||
'./applications/enterprise_search_content'
|
||||
);
|
||||
|
||||
return renderApp(EnterpriseSearchContent, kibanaDeps, pluginData);
|
||||
},
|
||||
title: ENTERPRISE_SEARCH_CONTENT_PLUGIN.NAV_TITLE,
|
||||
});
|
||||
|
||||
core.application.register({
|
||||
appRoute: ESRE_PLUGIN.URL,
|
||||
category: DEFAULT_APP_CATEGORIES.enterpriseSearch,
|
||||
|
@ -186,29 +209,6 @@ export class EnterpriseSearchPlugin implements Plugin {
|
|||
title: VECTOR_SEARCH_PLUGIN.NAV_TITLE,
|
||||
});
|
||||
|
||||
core.application.register({
|
||||
appRoute: ENTERPRISE_SEARCH_CONTENT_PLUGIN.URL,
|
||||
category: DEFAULT_APP_CATEGORIES.enterpriseSearch,
|
||||
euiIconType: ENTERPRISE_SEARCH_CONTENT_PLUGIN.LOGO,
|
||||
id: ENTERPRISE_SEARCH_CONTENT_PLUGIN.ID,
|
||||
mount: async (params: AppMountParameters) => {
|
||||
const kibanaDeps = await this.getKibanaDeps(core, params, cloud);
|
||||
const { chrome, http } = kibanaDeps.core;
|
||||
chrome.docTitle.change(ENTERPRISE_SEARCH_CONTENT_PLUGIN.NAME);
|
||||
|
||||
await this.getInitialData(http);
|
||||
const pluginData = this.getPluginData();
|
||||
|
||||
const { renderApp } = await import('./applications');
|
||||
const { EnterpriseSearchContent } = await import(
|
||||
'./applications/enterprise_search_content'
|
||||
);
|
||||
|
||||
return renderApp(EnterpriseSearchContent, kibanaDeps, pluginData);
|
||||
},
|
||||
title: ENTERPRISE_SEARCH_CONTENT_PLUGIN.NAV_TITLE,
|
||||
});
|
||||
|
||||
core.application.register({
|
||||
appRoute: APPLICATIONS_PLUGIN.URL,
|
||||
category: DEFAULT_APP_CATEGORIES.enterpriseSearch,
|
||||
|
@ -295,6 +295,7 @@ export class EnterpriseSearchPlugin implements Plugin {
|
|||
|
||||
return renderApp(AppSearch, kibanaDeps, pluginData);
|
||||
},
|
||||
navLinkStatus: AppNavLinkStatus.hidden,
|
||||
title: APP_SEARCH_PLUGIN.NAME,
|
||||
});
|
||||
|
||||
|
@ -319,6 +320,7 @@ export class EnterpriseSearchPlugin implements Plugin {
|
|||
|
||||
return renderApp(WorkplaceSearch, kibanaDeps, pluginData);
|
||||
},
|
||||
navLinkStatus: AppNavLinkStatus.hidden,
|
||||
title: WORKPLACE_SEARCH_PLUGIN.NAME,
|
||||
});
|
||||
}
|
||||
|
|
|
@ -998,7 +998,6 @@
|
|||
"core.ui.chrome.headerGlobalNav.helpMenuOpenGitHubIssueTitle": "Ouvrir un ticket dans GitHub",
|
||||
"core.ui.chrome.headerGlobalNav.helpMenuTitle": "Aide",
|
||||
"core.ui.chrome.headerGlobalNav.logoAriaLabel": "Logo Elastic",
|
||||
"core.ui.enterpriseSearchNavList.label": "Enterprise Search",
|
||||
"core.ui.errorUrlOverflow.bigUrlWarningNotificationMessage.advancedSettingsLinkText": "paramètres avancés",
|
||||
"core.ui.errorUrlOverflow.bigUrlWarningNotificationTitle": "L'URL est longue et Kibana pourrait cesser de fonctionner.",
|
||||
"core.ui.errorUrlOverflow.errorTitle": "L'URL pour cet objet est trop longue, et nous ne pouvons pas l'afficher.",
|
||||
|
@ -39393,4 +39392,4 @@
|
|||
"xpack.painlessLab.title": "Painless Lab",
|
||||
"xpack.painlessLab.walkthroughButtonLabel": "Présentation"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -998,7 +998,6 @@
|
|||
"core.ui.chrome.headerGlobalNav.helpMenuOpenGitHubIssueTitle": "GitHubで問題を開く",
|
||||
"core.ui.chrome.headerGlobalNav.helpMenuTitle": "ヘルプ",
|
||||
"core.ui.chrome.headerGlobalNav.logoAriaLabel": "Elastic ロゴ",
|
||||
"core.ui.enterpriseSearchNavList.label": "エンタープライズ サーチ",
|
||||
"core.ui.errorUrlOverflow.bigUrlWarningNotificationMessage.advancedSettingsLinkText": "高度な設定",
|
||||
"core.ui.errorUrlOverflow.bigUrlWarningNotificationTitle": "URLが大きく、Kibanaの動作が停止する可能性があります",
|
||||
"core.ui.errorUrlOverflow.errorTitle": "このオブジェクトのURLは長すぎます。表示できません",
|
||||
|
@ -39367,4 +39366,4 @@
|
|||
"xpack.painlessLab.title": "Painless Lab",
|
||||
"xpack.painlessLab.walkthroughButtonLabel": "実地検証"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -998,7 +998,6 @@
|
|||
"core.ui.chrome.headerGlobalNav.helpMenuOpenGitHubIssueTitle": "在 GitHub 中提出问题",
|
||||
"core.ui.chrome.headerGlobalNav.helpMenuTitle": "帮助",
|
||||
"core.ui.chrome.headerGlobalNav.logoAriaLabel": "Elastic 徽标",
|
||||
"core.ui.enterpriseSearchNavList.label": "Enterprise Search",
|
||||
"core.ui.errorUrlOverflow.bigUrlWarningNotificationMessage.advancedSettingsLinkText": "高级设置",
|
||||
"core.ui.errorUrlOverflow.bigUrlWarningNotificationTitle": "URL 过长,Kibana 可能无法工作",
|
||||
"core.ui.errorUrlOverflow.errorTitle": "此对象的 URL 过长,我们无法显示它",
|
||||
|
@ -39361,4 +39360,4 @@
|
|||
"xpack.painlessLab.title": "Painless 实验室",
|
||||
"xpack.painlessLab.walkthroughButtonLabel": "指导"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue