File tree Expand file tree Collapse file tree 5 files changed +31
-9
lines changed
Pages/GlobalConfigurations/ClustersAndEnvironments
components/ApplicationGroup/Details/TriggerView Expand file tree Collapse file tree 5 files changed +31
-9
lines changed Original file line number Diff line number Diff line change 4
4
"private" : true ,
5
5
"homepage" : " /dashboard" ,
6
6
"dependencies" : {
7
- "@devtron-labs/devtron-fe-common-lib" : " 1.18.1-pre-2 " ,
7
+ "@devtron-labs/devtron-fe-common-lib" : " 1.18.1-pre-3 " ,
8
8
"@esbuild-plugins/node-globals-polyfill" : " 0.2.3" ,
9
9
"@rjsf/core" : " ^5.13.3" ,
10
10
"@rjsf/utils" : " ^5.13.3" ,
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ import {
34
34
EnvListSortableKeys ,
35
35
EnvNamespaceRowType ,
36
36
} from './cluster.type'
37
- import { environmentNameComparator , getSelectParsedCategory } from './cluster.util'
37
+ import { environmentNameComparator , getNamespaceCount , getSelectParsedCategory } from './cluster.util'
38
38
import { ClusterEnvironmentDrawer } from './ClusterEnvironmentDrawer'
39
39
import { ClusterActions , ClusterEnvLoader , ClusterIconWithStatus } from './ClusterList.components'
40
40
import { ADD_ENVIRONMENT_FORM_LOCAL_STORAGE_KEY } from './constants'
@@ -290,7 +290,18 @@ const ClustersEnvironmentsList = ({
290
290
< span className = "dc__ellipsis-right" > ({ environments . length } Environments)</ span >
291
291
</ div >
292
292
</ Tooltip >
293
- { showUnmappedEnvs ? < span > { ( namespaceListResult ?. result ?? [ ] ) . length } Namespaces</ span > : < span /> }
293
+ { showUnmappedEnvs ? (
294
+ < span >
295
+ { getNamespaceCount ( {
296
+ isVirtualCluster,
297
+ envList : environments ,
298
+ namespaceList : namespaceListResult ?. result ,
299
+ } ) }
300
+ Namespaces
301
+ </ span >
302
+ ) : (
303
+ < span />
304
+ ) }
294
305
< span > { isProd ? 'Production' : 'Non Production' } </ span >
295
306
{ category ?. label ? < span > { category . label } </ span > : < span /> }
296
307
< div className = "flex right" >
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ import {
33
33
ClusterEnvFilterKeys ,
34
34
ClusterTerminalParamsType ,
35
35
emptyClusterTerminalParamsData ,
36
+ Environment ,
36
37
} from './cluster.type'
37
38
import { ADD_CLUSTER_FORM_LOCAL_STORAGE_KEY , ADD_ENVIRONMENT_FORM_LOCAL_STORAGE_KEY } from './constants'
38
39
@@ -169,3 +170,13 @@ export const getBulletColorAccToStatus = (status: ClusterStatusType) => {
169
170
return 'bcr-5'
170
171
}
171
172
}
173
+
174
+ export const getNamespaceCount = ( {
175
+ isVirtualCluster,
176
+ envList,
177
+ namespaceList,
178
+ } : {
179
+ isVirtualCluster : boolean
180
+ envList : Environment [ ]
181
+ namespaceList : string [ ]
182
+ } ) => ( isVirtualCluster ? ( envList ?? [ ] ) . filter ( ( { namespace } ) => ! ! namespace ) . length : ( namespaceList ?? [ ] ) . length )
Original file line number Diff line number Diff line change @@ -807,7 +807,7 @@ const BulkCITrigger = ({
807
807
808
808
return (
809
809
< Drawer position = "right" width = "75%" minWidth = "1024px" maxWidth = "1200px" onClose = { closeBulkCIModal } >
810
- < div className = "bg__primary bulk-ci-trigger-container" >
810
+ < div className = "bg__primary bulk-ci-trigger-container" onClick = { stopPropagation } >
811
811
< div className = "flexbox-col flex-grow-1 dc__overflow-hidden" >
812
812
{ renderHeaderSection ( ) }
813
813
{ responseListLength ? (
Original file line number Diff line number Diff line change @@ -1722,9 +1722,9 @@ __metadata:
1722
1722
languageName : node
1723
1723
linkType : hard
1724
1724
1725
- " @devtron-labs/devtron-fe-common-lib@npm:1.18.1-pre-2 " :
1726
- version : 1.18.1-pre-2
1727
- resolution : " @devtron-labs/devtron-fe-common-lib@npm:1.18.1-pre-2 "
1725
+ " @devtron-labs/devtron-fe-common-lib@npm:1.18.1-pre-3 " :
1726
+ version : 1.18.1-pre-3
1727
+ resolution : " @devtron-labs/devtron-fe-common-lib@npm:1.18.1-pre-3 "
1728
1728
dependencies :
1729
1729
" @codemirror/autocomplete " : " npm:6.18.6"
1730
1730
" @codemirror/lang-json " : " npm:6.0.1"
@@ -1774,7 +1774,7 @@ __metadata:
1774
1774
react-select : 5.8.0
1775
1775
rxjs : ^7.8.1
1776
1776
yaml : ^2.4.1
1777
- checksum : 10c0/8ca5cd044c4554b6eb320979b8736baccbdc87f4e55a26d45a3c7bffb61cedfa4cdc78fa7434c909d885a389fd9f0598abdf7f6411ac0d53a421a304fa5c2c6c
1777
+ checksum : 10c0/4840d247eb16864917a42aaf8bae5388faf41136c2fa2cc0a303cb19980e5a7f7ced5312716d824c88281f25e2bac446cea1715305b62782986ccf13510f7491
1778
1778
languageName : node
1779
1779
linkType : hard
1780
1780
@@ -5721,7 +5721,7 @@ __metadata:
5721
5721
version : 0.0.0-use.local
5722
5722
resolution : " dashboard@workspace:."
5723
5723
dependencies :
5724
- " @devtron-labs/devtron-fe-common-lib " : " npm:1.18.1-pre-2 "
5724
+ " @devtron-labs/devtron-fe-common-lib " : " npm:1.18.1-pre-3 "
5725
5725
" @esbuild-plugins/node-globals-polyfill " : " npm:0.2.3"
5726
5726
" @playwright/test " : " npm:^1.32.1"
5727
5727
" @rjsf/core " : " npm:^5.13.3"
You can’t perform that action at this time.
0 commit comments