@openshift-assisted/ui-lib 2.54.1 → 5.0.1-cim
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/@types/cim/components/modals/CimConfiguration/CimStorageMissingAlert.d.ts.map +1 -1
- package/build/@types/cim/components/modals/CimConfiguration/constants.d.ts +1 -1
- package/build/@types/common/components/clusterConfiguration/utils.d.ts +9 -1
- package/build/@types/common/components/clusterConfiguration/utils.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.d.ts.map +1 -1
- package/build/@types/ocm/components/Routes.d.ts +1 -1
- package/build/@types/ocm/components/Routes.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/review/utils.d.ts +1 -1
- package/build/@types/ocm/components/clusterConfiguration/review/utils.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/AssistedInstallerDetailCard.d.ts +1 -1
- package/build/@types/ocm/components/clusterDetail/AssistedInstallerDetailCard.d.ts.map +1 -1
- package/build/@types/ocm/components/ui/Buttons/BackButton.d.ts +1 -1
- package/build/@types/ocm/components/ui/Buttons/BackButton.d.ts.map +1 -1
- package/build/@types/ocm/store/hooks.d.ts +1 -1
- package/build/@types/ocm/store/slices/clusters/selectors.d.ts +5 -61
- package/build/@types/ocm/store/slices/clusters/selectors.d.ts.map +1 -1
- package/build/@types/ocm/store/slices/feature-flags/selectors.d.ts +2 -20
- package/build/@types/ocm/store/slices/feature-flags/selectors.d.ts.map +1 -1
- package/build/@types/ocm/store/slices/infra-envs/selectors.d.ts +4 -21
- package/build/@types/ocm/store/slices/infra-envs/selectors.d.ts.map +1 -1
- package/build/cjs/cim/components/Agent/NoAgentsAlert.js +2 -2
- package/build/cjs/cim/components/Agent/NoAgentsAlert.js.map +1 -1
- package/build/cjs/cim/components/Agent/tableColumns.js +3 -3
- package/build/cjs/cim/components/Agent/tableColumns.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/DetailsPage/NodePoolsTable.js +2 -2
- package/build/cjs/cim/components/Hypershift/DetailsPage/NodePoolsTable.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/AddHostDropdown.js +2 -2
- package/build/cjs/cim/components/InfraEnv/AddHostDropdown.js.map +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigProgressAlert.js +3 -3
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigProgressAlert.js.map +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationFormFields.js +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationFormFields.js.map +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js +2 -2
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js.map +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/CimStorageMissingAlert.js +3 -3
- package/build/cjs/cim/components/modals/CimConfiguration/CimStorageMissingAlert.js.map +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/constants.js +1 -1
- package/build/cjs/cim/components/modals/MassDeleteAgentModal.js +2 -2
- package/build/cjs/cim/components/modals/MassDeleteAgentModal.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/utils.js +13 -1
- package/build/cjs/common/components/clusterConfiguration/utils.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/utils.test.js +36 -0
- package/build/cjs/common/components/clusterConfiguration/utils.test.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js +29 -31
- package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.js +19 -30
- package/build/cjs/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.js.map +1 -1
- package/build/cjs/common/validationSchemas/addressValidation.js +1 -1
- package/build/cjs/common/validationSchemas/addressValidation.js.map +1 -1
- package/build/cjs/ocm/components/Routes.js +8 -8
- package/build/cjs/ocm/components/Routes.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmClusterProgressItems.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmClusterProgressItems.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js +68 -17
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js +50 -13
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.js +4 -2
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/utils.js +7 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/utils.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/utils.test.js +35 -0
- package/build/cjs/ocm/components/clusterConfiguration/review/utils.test.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/AssistedInstallerDetailCard.js +4 -4
- package/build/cjs/ocm/components/clusterDetail/AssistedInstallerDetailCard.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ClusterDetail.js +4 -4
- package/build/cjs/ocm/components/clusterDetail/ClusterDetail.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js +4 -4
- package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js +2 -2
- package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js +2 -2
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardFooter.js +2 -2
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardFooter.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/Operators.js +4 -4
- package/build/cjs/ocm/components/clusterWizard/Operators.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/disconnected/ReviewStep.js +3 -3
- package/build/cjs/ocm/components/clusterWizard/disconnected/ReviewStep.js.map +1 -1
- package/build/cjs/ocm/components/clusters/ClusterBreadcrumbs.js +2 -2
- package/build/cjs/ocm/components/clusters/ClusterBreadcrumbs.js.map +1 -1
- package/build/cjs/ocm/components/clusters/ClusterPage.js +4 -4
- package/build/cjs/ocm/components/clusters/ClusterPage.js.map +1 -1
- package/build/cjs/ocm/components/clusters/Clusters.js +3 -3
- package/build/cjs/ocm/components/clusters/Clusters.js.map +1 -1
- package/build/cjs/ocm/components/clusters/ClustersListToolbar.js +3 -3
- package/build/cjs/ocm/components/clusters/ClustersListToolbar.js.map +1 -1
- package/build/cjs/ocm/components/ui/Buttons/BackButton.js +2 -2
- package/build/cjs/ocm/components/ui/Buttons/BackButton.js.map +1 -1
- package/build/cjs/ocm/store/slices/clusters/selectors.js +2 -2
- package/build/cjs/ocm/store/slices/clusters/selectors.js.map +1 -1
- package/build/cjs/ocm/store/slices/feature-flags/selectors.js.map +1 -1
- package/build/cjs/ocm/store/slices/infra-envs/selectors.js.map +1 -1
- package/lib/cim/components/Agent/NoAgentsAlert.tsx +1 -1
- package/lib/cim/components/Agent/tableColumns.tsx +1 -1
- package/lib/cim/components/Hypershift/DetailsPage/NodePoolsTable.tsx +1 -1
- package/lib/cim/components/InfraEnv/AddHostDropdown.tsx +1 -1
- package/lib/cim/components/modals/CimConfiguration/CimConfigProgressAlert.tsx +2 -2
- package/lib/cim/components/modals/CimConfiguration/CimConfigurationFormFields.tsx +1 -1
- package/lib/cim/components/modals/CimConfiguration/CimConfigurationModal.tsx +2 -2
- package/lib/cim/components/modals/CimConfiguration/CimStorageMissingAlert.tsx +5 -2
- package/lib/cim/components/modals/CimConfiguration/constants.ts +1 -1
- package/lib/cim/components/modals/MassDeleteAgentModal.tsx +1 -1
- package/lib/common/components/clusterConfiguration/utils.test.ts +43 -1
- package/lib/common/components/clusterConfiguration/utils.ts +13 -0
- package/lib/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.tsx +31 -57
- package/lib/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.tsx +33 -38
- package/lib/common/validationSchemas/addressValidation.tsx +2 -2
- package/lib/ocm/components/Routes.tsx +2 -2
- package/lib/ocm/components/clusterConfiguration/OcmClusterProgressItems.tsx +2 -2
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.tsx +86 -22
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.tsx +2 -2
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.ts +57 -20
- package/lib/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.tsx +4 -2
- package/lib/ocm/components/clusterConfiguration/review/utils.test.ts +41 -0
- package/lib/ocm/components/clusterConfiguration/review/utils.tsx +5 -2
- package/lib/ocm/components/clusterDetail/AssistedInstallerDetailCard.tsx +1 -1
- package/lib/ocm/components/clusterDetail/ClusterDetail.tsx +3 -3
- package/lib/ocm/components/clusterWizard/ClusterDetails.tsx +2 -2
- package/lib/ocm/components/clusterWizard/ClusterDetailsForm.tsx +1 -1
- package/lib/ocm/components/clusterWizard/ClusterWizardContextProvider.tsx +1 -1
- package/lib/ocm/components/clusterWizard/ClusterWizardFooter.tsx +1 -1
- package/lib/ocm/components/clusterWizard/Operators.tsx +2 -2
- package/lib/ocm/components/clusterWizard/disconnected/ReviewStep.tsx +2 -2
- package/lib/ocm/components/clusters/ClusterBreadcrumbs.tsx +1 -1
- package/lib/ocm/components/clusters/ClusterPage.tsx +1 -1
- package/lib/ocm/components/clusters/Clusters.tsx +2 -2
- package/lib/ocm/components/clusters/ClustersListToolbar.tsx +2 -2
- package/lib/ocm/components/ui/Buttons/BackButton.tsx +1 -1
- package/lib/ocm/store/slices/clusters/selectors.tsx +7 -5
- package/lib/ocm/store/slices/feature-flags/selectors.ts +5 -2
- package/lib/ocm/store/slices/infra-envs/selectors.ts +4 -2
- package/package.json +8 -8
|
@@ -5,8 +5,11 @@ import { Cluster, DiskEncryption } from '@openshift-assisted/types/assisted-inst
|
|
|
5
5
|
export const getManagementType = ({ userManagedNetworking }: Cluster): string =>
|
|
6
6
|
userManagedNetworking ? 'User-managed networking' : 'Cluster-managed networking';
|
|
7
7
|
|
|
8
|
-
export const getStackTypeLabel = (cluster: Cluster): string =>
|
|
9
|
-
isDualStack(cluster)
|
|
8
|
+
export const getStackTypeLabel = (cluster: Cluster, isSingleClusterFeature = false): string => {
|
|
9
|
+
if (isDualStack(cluster)) return 'Dual-stack';
|
|
10
|
+
if (isSingleClusterFeature) return 'Single stack';
|
|
11
|
+
return 'IPv4';
|
|
12
|
+
};
|
|
10
13
|
|
|
11
14
|
export const getDiskEncryptionEnabledOnStatus = (diskEncryption: DiskEncryption['enableOn']) => {
|
|
12
15
|
let diskEncryptionType = null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useNavigate } from 'react-router
|
|
2
|
+
import { useNavigate } from 'react-router';
|
|
3
3
|
import { Stack, StackItem, Content, ButtonVariant, GridItem, Grid } from '@patternfly/react-core';
|
|
4
4
|
import { ToolbarButton, Alerts, getEnabledHosts, selectOlmOperators, isSNO } from '../../../common';
|
|
5
5
|
import { Cluster } from '@openshift-assisted/types/assisted-installer-service';
|
|
@@ -41,7 +41,7 @@ const ClusterDetail: React.FC<ClusterDetailProps> = ({ cluster }) => {
|
|
|
41
41
|
try {
|
|
42
42
|
const { data } = await ClustersAPI.allowAddHosts(cluster.id);
|
|
43
43
|
updateCluster(data);
|
|
44
|
-
navigate(`${routeBasePath}/clusters/${cluster.id}`);
|
|
44
|
+
void navigate(`${routeBasePath}/clusters/${cluster.id}`);
|
|
45
45
|
} catch (e) {
|
|
46
46
|
handleApiError(e);
|
|
47
47
|
}
|
|
@@ -102,7 +102,7 @@ const ClusterDetail: React.FC<ClusterDetailProps> = ({ cluster }) => {
|
|
|
102
102
|
{!isSingleClusterFeatureEnabled && (
|
|
103
103
|
<ToolbarButton
|
|
104
104
|
variant={ButtonVariant.link}
|
|
105
|
-
onClick={() => navigate('..')}
|
|
105
|
+
onClick={() => void navigate('..')}
|
|
106
106
|
id={getClusterDetailId('button-back-to-all-clusters')}
|
|
107
107
|
>
|
|
108
108
|
Back to all clusters
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useLocation, useNavigate } from 'react-router
|
|
2
|
+
import { useLocation, useNavigate } from 'react-router';
|
|
3
3
|
import { useDispatch } from 'react-redux';
|
|
4
4
|
import {
|
|
5
5
|
useAlerts,
|
|
@@ -89,7 +89,7 @@ const ClusterDetails = ({ cluster, infraEnv }: ClusterDetailsProps) => {
|
|
|
89
89
|
isAssistedMigration,
|
|
90
90
|
isSingleClusterFeatureEnabled,
|
|
91
91
|
);
|
|
92
|
-
navigate(`../${cluster.id}`, { state: ClusterWizardFlowStateNew });
|
|
92
|
+
void navigate(`../${cluster.id}`, { state: ClusterWizardFlowStateNew });
|
|
93
93
|
|
|
94
94
|
if (isAssistedMigration) {
|
|
95
95
|
try {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useSelector } from 'react-redux';
|
|
3
|
-
import { useLocation } from 'react-router
|
|
3
|
+
import { useLocation } from 'react-router';
|
|
4
4
|
import { Flex, Grid, GridItem } from '@patternfly/react-core';
|
|
5
5
|
import isUndefined from 'lodash-es/isUndefined.js';
|
|
6
6
|
import { Formik, FormikHelpers } from 'formik';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import { useLocation } from 'react-router
|
|
2
|
+
import { useLocation } from 'react-router';
|
|
3
3
|
import { ClusterWizardContextType, ClusterWizardContext } from './ClusterWizardContext';
|
|
4
4
|
import {
|
|
5
5
|
ClusterWizardFlowStateType,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useDispatch } from 'react-redux';
|
|
3
|
-
import { useLocation, useNavigate } from 'react-router
|
|
3
|
+
import { useLocation, useNavigate } from 'react-router';
|
|
4
4
|
import { Formik, FormikConfig, useFormikContext } from 'formik';
|
|
5
5
|
import { Cluster } from '@openshift-assisted/types/assisted-installer-service';
|
|
6
6
|
import {
|
|
@@ -74,7 +74,7 @@ const OperatorsForm = ({ cluster }: { cluster: Cluster }) => {
|
|
|
74
74
|
|
|
75
75
|
const handleNext = () => {
|
|
76
76
|
if (window.location.pathname.indexOf('assisted-installer') > -1) {
|
|
77
|
-
navigate(pathname, { state: undefined, replace: true });
|
|
77
|
+
void navigate(pathname, { state: undefined, replace: true });
|
|
78
78
|
}
|
|
79
79
|
clusterWizardContext.moveNext();
|
|
80
80
|
};
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
} from '@patternfly/react-core';
|
|
27
27
|
import { Formik } from 'formik';
|
|
28
28
|
import { saveAs } from 'file-saver';
|
|
29
|
-
import { useNavigate } from 'react-router
|
|
29
|
+
import { useNavigate } from 'react-router';
|
|
30
30
|
|
|
31
31
|
import { getOperatorSpecs } from '../../../../common/components/operators/operatorSpecs';
|
|
32
32
|
|
|
@@ -51,7 +51,7 @@ const ReviewStep = () => {
|
|
|
51
51
|
<ClusterWizardFooter
|
|
52
52
|
onNext={() => {
|
|
53
53
|
downloadUrl && saveAs(downloadUrl);
|
|
54
|
-
navigate('/cluster-list');
|
|
54
|
+
void navigate('/cluster-list');
|
|
55
55
|
}}
|
|
56
56
|
onBack={moveBack}
|
|
57
57
|
nextButtonText="Download ISO"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Breadcrumb, BreadcrumbItem, PageSection } from '@patternfly/react-core';
|
|
3
|
-
import { Link } from 'react-router
|
|
3
|
+
import { Link } from 'react-router';
|
|
4
4
|
import { isInOcm } from '../../../common/api';
|
|
5
5
|
|
|
6
6
|
const ClusterBreadcrumbs = ({ clusterName }: { clusterName?: string }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useNavigate } from 'react-router
|
|
2
|
+
import { useNavigate } from 'react-router';
|
|
3
3
|
import { Button, ButtonVariant, Content, PageSection } from '@patternfly/react-core';
|
|
4
4
|
import { AddCircleOIcon } from '@patternfly/react-icons/dist/js/icons/add-circle-o-icon';
|
|
5
5
|
import {
|
|
@@ -85,7 +85,7 @@ const Clusters = () => {
|
|
|
85
85
|
primaryAction={
|
|
86
86
|
<Button
|
|
87
87
|
variant={ButtonVariant.primary}
|
|
88
|
-
onClick={() => navigate(`~new`)}
|
|
88
|
+
onClick={() => void navigate(`~new`)}
|
|
89
89
|
id="empty-state-new-cluster-button"
|
|
90
90
|
data-ouia-id="button-create-new-cluster"
|
|
91
91
|
>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useNavigate } from 'react-router
|
|
2
|
+
import { useNavigate } from 'react-router';
|
|
3
3
|
import {
|
|
4
4
|
Toolbar,
|
|
5
5
|
ToolbarItem,
|
|
@@ -172,7 +172,7 @@ const ClustersListToolbar: React.FC<ClustersListToolbarProps> = ({
|
|
|
172
172
|
</CustomToolbarFilter>
|
|
173
173
|
<ToolbarButton
|
|
174
174
|
variant={ButtonVariant.primary}
|
|
175
|
-
onClick={() => navigate(`~new`)}
|
|
175
|
+
onClick={() => void navigate(`~new`)}
|
|
176
176
|
id="button-create-new-cluster"
|
|
177
177
|
data-ouia-id="button-create-new-cluster"
|
|
178
178
|
>
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createSelector } from '@reduxjs/toolkit';
|
|
3
|
+
import type { Selector } from 'reselect';
|
|
3
4
|
import type { IRow, IRowData } from '@patternfly/react-table';
|
|
4
|
-
import { Link } from 'react-router
|
|
5
|
+
import { Link } from 'react-router';
|
|
5
6
|
import type { TFunction } from 'i18next';
|
|
6
7
|
import {
|
|
7
8
|
DASH,
|
|
@@ -22,7 +23,7 @@ const selectClusters = (state: RootStateDay1) =>
|
|
|
22
23
|
state.clusters.data.filter((c) => c.kind !== 'DisconnectedCluster');
|
|
23
24
|
const clustersUIState = (state: RootStateDay1) => state.clusters.uiState;
|
|
24
25
|
|
|
25
|
-
export const selectClustersUIState = createSelector(
|
|
26
|
+
export const selectClustersUIState: (state: RootStateDay1) => ResourceUIState = createSelector(
|
|
26
27
|
[selectClusters, clustersUIState],
|
|
27
28
|
(clusters, uiState): ResourceUIState => {
|
|
28
29
|
const { LOADED, EMPTY } = ResourceUIState;
|
|
@@ -95,13 +96,14 @@ const clusterToClusterTableRow = (cluster: Cluster, t: TFunction): IRow => {
|
|
|
95
96
|
export const getClusterTableStatusCell = (rowData: IRowData) =>
|
|
96
97
|
rowData?.cells?.[3] as HumanizedSortable;
|
|
97
98
|
|
|
98
|
-
export const selectClusterTableRows = (t: TFunction) => {
|
|
99
|
+
export const selectClusterTableRows = (t: TFunction): Selector<RootStateDay1, ClusterTableRows> => {
|
|
99
100
|
return createSelector(
|
|
100
101
|
selectClusters,
|
|
101
102
|
(clusters): ClusterTableRows => clusters.map((c) => clusterToClusterTableRow(c, t)),
|
|
102
103
|
);
|
|
103
104
|
};
|
|
104
105
|
|
|
105
|
-
export const selectClusterNames
|
|
106
|
-
|
|
106
|
+
export const selectClusterNames: Selector<RootStateDay1, (string | undefined)[]> = createSelector(
|
|
107
|
+
selectClusters,
|
|
108
|
+
(clusters) => clusters.map((c) => c.name),
|
|
107
109
|
);
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import type { FeatureListType } from '../../../../common/features/featureGate';
|
|
2
2
|
import type { RootStateDay1 } from '../../store-day1';
|
|
3
3
|
import { createSelector } from '@reduxjs/toolkit';
|
|
4
|
+
import type { Selector } from 'reselect';
|
|
4
5
|
|
|
5
6
|
export const selectFeatureFlagsSlice = (state: RootStateDay1) => state.featureFlags;
|
|
6
7
|
|
|
7
|
-
export const isFeatureEnabled = (
|
|
8
|
+
export const isFeatureEnabled = (
|
|
9
|
+
featureId: keyof FeatureListType,
|
|
10
|
+
): Selector<RootStateDay1, boolean> =>
|
|
8
11
|
createSelector(
|
|
9
12
|
selectFeatureFlagsSlice,
|
|
10
|
-
(featureFlags: ReturnType<typeof selectFeatureFlagsSlice>) =>
|
|
13
|
+
(featureFlags: ReturnType<typeof selectFeatureFlagsSlice>): boolean =>
|
|
11
14
|
featureFlags.data[featureId] ?? false,
|
|
12
15
|
);
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { createSelector } from '@reduxjs/toolkit';
|
|
2
|
+
import type { Selector } from 'reselect';
|
|
2
3
|
import type { RootStateDay1 } from '../../store-day1';
|
|
3
4
|
import type { CpuArchitecture } from '../../../../common';
|
|
5
|
+
import type { InfraEnv } from '@openshift-assisted/types/assisted-installer-service';
|
|
4
6
|
|
|
5
7
|
export const selectInfraEnvsSlice = (state: RootStateDay1) => state.infraEnvs;
|
|
6
8
|
export const selectInfraEnvByCpuArchitecture = createSelector(
|
|
7
9
|
[selectInfraEnvsSlice, (_: RootStateDay1, cpuArchitecture: CpuArchitecture) => cpuArchitecture],
|
|
8
|
-
(infraEnvs, cpuArchitecture) =>
|
|
10
|
+
(infraEnvs, cpuArchitecture): InfraEnv | undefined =>
|
|
9
11
|
infraEnvs.find((infraEnv) => infraEnv.cpuArchitecture === cpuArchitecture),
|
|
10
|
-
)
|
|
12
|
+
) as Selector<RootStateDay1, InfraEnv | undefined, [CpuArchitecture]>;
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@openshift-assisted/locales": "
|
|
4
|
-
"@openshift-assisted/types": "
|
|
5
|
-
"@openshift-console/dynamic-plugin-sdk": "^4.
|
|
3
|
+
"@openshift-assisted/locales": "5.0.1-cim",
|
|
4
|
+
"@openshift-assisted/types": "5.0.1-cim",
|
|
5
|
+
"@openshift-console/dynamic-plugin-sdk": "^4.22.0",
|
|
6
6
|
"@patternfly/patternfly": "6.4.0",
|
|
7
7
|
"@patternfly/react-code-editor": "6.4.1",
|
|
8
8
|
"@patternfly/react-core": "6.4.1",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"@react-hook/resize-observer": "^2.0.2",
|
|
14
14
|
"axios-case-converter": "^0.11.1",
|
|
15
15
|
"camel-case": "^4.1.2",
|
|
16
|
-
"cidr-tools": "^
|
|
16
|
+
"cidr-tools": "^12.1.1",
|
|
17
17
|
"classnames": "^2.3.1",
|
|
18
18
|
"file-saver": "^2.0.2",
|
|
19
19
|
"filesize.js": "^2.0.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@types/humanize-plus": "^1.8.2",
|
|
42
42
|
"@types/js-yaml": "^4.0.9",
|
|
43
43
|
"@types/lodash-es": "^4.17.12",
|
|
44
|
-
"@types/node": "^24.
|
|
44
|
+
"@types/node": "^24.13.3",
|
|
45
45
|
"@types/react": "18.2.37",
|
|
46
46
|
"@types/react-autosuggest": "^10.1.5",
|
|
47
47
|
"@types/react-dom": "18.2.15",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"peerDependencies": {
|
|
92
92
|
"@reduxjs/toolkit": "^1.9.7",
|
|
93
93
|
"@sentry/browser": "^5.9 || ^6",
|
|
94
|
-
"axios": "^1.
|
|
94
|
+
"axios": "^1.18.1",
|
|
95
95
|
"i18next": "^20.4 || ^21",
|
|
96
96
|
"monaco-editor": "^0.44.0 || ^0.55.0",
|
|
97
97
|
"react": "^18",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"react-i18next": ">11.7.3",
|
|
100
100
|
"react-monaco-editor": "^0.55.0 || ^0.59.0",
|
|
101
101
|
"react-redux": "^8.0.5",
|
|
102
|
-
"react-router
|
|
102
|
+
"react-router": "^7.17.0",
|
|
103
103
|
"redux": "^4.2.1",
|
|
104
104
|
"uuid": "^8.1",
|
|
105
105
|
"yup": "^1.4.0"
|
|
@@ -136,5 +136,5 @@
|
|
|
136
136
|
]
|
|
137
137
|
}
|
|
138
138
|
},
|
|
139
|
-
"version": "
|
|
139
|
+
"version": "5.0.1-cim"
|
|
140
140
|
}
|