Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[navigation]feat: update category to flatten menus in analytics(all) use case #883

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 45 additions & 1 deletion public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,19 @@ export class AnomalyDetectionOpenSearchDashboardsPlugin
id: PLUGIN_NAME,
category: DEFAULT_APP_CATEGORIES.detect,
}
])
]);
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.all, [
{
id: PLUGIN_NAME,
category: DEFAULT_APP_CATEGORIES.detect,
}
]);
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS['security-analytics'], [
{
id: PLUGIN_NAME,
category: DEFAULT_APP_CATEGORIES.detect,
}
]);

// register sub applications as standard OSD applications with use case
if (core.chrome.navGroup.getNavGroupEnabled()) {
Expand Down Expand Up @@ -175,6 +187,38 @@ export class AnomalyDetectionOpenSearchDashboardsPlugin
}]
);

core.chrome.navGroup.addNavLinksToGroup(
DEFAULT_NAV_GROUPS.all,
[{
id: OVERVIEW_PAGE_NAV_ID,
parentNavLinkId: PLUGIN_NAME
},
{
id: DASHBOARD_PAGE_NAV_ID,
parentNavLinkId: PLUGIN_NAME
},
{
id: DETECTORS_PAGE_NAV_ID,
parentNavLinkId: PLUGIN_NAME
}]
);

core.chrome.navGroup.addNavLinksToGroup(
DEFAULT_NAV_GROUPS['security-analytics'],
[{
id: OVERVIEW_PAGE_NAV_ID,
parentNavLinkId: PLUGIN_NAME
},
{
id: DASHBOARD_PAGE_NAV_ID,
parentNavLinkId: PLUGIN_NAME
},
{
id: DETECTORS_PAGE_NAV_ID,
parentNavLinkId: PLUGIN_NAME
}]
);

setUISettings(core.uiSettings);

// Set the HTTP client so it can be pulled into expression fns to make
Expand Down
Loading