Skip to content

Commit fdcdf41

Browse files
fix(cost-management): use dots instead of slashes in menuItems keys (#3022)
* fix(cost-management): use dots instead of slashes in menuItems keys RHDH expects dots as path separators in menuItems keys (e.g., `cost-management.optimizations`), not slashes. Using slashes causes the menu items to appear as flat top-level entries instead of being nested under the "Cost management" parent menu. See: https://docs.redhat.com/en/documentation/red_hat_developer_hub/1.6/html/installing_and_viewing_plugins_in_red_hat_developer_hub/assembly-front-end-plugin-wiring.adoc_rhdh-extensions-plugins Signed-off-by: pgarciaq <pgarciaq@redhat.com> Co-authored-by: Cursor <cursoragent@cursor.com> * chore: add changeset for menuItems separator fix Co-authored-by: Cursor <cursoragent@cursor.com> --------- Signed-off-by: pgarciaq <pgarciaq@redhat.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 46d0a50 commit fdcdf41

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@red-hat-developer-hub/plugin-cost-management': patch
3+
---
4+
5+
Fix `menuItems` keys in `app-config.dynamic.yaml` to use dots instead of slashes as path separators, so that "Optimizations" and "OpenShift" are properly nested under the "Cost management" parent menu in the RHDH sidebar.

workspaces/cost-management/plugins/cost-management/app-config.dynamic.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ dynamicPlugins:
1616
icon: costManagementIconOutlined
1717
text: OpenShift
1818
menuItems:
19-
cost-management/optimizations:
19+
cost-management.optimizations:
2020
parent: cost-management
2121
priority: 10
22-
cost-management/openshift:
22+
cost-management.openshift:
2323
parent: cost-management
2424
priority: 20
2525
cost-management:

0 commit comments

Comments
 (0)