Skip to content

Commit 328cfd6

Browse files
committed
chore: package update
2 parents f8dbf80 + cc8c438 commit 328cfd6

File tree

23 files changed

+69
-33
lines changed

23 files changed

+69
-33
lines changed

dashboard.code-workspace

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"folders": [
3+
{
4+
"path": "."
5+
},
6+
{
7+
"path": "../devtron-fe-lib"
8+
},
9+
{
10+
"path": "../devtron-fe-common-lib"
11+
}
12+
]
13+
}

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.22-beta-9",
7+
"@devtron-labs/devtron-fe-common-lib": "4.0.1-beta-3",
88
"@esbuild-plugins/node-globals-polyfill": "0.2.3",
99
"@rjsf/core": "^5.13.3",
1010
"@rjsf/utils": "^5.13.3",

src/assets/icons/ic-close.svg

Lines changed: 2 additions & 2 deletions
Loading

src/components/ApplicationGroup/Details/EnvironmentOverview/EnvironmentOverview.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,12 +260,12 @@ export default function EnvironmentOverview({
260260
}
261261

262262
const openHibernateModalPopup = () => {
263-
setIsDeploymentLoading(true)
263+
setIsDeploymentLoading(!!processDeploymentWindowAppGroupOverviewMap)
264264
setOpenedHibernateModalType(MODAL_TYPE.HIBERNATE)
265265
}
266266

267267
const openUnHibernateModalPopup = () => {
268-
setIsDeploymentLoading(true)
268+
setIsDeploymentLoading(!!processDeploymentWindowAppGroupOverviewMap)
269269
setOpenedHibernateModalType(MODAL_TYPE.UNHIBERNATE)
270270
}
271271

src/components/ClusterNodes/ClusterOverview.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ function ClusterOverview({ isSuperAdmin, selectedCluster }: ClusterOverviewProps
205205
errorType: _nodeError,
206206
filterText: clusterCapacityResponse.value.result.nodeErrors[_nodeError],
207207
})
208-
setClusterErrorList(_errorList)
209208
}
210209
}
210+
setClusterErrorList(_errorList)
211211
} else {
212212
setErrorCode(clusterCapacityResponse.reason['code'])
213213
}
@@ -259,7 +259,7 @@ function ClusterOverview({ isSuperAdmin, selectedCluster }: ClusterOverviewProps
259259
return
260260
}
261261
return (
262-
<div className="mb-16 dc__border br-4 pt-12">
262+
<div className="mb-16 dc__border br-4 pt-12 bcn-0">
263263
<div className="flexbox pointer mb-12 pl-16 pr-16">
264264
<Error className="mt-2 mb-2 mr-8 icon-dim-20" />
265265
<span className="fw-6 fs-13 cn-9 mr-16">

src/components/ClusterNodes/ClusterTerminal.tsx

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,14 +861,34 @@ node-details-full-screen
861861

862862
const fullScreenClassWrapper = isFullScreen ? 'cluster-full_screen' : 'cluster-terminal-view-container'
863863

864+
const getNodeGroupOptions = () => {
865+
const nodeGroupOptions = nodeGroups.reduce((acc, group) => {
866+
if (group.label) {
867+
acc.push({
868+
label: group.label,
869+
options: group.options,
870+
})
871+
} else {
872+
const options = group.options.map((option) => ({
873+
label: option.label,
874+
value: option.value,
875+
}))
876+
acc.push(...options) // Flatten the array into the accumulator
877+
}
878+
return acc
879+
}, [])
880+
881+
return nodeGroupOptions
882+
}
883+
864884
const selectionListData: TerminalSelectionListDataType = {
865885
firstRow: [
866886
{
867887
type: TerminalWrapperType.REACT_SELECT,
868888
classNamePrefix: 'cluster-terminal-node',
869889
title: SELECT_TITLE.NODE,
870890
placeholder: 'Select node',
871-
options: nodeGroups,
891+
options: getNodeGroupOptions(),
872892
defaultValue: selectedNodeName,
873893
value: selectedNodeName,
874894
onChange: onChangeNodes,

src/components/ClusterNodes/NodeDetailsList.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ export default function NodeDetailsList({ isSuperAdmin, renderRefreshBar, addTab
133133
const qs = queryString.parse(location.search)
134134
const offset = Number(qs['offset'])
135135
setNodeListOffset(offset || 0)
136+
const version = qs['k8sversion']
137+
if (version && typeof version === 'string' && selectedVersion.value !== version) {
138+
setSelectedVersion({ label: `K8s version: ${version}`, value: version })
139+
}
136140
}, [location.search])
137141

138142
useEffect(() => {

src/components/ResourceBrowser/ResourceList/ResourceBrowserActionMenu.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ const ResourceBrowserActionMenu: React.FC<ResourceBrowserActionMenuType> = ({
195195
isLoading={resourceScanLoading}
196196
error={resourceScanError}
197197
responseData={resourceScanResponse?.result}
198+
hidePolicy
198199
/>
199200
)}
200201
</>

src/components/app/details/appDetails/AppSecurity.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ export const useGetAppSecurityDetails = ({
3636
)
3737

3838
const [executionDetailsLoading, executionDetailsResponse, executionDetailsError, reloadExecutionDetails] = useAsync(
39-
() =>
40-
getExecutionDetails(appId && artifactId ? { appId, artifactId } : { appId, envId, imageScanDeployInfoId }),
39+
() => getExecutionDetails(artifactId ? { appId, envId, artifactId } : { appId, envId, imageScanDeployInfoId }),
4140
[appId, envId, imageScanDeployInfoId, artifactId],
4241
!isSecurityScanV2Enabled && !!appId,
4342
)

src/components/app/details/appDetails/SecurityVulnerabilityCard.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ export const SecurityVulnerabilityCard = ({
197197
isLoading={scanDetailsLoading}
198198
error={scanDetailsError}
199199
responseData={scanDetailsResponse?.result}
200+
hidePolicy
200201
/>
201202
)}
202203
</button>

0 commit comments

Comments
 (0)