Skip to content

fix(cost-management): use dots instead of slashes in menuItems keys#3022

Merged
PreetiW merged 2 commits intoredhat-developer:mainfrom
pgarciaq:fix/cost-management-menu-items-separator
May 5, 2026
Merged

fix(cost-management): use dots instead of slashes in menuItems keys#3022
PreetiW merged 2 commits intoredhat-developer:mainfrom
pgarciaq:fix/cost-management-menu-items-separator

Conversation

@pgarciaq
Copy link
Copy Markdown
Contributor

@pgarciaq pgarciaq commented May 5, 2026

Summary

  • Fix menuItems keys in app-config.dynamic.yaml to use dots (.) instead of slashes (/) as path separators
  • Without this fix, "Optimizations" and "OpenShift" appear as flat top-level sidebar entries instead of being nested under the "Cost management" parent menu

The RHDH front-end plugin wiring documentation specifies that for a path like /cost-management/optimizations, the corresponding menu_item_name should be cost-management.optimizations (with a dot), not cost-management/optimizations (with a slash).

Test plan

  • Deploy RHDH with the cost-management dynamic plugin using the updated app-config.dynamic.yaml
  • Verify the sidebar shows "Cost management" as a parent menu with "Optimizations" and "OpenShift" nested underneath

Made with Cursor

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>
@rhdh-gh-app
Copy link
Copy Markdown

rhdh-gh-app Bot commented May 5, 2026

Changed Packages

Package Name Package Path Changeset Bump Current Version
@red-hat-developer-hub/plugin-cost-management workspaces/cost-management/plugins/cost-management patch v2.1.0

Co-authored-by: Cursor <cursoragent@cursor.com>
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 5, 2026

@pgarciaq
Copy link
Copy Markdown
Contributor Author

pgarciaq commented May 5, 2026

@PreetiW please take a look. I hit this while installing RHDH on my cluster.

@PreetiW
Copy link
Copy Markdown
Contributor

PreetiW commented May 5, 2026

Thank you for the fix @pgarciaq LGTM 🎉

@PreetiW PreetiW merged commit fdcdf41 into redhat-developer:main May 5, 2026
27 checks passed
@codecov
Copy link
Copy Markdown

codecov Bot commented May 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.75%. Comparing base (ba8920f) to head (ca8295f).
⚠️ Report is 21 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3022   +/-   ##
=======================================
  Coverage   60.75%   60.75%           
=======================================
  Files        2067     2067           
  Lines       63761    63761           
  Branches    16532    16535    +3     
=======================================
  Hits        38735    38735           
  Misses      24580    24580           
  Partials      446      446           
Flag Coverage Δ *Carryforward flag
adoption-insights 83.58% <ø> (ø) Carriedforward from ba8920f
ai-integrations 70.03% <ø> (ø) Carriedforward from ba8920f
app-defaults 69.60% <ø> (ø) Carriedforward from ba8920f
augment 69.36% <ø> (ø) Carriedforward from ba8920f
bulk-import 72.42% <ø> (ø) Carriedforward from ba8920f
cost-management 16.49% <ø> (ø)
dcm 32.85% <ø> (ø) Carriedforward from ba8920f
extensions 61.42% <ø> (ø) Carriedforward from ba8920f
global-floating-action-button 73.75% <ø> (ø) Carriedforward from ba8920f
global-header 61.62% <ø> (ø) Carriedforward from ba8920f
homepage 50.84% <ø> (ø) Carriedforward from ba8920f
konflux 91.01% <ø> (ø) Carriedforward from ba8920f
lightspeed 69.64% <ø> (ø) Carriedforward from ba8920f
mcp-integrations 81.59% <ø> (ø) Carriedforward from ba8920f
orchestrator 33.07% <ø> (ø) Carriedforward from ba8920f
quickstart 62.64% <ø> (ø) Carriedforward from ba8920f
sandbox 79.49% <ø> (ø) Carriedforward from ba8920f
scorecard 83.61% <ø> (ø) Carriedforward from ba8920f
theme 64.54% <ø> (ø) Carriedforward from ba8920f
translations 8.49% <ø> (ø) Carriedforward from ba8920f
x2a 82.09% <ø> (ø) Carriedforward from ba8920f

*This pull request uses carry forward flags. Click here to find out more.


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ba8920f...ca8295f. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants