Skip to content

Commit bbc34b3

Browse files
committed
fix: hide security tab in external helm apps
1 parent 7b2908f commit bbc34b3

File tree

4 files changed

+17
-35
lines changed

4 files changed

+17
-35
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"homepage": "/dashboard",
66
"dependencies": {
7-
"@devtron-labs/devtron-fe-common-lib": "0.3.16",
7+
"@devtron-labs/devtron-fe-common-lib": "0.3.17",
88
"@esbuild-plugins/node-globals-polyfill": "0.2.3",
99
"@rjsf/core": "^5.13.3",
1010
"@rjsf/utils": "^5.13.3",

src/components/ClusterNodes/ClusterOverview.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,11 @@ function ClusterOverview({ isSuperAdmin, selectedCluster }: ClusterOverviewProps
205205
errorType: _nodeError,
206206
filterText: clusterCapacityResponse.value.result.nodeErrors[_nodeError],
207207
})
208-
setClusterErrorList(_errorList)
209208
}
210209
}
210+
if (_errorList.length > 0) {
211+
setClusterErrorList(_errorList)
212+
}
211213
} else {
212214
setErrorCode(clusterCapacityResponse.reason['code'])
213215
}
@@ -259,7 +261,7 @@ function ClusterOverview({ isSuperAdmin, selectedCluster }: ClusterOverviewProps
259261
return
260262
}
261263
return (
262-
<div className="mb-16 dc__border br-4 pt-12">
264+
<div className="mb-16 dc__border br-4 pt-12 bcn-0">
263265
<div className="flexbox pointer mb-12 pl-16 pr-16">
264266
<Error className="mt-2 mb-2 mr-8 icon-dim-20" />
265267
<span className="fw-6 fs-13 cn-9 mr-16">

src/components/v2/chartDeploymentHistory/ChartDeploymentHistory.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const ChartDeploymentHistory = ({
116116
DEPLOYMENT_HISTORY_TAB.SOURCE,
117117
DEPLOYMENT_HISTORY_TAB.VALUES_YAML,
118118
DEPLOYMENT_HISTORY_TAB.HELM_GENERATED_MANIFEST,
119-
(ChartSecurityTab && isScanV2Enabled && DEPLOYMENT_HISTORY_TAB.SECURITY),
119+
(ChartSecurityTab && isScanV2Enabled && !isExternal && DEPLOYMENT_HISTORY_TAB.SECURITY),
120120
]
121121
if (installedAppInfo?.deploymentType === DeploymentAppTypes.GITOPS) {
122122
tabs.unshift(DEPLOYMENT_HISTORY_TAB.STEPS)

yarn.lock

Lines changed: 11 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1346,14 +1346,14 @@
13461346
dependencies:
13471347
"@jridgewell/trace-mapping" "0.3.9"
13481348

1349-
"@devtron-labs/[email protected].16":
1350-
version "0.3.16"
1351-
resolved "https://registry.yarnpkg.com/@devtron-labs/devtron-fe-common-lib/-/devtron-fe-common-lib-0.3.16.tgz#c45e2afbbd7c8cf8c7be8c526dcfdd613e8b1b0b"
1352-
integrity sha512-AICxokG+g2EJmk6fefip8zxG1PRIf2pe1+4CzkV6bSbOywVdszoc01pL4f6lwv0YDNzLjVqdiMT0pbIShQhHug==
1349+
"@devtron-labs/[email protected].17":
1350+
version "0.3.17"
1351+
resolved "https://registry.yarnpkg.com/@devtron-labs/devtron-fe-common-lib/-/devtron-fe-common-lib-0.3.17.tgz#f0eab42f3bdc4633ce3d52de532a381e565be031"
1352+
integrity sha512-W1pkyBdu9E4VMPcD322eWj1fgn3tXOvdXhVMtWXjuBQmDmo5lNHeXu4/GQ0o54fNzdHWIuBYK1JxJpxrcfvFbw==
13531353
dependencies:
13541354
"@types/react-dates" "^21.8.6"
13551355
ansi_up "^5.2.1"
1356-
dayjs "^1.11.12"
1356+
dayjs "^1.11.13"
13571357
fast-json-patch "^3.1.1"
13581358
jsonpath-plus "^9.0.0"
13591359
react-dates "^21.8.0"
@@ -7337,7 +7337,7 @@ picocolors@^1.0.0, picocolors@^1.0.1:
73377337

73387338
picocolors@^1.1.0:
73397339
version "1.1.0"
7340-
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.0.tgz#5358b76a78cde483ba5cef6a9dc9671440b27d59"
7340+
resolved "https://registry.npmjs.org/picocolors/-/picocolors-1.1.0.tgz"
73417341
integrity sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw==
73427342

73437343
picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2, picomatch@^2.2.3, picomatch@^2.3.1:
@@ -7414,18 +7414,9 @@ possible-typed-array-names@^1.0.0:
74147414
resolved "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz"
74157415
integrity sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==
74167416

7417-
postcss@^8.4.41:
7418-
version "8.4.41"
7419-
resolved "https://registry.npmjs.org/postcss/-/postcss-8.4.41.tgz"
7420-
integrity sha512-TesUflQ0WKZqAvg52PWL6kHgLKP6xB6heTOdoYM0Wt2UHyxNa4K25EZZMgKns3BH1RLVbZCREPpLY0rhnNoHVQ==
7421-
dependencies:
7422-
nanoid "^3.3.7"
7423-
picocolors "^1.0.1"
7424-
source-map-js "^1.2.0"
7425-
74267417
postcss@^8.4.43:
74277418
version "8.4.47"
7428-
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.47.tgz#5bf6c9a010f3e724c503bf03ef7947dcb0fea365"
7419+
resolved "https://registry.npmjs.org/postcss/-/postcss-8.4.47.tgz"
74297420
integrity sha512-56rxCq7G/XfB4EkXq9Egn5GCqugWvDFjafDOThIdMBsI15iqPqR5r15TfSr1YPYeEI19YeaXMCbY6u88Y76GLQ==
74307421
dependencies:
74317422
nanoid "^3.3.7"
@@ -8472,14 +8463,14 @@ [email protected]:
84728463
inherits "^2.0.4"
84738464
url-parse "^1.5.10"
84748465

8475-
"source-map-js@>=0.6.2 <2.0.0", source-map-js@^1.2.0:
8466+
"source-map-js@>=0.6.2 <2.0.0":
84768467
version "1.2.0"
84778468
resolved "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz"
84788469
integrity sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==
84798470

84808471
source-map-js@^1.2.1:
84818472
version "1.2.1"
8482-
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.2.1.tgz#1ce5650fddd87abc099eda37dcff024c2667ae46"
8473+
resolved "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz"
84838474
integrity sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==
84848475

84858476
source-map-support@^0.5.16, source-map-support@~0.5.20:
@@ -9426,9 +9417,9 @@ [email protected]:
94269417
globrex "^0.1.2"
94279418
tsconfck "^3.0.3"
94289419

9429-
9420+
[email protected], vite@^5.0.0:
94309421
version "5.4.6"
9431-
resolved "https://registry.yarnpkg.com/vite/-/vite-5.4.6.tgz#85a93a1228a7fb5a723ca1743e337a2588ed008f"
9422+
resolved "https://registry.npmjs.org/vite/-/vite-5.4.6.tgz"
94329423
integrity sha512-IeL5f8OO5nylsgzd9tq4qD2QqI0k2CQLGrWD0rCN0EQJZpBK5vJAx0I+GDkMOXxQX/OfFHMuLIx6ddAxGX/k+Q==
94339424
dependencies:
94349425
esbuild "^0.21.3"
@@ -9437,17 +9428,6 @@ [email protected]:
94379428
optionalDependencies:
94389429
fsevents "~2.3.3"
94399430

9440-
vite@^5.0.0:
9441-
version "5.4.2"
9442-
resolved "https://registry.npmjs.org/vite/-/vite-5.4.2.tgz"
9443-
integrity sha512-dDrQTRHp5C1fTFzcSaMxjk6vdpKvT+2/mIdE07Gw2ykehT49O0z/VHS3zZ8iV/Gh8BJJKHWOe5RjaNrW5xf/GA==
9444-
dependencies:
9445-
esbuild "^0.21.3"
9446-
postcss "^8.4.41"
9447-
rollup "^4.20.0"
9448-
optionalDependencies:
9449-
fsevents "~2.3.3"
9450-
94519431
94529432
version "2.0.5"
94539433
resolved "https://registry.npmjs.org/vitest/-/vitest-2.0.5.tgz"

0 commit comments

Comments
 (0)