From 54cbaaa3e086cac4675ab733a91bc2d1abad8f5a Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Sun, 21 Jul 2024 12:01:06 +0800 Subject: [PATCH] [navigation-next] feat: update category (#7339) (#7340) * feat: update category * Changeset file for PR #7339 created/updated --------- (cherry picked from commit d4d1f7700b29a1b5af211585cf9338b8a2ba2748) Signed-off-by: SuZhou-Joe Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> --- changelogs/fragments/7339.yml | 2 ++ src/core/utils/default_app_categories.ts | 21 +++++++++++++++------ 2 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 changelogs/fragments/7339.yml diff --git a/changelogs/fragments/7339.yml b/changelogs/fragments/7339.yml new file mode 100644 index 000000000000..23f897df941d --- /dev/null +++ b/changelogs/fragments/7339.yml @@ -0,0 +1,2 @@ +feat: +- [navigation-next] update category ([#7339](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7339)) \ No newline at end of file diff --git a/src/core/utils/default_app_categories.ts b/src/core/utils/default_app_categories.ts index d22dbaf1b7ac..f274cecf2cda 100644 --- a/src/core/utils/default_app_categories.ts +++ b/src/core/utils/default_app_categories.ts @@ -80,19 +80,20 @@ export const DEFAULT_APP_CATEGORIES: Record = Object.freeze }), order: 1000, }, + // TODO remove this default category dashboardAndReport: { id: 'visualizeAndReport', label: i18n.translate('core.ui.visualizeAndReport.label', { defaultMessage: 'Visualize and report', }), - order: 2000, + order: 3000, }, visualizeAndReport: { id: 'visualizeAndReport', label: i18n.translate('core.ui.visualizeAndReport.label', { defaultMessage: 'Visualize and report', }), - order: 2000, + order: 3000, }, analyzeSearch: { id: 'analyzeSearch', @@ -101,12 +102,20 @@ export const DEFAULT_APP_CATEGORIES: Record = Object.freeze }), order: 4000, }, + // TODO remove this default category detect: { - id: 'detect', - label: i18n.translate('core.ui.detect.label', { - defaultMessage: 'Detect', + id: 'configure', + label: i18n.translate('core.ui.configure.label', { + defaultMessage: 'Configure', }), - order: 3000, + order: 2000, + }, + configure: { + id: 'configure', + label: i18n.translate('core.ui.configure.label', { + defaultMessage: 'Configure', + }), + order: 2000, }, manage: { id: 'manage',