-
Bug
-
Resolution: Done
-
Blocker
-
1.4.0
-
1
-
False
-
-
False
-
-
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:
- https://github.com/redhat-developer/rhdh/blob/main/packages/app/src/components/catalog/EntityPage/EntityPage.tsx
- https://github.com/redhat-developer/rhdh/blob/main/packages/app/src/utils/dynamicUI/extractDynamicConfigFrontend.ts#L24-L26
- 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.
- is related to
-
RHIDP-5796 All catalog entity tabs and cards can be disabled, reordered, customized and are loaded from dynamic plugins
-
- New
-
- links to