Uploaded image for project: 'OpenShift Console'
  1. OpenShift Console
  2. CONSOLE-4709

Remove kebabFactory from kebab.tsx.

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.
      To use this hook we have to firstly refactor actions that use createModalLauncher instances to accept a callback from useOverlay hook.

      One instance is kebab.tsx kebabFactory, we should remove this factory and its actions. All remaining consumers of kebabFactory should be refactored to retrieve actions from action provider hooks, introduced in the prior work. This should be the last menuActions refactor done, to keep the changes minimal.

      AC:

      1. Remove new kebabFactory and its actions.
      2. Consumers should use already introduced action provider hooks.
      3. In case there is no equivalent expose new hook via extension console.action/resource-provider or console.action/provider.

              viraj-1 Vikram Raj
              rh-ee-mziska Marek Ziska (Inactive)
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: