@openshift-assisted/ui-lib 2.17.3-cim → 2.17.4-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/Agent/BMHStatusInfo.d.ts.map +1 -1
- package/build/@types/cim/components/Agent/MinimalHWRequirements.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/DetailsPage/ConditionsTable.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/DetailsPage/HostedClusterProgress.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/DetailsPage/NodePoolsProgress.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/utils/status.d.ts +2 -2
- package/build/@types/cim/components/Hypershift/utils/status.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/EnvironmentDetails.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/InfraEnvHostsTabAgentsWarning.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/agentStatus.d.ts +1 -1
- package/build/@types/cim/components/helpers/agentStatus.d.ts.map +1 -1
- package/build/@types/cim/components/modals/CimConfiguration/CimConfigurationFormFields.d.ts.map +1 -1
- package/build/@types/cim/components/modals/CimConfiguration/CimConfigurationModal.d.ts.map +1 -1
- package/build/@types/cim/components/modals/CimConfiguration/persist.d.ts.map +1 -1
- package/build/@types/cim/components/modals/CimConfiguration/types.d.ts +1 -1
- package/build/@types/cim/components/modals/MassDeleteAgentModal.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.d.ts.map +1 -1
- package/build/@types/common/components/clusterDetail/FinalizingProgress.d.ts +1 -1
- package/build/@types/common/components/clusterDetail/FinalizingProgress.d.ts.map +1 -1
- package/build/@types/common/components/clusterDetail/OperatorsProgressItem.d.ts.map +1 -1
- package/build/@types/common/components/clusterDetail/ProgressBarTexts.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/ReviewValidations.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.d.ts.map +1 -1
- package/build/@types/common/components/hosts/HostPropertyValidationPopover.d.ts.map +1 -1
- package/build/@types/common/components/hosts/HostStatus.d.ts.map +1 -1
- package/build/@types/common/components/hosts/HostValidationGroups.d.ts.map +1 -1
- package/build/@types/common/components/hosts/Hostname.d.ts.map +1 -1
- package/build/@types/common/components/hosts/MassChangeHostnameModal.d.ts.map +1 -1
- package/build/@types/common/components/hosts/VMRebootConfigurationInfo.d.ts.map +1 -1
- package/build/@types/common/components/hosts/status.d.ts.map +1 -1
- package/build/@types/common/components/storage/DisksTable.d.ts.map +1 -1
- package/build/@types/common/components/storage/StorageUtils.d.ts +1 -1
- package/build/@types/common/components/storage/StorageUtils.d.ts.map +1 -1
- package/build/@types/common/components/ui/WizardNavItem.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/RemovableField.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/RichInputField.d.ts.map +1 -1
- package/build/@types/common/components/ui/index.d.ts +0 -1
- package/build/@types/common/components/ui/index.d.ts.map +1 -1
- package/build/@types/common/validationSchemas/addressValidation.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/OcmOperatorProgressItem.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/OpenshiftVersionHelperText.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/HostInventoryExpandable.d.ts +1 -1
- package/build/@types/ocm/components/clusterDetail/HostInventoryExpandable.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/OpenShiftVersionDetail.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/ResetClusterModal.d.ts.map +1 -1
- package/build/@types/ocm/components/clusters/ClusterStatus.d.ts.map +1 -1
- package/build/@types/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.d.ts.map +1 -1
- package/build/@types/ocm/components/ui/InfoLinkWithModal.d.ts.map +1 -1
- package/build/cjs/cim/components/Agent/BMHStatusInfo.js +4 -4
- package/build/cjs/cim/components/Agent/BMHStatusInfo.js.map +1 -1
- package/build/cjs/cim/components/Agent/MinimalHWRequirements.js +2 -2
- package/build/cjs/cim/components/Agent/MinimalHWRequirements.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/DetailsPage/ConditionsTable.js +7 -6
- package/build/cjs/cim/components/Hypershift/DetailsPage/ConditionsTable.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/DetailsPage/HostedClusterProgress.js +3 -2
- package/build/cjs/cim/components/Hypershift/DetailsPage/HostedClusterProgress.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/DetailsPage/NodePoolsProgress.js +2 -2
- package/build/cjs/cim/components/Hypershift/DetailsPage/NodePoolsProgress.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/utils/status.js +8 -7
- package/build/cjs/cim/components/Hypershift/utils/status.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/EnvironmentDetails.js +4 -4
- package/build/cjs/cim/components/InfraEnv/EnvironmentDetails.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/InfraEnvHostsTabAgentsWarning.js +3 -3
- package/build/cjs/cim/components/InfraEnv/InfraEnvHostsTabAgentsWarning.js.map +1 -1
- package/build/cjs/cim/components/helpers/agentStatus.js +3 -2
- package/build/cjs/cim/components/helpers/agentStatus.js.map +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationFormFields.js +7 -3
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationFormFields.js.map +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js +4 -3
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js.map +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/persist.js +7 -0
- package/build/cjs/cim/components/modals/CimConfiguration/persist.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/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.js +2 -1
- package/build/cjs/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.js.map +1 -1
- package/build/cjs/common/components/clusterDetail/FinalizingProgress.js +8 -7
- package/build/cjs/common/components/clusterDetail/FinalizingProgress.js.map +1 -1
- package/build/cjs/common/components/clusterDetail/OperatorsProgressItem.js +4 -4
- package/build/cjs/common/components/clusterDetail/OperatorsProgressItem.js.map +1 -1
- package/build/cjs/common/components/clusterDetail/ProgressBarTexts.js +5 -4
- package/build/cjs/common/components/clusterDetail/ProgressBarTexts.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/ReviewValidations.js +7 -6
- package/build/cjs/common/components/clusterWizard/ReviewValidations.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.js +2 -2
- package/build/cjs/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.js.map +1 -1
- package/build/cjs/common/components/hosts/HostPropertyValidationPopover.js +6 -6
- package/build/cjs/common/components/hosts/HostPropertyValidationPopover.js.map +1 -1
- package/build/cjs/common/components/hosts/HostStatus.js +2 -1
- package/build/cjs/common/components/hosts/HostStatus.js.map +1 -1
- package/build/cjs/common/components/hosts/HostValidationGroups.js +6 -6
- package/build/cjs/common/components/hosts/HostValidationGroups.js.map +1 -1
- package/build/cjs/common/components/hosts/Hostname.js +4 -3
- package/build/cjs/common/components/hosts/Hostname.js.map +1 -1
- package/build/cjs/common/components/hosts/MassChangeHostnameModal.js +2 -2
- package/build/cjs/common/components/hosts/MassChangeHostnameModal.js.map +1 -1
- package/build/cjs/common/components/hosts/VMRebootConfigurationInfo.js +2 -1
- package/build/cjs/common/components/hosts/VMRebootConfigurationInfo.js.map +1 -1
- package/build/cjs/common/components/hosts/status.js +19 -13
- package/build/cjs/common/components/hosts/status.js.map +1 -1
- package/build/cjs/common/components/storage/DisksTable.js +4 -2
- package/build/cjs/common/components/storage/DisksTable.js.map +1 -1
- package/build/cjs/common/components/storage/StorageUtils.js +3 -2
- package/build/cjs/common/components/storage/StorageUtils.js.map +1 -1
- package/build/cjs/common/components/ui/WizardNavItem.js +2 -2
- package/build/cjs/common/components/ui/WizardNavItem.js.map +1 -1
- package/build/cjs/common/components/ui/formik/RemovableField.js +3 -3
- package/build/cjs/common/components/ui/formik/RemovableField.js.map +1 -1
- package/build/cjs/common/components/ui/formik/RichInputField.js +4 -4
- package/build/cjs/common/components/ui/formik/RichInputField.js.map +1 -1
- package/build/cjs/common/components/ui/index.js +1 -3
- package/build/cjs/common/components/ui/index.js.map +1 -1
- package/build/cjs/common/validationSchemas/addressValidation.js +16 -4
- package/build/cjs/common/validationSchemas/addressValidation.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmOperatorProgressItem.js +4 -4
- package/build/cjs/ocm/components/clusterConfiguration/OcmOperatorProgressItem.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OpenshiftVersionHelperText.js +5 -2
- package/build/cjs/ocm/components/clusterConfiguration/OpenshiftVersionHelperText.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js +5 -2
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.js +5 -3
- package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.js +11 -7
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/HostInventoryExpandable.js +5 -4
- package/build/cjs/ocm/components/clusterDetail/HostInventoryExpandable.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/OpenShiftVersionDetail.js +4 -3
- package/build/cjs/ocm/components/clusterDetail/OpenShiftVersionDetail.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js +4 -2
- package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js.map +1 -1
- package/build/cjs/ocm/components/clusters/ClusterStatus.js +13 -7
- package/build/cjs/ocm/components/clusters/ClusterStatus.js.map +1 -1
- package/build/cjs/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.js +7 -6
- package/build/cjs/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.js.map +1 -1
- package/build/cjs/ocm/components/ui/InfoLinkWithModal.js +2 -2
- package/build/cjs/ocm/components/ui/InfoLinkWithModal.js.map +1 -1
- package/lib/cim/components/Agent/BMHStatusInfo.tsx +12 -4
- package/lib/cim/components/Agent/MinimalHWRequirements.tsx +4 -2
- package/lib/cim/components/Hypershift/DetailsPage/ConditionsTable.tsx +13 -7
- package/lib/cim/components/Hypershift/DetailsPage/HostedClusterProgress.tsx +8 -4
- package/lib/cim/components/Hypershift/DetailsPage/NodePoolsProgress.tsx +6 -2
- package/lib/cim/components/Hypershift/utils/status.tsx +20 -9
- package/lib/cim/components/InfraEnv/EnvironmentDetails.tsx +11 -4
- package/lib/cim/components/InfraEnv/InfraEnvHostsTabAgentsWarning.tsx +4 -6
- package/lib/cim/components/helpers/agentStatus.tsx +7 -3
- package/lib/cim/components/modals/CimConfiguration/CimConfigurationFormFields.tsx +7 -5
- package/lib/cim/components/modals/CimConfiguration/CimConfigurationModal.tsx +4 -3
- package/lib/cim/components/modals/CimConfiguration/persist.ts +11 -0
- package/lib/cim/components/modals/CimConfiguration/types.ts +1 -1
- package/lib/cim/components/modals/MassDeleteAgentModal.tsx +12 -5
- package/lib/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.tsx +5 -2
- package/lib/common/components/clusterDetail/FinalizingProgress.tsx +21 -10
- package/lib/common/components/clusterDetail/OperatorsProgressItem.tsx +11 -5
- package/lib/common/components/clusterDetail/ProgressBarTexts.tsx +17 -5
- package/lib/common/components/clusterWizard/ReviewValidations.tsx +15 -6
- package/lib/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.tsx +0 -2
- package/lib/common/components/hosts/HostPropertyValidationPopover.tsx +9 -5
- package/lib/common/components/hosts/HostStatus.tsx +14 -3
- package/lib/common/components/hosts/HostValidationGroups.tsx +9 -5
- package/lib/common/components/hosts/Hostname.tsx +7 -4
- package/lib/common/components/hosts/MassChangeHostnameModal.tsx +6 -2
- package/lib/common/components/hosts/VMRebootConfigurationInfo.tsx +12 -3
- package/lib/common/components/hosts/status.tsx +46 -13
- package/lib/common/components/storage/DisksTable.tsx +15 -4
- package/lib/common/components/storage/StorageUtils.tsx +6 -4
- package/lib/common/components/ui/WizardNavItem.tsx +4 -7
- package/lib/common/components/ui/formik/RemovableField.tsx +8 -4
- package/lib/common/components/ui/formik/RichInputField.tsx +10 -6
- package/lib/common/components/ui/index.ts +0 -2
- package/lib/common/validationSchemas/addressValidation.tsx +16 -11
- package/lib/ocm/components/clusterConfiguration/OcmOperatorProgressItem.tsx +11 -5
- package/lib/ocm/components/clusterConfiguration/OpenshiftVersionHelperText.tsx +8 -7
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.tsx +6 -3
- package/lib/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.tsx +6 -3
- package/lib/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.tsx +28 -15
- package/lib/ocm/components/clusterDetail/HostInventoryExpandable.tsx +11 -5
- package/lib/ocm/components/clusterDetail/OpenShiftVersionDetail.tsx +8 -5
- package/lib/ocm/components/clusterDetail/ResetClusterModal.tsx +6 -3
- package/lib/ocm/components/clusters/ClusterStatus.tsx +30 -8
- package/lib/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.tsx +12 -8
- package/lib/ocm/components/ui/InfoLinkWithModal.tsx +4 -2
- package/package.json +3 -3
- package/build/@types/common/components/ui/UiIcon.d.ts +0 -11
- package/build/@types/common/components/ui/UiIcon.d.ts.map +0 -1
- package/build/cjs/common/components/ui/UiIcon.js +0 -11
- package/build/cjs/common/components/ui/UiIcon.js.map +0 -1
- package/lib/common/components/ui/UiIcon.tsx +0 -21
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const react_1 = tslib_1.__importStar(require("react"));
|
|
5
|
+
const react_core_1 = require("@patternfly/react-core");
|
|
6
|
+
const exclamation_triangle_icon_1 = tslib_1.__importDefault(require("@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon"));
|
|
5
7
|
const common_1 = require("../../../common");
|
|
6
8
|
const ClusterHostsTable_1 = tslib_1.__importDefault(require("../hosts/ClusterHostsTable"));
|
|
7
9
|
const utils_1 = require("./utils");
|
|
8
|
-
const react_core_1 = require("@patternfly/react-core");
|
|
9
|
-
require("./HostInventoryExpandable.css");
|
|
10
10
|
const use_translation_wrapper_1 = require("../../../common/hooks/use-translation-wrapper");
|
|
11
|
-
|
|
11
|
+
require("./HostInventoryExpandable.css");
|
|
12
12
|
const ExpandableSectionTitle = ({ hostsCount, icon, }) => (react_1.default.createElement("span", null,
|
|
13
13
|
`Host inventory ${hostsCount > 0 ? `(${hostsCount})` : ''}`,
|
|
14
14
|
icon && react_1.default.createElement("span", { className: "pf-v6-u-ml-sm" }, icon)));
|
|
@@ -20,7 +20,8 @@ const HostInventoryExpandable = ({ cluster }) => {
|
|
|
20
20
|
const mostSevereHostStatus = (0, utils_1.getMostSevereHostStatus)(hosts);
|
|
21
21
|
const hostStatusDef = mostSevereHostStatus ? (0, common_1.hostStatus)(t)[mostSevereHostStatus] : null;
|
|
22
22
|
const someHostHasTimeout = (0, utils_1.getHostsWithTimeout)(hosts);
|
|
23
|
-
const warningIcon = react_1.default.createElement(
|
|
23
|
+
const warningIcon = (react_1.default.createElement(react_core_1.Icon, { size: "sm", status: "warning" },
|
|
24
|
+
react_1.default.createElement(exclamation_triangle_icon_1.default, null)));
|
|
24
25
|
return (react_1.default.createElement(react_core_1.ExpandableSection, { toggleContent: react_1.default.createElement(ExpandableSectionTitle, { hostsCount: hosts.length, icon: someHostHasTimeout ? warningIcon : hostStatusDef === null || hostStatusDef === void 0 ? void 0 : hostStatusDef.icon }), onToggle: () => setIsExpanded(!isExpanded), isExpanded: isExpanded, className: "host-inventory-expandable", id: "host-inventory-expandable" },
|
|
25
26
|
react_1.default.createElement(ClusterHostsTable_1.default, { cluster: cluster, skipDisabled: true })));
|
|
26
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HostInventoryExpandable.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterDetail/HostInventoryExpandable.tsx"],"names":[],"mappings":";;;AAAA,uDAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"HostInventoryExpandable.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterDetail/HostInventoryExpandable.tsx"],"names":[],"mappings":";;;AAAA,uDAAwC;AACxC,uDAAiE;AACjE,wIAAsG;AAEtG,4CAA6C;AAC7C,2FAA2D;AAC3D,mCAAuE;AAEvE,2FAA+E;AAE/E,yCAAuC;AAMvC,MAAM,sBAAsB,GAAG,CAAC,EAC9B,UAAU,EACV,IAAI,GAIL,EAAE,EAAE,CAAC,CACJ;IACG,kBAAkB,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,UAAU,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;IAC3D,IAAI,IAAI,wCAAM,SAAS,EAAC,eAAe,IAAE,IAAI,CAAQ,CACjD,CACR,CAAC;AAEF,MAAM,uBAAuB,GAAG,CAAC,EAAE,OAAO,EAAgC,EAAE,EAAE;IAC5E,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,wCAAc,GAAE,CAAC;IAC/B,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IACpD,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC;IAClC,qGAAqG;IACrG,MAAM,oBAAoB,GAAG,IAAA,+BAAuB,EAAC,KAAK,CAAC,CAAC;IAC5D,MAAM,aAAa,GAAG,oBAAoB,CAAC,CAAC,CAAC,IAAA,mBAAU,EAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACxF,MAAM,kBAAkB,GAAG,IAAA,2BAAmB,EAAC,KAAK,CAAC,CAAC;IACtD,MAAM,WAAW,GAAG,CAClB,8BAAC,iBAAI,IAAC,IAAI,EAAC,IAAI,EAAC,MAAM,EAAC,SAAS;QAC9B,8BAAC,mCAAuB,OAAG,CACtB,CACR,CAAC;IACF,OAAO,CACL,8BAAC,8BAAiB,IAChB,aAAa,EACX,8BAAC,sBAAsB,IACrB,UAAU,EAAE,KAAK,CAAC,MAAM,EACxB,IAAI,EAAE,kBAAkB,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,IAAI,GAC5D,EAEJ,QAAQ,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,CAAC,UAAU,CAAC,EAC1C,UAAU,EAAE,UAAU,EACtB,SAAS,EAAC,2BAA2B,EACrC,EAAE,EAAC,2BAA2B;QAE9B,8BAAC,2BAAiB,IAAC,OAAO,EAAE,OAAO,EAAE,YAAY,SAAG,CAClC,CACrB,CAAC;AACJ,CAAC,CAAC;AACF,kBAAe,uBAAuB,CAAC"}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
+
const react_core_1 = require("@patternfly/react-core");
|
|
6
|
+
const exclamation_triangle_icon_1 = require("@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon");
|
|
5
7
|
const common_1 = require("../../../common");
|
|
6
8
|
const OpenShiftVersionsContext_1 = require("../clusterWizard/OpenShiftVersionsContext");
|
|
7
|
-
const exclamation_triangle_icon_1 = require("@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon");
|
|
8
|
-
const react_core_1 = require("@patternfly/react-core");
|
|
9
9
|
const use_translation_wrapper_1 = require("../../../common/hooks/use-translation-wrapper");
|
|
10
10
|
const UnsupportedVersion = ({ version }) => {
|
|
11
11
|
const { t } = (0, use_translation_wrapper_1.useTranslation)();
|
|
@@ -14,7 +14,8 @@ const UnsupportedVersion = ({ version }) => {
|
|
|
14
14
|
version,
|
|
15
15
|
" \u00A0",
|
|
16
16
|
react_1.default.createElement(react_core_1.Popover, { bodyContent: hint },
|
|
17
|
-
react_1.default.createElement(
|
|
17
|
+
react_1.default.createElement(react_core_1.Icon, { size: "sm", status: "warning" },
|
|
18
|
+
react_1.default.createElement(exclamation_triangle_icon_1.ExclamationTriangleIcon, null)))));
|
|
18
19
|
};
|
|
19
20
|
const OpenShiftVersionDetail = ({ cluster }) => {
|
|
20
21
|
const { openshiftVersion } = cluster;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenShiftVersionDetail.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterDetail/OpenShiftVersionDetail.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"OpenShiftVersionDetail.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterDetail/OpenShiftVersionDetail.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,uDAAiF;AACjF,+GAA0G;AAG1G,4CAA0D;AAC1D,wFAAwF;AACxF,2FAA+E;AAE/E,MAAM,kBAAkB,GAAG,CAAC,EAAE,OAAO,EAAu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BAAsB,CAAC"}
|
|
@@ -66,8 +66,10 @@ const ResetClusterModal = () => {
|
|
|
66
66
|
collectedLogsPercentage,
|
|
67
67
|
"% of the installation logs were collected and are ready for download."),
|
|
68
68
|
react_1.default.createElement(react_core_1.Content, { component: "p" },
|
|
69
|
-
react_1.default.createElement(
|
|
70
|
-
|
|
69
|
+
react_1.default.createElement(react_core_1.Icon, { size: "sm", status: "warning" },
|
|
70
|
+
react_1.default.createElement(exclamation_triangle_icon_1.ExclamationTriangleIcon, null)),
|
|
71
|
+
' ',
|
|
72
|
+
"Logs won't be available after the installation is reset."),
|
|
71
73
|
react_1.default.createElement(react_core_1.Content, { component: "p" }, "Are you sure you want to reset the cluster?")));
|
|
72
74
|
};
|
|
73
75
|
const actions = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResetClusterModal.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterDetail/ResetClusterModal.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,6CAA0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"ResetClusterModal.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterDetail/ResetClusterModal.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,6CAA0C;AAC1C,uDAUgC;AAChC,+GAA0G;AAE1G,6CAAyE;AACzE,oEAAyE;AACzE,6CAAgE;AAChE,sEAAsE;AACtE,4CAA2D;AAC3D,8CAAkD;AAElD,MAAM,iBAAiB,GAAa,GAAG,EAAE;;IACvC,MAAM,QAAQ,GAAG,IAAA,yBAAW,GAAE,CAAC;IAC/B,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,eAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9D,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,eAAK,CAAC,QAAQ,CAA4C,IAAI,CAAC,CAAC;IAC1F,MAAM,EAAE,kBAAkB,EAAE,GAAG,IAAA,4CAAsB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E,OAAO,EAAE,WAAW;QACtE,8BAAC,wBAAW,IAAC,KAAK,EAAC,4BAA4B,GAAG;QAClD,8BAAC,sBAAS,QAAE,eAAe,EAAE,CAAa;QAC1C,8BAAC,wBAAW,QAAE,OAAO,CAAe,CAC9B,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,iBAAiB,CAAC"}
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getClusterStatusText = exports.ClusterStatusIcon = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
const t_global_color_status_success_default_1 = require("@patternfly/react-tokens/dist/js/t_global_color_status_success_default");
|
|
7
6
|
const exclamation_circle_icon_1 = require("@patternfly/react-icons/dist/js/icons/exclamation-circle-icon");
|
|
8
7
|
const exclamation_triangle_icon_1 = require("@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon");
|
|
9
8
|
const file_alt_icon_1 = require("@patternfly/react-icons/dist/js/icons/file-alt-icon");
|
|
@@ -12,26 +11,33 @@ const in_progress_icon_1 = require("@patternfly/react-icons/dist/js/icons/in-pro
|
|
|
12
11
|
const ban_icon_1 = require("@patternfly/react-icons/dist/js/icons/ban-icon");
|
|
13
12
|
const common_1 = require("../../../common");
|
|
14
13
|
const use_translation_wrapper_1 = require("../../../common/hooks/use-translation-wrapper");
|
|
14
|
+
const react_core_1 = require("@patternfly/react-core");
|
|
15
15
|
const ClusterStatusIcon = (_a) => {
|
|
16
16
|
var { status } = _a, extraProps = tslib_1.__rest(_a, ["status"]);
|
|
17
17
|
switch (status) {
|
|
18
18
|
case 'cancelled':
|
|
19
|
-
return react_1.default.createElement(
|
|
19
|
+
return (react_1.default.createElement(react_core_1.Icon, { size: "sm" },
|
|
20
|
+
react_1.default.createElement(ban_icon_1.BanIcon, Object.assign({}, extraProps))));
|
|
20
21
|
case 'insufficient':
|
|
21
22
|
case 'pending-for-input':
|
|
22
23
|
case 'ready':
|
|
23
|
-
return react_1.default.createElement(
|
|
24
|
+
return (react_1.default.createElement(react_core_1.Icon, { size: "sm" },
|
|
25
|
+
react_1.default.createElement(file_alt_icon_1.FileAltIcon, Object.assign({}, extraProps))));
|
|
24
26
|
case 'error':
|
|
25
|
-
return react_1.default.createElement(
|
|
27
|
+
return (react_1.default.createElement(react_core_1.Icon, { size: "sm", status: "danger" },
|
|
28
|
+
react_1.default.createElement(exclamation_circle_icon_1.ExclamationCircleIcon, Object.assign({}, extraProps))));
|
|
26
29
|
case 'installed':
|
|
27
|
-
return react_1.default.createElement(
|
|
30
|
+
return (react_1.default.createElement(react_core_1.Icon, { status: "success", size: "sm" },
|
|
31
|
+
react_1.default.createElement(check_circle_icon_1.CheckCircleIcon, Object.assign({}, extraProps))));
|
|
28
32
|
case 'installing-pending-user-action':
|
|
29
|
-
return (react_1.default.createElement(
|
|
33
|
+
return (react_1.default.createElement(react_core_1.Icon, { size: "sm", status: "warning" },
|
|
34
|
+
react_1.default.createElement(exclamation_triangle_icon_1.ExclamationTriangleIcon, Object.assign({}, extraProps))));
|
|
30
35
|
case 'preparing-for-installation':
|
|
31
36
|
case 'installing':
|
|
32
37
|
case 'finalizing':
|
|
33
38
|
case 'adding-hosts':
|
|
34
|
-
return react_1.default.createElement(
|
|
39
|
+
return (react_1.default.createElement(react_core_1.Icon, { size: "sm" },
|
|
40
|
+
react_1.default.createElement(in_progress_icon_1.InProgressIcon, Object.assign({}, extraProps))));
|
|
35
41
|
default:
|
|
36
42
|
return react_1.default.createElement(react_1.default.Fragment, null);
|
|
37
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClusterStatus.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusters/ClusterStatus.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"ClusterStatus.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusters/Clus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IAAI,EAAC,IAAI;gBACb,8BAAC,iCAAc,oBAAK,UAAU,EAAI,CAC7B,CACR,CAAC;QACJ;YACE,OAAO,6DAAK,CAAC;KAChB;AACH,CAAC,CAAC;AA/CW,QAAA,iBAAiB,qBA+C5B;AAEK,MAAM,oBAAoB,GAAG,CAAC,CAAY,EAAE,MAAyB,EAAE,EAAE;IAC9E,OAAO,IAAA,4BAAmB,EAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC;AAClD,CAAC,CAAC;AAFW,QAAA,oBAAoB,wBAE/B;AAEF,MAAM,aAAa,GAA8C,CAAC,EAChE,MAAM,EACN,MAAM,EACN,SAAS,GACV,EAAE,EAAE;IACH,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,wCAAc,GAAE,CAAC;IAC/B,MAAM,KAAK,GAAG,IAAA,4BAAoB,EAAC,CAAC,EAAE,MAAM,CAAC,CAAC;IAE9C,OAAO,CACL;QACE,8BAAC,yBAAiB,IAAC,MAAM,EAAE,MAAM,iBAAe,MAAM,EAAE,SAAS,EAAE,SAAS,GAAI;;QAAE,KAAK,CACtF,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,aAAa,CAAC"}
|
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getSupportLevelInfo = exports.getFeatureSupportLevelTitle = exports.FullySupportedCluster = exports.LimitedSupportedCluster = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
6
|
const check_circle_icon_1 = require("@patternfly/react-icons/dist/js/icons/check-circle-icon");
|
|
6
7
|
const info_circle_icon_1 = require("@patternfly/react-icons/dist/js/icons/info-circle-icon");
|
|
7
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
8
|
-
const t_global_color_status_success_default_1 = require("@patternfly/react-tokens/dist/js/t_global_color_status_success_default");
|
|
9
|
-
const t_global_color_status_info_100_1 = require("@patternfly/react-tokens/dist/js/t_global_color_status_info_100");
|
|
10
8
|
const react_core_1 = require("@patternfly/react-core");
|
|
11
9
|
const types_1 = require("../../../common/types");
|
|
12
10
|
const docs_links_1 = require("../../../common/config/docs_links");
|
|
@@ -66,15 +64,18 @@ const getPreviewFeatureList = (supportLevelMap) => {
|
|
|
66
64
|
};
|
|
67
65
|
const LimitedSupportedCluster = ({ clusterFeatureSupportLevels, showVersionWarning, }) => (react_1.default.createElement(react_1.default.Fragment, null,
|
|
68
66
|
showVersionWarning && (react_1.default.createElement(react_core_1.Content, { component: "p" },
|
|
69
|
-
react_1.default.createElement(
|
|
67
|
+
react_1.default.createElement(react_core_1.Icon, { status: "info", size: "sm" },
|
|
68
|
+
react_1.default.createElement(info_circle_icon_1.InfoCircleIcon, null)),
|
|
70
69
|
"\u00A0The installed OpenShift version is not production-ready")),
|
|
71
70
|
Object.keys(clusterFeatureSupportLevels).length > 0 && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
72
|
-
react_1.default.createElement(
|
|
71
|
+
react_1.default.createElement(react_core_1.Icon, { status: "info", size: "sm" },
|
|
72
|
+
react_1.default.createElement(info_circle_icon_1.InfoCircleIcon, null)),
|
|
73
73
|
"\u00A0Your cluster will be subject to support limitations because it includes:",
|
|
74
74
|
react_1.default.createElement(react_core_1.Content, { component: "ul" }, getPreviewFeatureList(clusterFeatureSupportLevels))))));
|
|
75
75
|
exports.LimitedSupportedCluster = LimitedSupportedCluster;
|
|
76
76
|
const FullySupportedCluster = () => (react_1.default.createElement(react_1.default.Fragment, null,
|
|
77
|
-
react_1.default.createElement(
|
|
77
|
+
react_1.default.createElement(react_core_1.Icon, { status: "success" },
|
|
78
|
+
react_1.default.createElement(check_circle_icon_1.CheckCircleIcon, null)),
|
|
78
79
|
"\u00A0Your installed cluster will be fully supported"));
|
|
79
80
|
exports.FullySupportedCluster = FullySupportedCluster;
|
|
80
81
|
const getFeatureSupportLevelTitle = (fullySupported) => {
|
package/build/cjs/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReviewClusterFeatureSupportLevels.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.tsx"],"names":[],"mappings":";;;;AAAA,+FAA0F;AAC1F,6FAAwF;AACxF,
|
|
1
|
+
{"version":3,"file":"ReviewClusterFeatureSupportLevels.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,+FAA0F;AAC1F,6FAAwF;AACxF,uDAAuD;AACvD,iDAK+B;AAC/B,kEAA4E;AAC5E,sGAAsE;AAEtE,4CAA6C;AAC7C,oFAA0G;AAC1G,kGAA+F;AAC/F,2FAA+E;AAC/E,wFAAwF;AAExF,gGAG4D;AAC5D,yDAAqD;AAErD,MAAM,oBAAoB,GAAG,CAAC,SAAoB,EAAU,EAAE;IAC5D,QAAQ,SAAS,EAAE;QACjB,KAAK,KAAK;YACR,OAAO,qCAAqC,CAAC;QAC/C,KAAK,gBAAgB;YACnB,OAAO,8BAA8B,CAAC;QACxC,KAAK,oBAAoB;YACvB,OAAO,sCAAsC,CAAC;QAChD;YACE,OAAO,SAAS,CAAC;KACpB;AACH,CAAC,CAAC;AAEF,MAAM,2BAA2B,GAAG,CAAC,YAAiC,EAAE,EAAE;IACxE,IAAI,YAAY,KAAK,aAAa,EAAE;QAClC,OAAO,4BAA4B,CAAC;KACrC;IACD,OAAO,8BAAC,sBAAY,IAAC,IAAI,EAAE,oCAAuB,kCAA4C,CAAC;AACjG,CAAC,CAAC;AAEF,MAAM,qBAAqB,GAAG,CAAC,eAAwC,EAAE,EAAE;IACzE,MAAM,oBAAoB,GAAkD;QAC1E,cAAc,EAAE,EAAE;QAClB,aAAa,EAAE,EAAE;KAClB,CAAC;IACF,KAAK,M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@@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
5
|
const react_core_1 = require("@patternfly/react-core");
|
|
6
6
|
const info_circle_icon_1 = require("@patternfly/react-icons/dist/js/icons/info-circle-icon");
|
|
7
|
-
const common_1 = require("../../../common");
|
|
8
7
|
const InfoLinkWithModal = ({ linkText, infoCircleSize = 'sm', modalTitle, modalVariant = 'medium', isInline = false, linkId, modalId, children, }) => {
|
|
9
8
|
const [isModalOpen, setModalOpen] = react_1.default.useState(false);
|
|
10
9
|
const handleModalClose = react_1.default.useCallback(() => setModalOpen(false), []);
|
|
@@ -13,7 +12,8 @@ const InfoLinkWithModal = ({ linkText, infoCircleSize = 'sm', modalTitle, modalV
|
|
|
13
12
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
14
13
|
react_1.default.createElement(react_core_1.Button, { id: linkId, variant: react_core_1.ButtonVariant.link, onClick: handleLinkClick, isInline: true },
|
|
15
14
|
!isInline && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
16
|
-
react_1.default.createElement(
|
|
15
|
+
react_1.default.createElement(react_core_1.Icon, { size: infoCircleSize },
|
|
16
|
+
react_1.default.createElement(info_circle_icon_1.InfoCircleIcon, null)),
|
|
17
17
|
"\u00A0")),
|
|
18
18
|
linkText),
|
|
19
19
|
react_1.default.createElement(react_core_1.Modal, { id: modalId, isOpen: isModalOpen, onClose: handleModalClose, variant: modalVariant },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InfoLinkWithModal.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/ui/InfoLinkWithModal.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"InfoLinkWithModal.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/ui/InfoLinkWithModal.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,uDAUgC;AAChC,6FAAwF;AAYxF,MAAM,iBAAiB,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CAAC;AAEF,kBAAe,iBAAiB,CAAC"}
|
|
@@ -8,12 +8,11 @@ import {
|
|
|
8
8
|
ContentVariants,
|
|
9
9
|
Button,
|
|
10
10
|
ButtonVariant,
|
|
11
|
+
Icon,
|
|
11
12
|
} from '@patternfly/react-core';
|
|
12
13
|
import { CheckCircleIcon } from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
|
|
13
14
|
import { PendingIcon } from '@patternfly/react-icons/dist/js/icons/pending-icon';
|
|
14
15
|
import { ExclamationTriangleIcon } from '@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon';
|
|
15
|
-
import { t_global_color_status_success_default as okColor } from '@patternfly/react-tokens/dist/js/t_global_color_status_success_default';
|
|
16
|
-
import { t_global_icon_color_status_warning_default as warningColor } from '@patternfly/react-tokens/dist/js/t_global_icon_color_status_warning_default';
|
|
17
16
|
|
|
18
17
|
import { getHumanizedDateTime, useTranslation } from '../../../common';
|
|
19
18
|
import { BareMetalHostK8sResource } from '../../types';
|
|
@@ -44,10 +43,19 @@ export const BMHStatusInfo = ({
|
|
|
44
43
|
switch (bmh.status?.operationalStatus) {
|
|
45
44
|
case 'OK':
|
|
46
45
|
case 'discovered':
|
|
47
|
-
icon =
|
|
46
|
+
icon = (
|
|
47
|
+
<Icon status="success">
|
|
48
|
+
<CheckCircleIcon />
|
|
49
|
+
</Icon>
|
|
50
|
+
);
|
|
51
|
+
|
|
48
52
|
break;
|
|
49
53
|
case 'error':
|
|
50
|
-
icon =
|
|
54
|
+
icon = (
|
|
55
|
+
<Icon status="warning">
|
|
56
|
+
<ExclamationTriangleIcon />
|
|
57
|
+
</Icon>
|
|
58
|
+
);
|
|
51
59
|
break;
|
|
52
60
|
default:
|
|
53
61
|
icon = <PendingIcon />;
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import {
|
|
3
3
|
Button,
|
|
4
4
|
ButtonVariant,
|
|
5
|
+
Icon,
|
|
5
6
|
Modal,
|
|
6
7
|
ModalBody,
|
|
7
8
|
ModalFooter,
|
|
@@ -15,7 +16,6 @@ import HostRequirements, {
|
|
|
15
16
|
HostRequirementsListProps,
|
|
16
17
|
} from '../../../common/components/hosts/HostRequirements';
|
|
17
18
|
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
18
|
-
import { UiIcon } from '../../../common';
|
|
19
19
|
|
|
20
20
|
type HostData = {
|
|
21
21
|
cpu_cores: number;
|
|
@@ -86,7 +86,9 @@ const MinimalHWRequirements: React.FC<MinimalHWRequirementsProps> = ({
|
|
|
86
86
|
isInline
|
|
87
87
|
className="host-requirements-link"
|
|
88
88
|
>
|
|
89
|
-
<
|
|
89
|
+
<Icon status="warning" size="sm">
|
|
90
|
+
<InfoCircleIcon />
|
|
91
|
+
</Icon>
|
|
90
92
|
{t('ai:Minimum hardware requirements')}
|
|
91
93
|
</Button>
|
|
92
94
|
<MinimalHWRequirementsModal
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Flex, FlexItem, Icon } from '@patternfly/react-core';
|
|
2
3
|
import { CheckCircleIcon } from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
|
|
3
4
|
import { ExclamationCircleIcon } from '@patternfly/react-icons/dist/js/icons/exclamation-circle-icon';
|
|
4
5
|
import { InProgressIcon } from '@patternfly/react-icons/dist/js/icons/in-progress-icon';
|
|
5
6
|
import { UnknownIcon } from '@patternfly/react-icons/dist/js/icons/unknown-icon';
|
|
6
7
|
import { Table, Tbody, Td, Th, Thead, Tr } from '@patternfly/react-table';
|
|
7
|
-
import { t_global_color_status_success_default as okColor } from '@patternfly/react-tokens/dist/js/t_global_color_status_success_default';
|
|
8
8
|
|
|
9
|
-
import * as React from 'react';
|
|
10
9
|
import { useTranslation } from '../../../../common/hooks/use-translation-wrapper';
|
|
11
10
|
|
|
12
11
|
import './ConditionsTable.css';
|
|
13
|
-
import { UiIcon } from '../../../../common';
|
|
14
12
|
|
|
15
13
|
const ignoredConditions = ['Progressing'];
|
|
16
14
|
const reversedConditions = ['Degraded'];
|
|
@@ -50,14 +48,22 @@ const ConditionsTable = ({ conditions, isDone }: ConditionsTableProps) => {
|
|
|
50
48
|
c.status === okStatus ? (
|
|
51
49
|
<InProgressIcon />
|
|
52
50
|
) : (
|
|
53
|
-
<
|
|
51
|
+
<Icon status="success">
|
|
52
|
+
<CheckCircleIcon />
|
|
53
|
+
</Icon>
|
|
54
54
|
);
|
|
55
55
|
} else {
|
|
56
56
|
if (c.status === okStatus) {
|
|
57
|
-
icon =
|
|
57
|
+
icon = (
|
|
58
|
+
<Icon status="success">
|
|
59
|
+
<CheckCircleIcon />
|
|
60
|
+
</Icon>
|
|
61
|
+
);
|
|
58
62
|
} else if (c.status === nokStatus) {
|
|
59
63
|
icon = isDone ? (
|
|
60
|
-
<
|
|
64
|
+
<Icon status="danger" size="sm">
|
|
65
|
+
<ExclamationCircleIcon />
|
|
66
|
+
</Icon>
|
|
61
67
|
) : (
|
|
62
68
|
<InProgressIcon />
|
|
63
69
|
);
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import {
|
|
3
3
|
ExpandableSectionToggle,
|
|
4
|
+
Icon,
|
|
4
5
|
ProgressStep,
|
|
5
6
|
Spinner,
|
|
6
7
|
Stack,
|
|
7
8
|
StackItem,
|
|
8
9
|
} from '@patternfly/react-core';
|
|
9
|
-
import { t_global_color_status_success_default as okColor } from '@patternfly/react-tokens/dist/js/t_global_color_status_success_default';
|
|
10
10
|
|
|
11
11
|
import { CheckCircleIcon } from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
|
|
12
12
|
import { ExclamationCircleIcon } from '@patternfly/react-icons/dist/js/icons/exclamation-circle-icon';
|
|
13
13
|
import { HostedClusterK8sResource } from '../types';
|
|
14
14
|
import { useTranslation } from '../../../../common/hooks/use-translation-wrapper';
|
|
15
|
-
import { ExternalLink
|
|
15
|
+
import { ExternalLink } from '../../../../common';
|
|
16
16
|
import ConditionsTable from './ConditionsTable';
|
|
17
17
|
|
|
18
18
|
type HostedClusterProgressProps = {
|
|
@@ -34,9 +34,13 @@ const HostedClusterProgress = ({ hostedCluster, launchToOCP }: HostedClusterProg
|
|
|
34
34
|
if (progressingCondtion?.status === 'False') {
|
|
35
35
|
progressIcon =
|
|
36
36
|
availableCondtion?.status === 'True' ? (
|
|
37
|
-
<
|
|
37
|
+
<Icon status="success">
|
|
38
|
+
<CheckCircleIcon />
|
|
39
|
+
</Icon>
|
|
38
40
|
) : (
|
|
39
|
-
<
|
|
41
|
+
<Icon status="danger" size="sm">
|
|
42
|
+
<ExclamationCircleIcon />
|
|
43
|
+
</Icon>
|
|
40
44
|
);
|
|
41
45
|
}
|
|
42
46
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import {
|
|
3
3
|
ExpandableSectionToggle,
|
|
4
|
+
Icon,
|
|
4
5
|
ProgressStep,
|
|
5
6
|
Spinner,
|
|
6
7
|
Stack,
|
|
7
8
|
StackItem,
|
|
8
9
|
} from '@patternfly/react-core';
|
|
9
10
|
import { TFunction } from 'i18next';
|
|
10
|
-
import { t_global_color_status_success_default as okColor } from '@patternfly/react-tokens/dist/js/t_global_color_status_success_default';
|
|
11
11
|
import { CheckCircleIcon } from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
|
|
12
12
|
|
|
13
13
|
import {
|
|
@@ -42,7 +42,11 @@ const getNodePoolsStatus = (
|
|
|
42
42
|
|
|
43
43
|
const nodePoolsStatus: { type: string; icon: React.ReactNode } = {
|
|
44
44
|
type: 'ok',
|
|
45
|
-
icon:
|
|
45
|
+
icon: (
|
|
46
|
+
<Icon status="success">
|
|
47
|
+
<CheckCircleIcon />
|
|
48
|
+
</Icon>
|
|
49
|
+
),
|
|
46
50
|
};
|
|
47
51
|
|
|
48
52
|
for (const property in nodePoolMap) {
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TFunction } from 'i18next';
|
|
3
|
+
import { Icon } from '@patternfly/react-core';
|
|
1
4
|
import { CheckCircleIcon } from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
|
|
2
5
|
import { ExclamationCircleIcon } from '@patternfly/react-icons/dist/js/icons/exclamation-circle-icon';
|
|
3
6
|
import { InProgressIcon } from '@patternfly/react-icons/dist/js/icons/in-progress-icon';
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
import { t_global_icon_color_status_danger_default as dangerColor } from '@patternfly/react-tokens/dist/js/t_global_icon_color_status_danger_default';
|
|
7
|
-
import { t_global_icon_color_status_warning_default as warningColor } from '@patternfly/react-tokens/dist/js/t_global_icon_color_status_warning_default';
|
|
7
|
+
|
|
8
|
+
import { NodePoolK8sResource } from '../types';
|
|
8
9
|
import { AgentK8sResource } from '../../../types';
|
|
9
10
|
import { getAgentStatus } from '../../helpers';
|
|
10
|
-
import { NodePoolK8sResource } from '../types';
|
|
11
|
-
import { TFunction } from 'i18next';
|
|
12
11
|
import { agentStatus } from '../../helpers/agentStatus';
|
|
13
12
|
|
|
14
13
|
export type NodePoolStatus = {
|
|
@@ -40,7 +39,11 @@ export const getNodePoolStatus = (
|
|
|
40
39
|
if (hasErrorAgents) {
|
|
41
40
|
return {
|
|
42
41
|
type: 'error',
|
|
43
|
-
icon:
|
|
42
|
+
icon: (
|
|
43
|
+
<Icon status="danger">
|
|
44
|
+
<ExclamationCircleIcon />
|
|
45
|
+
</Icon>
|
|
46
|
+
),
|
|
44
47
|
text: t('ai:Error'),
|
|
45
48
|
};
|
|
46
49
|
}
|
|
@@ -58,7 +61,11 @@ export const getNodePoolStatus = (
|
|
|
58
61
|
if (hasWarningAgents) {
|
|
59
62
|
return {
|
|
60
63
|
type: 'warning',
|
|
61
|
-
icon:
|
|
64
|
+
icon: (
|
|
65
|
+
<Icon status="warning">
|
|
66
|
+
<ExclamationCircleIcon />
|
|
67
|
+
</Icon>
|
|
68
|
+
),
|
|
62
69
|
text: t('ai:Warning'),
|
|
63
70
|
};
|
|
64
71
|
}
|
|
@@ -66,7 +73,11 @@ export const getNodePoolStatus = (
|
|
|
66
73
|
return nodePool.status?.conditions?.find(({ type }) => type === 'Ready')?.status === 'True'
|
|
67
74
|
? {
|
|
68
75
|
type: 'ok',
|
|
69
|
-
icon:
|
|
76
|
+
icon: (
|
|
77
|
+
<Icon status="success">
|
|
78
|
+
<CheckCircleIcon />
|
|
79
|
+
</Icon>
|
|
80
|
+
),
|
|
70
81
|
text: t('ai:Ready'),
|
|
71
82
|
}
|
|
72
83
|
: {
|
|
@@ -13,12 +13,11 @@ import {
|
|
|
13
13
|
Title,
|
|
14
14
|
TitleSizes,
|
|
15
15
|
Label,
|
|
16
|
+
Icon,
|
|
16
17
|
} from '@patternfly/react-core';
|
|
17
18
|
import { CheckCircleIcon } from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
|
|
18
19
|
import { ExclamationTriangleIcon } from '@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon';
|
|
19
20
|
import { PencilAltIcon } from '@patternfly/react-icons/dist/js/icons/pencil-alt-icon';
|
|
20
|
-
import { t_global_color_status_success_default as okColor } from '@patternfly/react-tokens/dist/js/t_global_color_status_success_default';
|
|
21
|
-
import { t_global_icon_color_status_warning_default as warningColor } from '@patternfly/react-tokens/dist/js/t_global_icon_color_status_warning_default';
|
|
22
21
|
|
|
23
22
|
import { architectureData } from '../../../common';
|
|
24
23
|
import { InfraEnvK8sResource, SecretK8sResource } from '../../types';
|
|
@@ -39,11 +38,19 @@ type EditItemProps = {
|
|
|
39
38
|
};
|
|
40
39
|
|
|
41
40
|
const EditItem: React.FC<EditItemProps> = ({ title, onEdit, isLoading, isWarning, noIcon }) => {
|
|
42
|
-
let icon =
|
|
41
|
+
let icon = (
|
|
42
|
+
<Icon status="success">
|
|
43
|
+
<CheckCircleIcon />
|
|
44
|
+
</Icon>
|
|
45
|
+
);
|
|
43
46
|
if (isLoading) {
|
|
44
47
|
icon = <Spinner size="md" />;
|
|
45
48
|
} else if (isWarning) {
|
|
46
|
-
icon =
|
|
49
|
+
icon = (
|
|
50
|
+
<Icon status="warning">
|
|
51
|
+
<ExclamationTriangleIcon />
|
|
52
|
+
</Icon>
|
|
53
|
+
);
|
|
47
54
|
}
|
|
48
55
|
const btn = (
|
|
49
56
|
<>
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { Icon, Tooltip } from '@patternfly/react-core';
|
|
2
3
|
import { ExclamationTriangleIcon } from '@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon';
|
|
3
|
-
import { t_global_icon_color_status_warning_default as warningColor } from '@patternfly/react-tokens/dist/js/t_global_icon_color_status_warning_default';
|
|
4
4
|
import { getAgentStatus, getBMHStatus } from '../helpers';
|
|
5
5
|
import { AgentK8sResource, BareMetalHostK8sResource } from '../../types';
|
|
6
6
|
import { AGENT_BMH_NAME_LABEL_KEY } from '../common';
|
|
7
|
-
import { Tooltip } from '@patternfly/react-core';
|
|
8
7
|
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
9
8
|
import { agentStatus, bmhStatus } from '../helpers/agentStatus';
|
|
10
9
|
|
|
@@ -51,10 +50,9 @@ const InfraEnvHostsTabAgentsWarning: React.FC<InfraEnvHostsTabAgentsWarning> = (
|
|
|
51
50
|
if (hostsWithProblemsCount) {
|
|
52
51
|
return (
|
|
53
52
|
<Tooltip content={t('ai:{{count}} host has problems', { count: hostsWithProblemsCount })}>
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
/>
|
|
53
|
+
<Icon status="warning">
|
|
54
|
+
<ExclamationTriangleIcon className="infra-env-hosts-tab-title__icon" />
|
|
55
|
+
</Icon>
|
|
58
56
|
</Tooltip>
|
|
59
57
|
);
|
|
60
58
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { TFunction } from 'i18next';
|
|
3
|
+
import { Icon } from '@patternfly/react-core';
|
|
2
4
|
import { ConnectedIcon } from '@patternfly/react-icons/dist/js/icons/connected-icon';
|
|
3
5
|
import { ExclamationCircleIcon } from '@patternfly/react-icons/dist/js/icons/exclamation-circle-icon';
|
|
4
|
-
import { t_global_icon_color_status_danger_default as dangerColor } from '@patternfly/react-tokens/dist/js/t_global_icon_color_status_danger_default';
|
|
5
6
|
import { hostStatus } from '../../../common';
|
|
6
7
|
import { HostStatus } from '../../../common/components/hosts/types';
|
|
7
|
-
import { TFunction } from 'i18next';
|
|
8
8
|
|
|
9
9
|
export const bmhStatus = (t: TFunction): HostStatus<string> => ({
|
|
10
10
|
'bmh-error': {
|
|
@@ -68,7 +68,11 @@ export const agentStatus = (t: TFunction): HostStatus<string> => ({
|
|
|
68
68
|
specSyncErr: {
|
|
69
69
|
key: 'specSyncErr',
|
|
70
70
|
title: t('ai:Sync error'),
|
|
71
|
-
icon:
|
|
71
|
+
icon: (
|
|
72
|
+
<Icon status="danger">
|
|
73
|
+
<ExclamationCircleIcon />
|
|
74
|
+
</Icon>
|
|
75
|
+
),
|
|
72
76
|
category: 'Discovery related',
|
|
73
77
|
},
|
|
74
78
|
});
|
|
@@ -33,7 +33,6 @@ export const CimConfigurationFormFields = ({
|
|
|
33
33
|
setConfigureLoadBalancerInitial,
|
|
34
34
|
}: CimConfigurationFormFieldsProps) => {
|
|
35
35
|
const { t } = useTranslation();
|
|
36
|
-
|
|
37
36
|
const { setFieldValue, values } = useFormikContext<CimConfigurationValues>();
|
|
38
37
|
|
|
39
38
|
React.useEffect(
|
|
@@ -223,8 +222,7 @@ export const CimConfigurationFormFields = ({
|
|
|
223
222
|
|
|
224
223
|
<StackItem>
|
|
225
224
|
<CheckboxField
|
|
226
|
-
name={'
|
|
227
|
-
isDisabled={isEdit}
|
|
225
|
+
name={'addCiscoIntersightURL'}
|
|
228
226
|
label={
|
|
229
227
|
<>
|
|
230
228
|
{t('ai:Configure custom URL for Cisco Intersight')}{' '}
|
|
@@ -240,14 +238,18 @@ export const CimConfigurationFormFields = ({
|
|
|
240
238
|
</PopoverIcon>
|
|
241
239
|
</>
|
|
242
240
|
}
|
|
241
|
+
onChange={(checked) => {
|
|
242
|
+
if (!checked) {
|
|
243
|
+
setFieldValue('ciscoIntersightURL', '', false);
|
|
244
|
+
}
|
|
245
|
+
}}
|
|
243
246
|
/>
|
|
244
247
|
|
|
245
|
-
{values.
|
|
248
|
+
{values.addCiscoIntersightURL && (
|
|
246
249
|
<InputField
|
|
247
250
|
name={'ciscoIntersightURL'}
|
|
248
251
|
label={t('ai:Cisco Intersight URL')}
|
|
249
252
|
isRequired
|
|
250
|
-
isDisabled={isEdit}
|
|
251
253
|
placeholder="https://www.intersight.com/an/workflow/workflow-definitions/execute/AddServersFromISO"
|
|
252
254
|
helperText={t('ai:Provide the complete URL, including the protocol and parameters.')}
|
|
253
255
|
/>
|