Skip to content

Commit 6dd5029

Browse files
committed
Merge branch 'develop' of https://github.com/devtron-labs/dashboard into chore/kubecon-develop-pull
2 parents 549c5cb + 078e650 commit 6dd5029

File tree

12 files changed

+28
-751
lines changed

12 files changed

+28
-751
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": "1.20.1-pre-4",
7+
"@devtron-labs/devtron-fe-common-lib": "1.20.2-pre-1",
88
"@esbuild-plugins/node-globals-polyfill": "0.2.3",
99
"@rjsf/core": "^5.13.3",
1010
"@rjsf/utils": "^5.13.3",

src/Pages/GlobalConfigurations/Authorization/SSOLoginServices/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const ssoDocumentationMap: Record<SSOProvider, string> = {
4848
*
4949
* Note: Remove once ON for all providers
5050
*/
51-
export const autoAssignPermissionsFlowActiveProviders = [SSOProvider.microsoft, SSOProvider.ldap]
51+
export const autoAssignPermissionsFlowActiveProviders = [SSOProvider.microsoft, SSOProvider.ldap, SSOProvider.oidc]
5252

5353
export const ssoProviderToDisplayNameMap: Record<SSOProvider, string> = {
5454
[SSOProvider.google]: 'Google',

src/components/ClusterNodes/ClusterList/ClusterListView.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ const ClusterListView = (props: ClusterViewType) => {
9292
}
9393
acc[cluster.name] = cluster
9494
return acc
95-
}, {} as ClusterDetail) ?? {},
95+
}, {} as BulkSelectionIdentifiersType<ClusterDetail>) ??
96+
({} as BulkSelectionIdentifiersType<ClusterDetail>),
9697
[filteredList],
9798
)
9899

@@ -149,7 +150,7 @@ const ClusterListView = (props: ClusterViewType) => {
149150
)}
150151
</div>
151152

152-
<ClusterSelectionBody {...props} filteredList={filteredList} />
153+
<ClusterSelectionBody {...props} filteredList={filteredList} identifierMap={allOnThisPageIdentifiers} />
153154
</BulkSelectionProvider>
154155
)
155156
}

src/components/ClusterNodes/ClusterList/ClusterSelectionBody.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ const ClusterSelectionBody: React.FC<ClusterSelectionBodyTypes> = ({
5252
filteredList,
5353
refreshData,
5454
parentRef,
55+
isClusterDetailListLoading,
56+
identifierMap,
5557
}) => {
5658
const [showKubeConfigModal, setShowKubeConfigModal] = useState(false)
5759
const [selectedClusterName, setSelectedClusterName] = useState('')
@@ -136,6 +138,8 @@ const ClusterSelectionBody: React.FC<ClusterSelectionBodyTypes> = ({
136138
clusterName={selectedClusterName || identifierCount === 0}
137139
handleModalClose={onChangeCloseKubeConfigModal}
138140
isSingleClusterButton={!!selectedClusterName}
141+
isClusterDetailListLoading={isClusterDetailListLoading}
142+
identifierMap={identifierMap}
139143
/>
140144
)}
141145
</div>

src/components/ClusterNodes/ClusterList/types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@
1616

1717
import { MutableRefObject } from 'react'
1818

19-
import { ClusterDetail } from '@devtron-labs/devtron-fe-common-lib'
19+
import { BulkSelectionIdentifiersType, ClusterDetail } from '@devtron-labs/devtron-fe-common-lib'
2020

2121
export interface ClusterViewType {
2222
clusterOptions: ClusterDetail[]
2323
clusterListLoader: boolean
2424
initialLoading: boolean
2525
refreshData: () => void
2626
parentRef: MutableRefObject<HTMLDivElement>
27+
isClusterDetailListLoading: boolean
2728
}
2829

2930
export interface ClusterListTypes {
@@ -39,4 +40,5 @@ export interface ClusterListRowTypes extends Omit<ClusterListTypes, 'filteredLis
3940

4041
export interface ClusterSelectionBodyTypes extends ClusterViewType {
4142
filteredList: ClusterDetail[]
43+
identifierMap: BulkSelectionIdentifiersType<ClusterDetail>
4244
}

src/components/ResourceBrowser/ResourceBrowser.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ const ResourceBrowser: React.FC = () => {
4444
const [detailClusterListLoading, detailClusterList, , reloadDetailClusterList] = useAsync(() =>
4545
getClusterListing(false, abortControllerRef),
4646
)
47-
const [initialLoading, clusterListMinData, error] = useAsync(() => getClusterListing(true, abortControllerRef))
47+
const [initialLoading, clusterListMinData, error, reloadMinClusterListing] = useAsync(() =>
48+
getClusterListing(true, abortControllerRef),
49+
)
4850

4951
const { pathname } = useLocation()
5052
const { breadcrumbs } = useBreadcrumb(
@@ -71,7 +73,7 @@ const ResourceBrowser: React.FC = () => {
7173
[detailClusterList, clusterListMinData],
7274
)
7375

74-
const filteredSortedCluserList = useMemo(
76+
const filteredSortedClusterList = useMemo(
7577
() =>
7678
sortedClusterList.filter(
7779
(option) =>
@@ -83,16 +85,17 @@ const ResourceBrowser: React.FC = () => {
8385

8486
const renderContent = () => {
8587
if (error) {
86-
return <ErrorScreenManager code={error.code} />
88+
return <ErrorScreenManager code={error.code} reload={reloadMinClusterListing} />
8789
}
8890

8991
return (
9092
<ClusterListView
9193
parentRef={parentRef}
92-
clusterOptions={filteredSortedCluserList}
94+
clusterOptions={filteredSortedClusterList}
9395
clusterListLoader={detailClusterListLoading}
9496
initialLoading={initialLoading}
9597
refreshData={reloadDetailClusterList}
98+
isClusterDetailListLoading={detailClusterListLoading}
9699
/>
97100
)
98101
}

src/components/ResourceBrowser/ResourceList/utils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ export const getNodeSearchKeysOptionsList = (rows: NodeListSearchFilterType['row
524524
nodeGroups: Map<string, NodeSearchListOptionType>
525525
}>(
526526
(acc, curr) => {
527-
;(curr.data.labels as { key: string; value: string }[]).forEach(({ key, value }) => {
527+
;((curr.data.labels ?? []) as { key: string; value: string }[]).forEach(({ key, value }) => {
528528
if (!acc.labels.has(`${key}/${value}`)) {
529529
acc.labels.set(`${key}/${value}`, {
530530
label: `${key}=${value}`,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export const SourceInfo = ({
158158
loadingCards.push(<LoadingCard key={i} />)
159159
}
160160

161-
return <div className="flex left mb-16">{loadingCards}</div>
161+
return <div className="flex left mb-16 ml-20">{loadingCards}</div>
162162
}
163163

164164
const onClickSliderVerticalButton = () => {

0 commit comments

Comments
 (0)