Skip to content

Commit d71d4d1

Browse files
committed
Merge branch 'main' of https://github.com/devtron-labs/dashboard into chore/main-pull
2 parents b0080ca + 1aa2351 commit d71d4d1

File tree

8 files changed

+25
-15
lines changed

8 files changed

+25
-15
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.0-pre-0",
7+
"@devtron-labs/devtron-fe-common-lib": "1.20.2-pre-0",
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
@@ -39,7 +39,9 @@ const ResourceBrowser: React.FC = () => {
3939
const [detailClusterListLoading, detailClusterList, , reloadDetailClusterList] = useAsync(() =>
4040
getClusterListing(false, abortControllerRef),
4141
)
42-
const [initialLoading, clusterListMinData, error] = useAsync(() => getClusterListing(true, abortControllerRef))
42+
const [initialLoading, clusterListMinData, error, reloadMinClusterListing] = useAsync(() =>
43+
getClusterListing(true, abortControllerRef),
44+
)
4345

4446
useEffect(
4547
() => () => {
@@ -53,7 +55,7 @@ const ResourceBrowser: React.FC = () => {
5355
[detailClusterList, clusterListMinData],
5456
)
5557

56-
const filteredSortedCluserList = useMemo(
58+
const filteredSortedClusterList = useMemo(
5759
() =>
5860
sortedClusterList.filter(
5961
(option) =>
@@ -65,16 +67,17 @@ const ResourceBrowser: React.FC = () => {
6567

6668
const renderContent = () => {
6769
if (error) {
68-
return <ErrorScreenManager code={error.code} />
70+
return <ErrorScreenManager code={error.code} reload={reloadMinClusterListing} />
6971
}
7072

7173
return (
7274
<ClusterListView
7375
parentRef={parentRef}
74-
clusterOptions={filteredSortedCluserList}
76+
clusterOptions={filteredSortedClusterList}
7577
clusterListLoader={detailClusterListLoading}
7678
initialLoading={initialLoading}
7779
refreshData={reloadDetailClusterList}
80+
isClusterDetailListLoading={detailClusterListLoading}
7881
/>
7982
)
8083
}

src/components/v2/appDetails/k8Resource/nodeDetail/NodeDetailTabs/Manifest.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ const ManifestComponent = ({
689689
handleStickDynamicTabsToTop?.()
690690
}
691691

692-
const hasUnsavedChanges = previousEditorState.current !== getCodeEditorValue()
692+
const hasUnsavedChanges = isEditMode && previousEditorState.current !== getCodeEditorValue()
693693

694694
usePrompt({ shouldPrompt: hasUnsavedChanges })
695695

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1722,9 +1722,9 @@ __metadata:
17221722
languageName: node
17231723
linkType: hard
17241724

1725-
"@devtron-labs/devtron-fe-common-lib@npm:1.20.0-pre-0":
1726-
version: 1.20.0-pre-0
1727-
resolution: "@devtron-labs/devtron-fe-common-lib@npm:1.20.0-pre-0"
1725+
"@devtron-labs/devtron-fe-common-lib@npm:1.20.2-pre-0":
1726+
version: 1.20.2-pre-0
1727+
resolution: "@devtron-labs/devtron-fe-common-lib@npm:1.20.2-pre-0"
17281728
dependencies:
17291729
"@codemirror/autocomplete": "npm:6.18.6"
17301730
"@codemirror/lang-json": "npm:6.0.1"
@@ -1774,7 +1774,7 @@ __metadata:
17741774
react-select: 5.8.0
17751775
rxjs: ^7.8.1
17761776
yaml: ^2.4.1
1777-
checksum: 10c0/6e5bf8c152404212d83b714193a9217f2a895b3074fc865e13a30d10a00877f6283e7a789db0448a821a92011160617740b773fee2189decad51d31166448ae6
1777+
checksum: 10c0/02c46302a67d16f9df1921a7374ac73bd4d652eda4e6ba39ece34ce2c0e849099d44f1158104858b24f309efbabd0a6059abf3c4600ab6b967f75b591a63d2b2
17781778
languageName: node
17791779
linkType: hard
17801780

@@ -5721,7 +5721,7 @@ __metadata:
57215721
version: 0.0.0-use.local
57225722
resolution: "dashboard@workspace:."
57235723
dependencies:
5724-
"@devtron-labs/devtron-fe-common-lib": "npm:1.20.0-pre-0"
5724+
"@devtron-labs/devtron-fe-common-lib": "npm:1.20.2-pre-0"
57255725
"@esbuild-plugins/node-globals-polyfill": "npm:0.2.3"
57265726
"@playwright/test": "npm:^1.32.1"
57275727
"@rjsf/core": "npm:^5.13.3"

0 commit comments

Comments
 (0)