@openshift-assisted/ui-lib 5.0.1-cim → 5.0.2-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 (293) hide show
  1. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizard.d.ts.map +1 -1
  2. package/build/@types/cim/components/ClusterDeployment/clusterDetails/ACMClusterDeploymentDetailsStep.d.ts.map +1 -1
  3. package/build/@types/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.d.ts.map +1 -1
  4. package/build/@types/cim/components/ClusterDeployment/components/ValidationSection.d.ts +2 -2
  5. package/build/@types/cim/components/ClusterDeployment/components/ValidationSection.d.ts.map +1 -1
  6. package/build/@types/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.d.ts.map +1 -1
  7. package/build/@types/cim/components/ClusterDeployment/types.d.ts +1 -2
  8. package/build/@types/cim/components/ClusterDeployment/types.d.ts.map +1 -1
  9. package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts +3 -2
  10. package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts.map +1 -1
  11. package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.d.ts.map +1 -1
  12. package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.d.ts.map +1 -1
  13. package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/StorageClassDropdown.d.ts +6 -0
  14. package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/StorageClassDropdown.d.ts.map +1 -0
  15. package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/types.d.ts +4 -2
  16. package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/types.d.ts.map +1 -1
  17. package/build/@types/cim/components/Hypershift/hooks/useSupportedOCPVersions.d.ts +2 -1
  18. package/build/@types/cim/components/Hypershift/hooks/useSupportedOCPVersions.d.ts.map +1 -1
  19. package/build/@types/cim/components/InfraEnv/EnvironmentErrors.d.ts.map +1 -1
  20. package/build/@types/cim/components/InfraEnv/InfraEnvAgentTable.d.ts.map +1 -1
  21. package/build/@types/cim/components/helpers/status.d.ts +5 -7
  22. package/build/@types/cim/components/helpers/status.d.ts.map +1 -1
  23. package/build/@types/cim/components/helpers/toAssisted.d.ts.map +1 -1
  24. package/build/@types/cim/components/helpers/versions.d.ts +3 -2
  25. package/build/@types/cim/components/helpers/versions.d.ts.map +1 -1
  26. package/build/@types/cim/components/index.d.ts +0 -1
  27. package/build/@types/cim/components/index.d.ts.map +1 -1
  28. package/build/@types/cim/components/modals/CimConfiguration/CimStorageMissingAlert.d.ts.map +1 -1
  29. package/build/@types/cim/components/modals/MassDeleteAgentModal.d.ts +2 -3
  30. package/build/@types/cim/components/modals/MassDeleteAgentModal.d.ts.map +1 -1
  31. package/build/@types/cim/hooks/index.d.ts +1 -0
  32. package/build/@types/cim/hooks/index.d.ts.map +1 -1
  33. package/build/@types/cim/hooks/useStorageClasses.d.ts +4 -0
  34. package/build/@types/cim/hooks/useStorageClasses.d.ts.map +1 -0
  35. package/build/@types/cim/index.d.ts +0 -1
  36. package/build/@types/cim/index.d.ts.map +1 -1
  37. package/build/@types/common/api/assisted-service/ClustersAPI.d.ts +2 -1
  38. package/build/@types/common/api/assisted-service/ClustersAPI.d.ts.map +1 -1
  39. package/build/@types/common/api/assisted-service/NewFeatureSupportLevelsAPI.d.ts +7 -1
  40. package/build/@types/common/api/assisted-service/NewFeatureSupportLevelsAPI.d.ts.map +1 -1
  41. package/build/@types/common/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts.map +1 -1
  42. package/build/@types/common/components/clusterConfiguration/DiscoveryImageConfigForm.d.ts.map +1 -1
  43. package/build/@types/common/components/clusterWizard/validationsInfoUtils.d.ts.map +1 -1
  44. package/build/@types/common/components/index.d.ts +1 -1
  45. package/build/@types/common/components/index.d.ts.map +1 -1
  46. package/build/@types/common/components/operators/operatorSpecs.d.ts.map +1 -1
  47. package/build/@types/common/components/ui/formik/PullSecretField.d.ts +1 -0
  48. package/build/@types/common/components/ui/formik/PullSecretField.d.ts.map +1 -1
  49. package/build/@types/common/components/ui/formik/SelectFieldWithSearch.d.ts +2 -1
  50. package/build/@types/common/components/ui/formik/SelectFieldWithSearch.d.ts.map +1 -1
  51. package/build/@types/common/config/docs_links.d.ts.map +1 -1
  52. package/build/@types/common/types/clusters.d.ts +1 -1
  53. package/build/@types/common/types/clusters.d.ts.map +1 -1
  54. package/build/@types/common/utils.d.ts.map +1 -1
  55. package/build/@types/ocm/components/AddHosts/types.d.ts +4 -3
  56. package/build/@types/ocm/components/AddHosts/types.d.ts.map +1 -1
  57. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.d.ts +10 -2
  58. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.d.ts.map +1 -1
  59. package/build/@types/ocm/components/clusterWizard/ClusterWizardContext.d.ts +5 -0
  60. package/build/@types/ocm/components/clusterWizard/ClusterWizardContext.d.ts.map +1 -1
  61. package/build/@types/ocm/components/clusterWizard/ClusterWizardContextProvider.d.ts.map +1 -1
  62. package/build/@types/ocm/components/clusterWizard/NewClusterWizard.d.ts.map +1 -1
  63. package/build/@types/ocm/components/clusterWizard/constants.d.ts.map +1 -1
  64. package/build/@types/ocm/components/clusterWizard/disconnected/BasicStep.d.ts +1 -0
  65. package/build/@types/ocm/components/clusterWizard/disconnected/BasicStep.d.ts.map +1 -1
  66. package/build/@types/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.d.ts +4 -0
  67. package/build/@types/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.d.ts.map +1 -0
  68. package/build/@types/ocm/components/clusterWizard/disconnected/ReviewStep.d.ts.map +1 -1
  69. package/build/@types/ocm/components/clusterWizard/wizardTransition.d.ts +1 -1
  70. package/build/@types/ocm/components/clusterWizard/wizardTransition.d.ts.map +1 -1
  71. package/build/@types/ocm/components/featureSupportLevels/index.d.ts +0 -1
  72. package/build/@types/ocm/components/featureSupportLevels/index.d.ts.map +1 -1
  73. package/build/@types/ocm/services/ClustersService.d.ts +2 -1
  74. package/build/@types/ocm/services/ClustersService.d.ts.map +1 -1
  75. package/build/@types/ocm/services/InfraEnvsService.d.ts +1 -1
  76. package/build/@types/ocm/services/NewFeatureSupportLevelsService.d.ts +1 -1
  77. package/build/cjs/cim/components/Agent/AgentsSelectionTable.js +1 -1
  78. package/build/cjs/cim/components/Agent/AgentsSelectionTable.js.map +1 -1
  79. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js +13 -15
  80. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js.map +1 -1
  81. package/build/cjs/cim/components/ClusterDeployment/ClusterInstallationError.js +1 -1
  82. package/build/cjs/cim/components/ClusterDeployment/ClusterInstallationError.js.map +1 -1
  83. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ACMClusterDeploymentDetailsStep.js +3 -2
  84. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ACMClusterDeploymentDetailsStep.js.map +1 -1
  85. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.js +4 -5
  86. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.js.map +1 -1
  87. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsStep.js +2 -2
  88. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsStep.js.map +1 -1
  89. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.js +2 -5
  90. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.js.map +1 -1
  91. package/build/cjs/cim/components/ClusterDeployment/components/ValidationSection.js.map +1 -1
  92. package/build/cjs/cim/components/ClusterDeployment/constants.js +2 -2
  93. package/build/cjs/cim/components/ClusterDeployment/constants.js.map +1 -1
  94. package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.js +1 -1
  95. package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.js.map +1 -1
  96. package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscoveryStep.js +2 -2
  97. package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscoveryStep.js.map +1 -1
  98. package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.js +2 -2
  99. package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.js.map +1 -1
  100. package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js +4 -4
  101. package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js.map +1 -1
  102. package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js +21 -7
  103. package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js.map +1 -1
  104. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.js +3 -1
  105. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.js.map +1 -1
  106. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.js +13 -3
  107. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.js.map +1 -1
  108. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/StorageClassDropdown.js +52 -0
  109. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/StorageClassDropdown.js.map +1 -0
  110. package/build/cjs/cim/components/Hypershift/hooks/useSupportedOCPVersions.js +3 -3
  111. package/build/cjs/cim/components/Hypershift/hooks/useSupportedOCPVersions.js.map +1 -1
  112. package/build/cjs/cim/components/InfraEnv/EnvironmentErrors.js +2 -4
  113. package/build/cjs/cim/components/InfraEnv/EnvironmentErrors.js.map +1 -1
  114. package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js +2 -2
  115. package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js.map +1 -1
  116. package/build/cjs/cim/components/InfraEnv/InfraEnvFormPage.js +1 -1
  117. package/build/cjs/cim/components/InfraEnv/InfraEnvFormPage.js.map +1 -1
  118. package/build/cjs/cim/components/helpers/status.js +4 -4
  119. package/build/cjs/cim/components/helpers/status.js.map +1 -1
  120. package/build/cjs/cim/components/helpers/toAssisted.js +2 -12
  121. package/build/cjs/cim/components/helpers/toAssisted.js.map +1 -1
  122. package/build/cjs/cim/components/helpers/versions.js +6 -6
  123. package/build/cjs/cim/components/helpers/versions.js.map +1 -1
  124. package/build/cjs/cim/components/helpers/versions.test.js +19 -18
  125. package/build/cjs/cim/components/helpers/versions.test.js.map +1 -1
  126. package/build/cjs/cim/components/index.js +0 -1
  127. package/build/cjs/cim/components/index.js.map +1 -1
  128. package/build/cjs/cim/components/modals/CimConfiguration/CimStorageMissingAlert.js +1 -1
  129. package/build/cjs/cim/components/modals/CimConfiguration/CimStorageMissingAlert.js.map +1 -1
  130. package/build/cjs/cim/components/modals/MassDeleteAgentModal.js +2 -2
  131. package/build/cjs/cim/components/modals/MassDeleteAgentModal.js.map +1 -1
  132. package/build/cjs/cim/hooks/index.js +1 -0
  133. package/build/cjs/cim/hooks/index.js.map +1 -1
  134. package/build/cjs/cim/hooks/useStorageClasses.js +13 -0
  135. package/build/cjs/cim/hooks/useStorageClasses.js.map +1 -0
  136. package/build/cjs/cim/index.js +0 -1
  137. package/build/cjs/cim/index.js.map +1 -1
  138. package/build/cjs/common/api/assisted-service/ClustersAPI.js +3 -0
  139. package/build/cjs/common/api/assisted-service/ClustersAPI.js.map +1 -1
  140. package/build/cjs/common/api/assisted-service/NewFeatureSupportLevelsAPI.js.map +1 -1
  141. package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js +2 -4
  142. package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js.map +1 -1
  143. package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js +1 -1
  144. package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js.map +1 -1
  145. package/build/cjs/common/components/clusterConfiguration/DownloadIso.js +1 -1
  146. package/build/cjs/common/components/clusterConfiguration/DownloadIso.js.map +1 -1
  147. package/build/cjs/common/components/clusterDetail/ConsoleModal.js +1 -1
  148. package/build/cjs/common/components/clusterDetail/ConsoleModal.js.map +1 -1
  149. package/build/cjs/common/components/clusterWizard/validationsInfoUtils.js +11 -4
  150. package/build/cjs/common/components/clusterWizard/validationsInfoUtils.js.map +1 -1
  151. package/build/cjs/common/components/index.js +1 -1
  152. package/build/cjs/common/components/index.js.map +1 -1
  153. package/build/cjs/common/components/operators/operatorSpecs.js +0 -3
  154. package/build/cjs/common/components/operators/operatorSpecs.js.map +1 -1
  155. package/build/cjs/common/components/ui/formik/PullSecretField.js +2 -2
  156. package/build/cjs/common/components/ui/formik/PullSecretField.js.map +1 -1
  157. package/build/cjs/common/components/ui/formik/SelectFieldWithSearch.js +2 -1
  158. package/build/cjs/common/components/ui/formik/SelectFieldWithSearch.js.map +1 -1
  159. package/build/cjs/common/config/docs_links.js +5 -4
  160. package/build/cjs/common/config/docs_links.js.map +1 -1
  161. package/build/cjs/common/utils.js +3 -0
  162. package/build/cjs/common/utils.js.map +1 -1
  163. package/build/cjs/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.js.map +1 -1
  164. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.js.map +1 -1
  165. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.js +1 -1
  166. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.js.map +1 -1
  167. package/build/cjs/ocm/components/clusterDetail/ClusterInstallationError.js +1 -1
  168. package/build/cjs/ocm/components/clusterDetail/ClusterInstallationError.js.map +1 -1
  169. package/build/cjs/ocm/components/clusterDetail/ProgressBarAlerts.js +1 -1
  170. package/build/cjs/ocm/components/clusterDetail/ProgressBarAlerts.js.map +1 -1
  171. package/build/cjs/ocm/components/clusterWizard/ClusterWizardContext.js.map +1 -1
  172. package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js +9 -0
  173. package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js.map +1 -1
  174. package/build/cjs/ocm/components/clusterWizard/NewClusterWizard.js +3 -0
  175. package/build/cjs/ocm/components/clusterWizard/NewClusterWizard.js.map +1 -1
  176. package/build/cjs/ocm/components/clusterWizard/constants.js +1 -0
  177. package/build/cjs/ocm/components/clusterWizard/constants.js.map +1 -1
  178. package/build/cjs/ocm/components/clusterWizard/disconnected/BasicStep.js +16 -22
  179. package/build/cjs/ocm/components/clusterWizard/disconnected/BasicStep.js.map +1 -1
  180. package/build/cjs/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.js +102 -0
  181. package/build/cjs/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.js.map +1 -0
  182. package/build/cjs/ocm/components/clusterWizard/disconnected/ReviewStep.js +7 -5
  183. package/build/cjs/ocm/components/clusterWizard/disconnected/ReviewStep.js.map +1 -1
  184. package/build/cjs/ocm/components/clusterWizard/wizardTransition.js +3 -0
  185. package/build/cjs/ocm/components/clusterWizard/wizardTransition.js.map +1 -1
  186. package/build/cjs/ocm/components/featureSupportLevels/index.js +0 -1
  187. package/build/cjs/ocm/components/featureSupportLevels/index.js.map +1 -1
  188. package/build/cjs/ocm/services/ClustersService.js +3 -0
  189. package/build/cjs/ocm/services/ClustersService.js.map +1 -1
  190. package/lib/cim/components/Agent/AgentsSelectionTable.tsx +1 -1
  191. package/lib/cim/components/ClusterDeployment/ClusterDeploymentWizard.tsx +91 -99
  192. package/lib/cim/components/ClusterDeployment/ClusterInstallationError.tsx +1 -1
  193. package/lib/cim/components/ClusterDeployment/clusterDetails/ACMClusterDeploymentDetailsStep.tsx +4 -3
  194. package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.tsx +6 -6
  195. package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsStep.tsx +2 -2
  196. package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.tsx +2 -3
  197. package/lib/cim/components/ClusterDeployment/components/ValidationSection.tsx +3 -2
  198. package/lib/cim/components/ClusterDeployment/constants.ts +2 -2
  199. package/lib/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.tsx +1 -1
  200. package/lib/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscoveryStep.tsx +2 -2
  201. package/lib/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.tsx +2 -2
  202. package/lib/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.tsx +11 -11
  203. package/lib/cim/components/ClusterDeployment/types.ts +2 -3
  204. package/lib/cim/components/ClusterDeployment/wizardTransition.ts +30 -19
  205. package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.tsx +4 -0
  206. package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.tsx +15 -2
  207. package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/StorageClassDropdown.tsx +70 -0
  208. package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/types.ts +10 -2
  209. package/lib/cim/components/Hypershift/hooks/useSupportedOCPVersions.ts +4 -2
  210. package/lib/cim/components/InfraEnv/EnvironmentErrors.tsx +9 -8
  211. package/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx +0 -2
  212. package/lib/cim/components/InfraEnv/InfraEnvFormPage.tsx +1 -1
  213. package/lib/cim/components/helpers/status.ts +12 -13
  214. package/lib/cim/components/helpers/toAssisted.ts +3 -13
  215. package/lib/cim/components/helpers/versions.test.ts +21 -18
  216. package/lib/cim/components/helpers/versions.ts +7 -3
  217. package/lib/cim/components/index.ts +0 -1
  218. package/lib/cim/components/modals/CimConfiguration/CimStorageMissingAlert.tsx +4 -1
  219. package/lib/cim/components/modals/MassDeleteAgentModal.tsx +3 -14
  220. package/lib/cim/hooks/index.tsx +1 -0
  221. package/lib/cim/hooks/useStorageClasses.tsx +15 -0
  222. package/lib/cim/index.ts +0 -1
  223. package/lib/common/api/assisted-service/ClustersAPI.ts +8 -0
  224. package/lib/common/api/assisted-service/NewFeatureSupportLevelsAPI.ts +9 -4
  225. package/lib/common/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx +5 -7
  226. package/lib/common/components/clusterConfiguration/DiscoveryImageConfigForm.tsx +3 -1
  227. package/lib/common/components/clusterConfiguration/DownloadIso.tsx +1 -1
  228. package/lib/common/components/clusterDetail/ConsoleModal.tsx +1 -1
  229. package/lib/common/components/clusterWizard/validationsInfoUtils.ts +16 -3
  230. package/lib/common/components/index.ts +1 -1
  231. package/lib/common/components/operators/operatorSpecs.tsx +0 -16
  232. package/lib/common/components/ui/formik/PullSecretField.tsx +5 -2
  233. package/lib/common/components/ui/formik/SelectFieldWithSearch.tsx +3 -0
  234. package/lib/common/config/docs_links.ts +5 -4
  235. package/lib/common/types/clusters.ts +1 -1
  236. package/lib/common/utils.ts +3 -0
  237. package/lib/ocm/components/AddHosts/types.ts +6 -3
  238. package/lib/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.tsx +2 -2
  239. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.tsx +2 -2
  240. package/lib/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.tsx +1 -1
  241. package/lib/ocm/components/clusterDetail/ClusterInstallationError.tsx +1 -1
  242. package/lib/ocm/components/clusterDetail/ProgressBarAlerts.tsx +1 -1
  243. package/lib/ocm/components/clusterWizard/ClusterWizardContext.tsx +5 -0
  244. package/lib/ocm/components/clusterWizard/ClusterWizardContextProvider.tsx +9 -0
  245. package/lib/ocm/components/clusterWizard/NewClusterWizard.tsx +3 -0
  246. package/lib/ocm/components/clusterWizard/constants.ts +1 -0
  247. package/lib/ocm/components/clusterWizard/disconnected/BasicStep.tsx +31 -52
  248. package/lib/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.tsx +173 -0
  249. package/lib/ocm/components/clusterWizard/disconnected/ReviewStep.tsx +9 -7
  250. package/lib/ocm/components/clusterWizard/wizardTransition.ts +4 -0
  251. package/lib/ocm/components/featureSupportLevels/index.ts +0 -1
  252. package/lib/ocm/services/ClustersService.ts +5 -0
  253. package/package.json +5 -5
  254. package/build/@types/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.d.ts +0 -9
  255. package/build/@types/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.d.ts.map +0 -1
  256. package/build/@types/cim/components/featureSupportLevels/featureStateUtils.d.ts +0 -6
  257. package/build/@types/cim/components/featureSupportLevels/featureStateUtils.d.ts.map +0 -1
  258. package/build/@types/cim/components/featureSupportLevels/index.d.ts +0 -2
  259. package/build/@types/cim/components/featureSupportLevels/index.d.ts.map +0 -1
  260. package/build/@types/cim/config/constants.d.ts +0 -16
  261. package/build/@types/cim/config/constants.d.ts.map +0 -1
  262. package/build/@types/common/components/featureSupportLevels/FeatureSupportLevelBadge.d.ts +0 -9
  263. package/build/@types/common/components/featureSupportLevels/FeatureSupportLevelBadge.d.ts.map +0 -1
  264. package/build/@types/common/components/featureSupportLevels/FeatureSupportLevelContext.d.ts +0 -22
  265. package/build/@types/common/components/featureSupportLevels/FeatureSupportLevelContext.d.ts.map +0 -1
  266. package/build/@types/common/components/featureSupportLevels/index.d.ts +0 -3
  267. package/build/@types/common/components/featureSupportLevels/index.d.ts.map +0 -1
  268. package/build/@types/common/components/featureSupportLevels/types.d.ts +0 -8
  269. package/build/@types/common/components/featureSupportLevels/types.d.ts.map +0 -1
  270. package/build/cjs/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.js +0 -82
  271. package/build/cjs/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.js.map +0 -1
  272. package/build/cjs/cim/components/featureSupportLevels/featureStateUtils.js +0 -45
  273. package/build/cjs/cim/components/featureSupportLevels/featureStateUtils.js.map +0 -1
  274. package/build/cjs/cim/components/featureSupportLevels/index.js +0 -7
  275. package/build/cjs/cim/components/featureSupportLevels/index.js.map +0 -1
  276. package/build/cjs/cim/config/constants.js +0 -272
  277. package/build/cjs/cim/config/constants.js.map +0 -1
  278. package/build/cjs/common/components/featureSupportLevels/FeatureSupportLevelBadge.js +0 -26
  279. package/build/cjs/common/components/featureSupportLevels/FeatureSupportLevelBadge.js.map +0 -1
  280. package/build/cjs/common/components/featureSupportLevels/FeatureSupportLevelContext.js +0 -21
  281. package/build/cjs/common/components/featureSupportLevels/FeatureSupportLevelContext.js.map +0 -1
  282. package/build/cjs/common/components/featureSupportLevels/index.js +0 -8
  283. package/build/cjs/common/components/featureSupportLevels/index.js.map +0 -1
  284. package/build/cjs/common/components/featureSupportLevels/types.js +0 -3
  285. package/build/cjs/common/components/featureSupportLevels/types.js.map +0 -1
  286. package/lib/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.tsx +0 -136
  287. package/lib/cim/components/featureSupportLevels/featureStateUtils.tsx +0 -61
  288. package/lib/cim/components/featureSupportLevels/index.ts +0 -1
  289. package/lib/cim/config/constants.ts +0 -285
  290. package/lib/common/components/featureSupportLevels/FeatureSupportLevelBadge.tsx +0 -37
  291. package/lib/common/components/featureSupportLevels/FeatureSupportLevelContext.tsx +0 -49
  292. package/lib/common/components/featureSupportLevels/index.ts +0 -2
  293. package/lib/common/components/featureSupportLevels/types.ts +0 -12
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import {
3
3
  FormGroup,
4
- Tooltip,
5
4
  Dropdown,
6
5
  DropdownItem,
7
6
  MenuToggle,
@@ -63,22 +62,21 @@ const ControlPlaneNodesDropdown = ({
63
62
  }
64
63
  }, [allowHighlyAvailable, selectedValue, setValue]);
65
64
 
65
+ const disabledReason = t('ai:This option is not available with the selected OpenShift version');
66
66
  const dropdownItems = options.map(({ value, label }) => {
67
67
  const isEnabled = isItemEnabled(value, allowHighlyAvailable, allowTNA);
68
68
 
69
- const disabledReason = t('ai:This option is not available with the selected OpenShift version');
70
69
  return (
71
70
  <DropdownItem
72
71
  key={value}
73
72
  id={value.toString()}
74
- isAriaDisabled={!isItemEnabled}
75
- isDisabled={!isItemEnabled}
73
+ isAriaDisabled={!isEnabled}
74
+ disabled={!isEnabled}
76
75
  selected={selectedValue === value}
77
76
  value={value}
77
+ tooltipProps={{ hidden: isEnabled, content: disabledReason, position: 'top' }}
78
78
  >
79
- <Tooltip hidden={isEnabled} content={disabledReason} position="top">
80
- <div>{label}</div>
81
- </Tooltip>
79
+ {label}
82
80
  </DropdownItem>
83
81
  );
84
82
  });
@@ -46,7 +46,9 @@ export const StaticIPInfo = ({ docVersion }: { docVersion?: string }) => {
46
46
  icon={<ExternalLinkAltIcon />}
47
47
  iconPosition="right"
48
48
  isInline
49
- onClick={() => window.open(getOCPStaticIPDocLink(docVersion), '_blank', 'noopener')}
49
+ onClick={() =>
50
+ window.open(getOCPStaticIPDocLink(docVersion), '_blank', 'noopener,noreferrer')
51
+ }
50
52
  >
51
53
  {t('ai:View documentation')}
52
54
  </Button>
@@ -45,7 +45,7 @@ const DownloadIso = ({
45
45
 
46
46
  const openCiscoIntersightHostsLink = (downloadUrl: string) => {
47
47
  updateTagsForCiscoIntersight ? updateTagsForCiscoIntersight() : '';
48
- window.open(getCiscoIntersightLink(downloadUrl, ciscoUrl), '_blank', 'noopener');
48
+ window.open(getCiscoIntersightLink(downloadUrl, ciscoUrl), '_blank', 'noopener,noreferrer');
49
49
  };
50
50
 
51
51
  return (
@@ -138,7 +138,7 @@ export const ConsoleModal: React.FC<ConsoleModalProps> = ({
138
138
  type="submit"
139
139
  key="launch"
140
140
  variant={ButtonVariant.primary}
141
- onClick={() => window.open(consoleUrl, '_blank', 'noopener')}
141
+ onClick={() => window.open(consoleUrl, '_blank', 'noopener,noreferrer')}
142
142
  isDisabled={!consoleUrl}
143
143
  >
144
144
  {t('ai:Launch OpenShift Console')}
@@ -63,13 +63,26 @@ export const findValidationFixStep = <ClusterWizardStepsType extends string>(
63
63
  wizardStepsValidationsMap: WizardStepsValidationMap<ClusterWizardStepsType>,
64
64
  ): ClusterWizardStepsType | undefined => {
65
65
  const keys = lodashKeys(wizardStepsValidationsMap) as ClusterWizardStepsType[];
66
- return keys.find((key) => {
67
- // find first matching validation-map name
66
+
67
+ // find the step based on the validationId first
68
+ const validationStep = keys.find((key) => {
68
69
  const { cluster: clusterValidationMap, host: hostValidationMap } =
69
70
  wizardStepsValidationsMap[key];
70
71
  return (
71
72
  clusterValidationMap.validationIds.includes(validationId as ClusterValidationId) ||
72
- hostValidationMap.validationIds.includes(validationId as HostValidationId) ||
73
+ hostValidationMap.validationIds.includes(validationId as HostValidationId)
74
+ );
75
+ });
76
+
77
+ if (validationStep) {
78
+ return validationStep;
79
+ }
80
+
81
+ // find the step based on the cluster/host validation group as a backup
82
+ return keys.find((key) => {
83
+ const { cluster: clusterValidationMap, host: hostValidationMap } =
84
+ wizardStepsValidationsMap[key];
85
+ return (
73
86
  (clusterGroup && clusterValidationMap.groups.includes(clusterGroup)) ||
74
87
  (hostGroup && hostValidationMap.groups.includes(hostGroup))
75
88
  );
@@ -8,4 +8,4 @@ export * from './AlertsContextProvider';
8
8
  export * from './hosts';
9
9
  export * from './fetching';
10
10
  export * from './AddHosts';
11
- export * from './featureSupportLevels';
11
+ export * from './newFeatureSupportLevels';
@@ -53,11 +53,8 @@ import {
53
53
  NODE_HEALTHCHECK_LINK,
54
54
  NODE_MAINTENANCE_LINK,
55
55
  ODF_LINK,
56
- ODF_REQUIREMENTS_LINK,
57
56
  OPENSHIFT_AI_LINK,
58
- OPENSHIFT_AI_REQUIREMENTS_LINK,
59
57
  OSC_LINK,
60
- OSC_REQUIREMENTS_LINK,
61
58
  PIPELINES_OPERATOR_LINK,
62
59
  SERVERLESS_OPERATOR_LINK,
63
60
  SERVICE_MESH_OPERATOR_LINK,
@@ -183,11 +180,6 @@ export const getOperatorSpecs = (
183
180
  title: 'OpenShift Data Foundation',
184
181
  featureId: 'ODF',
185
182
  descriptionText: DESCRIPTION_ODF,
186
- Requirements: () => (
187
- <ExternalLink href={ODF_REQUIREMENTS_LINK}>
188
- Learn more about the requirements for OpenShift Data Foundation
189
- </ExternalLink>
190
- ),
191
183
  Description: ({ searchTerm }) => (
192
184
  <>
193
185
  <HighlightedText text={DESCRIPTION_ODF} searchTerm={searchTerm} />{' '}
@@ -246,11 +238,6 @@ export const getOperatorSpecs = (
246
238
  title: 'OpenShift sandboxed containers',
247
239
  featureId: 'OSC',
248
240
  descriptionText: DESCRIPTION_OSC,
249
- Requirements: () => (
250
- <ExternalLink href={OSC_REQUIREMENTS_LINK}>
251
- Learn more about the requirements for OpenShift sandboxed containers
252
- </ExternalLink>
253
- ),
254
241
  Description: ({ searchTerm }) => (
255
242
  <>
256
243
  <HighlightedText text={DESCRIPTION_OSC} searchTerm={searchTerm} />{' '}
@@ -266,9 +253,6 @@ export const getOperatorSpecs = (
266
253
  title: 'OpenShift AI',
267
254
  featureId: 'OPENSHIFT_AI',
268
255
  descriptionText: DESCRIPTION_OPENSHIFT_AI,
269
- Requirements: () => (
270
- <ExternalLink href={OPENSHIFT_AI_REQUIREMENTS_LINK}>Learn more</ExternalLink>
271
- ),
272
256
  Description: ({ searchTerm }) => (
273
257
  <>
274
258
  <HighlightedText text={DESCRIPTION_OPENSHIFT_AI} searchTerm={searchTerm} />{' '}
@@ -65,7 +65,10 @@ const GetPullSecretHelperText: React.FC<{ isOcm: boolean }> = ({ isOcm }) => {
65
65
  );
66
66
  };
67
67
 
68
- const PullSecretField: React.FC<{ isOcm: boolean }> = ({ isOcm }) => {
68
+ const PullSecretField: React.FC<{ isOcm: boolean; isRequired?: boolean }> = ({
69
+ isOcm,
70
+ isRequired = true,
71
+ }) => {
69
72
  const { t } = useTranslation();
70
73
  return (
71
74
  <TextAreaField
@@ -75,7 +78,7 @@ const PullSecretField: React.FC<{ isOcm: boolean }> = ({ isOcm }) => {
75
78
  getErrorText={(error) => error}
76
79
  helperText={<GetPullSecretHelperText isOcm={isOcm} />}
77
80
  rows={10}
78
- isRequired
81
+ isRequired={isRequired}
79
82
  />
80
83
  );
81
84
  };
@@ -38,6 +38,7 @@ const SelectFieldWithSearch = ({
38
38
  isLoading = false,
39
39
  placeholder,
40
40
  helperText,
41
+ onClear,
41
42
  }: {
42
43
  selectOptions: (SelectOptionProps & { showDivider?: boolean })[];
43
44
  filterValue: string;
@@ -46,6 +47,7 @@ const SelectFieldWithSearch = ({
46
47
  isLoading?: boolean;
47
48
  placeholder?: string;
48
49
  helperText?: React.ReactNode;
50
+ onClear?: VoidFunction;
49
51
  } & FieldProps) => {
50
52
  const [isOpen, setIsOpen] = React.useState(false);
51
53
  const [{ value }, , { setValue }] = useField<unknown | unknown[]>(name);
@@ -185,6 +187,7 @@ const SelectFieldWithSearch = ({
185
187
 
186
188
  const onClearButtonClick = () => {
187
189
  setFilterValue('');
190
+ onClear?.();
188
191
  resetActiveAndFocusedItem();
189
192
  textInputRef?.current?.focus();
190
193
  };
@@ -118,7 +118,7 @@ export const getMceDocsLink = (ocpVersion?: string) =>
118
118
  export const getLvmsDocsLink = (ocpVersion?: string) =>
119
119
  `https://docs.redhat.com/en/documentation/openshift_container_platform/${getDocsOpenshiftVersion(
120
120
  ocpVersion,
121
- )}/html/storage/configuring-persistent-storage#overview-of-lvm-storage-functionality_ways-to-provision-local-storage`;
121
+ )}/html-single/storage/index#persistent-storage-using-lvms`;
122
122
 
123
123
  export const NODE_HEALTHCHECK_LINK =
124
124
  'https://docs.redhat.com/en/documentation/workload_availability_for_red_hat_openshift/latest/html/remediation_fencing_and_maintenance/node-health-check-operator';
@@ -150,10 +150,11 @@ export const CHANGE_ISO_PASSWORD_FILE_LINK =
150
150
  'https://raw.githubusercontent.com/openshift/assisted-service/master/docs/change-iso-password.sh';
151
151
 
152
152
  export const getCiscoIntersightLink = (downloadIsoUrl: string, ciscoUrl?: string) => {
153
+ const isoUrl = encodeURIComponent(downloadIsoUrl);
153
154
  if (ciscoUrl) {
154
- return `${ciscoUrl}?_workflow_Version=1&IsoUrl=${downloadIsoUrl}`;
155
+ return `${ciscoUrl}?_workflow_Version=1&IsoUrl=${isoUrl}`;
155
156
  }
156
- return `https://www.intersight.com/an/workflow/workflow-definitions/execute/AddServersFromISO?_workflow_Version=1&IsoUrl=${downloadIsoUrl}`;
157
+ return `https://www.intersight.com/an/workflow/workflow-definitions/execute/AddServersFromISO?_workflow_Version=1&IsoUrl=${isoUrl}`;
157
158
  };
158
159
 
159
160
  export const MTV_LINK =
@@ -228,7 +229,7 @@ export const getClusterObservabilityLink = (ocpVersion?: string) =>
228
229
  export const getLokiLink = (ocpVersion?: string) =>
229
230
  `https://docs.redhat.com/en/documentation/openshift_container_platform/${getDocsOpenshiftVersion(
230
231
  ocpVersion,
231
- )}/html/network_observability/network-observability-overview`;
232
+ )}/html/network_observability/installing-network-observability-operators#network-observability-loki-installation_network_observability`;
232
233
 
233
234
  export const getOpenShiftLoggingLink = (ocpVersion?: string) =>
234
235
  `https://docs.redhat.com/en/documentation/openshift_container_platform/${getDocsOpenshiftVersion(
@@ -73,4 +73,4 @@ export const SupportedPlatformIntegrations: SupportedPlatformType[] = [
73
73
  ];
74
74
  export const NonPlatformIntegrations: PlatformType[] = ['baremetal', 'none'];
75
75
 
76
- export type DiscoveryImageType = ImageType | 'discovery-image-ipxe';
76
+ export type DiscoveryImageType = Exclude<ImageType, 'disconnected-iso'> | 'discovery-image-ipxe';
@@ -90,6 +90,9 @@ export const stringToJSON = <T>(jsonString: string | undefined): T | undefined =
90
90
  export const downloadFile = (fileUrl?: string, dataBlob?: Blob, fileName?: string) => {
91
91
  const link = document.createElement('a');
92
92
  if (fileUrl && fileUrl !== '') {
93
+ if (!/^(https?|blob):/i.test(fileUrl)) {
94
+ return;
95
+ }
93
96
  link.setAttribute('href', fileUrl);
94
97
  }
95
98
  if (dataBlob) {
@@ -1,6 +1,9 @@
1
- import { OcmCpuArchitecture, SupportedCpuArchitecture } from '../../../common';
1
+ import {
2
+ NewFeatureSupportLevelMap,
3
+ OcmCpuArchitecture,
4
+ SupportedCpuArchitecture,
5
+ } from '../../../common';
2
6
  import { HostsNetworkConfigurationType } from '../../services';
3
- import { FeaturesSupportsLevel } from '../../../common/components/featureSupportLevels/types';
4
7
  import { Cluster } from '@openshift-assisted/types/assisted-installer-service';
5
8
 
6
9
  /* The type is reverse engineered.
@@ -50,7 +53,7 @@ export type OcmClusterType = {
50
53
  };
51
54
 
52
55
  aiCluster?: Cluster;
53
- aiSupportLevels?: FeaturesSupportsLevel;
56
+ aiSupportLevels?: { features: NewFeatureSupportLevelMap };
54
57
  };
55
58
 
56
59
  export type Day2ClusterDetailValues = {
@@ -106,7 +106,7 @@ export const OcmDiscoveryImageConfigForm = ({
106
106
  httpsProxy: httpsProxy || '',
107
107
  noProxy: noProxy || '',
108
108
  enableProxy: !!(httpProxy || httpsProxy || noProxy),
109
- imageType: imageTypeValue as ImageType,
109
+ imageType: imageTypeValue as DiscoveryImageType,
110
110
  enableCertificate: enableCertificate || false,
111
111
  trustBundle: trustBundle || '',
112
112
  };
@@ -155,7 +155,7 @@ export const OcmDiscoveryImageConfigForm = ({
155
155
  <Form>
156
156
  <DiscoveryImageTypeDropdown
157
157
  name="imageType"
158
- defaultValue={discoveryImageTypes[imageTypeValue]}
158
+ defaultValue={discoveryImageTypes[imageTypeValue as DiscoveryImageType]}
159
159
  onChange={updateDiscoveryButtonAndAlertText}
160
160
  selectedCpuArchitecture={selectedCpuArchitecture}
161
161
  isDisabled={isOracleCloudInfrastructure}
@@ -1,6 +1,6 @@
1
1
  import * as Yup from 'yup';
2
2
  import { TFunction } from 'i18next';
3
- import { CustomManifestValues, ManifestFormData } from '../data/dataTypes';
3
+ import { CustomManifestValues } from '../data/dataTypes';
4
4
  import {
5
5
  getMaxFileSizeMessage,
6
6
  validateFileSize,
@@ -62,7 +62,7 @@ const INCORRECT_FILENAME =
62
62
  const UNIQUE_FOLDER_FILENAME = 'Ensure unique file names to avoid conflicts and errors.';
63
63
 
64
64
  export const getFormViewManifestsValidationSchema = (t: TFunction) =>
65
- Yup.object<ManifestFormData>({
65
+ Yup.object({
66
66
  manifests: Yup.array<CustomManifestValues>()
67
67
  .of(
68
68
  Yup.object({
@@ -155,7 +155,7 @@ export const ExternalPlatformDropdown = ({
155
155
 
156
156
  const handleClick = (event: MouseEvent<HTMLButtonElement>, href: string): void => {
157
157
  event.stopPropagation(); // Stop event propagation here
158
- window.open(href, '_blank');
158
+ window.open(href, '_blank', 'noopener,noreferrer');
159
159
  };
160
160
 
161
161
  const { getFeatureSupportLevel, getFeatureDisabledReason } = useNewFeatureSupportLevel();
@@ -42,7 +42,7 @@ const ClusterInstallationError: React.FC<ClusterInstallationErrorProps> = ({
42
42
  Download Installation Logs
43
43
  </AlertActionLink>
44
44
  <AlertActionLink
45
- onClick={() => window.open(getReportIssueLink(), '_blank')}
45
+ onClick={() => window.open(getReportIssueLink(), '_blank', 'noopener,noreferrer')}
46
46
  id={getID('button-report-bug')}
47
47
  >
48
48
  Report a bug
@@ -157,7 +157,7 @@ export const HostsInstallationFailed = ({
157
157
  Download installation logs
158
158
  </AlertActionLink>
159
159
  <AlertActionLink
160
- onClick={() => window.open(getReportIssueLink(), '_blank')}
160
+ onClick={() => window.open(getReportIssueLink(), '_blank', 'noopener,noreferrer')}
161
161
  id={getID('button-report-bug')}
162
162
  >
163
163
  Report a bug
@@ -3,6 +3,7 @@ import { HostsNetworkConfigurationType } from '../../services';
3
3
  import { StaticIpView } from '../clusterConfiguration/staticIp/data/dataTypes';
4
4
  import { ClusterWizardStepsType } from './wizardTransition';
5
5
  import { UISettingsValues } from '../../../common';
6
+ import { Cluster, InfraEnv } from '@openshift-assisted/types/assisted-installer-service';
6
7
 
7
8
  export type ClusterWizardContextType = {
8
9
  currentStepId: ClusterWizardStepsType;
@@ -18,6 +19,10 @@ export type ClusterWizardContextType = {
18
19
  uiSettings?: UISettingsValues;
19
20
  installDisconnected: boolean;
20
21
  setInstallDisconnected: (enabled: boolean) => void;
22
+ disconnectedCluster?: Cluster;
23
+ setDisconnectedCluster: (cluster: Cluster | undefined) => void;
24
+ disconnectedInfraEnv?: InfraEnv;
25
+ setDisconnectedInfraEnv: (infraEnv: InfraEnv | undefined) => void;
21
26
  };
22
27
 
23
28
  export const ClusterWizardContext = React.createContext<ClusterWizardContextType | null>(null);
@@ -88,6 +88,8 @@ const ClusterWizardContextProvider = ({
88
88
  const [connectedWizardStepIds, setWizardStepIds] = React.useState<ClusterWizardStepsType[]>();
89
89
  const [wizardPerPage, setWizardPerPage] = React.useState(10);
90
90
  const [installDisconnected, setInstallDisconnected] = React.useState(false);
91
+ const [disconnectedCluster, setDisconnectedCluster] = React.useState<Cluster | undefined>();
92
+ const [disconnectedInfraEnv, setDisconnectedInfraEnv] = React.useState<InfraEnv | undefined>();
91
93
  const location = useLocation();
92
94
  const locationState = location.state as ClusterWizardFlowStateType | undefined;
93
95
  const {
@@ -228,6 +230,10 @@ const ClusterWizardContextProvider = ({
228
230
  connectedWizardStepIds?.length && onSetCurrentStepId(connectedWizardStepIds[0]);
229
231
  }
230
232
  },
233
+ disconnectedCluster,
234
+ setDisconnectedCluster,
235
+ disconnectedInfraEnv,
236
+ setDisconnectedInfraEnv,
231
237
  };
232
238
  }, [
233
239
  wizardStepIds,
@@ -240,6 +246,9 @@ const ClusterWizardContextProvider = ({
240
246
  updateUISettings,
241
247
  installDisconnected,
242
248
  connectedWizardStepIds,
249
+ disconnectedCluster,
250
+ disconnectedInfraEnv,
251
+ setDisconnectedInfraEnv,
243
252
  ]);
244
253
 
245
254
  if (!contextValue) {
@@ -4,6 +4,7 @@ import ClusterDetails from './ClusterDetails';
4
4
  import { useClusterWizardContext } from './ClusterWizardContext';
5
5
  import ReviewStep from './disconnected/ReviewStep';
6
6
  import BasicStep from './disconnected/BasicStep';
7
+ import OptionalConfigurationsStep from './disconnected/OptionalConfigurationsStep';
7
8
  import { ClusterWizardStepsType } from './wizardTransition';
8
9
  import { useInfraEnv } from '../../hooks';
9
10
  import { CpuArchitecture } from '../../../common/types';
@@ -13,6 +14,8 @@ const getCurrentStep = (currentStepId: ClusterWizardStepsType, infraEnv?: InfraE
13
14
  switch (currentStepId) {
14
15
  case 'disconnected-review':
15
16
  return <ReviewStep />;
17
+ case 'disconnected-optional-configurations':
18
+ return <OptionalConfigurationsStep />;
16
19
  case 'disconnected-basic':
17
20
  return <BasicStep />;
18
21
  default:
@@ -14,6 +14,7 @@ export const wizardStepNames: { [key in ClusterWizardStepsType]: string } = {
14
14
  'credentials-download': 'Download credentials',
15
15
  'disconnected-review': 'Review and download ISO',
16
16
  'disconnected-basic': 'Basic information',
17
+ 'disconnected-optional-configurations': 'Optional configurations',
17
18
  };
18
19
 
19
20
  export const defaultWizardSteps: ClusterWizardStepsType[] = [
@@ -1,68 +1,47 @@
1
1
  import * as React from 'react';
2
- import {
3
- ClusterWizardStep,
4
- TechnologyPreview,
5
- ExternalLink,
6
- OCP_RELEASES_PAGE,
7
- StaticTextField,
8
- useTranslation,
9
- } from '../../../../common';
2
+ import { ClusterWizardStep, TechnologyPreview, StaticTextField } from '../../../../common';
10
3
  import { Flex, Grid, GridItem, Form, Content } from '@patternfly/react-core';
11
- import OcmOpenShiftVersion from '../../clusterConfiguration/OcmOpenShiftVersion';
12
4
  import { useClusterWizardContext } from '../ClusterWizardContext';
13
5
  import ClusterWizardFooter from '../ClusterWizardFooter';
14
6
  import ClusterWizardNavigation from '../ClusterWizardNavigation';
15
7
  import { WithErrorBoundary } from '../../../../common/components/ErrorHandling/WithErrorBoundary';
16
8
  import InstallDisconnectedSwitch from './InstallDisconnectedSwitch';
17
- import { Formik } from 'formik';
9
+
10
+ export const DISCONNECTED_OPENSHIFT_VERSION = '4.21';
18
11
 
19
12
  const BasicStep = () => {
20
- const { t } = useTranslation();
21
13
  const { moveNext } = useClusterWizardContext();
22
14
 
23
15
  return (
24
- <Formik
25
- initialValues={{}}
26
- onSubmit={() => {
27
- // nothing to do
28
- }}
16
+ <ClusterWizardStep
17
+ navigation={<ClusterWizardNavigation />}
18
+ footer={<ClusterWizardFooter onNext={moveNext} />}
29
19
  >
30
- <ClusterWizardStep
31
- navigation={<ClusterWizardNavigation />}
32
- footer={<ClusterWizardFooter onNext={moveNext} />}
33
- >
34
- <WithErrorBoundary title="Failed to load Basic step">
35
- <Grid hasGutter>
36
- <GridItem>
37
- <Content component="h2">Basic information</Content>
38
- </GridItem>
39
- <GridItem>
40
- <Flex alignItems={{ default: 'alignItemsCenter' }} gap={{ default: 'gapSm' }}>
41
- <TechnologyPreview />
42
- <InstallDisconnectedSwitch />
43
- <span>
44
- {t("ai:I'm installing on a disconnected/air-gapped/secured environment")}
45
- </span>
46
- </Flex>
47
- </GridItem>
48
- <GridItem>
49
- <Form id="wizard-cluster-basic-info__form">
50
- <OcmOpenShiftVersion openshiftVersion="4.20" withPreviewText withMultiText>
51
- <ExternalLink href={`${window.location.origin}/${OCP_RELEASES_PAGE}`}>
52
- <span data-ouia-id="openshift-releases-link">
53
- {t('ai:Learn more about OpenShift releases')}
54
- </span>
55
- </ExternalLink>
56
- </OcmOpenShiftVersion>
57
- <StaticTextField name="cpuArchitecture" label="CPU architecture" isRequired>
58
- x86_64
59
- </StaticTextField>
60
- </Form>
61
- </GridItem>
62
- </Grid>
63
- </WithErrorBoundary>
64
- </ClusterWizardStep>
65
- </Formik>
20
+ <WithErrorBoundary title="Failed to load Basic step">
21
+ <Grid hasGutter>
22
+ <GridItem>
23
+ <Content component="h2">Basic information</Content>
24
+ </GridItem>
25
+ <GridItem>
26
+ <Flex alignItems={{ default: 'alignItemsCenter' }} gap={{ default: 'gapSm' }}>
27
+ <TechnologyPreview />
28
+ <InstallDisconnectedSwitch />
29
+ <span>I'm installing on a disconnected/air-gapped/secured environment</span>
30
+ </Flex>
31
+ </GridItem>
32
+ <GridItem>
33
+ <Form id="wizard-cluster-basic-info__form">
34
+ <StaticTextField name="openshiftVersion" label="OpenShift version">
35
+ {DISCONNECTED_OPENSHIFT_VERSION}
36
+ </StaticTextField>
37
+ <StaticTextField name="cpuArchitecture" label="CPU architecture">
38
+ x86_64
39
+ </StaticTextField>
40
+ </Form>
41
+ </GridItem>
42
+ </Grid>
43
+ </WithErrorBoundary>
44
+ </ClusterWizardStep>
66
45
  );
67
46
  };
68
47