@openshift-assisted/ui-lib 2.9.5-cim → 2.9.7-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.
Files changed (422) hide show
  1. package/build/@types/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.d.ts +1 -0
  2. package/build/@types/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.d.ts.map +1 -1
  3. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.d.ts +1 -0
  4. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.d.ts.map +1 -1
  5. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.d.ts +2 -1
  6. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.d.ts.map +1 -1
  7. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostSelectionStep.d.ts.map +1 -1
  8. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsSelection.d.ts.map +1 -1
  9. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.d.ts +1 -0
  10. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.d.ts.map +1 -1
  11. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.d.ts.map +1 -1
  12. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizard.d.ts.map +1 -1
  13. package/build/@types/cim/components/ClusterDeployment/ClusterDetailsFormFields.d.ts +1 -0
  14. package/build/@types/cim/components/ClusterDeployment/ClusterDetailsFormFields.d.ts.map +1 -1
  15. package/build/@types/cim/components/ClusterDeployment/types.d.ts +6 -3
  16. package/build/@types/cim/components/ClusterDeployment/types.d.ts.map +1 -1
  17. package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts.map +1 -1
  18. package/build/@types/cim/components/InfraEnv/AddHostDropdown.d.ts +1 -1
  19. package/build/@types/cim/components/InfraEnv/AddHostDropdown.d.ts.map +1 -1
  20. package/build/@types/cim/components/InfraEnv/types.d.ts +3 -1
  21. package/build/@types/cim/components/InfraEnv/types.d.ts.map +1 -1
  22. package/build/@types/cim/components/helpers/toAssisted.d.ts.map +1 -1
  23. package/build/@types/cim/components/helpers/versions.d.ts +1 -1
  24. package/build/@types/cim/components/helpers/versions.d.ts.map +1 -1
  25. package/build/@types/cim/components/modals/AddBmcHostModal.d.ts.map +1 -1
  26. package/build/@types/cim/components/modals/AddBmcHostYamlModal.d.ts.map +1 -1
  27. package/build/@types/cim/components/modals/ProvisioningConfigErrorAlert.d.ts +5 -0
  28. package/build/@types/cim/components/modals/ProvisioningConfigErrorAlert.d.ts.map +1 -0
  29. package/build/@types/cim/components/modals/types.d.ts +2 -0
  30. package/build/@types/cim/components/modals/types.d.ts.map +1 -1
  31. package/build/@types/common/api/assisted-service/ClustersAPI.d.ts +1 -3
  32. package/build/@types/common/api/assisted-service/ClustersAPI.d.ts.map +1 -1
  33. package/build/@types/common/api/axiosClient.d.ts.map +1 -1
  34. package/build/@types/common/components/clusterWizard/ReviewValidations.d.ts.map +1 -1
  35. package/build/@types/common/components/clusterWizard/types.d.ts +1 -0
  36. package/build/@types/common/components/clusterWizard/types.d.ts.map +1 -1
  37. package/build/@types/common/components/clusterWizard/validationsInfoUtils.d.ts +4 -0
  38. package/build/@types/common/components/clusterWizard/validationsInfoUtils.d.ts.map +1 -1
  39. package/build/@types/common/components/ui/formik/SingleNodeCheckbox.d.ts.map +1 -1
  40. package/build/@types/common/components/ui/formik/validationSchemas.d.ts +0 -1
  41. package/build/@types/common/components/ui/formik/validationSchemas.d.ts.map +1 -1
  42. package/build/@types/common/config/constants.d.ts.map +1 -1
  43. package/build/@types/common/features/featureGate.d.ts +1 -2
  44. package/build/@types/common/features/featureGate.d.ts.map +1 -1
  45. package/build/@types/ocm/components/HostsClusterDetailTab/HostsClusterDetailTab.d.ts.map +1 -1
  46. package/build/@types/ocm/components/Routes.d.ts +6 -0
  47. package/build/@types/ocm/components/Routes.d.ts.map +1 -0
  48. package/build/@types/ocm/components/clusterConfiguration/DiscoveryImageForm.d.ts.map +1 -1
  49. package/build/@types/ocm/components/clusterConfiguration/OcmBaseDomainField.d.ts.map +1 -1
  50. package/build/@types/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.d.ts.map +1 -1
  51. package/build/@types/ocm/components/clusterConfiguration/OcmSingleNodeCheckbox.d.ts.map +1 -1
  52. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.d.ts.map +1 -1
  53. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.d.ts.map +1 -1
  54. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.d.ts.map +1 -1
  55. package/build/@types/ocm/components/clusterConfiguration/operators/CnvHostRequirements.d.ts.map +1 -1
  56. package/build/@types/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.d.ts +13 -5
  57. package/build/@types/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.d.ts.map +1 -1
  58. package/build/@types/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.d.ts.map +1 -1
  59. package/build/@types/ocm/components/clusterConfiguration/platformIntegration/constants.d.ts +2 -2
  60. package/build/@types/ocm/components/clusterConfiguration/platformIntegration/constants.d.ts.map +1 -1
  61. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/YamlView/MacIpMapping.d.ts.map +1 -1
  62. package/build/@types/ocm/components/clusterDetail/AssistedInstallerDetailCard.d.ts.map +1 -1
  63. package/build/@types/ocm/components/clusterWizard/ClusterDetails.d.ts.map +1 -1
  64. package/build/@types/ocm/components/clusterWizard/ClusterDetailsForm.d.ts.map +1 -1
  65. package/build/@types/ocm/components/clusterWizard/CustomManifestStep.d.ts.map +1 -1
  66. package/build/@types/ocm/components/clusterWizard/OperatorsStep.d.ts.map +1 -1
  67. package/build/@types/ocm/components/clusterWizard/StaticIp.d.ts.map +1 -1
  68. package/build/@types/ocm/components/clusters/AssistedInstallerHeader.d.ts +2 -0
  69. package/build/@types/ocm/components/clusters/AssistedInstallerHeader.d.ts.map +1 -0
  70. package/build/@types/ocm/components/clusters/ClusterPage.d.ts.map +1 -1
  71. package/build/@types/ocm/components/clusters/Clusters.d.ts.map +1 -1
  72. package/build/@types/ocm/components/clusters/ClustersTable.d.ts.map +1 -1
  73. package/build/@types/ocm/components/clusters/NewClusterPage.d.ts.map +1 -1
  74. package/build/@types/ocm/components/clusters/clusterPolling.d.ts +1 -1
  75. package/build/@types/ocm/components/clusters/clusterPolling.d.ts.map +1 -1
  76. package/build/@types/ocm/components/featureSupportLevels/featureStateUtils.d.ts.map +1 -1
  77. package/build/@types/ocm/components/hosts/use-hosts-table.d.ts.map +1 -1
  78. package/build/@types/ocm/components/index.d.ts +1 -1
  79. package/build/@types/ocm/hooks/index.d.ts +0 -1
  80. package/build/@types/ocm/hooks/index.d.ts.map +1 -1
  81. package/build/@types/ocm/index.d.ts +0 -1
  82. package/build/@types/ocm/index.d.ts.map +1 -1
  83. package/build/@types/ocm/store/hooks.d.ts +5 -1
  84. package/build/@types/ocm/store/hooks.d.ts.map +1 -1
  85. package/build/@types/ocm/store/index.d.ts +5 -36
  86. package/build/@types/ocm/store/index.d.ts.map +1 -1
  87. package/build/@types/ocm/{selectors/clusters.d.ts → store/slices/clusters/selectors.d.ts} +15 -11
  88. package/build/@types/ocm/store/slices/clusters/selectors.d.ts.map +1 -0
  89. package/build/@types/ocm/{reducers/clusters/clustersSlice.d.ts → store/slices/clusters/slice.d.ts} +4 -4
  90. package/build/@types/ocm/store/slices/clusters/slice.d.ts.map +1 -0
  91. package/build/@types/ocm/store/slices/current-cluster/selectors.d.ts +14 -0
  92. package/build/@types/ocm/store/slices/current-cluster/selectors.d.ts.map +1 -0
  93. package/build/@types/ocm/{reducers/clusters/currentClusterSlice.d.ts → store/slices/current-cluster/slice.d.ts} +5 -5
  94. package/build/@types/ocm/store/slices/current-cluster/slice.d.ts.map +1 -0
  95. package/build/@types/ocm/store/slices/feature-flags/selectors.d.ts +9 -0
  96. package/build/@types/ocm/store/slices/feature-flags/selectors.d.ts.map +1 -0
  97. package/build/@types/ocm/store/slices/feature-flags/slice.d.ts +7 -0
  98. package/build/@types/ocm/store/slices/feature-flags/slice.d.ts.map +1 -0
  99. package/build/@types/ocm/store/slices/{infraEnvs → infra-envs}/selectors.d.ts +4 -3
  100. package/build/@types/ocm/store/slices/infra-envs/selectors.d.ts.map +1 -0
  101. package/build/@types/ocm/store/slices/infra-envs/slice.d.ts.map +1 -0
  102. package/build/@types/ocm/store/slices/infra-envs/thunks.d.ts.map +1 -0
  103. package/build/@types/ocm/store/store-day1.d.ts +32 -0
  104. package/build/@types/ocm/store/store-day1.d.ts.map +1 -0
  105. package/build/@types/ocm/store/store-day2.d.ts +10 -0
  106. package/build/@types/ocm/store/store-day2.d.ts.map +1 -0
  107. package/build/cjs/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.js +3 -2
  108. package/build/cjs/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.js.map +1 -1
  109. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.js +3 -3
  110. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.js.map +1 -1
  111. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.js +5 -4
  112. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.js.map +1 -1
  113. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostSelectionStep.js +2 -2
  114. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostSelectionStep.js.map +1 -1
  115. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsSelection.js +14 -9
  116. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsSelection.js.map +1 -1
  117. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.js +2 -2
  118. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.js.map +1 -1
  119. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.js +2 -2
  120. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.js.map +1 -1
  121. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js +4 -4
  122. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js.map +1 -1
  123. package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js +4 -3
  124. package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js.map +1 -1
  125. package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js +9 -0
  126. package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js.map +1 -1
  127. package/build/cjs/cim/components/Hypershift/hooks/useSupportedOCPVersions.js +1 -1
  128. package/build/cjs/cim/components/Hypershift/hooks/useSupportedOCPVersions.js.map +1 -1
  129. package/build/cjs/cim/components/InfraEnv/AddHostDropdown.js +23 -10
  130. package/build/cjs/cim/components/InfraEnv/AddHostDropdown.js.map +1 -1
  131. package/build/cjs/cim/components/helpers/toAssisted.js +2 -1
  132. package/build/cjs/cim/components/helpers/toAssisted.js.map +1 -1
  133. package/build/cjs/cim/components/helpers/versions.js +9 -2
  134. package/build/cjs/cim/components/helpers/versions.js.map +1 -1
  135. package/build/cjs/cim/components/modals/AddBmcHostModal.js +3 -1
  136. package/build/cjs/cim/components/modals/AddBmcHostModal.js.map +1 -1
  137. package/build/cjs/cim/components/modals/AddBmcHostYamlModal.js +3 -1
  138. package/build/cjs/cim/components/modals/AddBmcHostYamlModal.js.map +1 -1
  139. package/build/cjs/cim/components/modals/ProvisioningConfigErrorAlert.js +16 -0
  140. package/build/cjs/cim/components/modals/ProvisioningConfigErrorAlert.js.map +1 -0
  141. package/build/cjs/common/api/assisted-service/ClustersAPI.js +0 -6
  142. package/build/cjs/common/api/assisted-service/ClustersAPI.js.map +1 -1
  143. package/build/cjs/common/api/axiosClient.js +2 -4
  144. package/build/cjs/common/api/axiosClient.js.map +1 -1
  145. package/build/cjs/common/components/clusterWizard/ReviewValidations.js +11 -3
  146. package/build/cjs/common/components/clusterWizard/ReviewValidations.js.map +1 -1
  147. package/build/cjs/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.js +2 -2
  148. package/build/cjs/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.js.map +1 -1
  149. package/build/cjs/common/components/clusterWizard/validationsInfoUtils.js.map +1 -1
  150. package/build/cjs/common/components/ui/formik/SingleNodeCheckbox.js +1 -3
  151. package/build/cjs/common/components/ui/formik/SingleNodeCheckbox.js.map +1 -1
  152. package/build/cjs/common/components/ui/formik/validationSchemas.js +8 -16
  153. package/build/cjs/common/components/ui/formik/validationSchemas.js.map +1 -1
  154. package/build/cjs/common/config/constants.js +1 -3
  155. package/build/cjs/common/config/constants.js.map +1 -1
  156. package/build/cjs/common/features/featureGate.js +1 -11
  157. package/build/cjs/common/features/featureGate.js.map +1 -1
  158. package/build/cjs/common/utils.js +1 -1
  159. package/build/cjs/common/utils.js.map +1 -1
  160. package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTab.js +9 -5
  161. package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTab.js.map +1 -1
  162. package/build/cjs/ocm/components/Routes.js +29 -0
  163. package/build/cjs/ocm/components/Routes.js.map +1 -0
  164. package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageForm.js +4 -4
  165. package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageForm.js.map +1 -1
  166. package/build/cjs/ocm/components/clusterConfiguration/HostInventory.js +1 -1
  167. package/build/cjs/ocm/components/clusterConfiguration/HostInventory.js.map +1 -1
  168. package/build/cjs/ocm/components/clusterConfiguration/OcmBaseDomainField.js +0 -1
  169. package/build/cjs/ocm/components/clusterConfiguration/OcmBaseDomainField.js.map +1 -1
  170. package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js +2 -4
  171. package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js.map +1 -1
  172. package/build/cjs/ocm/components/clusterConfiguration/OcmSingleNodeCheckbox.js +1 -2
  173. package/build/cjs/ocm/components/clusterConfiguration/OcmSingleNodeCheckbox.js.map +1 -1
  174. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsArray.js +1 -1
  175. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsArray.js.map +1 -1
  176. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.js +1 -1
  177. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.js.map +1 -1
  178. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.js +1 -1
  179. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.js.map +1 -1
  180. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js +8 -12
  181. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js.map +1 -1
  182. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js +5 -6
  183. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js.map +1 -1
  184. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.js +1 -1
  185. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.js.map +1 -1
  186. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.js +1 -1
  187. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.js.map +1 -1
  188. package/build/cjs/ocm/components/clusterConfiguration/operators/CnvHostRequirements.js +1 -1
  189. package/build/cjs/ocm/components/clusterConfiguration/operators/CnvHostRequirements.js.map +1 -1
  190. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.js +61 -18
  191. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.js.map +1 -1
  192. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.js +2 -2
  193. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.js.map +1 -1
  194. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/constants.js +8 -4
  195. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/constants.js.map +1 -1
  196. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewStep.js +3 -3
  197. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewStep.js.map +1 -1
  198. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.js +1 -1
  199. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.js.map +1 -1
  200. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpHostsArray.js +1 -1
  201. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpHostsArray.js.map +1 -1
  202. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/MacIpMapping.js +1 -1
  203. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/MacIpMapping.js.map +1 -1
  204. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerDetailCard.js +4 -4
  205. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerDetailCard.js.map +1 -1
  206. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.js +2 -2
  207. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.js.map +1 -1
  208. package/build/cjs/ocm/components/clusterDetail/CancelInstallationModal.js +2 -2
  209. package/build/cjs/ocm/components/clusterDetail/CancelInstallationModal.js.map +1 -1
  210. package/build/cjs/ocm/components/clusterDetail/ClusterDetail.js +2 -2
  211. package/build/cjs/ocm/components/clusterDetail/ClusterDetail.js.map +1 -1
  212. package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js +2 -2
  213. package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js.map +1 -1
  214. package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js +10 -9
  215. package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js.map +1 -1
  216. package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js +4 -2
  217. package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js.map +1 -1
  218. package/build/cjs/ocm/components/clusterWizard/CustomManifestStep.js +1 -1
  219. package/build/cjs/ocm/components/clusterWizard/CustomManifestStep.js.map +1 -1
  220. package/build/cjs/ocm/components/clusterWizard/HostDiscovery.js +4 -4
  221. package/build/cjs/ocm/components/clusterWizard/HostDiscovery.js.map +1 -1
  222. package/build/cjs/ocm/components/clusterWizard/Operators.js +3 -3
  223. package/build/cjs/ocm/components/clusterWizard/Operators.js.map +1 -1
  224. package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js +4 -9
  225. package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js.map +1 -1
  226. package/build/cjs/ocm/components/clusterWizard/StaticIp.js +1 -1
  227. package/build/cjs/ocm/components/clusterWizard/StaticIp.js.map +1 -1
  228. package/build/cjs/ocm/components/clusters/AssistedInstallerHeader.js +18 -0
  229. package/build/cjs/ocm/components/clusters/AssistedInstallerHeader.js.map +1 -0
  230. package/build/cjs/ocm/components/clusters/ClusterPage.js +4 -9
  231. package/build/cjs/ocm/components/clusters/ClusterPage.js.map +1 -1
  232. package/build/cjs/ocm/components/clusters/Clusters.js +8 -8
  233. package/build/cjs/ocm/components/clusters/Clusters.js.map +1 -1
  234. package/build/cjs/ocm/components/clusters/ClustersListToolbar.js +6 -6
  235. package/build/cjs/ocm/components/clusters/ClustersListToolbar.js.map +1 -1
  236. package/build/cjs/ocm/components/clusters/ClustersTable.js +2 -2
  237. package/build/cjs/ocm/components/clusters/ClustersTable.js.map +1 -1
  238. package/build/cjs/ocm/components/clusters/NewClusterPage.js +2 -2
  239. package/build/cjs/ocm/components/clusters/NewClusterPage.js.map +1 -1
  240. package/build/cjs/ocm/components/clusters/clusterPolling.js +11 -11
  241. package/build/cjs/ocm/components/clusters/clusterPolling.js.map +1 -1
  242. package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js +20 -8
  243. package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js.map +1 -1
  244. package/build/cjs/ocm/components/hosts/HostsDiscoveryTable.js +1 -1
  245. package/build/cjs/ocm/components/hosts/HostsDiscoveryTable.js.map +1 -1
  246. package/build/cjs/ocm/components/hosts/use-hosts-table.js +20 -20
  247. package/build/cjs/ocm/components/hosts/use-hosts-table.js.map +1 -1
  248. package/build/cjs/ocm/components/hosts/utils.js +2 -2
  249. package/build/cjs/ocm/components/hosts/utils.js.map +1 -1
  250. package/build/cjs/ocm/components/index.js +1 -1
  251. package/build/cjs/ocm/components/ui/OcmFormFields.js +1 -1
  252. package/build/cjs/ocm/components/ui/OcmFormFields.js.map +1 -1
  253. package/build/cjs/ocm/hooks/index.js +1 -3
  254. package/build/cjs/ocm/hooks/index.js.map +1 -1
  255. package/build/cjs/ocm/hooks/useSetClusterPermissions.js +2 -2
  256. package/build/cjs/ocm/hooks/useSetClusterPermissions.js.map +1 -1
  257. package/build/cjs/ocm/index.js +1 -2
  258. package/build/cjs/ocm/index.js.map +1 -1
  259. package/build/cjs/ocm/store/hooks.js +3 -1
  260. package/build/cjs/ocm/store/hooks.js.map +1 -1
  261. package/build/cjs/ocm/store/index.js +10 -19
  262. package/build/cjs/ocm/store/index.js.map +1 -1
  263. package/build/cjs/ocm/{selectors/clusters.js → store/slices/clusters/selectors.js} +4 -4
  264. package/build/cjs/ocm/store/slices/clusters/selectors.js.map +1 -0
  265. package/build/cjs/ocm/{reducers/clusters/clustersSlice.js → store/slices/clusters/slice.js} +8 -7
  266. package/build/cjs/ocm/store/slices/clusters/slice.js.map +1 -0
  267. package/build/cjs/ocm/{selectors/currentCluster.js → store/slices/current-cluster/selectors.js} +1 -1
  268. package/build/cjs/ocm/store/slices/current-cluster/selectors.js.map +1 -0
  269. package/build/cjs/ocm/{reducers/clusters/currentClusterSlice.js → store/slices/current-cluster/slice.js} +12 -13
  270. package/build/cjs/ocm/store/slices/current-cluster/slice.js.map +1 -0
  271. package/build/cjs/ocm/store/slices/feature-flags/selectors.js +11 -0
  272. package/build/cjs/ocm/store/slices/feature-flags/selectors.js.map +1 -0
  273. package/build/cjs/ocm/store/slices/feature-flags/slice.js +16 -0
  274. package/build/cjs/ocm/store/slices/feature-flags/slice.js.map +1 -0
  275. package/build/cjs/ocm/store/slices/infra-envs/selectors.js.map +1 -0
  276. package/build/cjs/ocm/store/slices/infra-envs/slice.js.map +1 -0
  277. package/build/cjs/ocm/store/slices/infra-envs/thunks.js.map +1 -0
  278. package/build/cjs/ocm/store/store-day1.js +24 -0
  279. package/build/cjs/ocm/store/store-day1.js.map +1 -0
  280. package/build/cjs/ocm/store/store-day2.js +20 -0
  281. package/build/cjs/ocm/store/store-day2.js.map +1 -0
  282. package/lib/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.tsx +8 -1
  283. package/lib/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.tsx +7 -1
  284. package/lib/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.tsx +6 -1
  285. package/lib/cim/components/ClusterDeployment/ClusterDeploymentHostSelectionStep.tsx +2 -0
  286. package/lib/cim/components/ClusterDeployment/ClusterDeploymentHostsSelection.tsx +14 -12
  287. package/lib/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.tsx +3 -1
  288. package/lib/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.tsx +3 -0
  289. package/lib/cim/components/ClusterDeployment/ClusterDeploymentWizard.tsx +4 -0
  290. package/lib/cim/components/ClusterDeployment/ClusterDetailsFormFields.tsx +8 -2
  291. package/lib/cim/components/ClusterDeployment/types.ts +6 -3
  292. package/lib/cim/components/ClusterDeployment/wizardTransition.ts +10 -0
  293. package/lib/cim/components/Hypershift/hooks/useSupportedOCPVersions.ts +1 -1
  294. package/lib/cim/components/InfraEnv/AddHostDropdown.tsx +45 -18
  295. package/lib/cim/components/InfraEnv/types.ts +4 -1
  296. package/lib/cim/components/helpers/toAssisted.ts +3 -0
  297. package/lib/cim/components/helpers/versions.ts +8 -1
  298. package/lib/cim/components/modals/AddBmcHostModal.tsx +3 -0
  299. package/lib/cim/components/modals/AddBmcHostYamlModal.tsx +3 -0
  300. package/lib/cim/components/modals/ProvisioningConfigErrorAlert.tsx +18 -0
  301. package/lib/cim/components/modals/types.ts +2 -0
  302. package/lib/common/api/assisted-service/ClustersAPI.ts +0 -9
  303. package/lib/common/api/axiosClient.ts +2 -3
  304. package/lib/common/components/clusterWizard/ReviewValidations.tsx +12 -1
  305. package/lib/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.tsx +2 -2
  306. package/lib/common/components/clusterWizard/types.ts +1 -0
  307. package/lib/common/components/clusterWizard/validationsInfoUtils.ts +9 -0
  308. package/lib/common/components/ui/formik/SingleNodeCheckbox.tsx +1 -3
  309. package/lib/common/components/ui/formik/validationSchemas.test.ts +4 -22
  310. package/lib/common/components/ui/formik/validationSchemas.ts +13 -22
  311. package/lib/common/config/constants.ts +1 -3
  312. package/lib/common/features/featureGate.tsx +1 -19
  313. package/lib/common/utils.ts +2 -2
  314. package/lib/ocm/components/HostsClusterDetailTab/HostsClusterDetailTab.tsx +16 -11
  315. package/lib/ocm/components/Routes.tsx +34 -0
  316. package/lib/ocm/components/clusterConfiguration/DiscoveryImageForm.tsx +5 -1
  317. package/lib/ocm/components/clusterConfiguration/HostInventory.tsx +1 -1
  318. package/lib/ocm/components/clusterConfiguration/OcmBaseDomainField.tsx +0 -2
  319. package/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx +6 -10
  320. package/lib/ocm/components/clusterConfiguration/OcmSingleNodeCheckbox.tsx +2 -3
  321. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsArray.tsx +1 -1
  322. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.tsx +1 -1
  323. package/lib/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.tsx +1 -1
  324. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.tsx +6 -19
  325. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.tsx +8 -6
  326. package/lib/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.tsx +1 -1
  327. package/lib/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.tsx +1 -1
  328. package/lib/ocm/components/clusterConfiguration/operators/CnvHostRequirements.tsx +1 -1
  329. package/lib/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.tsx +129 -42
  330. package/lib/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.tsx +10 -8
  331. package/lib/ocm/components/clusterConfiguration/platformIntegration/constants.tsx +7 -3
  332. package/lib/ocm/components/clusterConfiguration/review/ReviewStep.tsx +2 -2
  333. package/lib/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.tsx +1 -1
  334. package/lib/ocm/components/clusterConfiguration/staticIp/components/StaticIpHostsArray.tsx +3 -3
  335. package/lib/ocm/components/clusterConfiguration/staticIp/components/YamlView/MacIpMapping.tsx +1 -1
  336. package/lib/ocm/components/clusterDetail/AssistedInstallerDetailCard.tsx +6 -4
  337. package/lib/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.tsx +3 -3
  338. package/lib/ocm/components/clusterDetail/CancelInstallationModal.tsx +1 -1
  339. package/lib/ocm/components/clusterDetail/ClusterDetail.tsx +1 -1
  340. package/lib/ocm/components/clusterDetail/ResetClusterModal.tsx +1 -1
  341. package/lib/ocm/components/clusterWizard/ClusterDetails.tsx +12 -7
  342. package/lib/ocm/components/clusterWizard/ClusterDetailsForm.tsx +5 -3
  343. package/lib/ocm/components/clusterWizard/CustomManifestStep.tsx +1 -1
  344. package/lib/ocm/components/clusterWizard/HostDiscovery.tsx +2 -2
  345. package/lib/ocm/components/clusterWizard/Operators.tsx +1 -1
  346. package/lib/ocm/components/clusterWizard/OperatorsStep.tsx +6 -19
  347. package/lib/ocm/components/clusterWizard/StaticIp.tsx +1 -1
  348. package/lib/ocm/components/clusters/AssistedInstallerHeader.tsx +25 -0
  349. package/lib/ocm/components/clusters/ClusterPage.tsx +4 -28
  350. package/lib/ocm/components/clusters/Clusters.tsx +9 -11
  351. package/lib/ocm/components/clusters/ClustersListToolbar.tsx +5 -5
  352. package/lib/ocm/components/clusters/ClustersTable.tsx +4 -1
  353. package/lib/ocm/components/clusters/NewClusterPage.tsx +3 -6
  354. package/lib/ocm/components/clusters/clusterPolling.ts +7 -7
  355. package/lib/ocm/components/featureSupportLevels/featureStateUtils.ts +21 -7
  356. package/lib/ocm/components/hosts/HostsDiscoveryTable.tsx +1 -1
  357. package/lib/ocm/components/hosts/use-hosts-table.tsx +5 -2
  358. package/lib/ocm/components/hosts/utils.ts +1 -1
  359. package/lib/ocm/components/index.ts +1 -1
  360. package/lib/ocm/components/ui/OcmFormFields.tsx +1 -1
  361. package/lib/ocm/hooks/index.ts +0 -1
  362. package/lib/ocm/hooks/useSetClusterPermissions.ts +1 -1
  363. package/lib/ocm/index.ts +0 -1
  364. package/lib/ocm/store/hooks.ts +6 -2
  365. package/lib/ocm/store/index.ts +5 -23
  366. package/lib/ocm/{selectors/clusters.tsx → store/slices/clusters/selectors.tsx} +10 -12
  367. package/lib/ocm/{reducers/clusters/clustersSlice.ts → store/slices/clusters/slice.ts} +6 -5
  368. package/lib/ocm/{selectors/currentCluster.ts → store/slices/current-cluster/selectors.ts} +7 -7
  369. package/lib/ocm/{reducers/clusters/currentClusterSlice.ts → store/slices/current-cluster/slice.ts} +10 -8
  370. package/lib/ocm/store/slices/feature-flags/selectors.ts +13 -0
  371. package/lib/ocm/store/slices/feature-flags/slice.ts +15 -0
  372. package/lib/ocm/store/slices/{infraEnvs → infra-envs}/selectors.ts +3 -3
  373. package/lib/ocm/store/slices/{infraEnvs → infra-envs}/thunks.ts +3 -3
  374. package/lib/ocm/store/store-day1.ts +23 -0
  375. package/lib/ocm/store/store-day2.ts +19 -0
  376. package/package.json +3 -4
  377. package/build/@types/ocm/components/Router.d.ts +0 -9
  378. package/build/@types/ocm/components/Router.d.ts.map +0 -1
  379. package/build/@types/ocm/hooks/useClusterSupportedPlatforms.d.ts +0 -11
  380. package/build/@types/ocm/hooks/useClusterSupportedPlatforms.d.ts.map +0 -1
  381. package/build/@types/ocm/hooks/useOracleDropdownItemState.d.ts +0 -10
  382. package/build/@types/ocm/hooks/useOracleDropdownItemState.d.ts.map +0 -1
  383. package/build/@types/ocm/reducers/clusters/clustersSlice.d.ts.map +0 -1
  384. package/build/@types/ocm/reducers/clusters/currentClusterSlice.d.ts.map +0 -1
  385. package/build/@types/ocm/reducers/clusters/index.d.ts +0 -3
  386. package/build/@types/ocm/reducers/clusters/index.d.ts.map +0 -1
  387. package/build/@types/ocm/selectors/clusters.d.ts.map +0 -1
  388. package/build/@types/ocm/selectors/currentCluster.d.ts +0 -14
  389. package/build/@types/ocm/selectors/currentCluster.d.ts.map +0 -1
  390. package/build/@types/ocm/selectors/index.d.ts +0 -3
  391. package/build/@types/ocm/selectors/index.d.ts.map +0 -1
  392. package/build/@types/ocm/store/slices/infraEnvs/selectors.d.ts.map +0 -1
  393. package/build/@types/ocm/store/slices/infraEnvs/slice.d.ts.map +0 -1
  394. package/build/@types/ocm/store/slices/infraEnvs/thunks.d.ts.map +0 -1
  395. package/build/cjs/ocm/components/Router.js +0 -25
  396. package/build/cjs/ocm/components/Router.js.map +0 -1
  397. package/build/cjs/ocm/hooks/useClusterSupportedPlatforms.js +0 -53
  398. package/build/cjs/ocm/hooks/useClusterSupportedPlatforms.js.map +0 -1
  399. package/build/cjs/ocm/hooks/useOracleDropdownItemState.js +0 -30
  400. package/build/cjs/ocm/hooks/useOracleDropdownItemState.js.map +0 -1
  401. package/build/cjs/ocm/reducers/clusters/clustersSlice.js.map +0 -1
  402. package/build/cjs/ocm/reducers/clusters/currentClusterSlice.js.map +0 -1
  403. package/build/cjs/ocm/reducers/clusters/index.js +0 -6
  404. package/build/cjs/ocm/reducers/clusters/index.js.map +0 -1
  405. package/build/cjs/ocm/selectors/clusters.js.map +0 -1
  406. package/build/cjs/ocm/selectors/currentCluster.js.map +0 -1
  407. package/build/cjs/ocm/selectors/index.js +0 -6
  408. package/build/cjs/ocm/selectors/index.js.map +0 -1
  409. package/build/cjs/ocm/store/slices/infraEnvs/selectors.js.map +0 -1
  410. package/build/cjs/ocm/store/slices/infraEnvs/slice.js.map +0 -1
  411. package/build/cjs/ocm/store/slices/infraEnvs/thunks.js.map +0 -1
  412. package/lib/ocm/components/Router.tsx +0 -29
  413. package/lib/ocm/hooks/useClusterSupportedPlatforms.ts +0 -70
  414. package/lib/ocm/hooks/useOracleDropdownItemState.ts +0 -45
  415. package/lib/ocm/reducers/clusters/index.ts +0 -2
  416. package/lib/ocm/selectors/index.ts +0 -2
  417. /package/build/@types/ocm/store/slices/{infraEnvs → infra-envs}/slice.d.ts +0 -0
  418. /package/build/@types/ocm/store/slices/{infraEnvs → infra-envs}/thunks.d.ts +0 -0
  419. /package/build/cjs/ocm/store/slices/{infraEnvs → infra-envs}/selectors.js +0 -0
  420. /package/build/cjs/ocm/store/slices/{infraEnvs → infra-envs}/slice.js +0 -0
  421. /package/build/cjs/ocm/store/slices/{infraEnvs → infra-envs}/thunks.js +0 -0
  422. /package/lib/ocm/store/slices/{infraEnvs → infra-envs}/slice.ts +0 -0
