OCPBUGS-77423: Fix extra space in PageHeading when no actions present#16072
OCPBUGS-77423: Fix extra space in PageHeading when no actions present#16072rhamilto wants to merge 1 commit intoopenshift:mainfrom
Conversation
Prevent rendering empty ActionList component when neither favorite button nor primary action is present, which was causing extra whitespace at the top of pages like the Project access tab. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
@rhamilto: This pull request references Jira Issue OCPBUGS-77423, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@rhamilto: This pull request references Jira Issue OCPBUGS-77423, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/assign @logonoff |
📝 WalkthroughWalkthroughThe 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: logonoff, rhamilto The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
1 similar comment
|
/retest |
|
@rhamilto: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |

Summary
PageHeadinghas neither a favorite button nor primary actionActionListcomponent instead of rendering an empty listAfter
Details
Previously, the
ActionListcomponent was always rendered in theactionMenuprop, even when it had no children. This caused unnecessary spacing at the top of pages like the Project access tab.The fix moves the conditional check outside the
ActionList, so it only renders when there's actual content to display (favorite button or primary action).Test plan
/project-details/ns/{namespace}/accessPageHeadingto ensure no regression🤖 Generated with Claude Code
Summary by CodeRabbit