Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-58224

[4.17] Modals launched with `useModal` overwrite each other

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • 4.17.z
    • 4.16, 4.17, 4.18, 4.19
    • Management Console
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Yes
    • Done
    • Bug Fix
    • Hide
      Previously, the OpenShift Lightspeed UI would disappear when the *Create Project* modal was opened or when modals on the Networking pages were triggered. This was due to the modals using the `useModal` hook causing the modals to overwrite each other. With this release, the modals no longer overwrite each other allowing multiple UI elements to be displayed simultaneously.
      Show
      Previously, the OpenShift Lightspeed UI would disappear when the *Create Project* modal was opened or when modals on the Networking pages were triggered. This was due to the modals using the `useModal` hook causing the modals to overwrite each other. With this release, the modals no longer overwrite each other allowing multiple UI elements to be displayed simultaneously.
    • None
    • None
    • None
    • None

      This is a clone of issue OCPBUGS-57931. The following is the description of the original issue:

      Description of problem:

      If multiple plugins are using the `useModal` hook, their modals will overwrite each other.
      
      The OpenShift Lightspeed plugin, the OpenShift Console Troubleshooting Panel plugin and the Networking pages all use the `useModal` hook, so they can overwrite each other in the UI.
      
      Regression in 4.17, since the Networking pages seem to have started using the `useModal` hook from 4.17, meaning that the bug is much more likely to be encountered from that version.
      
      Since both the OpenShift Lightspeed plugin and the OpenShift Console Troubleshooting Panel plugin support 4.16, the bug should be seen in 4.16 too.

      Version-Release number of selected component (if applicable):

          

      How reproducible:

          Always

      Steps to Reproduce:

          1. Install the OpenShift Lightspeed operator
          2. Create OLSConfig
          3. Wait until OpenShift Lightspeed is running
          4. Navigate to any page under "Networking" (e.g. Networking > Services)
          5. Trigger any action that causes a modal to be displayed (e.g. select "Edit labels" from one of the list kebab menus)
          6. When the "Edit labels" modal is displayed, the OpenShift Lightspeed UI disappears

      Actual results:

          When a modal on a page under Networking is displayed, the OpenShift Lightspeed UI disappears. Similarly, the OpenShift Console Troubleshooting Panel would disappear if it was open.

      Expected results:

          It should be possible to display all of the OpenShift Lightspeed UI, the OpenShift Console Troubleshooting panel and the Networking page modals at the same time.

      Additional info:

          

              anpicker@redhat.com Andrew Pickering
              openshift-crt-jira-prow OpenShift Prow Bot
              None
              None
              YaDan Pei YaDan Pei
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: