Uploaded image for project: 'Red Hat Internal Developer Platform'
  1. Red Hat Internal Developer Platform
  2. RHIDP-5803

Catalog entity default tabs couldn't be reordered via app-config

Create Doc EPIC for Fe...Prepare for Y ReleasePrepare for Z ReleaseRemove QuarterXMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 1.5.0
    • 1.4
    • Dynamic plugins, UI
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      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

              Unassigned Unassigned
              cjerolim Christoph Jerolimov
              RHIDP - Dynamic Plugins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: