@openshift-assisted/ui-lib 2.46.1 → 2.46.3

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 (295) hide show
  1. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.d.ts.map +1 -1
  2. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.d.ts.map +1 -1
  3. package/build/@types/cim/components/InfraEnv/EnvironmentDetails.d.ts.map +1 -1
  4. package/build/@types/cim/components/common/ResourceAlerts.d.ts.map +1 -1
  5. package/build/@types/common/components/clusterConfiguration/DiscoveryImageConfigForm.d.ts.map +1 -1
  6. package/build/@types/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.d.ts.map +1 -1
  7. package/build/@types/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionMode.d.ts.map +1 -1
  8. package/build/@types/common/components/clusterConfiguration/DownloadIpxeScript.d.ts.map +1 -1
  9. package/build/@types/common/components/clusterConfiguration/DownloadIso.d.ts.map +1 -1
  10. package/build/@types/common/components/clusterConfiguration/DownloadIsoModal.d.ts.map +1 -1
  11. package/build/@types/common/components/clusterDetail/ConsoleModal.d.ts.map +1 -1
  12. package/build/@types/common/components/clusterDetail/FinalizingProgress.d.ts.map +1 -1
  13. package/build/@types/common/components/clusterWizard/ClusterWizardStepHeader.d.ts.map +1 -1
  14. package/build/@types/common/components/hosts/AITableMemo.d.ts.map +1 -1
  15. package/build/@types/common/components/hosts/AdditionalNTPSourcesDialog.d.ts.map +1 -1
  16. package/build/@types/common/components/hosts/EditHostForm.d.ts.map +1 -1
  17. package/build/@types/common/components/hosts/EditHostModal.d.ts.map +1 -1
  18. package/build/@types/common/components/hosts/HostRequirements.d.ts.map +1 -1
  19. package/build/@types/common/components/hosts/MassChangeHostnameModal.d.ts.map +1 -1
  20. package/build/@types/common/components/hosts/MassDeleteHostModal.d.ts.map +1 -1
  21. package/build/@types/common/components/storage/DisksTable.d.ts.map +1 -1
  22. package/build/@types/common/components/storage/StorageUtils.d.ts.map +1 -1
  23. package/build/@types/common/components/ui/ConfirmationModal.d.ts +2 -3
  24. package/build/@types/common/components/ui/ConfirmationModal.d.ts.map +1 -1
  25. package/build/@types/common/components/ui/OpenShiftVersionModal.d.ts.map +1 -1
  26. package/build/@types/common/components/ui/SectionTitle.d.ts.map +1 -1
  27. package/build/@types/common/components/ui/StaticTextField.d.ts.map +1 -1
  28. package/build/@types/common/components/ui/eventsModal.d.ts.map +1 -1
  29. package/build/@types/common/components/ui/formik/AlertFormikError.d.ts.map +1 -1
  30. package/build/@types/common/components/ui/formik/RichInputField.d.ts.map +1 -1
  31. package/build/@types/common/components/ui/formik/TextAreaField.d.ts.map +1 -1
  32. package/build/@types/ocm/components/AddHosts/InventoryAddHost.d.ts.map +1 -1
  33. package/build/@types/ocm/components/AddHosts/day2Wizard/Day2StaticIpHostConfigurations.d.ts.map +1 -1
  34. package/build/@types/ocm/components/AddHosts/day2Wizard/Day2Wizard.d.ts.map +1 -1
  35. package/build/@types/ocm/components/clusterConfiguration/DiscoveryImageModal.d.ts.map +1 -1
  36. package/build/@types/ocm/components/clusterConfiguration/HostInventory.d.ts.map +1 -1
  37. package/build/@types/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.d.ts.map +1 -1
  38. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/DeleteCustomManifestModal.d.ts.map +1 -1
  39. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.d.ts.map +1 -1
  40. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.d.ts.map +1 -1
  41. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.d.ts +2 -1
  42. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.d.ts.map +1 -1
  43. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/CollapsedHost.d.ts.map +1 -1
  44. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/BondsConfirmationModal.d.ts.map +1 -1
  45. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHostsFields.d.ts.map +1 -1
  46. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/StaticIpPage.d.ts.map +1 -1
  47. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlViewFields.d.ts.map +1 -1
  48. package/build/@types/ocm/components/clusterDetail/CancelInstallationModal.d.ts.map +1 -1
  49. package/build/@types/ocm/components/clusterDetail/ClusterDetail.d.ts.map +1 -1
  50. package/build/@types/ocm/components/clusterDetail/ClusterDetailStatusMessages.d.ts.map +1 -1
  51. package/build/@types/ocm/components/clusterDetail/ClusterInstallationError.d.ts.map +1 -1
  52. package/build/@types/ocm/components/clusterDetail/ClusterPollingErrorModal.d.ts.map +1 -1
  53. package/build/@types/ocm/components/clusterDetail/ClusterProperties.d.ts.map +1 -1
  54. package/build/@types/ocm/components/clusterDetail/ClusterUpdateErrorModal.d.ts.map +1 -1
  55. package/build/@types/ocm/components/clusterDetail/OpenShiftVersionDetail.d.ts.map +1 -1
  56. package/build/@types/ocm/components/clusterDetail/ProgressBarAlerts.d.ts.map +1 -1
  57. package/build/@types/ocm/components/clusterDetail/ResetClusterModal.d.ts.map +1 -1
  58. package/build/@types/ocm/components/clusterWizard/ClusterDetails.d.ts.map +1 -1
  59. package/build/@types/ocm/components/clusterWizard/disconnected/BasicStep.d.ts.map +1 -1
  60. package/build/@types/ocm/components/clusterWizard/disconnected/ReviewStep.d.ts.map +1 -1
  61. package/build/@types/ocm/components/clusters/ClusterPage.d.ts.map +1 -1
  62. package/build/@types/ocm/components/clusters/Clusters.d.ts.map +1 -1
  63. package/build/@types/ocm/components/clusters/DeleteClusterModal.d.ts.map +1 -1
  64. package/build/@types/ocm/components/hosts/DeleteHostModal.d.ts.map +1 -1
  65. package/build/@types/ocm/components/hosts/HostRequirementsContent.d.ts.map +1 -1
  66. package/build/@types/ocm/components/hosts/ResetHostModal.d.ts.map +1 -1
  67. package/build/@types/ocm/components/hosts/UpdateDay2ApiVipForm.d.ts.map +1 -1
  68. package/build/@types/ocm/components/hosts/UpdateDay2ApiVipModal.d.ts.map +1 -1
  69. package/build/@types/ocm/components/ui/InfoLinkWithModal.d.ts +1 -2
  70. package/build/@types/ocm/components/ui/InfoLinkWithModal.d.ts.map +1 -1
  71. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.js +2 -3
  72. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.js.map +1 -1
  73. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.js +4 -6
  74. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.js.map +1 -1
  75. package/build/cjs/cim/components/InfraEnv/EnvironmentDetails.js +1 -2
  76. package/build/cjs/cim/components/InfraEnv/EnvironmentDetails.js.map +1 -1
  77. package/build/cjs/cim/components/common/ResourceAlerts.js +15 -16
  78. package/build/cjs/cim/components/common/ResourceAlerts.js.map +1 -1
  79. package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js +2 -3
  80. package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js.map +1 -1
  81. package/build/cjs/common/components/clusterConfiguration/DiscoveryInstructions.js +1 -1
  82. package/build/cjs/common/components/clusterConfiguration/DiscoveryInstructions.js.map +1 -1
  83. package/build/cjs/common/components/clusterConfiguration/DiscoveryIpxeInstructions.js +1 -1
  84. package/build/cjs/common/components/clusterConfiguration/DiscoveryIpxeInstructions.js.map +1 -1
  85. package/build/cjs/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.js +7 -6
  86. package/build/cjs/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.js.map +1 -1
  87. package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionMode.js +1 -2
  88. package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionMode.js.map +1 -1
  89. package/build/cjs/common/components/clusterConfiguration/DownloadIpxeScript.js +2 -3
  90. package/build/cjs/common/components/clusterConfiguration/DownloadIpxeScript.js.map +1 -1
  91. package/build/cjs/common/components/clusterConfiguration/DownloadIso.js +4 -4
  92. package/build/cjs/common/components/clusterConfiguration/DownloadIso.js.map +1 -1
  93. package/build/cjs/common/components/clusterConfiguration/DownloadIsoModal.js +3 -2
  94. package/build/cjs/common/components/clusterConfiguration/DownloadIsoModal.js.map +1 -1
  95. package/build/cjs/common/components/clusterDetail/ConsoleModal.js +5 -3
  96. package/build/cjs/common/components/clusterDetail/ConsoleModal.js.map +1 -1
  97. package/build/cjs/common/components/clusterDetail/FinalizingProgress.js +1 -2
  98. package/build/cjs/common/components/clusterDetail/FinalizingProgress.js.map +1 -1
  99. package/build/cjs/common/components/clusterWizard/ClusterWizardStepHeader.js +1 -2
  100. package/build/cjs/common/components/clusterWizard/ClusterWizardStepHeader.js.map +1 -1
  101. package/build/cjs/common/components/clusterWizard/networkingSteps/UserManagedNetworkingTextContent.js +1 -1
  102. package/build/cjs/common/components/clusterWizard/networkingSteps/UserManagedNetworkingTextContent.js.map +1 -1
  103. package/build/cjs/common/components/hosts/AITableMemo.js +2 -1
  104. package/build/cjs/common/components/hosts/AITableMemo.js.map +1 -1
  105. package/build/cjs/common/components/hosts/AdditionalNTPSourcesDialog.js +4 -4
  106. package/build/cjs/common/components/hosts/AdditionalNTPSourcesDialog.js.map +1 -1
  107. package/build/cjs/common/components/hosts/EditHostForm.js +2 -3
  108. package/build/cjs/common/components/hosts/EditHostForm.js.map +1 -1
  109. package/build/cjs/common/components/hosts/EditHostModal.js +3 -2
  110. package/build/cjs/common/components/hosts/EditHostModal.js.map +1 -1
  111. package/build/cjs/common/components/hosts/HostRequirements.js +1 -2
  112. package/build/cjs/common/components/hosts/HostRequirements.js.map +1 -1
  113. package/build/cjs/common/components/hosts/HostStatus.js +2 -2
  114. package/build/cjs/common/components/hosts/HostStatus.js.map +1 -1
  115. package/build/cjs/common/components/hosts/MassChangeHostnameModal.js +4 -4
  116. package/build/cjs/common/components/hosts/MassChangeHostnameModal.js.map +1 -1
  117. package/build/cjs/common/components/hosts/MassDeleteHostModal.js +4 -4
  118. package/build/cjs/common/components/hosts/MassDeleteHostModal.js.map +1 -1
  119. package/build/cjs/common/components/storage/DisksTable.js +1 -2
  120. package/build/cjs/common/components/storage/DisksTable.js.map +1 -1
  121. package/build/cjs/common/components/storage/StorageUtils.js +1 -2
  122. package/build/cjs/common/components/storage/StorageUtils.js.map +1 -1
  123. package/build/cjs/common/components/ui/ConfirmationModal.js +5 -4
  124. package/build/cjs/common/components/ui/ConfirmationModal.js.map +1 -1
  125. package/build/cjs/common/components/ui/OpenShiftVersionModal.js +7 -6
  126. package/build/cjs/common/components/ui/OpenShiftVersionModal.js.map +1 -1
  127. package/build/cjs/common/components/ui/SectionTitle.js +1 -2
  128. package/build/cjs/common/components/ui/SectionTitle.js.map +1 -1
  129. package/build/cjs/common/components/ui/StaticTextField.js +1 -2
  130. package/build/cjs/common/components/ui/StaticTextField.js.map +1 -1
  131. package/build/cjs/common/components/ui/eventsModal.js +9 -9
  132. package/build/cjs/common/components/ui/eventsModal.js.map +1 -1
  133. package/build/cjs/common/components/ui/formik/AlertFormikError.js +1 -2
  134. package/build/cjs/common/components/ui/formik/AlertFormikError.js.map +1 -1
  135. package/build/cjs/common/components/ui/formik/RichInputField.css +0 -7
  136. package/build/cjs/common/components/ui/formik/RichInputField.js +1 -1
  137. package/build/cjs/common/components/ui/formik/RichInputField.js.map +1 -1
  138. package/build/cjs/common/components/ui/formik/TextAreaField.js +2 -1
  139. package/build/cjs/common/components/ui/formik/TextAreaField.js.map +1 -1
  140. package/build/cjs/ocm/components/AddHosts/InventoryAddHost.js +3 -4
  141. package/build/cjs/ocm/components/AddHosts/InventoryAddHost.js.map +1 -1
  142. package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2StaticIpHostConfigurations.js +1 -2
  143. package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2StaticIpHostConfigurations.js.map +1 -1
  144. package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2Wizard.js +1 -2
  145. package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2Wizard.js.map +1 -1
  146. package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageModal.js +2 -2
  147. package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageModal.js.map +1 -1
  148. package/build/cjs/ocm/components/clusterConfiguration/HostInventory.js +3 -5
  149. package/build/cjs/ocm/components/clusterConfiguration/HostInventory.js.map +1 -1
  150. package/build/cjs/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.js +11 -9
  151. package/build/cjs/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.js.map +1 -1
  152. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/DeleteCustomManifestModal.js +7 -7
  153. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/DeleteCustomManifestModal.js.map +1 -1
  154. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AdvancedNetworkFields.js +5 -5
  155. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AdvancedNetworkFields.js.map +1 -1
  156. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.js +2 -2
  157. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.js.map +1 -1
  158. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js +1 -2
  159. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js.map +1 -1
  160. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.js +3 -2
  161. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.js.map +1 -1
  162. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/CollapsedHost.js +1 -2
  163. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/CollapsedHost.js.map +1 -1
  164. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/BondsConfirmationModal.js +4 -4
  165. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/BondsConfirmationModal.js.map +1 -1
  166. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHostsFields.js +1 -2
  167. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHostsFields.js.map +1 -1
  168. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpPage.js +1 -1
  169. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpPage.js.map +1 -1
  170. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlViewFields.js +6 -7
  171. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlViewFields.js.map +1 -1
  172. package/build/cjs/ocm/components/clusterDetail/CancelInstallationModal.js +6 -6
  173. package/build/cjs/ocm/components/clusterDetail/CancelInstallationModal.js.map +1 -1
  174. package/build/cjs/ocm/components/clusterDetail/ClusterDetail.js +1 -2
  175. package/build/cjs/ocm/components/clusterDetail/ClusterDetail.js.map +1 -1
  176. package/build/cjs/ocm/components/clusterDetail/ClusterDetailStatusMessages.js +17 -14
  177. package/build/cjs/ocm/components/clusterDetail/ClusterDetailStatusMessages.js.map +1 -1
  178. package/build/cjs/ocm/components/clusterDetail/ClusterInstallationError.js +4 -5
  179. package/build/cjs/ocm/components/clusterDetail/ClusterInstallationError.js.map +1 -1
  180. package/build/cjs/ocm/components/clusterDetail/ClusterPollingErrorModal.js +5 -4
  181. package/build/cjs/ocm/components/clusterDetail/ClusterPollingErrorModal.js.map +1 -1
  182. package/build/cjs/ocm/components/clusterDetail/ClusterProperties.js +1 -2
  183. package/build/cjs/ocm/components/clusterDetail/ClusterProperties.js.map +1 -1
  184. package/build/cjs/ocm/components/clusterDetail/ClusterUpdateErrorModal.js +5 -4
  185. package/build/cjs/ocm/components/clusterDetail/ClusterUpdateErrorModal.js.map +1 -1
  186. package/build/cjs/ocm/components/clusterDetail/OpenShiftVersionDetail.js +1 -2
  187. package/build/cjs/ocm/components/clusterDetail/OpenShiftVersionDetail.js.map +1 -1
  188. package/build/cjs/ocm/components/clusterDetail/ProgressBarAlerts.js +4 -5
  189. package/build/cjs/ocm/components/clusterDetail/ProgressBarAlerts.js.map +1 -1
  190. package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js +5 -3
  191. package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js.map +1 -1
  192. package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js +8 -1
  193. package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js.map +1 -1
  194. package/build/cjs/ocm/components/clusterWizard/disconnected/BasicStep.js +1 -2
  195. package/build/cjs/ocm/components/clusterWizard/disconnected/BasicStep.js.map +1 -1
  196. package/build/cjs/ocm/components/clusterWizard/disconnected/ReviewStep.js +1 -2
  197. package/build/cjs/ocm/components/clusterWizard/disconnected/ReviewStep.js.map +1 -1
  198. package/build/cjs/ocm/components/clusters/AssistedInstallerHeader.js +1 -1
  199. package/build/cjs/ocm/components/clusters/AssistedInstallerHeader.js.map +1 -1
  200. package/build/cjs/ocm/components/clusters/ClusterPage.js +1 -2
  201. package/build/cjs/ocm/components/clusters/ClusterPage.js.map +1 -1
  202. package/build/cjs/ocm/components/clusters/Clusters.js +1 -2
  203. package/build/cjs/ocm/components/clusters/Clusters.js.map +1 -1
  204. package/build/cjs/ocm/components/clusters/DeleteClusterModal.js +8 -7
  205. package/build/cjs/ocm/components/clusters/DeleteClusterModal.js.map +1 -1
  206. package/build/cjs/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.js +1 -1
  207. package/build/cjs/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.js.map +1 -1
  208. package/build/cjs/ocm/components/hosts/DeleteHostModal.js +5 -4
  209. package/build/cjs/ocm/components/hosts/DeleteHostModal.js.map +1 -1
  210. package/build/cjs/ocm/components/hosts/HostRequirementsContent.js +1 -2
  211. package/build/cjs/ocm/components/hosts/HostRequirementsContent.js.map +1 -1
  212. package/build/cjs/ocm/components/hosts/ResetHostModal.js +8 -7
  213. package/build/cjs/ocm/components/hosts/ResetHostModal.js.map +1 -1
  214. package/build/cjs/ocm/components/hosts/UpdateDay2ApiVipForm.js +2 -3
  215. package/build/cjs/ocm/components/hosts/UpdateDay2ApiVipForm.js.map +1 -1
  216. package/build/cjs/ocm/components/hosts/UpdateDay2ApiVipModal.js +3 -2
  217. package/build/cjs/ocm/components/hosts/UpdateDay2ApiVipModal.js.map +1 -1
  218. package/build/cjs/ocm/components/ui/InfoLinkWithModal.js +5 -4
  219. package/build/cjs/ocm/components/ui/InfoLinkWithModal.js.map +1 -1
  220. package/lib/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.tsx +3 -5
  221. package/lib/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.tsx +8 -12
  222. package/lib/cim/components/InfraEnv/EnvironmentDetails.tsx +1 -5
  223. package/lib/cim/components/common/ResourceAlerts.tsx +26 -28
  224. package/lib/common/components/clusterConfiguration/DiscoveryImageConfigForm.tsx +14 -6
  225. package/lib/common/components/clusterConfiguration/DiscoveryInstructions.tsx +2 -2
  226. package/lib/common/components/clusterConfiguration/DiscoveryIpxeInstructions.tsx +2 -2
  227. package/lib/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.tsx +15 -12
  228. package/lib/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionMode.tsx +1 -3
  229. package/lib/common/components/clusterConfiguration/DownloadIpxeScript.tsx +6 -5
  230. package/lib/common/components/clusterConfiguration/DownloadIso.tsx +8 -5
  231. package/lib/common/components/clusterConfiguration/DownloadIsoModal.tsx +2 -3
  232. package/lib/common/components/clusterDetail/ConsoleModal.tsx +17 -10
  233. package/lib/common/components/clusterDetail/FinalizingProgress.tsx +4 -6
  234. package/lib/common/components/clusterWizard/ClusterWizardStepHeader.tsx +1 -3
  235. package/lib/common/components/clusterWizard/networkingSteps/UserManagedNetworkingTextContent.tsx +2 -2
  236. package/lib/common/components/hosts/AITableMemo.tsx +1 -0
  237. package/lib/common/components/hosts/AdditionalNTPSourcesDialog.tsx +11 -10
  238. package/lib/common/components/hosts/EditHostForm.tsx +6 -5
  239. package/lib/common/components/hosts/EditHostModal.tsx +2 -3
  240. package/lib/common/components/hosts/HostRequirements.tsx +2 -4
  241. package/lib/common/components/hosts/HostStatus.tsx +5 -5
  242. package/lib/common/components/hosts/MassChangeHostnameModal.tsx +9 -7
  243. package/lib/common/components/hosts/MassDeleteHostModal.tsx +15 -9
  244. package/lib/common/components/storage/DisksTable.tsx +1 -3
  245. package/lib/common/components/storage/StorageUtils.tsx +1 -3
  246. package/lib/common/components/ui/ConfirmationModal.tsx +18 -15
  247. package/lib/common/components/ui/OpenShiftVersionModal.tsx +32 -22
  248. package/lib/common/components/ui/SectionTitle.tsx +2 -4
  249. package/lib/common/components/ui/StaticTextField.tsx +2 -4
  250. package/lib/common/components/ui/eventsModal.tsx +29 -20
  251. package/lib/common/components/ui/formik/AlertFormikError.tsx +8 -10
  252. package/lib/common/components/ui/formik/RichInputField.css +0 -7
  253. package/lib/common/components/ui/formik/RichInputField.tsx +2 -1
  254. package/lib/common/components/ui/formik/TextAreaField.tsx +13 -4
  255. package/lib/ocm/components/AddHosts/InventoryAddHost.tsx +4 -6
  256. package/lib/ocm/components/AddHosts/day2Wizard/Day2StaticIpHostConfigurations.tsx +1 -5
  257. package/lib/ocm/components/AddHosts/day2Wizard/Day2Wizard.tsx +2 -4
  258. package/lib/ocm/components/clusterConfiguration/DiscoveryImageModal.tsx +6 -7
  259. package/lib/ocm/components/clusterConfiguration/HostInventory.tsx +7 -11
  260. package/lib/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.tsx +43 -25
  261. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/DeleteCustomManifestModal.tsx +22 -16
  262. package/lib/ocm/components/clusterConfiguration/networkConfiguration/AdvancedNetworkFields.tsx +5 -5
  263. package/lib/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.tsx +2 -0
  264. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.tsx +1 -3
  265. package/lib/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.tsx +14 -3
  266. package/lib/ocm/components/clusterConfiguration/staticIp/components/CollapsedHost.tsx +1 -3
  267. package/lib/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/BondsConfirmationModal.tsx +15 -9
  268. package/lib/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHostsFields.tsx +1 -3
  269. package/lib/ocm/components/clusterConfiguration/staticIp/components/StaticIpPage.tsx +10 -3
  270. package/lib/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlViewFields.tsx +6 -8
  271. package/lib/ocm/components/clusterDetail/CancelInstallationModal.tsx +19 -17
  272. package/lib/ocm/components/clusterDetail/ClusterDetail.tsx +1 -3
  273. package/lib/ocm/components/clusterDetail/ClusterDetailStatusMessages.tsx +34 -26
  274. package/lib/ocm/components/clusterDetail/ClusterInstallationError.tsx +5 -7
  275. package/lib/ocm/components/clusterDetail/ClusterPollingErrorModal.tsx +15 -13
  276. package/lib/ocm/components/clusterDetail/ClusterProperties.tsx +1 -3
  277. package/lib/ocm/components/clusterDetail/ClusterUpdateErrorModal.tsx +17 -13
  278. package/lib/ocm/components/clusterDetail/OpenShiftVersionDetail.tsx +2 -4
  279. package/lib/ocm/components/clusterDetail/ProgressBarAlerts.tsx +5 -7
  280. package/lib/ocm/components/clusterDetail/ResetClusterModal.tsx +16 -12
  281. package/lib/ocm/components/clusterWizard/ClusterDetails.tsx +10 -1
  282. package/lib/ocm/components/clusterWizard/disconnected/BasicStep.tsx +1 -3
  283. package/lib/ocm/components/clusterWizard/disconnected/ReviewStep.tsx +1 -3
  284. package/lib/ocm/components/clusters/AssistedInstallerHeader.tsx +2 -2
  285. package/lib/ocm/components/clusters/ClusterPage.tsx +1 -3
  286. package/lib/ocm/components/clusters/Clusters.tsx +1 -3
  287. package/lib/ocm/components/clusters/DeleteClusterModal.tsx +16 -11
  288. package/lib/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.tsx +2 -2
  289. package/lib/ocm/components/hosts/DeleteHostModal.tsx +18 -9
  290. package/lib/ocm/components/hosts/HostRequirementsContent.tsx +3 -5
  291. package/lib/ocm/components/hosts/ResetHostModal.tsx +16 -13
  292. package/lib/ocm/components/hosts/UpdateDay2ApiVipForm.tsx +12 -6
  293. package/lib/ocm/components/hosts/UpdateDay2ApiVipModal.tsx +2 -3
  294. package/lib/ocm/components/ui/InfoLinkWithModal.tsx +16 -13
  295. package/package.json +3 -3
