Skip to content

Conversation

@logonoff
Copy link
Member

@logonoff logonoff commented Apr 14, 2025

fixes excess spacing in breadcrumbs in PageHeader component group. also makes all props optional--OCP has a usecase where no props are passed to the PageHeader, so it should render as a regular PageSection in this case.

@patternfly-build
Copy link

patternfly-build commented Apr 14, 2025

@logonoff logonoff requested a review from Copilot April 14, 2025 20:06
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

@logonoff logonoff requested a review from Copilot April 15, 2025 13:49
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

packages/module/src/PageHeader/PageHeader.tsx:70

  • Replacing the outer with a fragment removes the default styling and layout spacing provided by PageSection. Verify that the new structure still meets the desired design and spacing requirements.
<>

}: PageHeaderProps) => {
const classes = useStyles();
const { isExternal = false, ...linkRestProps } = linkProps ?? {};
const showSplitRow = title || label || actionMenu;
Copy link

Copilot AI Apr 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable 'actionMenu' is used in the condition but is not declared in the PageHeaderProps interface, which could lead to runtime errors. Consider either removing it or adding it as an optional prop.

Copilot uses AI. Check for mistakes.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it is..

@nicolethoen nicolethoen merged commit 12b200c into patternfly:main Apr 15, 2025
6 checks passed
@logonoff logonoff deleted the bc branch April 15, 2025 13:53
@github-actions
Copy link

🎉 This PR is included in version 6.2.0-prerelease.9 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

3 participants