@openshift-assisted/ui-lib 2.17.0-cim → 2.17.1-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 (397) hide show
  1. package/build/@types/cim/components/Agent/AgentStatus.d.ts +1 -0
  2. package/build/@types/cim/components/Agent/AgentStatus.d.ts.map +1 -1
  3. package/build/@types/cim/components/Agent/AgentTable.d.ts.map +1 -1
  4. package/build/@types/cim/components/Agent/AgentsSelectionTable.d.ts.map +1 -1
  5. package/build/@types/cim/components/Agent/BMCForm.d.ts.map +1 -1
  6. package/build/@types/cim/components/Agent/BMHEventsModal.d.ts +8 -0
  7. package/build/@types/cim/components/Agent/BMHEventsModal.d.ts.map +1 -0
  8. package/build/@types/cim/components/Agent/BMHStatus.d.ts +2 -0
  9. package/build/@types/cim/components/Agent/BMHStatus.d.ts.map +1 -1
  10. package/build/@types/cim/components/Agent/BMHStatusInfo.d.ts +8 -0
  11. package/build/@types/cim/components/Agent/BMHStatusInfo.d.ts.map +1 -0
  12. package/build/@types/cim/components/Agent/MinimalHWRequirements.d.ts.map +1 -1
  13. package/build/@types/cim/components/Agent/index.d.ts +2 -0
  14. package/build/@types/cim/components/Agent/index.d.ts.map +1 -1
  15. package/build/@types/cim/components/Agent/tableColumns.d.ts +29 -0
  16. package/build/@types/cim/components/Agent/tableColumns.d.ts.map +1 -0
  17. package/build/@types/cim/components/Agent/tableUtils.d.ts +2 -22
  18. package/build/@types/cim/components/Agent/tableUtils.d.ts.map +1 -1
  19. package/build/@types/cim/components/ClusterDeployment/NetworkConfiguration.d.ts +1 -1
  20. package/build/@types/cim/components/ClusterDeployment/NetworkConfiguration.d.ts.map +1 -1
  21. package/build/@types/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.d.ts.map +1 -1
  22. package/build/@types/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.d.ts.map +1 -1
  23. package/build/@types/cim/components/ClusterDeployment/networkConfigurationValidation.d.ts +1 -1
  24. package/build/@types/cim/components/ClusterDeployment/networkConfigurationValidation.d.ts.map +1 -1
  25. package/build/@types/cim/components/ClusterDeployment/networking/ClusterDeploymentHostsNetworkTable.d.ts.map +1 -1
  26. package/build/@types/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.d.ts.map +1 -1
  27. package/build/@types/cim/components/ClusterDeployment/use-networking-formik.d.ts +9 -5
  28. package/build/@types/cim/components/ClusterDeployment/use-networking-formik.d.ts.map +1 -1
  29. package/build/@types/cim/components/Hypershift/HostedClusterWizard/NetworkStep/AdvancedNetworkFields.d.ts.map +1 -0
  30. package/build/@types/cim/components/Hypershift/modals/AddNodePoolModal.d.ts.map +1 -1
  31. package/build/@types/cim/components/Hypershift/modals/ManageHostsModal.d.ts.map +1 -1
  32. package/build/@types/cim/components/Hypershift/modals/RemoveNodePoolModal.d.ts.map +1 -1
  33. package/build/@types/cim/components/InfraEnv/EnvironmentDetails.d.ts.map +1 -1
  34. package/build/@types/cim/components/InfraEnv/EnvironmentErrors.d.ts +0 -1
  35. package/build/@types/cim/components/InfraEnv/EnvironmentErrors.d.ts.map +1 -1
  36. package/build/@types/cim/components/helpers/agentStatus.d.ts.map +1 -1
  37. package/build/@types/cim/components/modals/AddBmcHostModal.d.ts.map +1 -1
  38. package/build/@types/cim/components/modals/AddBmcHostYamlForm.d.ts.map +1 -1
  39. package/build/@types/cim/components/modals/AddBmcHostYamlModal.d.ts.map +1 -1
  40. package/build/@types/cim/components/modals/AddHostModal.d.ts.map +1 -1
  41. package/build/@types/cim/components/modals/CimConfiguration/CimConfigurationModal.d.ts.map +1 -1
  42. package/build/@types/cim/components/modals/EditBMHModal.d.ts.map +1 -1
  43. package/build/@types/cim/components/modals/EditNtpSourcesModal.d.ts.map +1 -1
  44. package/build/@types/cim/components/modals/EditProxyModal.d.ts.map +1 -1
  45. package/build/@types/cim/components/modals/EditPullSecretModal.d.ts.map +1 -1
  46. package/build/@types/cim/components/modals/EditSSHKeyModal.d.ts.map +1 -1
  47. package/build/@types/cim/components/modals/MassApproveAgentModal.d.ts.map +1 -1
  48. package/build/@types/cim/components/modals/ScaleUpModal.d.ts.map +1 -1
  49. package/build/@types/cim/hooks/index.d.ts +1 -0
  50. package/build/@types/cim/hooks/index.d.ts.map +1 -1
  51. package/build/@types/cim/hooks/types.d.ts +1 -1
  52. package/build/@types/cim/hooks/types.d.ts.map +1 -1
  53. package/build/@types/cim/hooks/useEvents.d.ts +4 -0
  54. package/build/@types/cim/hooks/useEvents.d.ts.map +1 -0
  55. package/build/@types/cim/types/fromOCP/k8sTypes.d.ts +12 -0
  56. package/build/@types/cim/types/fromOCP/k8sTypes.d.ts.map +1 -1
  57. package/build/@types/cim/types/k8s/agent-cluster-install.d.ts +4 -0
  58. package/build/@types/cim/types/k8s/agent-cluster-install.d.ts.map +1 -1
  59. package/build/@types/cim/types/k8s/bare-metal-host.d.ts +20 -0
  60. package/build/@types/cim/types/k8s/bare-metal-host.d.ts.map +1 -1
  61. package/build/@types/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.d.ts.map +1 -1
  62. package/build/@types/common/components/clusterConfiguration/utils.d.ts +2 -2
  63. package/build/@types/common/components/clusterConfiguration/utils.d.ts.map +1 -1
  64. package/build/@types/common/components/clusterWizard/networkingSteps/AdvancedNetworkFields.d.ts +7 -0
  65. package/build/@types/common/components/clusterWizard/networkingSteps/AdvancedNetworkFields.d.ts.map +1 -0
  66. package/build/@types/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.d.ts +10 -6
  67. package/build/@types/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.d.ts.map +1 -1
  68. package/build/@types/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.d.ts +13 -0
  69. package/build/@types/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.d.ts.map +1 -0
  70. package/build/@types/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/SubnetsDropdown.d.ts +1 -1
  71. package/build/@types/common/components/clusterWizard/networkingSteps/SubnetsDropdown.d.ts.map +1 -0
  72. package/build/@types/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.d.ts +4 -2
  73. package/build/@types/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.d.ts.map +1 -1
  74. package/build/@types/common/components/clusterWizard/networkingSteps/index.d.ts +7 -2
  75. package/build/@types/common/components/clusterWizard/networkingSteps/index.d.ts.map +1 -1
  76. package/build/@types/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/reorderNetworks.d.ts +1 -1
  77. package/build/@types/common/components/clusterWizard/networkingSteps/reorderNetworks.d.ts.map +1 -0
  78. package/build/@types/common/components/hosts/HostStatus.d.ts.map +1 -1
  79. package/build/@types/common/components/hosts/HostValidationGroups.d.ts.map +1 -1
  80. package/build/@types/common/components/hosts/MassChangeHostnameModal.d.ts.map +1 -1
  81. package/build/@types/common/components/hosts/index.d.ts +2 -0
  82. package/build/@types/common/components/hosts/index.d.ts.map +1 -1
  83. package/build/@types/common/components/hosts/tableColumns.d.ts +21 -0
  84. package/build/@types/common/components/hosts/tableColumns.d.ts.map +1 -0
  85. package/build/@types/common/components/hosts/tableUtils.d.ts +3 -21
  86. package/build/@types/common/components/hosts/tableUtils.d.ts.map +1 -1
  87. package/build/@types/common/components/hosts/types.d.ts +1 -0
  88. package/build/@types/common/components/hosts/types.d.ts.map +1 -1
  89. package/build/@types/common/components/ui/EventsList.d.ts.map +1 -1
  90. package/build/@types/common/components/ui/PrismCode.d.ts +13 -11
  91. package/build/@types/common/components/ui/PrismCode.d.ts.map +1 -1
  92. package/build/@types/common/components/ui/formik/LabelField.d.ts +3 -11
  93. package/build/@types/common/components/ui/formik/LabelField.d.ts.map +1 -1
  94. package/build/@types/common/components/ui/formik/validationSchemas.d.ts +3 -5
  95. package/build/@types/common/components/ui/formik/validationSchemas.d.ts.map +1 -1
  96. package/build/@types/common/components/ui/index.d.ts +1 -1
  97. package/build/@types/common/components/ui/index.d.ts.map +1 -1
  98. package/build/@types/common/config/constants.d.ts +2 -1
  99. package/build/@types/common/config/constants.d.ts.map +1 -1
  100. package/build/@types/common/types/clusters.d.ts +0 -1
  101. package/build/@types/common/types/clusters.d.ts.map +1 -1
  102. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.d.ts +1 -1
  103. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.d.ts.map +1 -1
  104. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationTableBase.d.ts.map +1 -1
  105. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.d.ts.map +1 -1
  106. package/build/@types/ocm/components/clusterDetail/ResetClusterModal.d.ts.map +1 -1
  107. package/build/@types/ocm/components/hosts/ClusterHostsTable.d.ts.map +1 -1
  108. package/build/@types/ocm/components/hosts/HostsDiscoveryTable.d.ts.map +1 -1
  109. package/build/@types/ocm/components/hosts/HostsStorageTable.d.ts.map +1 -1
  110. package/build/@types/ocm/components/hosts/use-hosts-table.d.ts.map +1 -1
  111. package/build/cjs/cim/components/Agent/AgentStatus.js +2 -2
  112. package/build/cjs/cim/components/Agent/AgentStatus.js.map +1 -1
  113. package/build/cjs/cim/components/Agent/AgentTable.js +10 -9
  114. package/build/cjs/cim/components/Agent/AgentTable.js.map +1 -1
  115. package/build/cjs/cim/components/Agent/AgentsSelectionTable.js +9 -8
  116. package/build/cjs/cim/components/Agent/AgentsSelectionTable.js.map +1 -1
  117. package/build/cjs/cim/components/Agent/BMCForm.js +4 -5
  118. package/build/cjs/cim/components/Agent/BMCForm.js.map +1 -1
  119. package/build/cjs/cim/components/Agent/BMHEventsModal.js +54 -0
  120. package/build/cjs/cim/components/Agent/BMHEventsModal.js.map +1 -0
  121. package/build/cjs/cim/components/Agent/BMHStatus.js +3 -2
  122. package/build/cjs/cim/components/Agent/BMHStatus.js.map +1 -1
  123. package/build/cjs/cim/components/Agent/BMHStatusInfo.js +59 -0
  124. package/build/cjs/cim/components/Agent/BMHStatusInfo.js.map +1 -0
  125. package/build/cjs/cim/components/Agent/MinimalHWRequirements.js +6 -5
  126. package/build/cjs/cim/components/Agent/MinimalHWRequirements.js.map +1 -1
  127. package/build/cjs/cim/components/Agent/index.js +2 -0
  128. package/build/cjs/cim/components/Agent/index.js.map +1 -1
  129. package/build/cjs/cim/components/Agent/tableColumns.js +184 -0
  130. package/build/cjs/cim/components/Agent/tableColumns.js.map +1 -0
  131. package/build/cjs/cim/components/Agent/tableUtils.js +4 -174
  132. package/build/cjs/cim/components/Agent/tableUtils.js.map +1 -1
  133. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsTable.js +10 -10
  134. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsTable.js.map +1 -1
  135. package/build/cjs/cim/components/ClusterDeployment/LocationsSelector.js +2 -2
  136. package/build/cjs/cim/components/ClusterDeployment/LocationsSelector.js.map +1 -1
  137. package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js +28 -38
  138. package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js.map +1 -1
  139. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.js +1 -1
  140. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.js.map +1 -1
  141. package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.js +13 -14
  142. package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.js.map +1 -1
  143. package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.js +13 -10
  144. package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.js.map +1 -1
  145. package/build/cjs/cim/components/ClusterDeployment/networkConfigurationValidation.js +19 -18
  146. package/build/cjs/cim/components/ClusterDeployment/networkConfigurationValidation.js.map +1 -1
  147. package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentHostsNetworkTable.js +9 -10
  148. package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentHostsNetworkTable.js.map +1 -1
  149. package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingForm.js +2 -2
  150. package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingForm.js.map +1 -1
  151. package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingStep.js +12 -8
  152. package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingStep.js.map +1 -1
  153. package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js +6 -4
  154. package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js.map +1 -1
  155. package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js +15 -9
  156. package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js.map +1 -1
  157. package/build/cjs/cim/components/Hypershift/DetailsPage/NodePoolsTable.js +2 -2
  158. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsForm.js +1 -1
  159. package/build/cjs/{common/components/clusterConfiguration → cim/components/Hypershift/HostedClusterWizard/NetworkStep}/AdvancedNetworkFields.js +3 -3
  160. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/NetworkStep/AdvancedNetworkFields.js.map +1 -0
  161. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/NetworkStep/NetworkForm.js +1 -1
  162. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/NetworkStep/NetworkForm.js.map +1 -1
  163. package/build/cjs/cim/components/Hypershift/modals/AddNodePoolModal.js +4 -4
  164. package/build/cjs/cim/components/Hypershift/modals/AddNodePoolModal.js.map +1 -1
  165. package/build/cjs/cim/components/Hypershift/modals/ManageHostsModal.js +4 -4
  166. package/build/cjs/cim/components/Hypershift/modals/ManageHostsModal.js.map +1 -1
  167. package/build/cjs/cim/components/Hypershift/modals/NodePoolForm.js +1 -1
  168. package/build/cjs/cim/components/Hypershift/modals/NodePoolForm.js.map +1 -1
  169. package/build/cjs/cim/components/Hypershift/modals/RemoveNodePoolModal.js +4 -4
  170. package/build/cjs/cim/components/Hypershift/modals/RemoveNodePoolModal.js.map +1 -1
  171. package/build/cjs/cim/components/InfraEnv/EnvironmentDetails.js +5 -2
  172. package/build/cjs/cim/components/InfraEnv/EnvironmentDetails.js.map +1 -1
  173. package/build/cjs/cim/components/InfraEnv/EnvironmentErrors.js +2 -4
  174. package/build/cjs/cim/components/InfraEnv/EnvironmentErrors.js.map +1 -1
  175. package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js +11 -11
  176. package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js.map +1 -1
  177. package/build/cjs/cim/components/common/ResourceAlerts.js +2 -4
  178. package/build/cjs/cim/components/common/ResourceAlerts.js.map +1 -1
  179. package/build/cjs/cim/components/helpers/agentStatus.js +5 -0
  180. package/build/cjs/cim/components/helpers/agentStatus.js.map +1 -1
  181. package/build/cjs/cim/components/helpers/toAssisted.js +28 -26
  182. package/build/cjs/cim/components/helpers/toAssisted.js.map +1 -1
  183. package/build/cjs/cim/components/modals/AddBmcHostModal.js +7 -5
  184. package/build/cjs/cim/components/modals/AddBmcHostModal.js.map +1 -1
  185. package/build/cjs/cim/components/modals/AddBmcHostYamlForm.js +2 -3
  186. package/build/cjs/cim/components/modals/AddBmcHostYamlForm.js.map +1 -1
  187. package/build/cjs/cim/components/modals/AddBmcHostYamlModal.js +7 -5
  188. package/build/cjs/cim/components/modals/AddBmcHostYamlModal.js.map +1 -1
  189. package/build/cjs/cim/components/modals/AddHostModal.js +9 -7
  190. package/build/cjs/cim/components/modals/AddHostModal.js.map +1 -1
  191. package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js +17 -22
  192. package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js.map +1 -1
  193. package/build/cjs/cim/components/modals/EditBMHModal.js +4 -2
  194. package/build/cjs/cim/components/modals/EditBMHModal.js.map +1 -1
  195. package/build/cjs/cim/components/modals/EditNtpSourcesModal.js +4 -4
  196. package/build/cjs/cim/components/modals/EditNtpSourcesModal.js.map +1 -1
  197. package/build/cjs/cim/components/modals/EditProxyModal.js +4 -4
  198. package/build/cjs/cim/components/modals/EditProxyModal.js.map +1 -1
  199. package/build/cjs/cim/components/modals/EditPullSecretModal.js +4 -4
  200. package/build/cjs/cim/components/modals/EditPullSecretModal.js.map +1 -1
  201. package/build/cjs/cim/components/modals/EditSSHKeyModal.js +5 -5
  202. package/build/cjs/cim/components/modals/EditSSHKeyModal.js.map +1 -1
  203. package/build/cjs/cim/components/modals/MassApproveAgentModal.js +4 -4
  204. package/build/cjs/cim/components/modals/MassApproveAgentModal.js.map +1 -1
  205. package/build/cjs/cim/components/modals/MassDeleteAgentModal.js +1 -1
  206. package/build/cjs/cim/components/modals/MassDeleteAgentModal.js.map +1 -1
  207. package/build/cjs/cim/components/modals/ScaleUpModal.js +4 -4
  208. package/build/cjs/cim/components/modals/ScaleUpModal.js.map +1 -1
  209. package/build/cjs/cim/hooks/index.js +1 -0
  210. package/build/cjs/cim/hooks/index.js.map +1 -1
  211. package/build/cjs/cim/hooks/useEvents.js +12 -0
  212. package/build/cjs/cim/hooks/useEvents.js.map +1 -0
  213. package/build/cjs/common/components/clusterConfiguration/DiscoveryInstructions.js +1 -1
  214. package/build/cjs/common/components/clusterConfiguration/DiscoveryInstructions.js.map +1 -1
  215. package/build/cjs/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.js +9 -9
  216. package/build/cjs/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.js.map +1 -1
  217. package/build/cjs/common/components/clusterConfiguration/ProxyFields.js +3 -3
  218. package/build/cjs/common/components/clusterConfiguration/ProxyFields.js.map +1 -1
  219. package/build/cjs/common/components/clusterConfiguration/utils.js +3 -4
  220. package/build/cjs/common/components/clusterConfiguration/utils.js.map +1 -1
  221. package/build/cjs/common/components/clusterWizard/networkingSteps/AdvancedNetworkFields.js +62 -0
  222. package/build/cjs/common/components/clusterWizard/networkingSteps/AdvancedNetworkFields.js.map +1 -0
  223. package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js +130 -46
  224. package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js.map +1 -1
  225. package/build/cjs/{ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.js → common/components/clusterWizard/networkingSteps/StackTypeControlGroup.js} +59 -38
  226. package/build/cjs/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.js.map +1 -0
  227. package/build/cjs/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/SubnetsDropdown.js +7 -5
  228. package/build/cjs/common/components/clusterWizard/networkingSteps/SubnetsDropdown.js.map +1 -0
  229. package/build/cjs/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.js +96 -38
  230. package/build/cjs/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.js.map +1 -1
  231. package/build/cjs/common/components/clusterWizard/networkingSteps/index.js +13 -3
  232. package/build/cjs/common/components/clusterWizard/networkingSteps/index.js.map +1 -1
  233. package/build/cjs/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/reorderNetworks.js +2 -2
  234. package/build/cjs/common/components/clusterWizard/networkingSteps/reorderNetworks.js.map +1 -0
  235. package/build/cjs/common/components/hosts/HostStatus.js +8 -6
  236. package/build/cjs/common/components/hosts/HostStatus.js.map +1 -1
  237. package/build/cjs/common/components/hosts/HostValidationGroups.js +2 -3
  238. package/build/cjs/common/components/hosts/HostValidationGroups.js.map +1 -1
  239. package/build/cjs/common/components/hosts/MassChangeHostnameModal.js +7 -13
  240. package/build/cjs/common/components/hosts/MassChangeHostnameModal.js.map +1 -1
  241. package/build/cjs/common/components/hosts/index.js +2 -0
  242. package/build/cjs/common/components/hosts/index.js.map +1 -1
  243. package/build/cjs/common/components/hosts/tableColumns.js +336 -0
  244. package/build/cjs/common/components/hosts/tableColumns.js.map +1 -0
  245. package/build/cjs/common/components/hosts/tableUtils.js +1 -331
  246. package/build/cjs/common/components/hosts/tableUtils.js.map +1 -1
  247. package/build/cjs/common/components/ui/EventsList.js +1 -1
  248. package/build/cjs/common/components/ui/EventsList.js.map +1 -1
  249. package/build/cjs/common/components/ui/PrismCode.js +29 -20
  250. package/build/cjs/common/components/ui/PrismCode.js.map +1 -1
  251. package/build/cjs/common/components/ui/formik/LabelField.js +34 -26
  252. package/build/cjs/common/components/ui/formik/LabelField.js.map +1 -1
  253. package/build/cjs/common/components/ui/formik/validationSchemas.js +60 -78
  254. package/build/cjs/common/components/ui/formik/validationSchemas.js.map +1 -1
  255. package/build/cjs/common/components/ui/index.js +1 -2
  256. package/build/cjs/common/components/ui/index.js.map +1 -1
  257. package/build/cjs/common/config/constants.js +27 -4
  258. package/build/cjs/common/config/constants.js.map +1 -1
  259. package/build/cjs/common/types/clusters.js.map +1 -1
  260. package/build/cjs/ocm/components/clusterConfiguration/OcmBaseDomainField.js +1 -1
  261. package/build/cjs/ocm/components/clusterConfiguration/OcmBaseDomainField.js.map +1 -1
  262. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js +6 -12
  263. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js.map +1 -1
  264. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationTableBase.js +8 -9
  265. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationTableBase.js.map +1 -1
  266. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js +6 -16
  267. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js.map +1 -1
  268. package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js +1 -1
  269. package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js.map +1 -1
  270. package/build/cjs/ocm/components/clusterWizard/OperatorsSelect.js +1 -1
  271. package/build/cjs/ocm/components/clusterWizard/OperatorsSelect.js.map +1 -1
  272. package/build/cjs/ocm/components/hosts/ClusterHostsTable.js +7 -8
  273. package/build/cjs/ocm/components/hosts/ClusterHostsTable.js.map +1 -1
  274. package/build/cjs/ocm/components/hosts/HostsDiscoveryTable.js +7 -8
  275. package/build/cjs/ocm/components/hosts/HostsDiscoveryTable.js.map +1 -1
  276. package/build/cjs/ocm/components/hosts/HostsStorageTable.js +5 -6
  277. package/build/cjs/ocm/components/hosts/HostsStorageTable.js.map +1 -1
  278. package/build/cjs/ocm/components/hosts/use-hosts-table.js +2 -3
  279. package/build/cjs/ocm/components/hosts/use-hosts-table.js.map +1 -1
  280. package/lib/cim/components/Agent/AgentStatus.tsx +3 -0
  281. package/lib/cim/components/Agent/AgentTable.tsx +3 -2
  282. package/lib/cim/components/Agent/AgentsSelectionTable.tsx +3 -12
  283. package/lib/cim/components/Agent/BMCForm.tsx +8 -7
  284. package/lib/cim/components/Agent/BMHEventsModal.tsx +87 -0
  285. package/lib/cim/components/Agent/BMHStatus.tsx +17 -17
  286. package/lib/cim/components/Agent/BMHStatusInfo.tsx +94 -0
  287. package/lib/cim/components/Agent/MinimalHWRequirements.tsx +17 -12
  288. package/lib/cim/components/Agent/index.ts +2 -0
  289. package/lib/cim/components/Agent/tableColumns.tsx +257 -0
  290. package/lib/cim/components/Agent/tableUtils.tsx +4 -243
  291. package/lib/cim/components/ClusterDeployment/ClusterDeploymentDetailsTable.tsx +2 -2
  292. package/lib/cim/components/ClusterDeployment/LocationsSelector.tsx +2 -2
  293. package/lib/cim/components/ClusterDeployment/NetworkConfiguration.tsx +61 -44
  294. package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.tsx +2 -2
  295. package/lib/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.tsx +3 -5
  296. package/lib/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.tsx +27 -28
  297. package/lib/cim/components/ClusterDeployment/networkConfigurationValidation.ts +30 -36
  298. package/lib/cim/components/ClusterDeployment/networking/ClusterDeploymentHostsNetworkTable.tsx +2 -7
  299. package/lib/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingForm.tsx +3 -3
  300. package/lib/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingStep.tsx +26 -26
  301. package/lib/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.tsx +20 -6
  302. package/lib/cim/components/ClusterDeployment/use-networking-formik.ts +32 -12
  303. package/lib/cim/components/Hypershift/DetailsPage/NodePoolsTable.tsx +2 -2
  304. package/lib/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsForm.tsx +1 -1
  305. package/lib/{common/components/clusterConfiguration → cim/components/Hypershift/HostedClusterWizard/NetworkStep}/AdvancedNetworkFields.tsx +4 -4
  306. package/lib/cim/components/Hypershift/HostedClusterWizard/NetworkStep/NetworkForm.tsx +1 -1
  307. package/lib/cim/components/Hypershift/modals/AddNodePoolModal.tsx +15 -16
  308. package/lib/cim/components/Hypershift/modals/ManageHostsModal.tsx +15 -16
  309. package/lib/cim/components/Hypershift/modals/NodePoolForm.tsx +1 -1
  310. package/lib/cim/components/Hypershift/modals/RemoveNodePoolModal.tsx +14 -11
  311. package/lib/cim/components/InfraEnv/EnvironmentDetails.tsx +6 -3
  312. package/lib/cim/components/InfraEnv/EnvironmentErrors.tsx +1 -6
  313. package/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx +6 -6
  314. package/lib/cim/components/common/ResourceAlerts.tsx +4 -4
  315. package/lib/cim/components/helpers/agentStatus.tsx +5 -0
  316. package/lib/cim/components/helpers/toAssisted.ts +15 -15
  317. package/lib/cim/components/modals/AddBmcHostModal.tsx +14 -13
  318. package/lib/cim/components/modals/AddBmcHostYamlForm.tsx +6 -5
  319. package/lib/cim/components/modals/AddBmcHostYamlModal.tsx +8 -7
  320. package/lib/cim/components/modals/AddHostModal.tsx +22 -11
  321. package/lib/cim/components/modals/CimConfiguration/CimConfigurationModal.tsx +70 -66
  322. package/lib/cim/components/modals/EditBMHModal.tsx +2 -3
  323. package/lib/cim/components/modals/EditNtpSourcesModal.tsx +15 -10
  324. package/lib/cim/components/modals/EditProxyModal.tsx +16 -10
  325. package/lib/cim/components/modals/EditPullSecretModal.tsx +14 -10
  326. package/lib/cim/components/modals/EditSSHKeyModal.tsx +16 -13
  327. package/lib/cim/components/modals/MassApproveAgentModal.tsx +16 -8
  328. package/lib/cim/components/modals/MassDeleteAgentModal.tsx +1 -1
  329. package/lib/cim/components/modals/ScaleUpModal.tsx +9 -7
  330. package/lib/cim/hooks/index.tsx +1 -0
  331. package/lib/cim/hooks/types.tsx +4 -1
  332. package/lib/cim/hooks/useEvents.tsx +14 -0
  333. package/lib/cim/types/fromOCP/k8sTypes.ts +13 -0
  334. package/lib/cim/types/k8s/agent-cluster-install.ts +4 -0
  335. package/lib/cim/types/k8s/bare-metal-host.ts +20 -0
  336. package/lib/common/components/clusterConfiguration/DiscoveryInstructions.tsx +1 -1
  337. package/lib/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.tsx +7 -10
  338. package/lib/common/components/clusterConfiguration/ProxyFields.tsx +3 -3
  339. package/lib/common/components/clusterConfiguration/utils.ts +22 -12
  340. package/lib/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/AdvancedNetworkFields.tsx +54 -38
  341. package/lib/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.tsx +221 -53
  342. package/lib/{ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.tsx → common/components/clusterWizard/networkingSteps/StackTypeControlGroup.tsx} +64 -28
  343. package/lib/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/SubnetsDropdown.tsx +4 -7
  344. package/lib/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.tsx +199 -80
  345. package/lib/common/components/clusterWizard/networkingSteps/index.ts +10 -2
  346. package/lib/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/reorderNetworks.ts +2 -1
  347. package/lib/common/components/hosts/HostStatus.tsx +14 -3
  348. package/lib/common/components/hosts/HostValidationGroups.tsx +5 -4
  349. package/lib/common/components/hosts/MassChangeHostnameModal.tsx +44 -38
  350. package/lib/common/components/hosts/index.ts +2 -0
  351. package/lib/common/components/hosts/tableColumns.tsx +411 -0
  352. package/lib/common/components/hosts/tableUtils.tsx +4 -409
  353. package/lib/common/components/hosts/types.ts +1 -0
  354. package/lib/common/components/ui/EventsList.tsx +4 -2
  355. package/lib/common/components/ui/PrismCode.tsx +35 -22
  356. package/lib/common/components/ui/formik/LabelField.tsx +77 -60
  357. package/lib/common/components/ui/formik/validationSchemas.ts +64 -107
  358. package/lib/common/components/ui/index.ts +1 -1
  359. package/lib/common/config/constants.ts +33 -2
  360. package/lib/common/types/clusters.ts +0 -1
  361. package/lib/ocm/components/clusterConfiguration/OcmBaseDomainField.tsx +2 -2
  362. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.tsx +12 -23
  363. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationTableBase.tsx +3 -2
  364. package/lib/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.ts +10 -18
  365. package/lib/ocm/components/clusterDetail/ResetClusterModal.tsx +2 -1
  366. package/lib/ocm/components/clusterWizard/OperatorsSelect.tsx +2 -2
  367. package/lib/ocm/components/hosts/ClusterHostsTable.tsx +4 -3
  368. package/lib/ocm/components/hosts/HostsDiscoveryTable.tsx +2 -4
  369. package/lib/ocm/components/hosts/HostsStorageTable.tsx +5 -7
  370. package/lib/ocm/components/hosts/use-hosts-table.tsx +2 -1
  371. package/package.json +3 -3
  372. package/build/@types/common/components/clusterConfiguration/AdvancedNetworkFields.d.ts.map +0 -1
  373. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/AdvancedNetworkFields.d.ts +0 -4
  374. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/AdvancedNetworkFields.d.ts.map +0 -1
  375. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.d.ts +0 -12
  376. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.d.ts.map +0 -1
  377. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.d.ts +0 -11
  378. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.d.ts.map +0 -1
  379. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.d.ts.map +0 -1
  380. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.d.ts +0 -9
  381. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.d.ts.map +0 -1
  382. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/reorderNetworks.d.ts.map +0 -1
  383. package/build/cjs/common/components/clusterConfiguration/AdvancedNetworkFields.js.map +0 -1
  384. package/build/cjs/common/components/ui/formik/LabelField.css +0 -43
  385. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AdvancedNetworkFields.js +0 -53
  386. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AdvancedNetworkFields.js.map +0 -1
  387. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.js +0 -124
  388. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.js.map +0 -1
  389. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.js.map +0 -1
  390. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.js.map +0 -1
  391. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.js +0 -98
  392. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.js.map +0 -1
  393. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/reorderNetworks.js.map +0 -1
  394. package/lib/common/components/ui/formik/LabelField.css +0 -43
  395. package/lib/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.tsx +0 -208
  396. package/lib/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.tsx +0 -283
  397. /package/build/@types/{common/components/clusterConfiguration → cim/components/Hypershift/HostedClusterWizard/NetworkStep}/AdvancedNetworkFields.d.ts +0 -0
