Skip to content

Commit

Permalink
[8.x] [SecuritySolution] Stateful new solution nav improvements (#194384
Browse files Browse the repository at this point in the history
) (#194720)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[SecuritySolution] Stateful new solution nav improvements
(#194384)](#194384)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Sergi
Massaneda","email":"sergi.massaneda@elastic.co"},"sourceCommit":{"committedDate":"2024-10-02T14:45:38Z","message":"[SecuritySolution]
Stateful new solution nav improvements (#194384)\n\n##
Summary\r\n\r\nSince the Stack Management landing page [has
been\r\ndropped](#191735) in the
new\r\n\"Solution navigation\" in stateful (ESS) environments, we need
to include\r\nsome of the missing Security Solution links in the left
navigation\r\nflyout panel.\r\n\r\nThe PR also contains the removal of
the \"Recent\" section from the left\r\nnavigation, this is a
SecuritySolution-specific product/design decision.\r\n\r\n#### Adding
the missing links to the Stack Management left navigation\r\npanel
flyout\r\n\r\n- Entity Risk Score (Alerts and Insights)\r\n- Asset
Criticality (Alerts and Insights)\r\n- Graph (Kibana)\r\n- Canvas
(Kibana)\r\n- Map (Kibana)\r\n- Visualiztion Library
(Kibana)\r\n\r\n\r\n![nav1](https://github.com/user-attachments/assets/8864237f-22a0-4efd-9cce-cccf1a6ab710)\r\n![nav2](https://github.com/user-attachments/assets/0b223782-6ebc-453e-8f0d-37fa6854a780)\r\n\r\n\r\n####
Removing the \"Recent\" links item from the
navigation.\r\n\r\nBefore\r\n<img width=\"277\"
alt=\"old\"\r\nsrc=\"https://github.com/user-attachments/assets/0eaccd3c-04e9-4838-bae9-e44e4fa0cec9\">\r\n\r\nAfter\r\n<img
width=\"277\" alt=\"Captura de pantalla 2024-10-02 a les 13 32
55\"\r\nsrc=\"https://github.com/user-attachments/assets/53266f93-de2b-4d31-9935-5a793b6c99e8\">\r\n\r\n---------\r\n\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"4da439df876ffa148b33f82c1acc6b725b37829e","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:
SecuritySolution","backport:prev-minor","v8.16.0"],"title":"[SecuritySolution]
Stateful new solution nav
improvements","number":194384,"url":"https://github.com/elastic/kibana/pull/194384","mergeCommit":{"message":"[SecuritySolution]
Stateful new solution nav improvements (#194384)\n\n##
Summary\r\n\r\nSince the Stack Management landing page [has
been\r\ndropped](#191735) in the
new\r\n\"Solution navigation\" in stateful (ESS) environments, we need
to include\r\nsome of the missing Security Solution links in the left
navigation\r\nflyout panel.\r\n\r\nThe PR also contains the removal of
the \"Recent\" section from the left\r\nnavigation, this is a
SecuritySolution-specific product/design decision.\r\n\r\n#### Adding
the missing links to the Stack Management left navigation\r\npanel
flyout\r\n\r\n- Entity Risk Score (Alerts and Insights)\r\n- Asset
Criticality (Alerts and Insights)\r\n- Graph (Kibana)\r\n- Canvas
(Kibana)\r\n- Map (Kibana)\r\n- Visualiztion Library
(Kibana)\r\n\r\n\r\n![nav1](https://github.com/user-attachments/assets/8864237f-22a0-4efd-9cce-cccf1a6ab710)\r\n![nav2](https://github.com/user-attachments/assets/0b223782-6ebc-453e-8f0d-37fa6854a780)\r\n\r\n\r\n####
Removing the \"Recent\" links item from the
navigation.\r\n\r\nBefore\r\n<img width=\"277\"
alt=\"old\"\r\nsrc=\"https://github.com/user-attachments/assets/0eaccd3c-04e9-4838-bae9-e44e4fa0cec9\">\r\n\r\nAfter\r\n<img
width=\"277\" alt=\"Captura de pantalla 2024-10-02 a les 13 32
55\"\r\nsrc=\"https://github.com/user-attachments/assets/53266f93-de2b-4d31-9935-5a793b6c99e8\">\r\n\r\n---------\r\n\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"4da439df876ffa148b33f82c1acc6b725b37829e"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194384","number":194384,"mergeCommit":{"message":"[SecuritySolution]
Stateful new solution nav improvements (#194384)\n\n##
Summary\r\n\r\nSince the Stack Management landing page [has
been\r\ndropped](#191735) in the
new\r\n\"Solution navigation\" in stateful (ESS) environments, we need
to include\r\nsome of the missing Security Solution links in the left
navigation\r\nflyout panel.\r\n\r\nThe PR also contains the removal of
the \"Recent\" section from the left\r\nnavigation, this is a
SecuritySolution-specific product/design decision.\r\n\r\n#### Adding
the missing links to the Stack Management left navigation\r\npanel
flyout\r\n\r\n- Entity Risk Score (Alerts and Insights)\r\n- Asset
Criticality (Alerts and Insights)\r\n- Graph (Kibana)\r\n- Canvas
(Kibana)\r\n- Map (Kibana)\r\n- Visualiztion Library
(Kibana)\r\n\r\n\r\n![nav1](https://github.com/user-attachments/assets/8864237f-22a0-4efd-9cce-cccf1a6ab710)\r\n![nav2](https://github.com/user-attachments/assets/0b223782-6ebc-453e-8f0d-37fa6854a780)\r\n\r\n\r\n####
Removing the \"Recent\" links item from the
navigation.\r\n\r\nBefore\r\n<img width=\"277\"
alt=\"old\"\r\nsrc=\"https://github.com/user-attachments/assets/0eaccd3c-04e9-4838-bae9-e44e4fa0cec9\">\r\n\r\nAfter\r\n<img
width=\"277\" alt=\"Captura de pantalla 2024-10-02 a les 13 32
55\"\r\nsrc=\"https://github.com/user-attachments/assets/53266f93-de2b-4d31-9935-5a793b6c99e8\">\r\n\r\n---------\r\n\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"4da439df876ffa148b33f82c1acc6b725b37829e"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Sergi Massaneda <sergi.massaneda@elastic.co>
  • Loading branch information
kibanamachine and semd authored Oct 2, 2024
1 parent bd99a3c commit b8d2350
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ export const initSideNavigation = async (services: Services) => {
const essNavigationTree$ = navigationTree$.pipe(
map((navigationTree) =>
produce(navigationTree, (draft) => {
if (draft.footer) {
draft.footer.unshift({ type: 'recentlyAccessed' });
}
const footerGroup: GroupDefinition | undefined = draft.footer?.find(
(node): node is GroupDefinition => node.type === 'navGroup'
);
Expand All @@ -56,7 +53,7 @@ export const initSideNavigation = async (services: Services) => {
});
};

// Temporary configuration to render the stack management links in the panel
// Stack Management static node definition
const stackManagementLinks: Array<NodeDefinition<AppDeepLinkId, string, string>> = [
{
title: 'Ingest',
Expand Down Expand Up @@ -85,6 +82,8 @@ const stackManagementLinks: Array<NodeDefinition<AppDeepLinkId, string, string>>
{ link: 'management:jobsListLink' },
{ link: 'management:watcher' },
{ link: 'management:maintenanceWindows' },
{ link: `${SECURITY_UI_APP_ID}:${SecurityPageName.entityAnalyticsManagement}` },
{ link: `${SECURITY_UI_APP_ID}:${SecurityPageName.entityAnalyticsAssetClassification}` },
],
},
{
Expand All @@ -106,6 +105,10 @@ const stackManagementLinks: Array<NodeDefinition<AppDeepLinkId, string, string>>
{ link: 'management:search_sessions' },
{ link: 'management:aiAssistantManagementSelection' },
{ link: 'management:spaces' },
{ link: 'maps' },
{ link: 'visualize' },
{ link: 'graph' },
{ link: 'canvas' },
{ link: 'management:settings' },
],
},
Expand Down

0 comments on commit b8d2350

Please sign in to comment.