Skip to content

Commit

Permalink
[navigation]feat: update category to flatten menus in analytics(all) …
Browse files Browse the repository at this point in the history
…use case (#2182) (#2184)

* feat: update category



* feat: add applications to all use case



---------


(cherry picked from commit 6f74002)

Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent c57562f commit cac049d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions public/plugin_helpers/plugin_nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export function registerAllPluginNavGroups(core: CoreSetup<AppPluginStartDepende
id: observabilityOverviewID,
category: undefined,
order: 10,
showInAllNavGroup: true,
},
]);

Expand All @@ -29,6 +30,7 @@ export function registerAllPluginNavGroups(core: CoreSetup<AppPluginStartDepende
id: observabilityGettingStartedID,
category: undefined,
order: 20,
showInAllNavGroup: true,
},
]);

Expand All @@ -37,6 +39,7 @@ export function registerAllPluginNavGroups(core: CoreSetup<AppPluginStartDepende
id: observabilityApplicationsID,
category: DEFAULT_APP_CATEGORIES.investigate,
order: 400,
showInAllNavGroup: true,
},
]);

Expand All @@ -48,6 +51,14 @@ export function registerAllPluginNavGroups(core: CoreSetup<AppPluginStartDepende
},
]);

core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.all, [
{
id: observabilityIntegrationsID,
category: DEFAULT_APP_CATEGORIES.visualizeAndReport,
order: 500,
},
]);

core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.observability, [
{
id: observabilityMetricsID,
Expand All @@ -71,6 +82,13 @@ export function registerAllPluginNavGroups(core: CoreSetup<AppPluginStartDepende
order: 400,
},
]);
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.all, [
{
id: observabilityNotebookID,
category: DEFAULT_APP_CATEGORIES.visualizeAndReport,
order: 400,
},
]);

core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.observability, [
{
Expand Down

0 comments on commit cac049d

Please sign in to comment.