From 38fc03900c788f1eee1573aac17e6249e48eea8b Mon Sep 17 00:00:00 2001 From: SuZhou-Joe Date: Tue, 1 Oct 2024 04:07:39 +0800 Subject: [PATCH] [navigation]feat: update category to flatten menus in analytics(all) use case (#674) * feat: update category Signed-off-by: SuZhou-Joe * feat: update CHANGELOG Signed-off-by: SuZhou-Joe --------- Signed-off-by: SuZhou-Joe (cherry picked from commit 4fd51cc5623f5921ed0fc6476a5d240e139c53cc) --- CHANGELOG.md | 1 + public/plugin.tsx | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index edf900b5..4385d538 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/public/plugin.tsx b/public/plugin.tsx index 10daad84..5ddc5f4f 100644 --- a/public/plugin.tsx +++ b/public/plugin.tsx @@ -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();