-
Story
-
Resolution: Unresolved
-
Undefined
-
None
-
None
-
None
-
None
-
None
-
Proposed
-
OCP Console - Sprint 278
As part of the work on react-router v5 drop, we need to migrate from the createModalLauncher instances in our codebase and we need to use the useOverlay hook instead.
One such instance within METAL3 plugin is the menuActionsCreator function within host-menu-actions.tsx. We should refactor this code so that we will be able to launch . This hook would then be exposed similarly as useNodeMaintenanceActions is - via console.action/resource-provider, and consumed within BareMetalHostsDetailsPage's DetailsPage components customActionMenu prop. Some prior refactors that have been done are a good reference point for what is expected - https://github.com/openshift/console/pull/13506, https://github.com/openshift/console/pull/15078 or https://github.com/openshift/console/pull/15063 . Additionally
we should refactor stopNodeMaintenanceModal as it uses confirmModal, but its not a FC/hook.
AC:
- refactor menuActions and menuActionsCreator to hook form (similarly as its done in useNodeMaintenanceActions).
- refactor stopNodeMaintenanceModal so that we will be able to launch the used confirmModal via hook.
- consolidate menuActionsCreator's consumers (BareMetalHostsDetailsPage) to use the new hook form instead.
- is blocked by
-
OCPBUGS-61660 BareMetalHosts menu doesn't show up on IPI BM cluster
-
- MODIFIED
-