chore(global-header): Global header optimization - #4006
Conversation
|
Important This PR includes changes that affect public-facing API. Please ensure you are adding/updating documentation for new features or behavior. Changed Packages
|
PR Summary by QodoOptimize global-header federation sync via loaders and /components entry
AI Description
Diagram
High-Level Assessment
Files changed (23)
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #4006 +/- ##
==========================================
- Coverage 56.44% 56.42% -0.03%
==========================================
Files 2383 2383
Lines 95609 95649 +40
Branches 26718 26721 +3
==========================================
+ Hits 53968 53970 +2
- Misses 41268 41305 +37
- Partials 373 374 +1
*This pull request uses carry forward flags. Click here to find out more. Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
11 rules✅ Cross-repo contextredhat-developer/rhdh Not relevant to this PR:
redhat-developer/rhdh-chart Not relevant to this PR:
redhat-developer/rhdh-operator Not relevant to this PR:
redhat-developer/rhdh-local 1. trackValidity stuck on empty
|
27ade55 to
9460854
Compare
9460854 to
11f5f34
Compare
|
ciiay
left a comment
There was a problem hiding this comment.
The following files still importing GlobalHeaderMenuItem from /alpha. Let's also update them in this pr.
- workspaces/quickstart/plugins/quickstart/src/QuickstartHelpMenuItem.tsx
- workspaces/app-defaults/packages/app/src/modules/drawer-demo/DrawerDemoContent.tsx
| loader: () => | ||
| import('../../components/SupportButton/SupportButton').then( | ||
| m => m.SupportButton, | ||
| ), |
There was a problem hiding this comment.
HelpDropdown sets trackValidity. This PR makes support-button async via loader. GlobalHeaderDropdown flips to emptyState (and unmounts menu content) when no [role="menuitem"] is found, and never resets hasVisibleItems.
This could cause a race condition: open Help before the lazy SupportButton paints → no menuitem → hasVisibleItems=false → content unmounted → items never mount for that session (and reopen stays empty). Qodo also flagged this which I agree is high severity.



Hey, I just made a Pull Request!
Resolves:
https://redhat.atlassian.net/browse/RHIDP-15555
Solution description:
NFS alpha expose summary
GIF:
Tested on RHDH with Quickstarts plugin
Screen.Recording.2026-07-27.at.10.44.05.PM.mov
Test setup:
Update the Quickstarts plugin
In workspaces/quickstart:
File Dependency
package.json (resolutions) portal:../global-header/plugins/global-header
plugins/quickstart/package.json. portal:../../../global-header/plugins/global-header
packages/app/package.json. portal:../../../global-header/plugins/global-header
✔️ Checklist