Skip to content

Commit

Permalink
[SecuritySolution] Stateful new solution nav improvements (elastic#19…
Browse files Browse the repository at this point in the history
…4384)

## Summary

Since the Stack Management landing page [has been
dropped](elastic#191735) in the new
"Solution navigation" in stateful (ESS) environments, we need to include
some of the missing Security Solution links in the left navigation
flyout panel.

The PR also contains the removal of the "Recent" section from the left
navigation, this is a SecuritySolution-specific product/design decision.

#### Adding the missing links to the Stack Management left navigation
panel flyout

- Entity Risk Score (Alerts and Insights)
- Asset Criticality (Alerts and Insights)
- Graph (Kibana)
- Canvas (Kibana)
- Map (Kibana)
- Visualiztion Library (Kibana)


![nav1](https://github.com/user-attachments/assets/8864237f-22a0-4efd-9cce-cccf1a6ab710)
![nav2](https://github.com/user-attachments/assets/0b223782-6ebc-453e-8f0d-37fa6854a780)


#### Removing the "Recent" links item from the navigation.

Before
<img width="277" alt="old"
src="https://github.com/user-attachments/assets/0eaccd3c-04e9-4838-bae9-e44e4fa0cec9">

After
<img width="277" alt="Captura de pantalla 2024-10-02 a les 13 32 55"
src="https://github.com/user-attachments/assets/53266f93-de2b-4d31-9935-5a793b6c99e8">

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
semd and elasticmachine authored Oct 2, 2024
1 parent dab01aa commit 4da439d
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 4da439d

Please sign in to comment.