[8.10] [Security Solutions] Move rules up in security solutions menu (#165061) (#165082)

# Backport

This will backport the following commits from `main` to `8.10`:
- [[Security Solutions] Move rules up in security solutions menu
(#165061)](https://github.com/elastic/kibana/pull/165061)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Pablo
Machado","email":"machadoum@gmail.com"},"sourceCommit":{"committedDate":"2023-08-29T11:05:44Z","message":"[Security
Solutions] Move rules up in security solutions menu (#165061)\n\n##
Summary\r\n\r\nMove rules menu item up in security solutions
menu.\r\n\r\n### ESS security menu\r\n<img width=\"246\"
alt=\"Screenshot 2023-08-29 at 09 56
36\"\r\nsrc=\"4e0289a8-36bd-41de-b1e9-bbf3704659b0\">\r\n\r\n###
ESS Global menu\r\n<img width=\"237\" alt=\"Screenshot 2023-08-29 at 09
56
51\"\r\nsrc=\"63ab1edf-783d-4d89-94b9-2eb257f0e31f\">\r\n\r\n###
Serverless\r\n<img width=\"251\" alt=\"Screenshot 2023-08-29 at 09 49
45\"\r\nsrc=\"43902dd1-f6fb-422a-9760-8a25d4593b5c\">\r\n\r\n\r\n###
Checklist\r\n- [ ] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"924c627f16e6cb9d4b9f06856f4f6548e90ba279","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","enhancement","Team:Threat
Hunting","Team: SecuritySolution","Team:Threat
Hunting:Explore","v8.10.0","v8.11.0"],"number":165061,"url":"https://github.com/elastic/kibana/pull/165061","mergeCommit":{"message":"[Security
Solutions] Move rules up in security solutions menu (#165061)\n\n##
Summary\r\n\r\nMove rules menu item up in security solutions
menu.\r\n\r\n### ESS security menu\r\n<img width=\"246\"
alt=\"Screenshot 2023-08-29 at 09 56
36\"\r\nsrc=\"4e0289a8-36bd-41de-b1e9-bbf3704659b0\">\r\n\r\n###
ESS Global menu\r\n<img width=\"237\" alt=\"Screenshot 2023-08-29 at 09
56
51\"\r\nsrc=\"63ab1edf-783d-4d89-94b9-2eb257f0e31f\">\r\n\r\n###
Serverless\r\n<img width=\"251\" alt=\"Screenshot 2023-08-29 at 09 49
45\"\r\nsrc=\"43902dd1-f6fb-422a-9760-8a25d4593b5c\">\r\n\r\n\r\n###
Checklist\r\n- [ ] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"924c627f16e6cb9d4b9f06856f4f6548e90ba279"}},"sourceBranch":"main","suggestedTargetBranches":["8.10"],"targetPullRequestStates":[{"branch":"8.10","label":"v8.10.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/165061","number":165061,"mergeCommit":{"message":"[Security
Solutions] Move rules up in security solutions menu (#165061)\n\n##
Summary\r\n\r\nMove rules menu item up in security solutions
menu.\r\n\r\n### ESS security menu\r\n<img width=\"246\"
alt=\"Screenshot 2023-08-29 at 09 56
36\"\r\nsrc=\"4e0289a8-36bd-41de-b1e9-bbf3704659b0\">\r\n\r\n###
ESS Global menu\r\n<img width=\"237\" alt=\"Screenshot 2023-08-29 at 09
56
51\"\r\nsrc=\"63ab1edf-783d-4d89-94b9-2eb257f0e31f\">\r\n\r\n###
Serverless\r\n<img width=\"251\" alt=\"Screenshot 2023-08-29 at 09 49
45\"\r\nsrc=\"43902dd1-f6fb-422a-9760-8a25d4593b5c\">\r\n\r\n\r\n###
Checklist\r\n- [ ] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"924c627f16e6cb9d4b9f06856f4f6548e90ba279"}}]}]
BACKPORT-->
This commit is contained in:
Pablo Machado 2023-08-29 18:46:32 +02:00 committed by GitHub
parent c0c1661d63
commit 2fbe5ab289
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 9 additions and 10 deletions

View file

@ -20,7 +20,7 @@ const commonLinkProperties: Partial<LinkItem> = {
export const findingsLinks: LinkItem = {
...getSecuritySolutionLink<SecurityPageName>('findings'),
globalNavPosition: 3,
globalNavPosition: 4,
...commonLinkProperties,
};

View file

@ -16,6 +16,7 @@ export const CATEGORIES: SeparatorLinkCategory[] = [
{
type: LinkCategoryType.separator,
linkIds: [
SecurityPageName.rulesLanding,
SecurityPageName.alerts,
SecurityPageName.cloudSecurityPostureFindings,
SecurityPageName.case,
@ -29,8 +30,4 @@ export const CATEGORIES: SeparatorLinkCategory[] = [
SecurityPageName.exploreLanding,
],
},
{
type: LinkCategoryType.separator,
linkIds: [SecurityPageName.rulesLanding],
},
];

View file

@ -14,7 +14,7 @@ export const links: LinkItem = {
title: ALERTS,
path: ALERTS_PATH,
capabilities: [`${SERVER_APP_ID}.show`],
globalNavPosition: 2,
globalNavPosition: 3,
globalSearchKeywords: [
i18n.translate('xpack.securitySolution.appLinks.alerts', {
defaultMessage: 'Alerts',

View file

@ -180,7 +180,7 @@ export const exploreLinks: LinkItem = {
id: SecurityPageName.exploreLanding,
title: EXPLORE,
path: EXPLORE_PATH,
globalNavPosition: 6,
globalNavPosition: 8,
capabilities: [`${SERVER_APP_ID}.show`],
globalSearchKeywords: [
i18n.translate('xpack.securitySolution.appLinks.explore', {

View file

@ -86,7 +86,7 @@ export const links: LinkItem = {
path: MANAGE_PATH,
skipUrlState: true,
hideTimeline: true,
globalNavPosition: 8,
globalNavPosition: 9,
capabilities: [`${SERVER_APP_ID}.show`],
globalSearchKeywords: [
i18n.translate('xpack.securitySolution.appLinks.manage', {

View file

@ -36,6 +36,7 @@ export const links: LinkItem = {
path: RULES_LANDING_PATH,
hideTimeline: true,
skipUrlState: true,
globalNavPosition: 2,
capabilities: [`${SERVER_APP_ID}.show`],
links: [
{

View file

@ -14,7 +14,7 @@ export const links: LinkItem = {
id: SecurityPageName.timelines,
title: TIMELINES,
path: TIMELINES_PATH,
globalNavPosition: 4,
globalNavPosition: 6,
capabilities: [`${SERVER_APP_ID}.show`],
globalSearchKeywords: [
i18n.translate('xpack.securitySolution.appLinks.timelines', {

View file

@ -20,6 +20,7 @@ export const CATEGORIES: SeparatorLinkCategory[] = [
{
type: LinkCategoryType.separator,
linkIds: [
SecurityPageName.rulesLanding,
SecurityPageName.alerts,
SecurityPageName.cloudSecurityPostureFindings,
SecurityPageName.case,
@ -35,7 +36,7 @@ export const CATEGORIES: SeparatorLinkCategory[] = [
},
{
type: LinkCategoryType.separator,
linkIds: [ExternalPageName.fleet, SecurityPageName.assets, SecurityPageName.rulesLanding],
linkIds: [ExternalPageName.fleet, SecurityPageName.assets],
},
{
type: LinkCategoryType.separator,