opensearch-project / OpenSearch-Dashboards

📊 Open source visualization dashboards for OpenSearch.
https://opensearch.org/docs/latest/dashboards/index/
Apache License 2.0
1.69k stars 891 forks source link

[Navigation-Next] Support nested items in left navigation. #7118

Closed SuZhou-Joe closed 4 months ago

SuZhou-Joe commented 4 months ago

Is your feature request related to a problem? Please describe.

Slice 3 In the new navigation, we are seeking for a solution to enable nested items for some sub applications within plugins. For the example above, the detection rules and log types are the sub applications we are talking about.

Describe the solution you'd like

Add a new field in ChromeRegistrationNavLink:

export interface ChromeRegistrationNavLink {
  ...,
  parentNavLinkId?: string;
};

core.chrome.addNavLinksToGroup(DEFAULT_NAV_GROUPS.observability, [{ id: 'detectionRule', parentNavLinkId: 'threatDetectors' }]);

And in such case, we are able to support infinite levels of nested menu items if we want.

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

7027

SuZhou-Joe commented 4 months ago

Has been supported in #7060