@@ -1,12 +1,7 @@
1
1
  import React from 'react';
2
2
 
3
3
  // Must conform Unleash constants
4
- type AssistedInstallerFeatureType =
5
- | 'ASSISTED_INSTALLER_SNO_FEATURE'
6
- | 'ASSISTED_INSTALLER_OCS_FEATURE'
7
- | 'ASSISTED_INSTALLER_ODF_FEATURE'
8
- | 'ASSISTED_INSTALLER_CNV_FEATURE'
9
- | 'ASSISTED_INSTALLER_NETWORK_TYPE_SELECTION_FEATURE'
4
+ export type AssistedInstallerFeatureType =
10
5
  | 'ASSISTED_INSTALLER_SINGLE_CLUSTER_FEATURE'
11
6
  | 'ASSISTED_INSTALLER_MULTIARCH_SUPPORTED'
12
7
  | 'ASSISTED_INSTALLER_PLATFORM_OCI';
@@ -26,22 +21,12 @@ export type AssistedInstallerPermissionTypesListType = {
26
21
 
27
22
  // Hardcoded for ACM
28
23
  export const ACM_ENABLED_FEATURES: FeatureListType = {
29
- ASSISTED_INSTALLER_SNO_FEATURE: true,
30
- ASSISTED_INSTALLER_OCS_FEATURE: false,
31
- ASSISTED_INSTALLER_ODF_FEATURE: false,
32
- ASSISTED_INSTALLER_CNV_FEATURE: false,
33
- ASSISTED_INSTALLER_NETWORK_TYPE_SELECTION_FEATURE: false,
34
24
  ASSISTED_INSTALLER_SINGLE_CLUSTER_FEATURE: false,
35
25
  ASSISTED_INSTALLER_MULTIARCH_SUPPORTED: true,
36
26
  };
37
27
 
38
28
  // Hardcoded outside OCM
39
29
  export const STANDALONE_DEPLOYMENT_ENABLED_FEATURES: FeatureListType = {
40
- ASSISTED_INSTALLER_SNO_FEATURE: true,
41
- ASSISTED_INSTALLER_OCS_FEATURE: true,
42
- ASSISTED_INSTALLER_ODF_FEATURE: true,
43
- ASSISTED_INSTALLER_CNV_FEATURE: true,
44
- ASSISTED_INSTALLER_NETWORK_TYPE_SELECTION_FEATURE: true,
45
30
  ASSISTED_INSTALLER_SINGLE_CLUSTER_FEATURE: false,
46
31
  ASSISTED_INSTALLER_MULTIARCH_SUPPORTED: true,
47
32
  ASSISTED_INSTALLER_PLATFORM_OCI: true,
@@ -61,9 +46,6 @@ export const FeatureGateContextProvider: React.FC<{
61
46
  // hardcoded defaults
62
47
  // TODO (mortegag): Remove all multiarch capacity related code in the UI.
63
48
  const featuresWithDefaults: FeatureListType = {
64
- ASSISTED_INSTALLER_OCS_FEATURE: false,
65
- ASSISTED_INSTALLER_ODF_FEATURE: false,
66
- ASSISTED_INSTALLER_CNV_FEATURE: false,
67
49
  ASSISTED_INSTALLER_MULTIARCH_SUPPORTED: true,
68
50
  ...features,
69
51
  };
@@ -1,7 +1,7 @@
1
1
  import filesize from 'filesize.js';
2
2
  import camelCase from 'lodash-es/camelCase.js';
3
3
  import isString from 'lodash-es/isString.js';
4
- import { load } from 'js-yaml';
4
+ import { loadAll } from 'js-yaml';
5
5
  import { MAX_FILE_SIZE_BYTES, MAX_FILE_SIZE_OFFSET_FACTOR } from './configurations';
6
6
 
7
7
  export const FILENAME_REGEX = /^[^\/]*\.(yaml|yml|json)$/;
@@ -32,7 +32,7 @@ export const validateFileType = (value: string) => {
32
32
 
33
33
  export const isStringValidYAML = (input: string): boolean => {
34
34
  try {
35
- load(input);
35
+ loadAll(input);
36
36
  return true;
37
37
  } catch {
38
38
  return false;
@@ -4,17 +4,22 @@ import { AssistedUILibVersion } from '../ui';
4
4
  import { AlertsContextProvider, FeatureGateContextProvider } from '../../../common';
5
5
  import { HostsClusterDetailTabContent } from './HostsClusterDetailTabContent';
6
6
  import { HostsClusterDetailTabProps } from './types';
7
- import { store } from '../../store';
7
+ import { storeDay1 } from '../../store';
8
+ import { featureFlagsActions } from '../../store/slices/feature-flags/slice';
8
9
 
9
- const HostsClusterDetailTab = (props: HostsClusterDetailTabProps) => (
10
- <Provider store={store}>
11
- <AssistedUILibVersion />
12
- <FeatureGateContextProvider features={props.allEnabledFeatures}>
13
- <AlertsContextProvider>
14
- <HostsClusterDetailTabContent {...props} />
15
- </AlertsContextProvider>
16
- </FeatureGateContextProvider>
17
- </Provider>
18
- );
10
+ const HostsClusterDetailTab = (props: HostsClusterDetailTabProps) => {
11
+ storeDay1.dispatch(featureFlagsActions.setFeatureFlags(props.allEnabledFeatures));
12
+
13
+ return (
14
+ <Provider store={storeDay1}>
15
+ <AssistedUILibVersion />
16
+ <FeatureGateContextProvider features={props.allEnabledFeatures}>
17
+ <AlertsContextProvider>
18
+ <HostsClusterDetailTabContent {...props} />
19
+ </AlertsContextProvider>
20
+ </FeatureGateContextProvider>
21
+ </Provider>
22
+ );
23
+ };
19
24
 
20
25
  export default HostsClusterDetailTab;
@@ -0,0 +1,34 @@
1
+ import React, { useEffect } from 'react';
2
+ import { Provider } from 'react-redux';
3
+ import { Switch, Route, Redirect } from 'react-router-dom';
4
+ import { Clusters, ClusterPage, NewClusterPage } from './clusters';
5
+ import { FeatureGateContextProvider } from '../../common';
6
+ import type { FeatureListType } from '../../common/features/featureGate';
7
+ import { routeBasePath } from '../config';
8
+ import { AssistedUILibVersion } from './ui';
9
+ import { storeDay1 } from '../store';
10
+ import { featureFlagsActions } from '../store/slices/feature-flags/slice';
11
+
12
+ export const Routes: React.FC<{ allEnabledFeatures: FeatureListType }> = ({
13
+ allEnabledFeatures,
14
+ children,
15
+ }) => {
16
+ useEffect(() => {
17
+ storeDay1.dispatch(featureFlagsActions.setFeatureFlags(allEnabledFeatures));
18
+ }, [allEnabledFeatures]);
19
+
20
+ return (
21
+ <Provider store={storeDay1}>
22
+ <FeatureGateContextProvider features={allEnabledFeatures}>
23
+ <AssistedUILibVersion />
24
+ <Switch>
25
+ <Route path={`${routeBasePath}/clusters/~new`} component={NewClusterPage} />
26
+ <Route path={`${routeBasePath}/clusters/:clusterId`} component={ClusterPage} />
27
+ <Route path={`${routeBasePath}/clusters`} component={Clusters} />
28
+ {children}
29
+ <Redirect to={`${routeBasePath}/clusters`} />
30
+ </Switch>
31
+ </FeatureGateContextProvider>
32
+ </Provider>
33
+ );
34
+ };
@@ -4,7 +4,11 @@ import Axios, { CancelTokenSource } from 'axios';
4
4
  import { FormikHelpers } from 'formik';
5
5
  import { getApiErrorMessage, handleApiError, isUnknownServerError } from '../../api';
6
6
  import { CpuArchitecture, ErrorState, LoadingState } from '../../../common';
7
- import { forceReload, setServerUpdateError, updateCluster } from '../../reducers/clusters';
7
+ import {
8
+ forceReload,
9
+ setServerUpdateError,
10
+ updateCluster,
11
+ } from '../../store/slices/current-cluster/slice';
8
12
  import useInfraEnv from '../../hooks/useInfraEnv';
9
13
  import { DiscoveryImageFormService } from '../../services';
10
14
  import {
@@ -22,7 +22,7 @@ import HostsDiscoveryTable from '../hosts/HostsDiscoveryTable';
22
22
  import { DiscoveryImageModalButton } from './DiscoveryImageModal';
23
23
  import InformationAndAlerts from './InformationAndAlerts';
24
24
  import { OcmSwitchField } from '../ui/OcmFormFields';
25
- import { selectCurrentClusterPermissionsState } from '../../selectors';
25
+ import { selectCurrentClusterPermissionsState } from '../../store/slices/current-cluster/selectors';
26
26
  import { Cluster } from '@openshift-assisted/types/assisted-installer-service';
27
27
 
28
28
  const schedulableMastersTooltip =
@@ -106,6 +106,4 @@ export const OcmBaseDomainField = ({ managedDomains }: { managedDomains: Managed
106
106
  </FormGroup>
107
107
  </>
108
108
  );
109
-
110
- return <></>;
111
109
  };
@@ -30,12 +30,11 @@ import OcmSNOControlGroup from './OcmSNOControlGroup';
30
30
  import useSupportLevelsAPI from '../../hooks/useSupportLevelsAPI';
31
31
  import { useOpenshiftVersions } from '../../hooks';
32
32
  import { ExternalPlatformDropdown } from './platformIntegration/ExternalPlatformDropdown';
33
- import { useOracleDropdownItemState } from '../../hooks/useOracleDropdownItemState';
34
- import { useClusterWizardContext } from '../clusterWizard/ClusterWizardContext';
35
33
  import { HostsNetworkConfigurationType } from '../../services/types';
36
34
  import { useNewFeatureSupportLevel } from '../../../common/components/newFeatureSupportLevels';
37
35
  import { ExternalPlatformLabels } from './platformIntegration/constants';
38
36
  import { ManagedDomain, PlatformType } from '@openshift-assisted/types/assisted-installer-service';
37
+ import { useClusterWizardContext } from '../clusterWizard/ClusterWizardContext';
39
38
 
40
39
  export type OcmClusterDetailsFormFieldsProps = {
41
40
  forceOpenshiftVersion?: string;
@@ -84,11 +83,7 @@ export const OcmClusterDetailsFormFields = ({
84
83
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
85
84
  // @ts-ignore
86
85
  const cpuArchitecture = (architectureData[values.cpuArchitecture] as CpuArchitectureItem).label;
87
- const oracleDropdownItemState = useOracleDropdownItemState(
88
- clusterExists,
89
- featureSupportLevelData,
90
- values.cpuArchitecture,
91
- );
86
+
92
87
  const featureSupportLevelContext = useNewFeatureSupportLevel();
93
88
 
94
89
  React.useEffect(() => {
@@ -175,10 +170,11 @@ export const OcmClusterDetailsFormFields = ({
175
170
  </StaticTextField>
176
171
  ) : (
177
172
  <ExternalPlatformDropdown
178
- showOciOption={isOracleCloudPlatformIntegrationEnabled}
179
- disabledOciTooltipContent={oracleDropdownItemState?.disabledReason}
180
- isOciDisabled={oracleDropdownItemState?.isDisabled || false}
181
173
  onChange={handleExternalPartnerIntegrationsChange}
174
+ cpuArchitecture={values.cpuArchitecture}
175
+ showOciOption={isOracleCloudPlatformIntegrationEnabled}
176
+ featureSupportLevelData={featureSupportLevelData}
177
+ isSNO={isSNO({ highAvailabilityMode })}
182
178
  />
183
179
  )}
184
180
 
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { useField, useFormikContext } from 'formik';
3
3
  import { Checkbox, FormGroup, Tooltip } from '@patternfly/react-core';
4
- import { getFieldId, HelperText, useFeature } from '../../../common';
4
+ import { getFieldId, HelperText } from '../../../common';
5
5
  import { useNewFeatureSupportLevel } from '../../../common/components/newFeatureSupportLevels';
6
6
  import { CheckboxFieldProps } from '../../../common/components/ui/formik/types';
7
7
  import NewFeatureSupportLevelBadge from '../../../common/components/newFeatureSupportLevels/NewFeatureSupportLevelBadge';
@@ -28,7 +28,6 @@ const OcmSingleNodeCheckbox: React.FC<OcmCheckboxProps> = ({
28
28
  const {
29
29
  values: { openshiftVersion },
30
30
  } = useFormikContext<ClusterCreateParams>();
31
- const isSingleNodeOpenshiftEnabled = useFeature('ASSISTED_INSTALLER_SNO_FEATURE');
32
31
  const [field, meta, helpers] = useField<'None' | 'Full'>({ name: props.name, validate });
33
32
  const featureSupportLevelContext = useNewFeatureSupportLevel();
34
33
  const prevVersionRef = React.useRef(openshiftVersion);
@@ -61,7 +60,7 @@ const OcmSingleNodeCheckbox: React.FC<OcmCheckboxProps> = ({
61
60
  prevIsDisabled.current = props.isDisabled;
62
61
  }, [props.isDisabled, setValue, onChanged]);
63
62
 
64
- if (isSingleNodeOpenshiftEnabled && isSupportedVersionAvailable) {
63
+ if (isSupportedVersionAvailable) {
65
64
  return (
66
65
  <FormGroup id={`form-control__${fieldId}`} isInline fieldId={fieldId}>
67
66
  <Tooltip hidden={!disabledReason} content={disabledReason}>
@@ -6,12 +6,12 @@ import { FieldArrayRenderProps, useField } from 'formik';
6
6
  import cloneDeep from 'lodash-es/cloneDeep.js';
7
7
  import { LoadingState, useAlerts } from '../../../../../common';
8
8
  import ConfirmationModal from '../../../../../common/components/ui/ConfirmationModal';
9
- import { selectCurrentClusterPermissionsState } from '../../../../selectors';
10
9
  import { ClustersAPI } from '../../../../services/apis';
11
10
  import { getApiErrorMessage, handleApiError } from '../../../../api';
12
11
  import { CustomManifest } from './CustomManifest';
13
12
  import { getEmptyFormViewManifest, getManifestName } from './utils';
14
13
  import { CustomManifestValues } from '../data/dataTypes';
14
+ import { selectCurrentClusterPermissionsState } from '../../../../store/slices/current-cluster/selectors';
15
15
 
16
16
  const fieldName = 'manifests';
17
17
 
@@ -13,7 +13,6 @@ import {
13
13
  } from 'formik';
14
14
  import isEqual from 'lodash-es/isEqual.js';
15
15
  import { ErrorState, LoadingState, useAlerts, useFormikAutoSave } from '../../../../../common';
16
- import { selectCurrentClusterPermissionsState } from '../../../../selectors';
17
16
  import { CustomManifestsFormProps } from './propTypes';
18
17
  import {
19
18
  CustomManifestValues,
@@ -27,6 +26,7 @@ import useClusterCustomManifests from '../../../../hooks/useClusterCustomManifes
27
26
  import { ClustersService } from '../../../../services';
28
27
  import { CustomManifestsArray } from './CustomManifestsArray';
29
28
  import { getManifestFakeId } from './utils';
29
+ import { selectCurrentClusterPermissionsState } from '../../../../store/slices/current-cluster/selectors';
30
30
 
31
31
  const fieldName = 'manifests';
32
32
 
@@ -10,7 +10,7 @@ import {
10
10
  DUAL_STACK,
11
11
  NO_SUBNET_SET,
12
12
  } from '../../../../common';
13
- import { selectCurrentClusterPermissionsState } from '../../../selectors';
13
+ import { selectCurrentClusterPermissionsState } from '../../../store/slices/current-cluster/selectors';
14
14
  import { SubnetsDropdown } from './SubnetsDropdown';
15
15
  import { Cluster, MachineNetwork } from '@openshift-assisted/types/assisted-installer-service';
16
16
 
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { useFormikContext } from 'formik';
3
- import { TFunction } from 'i18next';
4
3
  import { useSelector } from 'react-redux';
5
4
  import { Alert, AlertVariant, Grid, Tooltip } from '@patternfly/react-core';
6
5
  import { VirtualIPControlGroup, VirtualIPControlGroupProps } from './VirtualIPControlGroup';
@@ -23,16 +22,13 @@ import {
23
22
  import { StackTypeControlGroup } from './StackTypeControl';
24
23
  import { AvailableSubnetsControl } from './AvailableSubnetsControl';
25
24
  import AdvancedNetworkFields from './AdvancedNetworkFields';
26
- import { useTranslation } from '../../../../common/hooks/use-translation-wrapper';
27
- import { selectCurrentClusterPermissionsState } from '../../../selectors';
25
+ import { selectCurrentClusterPermissionsState } from '../../../store/slices/current-cluster/selectors';
28
26
  import { OcmCheckbox } from '../../ui/OcmFormFields';
29
27
  import { NetworkTypeControlGroup } from '../../../../common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup';
30
- import { useClusterSupportedPlatforms } from '../../../hooks';
31
28
  import {
32
29
  NewFeatureSupportLevelData,
33
30
  useNewFeatureSupportLevel,
34
31
  } from '../../../../common/components/newFeatureSupportLevels';
35
- import { SupportedPlatformIntegrationType } from '../../../hooks/useClusterSupportedPlatforms';
36
32
  import {
37
33
  Cluster,
38
34
  ClusterDefaultConfig,
@@ -78,12 +74,9 @@ const getManagedNetworkingDisabledReason = (
78
74
  }
79
75
  };
80
76
 
81
- const getUserManagedDisabledReason = (
82
- supportedPlatformIntegration: SupportedPlatformIntegrationType,
83
- t: TFunction,
84
- ) => {
85
- if (['nutanix', 'vsphere'].includes(supportedPlatformIntegration)) {
86
- return t('ai:User-Managed Networking is not supported when using Nutanix or vSphere');
77
+ const getUserManagedDisabledReason = (featureSupportLevelData: NewFeatureSupportLevelData) => {
78
+ if (!featureSupportLevelData.isFeatureSupported('USER_MANAGED_NETWORKING')) {
79
+ return featureSupportLevelData.getFeatureDisabledReason('USER_MANAGED_NETWORKING');
87
80
  }
88
81
  };
89
82
 
@@ -96,9 +89,7 @@ const getClusterManagedDisabledReason = (featureSupportLevelData: NewFeatureSupp
96
89
  const getManagedNetworkingState = (
97
90
  isDualStack: boolean,
98
91
  isOracleCloudInfrastructure: boolean,
99
- supportedPlatformIntegration: SupportedPlatformIntegrationType,
100
92
  featureSupportLevelData: NewFeatureSupportLevelData,
101
- t: TFunction,
102
93
  ): {
103
94
  isDisabled: boolean;
104
95
  clusterManagedDisabledReason?: string;
@@ -110,7 +101,7 @@ const getManagedNetworkingState = (
110
101
  featureSupportLevelData,
111
102
  );
112
103
  const cmnReason = getClusterManagedDisabledReason(featureSupportLevelData);
113
- const umnReason = getUserManagedDisabledReason(supportedPlatformIntegration, t);
104
+ const umnReason = getUserManagedDisabledReason(featureSupportLevelData);
114
105
 
115
106
  return {
116
107
  isDisabled: !!(cmnReason || umnReason || networkingReason),
@@ -125,9 +116,7 @@ const NetworkConfiguration = ({
125
116
  isVipDhcpAllocationDisabled,
126
117
  defaultNetworkSettings,
127
118
  }: NetworkConfigurationProps) => {
128
- const { t } = useTranslation();
129
119
  const featureSupportLevelData = useNewFeatureSupportLevel();
130
- const { supportedPlatformIntegration } = useClusterSupportedPlatforms(cluster.id);
131
120
  const { isViewerMode } = useSelector(selectCurrentClusterPermissionsState);
132
121
  const { setFieldValue, values, validateField } = useFormikContext<NetworkConfigurationValues>();
133
122
 
@@ -205,11 +194,9 @@ const NetworkConfiguration = ({
205
194
  getManagedNetworkingState(
206
195
  isDualStack,
207
196
  cluster.platform?.type === 'oci',
208
- supportedPlatformIntegration,
209
197
  featureSupportLevelData,
210
- t,
211
198
  ),
212
- [isDualStack, cluster.platform?.type, supportedPlatformIntegration, featureSupportLevelData, t],
199
+ [isDualStack, cluster.platform?.type, featureSupportLevelData],
213
200
  );
214
201
 
215
202
  return (
@@ -26,7 +26,7 @@ import { canNextNetwork } from '../../clusterWizard/wizardTransition';
26
26
  import ClusterWizardNavigation from '../../clusterWizard/ClusterWizardNavigation';
27
27
  import NetworkConfigurationTable from './NetworkConfigurationTable';
28
28
  import useInfraEnv from '../../../hooks/useInfraEnv';
29
- import { selectCurrentClusterPermissionsState } from '../../../selectors';
29
+ import { selectCurrentClusterPermissionsState } from '../../../store/slices/current-cluster/selectors';
30
30
  import {
31
31
  getNetworkConfigurationValidationSchema,
32
32
  getNetworkInitialValues,
@@ -34,9 +34,12 @@ import {
34
34
  import NetworkConfiguration from './NetworkConfiguration';
35
35
  import { captureException } from '../../../sentry';
36
36
  import { ClustersService } from '../../../services';
37
- import { setServerUpdateError, updateClusterBase } from '../../../reducers/clusters';
37
+ import {
38
+ setServerUpdateError,
39
+ updateClusterBase,
40
+ } from '../../../store/slices/current-cluster/slice';
38
41
  import { isUnknownServerError, getApiErrorMessage, handleApiError } from '../../../api';
39
- import { useClusterSupportedPlatforms, usePullSecret } from '../../../hooks';
42
+ import { usePullSecret } from '../../../hooks';
40
43
  import {
41
44
  Cluster,
42
45
  ClusterDefaultConfig,
@@ -63,13 +66,12 @@ const NetworkConfigurationForm: React.FC<{
63
66
  useFormikContext<NetworkConfigurationValues>();
64
67
  const isAutoSaveRunning = useFormikAutoSave();
65
68
  const errorFields = getFormikErrorFields(errors, touched);
66
- const { supportedPlatformIntegration } = useClusterSupportedPlatforms(cluster.id);
67
69
 
68
70
  // DHCP allocation is currently not supported for Nutanix hosts
69
71
  // https://issues.redhat.com/browse/MGMT-12382
70
72
  const isHostsPlatformTypeNutanix = React.useMemo(
71
- () => supportedPlatformIntegration === 'nutanix',
72
- [supportedPlatformIntegration],
73
+ () => cluster.platform?.type === 'nutanix',
74
+ [cluster.platform],
73
75
  );
74
76
 
75
77
  React.useEffect(() => {
@@ -16,7 +16,7 @@ import {
16
16
  } from '../../../../common';
17
17
  import { ConfirmationModal, PopoverIcon } from '../../../../common/components/ui';
18
18
  import { useDefaultConfiguration } from '../ClusterDefaultConfigurationContext';
19
- import { selectCurrentClusterPermissionsState } from '../../../selectors';
19
+ import { selectCurrentClusterPermissionsState } from '../../../store/slices/current-cluster/selectors';
20
20
  import { OcmRadioField } from '../../ui/OcmFormFields';
21
21
  import {
22
22
  Cluster,
@@ -21,7 +21,7 @@ import {
21
21
  selectApiVip,
22
22
  selectIngressVip,
23
23
  } from '../../../../common';
24
- import { selectCurrentClusterPermissionsState } from '../../../selectors';
24
+ import { selectCurrentClusterPermissionsState } from '../../../store/slices/current-cluster/selectors';
25
25
  import { OcmCheckboxField, OcmInputField } from '../../ui/OcmFormFields';
26
26
  import { useTranslation } from '../../../../common/hooks/use-translation-wrapper';
27
27
  import NewFeatureSupportLevelBadge from '../../../../common/components/newFeatureSupportLevels/NewFeatureSupportLevelBadge';
@@ -3,8 +3,8 @@ import { useSelector } from 'react-redux';
3
3
  import { List, ListItem } from '@patternfly/react-core';
4
4
  import { useClusterPreflightRequirements } from '../../../hooks';
5
5
  import { ErrorState, LoadingState, OPERATOR_NAME_CNV, RenderIf } from '../../../../common';
6
- import { selectIsCurrentClusterSNO } from '../../../selectors';
7
6
  import { Cluster } from '@openshift-assisted/types/assisted-installer-service';
7
+ import { selectIsCurrentClusterSNO } from '../../../store/slices/current-cluster/selectors';
8
8
 
9
9
  const CnvHostRequirements = ({ clusterId }: { clusterId: Cluster['id'] }) => {
10
10
  const { preflightRequirements, error, isLoading } = useClusterPreflightRequirements(clusterId);