@@ -1,7 +1,15 @@
1
1
  import React from 'react';
2
2
  import { useDispatch } from 'react-redux';
3
- import { Button, ButtonVariant, Content } from '@patternfly/react-core';
4
- import { Modal, ModalVariant } from '@patternfly/react-core/deprecated';
3
+ import {
4
+ Button,
5
+ ButtonVariant,
6
+ Content,
7
+ Modal,
8
+ ModalBody,
9
+ ModalFooter,
10
+ ModalHeader,
11
+ ModalVariant,
12
+ } from '@patternfly/react-core';
5
13
  import { getApiErrorMessage, handleApiError } from '../../../common/api';
6
14
  import { updateCluster } from '../../store/slices/current-cluster/slice';
7
15
  import { useModalDialogsContext } from '../hosts/ModalDialogsContext';
@@ -43,20 +51,17 @@ const CancelInstallationModal: React.FC = () => {
43
51
  return <ErrorState title={error.title} content={error.message} />;
44
52
  }
45
53
  return (
46
- <Content>
47
- <Content component="p">
48
- This will abort cluster installation. Are you sure you want to proceed?
49
- </Content>
54
+ <Content component="p">
55
+ This will abort cluster installation. Are you sure you want to proceed?
50
56
  </Content>
51
57
  );
