• 1
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide
      = Entity tab reordering now works as expected

      You can now reorder entity tabs by specifying a priority value in the configuration. Tabs with higher priority values will appear first, while default tabs can be hidden by assigning a negative priority value.
      Show
      = Entity tab reordering now works as expected You can now reorder entity tabs by specifying a priority value in the configuration. Tabs with higher priority values will appear first, while default tabs can be hidden by assigning a negative priority value.
    • Bug Fix
    • Done
    • RHDH F&UI plugins 3270, RHDH F&UI plugins 3271

      Description of problem:

      This is a follow-up on RHDHBUGS-161 to allow customers to reorder also the default tabs that are shipped with RHDH.

      Additional catalog entity tabs can already be reordered when these are added in the right order in the app-config.

      Prerequisites (if any, like setup, operators/versions):

      None

      Steps to Reproduce

      Configure RHDH with custom catalog entities, like this:

      upstream:
           backstage:
               appConfig:
                   dynamicPlugins:
                       frontend:
                          entity-tabs-customization:
                              entityTabs:
                                  - path: /pr
                                    title: Changed Pull/Merge Requests
                                    mountPoint: entity.page.pull-requests
                                  - path: /
                                    title: Changed Overview
                                    mountPoint: entity.page.overview
      

      Actual results:

      The titles of the tabs are changed but the order doesn't change.

      Expected results:

      The order should be changed with the configuration above.

      And/or an additional property should allow the customer to change the order.

      Both would be great.

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Build Details:

      1.0 - 1.4

      Additional info (Such as Logs, Screenshots, etc):

      This might be an interim solution until we have RHIDP-5796 - All catalog entity tabs and cards can be disabled, reordered, customized, and loaded from dynamic plugins.

      We could have an optional priority attribute similar to the sidebar items:

      1. https://github.com/redhat-developer/rhdh/blob/main/packages/app/src/components/catalog/EntityPage/EntityPage.tsx
      2. https://github.com/redhat-developer/rhdh/blob/main/packages/app/src/utils/dynamicUI/extractDynamicConfigFrontend.ts#L24-L26
      3. https://github.com/redhat-developer/rhdh/blob/main/packages/app/src/utils/dynamicUI/extractDynamicConfigFrontend.ts#L24-L26

      The expectation is that the default items are still shown first. Tabs without a priority should work as well but should be shown at the end. So that it doesn't change how it looks today if the customer doesn't configure anything.

              rh-ee-mitkumar Mitesh Kumar
              cjerolim Christoph Jerolimov
              RHIDP - Frontend Plugins & UI
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: