From 8865ff1f4fce4ae184889bf3c7fb7ef04c4455fc Mon Sep 17 00:00:00 2001 From: SuZhou-Joe Date: Fri, 27 Sep 2024 01:20:25 +0800 Subject: [PATCH] feat: update category (#1169) Signed-off-by: SuZhou-Joe --- public/plugin.ts | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/public/plugin.ts b/public/plugin.ts index 54a74f43..c53707c1 100644 --- a/public/plugin.ts +++ b/public/plugin.ts @@ -134,7 +134,7 @@ export class SecurityAnalyticsPlugin core.application.register({ id: THREAT_ALERTS_NAV_ID, title: 'Threat alerts', - order: 9070, + order: 300, category: DEFAULT_APP_CATEGORIES.investigate, updater$: this.appStateUpdater, mount: async (params: AppMountParameters) => { @@ -145,7 +145,7 @@ export class SecurityAnalyticsPlugin core.application.register({ id: FINDINGS_NAV_ID, title: 'Findings', - order: 9080, + order: 400, category: DEFAULT_APP_CATEGORIES.investigate, updater$: this.appStateUpdater, mount: async (params: AppMountParameters) => { @@ -156,7 +156,7 @@ export class SecurityAnalyticsPlugin core.application.register({ id: CORRELATIONS_NAV_ID, title: 'Correlations', - order: 9080, + order: 500, category: DEFAULT_APP_CATEGORIES.investigate, updater$: this.appStateUpdater, mount: async (params: AppMountParameters) => { @@ -167,7 +167,7 @@ export class SecurityAnalyticsPlugin core.application.register({ id: DETECTORS_NAV_ID, title: 'Threat detectors', - order: 9080, + order: 600, category: DEFAULT_APP_CATEGORIES.configure, updater$: this.appStateUpdater, mount: async (params: AppMountParameters) => { @@ -178,7 +178,7 @@ export class SecurityAnalyticsPlugin core.application.register({ id: DETECTION_RULE_NAV_ID, title: 'Detection rules', - order: 9080, + order: 700, category: DEFAULT_APP_CATEGORIES.configure, updater$: this.appStateUpdater, mount: async (params: AppMountParameters) => { @@ -189,7 +189,7 @@ export class SecurityAnalyticsPlugin core.application.register({ id: CORRELATIONS_RULE_NAV_ID, title: 'Correlation rules', - order: 9080, + order: 800, category: DEFAULT_APP_CATEGORIES.configure, updater$: this.appStateUpdater, mount: async (params: AppMountParameters) => { @@ -200,7 +200,7 @@ export class SecurityAnalyticsPlugin core.application.register({ id: THREAT_INTEL_NAV_ID, title: 'Threat intelligence', - order: 9080, + order: 900, category: DEFAULT_APP_CATEGORIES.configure, updater$: this.appStateUpdater, mount: async (params: AppMountParameters) => { @@ -211,7 +211,7 @@ export class SecurityAnalyticsPlugin core.application.register({ id: LOG_TYPES_NAV_ID, title: 'Log types', - order: 9080, + order: 1000, category: DEFAULT_APP_CATEGORIES.configure, updater$: this.appStateUpdater, mount: async (params: AppMountParameters) => { @@ -230,13 +230,13 @@ export class SecurityAnalyticsPlugin { id: GETTING_STARTED_NAV_ID, showInAllNavGroup: true }, { id: THREAT_ALERTS_NAV_ID, showInAllNavGroup: true }, { id: FINDINGS_NAV_ID, showInAllNavGroup: true }, - { id: CORRELATIONS_NAV_ID }, - { id: PLUGIN_NAME, category: DEFAULT_APP_CATEGORIES.configure, title: 'Threat detection' }, - { id: DETECTORS_NAV_ID, parentNavLinkId: PLUGIN_NAME }, - { id: DETECTION_RULE_NAV_ID, parentNavLinkId: PLUGIN_NAME }, - { id: CORRELATIONS_RULE_NAV_ID }, - { id: THREAT_INTEL_NAV_ID }, - { id: LOG_TYPES_NAV_ID }, + { id: CORRELATIONS_NAV_ID, showInAllNavGroup: true }, + { id: PLUGIN_NAME, category: DEFAULT_APP_CATEGORIES.configure, title: 'Threat detection', showInAllNavGroup: true, order: 600 }, + { id: DETECTORS_NAV_ID, parentNavLinkId: PLUGIN_NAME, showInAllNavGroup: true }, + { id: DETECTION_RULE_NAV_ID, parentNavLinkId: PLUGIN_NAME, showInAllNavGroup: true }, + { id: CORRELATIONS_RULE_NAV_ID, showInAllNavGroup: true }, + { id: THREAT_INTEL_NAV_ID, showInAllNavGroup: true }, + { id: LOG_TYPES_NAV_ID, showInAllNavGroup: true }, ]; core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS['security-analytics'], navlinks);