Skip to content

Commit

Permalink
Updated addNavLinkGroups path rename dashboards
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Tackett <tackadam@amazon.com>
  • Loading branch information
Adam Tackett committed Jul 2, 2024
1 parent 43ff505 commit 27641b5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion common/constants/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const observabilityNotebookTitle = 'Notebooks';
export const observabilityNotebookPluginOrder = 5094;

export const observabilityPanelsID = 'observability-dashboards';
export const observabilityPanelsTitle = 'Dashboards';
export const observabilityPanelsTitle = 'Observability-Dashboards';
export const observabilityPanelsPluginOrder = 5095;

export const observabilityIntegrationsID = 'integrations';
Expand Down
34 changes: 17 additions & 17 deletions public/plugin_nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,109 +16,109 @@ import { AppPluginStartDependencies } from './types';
import { DEFAULT_NAV_GROUPS, DEFAULT_APP_CATEGORIES } from '../../../src/core/public';

export function registerAllPluginNavGroups(core: CoreSetup<AppPluginStartDependencies>) {
core.chrome.addNavLinksToGroup(DEFAULT_NAV_GROUPS.observability, [
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.observability, [
{
id: observabilityApplicationsID,
category: DEFAULT_APP_CATEGORIES.dashboardAndReport,
},
]);

core.chrome.addNavLinksToGroup(DEFAULT_NAV_GROUPS.observability, [
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.observability, [
{
id: observabilityLogsID,
category: DEFAULT_APP_CATEGORIES.investigate,
},
]);
core.chrome.addNavLinksToGroup(DEFAULT_NAV_GROUPS[`security-analytics`], [
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS[`security-analytics`], [
{
id: observabilityLogsID,
category: DEFAULT_APP_CATEGORIES.investigate,
},
]);
core.chrome.addNavLinksToGroup(DEFAULT_NAV_GROUPS.analytics, [
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.analytics, [
{
id: observabilityLogsID,
category: DEFAULT_APP_CATEGORIES.investigate,
},
]);
core.chrome.addNavLinksToGroup(DEFAULT_NAV_GROUPS.search, [
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.search, [
{
id: observabilityLogsID,
category: DEFAULT_APP_CATEGORIES.analyzeSearch,
},
]);

core.chrome.addNavLinksToGroup(DEFAULT_NAV_GROUPS.observability, [
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.observability, [
{
id: observabilityMetricsID,
category: DEFAULT_APP_CATEGORIES.investigate,
},
]);

core.chrome.addNavLinksToGroup(DEFAULT_NAV_GROUPS.observability, [
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.observability, [
{
id: observabilityTracesID,
category: DEFAULT_APP_CATEGORIES.investigate,
},
]);

core.chrome.addNavLinksToGroup(DEFAULT_NAV_GROUPS.observability, [
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.observability, [
{
id: observabilityNotebookID,
category: DEFAULT_APP_CATEGORIES.dashboardAndReport,
},
]);
core.chrome.addNavLinksToGroup(DEFAULT_NAV_GROUPS[`security-analytics`], [
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS[`security-analytics`], [
{
id: observabilityNotebookID,
category: DEFAULT_APP_CATEGORIES.dashboardAndReport,
},
]);
core.chrome.addNavLinksToGroup(DEFAULT_NAV_GROUPS.analytics, [
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.analytics, [
{
id: observabilityNotebookID,
category: DEFAULT_APP_CATEGORIES.dashboardAndReport,
},
]);

core.chrome.addNavLinksToGroup(DEFAULT_NAV_GROUPS.observability, [
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.observability, [
{
id: observabilityPanelsID,
category: DEFAULT_APP_CATEGORIES.dashboardAndReport,
},
]);
core.chrome.addNavLinksToGroup(DEFAULT_NAV_GROUPS[`security-analytics`], [
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS[`security-analytics`], [
{
id: observabilityPanelsID,
category: DEFAULT_APP_CATEGORIES.dashboardAndReport,
},
]);
core.chrome.addNavLinksToGroup(DEFAULT_NAV_GROUPS.analytics, [
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.analytics, [
{
id: observabilityPanelsID,
category: DEFAULT_APP_CATEGORIES.dashboardAndReport,
},
]);
core.chrome.addNavLinksToGroup(DEFAULT_NAV_GROUPS.search, [
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.search, [
{
id: observabilityPanelsID,
category: DEFAULT_APP_CATEGORIES.analyzeSearch,
},
]);

core.chrome.addNavLinksToGroup(DEFAULT_NAV_GROUPS.observability, [
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.observability, [
{
id: observabilityIntegrationsID,
category: DEFAULT_APP_CATEGORIES.dashboardAndReport,
},
]);
core.chrome.addNavLinksToGroup(DEFAULT_NAV_GROUPS[`security-analytics`], [
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS[`security-analytics`], [
{
id: observabilityIntegrationsID,
category: DEFAULT_APP_CATEGORIES.dashboardAndReport,
},
]);
core.chrome.addNavLinksToGroup(DEFAULT_NAV_GROUPS.analytics, [
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.analytics, [
{
id: observabilityIntegrationsID,
category: DEFAULT_APP_CATEGORIES.dashboardAndReport,
Expand Down

0 comments on commit 27641b5

Please sign in to comment.