From dd98925696a8e352268c0fa5fa844086726f821e Mon Sep 17 00:00:00 2001 From: shivani170 Date: Tue, 30 Sep 2025 16:14:36 +0530 Subject: [PATCH 1/2] chore: resource context added in context switcher --- src/Shared/Components/ContextSwitcher/ContextSwitcher.tsx | 3 ++- src/Shared/Components/ContextSwitcher/types.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Shared/Components/ContextSwitcher/ContextSwitcher.tsx b/src/Shared/Components/ContextSwitcher/ContextSwitcher.tsx index d58993707..1e9cb8b2d 100644 --- a/src/Shared/Components/ContextSwitcher/ContextSwitcher.tsx +++ b/src/Shared/Components/ContextSwitcher/ContextSwitcher.tsx @@ -45,6 +45,7 @@ export const ContextSwitcher = ({ optionListError, reloadOptionList, classNamePrefix, + resource, }: ContextSwitcherTypes) => { const selectRef = useRef>(null) const shouldShowToastRef = useRef(true) @@ -60,7 +61,7 @@ export const ContextSwitcher = ({ if (shouldShowToastRef.current) { ToastManager.showToast({ variant: ToastVariantType.shortcut, - text: 'to switch Applications', + text: `to switch ${resource}`, shortcuts: ['S'], }) } diff --git a/src/Shared/Components/ContextSwitcher/types.ts b/src/Shared/Components/ContextSwitcher/types.ts index 7be803ee4..465bb1563 100644 --- a/src/Shared/Components/ContextSwitcher/types.ts +++ b/src/Shared/Components/ContextSwitcher/types.ts @@ -36,6 +36,7 @@ export interface ContextSwitcherTypes > { options: GroupBase>[] isAppDataAvailable?: boolean + resource: 'Cluster' | 'Release' | 'Tenant' | 'Application' | 'Job' | 'Application Group' | 'Chart Store' } export interface RecentlyVisitedOptions extends SelectPickerOptionType { From 3f10890b4680c005d903d99ed8f5b1248054f947 Mon Sep 17 00:00:00 2001 From: shivani170 Date: Tue, 30 Sep 2025 16:14:36 +0530 Subject: [PATCH 2/2] chore: version bump --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 14337481b..3d6dd9eb9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.20.3", + "version": "1.20.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.20.3", + "version": "1.20.4", "hasInstallScript": true, "license": "ISC", "dependencies": { diff --git a/package.json b/package.json index 376b0077b..cc09e2edb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.20.3", + "version": "1.20.4", "description": "Supporting common component library", "type": "module", "main": "dist/index.js",