-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Stateful sidenav] Add deeplink definitions & hide page side nav (#17…
- Loading branch information
Showing
46 changed files
with
392 additions
and
134 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# @kbn/deeplinks-fleet | ||
|
||
Empty package generated by @kbn/generate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
export const FLEET_APP_ID = 'fleet'; | ||
|
||
export type AppId = typeof FLEET_APP_ID; | ||
|
||
export type LinkId = | ||
| 'agents' | ||
| 'policies' | ||
| 'enrollment_tokens' | ||
| 'uninstall_tokens' | ||
| 'data_streams' | ||
| 'settings'; | ||
|
||
export type DeepLinkId = AppId | `${AppId}:${LinkId}`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
export type { LinkId, AppId, DeepLinkId } from './deep_links'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
module.exports = { | ||
preset: '@kbn/test', | ||
rootDir: '../../..', | ||
roots: ['<rootDir>/packages/deeplinks/fleet'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"type": "shared-common", | ||
"id": "@kbn/deeplinks-fleet", | ||
"owner": "@elastic/fleet" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "@kbn/deeplinks-fleet", | ||
"private": true, | ||
"version": "1.0.0", | ||
"license": "SSPL-1.0 OR Elastic License 2.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"extends": "../../../tsconfig.base.json", | ||
"compilerOptions": { | ||
"outDir": "target/types", | ||
"types": [ | ||
"jest", | ||
"node", | ||
"react" | ||
] | ||
}, | ||
"include": [ | ||
"**/*.ts", | ||
"**/*.tsx", | ||
], | ||
"exclude": [ | ||
"target/**/*" | ||
], | ||
"kbn_references": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# @kbn/deeplinks-security | ||
|
||
Empty package generated by @kbn/generate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
export enum SecurityPageName { | ||
administration = 'administration', | ||
alerts = 'alerts', | ||
assets = 'assets', | ||
blocklist = 'blocklist', | ||
/* | ||
* Warning: Computed values are not permitted in an enum with string valued members | ||
* All Cases page names must match `CasesDeepLinkId` in x-pack/plugins/cases/public/common/navigation/deep_links.ts | ||
*/ | ||
case = 'cases', // must match `CasesDeepLinkId.cases` | ||
caseConfigure = 'cases_configure', // must match `CasesDeepLinkId.casesConfigure` | ||
caseCreate = 'cases_create', // must match `CasesDeepLinkId.casesCreate` | ||
/* | ||
* Warning: Computed values are not permitted in an enum with string valued members | ||
* All cloud security posture page names must match `CloudSecurityPosturePageId` in x-pack/plugins/cloud_security_posture/public/common/navigation/types.ts | ||
*/ | ||
cloudSecurityPostureBenchmarks = 'cloud_security_posture-benchmarks', | ||
cloudSecurityPostureDashboard = 'cloud_security_posture-dashboard', | ||
cloudSecurityPostureFindings = 'cloud_security_posture-findings', | ||
cloudSecurityPostureRules = 'cloud_security_posture-rules', | ||
/* | ||
* Warning: Computed values are not permitted in an enum with string valued members | ||
* All cloud defend page names must match `CloudDefendPageId` in x-pack/plugins/cloud_defend/public/common/navigation/types.ts | ||
*/ | ||
cloudDefend = 'cloud_defend', | ||
cloudDefendPolicies = 'cloud_defend-policies', | ||
dashboards = 'dashboards', | ||
dataQuality = 'data_quality', | ||
detections = 'detections', | ||
detectionAndResponse = 'detection_response', | ||
endpoints = 'endpoints', | ||
eventFilters = 'event_filters', | ||
exceptions = 'exceptions', | ||
exploreLanding = 'explore', | ||
hostIsolationExceptions = 'host_isolation_exceptions', | ||
hosts = 'hosts', | ||
hostsAnomalies = 'hosts-anomalies', | ||
hostsRisk = 'hosts-risk', | ||
hostsEvents = 'hosts-events', | ||
investigations = 'investigations', | ||
kubernetes = 'kubernetes', | ||
landing = 'get_started', | ||
mlLanding = 'machine_learning-landing', // serverless only | ||
network = 'network', | ||
networkAnomalies = 'network-anomalies', | ||
networkDns = 'network-dns', | ||
networkEvents = 'network-events', | ||
networkHttp = 'network-http', | ||
networkTls = 'network-tls', | ||
noPage = '', | ||
overview = 'overview', | ||
policies = 'policy', | ||
responseActionsHistory = 'response_actions_history', | ||
rules = 'rules', | ||
rulesAdd = 'rules-add', | ||
rulesCreate = 'rules-create', | ||
rulesLanding = 'rules-landing', | ||
sessions = 'sessions', | ||
/* | ||
* Warning: Computed values are not permitted in an enum with string valued members | ||
* All threat intelligence page names must match `TIPageId` in x-pack/plugins/threat_intelligence/public/common/navigation/types.ts | ||
*/ | ||
threatIntelligence = 'threat_intelligence', | ||
timelines = 'timelines', | ||
timelinesTemplates = 'timelines-templates', | ||
trustedApps = 'trusted_apps', | ||
uncommonProcesses = 'uncommon_processes', | ||
users = 'users', | ||
usersAnomalies = 'users-anomalies', | ||
usersAuthentications = 'users-authentications', | ||
usersEvents = 'users-events', | ||
usersRisk = 'users-risk', | ||
entityAnalytics = 'entity_analytics', | ||
entityAnalyticsManagement = 'entity_analytics-management', | ||
coverageOverview = 'coverage-overview', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
import type { SecurityPageName } from './deep_links'; | ||
|
||
export { SecurityPageName } from './deep_links'; | ||
|
||
export const SECURITY_APP_ID = 'securitySolutionUI'; | ||
|
||
export type AppId = typeof SECURITY_APP_ID; | ||
|
||
export type LinkId = `${SecurityPageName}`; | ||
|
||
export type DeepLinkId = AppId | `${AppId}:${LinkId}`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
module.exports = { | ||
preset: '@kbn/test', | ||
rootDir: '../../..', | ||
roots: ['<rootDir>/packages/deeplinks/security'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"type": "shared-common", | ||
"id": "@kbn/deeplinks-security", | ||
"owner": "@elastic/security-solution" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "@kbn/deeplinks-security", | ||
"private": true, | ||
"version": "1.0.0", | ||
"license": "SSPL-1.0 OR Elastic License 2.0" | ||
} |
Oops, something went wrong.