@openshift-assisted/ui-lib 2.9.8-cim → 2.9.10-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 (283) hide show
  1. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.d.ts +6 -1
  2. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.d.ts.map +1 -1
  3. package/build/@types/cim/components/ClusterDeployment/ClusterDetailsFormFields.d.ts.map +1 -1
  4. package/build/@types/cim/components/ClusterDeployment/ScaleUpForm.d.ts +1 -0
  5. package/build/@types/cim/components/ClusterDeployment/ScaleUpForm.d.ts.map +1 -1
  6. package/build/@types/cim/components/InfraEnv/utils.d.ts.map +1 -1
  7. package/build/@types/cim/components/helpers/versions.d.ts +1 -0
  8. package/build/@types/cim/components/helpers/versions.d.ts.map +1 -1
  9. package/build/@types/cim/components/modals/ScaleUpModal.d.ts +1 -0
  10. package/build/@types/cim/components/modals/ScaleUpModal.d.ts.map +1 -1
  11. package/build/@types/cim/types/k8s/agent-cluster-install.d.ts +1 -1
  12. package/build/@types/cim/types/k8s/agent-cluster-install.d.ts.map +1 -1
  13. package/build/@types/common/api/accounts-management-service/current-account-api.d.ts +6 -0
  14. package/build/@types/common/api/accounts-management-service/current-account-api.d.ts.map +1 -0
  15. package/build/@types/common/api/accounts-management-service/organizations-api.d.ts +6 -0
  16. package/build/@types/common/api/accounts-management-service/organizations-api.d.ts.map +1 -0
  17. package/build/@types/common/api/assisted-service/UISettingsAPI.d.ts +8 -0
  18. package/build/@types/common/api/assisted-service/UISettingsAPI.d.ts.map +1 -0
  19. package/build/@types/common/api/assisted-service/index.d.ts +1 -0
  20. package/build/@types/common/api/assisted-service/index.d.ts.map +1 -1
  21. package/build/@types/common/api/authorization-service/all-apis.d.ts +7 -0
  22. package/build/@types/common/api/authorization-service/all-apis.d.ts.map +1 -0
  23. package/build/@types/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionControlGroup.d.ts.map +1 -1
  24. package/build/@types/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionMode.d.ts +3 -1
  25. package/build/@types/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionMode.d.ts.map +1 -1
  26. package/build/@types/common/components/clusterConfiguration/DiskEncryptionFields/TangServers.d.ts +3 -1
  27. package/build/@types/common/components/clusterConfiguration/DiskEncryptionFields/TangServers.d.ts.map +1 -1
  28. package/build/@types/common/components/clusterConfiguration/OpenShiftVersionSelect.d.ts +2 -0
  29. package/build/@types/common/components/clusterConfiguration/OpenShiftVersionSelect.d.ts.map +1 -1
  30. package/build/@types/common/components/clusterDetail/PostInstallAlert.d.ts +6 -0
  31. package/build/@types/common/components/clusterDetail/PostInstallAlert.d.ts.map +1 -0
  32. package/build/@types/common/components/clusterDetail/index.d.ts +1 -0
  33. package/build/@types/common/components/clusterDetail/index.d.ts.map +1 -1
  34. package/build/@types/common/components/clusterWizard/ReviewValidations.d.ts.map +1 -1
  35. package/build/@types/common/components/ui/NoPermissionsError.d.ts +3 -0
  36. package/build/@types/common/components/ui/NoPermissionsError.d.ts.map +1 -0
  37. package/build/@types/common/components/ui/formik/InputField.d.ts.map +1 -1
  38. package/build/@types/common/components/ui/formik/RichInputField.d.ts.map +1 -1
  39. package/build/@types/common/components/ui/formik/types.d.ts +2 -2
  40. package/build/@types/common/components/ui/formik/types.d.ts.map +1 -1
  41. package/build/@types/common/components/ui/index.d.ts +1 -0
  42. package/build/@types/common/components/ui/index.d.ts.map +1 -1
  43. package/build/@types/common/config/constants.d.ts.map +1 -1
  44. package/build/@types/common/features/featureGate.d.ts +1 -1
  45. package/build/@types/common/features/featureGate.d.ts.map +1 -1
  46. package/build/@types/common/types/cpuArchitecture.d.ts +1 -1
  47. package/build/@types/common/types/cpuArchitecture.d.ts.map +1 -1
  48. package/build/@types/ocm/components/AddHosts/AddHosts.d.ts.map +1 -1
  49. package/build/@types/ocm/components/AddHosts/InventoryAddHost.d.ts +1 -2
  50. package/build/@types/ocm/components/AddHosts/InventoryAddHost.d.ts.map +1 -1
  51. package/build/@types/ocm/components/AddHosts/day2Wizard/Day2ClusterDetails.d.ts.map +1 -1
  52. package/build/@types/ocm/components/AddHosts/day2Wizard/Day2StaticIpHostConfigurations.d.ts +3 -1
  53. package/build/@types/ocm/components/AddHosts/day2Wizard/Day2StaticIpHostConfigurations.d.ts.map +1 -1
  54. package/build/@types/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContent.d.ts.map +1 -1
  55. package/build/@types/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContentErrors.d.ts +1 -4
  56. package/build/@types/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContentErrors.d.ts.map +1 -1
  57. package/build/@types/ocm/components/clusterConfiguration/CpuArchitectureDropdown.d.ts +3 -2
  58. package/build/@types/ocm/components/clusterConfiguration/CpuArchitectureDropdown.d.ts.map +1 -1
  59. package/build/@types/ocm/components/clusterConfiguration/CustomManifestCheckbox.d.ts.map +1 -1
  60. package/build/@types/ocm/components/clusterConfiguration/OcmBaseDomainField.d.ts +2 -1
  61. package/build/@types/ocm/components/clusterConfiguration/OcmBaseDomainField.d.ts.map +1 -1
  62. package/build/@types/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.d.ts.map +1 -1
  63. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.d.ts +1 -1
  64. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.d.ts.map +1 -1
  65. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.d.ts.map +1 -1
  66. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/utils.d.ts +3 -4
  67. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/utils.d.ts.map +1 -1
  68. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/data/dataTypes.d.ts +0 -1
  69. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/data/dataTypes.d.ts.map +1 -1
  70. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.d.ts.map +1 -1
  71. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.d.ts +1 -1
  72. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.d.ts.map +1 -1
  73. package/build/@types/ocm/components/clusterDetail/ClusterDetailStatusMessages.d.ts.map +1 -1
  74. package/build/@types/ocm/components/clusterWizard/ClusterDetails.d.ts.map +1 -1
  75. package/build/@types/ocm/components/clusterWizard/ClusterDetailsForm.d.ts +1 -2
  76. package/build/@types/ocm/components/clusterWizard/ClusterDetailsForm.d.ts.map +1 -1
  77. package/build/@types/ocm/components/clusterWizard/ClusterWizardContext.d.ts +5 -3
  78. package/build/@types/ocm/components/clusterWizard/ClusterWizardContext.d.ts.map +1 -1
  79. package/build/@types/ocm/components/clusterWizard/ClusterWizardContextProvider.d.ts.map +1 -1
  80. package/build/@types/ocm/components/ui/OcmFormFields.d.ts +1 -1
  81. package/build/@types/ocm/hooks/index.d.ts +1 -0
  82. package/build/@types/ocm/hooks/index.d.ts.map +1 -1
  83. package/build/@types/ocm/hooks/useOpenshiftVersions.d.ts +1 -2
  84. package/build/@types/ocm/hooks/useOpenshiftVersions.d.ts.map +1 -1
  85. package/build/@types/ocm/hooks/useSupportLevelsAPI.d.ts +4 -4
  86. package/build/@types/ocm/hooks/useSupportLevelsAPI.d.ts.map +1 -1
  87. package/build/@types/ocm/hooks/useUISettings.d.ts +10 -0
  88. package/build/@types/ocm/hooks/useUISettings.d.ts.map +1 -0
  89. package/build/@types/ocm/services/ClusterDetailsService.d.ts +2 -1
  90. package/build/@types/ocm/services/ClusterDetailsService.d.ts.map +1 -1
  91. package/build/@types/ocm/services/ClustersService.d.ts +0 -1
  92. package/build/@types/ocm/services/ClustersService.d.ts.map +1 -1
  93. package/build/@types/ocm/services/Day2ClusterService.d.ts +3 -2
  94. package/build/@types/ocm/services/Day2ClusterService.d.ts.map +1 -1
  95. package/build/@types/ocm/services/UISettingsService.d.ts +8 -0
  96. package/build/@types/ocm/services/UISettingsService.d.ts.map +1 -0
  97. package/build/@types/ocm/services/index.d.ts +1 -0
  98. package/build/@types/ocm/services/index.d.ts.map +1 -1
  99. package/build/@types/ocm/services/types.d.ts +4 -0
  100. package/build/@types/ocm/services/types.d.ts.map +1 -1
  101. package/build/cjs/cim/components/Agent/BMCForm.js +3 -3
  102. package/build/cjs/cim/components/Agent/BMCForm.js.map +1 -1
  103. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.js +9 -5
  104. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.js.map +1 -1
  105. package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js +6 -2
  106. package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js.map +1 -1
  107. package/build/cjs/cim/components/ClusterDeployment/ScaleUpForm.js +7 -4
  108. package/build/cjs/cim/components/ClusterDeployment/ScaleUpForm.js.map +1 -1
  109. package/build/cjs/cim/components/InfraEnv/utils.js +6 -6
  110. package/build/cjs/cim/components/InfraEnv/utils.js.map +1 -1
  111. package/build/cjs/cim/components/helpers/versions.js +3 -1
  112. package/build/cjs/cim/components/helpers/versions.js.map +1 -1
  113. package/build/cjs/cim/components/modals/ScaleUpModal.js +2 -2
  114. package/build/cjs/cim/components/modals/ScaleUpModal.js.map +1 -1
  115. package/build/cjs/common/api/accounts-management-service/access-token-api.js +1 -1
  116. package/build/cjs/common/api/accounts-management-service/current-account-api.js +17 -0
  117. package/build/cjs/common/api/accounts-management-service/current-account-api.js.map +1 -0
  118. package/build/cjs/common/api/accounts-management-service/organizations-api.js +19 -0
  119. package/build/cjs/common/api/accounts-management-service/organizations-api.js.map +1 -0
  120. package/build/cjs/common/api/assisted-service/UISettingsAPI.js +21 -0
  121. package/build/cjs/common/api/assisted-service/UISettingsAPI.js.map +1 -0
  122. package/build/cjs/common/api/assisted-service/index.js +3 -1
  123. package/build/cjs/common/api/assisted-service/index.js.map +1 -1
  124. package/build/cjs/common/api/authorization-service/all-apis.js +23 -0
  125. package/build/cjs/common/api/authorization-service/all-apis.js.map +1 -0
  126. package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionControlGroup.js +1 -1
  127. package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionControlGroup.js.map +1 -1
  128. package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionMode.js +6 -4
  129. package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionMode.js.map +1 -1
  130. package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/TangServers.js +5 -3
  131. package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/TangServers.js.map +1 -1
  132. package/build/cjs/common/components/clusterConfiguration/OpenShiftVersionSelect.js +2 -2
  133. package/build/cjs/common/components/clusterConfiguration/OpenShiftVersionSelect.js.map +1 -1
  134. package/build/cjs/common/components/clusterDetail/PostInstallAlert.js +16 -0
  135. package/build/cjs/common/components/clusterDetail/PostInstallAlert.js.map +1 -0
  136. package/build/cjs/common/components/clusterDetail/index.js +3 -1
  137. package/build/cjs/common/components/clusterDetail/index.js.map +1 -1
  138. package/build/cjs/common/components/clusterWizard/ReviewValidations.js +3 -0
  139. package/build/cjs/common/components/clusterWizard/ReviewValidations.js.map +1 -1
  140. package/build/cjs/common/components/ui/NoPermissionsError.js +14 -0
  141. package/build/cjs/common/components/ui/NoPermissionsError.js.map +1 -0
  142. package/build/cjs/common/components/ui/formik/InputField.js +5 -5
  143. package/build/cjs/common/components/ui/formik/InputField.js.map +1 -1
  144. package/build/cjs/common/components/ui/formik/RichInputField.js +5 -2
  145. package/build/cjs/common/components/ui/formik/RichInputField.js.map +1 -1
  146. package/build/cjs/common/components/ui/formik/SelectField.js +1 -1
  147. package/build/cjs/common/components/ui/formik/SelectField.js.map +1 -1
  148. package/build/cjs/common/components/ui/index.js +3 -1
  149. package/build/cjs/common/components/ui/index.js.map +1 -1
  150. package/build/cjs/common/config/constants.js +1 -0
  151. package/build/cjs/common/config/constants.js.map +1 -1
  152. package/build/cjs/common/features/featureGate.js +1 -3
  153. package/build/cjs/common/features/featureGate.js.map +1 -1
  154. package/build/cjs/common/types/cpuArchitecture.js +5 -9
  155. package/build/cjs/common/types/cpuArchitecture.js.map +1 -1
  156. package/build/cjs/ocm/components/AddHosts/AddHosts.js +1 -2
  157. package/build/cjs/ocm/components/AddHosts/AddHosts.js.map +1 -1
  158. package/build/cjs/ocm/components/AddHosts/InventoryAddHost.js +2 -2
  159. package/build/cjs/ocm/components/AddHosts/InventoryAddHost.js.map +1 -1
  160. package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2ClusterDetails.js +4 -4
  161. package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2ClusterDetails.js.map +1 -1
  162. package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2StaticIpHostConfigurations.js +7 -6
  163. package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2StaticIpHostConfigurations.js.map +1 -1
  164. package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContent.js +3 -20
  165. package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContent.js.map +1 -1
  166. package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContentErrors.js +1 -13
  167. package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContentErrors.js.map +1 -1
  168. package/build/cjs/ocm/components/clusterConfiguration/CpuArchitectureDropdown.js +24 -3
  169. package/build/cjs/ocm/components/clusterConfiguration/CpuArchitectureDropdown.js.map +1 -1
  170. package/build/cjs/ocm/components/clusterConfiguration/CustomManifestCheckbox.js +22 -32
  171. package/build/cjs/ocm/components/clusterConfiguration/CustomManifestCheckbox.js.map +1 -1
  172. package/build/cjs/ocm/components/clusterConfiguration/OcmBaseDomainField.js +7 -5
  173. package/build/cjs/ocm/components/clusterConfiguration/OcmBaseDomainField.js.map +1 -1
  174. package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js +3 -4
  175. package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js.map +1 -1
  176. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.js +6 -12
  177. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.js.map +1 -1
  178. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifests.js +2 -2
  179. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifests.js.map +1 -1
  180. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsArray.js +1 -1
  181. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsArray.js.map +1 -1
  182. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.js +49 -123
  183. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.js.map +1 -1
  184. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/ExpandedManifest.js +1 -0
  185. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/ExpandedManifest.js.map +1 -1
  186. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/utils.js +14 -19
  187. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/utils.js.map +1 -1
  188. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js +4 -1
  189. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js.map +1 -1
  190. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js +5 -2
  191. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js.map +1 -1
  192. package/build/cjs/ocm/components/clusterDetail/ClusterDetailStatusMessages.js +2 -7
  193. package/build/cjs/ocm/components/clusterDetail/ClusterDetailStatusMessages.js.map +1 -1
  194. package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js +5 -12
  195. package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js.map +1 -1
  196. package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js +18 -13
  197. package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js.map +1 -1
  198. package/build/cjs/ocm/components/clusterWizard/ClusterWizardContext.js.map +1 -1
  199. package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js +45 -36
  200. package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js.map +1 -1
  201. package/build/cjs/ocm/hooks/index.js +3 -1
  202. package/build/cjs/ocm/hooks/index.js.map +1 -1
  203. package/build/cjs/ocm/hooks/useOpenshiftVersions.js +0 -5
  204. package/build/cjs/ocm/hooks/useOpenshiftVersions.js.map +1 -1
  205. package/build/cjs/ocm/hooks/useSupportLevelsAPI.js +34 -1
  206. package/build/cjs/ocm/hooks/useSupportLevelsAPI.js.map +1 -1
  207. package/build/cjs/ocm/hooks/useUISettings.js +62 -0
  208. package/build/cjs/ocm/hooks/useUISettings.js.map +1 -0
  209. package/build/cjs/ocm/services/ClusterDetailsService.js +2 -5
  210. package/build/cjs/ocm/services/ClusterDetailsService.js.map +1 -1
  211. package/build/cjs/ocm/services/ClustersService.js +0 -8
  212. package/build/cjs/ocm/services/ClustersService.js.map +1 -1
  213. package/build/cjs/ocm/services/Day2ClusterService.js +13 -4
  214. package/build/cjs/ocm/services/Day2ClusterService.js.map +1 -1
  215. package/build/cjs/ocm/services/UISettingsService.js +18 -0
  216. package/build/cjs/ocm/services/UISettingsService.js.map +1 -0
  217. package/build/cjs/ocm/services/index.js +3 -1
  218. package/build/cjs/ocm/services/index.js.map +1 -1
  219. package/lib/cim/components/Agent/BMCForm.tsx +3 -3
  220. package/lib/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.tsx +17 -5
  221. package/lib/cim/components/ClusterDeployment/ClusterDetailsFormFields.tsx +9 -2
  222. package/lib/cim/components/ClusterDeployment/ScaleUpForm.tsx +11 -5
  223. package/lib/cim/components/InfraEnv/utils.ts +7 -6
  224. package/lib/cim/components/helpers/versions.ts +5 -0
  225. package/lib/cim/components/modals/ScaleUpModal.tsx +3 -0
  226. package/lib/cim/types/k8s/agent-cluster-install.ts +4 -7
  227. package/lib/common/api/accounts-management-service/access-token-api.ts +1 -1
  228. package/lib/common/api/accounts-management-service/current-account-api.ts +13 -0
  229. package/lib/common/api/accounts-management-service/organizations-api.ts +15 -0
  230. package/lib/common/api/assisted-service/UISettingsAPI.ts +24 -0
  231. package/lib/common/api/assisted-service/index.ts +1 -0
  232. package/lib/common/api/authorization-service/all-apis.ts +28 -0
  233. package/lib/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionControlGroup.tsx +5 -1
  234. package/lib/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionMode.tsx +27 -16
  235. package/lib/common/components/clusterConfiguration/DiskEncryptionFields/TangServers.tsx +27 -17
  236. package/lib/common/components/clusterConfiguration/OpenShiftVersionSelect.tsx +4 -1
  237. package/lib/common/components/clusterDetail/PostInstallAlert.tsx +29 -0
  238. package/lib/common/components/clusterDetail/index.ts +1 -0
  239. package/lib/common/components/clusterWizard/ReviewValidations.tsx +3 -0
  240. package/lib/common/components/ui/NoPermissionsError.tsx +19 -0
  241. package/lib/common/components/ui/formik/InputField.tsx +4 -5
  242. package/lib/common/components/ui/formik/RichInputField.tsx +6 -2
  243. package/lib/common/components/ui/formik/SelectField.tsx +1 -1
  244. package/lib/common/components/ui/formik/types.ts +2 -1
  245. package/lib/common/components/ui/index.ts +1 -0
  246. package/lib/common/config/constants.ts +1 -0
  247. package/lib/common/features/featureGate.tsx +0 -4
  248. package/lib/common/types/cpuArchitecture.ts +3 -8
  249. package/lib/ocm/components/AddHosts/AddHosts.tsx +1 -3
  250. package/lib/ocm/components/AddHosts/InventoryAddHost.tsx +2 -8
  251. package/lib/ocm/components/AddHosts/day2Wizard/Day2ClusterDetails.tsx +6 -11
  252. package/lib/ocm/components/AddHosts/day2Wizard/Day2StaticIpHostConfigurations.tsx +34 -19
  253. package/lib/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContent.tsx +4 -36
  254. package/lib/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContentErrors.tsx +1 -15
  255. package/lib/ocm/components/clusterConfiguration/CpuArchitectureDropdown.tsx +58 -3
  256. package/lib/ocm/components/clusterConfiguration/CustomManifestCheckbox.tsx +25 -32
  257. package/lib/ocm/components/clusterConfiguration/OcmBaseDomainField.tsx +23 -12
  258. package/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx +4 -5
  259. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.tsx +20 -27
  260. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifests.tsx +3 -3
  261. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsArray.tsx +2 -2
  262. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.tsx +69 -182
  263. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/ExpandedManifest.tsx +1 -1
  264. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/utils.tsx +9 -15
  265. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/data/dataTypes.ts +0 -1
  266. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.tsx +7 -2
  267. package/lib/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.ts +6 -1
  268. package/lib/ocm/components/clusterDetail/ClusterDetailStatusMessages.tsx +2 -16
  269. package/lib/ocm/components/clusterWizard/ClusterDetails.tsx +9 -16
  270. package/lib/ocm/components/clusterWizard/ClusterDetailsForm.tsx +18 -16
  271. package/lib/ocm/components/clusterWizard/ClusterWizardContext.tsx +5 -3
  272. package/lib/ocm/components/clusterWizard/ClusterWizardContextProvider.tsx +75 -54
  273. package/lib/ocm/hooks/index.ts +1 -0
  274. package/lib/ocm/hooks/useOpenshiftVersions.tsx +1 -15
  275. package/lib/ocm/hooks/useSupportLevelsAPI.ts +54 -2
  276. package/lib/ocm/hooks/useUISettings.ts +71 -0
  277. package/lib/ocm/services/ClusterDetailsService.ts +3 -5
  278. package/lib/ocm/services/ClustersService.ts +0 -10
  279. package/lib/ocm/services/Day2ClusterService.ts +17 -3
  280. package/lib/ocm/services/UISettingsService.ts +17 -0
  281. package/lib/ocm/services/index.ts +1 -0
  282. package/lib/ocm/services/types.ts +5 -0
  283. package/package.json +8 -4
