From b964072fd5675d3c7df8488b70d7d3853489a0d6 Mon Sep 17 00:00:00 2001 From: Eshank Vaish <48060426+eshankvaish@users.noreply.github.com> Date: Fri, 3 Jan 2025 13:45:55 +0530 Subject: [PATCH] Merge branch 'hotfix-v0.25.0' of github.com:devtron-labs/dashboard into release-candidate-v0.26.0 --- .env | 1 + package.json | 2 +- .../app/details/appDetails/SourceInfo.tsx | 13 +++++++++++++ src/components/app/types.ts | 2 ++ src/css/base.scss | 5 +++++ src/index.tsx | 1 + yarn.lock | 8 ++++---- 7 files changed, 27 insertions(+), 5 deletions(-) diff --git a/.env b/.env index f4240b10cf..b083c1b9c4 100644 --- a/.env +++ b/.env @@ -59,6 +59,7 @@ FEATURE_CONFIG_DRIFT_ENABLE=false FEATURE_PROMO_EMBEDDED_BUTTON_TEXT= FEATURE_PROMO_EMBEDDED_MODAL_TITLE= FEATURE_PROMO_EMBEDDED_IFRAME_URL= +FEATURE_SWAP_TRAFFIC_ENABLE=false FEATURE_RB_SYNC_CLUSTER_ENABLE=false FEATURE_BULK_RESTART_WORKLOADS_FROM_RB=deployment,rollout,daemonset,statefulset FEATURE_DEFAULT_MERGE_STRATEGY= diff --git a/package.json b/package.json index e97564eea6..2717d26114 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "homepage": "/dashboard", "dependencies": { - "@devtron-labs/devtron-fe-common-lib": "1.4.0", + "@devtron-labs/devtron-fe-common-lib": "1.4.0-patch-1", "@esbuild-plugins/node-globals-polyfill": "0.2.3", "@rjsf/core": "^5.13.3", "@rjsf/utils": "^5.13.3", diff --git a/src/components/app/details/appDetails/SourceInfo.tsx b/src/components/app/details/appDetails/SourceInfo.tsx index 607657d4c2..e1af62cbeb 100644 --- a/src/components/app/details/appDetails/SourceInfo.tsx +++ b/src/components/app/details/appDetails/SourceInfo.tsx @@ -52,6 +52,7 @@ import HelmAppConfigApplyStatusCard from '@Components/v2/appDetails/sourceInfo/e const AppDetailsDownloadCard = importComponentFromFELibrary('AppDetailsDownloadCard') const DeploymentWindowStatusCard = importComponentFromFELibrary('DeploymentWindowStatusCard') const ConfigSyncStatusButton = importComponentFromFELibrary('ConfigSyncStatusButton', null, 'function') +const SwapTraffic = importComponentFromFELibrary('SwapTraffic', null, 'function') export const SourceInfo = ({ appDetails, @@ -206,6 +207,18 @@ export const SourceInfo = ({ style={ButtonStyleType.neutral} /> )} + {window._env_.FEATURE_SWAP_TRAFFIC_ENABLE && + SwapTraffic && + !!appDetails.pcoId && + !appDetails.trafficSwitched && ( + + )} {!isVirtualEnvironment && showHibernateModal && (