Skip to content

Commit

Permalink
[navigation]feat: update category to flatten menus in analytics(all) …
Browse files Browse the repository at this point in the history
…use case (#674)

* feat: update category

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: update CHANGELOG

Signed-off-by: SuZhou-Joe <[email protected]>

---------

Signed-off-by: SuZhou-Joe <[email protected]>
(cherry picked from commit 4fd51cc)
  • Loading branch information
SuZhou-Joe authored and github-actions[bot] committed Sep 30, 2024
1 parent 3424b82 commit 38fc039
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased 2.x](https://github.com/opensearch-project/dashboards-maps/compare/2.17...2.x)
### Features
* [navigation]feat: update category to flatten menus in analytics(all) use case [#674](https://github.com/opensearch-project/dashboards-maps/pull/674)
### Enhancements
### Bug Fixes
### Infrastructure
Expand Down
10 changes: 10 additions & 0 deletions public/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,16 @@ export class CustomImportMapPlugin
category: DEFAULT_APP_CATEGORIES.visualizeAndReport,
order: 200,
}]);
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.search, [{
id: MAPS_APP_ID,
category: DEFAULT_APP_CATEGORIES.visualizeAndReport,
order: 200,
}]);
core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.all, [{
id: MAPS_APP_ID,
category: DEFAULT_APP_CATEGORIES.visualizeAndReport,
order: 200,
}]);

const mapEmbeddableFactory = new MapEmbeddableFactoryDefinition(async () => {
const [coreStart, depsStart] = await core.getStartServices();
Expand Down

0 comments on commit 38fc039

Please sign in to comment.