@@ -19,20 +19,6 @@ const UnableToAddHostsError = ({ onTryAgain }: TryAgainProps) => {
19
19
  );
20
20
  };
21
21
 
22
- const UnsupportedVersionError = ({ version, onTryAgain }: { version: string } & TryAgainProps) => {
23
- return (
24
- <>
25
- Unsupported OpenShift cluster version: {version || 'N/A'}.
26
- <br />
27
- Check your connection and{' '}
28
- <Button variant={'link'} isInline onClick={onTryAgain}>
29
- try again
30
- </Button>
31
- .
32
- </>
33
- );
34
- };
35
-
36
22
  const ReloadFailedError = ({ onTryAgain }: TryAgainProps) => {
37
23
  return (
38
24
  <>
@@ -63,4 +49,4 @@ const AddHostsApiError = ({ isImport, onTryAgain }: { isImport: boolean } & TryA
63
49
  );
64
50
  };
65
51
 
66
- export { AddHostsApiError, UnsupportedVersionError, UnableToAddHostsError, ReloadFailedError };
52
+ export { AddHostsApiError, UnableToAddHostsError, ReloadFailedError };
@@ -1,9 +1,18 @@
1
1
  import React from 'react';
2
- import { Dropdown, DropdownItem, DropdownToggle, FormGroup } from '@patternfly/react-core';
2
+ import {
3
+ Dropdown,
4
+ DropdownItem,
5
+ DropdownToggle,
6
+ FormGroup,
7
+ Split,
8
+ SplitItem,
9
+ Tooltip,
10
+ } from '@patternfly/react-core';
3
11
  import { CaretDownIcon } from '@patternfly/react-icons';
4
12
  import { useField } from 'formik';
5
13
  import {
6
14
  CpuArchitecture,
15
+ FeatureId,
7
16
  getDefaultCpuArchitecture,
8
17
  getFieldId,
9
18
  SupportedCpuArchitecture,
@@ -11,7 +20,14 @@ import {
11
20
  import {
12
21
  ArchitectureSupportLevelId,
13
22
  Cluster,
23
+ PlatformType,
14
24
  } from '@openshift-assisted/types/assisted-installer-service';
25
+ import {
26
+ NewFeatureSupportLevelMap,
27
+ useNewFeatureSupportLevel,
28
+ } from '../../../common/components/newFeatureSupportLevels';
29
+ import useSupportLevelsAPI from '../../hooks/useSupportLevelsAPI';
30
+ import { ExternalPlaformIds, ExternalPlatformLabels } from './platformIntegration/constants';
15
31
 
16
32
  export type CpuArchitectureItem = {
17
33
  description: string;
@@ -57,6 +73,7 @@ type CpuArchitectureDropdownProps = {
57
73
  day1CpuArchitecture?: SupportedCpuArchitecture;
58
74
  cpuArchitectures: SupportedCpuArchitecture[];
59
75
  onChange?: (value: string) => void;
76
+ platformType?: PlatformType;
60
77
  };
61
78
 
62
79
  const CpuArchitectureDropdown = ({
@@ -64,7 +81,10 @@ const CpuArchitectureDropdown = ({
64
81
  day1CpuArchitecture,
65
82
  cpuArchitectures,
66
83
  onChange,
84
+ platformType,
67
85
  }: CpuArchitectureDropdownProps) => {
86
+ const newFeatureSupportLevelContext = useNewFeatureSupportLevel();
87
+
68
88
  const [field, { value: selectedCpuArchitecture }, { setValue }] =
69
89
  useField<SupportedCpuArchitecture>(INPUT_NAME);
70
90
 
@@ -75,21 +95,56 @@ const CpuArchitectureDropdown = ({
75
95
  day1CpuArchitecture ? architectureData[day1CpuArchitecture].label : CpuArchitecture.x86,
76
96
  );
77
97
 
98
+ const supportLevelDataForAllCpuArchs = useSupportLevelsAPI(
99
+ 'featureForAllCpus',
100
+ openshiftVersion,
101
+ undefined,
102
+ platformType,
103
+ cpuArchitectures,
104
+ );
105
+
78
106
  const enabledItems = React.useMemo(() => {
79
107
  if (cpuArchitectures !== undefined) {
80
108
  return cpuArchitectures.map((cpuArch) => {
109
+ let isCpuSupported = true;
110
+ if (supportLevelDataForAllCpuArchs) {
111
+ const featureSupportLevelData = supportLevelDataForAllCpuArchs[
112
+ cpuArch
113
+ ] as NewFeatureSupportLevelMap;
114
+ isCpuSupported = newFeatureSupportLevelContext.isFeatureSupported(
115
+ ExternalPlaformIds[platformType ? platformType : 'baremetal'] as FeatureId,
116
+ featureSupportLevelData ?? undefined,
117
+ );
118
+ }
119
+
120
+ const disabledReason = `This cluster is using the ${
121
+ platformType ? ExternalPlatformLabels[platformType] : ''
122
+ } platform which doesn't allow this CPU architecture.`;
81
123
  return (
82
124
  <DropdownItem
83
125
  key={cpuArch}
84
126
  id={cpuArch}
85
127
  description={cpuArch ? architectureData[cpuArch].description : ''}
128
+ isAriaDisabled={!isCpuSupported}
86
129
  >
87
- {cpuArch ? architectureData[cpuArch].label : ''}
130
+ <Split>
131
+ <SplitItem>
132
+ <Tooltip hidden={isCpuSupported} content={disabledReason} position="top">
133
+ <div>{cpuArch ? architectureData[cpuArch].label : ''}</div>
134
+ </Tooltip>
135
+ </SplitItem>
136
+ <SplitItem isFilled />
137
+ </Split>
88
138
  </DropdownItem>
89
139
  );
90
140
  });
91
141
  }
92
- }, [cpuArchitectures]);
142
+ }, [
143
+ cpuArchitectures,
144
+ supportLevelDataForAllCpuArchs,
145
+ newFeatureSupportLevelContext,
146
+ platformType,
147
+ ]);
93
148
 
94
149
  const onSelect = React.useCallback(
95
150
  (event?: React.SyntheticEvent<HTMLDivElement>) => {
@@ -5,8 +5,8 @@ import { getFieldId, HelperText, PopoverIcon } from '../../../common';
5
5
  import { OcmCheckbox } from '../ui/OcmFormFields';
6
6
  import { useClusterWizardContext } from '../clusterWizard/ClusterWizardContext';
7
7
  import DeleteCustomManifestModal from './manifestsConfiguration/DeleteCustomManifestModal';
8
- import useClusterCustomManifests from '../../hooks/useClusterCustomManifests';
9
8
  import { ClustersService } from '../../services';
9
+ import { ClustersAPI } from '../../services/apis';
10
10
 
11
11
  const Label = () => {
12
12
  return (
@@ -27,49 +27,42 @@ const Label = () => {
27
27
  type CustomManifestCheckboxProps = { clusterId: string; isDisabled: boolean };
28
28
 
29
29
  const CustomManifestCheckbox = ({ clusterId, isDisabled }: CustomManifestCheckboxProps) => {
30
- const [{ name }, , { setValue }] = useField('addCustomManifest');
30
+ const [{ name }, { value }, { setValue }] = useField<boolean>('addCustomManifest');
31
31
  const fieldId = getFieldId(name, 'input');
32
32
  const clusterWizardContext = useClusterWizardContext();
33
- const { customManifests } = useClusterCustomManifests(clusterId, false);
34
33
  const [isDeleteCustomManifestsOpen, setDeleteCustomManifestsOpen] = React.useState(false);
35
- const [manifestsRemoved, setManifestsRemoved] = React.useState(false);
36
- const cleanCustomManifests = React.useCallback(() => {
34
+
35
+ const cleanCustomManifests = React.useCallback(async () => {
36
+ const { data: manifests } = await ClustersAPI.getManifests(clusterId);
37
+ void ClustersService.removeClusterManifests(manifests, clusterId);
38
+
37
39
  setValue(false);
38
- clusterWizardContext.setAddCustomManifests(false);
40
+ clusterWizardContext.setCustomManifestsStep(false);
39
41
  setDeleteCustomManifestsOpen(false);
40
- setManifestsRemoved(true);
41
- //if cluster exists remove existing cluster manifests
42
- if (clusterId && customManifests) {
43
- void ClustersService.removeClusterManifests(customManifests, clusterId);
44
- }
45
- }, [clusterWizardContext, setValue, clusterId, customManifests]);
42
+ await clusterWizardContext.updateUISettings({
43
+ addCustomManifests: false,
44
+ customManifestsAdded: false,
45
+ });
46
+ }, [clusterWizardContext, setValue, clusterId]);
46
47
 
47
- const onChanged = React.useCallback(
48
+ const onChange = React.useCallback(
48
49
  (checked: boolean) => {
49
- if (!checked) {
50
- //For new clusters is not necessary to show the delete modal
51
- if (clusterId) setDeleteCustomManifestsOpen(true);
52
- else {
53
- cleanCustomManifests();
54
- }
55
- } else {
56
- setValue(checked);
57
- setManifestsRemoved(false);
58
- clusterWizardContext.setAddCustomManifests(checked);
50
+ if (!checked && clusterWizardContext.uiSettings?.customManifestsAdded) {
51
+ setDeleteCustomManifestsOpen(true);
59
52
  }
53
+
54
+ setValue(checked);
55
+ clusterWizardContext.setCustomManifestsStep(checked);
60
56
  },
61
- [setValue, clusterWizardContext, setDeleteCustomManifestsOpen, cleanCustomManifests, clusterId],
57
+ [setValue, clusterWizardContext, setDeleteCustomManifestsOpen],
62
58
  );
63
59
 
64
60
  const onClose = React.useCallback(() => {
65
61
  setValue(true);
66
- clusterWizardContext.setAddCustomManifests(true);
62
+ clusterWizardContext.setCustomManifestsStep(true);
67
63
  setDeleteCustomManifestsOpen(false);
68
- setManifestsRemoved(false);
69
64
  }, [clusterWizardContext, setValue]);
70
65
 
71
- const customManifestsActivated =
72
- clusterWizardContext.addCustomManifests || (customManifests && customManifests.length > 0);
73
66
  return (
74
67
  <>
75
68
  <FormGroup id={`form-control__${fieldId}`} isInline fieldId={fieldId}>
@@ -84,18 +77,18 @@ const CustomManifestCheckbox = ({ clusterId, isDisabled }: CustomManifestCheckbo
84
77
  the cluster.
85
78
  </HelperText>
86
79
  }
87
- onChange={(checked: boolean) => onChanged(checked)}
80
+ onChange={onChange}
88
81
  className="with-tooltip"
89
- isChecked={manifestsRemoved ? false : customManifestsActivated}
82
+ isChecked={value}
90
83
  isDisabled={isDisabled}
91
84
  />
92
85
  <DeleteCustomManifestModal
93
86
  isOpen={isDeleteCustomManifestsOpen}
94
87
  onClose={onClose}
95
- onDelete={() => cleanCustomManifests()}
88
+ onDelete={() => void cleanCustomManifests()}
96
89
  />
97
90
  </FormGroup>
98
- {customManifestsActivated && (
91
+ {value && (
99
92
  <Alert isInline variant="info" title={'This is an advanced configuration feature.'}>
100
93
  Custom manifests will be added to the wizard as a new step.
101
94
  </Alert>
@@ -1,10 +1,11 @@
1
1
  import React from 'react';
2
- import { Dropdown, DropdownItem, DropdownToggle, FormGroup } from '@patternfly/react-core';
2
+ import { Dropdown, DropdownItem, DropdownToggle, FormGroup, Tooltip } from '@patternfly/react-core';
3
3
  import { useField, useFormikContext } from 'formik';
4
4
  import { ClusterDetailsValues, HelperText, getFieldId } from '../../../common';
5
5
  import { CaretDownIcon } from '@patternfly/react-icons';
6
6
  import { OcmCheckboxField, OcmInputField } from '../ui/OcmFormFields';
7
7
  import { ManagedDomain } from '@openshift-assisted/types/assisted-installer-service';
8
+ import { clusterExistsReason } from '../featureSupportLevels/featureStateUtils';
8
9
 
9
10
  const INPUT_NAME = 'baseDnsDomain';
10
11
  const INPUT_LABEL = 'Base domain';
@@ -21,15 +22,22 @@ export const BaseDnsHelperText = ({
21
22
  baseDnsDomain?: string;
22
23
  }) => (
23
24
  <HelperText fieldId={fieldId}>
24
- All DNS records must be subdomains of this base and include the cluster name. This cannot be
25
- changed after cluster installation. The full cluster address will be: <br />
25
+ Enter the name of your local host [localhost] or [localhost.com]. This cannot be changed after
26
+ creation. All DNS records must include the cluster name and be subdomains of the base you enter.
27
+ The full cluster address will be: <br />
26
28
  <strong>
27
- {name || '[Cluster Name]'}.{baseDnsDomain || '[example.com]'}
29
+ {name || '[Cluster Name]'}.{baseDnsDomain || '[localhost.com]'}
28
30
  </strong>
29
31
  </HelperText>
30
32
  );
31
33
 
32
- export const OcmBaseDomainField = ({ managedDomains }: { managedDomains: ManagedDomain[] }) => {
34
+ export const OcmBaseDomainField = ({
35
+ managedDomains,
36
+ clusterExists,
37
+ }: {
38
+ managedDomains: ManagedDomain[];
39
+ clusterExists: boolean;
40
+ }) => {
33
41
  const [, { value }, { setValue }] = useField<string>(INPUT_NAME);
34
42
  const { values } = useFormikContext<ClusterDetailsValues>();
35
43
  const { name, baseDnsDomain, useRedHatDnsService } = values;
@@ -72,12 +80,15 @@ export const OcmBaseDomainField = ({ managedDomains }: { managedDomains: Managed
72
80
  return (
73
81
  <>
74
82
  {!!managedDomains.length && toggleRedHatDnsService && (
75
- <OcmCheckboxField
76
- name="useRedHatDnsService"
77
- label="Use a temporary 60-day domain"
78
- helperText="A base domain will be provided for temporary, non-production clusters."
79
- onChange={toggleRedHatDnsService}
80
- />
83
+ <Tooltip content={clusterExistsReason} hidden={!clusterExists}>
84
+ <OcmCheckboxField
85
+ name="useRedHatDnsService"
86
+ label="Use a temporary 60-day domain"
87
+ helperText="A base domain will be provided for temporary, non-production clusters."
88
+ onChange={toggleRedHatDnsService}
89
+ isDisabled={clusterExists}
90
+ />
91
+ </Tooltip>
81
92
  )}
82
93
  <FormGroup
83
94
  id={`form-control__${fieldId}`}
@@ -98,7 +109,7 @@ export const OcmBaseDomainField = ({ managedDomains }: { managedDomains: Managed
98
109
  ) : (
99
110
  <OcmInputField
100
111
  name={INPUT_NAME}
101
- placeholder="example.com"
112
+ placeholder="localhost.com"
102
113
  isDisabled={useRedHatDnsService}
103
114
  isRequired
104
115
  />
@@ -66,7 +66,6 @@ export const OcmClusterDetailsFormFields = ({
66
66
 
67
67
  const { t } = useTranslation();
68
68
  const isSingleClusterFeatureEnabled = useFeature('ASSISTED_INSTALLER_SINGLE_CLUSTER_FEATURE');
69
- const isMultiArchSupported = useFeature('ASSISTED_INSTALLER_MULTIARCH_SUPPORTED');
70
69
  const isOracleCloudPlatformIntegrationEnabled = useFeature('ASSISTED_INSTALLER_PLATFORM_OCI');
71
70
  const { openshiftVersion, platform } = values;
72
71
  const { getCpuArchitectures } = useOpenshiftVersions();
@@ -78,8 +77,8 @@ export const OcmClusterDetailsFormFields = ({
78
77
  values.cpuArchitecture as SupportedCpuArchitecture,
79
78
  );
80
79
  const cpuArchitectures = React.useMemo(
81
- () => getSupportedCpuArchitectures(isMultiArchSupported, cpuArchitecturesByVersionImage),
82
- [cpuArchitecturesByVersionImage, isMultiArchSupported],
80
+ () => getSupportedCpuArchitectures(cpuArchitecturesByVersionImage),
81
+ [cpuArchitecturesByVersionImage],
83
82
  );
84
83
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
85
84
  // @ts-ignore
@@ -96,7 +95,7 @@ export const OcmClusterDetailsFormFields = ({
96
95
  const isOracleSelected = selectedPlatform === 'oci';
97
96
  if (isOracleSelected) {
98
97
  setFieldValue('addCustomManifest', isOracleSelected, false);
99
- clusterWizardContext.setAddCustomManifests(isOracleSelected);
98
+ clusterWizardContext.setCustomManifestsStep(isOracleSelected);
100
99
  setFieldValue('hostsNetworkConfigurationType', HostsNetworkConfigurationType.DHCP);
101
100
  }
102
101
  },
@@ -130,7 +129,7 @@ export const OcmClusterDetailsFormFields = ({
130
129
  maxLength={CLUSTER_NAME_MAX_LENGTH}
131
130
  />
132
131
 
133
- <OcmBaseDomainField managedDomains={managedDomains} />
132
+ <OcmBaseDomainField managedDomains={managedDomains} clusterExists={clusterExists} />
134
133
 
135
134
  {/* TODO(mlibra): For single-cluster: We will probably change this to just a static text */}
136
135
  {forceOpenshiftVersion ? (
@@ -7,33 +7,26 @@ import { CustomManifestFormState } from './components/propTypes';
7
7
 
8
8
  export const CustomManifestsPage = ({
9
9
  cluster,
10
- onFormStateChange: onFormStateChangeParent,
10
+ onFormStateChange,
11
11
  }: {
12
12
  cluster: Cluster;
13
13
  onFormStateChange(formState: CustomManifestFormState): void;
14
- }) => {
15
- const onFormStateChange = (formState: CustomManifestFormState) => {
16
- const hasFilledData = !formState.isEmpty;
17
- hasFilledData && onFormStateChangeParent(formState);
18
- };
19
-
20
- return (
21
- <Grid hasGutter>
22
- <TextContent>
23
- <Text component={TextVariants.h2}>Custom manifests</Text>
24
- <Text component={TextVariants.small}>
25
- Upload additional manifests that will be applied at the install time for advanced
26
- configuration of the cluster.
27
- </Text>
28
- </TextContent>
29
- <Alert
30
- isInline
31
- variant="warning"
32
- title={
33
- 'No validation is performed for the custom manifest contents. Only include resources that are necessary for initial setup to reduce the chance of installation failures.'
34
- }
35
- />
36
- <CustomManifests cluster={cluster} onFormStateChange={onFormStateChange} />
37
- </Grid>
38
- );
39
- };
14
+ }) => (
15
+ <Grid hasGutter>
16
+ <TextContent>
17
+ <Text component={TextVariants.h2}>Custom manifests</Text>
18
+ <Text component={TextVariants.small}>
19
+ Upload additional manifests that will be applied at the install time for advanced
20
+ configuration of the cluster.
21
+ </Text>
22
+ </TextContent>
23
+ <Alert
24
+ isInline
25
+ variant="warning"
26
+ title={
27
+ 'No validation is performed for the custom manifest contents. Only include resources that are necessary for initial setup to reduce the chance of installation failures.'
28
+ }
29
+ />
30
+ <CustomManifests cluster={cluster} onFormStateChange={onFormStateChange} />
31
+ </Grid>
32
+ );
@@ -3,7 +3,7 @@ import { ListManifestsExtended } from '../data/dataTypes';
3
3
  import { CustomManifestsFormProps, CustomManifestFormState } from './propTypes';
4
4
  import { getFormViewManifestsValidationSchema } from './customManifestsValidationSchema';
5
5
  import { CustomManifestsForm } from './CustomManifestsForm';
6
- import { getEmptyFormViewManifestsValues, getFormViewManifestValues } from './utils';
6
+ import { getEmptyManifestsValues, getManifestValues } from './utils';
7
7
  import { Cluster } from '@openshift-assisted/types/assisted-installer-service';
8
8
 
9
9
  export const CustomManifests = ({
@@ -21,9 +21,9 @@ export const CustomManifests = ({
21
21
  validationSchema: getFormViewManifestsValidationSchema,
22
22
 
23
23
  getInitialValues: (customManifests: ListManifestsExtended) => {
24
- return getFormViewManifestValues(customManifests);
24
+ return getManifestValues(customManifests);
25
25
  },
26
- getEmptyValues: () => getEmptyFormViewManifestsValues(),
26
+ getEmptyValues: () => getEmptyManifestsValues(),
27
27
  showEmptyValues: true,
28
28
  cluster: cluster,
29
29
  });
@@ -9,7 +9,7 @@ import ConfirmationModal from '../../../../../common/components/ui/ConfirmationM
9
9
  import { ClustersAPI } from '../../../../services/apis';
10
10
  import { getApiErrorMessage, handleApiError } from '../../../../api';
11
11
  import { CustomManifest } from './CustomManifest';
12
- import { getEmptyFormViewManifest, getManifestName } from './utils';
12
+ import { getEmptyManifest, getManifestName } from './utils';
13
13
  import { CustomManifestValues } from '../data/dataTypes';
14
14
  import { selectCurrentClusterPermissionsState } from '../../../../store/slices/current-cluster/selectors';
15
15
 
@@ -54,7 +54,7 @@ export const CustomManifestsArray = ({
54
54
  const newExpandedManifests = getExpandedManifestsInitialValue(field.value.length + 1);
55
55
  newExpandedManifests[field.value.length] = true;
56
56
  setExpandedManifests(newExpandedManifests);
57
- push(getEmptyFormViewManifest());
57
+ push(getEmptyManifest());
58
58
  }, [field.value.length, push]);
59
59
 
60
60
  const removeManifest = React.useCallback(