@@ -3,14 +3,12 @@ import { getFailingResourceConditions } from '../helpers';
3
3
  import { InfraEnvK8sResource } from '../../types';
4
4
  import { SingleResourceAlerts } from '../common/ResourceAlerts';
5
5
  import { Alert, AlertVariant } from '@patternfly/react-core';
6
- import { ModalBoxBody } from '@patternfly/react-core/deprecated';
7
6
  import { getInfraEnvDocs } from '../common/constants';
8
7
  import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
9
8
 
10
9
  export type EnvironmentErrorsProps = {
11
10
  infraEnv: InfraEnvK8sResource;
12
11
  docVersion: string;
13
- inModal?: boolean;
14
12
  children?: React.ReactNode;
15
13
  };
16
14
 
@@ -18,7 +16,6 @@ export const EnvironmentErrors: React.FC<EnvironmentErrorsProps> = ({
18
16
  infraEnv,
19
17
  docVersion,
20
18
  children,
21
- inModal,
22
19
  }) => {
23
20
  const infraEnvAlerts = getFailingResourceConditions(infraEnv, ['ImageCreated']);
24
21
  const { t } = useTranslation();
@@ -27,7 +24,7 @@ export const EnvironmentErrors: React.FC<EnvironmentErrorsProps> = ({
27
24
  return <>{children}</>;
28
25
  }
29
26
 
30
- const errors = (
27
+ return (
31
28
  <>
32
29
  {!infraEnv.status && (
33
30
  <Alert
@@ -52,6 +49,4 @@ export const EnvironmentErrors: React.FC<EnvironmentErrorsProps> = ({
52
49
  />
53
50
  </>
54
51
  );
55
-
56
- return inModal ? <ModalBoxBody>{errors}</ModalBoxBody> : errors;
57
52
  };
@@ -4,16 +4,18 @@ import { DropdownItem } from '@patternfly/react-core';
4
4
 
5
5
  import { Host } from '@openshift-assisted/types/assisted-installer-service';
6
6
  import {
7
- discoveryTypeColumn,
8
- agentStatusColumn,
9
- clusterColumn,
10
7
  useAgentsTable,
11
8
  useAgentsFilter,
12
- agentHostnameColumn,
13
9
  canEditBMH,
14
10
  canEditAgent,
15
11
  canChangeHostname,
16
12
  } from '../Agent/tableUtils';
13
+ import {
14
+ discoveryTypeColumn,
15
+ agentStatusColumn,
16
+ clusterColumn,
17
+ agentHostnameColumn,
18
+ } from '../Agent/tableColumns';
17
19
  import HostsTable, {
18
20
  DefaultExpandComponent,
19
21
  HostsTableEmptyState,
@@ -25,8 +27,6 @@ import {
25
27
  gpusColumn,
26
28
  memoryColumn,
27
29
  labelsColumn,
28
- } from '../../../common/components/hosts/tableUtils';
29
- import {
30
30
  DiscoveryTroubleshootingModal,
31
31
  MassChangeHostnameModal,
32
32
  DeleteHostAction,
@@ -25,8 +25,8 @@ export const SingleResourceAlerts: React.FC<{
25
25
  const [title, ...messages] = c.message.split(/:|\.,/);
26
26
  return (
27
27
  <React.Fragment key={c.type}>
28
- <Content component={ContentVariants.li}>
29
- <strong>{title}</strong>
28
+ <Content component={ContentVariants.li} className="pf-v6-u-font-weight-bold">
29
+ {title}
30
30
  </Content>
31
31
  {messages.map((m) => (
32
32
  <Content key={m} component={ContentVariants.li}>
@@ -38,8 +38,8 @@ export const SingleResourceAlerts: React.FC<{
38
38
  } else {
39
39
  return (
40
40
  <React.Fragment key={c.type}>
41
- <Content component={ContentVariants.li}>
42
- <strong>{c.type}</strong>
41
+ <Content component={ContentVariants.li} className="pf-v6-u-font-weight-bold">
42
+ {c.type}
43
43
  </Content>
44
44
  <Content component={ContentVariants.li}>{c.reason || ''}</Content>
45
45
  </React.Fragment>
@@ -22,6 +22,11 @@ export const bmhStatus = (t: TFunction): HostStatus<string> => ({
22
22
  title: t('ai:Provisioning'),
23
23
  category: 'Bare Metal Host related',
24
24
  },
25
+ deleting: {
26
+ key: 'deleting',
27
+ title: t('ai:Deleting'),
28
+ category: 'Bare Metal Host related',
29
+ },
25
30
  provisioned: {
26
31
  key: 'provisioned',
27
32
  title: t('ai:Provisioned'),
@@ -156,18 +156,16 @@ export const getAICluster = ({
156
156
  name: clusterDeployment.spec?.clusterName,
157
157
  baseDnsDomain: clusterDeployment.spec?.baseDomain,
158
158
  openshiftVersion: installVersion,
159
- apiVips:
160
- agentClusterInstall?.status?.apiVIP || agentClusterInstall?.spec?.apiVIP
161
- ? [
162
- {
163
- ip: agentClusterInstall?.status?.apiVIP || agentClusterInstall?.spec?.apiVIP,
164
- },
165
- ]
166
- : [],
167
- ingressVips:
168
- agentClusterInstall?.status?.ingressVIP || agentClusterInstall?.spec?.ingressVIP
169
- ? [{ ip: agentClusterInstall?.status?.ingressVIP || agentClusterInstall?.spec?.ingressVIP }]
170
- : [],
159
+ apiVips: agentClusterInstall?.spec?.apiVIPs?.length
160
+ ? (agentClusterInstall?.spec?.apiVIPs || []).map((ip) => ({ ip }))
161
+ : agentClusterInstall?.spec?.apiVIP
162
+ ? [{ ip: agentClusterInstall?.spec?.apiVIP }]
163
+ : [],
164
+ ingressVips: agentClusterInstall?.spec?.ingressVIPs?.length
165
+ ? (agentClusterInstall?.spec?.ingressVIPs || []).map((ip) => ({ ip }))
166
+ : agentClusterInstall?.spec?.ingressVIP
167
+ ? [{ ip: agentClusterInstall?.spec?.ingressVIP }]
168
+ : [],
171
169
  highAvailabilityMode:
172
170
  agentClusterInstall?.spec?.provisionRequirements?.controlPlaneAgents === 1 ? 'None' : 'Full',
173
171
  status,
@@ -178,9 +176,11 @@ export const getAICluster = ({
178
176
  sshPublicKey: agentClusterInstall?.spec?.sshPublicKey,
179
177
  clusterNetworkHostPrefix:
180
178
  agentClusterInstall?.spec?.networking?.clusterNetwork?.[0]?.hostPrefix,
181
- clusterNetworkCidr: agentClusterInstall?.spec?.networking?.clusterNetwork?.[0]?.cidr,
182
- serviceNetworkCidr: agentClusterInstall?.spec?.networking?.serviceNetwork?.[0],
183
- machineNetworkCidr: agentClusterInstall?.spec?.networking?.machineNetwork?.[0]?.cidr,
179
+ clusterNetworks: agentClusterInstall?.spec?.networking?.clusterNetwork,
180
+ serviceNetworks: agentClusterInstall?.spec?.networking?.serviceNetwork?.map((cidr) => ({
181
+ cidr,
182
+ })),
183
+ machineNetworks: agentClusterInstall?.spec?.networking?.machineNetwork,
184
184
  monitoredOperators: [],
185
185
  vipDhcpAllocation: false,
186
186
  userManagedNetworking: Boolean(
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { Modal, ModalVariant } from '@patternfly/react-core/deprecated';
2
+ import { Modal, ModalBody, ModalHeader, ModalVariant } from '@patternfly/react-core';
3
3
  import BMCForm from '../Agent/BMCForm';
4
4
  import { AddBmcHostModalProps } from './types';
5
5
  import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
@@ -20,23 +20,24 @@ const AddBmcHostModal: React.FC<AddBmcHostModalProps> = ({
20
20
  return (
21
21
  <Modal
22
22
  aria-label={t('ai:Add BMC host dialog')}
23
- title={t('ai:Add host using Baseboard Management Controller (BMC)')}
24
23
  isOpen={isOpen}
25
24
  onClose={onClose}
26
25
  variant={ModalVariant.medium}
27
- hasNoBodyWrapper
28
26
  id="add-host-modal"
29
27
  >
30
- <EnvironmentErrors infraEnv={infraEnv} docVersion={docVersion} inModal>
31
- <ProvisioningConfigErrorAlert error={provisioningConfigError} />
32
- <BMCForm
33
- onCreateBMH={onCreateBMH}
34
- onClose={onClose}
35
- hasDHCP={hasDHCP}
36
- infraEnv={infraEnv}
37
- usedHostnames={usedHostnames}
38
- />
39
- </EnvironmentErrors>
28
+ <ModalHeader title={t('ai:Add host using Baseboard Management Controller (BMC)')} />
29
+ <ModalBody>
30
+ <EnvironmentErrors infraEnv={infraEnv} docVersion={docVersion}>
31
+ <ProvisioningConfigErrorAlert error={provisioningConfigError} />
32
+ <BMCForm
33
+ onCreateBMH={onCreateBMH}
34
+ onClose={onClose}
35
+ hasDHCP={hasDHCP}
36
+ infraEnv={infraEnv}
37
+ usedHostnames={usedHostnames}
38
+ />
39
+ </EnvironmentErrors>
40
+ </ModalBody>
40
41
  </Modal>
41
42
  );
42
43
  };
@@ -8,11 +8,12 @@ import {
8
8
  EmptyState,
9
9
  EmptyStateBody,
10
10
  EmptyStateVariant,
11
+ ModalBody,
12
+ ModalFooter,
11
13
  Spinner,
12
14
  Stack,
13
15
  StackItem,
14
16
  } from '@patternfly/react-core';
15
- import { ModalBoxBody, ModalBoxFooter } from '@patternfly/react-core/deprecated';
16
17
  import { ErrorCircleOIcon } from '@patternfly/react-icons/dist/js/icons/error-circle-o-icon';
17
18
  import { UploadIcon } from '@patternfly/react-icons/dist/js/icons/upload-icon';
18
19
  import jsYaml from 'js-yaml';
@@ -126,7 +127,7 @@ const AddBmcHostYamlForm: React.FC<
126
127
 
127
128
  return (
128
129
  <>
129
- <ModalBoxBody>
130
+ <ModalBody>
130
131
  <Stack hasGutter>
131
132
  <StackItem>
132
133
  <EmptyState
@@ -211,8 +212,8 @@ const AddBmcHostYamlForm: React.FC<
211
212
  </StackItem>
212
213
  )}
213
214
  </Stack>
214
- </ModalBoxBody>
215
- <ModalBoxFooter>
215
+ </ModalBody>
216
+ <ModalFooter>
216
217
  <Button
217
218
  onClick={() => {
218
219
  void handleSubmit();
@@ -224,7 +225,7 @@ const AddBmcHostYamlForm: React.FC<
224
225
  <Button onClick={onClose} variant={ButtonVariant.secondary}>
225
226
  {t('ai:Cancel')}
226
227
  </Button>
227
- </ModalBoxFooter>
228
+ </ModalFooter>
228
229
  </>
229
230
  );
230
231
  };
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { Modal, ModalVariant } from '@patternfly/react-core/deprecated';
2
+ import { Modal, ModalBody, ModalHeader, ModalVariant } from '@patternfly/react-core';
3
3
  import { UploadActionModalProps } from './types';
4
4
  import AddBmcHostYamlForm from './AddBmcHostYamlForm';
5
5
  import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
@@ -18,16 +18,17 @@ const AddBmcHostYamlModal: React.FC<UploadActionModalProps> = ({
18
18
  return (
19
19
  <Modal
20
20
  aria-label={t('ai:Add host dialog')}
21
- title={t('ai:Add hosts by uploading YAML (BMC)')}
22
21
  variant={ModalVariant.medium}
23
22
  isOpen={isOpen}
24
23
  onClose={onClose}
25
- hasNoBodyWrapper
26
24
  >
27
- <EnvironmentErrors infraEnv={infraEnv} docVersion={docVersion} inModal>
28
- <ProvisioningConfigErrorAlert error={provisioningConfigError} />
29
- <AddBmcHostYamlForm onClose={onClose} onCreateBmcByYaml={onCreateBmcByYaml} />
30
- </EnvironmentErrors>
25
+ <ModalHeader title={t('ai:Add hosts by uploading YAML (BMC)')} />
26
+ <ModalBody>
27
+ <EnvironmentErrors infraEnv={infraEnv} docVersion={docVersion}>
28
+ <ProvisioningConfigErrorAlert error={provisioningConfigError} />
29
+ <AddBmcHostYamlForm onClose={onClose} onCreateBmcByYaml={onCreateBmcByYaml} />
30
+ </EnvironmentErrors>
31
+ </ModalBody>
31
32
  </Modal>
32
33
  );
33
34
  };
@@ -1,7 +1,14 @@
1
1
  import * as React from 'react';
2
2
  import { FormikHelpers } from 'formik';
3
- import { EmptyState, EmptyStateBody, Spinner } from '@patternfly/react-core';
4
- import { Modal, ModalVariant } from '@patternfly/react-core/deprecated';
3
+ import {
4
+ EmptyState,
5
+ EmptyStateBody,
6
+ Modal,
7
+ ModalBody,
8
+ ModalHeader,
9
+ ModalVariant,
10
+ Spinner,
11
+ } from '@patternfly/react-core';
5
12
  import { DownloadIso, DiscoveryImageConfigForm, DiscoveryImageFormValues } from '../../../common';
6
13
  import { AddHostModalProps } from './types';
7
14
  import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
@@ -54,14 +61,13 @@ const AddHostModal: React.FC<AddHostModalProps> = ({
54
61
  return (
55
62
  <Modal
56
63
  aria-label={t('ai:Add host dialog')}
57
- title={t('ai:Add host')}
58
64
  isOpen={isOpen}
59
65
  onClose={onClose}
60
66
  variant={ModalVariant.small}
61
- hasNoBodyWrapper
62
67
  id="add-host-modal"
63
68
  >
64
- <EnvironmentErrors infraEnv={infraEnv} docVersion={docVersion} inModal>
69
+ <ModalHeader title={t('ai:Add hosts')} />
70
+ <EnvironmentErrors infraEnv={infraEnv} docVersion={docVersion}>
65
71
  {dialogType === 'config' && (
66
72
  <DiscoveryImageConfigForm
67
73
  onCancel={onClose}
@@ -78,6 +84,7 @@ const AddHostModal: React.FC<AddHostModalProps> = ({
78
84
  docVersion={docVersion}
79
85
  />
80
86
  )}
87
+
81
88
  {dialogType === 'download' && (
82
89
  <>
83
90
  {isIPXE ? (
@@ -129,9 +136,11 @@ const GeneratingIsoDownload = ({
129
136
  ciscoUrl={ciscoUrl}
130
137
  />
131
138
  ) : (
132
- <EmptyState icon={Spinner}>
133
- <EmptyStateBody>{t('ai:Generating discovery ISO')}</EmptyStateBody>
134
- </EmptyState>
139
+ <ModalBody>
140
+ <EmptyState icon={Spinner}>
141
+ <EmptyStateBody>{t('ai:Generating discovery ISO')}</EmptyStateBody>
142
+ </EmptyState>
143
+ </ModalBody>
135
144
  );
136
145
  };
137
146
 
@@ -152,9 +161,11 @@ const GeneratingIPXEDownload = ({
152
161
  onReset={onReset}
153
162
  />
154
163
  ) : (
155
- <EmptyState icon={Spinner}>
156
- <EmptyStateBody>{t('ai:Generating iPXE script')}</EmptyStateBody>
157
- </EmptyState>
164
+ <ModalBody>
165
+ <EmptyState icon={Spinner}>
166
+ <EmptyStateBody>{t('ai:Generating iPXE script')}</EmptyStateBody>
167
+ </EmptyState>
168
+ </ModalBody>
158
169
  );
159
170
  };
160
171
 
@@ -8,8 +8,12 @@ import {
8
8
  StackItem,
9
9
  Stack,
10
10
  Content,
11
+ Modal,
12
+ ModalVariant,
13
+ ModalFooter,
14
+ ModalBody,
15
+ ModalHeader,
11
16
  } from '@patternfly/react-core';
12
- import { Modal, ModalVariant } from '@patternfly/react-core/deprecated';
13
17
  import { Formik, FormikHelpers } from 'formik';
14
18
  import parseUrl from 'parse-url';
15
19
 
@@ -126,85 +130,85 @@ export const CimConfigurationModal: React.FC<CimConfigurationModalProps> = ({
126
130
  validationSchema={validationSchema}
127
131
  onSubmit={onConfigure}
128
132
  >
129
- {({ values, handleSubmit, isValid, isSubmitting }) => (
133
+ {({ handleSubmit, isValid, isSubmitting }) => (
130
134
  <Modal
131
135
  aria-label={t('ai:Configure host inventory settings')}
132
- title={t('ai:Configure host inventory settings')}
133
136
  isOpen={isOpen}
134
137
  onClose={onClose}
135
- actions={
136
- isConfigure
137
- ? [
138
- <Button
139
- key="configure"
140
- variant={ButtonVariant.primary}
141
- isDisabled={
142
- !!(
143
- isSubmitting ||
144
- !isValid ||
145
- (isEdit && configureLoadBalancerInitial === values.configureLoadBalancer)
146
- )
147
- }
148
- onClick={() => void handleSubmit()}
149
- >
150
- {t('ai:Configure')}
151
- </Button>,
152
- <Button key="cancel" variant={ButtonVariant.link} onClick={onClose}>
153
- {t('ai:Cancel')}
154
- </Button>,
155
- ]
156
- : [
157
- <Button key="close" variant={ButtonVariant.primary} onClick={onClose}>
158
- {t('ai:Close')}
159
- </Button>,
160
- ]
161
- }
162
138
  variant={ModalVariant.medium}
163
139
  id="cim-config-modal"
164
140
  >
165
- <Stack hasGutter>
166
- <StackItem>
167
- <Content>
168
- {t(
169
- 'ai:Configuring the host inventory settings will enable the Central Infrastructure Management.',
170
- )}
171
- </Content>
172
- </StackItem>
173
-
174
- {isError && (
141
+ <ModalHeader title={t('ai:Configure host inventory settings')} />
142
+ <ModalBody>
143
+ <Stack hasGutter>
175
144
  <StackItem>
176
- <Alert title={error.title} variant={error.variant || AlertVariant.danger} isInline>
177
- {error.message}
178
- </Alert>
145
+ <Content>
146
+ {t(
147
+ 'ai:Configuring the host inventory settings will enable the Central Infrastructure Management.',
148
+ )}
149
+ </Content>
179
150
  </StackItem>
180
- )}
181
151
 
182
- <StackItem>
183
- <CimConfigDisconnectedAlert docDisconnectedUrl={docDisconnectedUrl} />
184
- </StackItem>
185
-
186
- <StackItem>
187
- <CimConfigurationFormFields
188
- isEdit={isEdit}
189
- platform={platform}
190
- isInProgressPeriod={isInProgressPeriod}
191
- docConfigUrl={docConfigUrl}
192
- docConfigAwsUrl={docConfigAwsUrl}
193
- configureLoadBalancerInitial={configureLoadBalancerInitial}
194
- setConfigureLoadBalancerInitial={setConfigureLoadBalancerInitial}
195
- />
196
- </StackItem>
197
-
198
- {isConfigure && (
152
+ {isError && (
153
+ <StackItem>
154
+ <Alert
155
+ title={error.title}
156
+ variant={error.variant || AlertVariant.danger}
157
+ isInline
158
+ >
159
+ {error.message}
160
+ </Alert>
161
+ </StackItem>
162
+ )}
163
+
199
164
  <StackItem>
200
- <Alert
201
- variant={AlertVariant.warning}
202
- title={t('ai:Storage sizes cannot be changed once you configure.')}
203
- isInline
165
+ <CimConfigDisconnectedAlert docDisconnectedUrl={docDisconnectedUrl} />
166
+ </StackItem>
167
+
168
+ <StackItem>
169
+ <CimConfigurationFormFields
170
+ isEdit={isEdit}
171
+ platform={platform}
172
+ isInProgressPeriod={isInProgressPeriod}
173
+ docConfigUrl={docConfigUrl}
174
+ docConfigAwsUrl={docConfigAwsUrl}
175
+ configureLoadBalancerInitial={configureLoadBalancerInitial}
176
+ setConfigureLoadBalancerInitial={setConfigureLoadBalancerInitial}
204
177
  />
205
178
  </StackItem>
179
+
180
+ {isConfigure && (
181
+ <StackItem>
182
+ <Alert
183
+ variant={AlertVariant.warning}
184
+ title={t('ai:Storage sizes cannot be changed once you configure.')}
185
+ isInline
186
+ />
187
+ </StackItem>
188
+ )}
189
+ </Stack>
190
+ </ModalBody>
191
+ <ModalFooter>
192
+ {isConfigure ? (
193
+ <>
194
+ <Button
195
+ key="configure"
196
+ variant={ButtonVariant.primary}
197
+ isDisabled={!!(isSubmitting || !isValid)}
198
+ onClick={() => void handleSubmit()}
199
+ >
200
+ {t('ai:Configure')}
201
+ </Button>
202
+ <Button key="cancel" variant={ButtonVariant.link} onClick={onClose}>
203
+ {t('ai:Cancel')}
204
+ </Button>
205
+ </>
206
+ ) : (
207
+ <Button key="close" variant={ButtonVariant.primary} onClick={onClose}>
208
+ {t('ai:Close')}
209
+ </Button>
206
210
  )}
207
- </Stack>
211
+ </ModalFooter>
208
212
  </Modal>
209
213
  )}
210
214
  </Formik>
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { Modal, ModalVariant } from '@patternfly/react-core/deprecated';
2
+ import { Modal, ModalHeader, ModalVariant } from '@patternfly/react-core';
3
3
  import BMCForm from '../Agent/BMCForm';
4
4
  import { SecretK8sResource } from '../../types';
5
5
  import { LoadingState } from '../../../common';
@@ -52,13 +52,12 @@ const EditBMHModal: React.FC<EditBMHModalProps> = ({
52
52
  return (
53
53
  <Modal
54
54
  aria-label={t('ai:Edit BMH dialog')}
55
- title={t('ai:Edit BMH')}
56
55
  isOpen={isOpen}
57
56
  onClose={onClose}
58
57
  variant={ModalVariant.small}
59
- hasNoBodyWrapper
60
58
  id="edit-bmh-modal"
61
59
  >
60
+ <ModalHeader title={t('ai:Edit BMH')} />
62
61
  {isLoading ? (
63
62
  <LoadingState />
64
63
  ) : (
@@ -1,11 +1,17 @@
1
1
  import * as React from 'react';
2
- import { Alert, Button, ButtonVariant, Form, Stack, StackItem } from '@patternfly/react-core';
3
2
  import {
3
+ Alert,
4
+ Button,
5
+ ButtonVariant,
6
+ Form,
4
7
  Modal,
5
- ModalBoxBody,
6
- ModalBoxFooter,
8
+ ModalBody,
9
+ ModalFooter,
10
+ ModalHeader,
7
11
  ModalVariant,
8
- } from '@patternfly/react-core/deprecated';
12
+ Stack,
13
+ StackItem,
14
+ } from '@patternfly/react-core';
9
15
  import { Formik, FormikProps } from 'formik';
10
16
  import { InfraEnvK8sResource } from '../../types';
11
17
  import { RadioField, AdditionalNTPSourcesField } from '../../../common';
@@ -34,13 +40,12 @@ const EditNtpSourcesModal: React.FC<EditNtpSourcesModalProps> = ({
34
40
  return (
35
41
  <Modal
36
42
  aria-label={t('ai:Edit Ntp sources dialog')}
37
- title={t('ai:Edit NTP sources')}
38
43
  isOpen={isOpen}
39
44
  onClose={onClose}
40
45
  variant={ModalVariant.small}
41
- hasNoBodyWrapper
42
46
  id="edit-ntp-sources-modal"
43
47
  >
48
+ <ModalHeader title={t('ai:Edit NTP sources')} />
44
49
  <Formik<EditNtpSourcesFormikValues>
45
50
  initialValues={{
46
51
  enableNtpSources: infraEnv.spec?.additionalNTPSources ? 'additional' : 'auto',
@@ -64,7 +69,7 @@ const EditNtpSourcesModal: React.FC<EditNtpSourcesModalProps> = ({
64
69
  }: FormikProps<EditNtpSourcesFormikValues>) => {
65
70
  return (
66
71
  <>
67
- <ModalBoxBody>
72
+ <ModalBody>
68
73
  <Form>
69
74
  <Stack hasGutter>
70
75
  <StackItem>
@@ -106,8 +111,8 @@ const EditNtpSourcesModal: React.FC<EditNtpSourcesModalProps> = ({
106
111
  )}
107
112
  </Stack>
108
113
  </Form>
109
- </ModalBoxBody>
110
- <ModalBoxFooter>
114
+ </ModalBody>
115
+ <ModalFooter>
111
116
  {/* eslint-disable-next-line @typescript-eslint/no-misused-promises */}
112
117
  <Button onClick={submitForm} isDisabled={isSubmitting || !isValid}>
113
118
  {t('ai:Save')}
@@ -115,7 +120,7 @@ const EditNtpSourcesModal: React.FC<EditNtpSourcesModalProps> = ({
115
120
  <Button onClick={onClose} variant={ButtonVariant.secondary}>
116
121
  {t('ai:Cancel')}
117
122
  </Button>
118
- </ModalBoxFooter>
123
+ </ModalFooter>
119
124
  </>
120
125
  );
121
126
  }}
@@ -1,12 +1,18 @@
1
1
  import * as React from 'react';
2
2
  import * as Yup from 'yup';
3
- import { Alert, Button, ButtonVariant, Form, Stack, StackItem } from '@patternfly/react-core';
4
3
  import {
4
+ Alert,
5
+ Button,
6
+ ButtonVariant,
7
+ Form,
5
8
  Modal,
6
- ModalBoxBody,
7
- ModalBoxFooter,
9
+ ModalBody,
10
+ ModalFooter,
11
+ ModalHeader,
8
12
  ModalVariant,
9
- } from '@patternfly/react-core/deprecated';
13
+ Stack,
14
+ StackItem,
15
+ } from '@patternfly/react-core';
10
16
  import { EditProxyModalProps } from './types';
11
17
  import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
12
18
  import { ProxyInputFields } from '../../../common/components/clusterConfiguration/ProxyFields';
@@ -40,7 +46,7 @@ const Footer = ({ onClose }: { onClose: VoidFunction }) => {
40
46
  const { t } = useTranslation();
41
47
  const { isSubmitting, submitForm, isValid } = useFormikContext();
42
48
  return (
43
- <ModalBoxFooter>
49
+ <ModalFooter>
44
50
  <Button
45
51
  onClick={() => void submitForm()}
46
52
  isDisabled={isSubmitting || !isValid}
@@ -51,7 +57,7 @@ const Footer = ({ onClose }: { onClose: VoidFunction }) => {
51
57
  <Button onClick={onClose} variant={ButtonVariant.secondary}>
52
58
  {t('ai:Cancel')}
53
59
  </Button>
54
- </ModalBoxFooter>
60
+ </ModalFooter>
55
61
  );
56
62
  };
57
63
 
@@ -69,15 +75,15 @@ const EditProxyModal: React.FC<EditProxyModalProps> = ({
69
75
  !!infraEnv.spec?.proxy?.httpProxy ||
70
76
  !!infraEnv.spec?.proxy?.httpsProxy ||
71
77
  !!infraEnv.spec?.proxy?.noProxy;
78
+
72
79
  return (
73
80
  <Modal
74
81
  aria-label={t('ai:Edit proxy settings')}
75
- title={t('ai:Edit proxy settings')}
76
82
  isOpen
77
83
  onClose={onClose}
78
84
  variant={ModalVariant.medium}
79
- hasNoBodyWrapper
80
85
  >
86
+ <ModalHeader title={t('ai:Edit proxy settings')} />
81
87
  <Formik<ProxyFieldsType>
82
88
  initialValues={{
83
89
  httpProxy: infraEnv.spec?.proxy?.httpProxy,
@@ -97,7 +103,7 @@ const EditProxyModal: React.FC<EditProxyModalProps> = ({
97
103
  }}
98
104
  >
99
105
  <>
100
- <ModalBoxBody>
106
+ <ModalBody>
101
107
  <Stack hasGutter>
102
108
  <StackItem>
103
109
  <Alert isInline variant="warning" title={warningMsg} />
@@ -113,7 +119,7 @@ const EditProxyModal: React.FC<EditProxyModalProps> = ({
113
119
  </Form>
114
120
  </StackItem>
115
121
  </Stack>
116
- </ModalBoxBody>
122
+ </ModalBody>
117
123
  <Footer onClose={onClose} />
118
124
  </>
119
125
  </Formik>