@openshift-assisted/ui-lib 2.11.3-cim → 2.12.0-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/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabMock.d.ts +1 -4
- package/build/@types/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabMock.d.ts.map +1 -1
- package/build/@types/ocm/components/Routes.d.ts +3 -2
- package/build/@types/ocm/components/Routes.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/AssistedInstallerDetailCard.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/ClusterDetails.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/ClusterWizardContextProvider.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/ClusterWizardFooter.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/Operators.d.ts.map +1 -1
- package/build/@types/ocm/components/clusters/ClusterBreadcrumbs.d.ts.map +1 -1
- package/build/@types/ocm/components/clusters/ClusterPage.d.ts +3 -9
- package/build/@types/ocm/components/clusters/ClusterPage.d.ts.map +1 -1
- package/build/@types/ocm/components/clusters/ClusterPageErrors.d.ts.map +1 -1
- package/build/@types/ocm/components/clusters/Clusters.d.ts +1 -3
- package/build/@types/ocm/components/clusters/Clusters.d.ts.map +1 -1
- package/build/@types/ocm/components/clusters/ClustersListToolbar.d.ts.map +1 -1
- package/build/@types/ocm/components/clusters/NewClusterPage.d.ts +2 -3
- package/build/@types/ocm/components/clusters/NewClusterPage.d.ts.map +1 -1
- package/build/@types/ocm/components/ui/Buttons/BackButton.d.ts +2 -3
- package/build/@types/ocm/components/ui/Buttons/BackButton.d.ts.map +1 -1
- package/build/@types/ocm/store/slices/clusters/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/tableUtils.js +3 -3
- package/build/cjs/cim/components/Agent/tableUtils.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/CimStorageMissingAlert.js +3 -3
- package/build/cjs/cim/components/modals/CimConfiguration/CimStorageMissingAlert.js.map +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/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabMock.js.map +1 -1
- package/build/cjs/ocm/components/Routes.js +10 -10
- package/build/cjs/ocm/components/Routes.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/AssistedInstallerDetailCard.js +2 -3
- package/build/cjs/ocm/components/clusterDetail/AssistedInstallerDetailCard.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ClusterDetail.js +5 -5
- package/build/cjs/ocm/components/clusterDetail/ClusterDetail.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js +4 -5
- 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 +3 -2
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardFooter.js +3 -4
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardFooter.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/Operators.js +6 -4
- package/build/cjs/ocm/components/clusterWizard/Operators.js.map +1 -1
- package/build/cjs/ocm/components/clusters/ClusterBreadcrumbs.js +3 -4
- package/build/cjs/ocm/components/clusters/ClusterBreadcrumbs.js.map +1 -1
- package/build/cjs/ocm/components/clusters/ClusterPage.js +10 -7
- package/build/cjs/ocm/components/clusters/ClusterPage.js.map +1 -1
- package/build/cjs/ocm/components/clusters/ClusterPageErrors.js +1 -2
- package/build/cjs/ocm/components/clusters/ClusterPageErrors.js.map +1 -1
- package/build/cjs/ocm/components/clusters/Clusters.js +6 -5
- package/build/cjs/ocm/components/clusters/Clusters.js.map +1 -1
- package/build/cjs/ocm/components/clusters/ClustersListToolbar.js +3 -4
- package/build/cjs/ocm/components/clusters/ClustersListToolbar.js.map +1 -1
- package/build/cjs/ocm/components/clusters/NewClusterPage.js +1 -1
- package/build/cjs/ocm/components/clusters/NewClusterPage.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 -3
- package/build/cjs/ocm/store/slices/clusters/selectors.js.map +1 -1
- package/lib/cim/components/Agent/NoAgentsAlert.tsx +1 -1
- package/lib/cim/components/Agent/tableUtils.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 +3 -3
- package/lib/cim/components/modals/CimConfiguration/CimStorageMissingAlert.tsx +3 -6
- package/lib/cim/components/modals/MassDeleteAgentModal.tsx +1 -1
- package/lib/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabMock.tsx +1 -5
- package/lib/ocm/components/Routes.tsx +13 -9
- package/lib/ocm/components/clusterDetail/AssistedInstallerDetailCard.tsx +2 -3
- package/lib/ocm/components/clusterDetail/ClusterDetail.tsx +5 -5
- package/lib/ocm/components/clusterWizard/ClusterDetails.tsx +4 -5
- package/lib/ocm/components/clusterWizard/ClusterDetailsForm.tsx +1 -1
- package/lib/ocm/components/clusterWizard/ClusterWizardContextProvider.tsx +3 -2
- package/lib/ocm/components/clusterWizard/ClusterWizardFooter.tsx +3 -7
- package/lib/ocm/components/clusterWizard/Operators.tsx +5 -3
- package/lib/ocm/components/clusters/ClusterBreadcrumbs.tsx +2 -3
- package/lib/ocm/components/clusters/ClusterPage.tsx +19 -16
- package/lib/ocm/components/clusters/ClusterPageErrors.tsx +1 -2
- package/lib/ocm/components/clusters/Clusters.tsx +6 -8
- package/lib/ocm/components/clusters/ClustersListToolbar.tsx +3 -4
- package/lib/ocm/components/clusters/NewClusterPage.tsx +4 -6
- package/lib/ocm/components/ui/Buttons/BackButton.tsx +2 -4
- package/lib/ocm/store/slices/clusters/selectors.tsx +2 -3
- package/package.json +4 -4
- package/build/@types/ocm/components/ui/RedirectToCluster.d.ts +0 -8
- package/build/@types/ocm/components/ui/RedirectToCluster.d.ts.map +0 -1
- package/build/cjs/ocm/components/ui/RedirectToCluster.js +0 -14
- package/build/cjs/ocm/components/ui/RedirectToCluster.js.map +0 -1
- package/lib/ocm/components/ui/RedirectToCluster.tsx +0 -14
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { useNavigate } from 'react-router-dom-v5-compat';
|
|
3
3
|
import {
|
|
4
4
|
Toolbar,
|
|
5
5
|
ToolbarItem,
|
|
@@ -23,7 +23,6 @@ import { SyncIcon } from '@patternfly/react-icons/dist/js/icons/sync-icon';
|
|
|
23
23
|
import { clusterStatusLabels, isSelectEventChecked, ToolbarButton } from '../../../common';
|
|
24
24
|
import { ResourceUIState } from '../../../common';
|
|
25
25
|
import { fetchClustersAsync } from '../../store/slices/clusters/slice';
|
|
26
|
-
import { routeBasePath } from '../../config';
|
|
27
26
|
import omit from 'lodash-es/omit.js';
|
|
28
27
|
import { TFunction } from 'i18next';
|
|
29
28
|
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
@@ -52,7 +51,7 @@ const ClustersListToolbar: React.FC<ClustersListToolbarProps> = ({
|
|
|
52
51
|
setFilters,
|
|
53
52
|
}) => {
|
|
54
53
|
const [isStatusExpanded, setStatusExpanded] = React.useState(false);
|
|
55
|
-
const
|
|
54
|
+
const navigate = useNavigate();
|
|
56
55
|
const clustersUIState = useSelectorDay1(selectClustersUIState);
|
|
57
56
|
const dispatch = useDispatchDay1();
|
|
58
57
|
const fetchClusters = React.useCallback(() => void dispatch(fetchClustersAsync()), [dispatch]);
|
|
@@ -153,7 +152,7 @@ const ClustersListToolbar: React.FC<ClustersListToolbarProps> = ({
|
|
|
153
152
|
</ToolbarFilter>
|
|
154
153
|
<ToolbarButton
|
|
155
154
|
variant={ButtonVariant.primary}
|
|
156
|
-
onClick={() =>
|
|
155
|
+
onClick={() => navigate(`~new`)}
|
|
157
156
|
id="button-create-new-cluster"
|
|
158
157
|
data-ouia-id="button-create-new-cluster"
|
|
159
158
|
>
|
|
@@ -11,9 +11,7 @@ import { ClusterUiError } from './ClusterPageErrors';
|
|
|
11
11
|
import { NewFeatureSupportLevelProvider } from '../featureSupportLevels';
|
|
12
12
|
import { AssistedInstallerHeader } from './AssistedInstallerHeader';
|
|
13
13
|
|
|
14
|
-
const NewClusterPageGeneric:
|
|
15
|
-
pageTitleSection,
|
|
16
|
-
}) => {
|
|
14
|
+
const NewClusterPageGeneric = ({ pageTitleSection }: { pageTitleSection?: ReactNode }) => {
|
|
17
15
|
return (
|
|
18
16
|
<AlertsContextProvider>
|
|
19
17
|
<SentryErrorMonitorContextProvider>
|
|
@@ -35,7 +33,7 @@ const NewClusterPageGeneric: React.FC<{ pageTitleSection?: ReactNode }> = ({
|
|
|
35
33
|
);
|
|
36
34
|
};
|
|
37
35
|
|
|
38
|
-
const NewClusterTitleSection
|
|
36
|
+
const NewClusterTitleSection = () => (
|
|
39
37
|
<>
|
|
40
38
|
<ClusterBreadcrumbs clusterName="New cluster" />
|
|
41
39
|
<PageSection variant={PageSectionVariants.light}>
|
|
@@ -44,7 +42,7 @@ const NewClusterTitleSection: React.FC = () => (
|
|
|
44
42
|
</>
|
|
45
43
|
);
|
|
46
44
|
|
|
47
|
-
export const NewSingleClusterPage
|
|
48
|
-
export const NewClusterPage
|
|
45
|
+
export const NewSingleClusterPage = () => <NewClusterPageGeneric />;
|
|
46
|
+
export const NewClusterPage = () => (
|
|
49
47
|
<NewClusterPageGeneric pageTitleSection={<NewClusterTitleSection />} />
|
|
50
48
|
);
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { Link } from 'react-router-dom';
|
|
2
|
-
import type { LinkProps } from 'react-router-dom';
|
|
3
|
-
import type { LocationState } from 'history';
|
|
1
|
+
import { Link, LinkProps } from 'react-router-dom-v5-compat';
|
|
4
2
|
import type { ButtonProps } from '@patternfly/react-core';
|
|
5
3
|
import { Button } from '@patternfly/react-core';
|
|
6
4
|
import React from 'react';
|
|
7
5
|
|
|
8
6
|
export type BackButtonProps = {
|
|
9
|
-
to: LinkProps
|
|
7
|
+
to: LinkProps['to'];
|
|
10
8
|
variant?: ButtonProps['variant'];
|
|
11
9
|
};
|
|
12
10
|
export const BackButton = ({ to, variant = 'secondary' }: BackButtonProps) => (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createSelector } from '@reduxjs/toolkit';
|
|
3
3
|
import type { IRow, IRowData } from '@patternfly/react-table';
|
|
4
|
-
import { Link } from 'react-router-dom';
|
|
4
|
+
import { Link } from 'react-router-dom-v5-compat';
|
|
5
5
|
import type { TFunction } from 'i18next';
|
|
6
6
|
import {
|
|
7
7
|
DASH,
|
|
@@ -14,7 +14,6 @@ import {
|
|
|
14
14
|
} from '../../../../common';
|
|
15
15
|
import type { ClusterTableRows, HumanizedSortable } from '../../../../common';
|
|
16
16
|
import ClusterStatus, { getClusterStatusText } from '../../../components/clusters/ClusterStatus';
|
|
17
|
-
import { routeBasePath } from '../../../config';
|
|
18
17
|
import { RootStateDay1 } from '../../store-day1';
|
|
19
18
|
import type { Cluster } from '@openshift-assisted/types/assisted-installer-service';
|
|
20
19
|
|
|
@@ -53,7 +52,7 @@ const clusterToClusterTableRow = (cluster: Cluster, t: TFunction): IRow => {
|
|
|
53
52
|
cells: [
|
|
54
53
|
{
|
|
55
54
|
title: (
|
|
56
|
-
<Link key={name} to={
|
|
55
|
+
<Link key={name} to={id} id={`cluster-link-${id}`}>
|
|
57
56
|
{name}
|
|
58
57
|
</Link>
|
|
59
58
|
),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@openshift-assisted/locales": "2.
|
|
4
|
-
"@openshift-assisted/types": "2.
|
|
3
|
+
"@openshift-assisted/locales": "2.12.0-cim",
|
|
4
|
+
"@openshift-assisted/types": "2.12.0-cim",
|
|
5
5
|
"@openshift-console/dynamic-plugin-sdk": "0.0.3",
|
|
6
6
|
"@patternfly/patternfly": "^4.222.4",
|
|
7
7
|
"@patternfly/react-code-editor": "^4.82.113",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"react-i18next": ">11.7.3",
|
|
104
104
|
"react-monaco-editor": "^0.51.0",
|
|
105
105
|
"react-redux": "^8.0.5",
|
|
106
|
-
"react-router-dom": "^
|
|
106
|
+
"react-router-dom-v5-compat": "^6.21.2",
|
|
107
107
|
"react-tagsinput": "^3.20",
|
|
108
108
|
"redux": "^4",
|
|
109
109
|
"uuid": "^8.1",
|
|
@@ -141,5 +141,5 @@
|
|
|
141
141
|
]
|
|
142
142
|
}
|
|
143
143
|
},
|
|
144
|
-
"version": "2.
|
|
144
|
+
"version": "2.12.0-cim"
|
|
145
145
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { History } from 'history';
|
|
3
|
-
export declare const redirectToCluster: (history: History, id: string) => void;
|
|
4
|
-
declare const RedirectToCluster: React.FC<{
|
|
5
|
-
id: string;
|
|
6
|
-
}>;
|
|
7
|
-
export default RedirectToCluster;
|
|
8
|
-
//# sourceMappingURL=RedirectToCluster.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RedirectToCluster.d.ts","sourceRoot":"","sources":["../../../../../lib/ocm/components/ui/RedirectToCluster.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAGlC,eAAO,MAAM,iBAAiB,YAAa,OAAO,MAAM,MAAM,SAE7D,CAAC;AAEF,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAE/C,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.redirectToCluster = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
const react_router_dom_1 = require("react-router-dom");
|
|
7
|
-
const config_1 = require("../../config");
|
|
8
|
-
const redirectToCluster = (history, id) => {
|
|
9
|
-
history.push(`${config_1.routeBasePath}/clusters/${id}`);
|
|
10
|
-
};
|
|
11
|
-
exports.redirectToCluster = redirectToCluster;
|
|
12
|
-
const RedirectToCluster = ({ id }) => (react_1.default.createElement(react_router_dom_1.Redirect, { to: `${config_1.routeBasePath}/clusters/${id}` }));
|
|
13
|
-
exports.default = RedirectToCluster;
|
|
14
|
-
//# sourceMappingURL=RedirectToCluster.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RedirectToCluster.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/ui/RedirectToCluster.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,uDAA4C;AAE5C,yCAA6C;AAEtC,MAAM,iBAAiB,GAAG,CAAC,OAAgB,EAAE,EAAU,EAAE,EAAE;IAChE,OAAO,CAAC,IAAI,CAAC,GAAG,sBAAa,aAAa,EAAE,EAAE,CAAC,CAAC;AAClD,CAAC,CAAC;AAFW,QAAA,iBAAiB,qBAE5B;AAEF,MAAM,iBAAiB,GAA6B,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAC9D,8BAAC,2BAAQ,IAAC,EAAE,EAAE,GAAG,sBAAa,aAAa,EAAE,EAAE,GAAI,CACpD,CAAC;AAEF,kBAAe,iBAAiB,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Redirect } from 'react-router-dom';
|
|
3
|
-
import { History } from 'history';
|
|
4
|
-
import { routeBasePath } from '../../config';
|
|
5
|
-
|
|
6
|
-
export const redirectToCluster = (history: History, id: string) => {
|
|
7
|
-
history.push(`${routeBasePath}/clusters/${id}`);
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
const RedirectToCluster: React.FC<{ id: string }> = ({ id }) => (
|
|
11
|
-
<Redirect to={`${routeBasePath}/clusters/${id}`} />
|
|
12
|
-
);
|
|
13
|
-
|
|
14
|
-
export default RedirectToCluster;
|