-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Navigation] Register all plugins to NavGroups #1926
Merged
Merged
Changes from 2 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
43ff505
Add a function to register all plugin Nav groups and categories
27641b5
Updated addNavLinkGroups path rename dashboards
bfa82c8
Fixing Naming
1519828
feat: enable default route
SuZhou-Joe f5e26f3
Merge pull request #1 from SuZhou-Joe/feature/enable_default_route
TackAdam 6abb8ed
Update breadcrumb for Trace to default to service page
60ebb7c
Update snapshots
393815a
feat: update
SuZhou-Joe 9b58c3a
feat: add some features to all use case
SuZhou-Joe 1488866
Merge pull request #2 from SuZhou-Joe/poc/context-menu-navigation
TackAdam 289451c
Depreciated logs, application. Dashboards/Traces adjusted
30e164a
Not registering logs/applications/dashboards when left nav used
080c17c
Update snapshots
ec684c5
fixing lint errors
493c16c
Put applications back
7825747
update snapshots
65fc08c
Merge branch 'main' into navObs
TackAdam f7a416d
Update public/plugin_nav.tsx
TackAdam 6c821ed
Update public/plugin_nav.tsx
TackAdam 8bdc12a
Update public/plugin_nav.tsx
TackAdam ef393c7
Update public/plugin_nav.tsx
TackAdam 59e5500
Update public/plugin_nav.tsx
TackAdam 2b92e6e
Update public/plugin_nav.tsx
TackAdam 6fdc251
Update public/plugin_nav.tsx
TackAdam 158c8a7
Update public/plugin_nav.tsx
TackAdam 17994c2
Update public/plugin.tsx
TackAdam 1917733
Removed applications from new nav
7396203
Add applications back, remove in app nav for trace, remove breadcrumb…
0bbc6d4
update snapshots
453f171
Adjust order of metrics/traces/services/applications as per guidance …
50d44d4
function for nav breadcrumbs added
4755904
Merge branch 'main' into navObs
sumukhswamy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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,127 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
import { | ||
observabilityApplicationsID, | ||
observabilityIntegrationsID, | ||
observabilityLogsID, | ||
observabilityMetricsID, | ||
observabilityNotebookID, | ||
observabilityPanelsID, | ||
observabilityTracesID, | ||
} from '../common/constants/shared'; | ||
import { CoreSetup } from '../../../src/core/public'; | ||
import { AppPluginStartDependencies } from './types'; | ||
import { DEFAULT_NAV_GROUPS, DEFAULT_APP_CATEGORIES } from '../../../src/core/public'; | ||
|
||
export function registerAllPluginNavGroups(core: CoreSetup<AppPluginStartDependencies>) { | ||
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.observability, [ | ||
TackAdam marked this conversation as resolved.
Show resolved
Hide resolved
|
||
{ | ||
id: observabilityApplicationsID, | ||
category: DEFAULT_APP_CATEGORIES.dashboardAndReport, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OSD core has changed the category to visualizeAndReport but keep the |
||
}, | ||
]); | ||
|
||
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.observability, [ | ||
{ | ||
id: observabilityLogsID, | ||
category: DEFAULT_APP_CATEGORIES.investigate, | ||
}, | ||
]); | ||
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS[`security-analytics`], [ | ||
{ | ||
id: observabilityLogsID, | ||
category: DEFAULT_APP_CATEGORIES.investigate, | ||
}, | ||
]); | ||
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.analytics, [ | ||
{ | ||
id: observabilityLogsID, | ||
category: DEFAULT_APP_CATEGORIES.investigate, | ||
}, | ||
]); | ||
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.search, [ | ||
{ | ||
id: observabilityLogsID, | ||
category: DEFAULT_APP_CATEGORIES.analyzeSearch, | ||
}, | ||
]); | ||
|
||
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.observability, [ | ||
{ | ||
id: observabilityMetricsID, | ||
category: DEFAULT_APP_CATEGORIES.investigate, | ||
}, | ||
]); | ||
|
||
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.observability, [ | ||
{ | ||
id: observabilityTracesID, | ||
category: DEFAULT_APP_CATEGORIES.investigate, | ||
}, | ||
]); | ||
|
||
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.observability, [ | ||
{ | ||
id: observabilityNotebookID, | ||
category: DEFAULT_APP_CATEGORIES.dashboardAndReport, | ||
TackAdam marked this conversation as resolved.
Show resolved
Hide resolved
|
||
}, | ||
]); | ||
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS[`security-analytics`], [ | ||
{ | ||
id: observabilityNotebookID, | ||
category: DEFAULT_APP_CATEGORIES.dashboardAndReport, | ||
TackAdam marked this conversation as resolved.
Show resolved
Hide resolved
|
||
}, | ||
]); | ||
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.analytics, [ | ||
{ | ||
id: observabilityNotebookID, | ||
category: DEFAULT_APP_CATEGORIES.dashboardAndReport, | ||
TackAdam marked this conversation as resolved.
Show resolved
Hide resolved
|
||
}, | ||
]); | ||
|
||
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.observability, [ | ||
{ | ||
id: observabilityPanelsID, | ||
category: DEFAULT_APP_CATEGORIES.dashboardAndReport, | ||
TackAdam marked this conversation as resolved.
Show resolved
Hide resolved
|
||
}, | ||
]); | ||
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS[`security-analytics`], [ | ||
{ | ||
id: observabilityPanelsID, | ||
category: DEFAULT_APP_CATEGORIES.dashboardAndReport, | ||
TackAdam marked this conversation as resolved.
Show resolved
Hide resolved
|
||
}, | ||
]); | ||
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.analytics, [ | ||
{ | ||
id: observabilityPanelsID, | ||
category: DEFAULT_APP_CATEGORIES.dashboardAndReport, | ||
TackAdam marked this conversation as resolved.
Show resolved
Hide resolved
|
||
}, | ||
]); | ||
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.search, [ | ||
{ | ||
id: observabilityPanelsID, | ||
category: DEFAULT_APP_CATEGORIES.analyzeSearch, | ||
}, | ||
]); | ||
|
||
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.observability, [ | ||
{ | ||
id: observabilityIntegrationsID, | ||
category: DEFAULT_APP_CATEGORIES.dashboardAndReport, | ||
}, | ||
]); | ||
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS[`security-analytics`], [ | ||
{ | ||
id: observabilityIntegrationsID, | ||
category: DEFAULT_APP_CATEGORIES.dashboardAndReport, | ||
}, | ||
]); | ||
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.analytics, [ | ||
{ | ||
id: observabilityIntegrationsID, | ||
category: DEFAULT_APP_CATEGORIES.dashboardAndReport, | ||
}, | ||
]); | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't change this here as it also changes in the name existing side-nav
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1