52
58
  };
53
59
 
54
60
  return (
55
- <Modal
56
- title="Abort Cluster Installation"
57
- isOpen={isOpen}
58
- variant={ModalVariant.small}
59
- actions={[
61
+ <Modal isOpen={isOpen} variant={ModalVariant.small} onClose={onClose}>
62
+ <ModalHeader title="Abort Cluster Installation" />
63
+ <ModalBody>{getModalContent()}</ModalBody>
64
+ <ModalFooter>
60
65
  <Button
61
66
  key="submit"
62
67
  variant={ButtonVariant.danger}
@@ -66,7 +71,7 @@ const CancelInstallationModal: React.FC = () => {
66
71
  isDisabled={isSubmitting}
67
72
  >
68
73
  Abort installation
69
- </Button>,
74
+ </Button>
70
75
  <Button
71
76
  key="cancel"
72
77
  variant={ButtonVariant.link}
@@ -74,11 +79,8 @@ const CancelInstallationModal: React.FC = () => {
74
79
  isDisabled={isSubmitting}
75
80
  >
76
81
  Cancel
77
- </Button>,
78
- ]}
79
- onClose={onClose}
80
- >
81
- {getModalContent()}
82
+ </Button>
83
+ </ModalFooter>
82
84
  </Modal>
83
85
  );
84
86
  };
@@ -54,9 +54,7 @@ const ClusterDetail: React.FC<ClusterDetailProps> = ({ cluster }) => {
54
54
  <StackItem>
55
55
  <Grid hasGutter>
56
56
  <GridItem>
57
- <Content>
58
- <Content component="h2">Installation progress</Content>
59
- </Content>
57
+ <Content component="h2">Installation progress</Content>
60
58
  </GridItem>
61
59
  <GridItem span={6}>
62
60
  <ClusterProgress
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Alert } from '@patternfly/react-core';
2
+ import { Alert, Stack, StackItem } from '@patternfly/react-core';
3
3
  import {
4
4
  REDHAT_CONSOLE_OPENSHIFT,
5
5
  canDownloadKubeconfig,
@@ -43,41 +43,49 @@ const ClusterDetailStatusMessages = ({
43
43
  : '';
44
44
 
45
45
  return (
46
- <>
46
+ <Stack hasGutter>
47
47
  {!isSingleClusterFeatureEnabled &&
48
48
  typeof inactiveDeletionHours === 'number' &&
49
49
  canDownloadKubeconfig(cluster.status) && (
50
+ <StackItem>
51
+ <Alert
52
+ variant="info"
53
+ isInline
54
+ title={
55
+ dateDifference > 0
56
+ ? `Download and save your kubeconfig file in a safe place. This file will be automatically ` +
57
+ `deleted from Assisted Installer's service in ${dateDifference} days.`
58
+ : `Kubeconfig file was automatically deleted ${inactiveDeletionDays} days after installation.`
59
+ }
60
+ />
61
+ </StackItem>
62
+ )}
63
+ {showAddHostsAlert && (
64
+ <StackItem>
50
65
  <Alert
51
66
  variant="info"
52
67
  isInline
68
+ data-testid="alert-add-hosts"
53
69
  title={
54
- dateDifference > 0
55
- ? `Download and save your kubeconfig file in a safe place. This file will be automatically ` +
56
- `deleted from Assisted Installer's service in ${dateDifference} days.`
57
- : `Kubeconfig file was automatically deleted ${inactiveDeletionDays} days after installation.`
70
+ <p>
71
+ {isClusterPlatformTypeVM(cluster)
72
+ ? 'Add new hosts by using the platform auto-scale feature or manually generating a new Discovery ISO under the "Add hosts" tab on '
73
+ : 'Add new hosts by generating a new Discovery ISO under your cluster\'s "Add hosts" tab on '}
74
+ <a href={REDHAT_CONSOLE_OPENSHIFT} target="_blank" rel="noopener noreferrer">
75
+ console.redhat.com/openshift <ExternalLinkAltIcon />
76
+ </a>
77
+ .
78
+ </p>
58
79
  }
59
80
  />
60
- )}
61
- {showAddHostsAlert && (
62
- <Alert
63
- variant="info"
64
- isInline
65
- data-testid="alert-add-hosts"
66
- title={
67
- <p>
68
- {isClusterPlatformTypeVM(cluster)
69
- ? 'Add new hosts by using the platform auto-scale feature or manually generating a new Discovery ISO under the "Add hosts" tab on '
70
- : 'Add new hosts by generating a new Discovery ISO under your cluster\'s "Add hosts" tab on '}
71
- <a href={REDHAT_CONSOLE_OPENSHIFT} target="_blank" rel="noopener noreferrer">
72
- console.redhat.com/openshift <ExternalLinkAltIcon />
73
- </a>
74
- .
75
- </p>
76
- }
77
- />
81
+ </StackItem>
82
+ )}
83
+ {platformLink && (
84
+ <StackItem>
85
+ <PostInstallAlert link={platformLink} />
86
+ </StackItem>
78
87
  )}
79
- {platformLink && <PostInstallAlert link={platformLink} />}
80
- </>
88
+ </Stack>
81
89
  );
82
90
  };
83
91
 
@@ -51,13 +51,11 @@ const ClusterInstallationError: React.FC<ClusterInstallationErrorProps> = ({
51
51
  }
52
52
  isInline
53
53
  >
54
- <Content>
55
- <Content component="p">
56
- {toSentence(cluster.statusInfo)}
57
- <br />
58
- Reset the installation process to return to the configuration and try again. Some hosts
59
- may need to be re-registered by rebooting into the Discovery ISO.
60
- </Content>
54
+ <Content component="p">
55
+ {toSentence(cluster.statusInfo)}
56
+ <br />
57
+ Reset the installation process to return to the configuration and try again. Some hosts
58
+ may need to be re-registered by rebooting into the Discovery ISO.
61
59
  </Content>
62
60
  </Alert>
63
61
  </GridItem>
@@ -1,6 +1,13 @@
1
1
  import React from 'react';
2
- import { Button, ButtonVariant } from '@patternfly/react-core';
3
- import { Modal, ModalVariant } from '@patternfly/react-core/deprecated';
2
+ import {
3
+ Button,
4
+ ButtonVariant,
5
+ Modal,
6
+ ModalBody,
7
+ ModalFooter,
8
+ ModalHeader,
9
+ ModalVariant,
10
+ } from '@patternfly/react-core';
4
11
 
5
12
  const defaultTitle = 'Unable to fetch the latest data';
6
13
 
@@ -15,23 +22,18 @@ const ClusterPollingErrorModal = ({
15
22
  content?: string;
16
23
  }) => {
17
24
  return (
18
- <Modal
19
- title={title}
20
- isOpen
21
- variant={ModalVariant.small}
22
- showClose={false}
23
- titleIconVariant="danger"
24
- actions={[
25
+ <Modal isOpen variant={ModalVariant.small} onClose={undefined}>
26
+ <ModalHeader title={title} titleIconVariant="danger" />
27
+ <ModalBody>{content}</ModalBody>
28
+ <ModalFooter>
25
29
  <Button
26
30
  key="refresh"
27
31
  variant={ButtonVariant.primary}
28
32
  onClick={() => window.location.reload()}
29
33
  >
30
34
  Refresh page
31
- </Button>,
32
- ]}
33
- >
34
- {content}
35
+ </Button>
36
+ </ModalFooter>
35
37
  </Modal>
36
38
  );
37
39
  };
@@ -78,9 +78,7 @@ const ClusterProperties = ({ cluster, externalMode = false }: ClusterPropertiesP
78
78
  <>
79
79
  {!externalMode && (
80
80
  <GridItem>
81
- <Content>
82
- <Content component="h2">{t('ai:Cluster Details')}</Content>
83
- </Content>
81
+ <Content component="h2">{t('ai:Cluster Details')}</Content>
84
82
  </GridItem>
85
83
  )}
86
84
  <GridItem md={6} data-testid="cluster-details">
@@ -1,25 +1,29 @@
1
1
  import React from 'react';
2
- import { Button, ButtonVariant } from '@patternfly/react-core';
3
- import { Modal, ModalVariant } from '@patternfly/react-core/deprecated';
2
+ import {
3
+ Button,
4
+ ButtonVariant,
5
+ Modal,
6
+ ModalBody,
7
+ ModalFooter,
8
+ ModalHeader,
9
+ ModalVariant,
10
+ } from '@patternfly/react-core';
4
11
 
5
12
  const ClusterUpdateErrorModal = () => (
6
- <Modal
7
- title="Unable to update cluster"
8
- isOpen
9
- variant={ModalVariant.small}
10
- showClose={false}
11
- titleIconVariant="danger"
12
- actions={[
13
+ <Modal isOpen variant={ModalVariant.small} onClose={undefined}>
14
+ <ModalHeader title="Unable to update cluster" titleIconVariant="danger" />
15
+ <ModalBody>
16
+ The service is down, undergoing maintenance, or experiencing another issue.
17
+ </ModalBody>
18
+ <ModalFooter>
13
19
  <Button
14
20
  key="refresh"
15
21
  variant={ButtonVariant.primary}
16
22
  onClick={() => window.location.reload()}
17
23
  >
18
24
  Refresh page
19
- </Button>,
20
- ]}
21
- >
22
- The service is down, undergoing maintenance, or experiencing another issue.
25
+ </Button>
26
+ </ModalFooter>
23
27
  </Modal>
24
28
  );
25
29
 
@@ -10,10 +10,8 @@ const UnsupportedVersion = ({ version }: { version: string }) => {
10
10
  const { t } = useTranslation();
11
11
 
12
12
  const hint = (
13
- <Content>
14
- <Content component={ContentVariants.p}>
15
- {t('ai:Please note that this version is not production-ready.')}
16
- </Content>
13
+ <Content component={ContentVariants.p}>
14
+ {t('ai:Please note that this version is not production-ready.')}
17
15
  </Content>
18
16
  );
19
17
  return (
@@ -124,13 +124,11 @@ export const HostsInstallationFailed = ({
124
124
  } else {
125
125
  title = 'Initialization failed';
126
126
  message = (
127
- <Content>
128
- <Content component="p">
129
- {toSentence(cluster.statusInfo)}
130
- <br />
131
- Reset the installation process to return to the configuration and try again. Some hosts
132
- may need to be re-registered by rebooting into the Discovery ISO.
133
- </Content>
127
+ <Content component="p">
128
+ {toSentence(cluster.statusInfo)}
129
+ <br />
130
+ Reset the installation process to return to the configuration and try again. Some hosts may
131
+ need to be re-registered by rebooting into the Discovery ISO.
134
132
  </Content>
135
133
  );
136
134
  }
@@ -1,7 +1,15 @@
1
1
  import React from 'react';
2
2
  import { useDispatch } from 'react-redux';
3
- import { Button, ButtonVariant, Content } from '@patternfly/react-core';
4
- import { Modal, ModalVariant } from '@patternfly/react-core/deprecated';
3
+ import {
4
+ Button,
5
+ ButtonVariant,
6
+ Content,
7
+ Modal,
8
+ ModalBody,
9
+ ModalFooter,
10
+ ModalHeader,
11
+ ModalVariant,
12
+ } from '@patternfly/react-core';
5
13
  import { ExclamationTriangleIcon } from '@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon';
6
14
 
7
15
  import { getApiErrorMessage, handleApiError } from '../../../common/api';
@@ -64,7 +72,7 @@ const ResetClusterModal: React.FC = () => {
64
72
  }
65
73
 
66
74
  return (
67
- <Content>
75
+ <>
68
76
  <Content component="p">
69
77
  This will reset the installation and return to the cluster configuration. Some hosts may
70
78
  need to be re-registered by rebooting into the Discovery ISO.
@@ -83,7 +91,7 @@ const ResetClusterModal: React.FC = () => {
83
91
  </Content>
84
92
 
85
93
  <Content component="p">Are you sure you want to reset the cluster?</Content>
86
- </Content>
94
+ </>
87
95
  );
88
96
  };
89
97
 
@@ -110,14 +118,10 @@ const ResetClusterModal: React.FC = () => {
110
118
  );
111
119
 
112
120
  return (
113
- <Modal
114
- title="Reset Cluster Installation"
115
- isOpen={isOpen}
116
- variant={ModalVariant.small}
117
- actions={actions}
118
- onClose={handleClose}
119
- >
120
- {getModalContent()}
121
+ <Modal isOpen={isOpen} variant={ModalVariant.small} onClose={handleClose}>
122
+ <ModalHeader title="Reset Cluster Installation" />
123
+ <ModalBody>{getModalContent()}</ModalBody>
124
+ <ModalFooter>{actions}</ModalFooter>
121
125
  </Modal>
122
126
  );
123
127
  };
@@ -24,6 +24,7 @@ import {
24
24
  UISettingService,
25
25
  } from '../../services';
26
26
  import { Cluster, InfraEnv } from '@openshift-assisted/types/assisted-installer-service';
27
+ import BundleService from '../../services/BundleService';
27
28
 
28
29
  type ClusterDetailsProps = {
29
30
  cluster?: Cluster;
@@ -81,9 +82,17 @@ const ClusterDetails = ({ cluster, infraEnv }: ClusterDetailsProps) => {
81
82
  try {
82
83
  const searchParams = new URLSearchParams(location.search);
83
84
  const isAssistedMigration = searchParams.get('source') === 'assisted_migration';
84
- //For Assisted Migration we need to LVMs operator
85
+ //For Assisted Migration we need the LVMs operator and also the virtualization bundle operators
85
86
  if (isAssistedMigration) {
86
87
  params.olmOperators = [{ name: 'lvm' }];
88
+ const selectedBundle = (await BundleService.listBundles()).find(
89
+ (b) => b.id === 'virtualization',
90
+ );
91
+ const virtOperators = selectedBundle?.operators;
92
+ params.olmOperators = [
93
+ ...params.olmOperators,
94
+ ...(virtOperators ? virtOperators.map((op) => ({ name: op })) : []),
95
+ ];
87
96
  }
88
97
  const cluster = await ClustersService.create(params, isAssistedMigration);
89
98
  navigate(`../${cluster.id}`, { state: ClusterWizardFlowStateNew });
@@ -36,9 +36,7 @@ const BasicStep = () => {
36
36
  <GridItem>
37
37
  <Split>
38
38
  <SplitItem>
39
- <Content>
40
- <Content component="h2">Basic information</Content>
41
- </Content>
39
+ <Content component="h2">Basic information</Content>
42
40
  </SplitItem>
43
41
  <SplitItem>
44
42
  <DeveloperPreview />
@@ -62,9 +62,7 @@ const ReviewStep = () => {
62
62
  <Grid hasGutter>
63
63
  <Split>
64
64
  <SplitItem>
65
- <Content>
66
- <Content component="h2">Review and download ISO</Content>
67
- </Content>
65
+ <Content component="h2">Review and download ISO</Content>
68
66
  </SplitItem>
69
67
  <SplitItem>
70
68
  <DeveloperPreview />
@@ -11,7 +11,7 @@ import { useFeature } from '../../hooks/use-feature';
11
11
  export const AssistedInstallerHeader = () => {
12
12
  const isSingleClusterFeatureEnabled = useFeature('ASSISTED_INSTALLER_SINGLE_CLUSTER_FEATURE');
13
13
  return (
14
- <Content>
14
+ <>
15
15
  <Content component="h1" className="pf-v6-u-display-inline">
16
16
  Install OpenShift with the Assisted Installer
17
17
  </Content>
@@ -30,6 +30,6 @@ export const AssistedInstallerHeader = () => {
30
30
  </SplitItem>
31
31
  )}
32
32
  </Split>
33
- </Content>
33
+ </>
34
34
  );
35
35
  };
@@ -91,9 +91,7 @@ const ClusterPageGeneric = ({
91
91
  <>
92
92
  {showBreadcrumbs && <ClusterBreadcrumbs clusterName={cluster.name} />}
93
93
  <PageSection hasBodyWrapper={false}>
94
- <Content>
95
- <Content component="h1">{cluster.name}</Content>
96
- </Content>
94
+ <Content component="h1">{cluster.name}</Content>
97
95
  </PageSection>
98
96
  <PageSection hasBodyWrapper={false} isFilled>
99
97
  <ClusterDetail cluster={cluster} />
@@ -108,9 +108,7 @@ const Clusters = () => {
108
108
  <>
109
109
  <ClusterBreadcrumbs />
110
110
  <PageSection hasBodyWrapper={false}>
111
- <Content>
112
- <Content component="h1">Assisted Clusters</Content>
113
- </Content>
111
+ <Content component="h1">Assisted Clusters</Content>
114
112
  </PageSection>
115
113
  <PageSection hasBodyWrapper={false} isFilled>
116
114
  <Alerts />
@@ -1,6 +1,12 @@
1
1
  import * as React from 'react';
2
- import { Button } from '@patternfly/react-core';
3
- import { Modal, ModalVariant } from '@patternfly/react-core/deprecated';
2
+ import {
3
+ Button,
4
+ Modal,
5
+ ModalBody,
6
+ ModalFooter,
7
+ ModalHeader,
8
+ ModalVariant,
9
+ } from '@patternfly/react-core';
4
10
 
5
11
  type DeleteClusterModalProps = {
6
12
  name: string;
@@ -18,12 +24,13 @@ const DeleteClusterModal: React.FC<DeleteClusterModalProps> = ({
18
24
  isOpen,
19
25
  }) => (
20
26
  <Modal
21
- title="Delete cluster"
22
27
  isOpen={isOpen}
23
- onClose={onClose}
28
+ onClose={isDeleteInProgress ? undefined : () => onClose()}
24
29
  variant={ModalVariant.small}
25
- showClose={!isDeleteInProgress}
26
- actions={[
30
+ >
31
+ <ModalHeader title="Delete cluster" />
32
+ <ModalBody>Are you sure you want to delete cluster {name} ?</ModalBody>
33
+ <ModalFooter>
27
34
  <Button
28
35
  data-testid="delete-cluster-submit"
29
36
  key="confirm"
@@ -33,13 +40,11 @@ const DeleteClusterModal: React.FC<DeleteClusterModalProps> = ({
33
40
  isLoading={isDeleteInProgress}
34
41
  >
35
42
  Delete
36
- </Button>,
43
+ </Button>
37
44
  <Button key="cancel" variant="link" onClick={onClose} isDisabled={isDeleteInProgress}>
38
45
  Cancel
39
- </Button>,
40
- ]}
41
- >
42
- Are you sure you want to delete cluster {name} ?
46
+ </Button>
47
+ </ModalFooter>
43
48
  </Modal>
44
49
  );
45
50
 
@@ -86,7 +86,7 @@ export const LimitedSupportedCluster = ({
86
86
  clusterFeatureSupportLevels: FeatureIdToSupportLevel;
87
87
  showVersionWarning: boolean;
88
88
  }) => (
89
- <Content>
89
+ <>
90
90
  {showVersionWarning && (
91
91
  <Content component="p">
92
92
  <UiIcon size="sm" icon={<InfoCircleIcon color={infoColor.var} />} />
@@ -100,7 +100,7 @@ export const LimitedSupportedCluster = ({
100
100
  <Content component="ul">{getPreviewFeatureList(clusterFeatureSupportLevels)}</Content>
101
101
  </>
102
102
  )}
103
- </Content>
103
+ </>
104
104
  );
105
105
 
106
106
  export const FullySupportedCluster = () => (
@@ -1,6 +1,13 @@
1
1
  import React from 'react';
2
- import { Button, ButtonVariant } from '@patternfly/react-core';
3
- import { Modal, ModalVariant } from '@patternfly/react-core/deprecated';
2
+ import {
3
+ Button,
4
+ ButtonVariant,
5
+ Modal,
6
+ ModalBody,
7
+ ModalFooter,
8
+ ModalHeader,
9
+ ModalVariant,
10
+ } from '@patternfly/react-core';
4
11
  import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
5
12
 
6
13
  type DeleteHostModalProps = {
@@ -18,8 +25,12 @@ const DeleteHostModal = ({ isOpen, hostname, onClose, onDelete }: DeleteHostModa
18
25
  isOpen={isOpen}
19
26
  onClose={onClose}
20
27
  variant={ModalVariant.small}
21
- titleIconVariant="warning"
22
- actions={[
28
+ >
29
+ <ModalHeader title={t('ai:Remove host?')} titleIconVariant="warning" />
30
+ <ModalBody>
31
+ {t('ai:Host {{hostname}} will be removed', { hostname: hostname || '' })}
32
+ </ModalBody>
33
+ <ModalFooter>
23
34
  <Button
24
35
  data-testid="delete-host-submit"
25
36
  key="confirm"
@@ -27,13 +38,11 @@ const DeleteHostModal = ({ isOpen, hostname, onClose, onDelete }: DeleteHostModa
27
38
  onClick={onDelete}
28
39
  >
29
40
  {t('ai:Remove host')}
30
- </Button>,
41
+ </Button>
31
42
  <Button key="cancel" variant={ButtonVariant.link} onClick={onClose}>
32
43
  {t('ai:Cancel')}
33
- </Button>,
34
- ]}
35
- >
36
- {t('ai:Host {{hostname}} will be removed', { hostname: hostname || '' })}
44
+ </Button>
45
+ </ModalFooter>
37
46
  </Modal>
38
47
  );
39
48
  };
@@ -41,11 +41,9 @@ const HostRequirementsContent = ({
41
41
 
42
42
  if (isAddingHosts) {
43
43
  return (
44
- <Content>
45
- <Content
46
- component={'p'}
47
- >{`Worker hosts must have at least ${contentForWorkerNodes}`}</Content>
48
- </Content>
44
+ <Content
45
+ component={'p'}
46
+ >{`Worker hosts must have at least ${contentForWorkerNodes}`}</Content>
49
47
  );
50
48
  }
51
49
 
@@ -1,6 +1,13 @@
1
1
  import React from 'react';
2
- import { Button, ButtonVariant } from '@patternfly/react-core';
3
- import { Modal, ModalVariant } from '@patternfly/react-core/deprecated';
2
+ import {
3
+ Button,
4
+ ButtonVariant,
5
+ Modal,
6
+ ModalBody,
7
+ ModalFooter,
8
+ ModalHeader,
9
+ ModalVariant,
10
+ } from '@patternfly/react-core';
4
11
 
5
12
  type ResetHostModalProps = {
6
13
  hostname?: string;
@@ -10,12 +17,10 @@ type ResetHostModalProps = {
10
17
  };
11
18
 
12
19
  const ResetHostModal: React.FC<ResetHostModalProps> = ({ isOpen, hostname, onClose, onReset }) => (
13
- <Modal
14
- title="Reset Host"
15
- isOpen={isOpen}
16
- onClose={onClose}
17
- variant={ModalVariant.small}
18
- actions={[
20
+ <Modal isOpen={isOpen} onClose={onClose} variant={ModalVariant.small}>
21
+ <ModalHeader title="Reset Host" />
22
+ <ModalBody>Are you sure you want to reset host{` ${hostname || ''}`} ?</ModalBody>
23
+ <ModalFooter>
19
24
  <Button
20
25
  data-testid="reset-host-submit"
21
26
  key="confirm"
@@ -23,13 +28,11 @@ const ResetHostModal: React.FC<ResetHostModalProps> = ({ isOpen, hostname, onClo
23
28
  onClick={onReset}
24
29
  >
25
30
  Reset
26
- </Button>,
31
+ </Button>
27
32
  <Button key="cancel" variant={ButtonVariant.link} onClick={onClose}>
28
33
  Cancel
29
- </Button>,
30
- ]}
31
- >
32
- Are you sure you want to reset host{` ${hostname || ''}`} ?
34
+ </Button>
35
+ </ModalFooter>
33
36
  </Modal>
34
37
  );
35
38