-
Notifications
You must be signed in to change notification settings - Fork 919
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]feat: add sample data
menu back
#8076
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
feat: | ||
- [navigation] Add `sample data` menu back ([#8076](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8076)) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,24 +65,32 @@ export class UseCaseService { | |
if (navGroupInfo) { | ||
setupDeps.chrome.navGroup.addNavLinksToGroup(navGroupInfo, [ | ||
{ | ||
id: 'dataSources', | ||
id: 'objects', | ||
category: DEFAULT_APP_CATEGORIES.manageWorkspace, | ||
order: 100, | ||
}, | ||
{ | ||
id: 'indexPatterns', | ||
id: 'dataSources', | ||
category: DEFAULT_APP_CATEGORIES.manageWorkspace, | ||
order: 200, | ||
}, | ||
{ | ||
id: 'objects', | ||
id: 'indexPatterns', | ||
category: DEFAULT_APP_CATEGORIES.manageWorkspace, | ||
order: 300, | ||
}, | ||
{ | ||
id: WORKSPACE_DETAIL_APP_ID, | ||
id: 'import_sample_data', | ||
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. Do we still have sample data card in overview pages? 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. Yes, but we still need the menu in left nav or the bread crumb info of sample data page will be broken. 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. I am having a hard time finding the Add Sample Data card in the workspaces other than Search. Is this something we added in the past day or two? |
||
category: DEFAULT_APP_CATEGORIES.manageWorkspace, | ||
order: 400, | ||
title: i18n.translate('workspace.left.sampleData.label', { | ||
defaultMessage: 'Sample data', | ||
}), | ||
}, | ||
{ | ||
id: WORKSPACE_DETAIL_APP_ID, | ||
category: DEFAULT_APP_CATEGORIES.manageWorkspace, | ||
order: 500, | ||
title: i18n.translate('workspace.settings.workspaceSettings', { | ||
defaultMessage: 'Workspace settings', | ||
}), | ||
|
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.
This seems unrelated, is it by accident?
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.
Nope, as the change is minor so I want to include the change into in this PR as well. No need to raise a new PR for such 1 line change.