Skip to content

Commit 569ddad

Browse files
committed
Merge branch 'main' of github.com:devtron-labs/dashboard into develop
2 parents 279de8e + 68391b5 commit 569ddad

File tree

23 files changed

+2668
-555
lines changed

23 files changed

+2668
-555
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.22",
7+
"@devtron-labs/devtron-fe-common-lib": "4.0.1",
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: 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/ClusterNodes/ClusterTerminal.tsx

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ node-details-full-screen
759759
]
760760

761761
return (
762-
<div className="mr-16">
762+
<div>
763763
<TabGroup tabs={tabs} size={ComponentSizeType.medium} />
764764
</div>
765765
)
@@ -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>

src/components/app/details/cIDetails/CIDetails.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,7 @@ const SecurityTab = ({ ciPipelineId, artifactId, status, appIdFromParent }: Secu
740740
SecurityModalSidebar={SecurityModalSidebar}
741741
isSecurityScanV2Enabled={isSecurityScanV2Enabled}
742742
responseData={isSecurityScanV2Enabled ? scanResultResponse?.result : parseExecutionDetailResponse(executionDetailsResponse?.result)}
743+
hidePolicy
743744
/>
744745
</div>
745746
)

0 commit comments

Comments
 (0)