Skip to content

Conversation

@logonoff
Copy link
Member

@logonoff logonoff commented Apr 12, 2025

https://issues.redhat.com//browse/CONSOLE-4492
https://issues.redhat.com/browse/OCPBUGS-54670

follow up on #14875

adopts PF PageHeader for console's main heading component.

no major UI changes should appear in this PR (e.g., create buttons appearing in a separate row as the title), except for two: operator details now have a line between the operator icon and the operator name. badges are also now placed next to the title.

fixes small a11y issue where heading actions were inside of the h1 element when it shouldn't be

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Apr 12, 2025
@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 12, 2025
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Apr 12, 2025

@logonoff: This pull request references CONSOLE-4492 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.19.0" version, but no target version was set.

Details

In response to this:

/hold

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.

@openshift-ci openshift-ci bot requested review from cajieh and karthikjeeyar April 12, 2025 23:48
@openshift-ci openshift-ci bot added component/core Related to console core functionality component/helm Related to helm-plugin approved Indicates a PR has been approved by an approver from all required OWNERS files. component/olm Related to OLM component/pipelines Related to pipelines-plugin component/sdk Related to console-plugin-sdk component/shared Related to console-shared plugin-api-changed Categorizes a PR as containing plugin API changes labels Apr 12, 2025
@logonoff
Copy link
Member Author

/unhold

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 13, 2025
@logonoff logonoff changed the title CONSOLE-4492: Use PF component group for PageHeader CONSOLE-4492: Use PF component group for PageHeading Apr 13, 2025
@logonoff
Copy link
Member Author

qe review:
/assign @yapei

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Apr 13, 2025

@logonoff: This pull request references CONSOLE-4492 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.19.0" version, but no target version was set.

Details

In response to this:

https://issues.redhat.com//browse/CONSOLE-4492

follow up on #14875

adopts PF PageHeader for console's main heading component.

no major UI changes should appear in this PR (e.g., create buttons appearing in a separate row as the title), except for two: operator details now have a line between the operator icon and the operator name. badges are also now placed next to the title.

fixes small a11y issue where heading actions were inside of the h1 element when it shouldn't be

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.

@openshift-ci openshift-ci bot added the kind/i18n Indicates issue or PR relates to internationalization or has content that needs to be translated label Apr 13, 2025
@yapei
Copy link
Contributor

yapei commented Apr 14, 2025

  • Check Edit YAML link and style on StorageClass, VolumeSnapshot, PersistentVolumeClaim creation page
    Screenshot 2025-04-14 at 3 26 18 PM
  • Check resource detail page when a badge is present, such as pod details page
Screenshot 2025-04-14 at 5 25 50 PM - Check operator details page heading Screenshot 2025-04-14 at 5 29 44 PM - Also tested against Chrome, Safari, iPhone devices

No outstanding layout issues found
/label qe-approved

@openshift-ci openshift-ci bot added the qe-approved Signifies that QE has signed off on this PR label Apr 14, 2025
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Apr 14, 2025

@logonoff: This pull request references CONSOLE-4492 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.19.0" version, but no target version was set.

Details

In response to this:

https://issues.redhat.com//browse/CONSOLE-4492

follow up on #14875

adopts PF PageHeader for console's main heading component.

no major UI changes should appear in this PR (e.g., create buttons appearing in a separate row as the title), except for two: operator details now have a line between the operator icon and the operator name. badges are also now placed next to the title.

fixes small a11y issue where heading actions were inside of the h1 element when it shouldn't be

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.

@logonoff
Copy link
Member Author

code review:
/assign @rhamilto

/label px-approved

@logonoff logonoff force-pushed the pageheader branch 3 times, most recently from f88c3cb to 15036b9 Compare April 23, 2025 15:08
- adopt `BasePageHeading` when possible (as many pages don't use the extra functionality provided by the `connect`)
- Rename `PageHeading` to `ConnectedPageHeading`
- Rename `BasePageHeading` to `PageHeading`
- move `PageHeading`, `Breadcrumbs` to console/shared
- update cypress test to reflect changes
Copy link
Member

@rhamilto rhamilto left a comment

Choose a reason for hiding this comment

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

/lgtm

Let's see if we can't get this in before branching and address any issues in follow-ons.

* is not the primary page header to avoid having multiple favourites buttons.
*/
hideFavoriteButton?: boolean;
/** The heading title. If no title is set, only the `children`, `badge`, and `helpAlert` props will be rendered */
Copy link
Member

Choose a reason for hiding this comment

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

Not new, but very confusing since title is required. Maybe this should read If title=''...?

Copy link
Member Author

Choose a reason for hiding this comment

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

The funny thing though is that we set title={undefined} all the time in our codebase. See the ListPage/FireMan components, where if showTitle is set to false, then it explicitly passes undefined to the title. It appears this has been the behaviour since at least 2017.

Copy link
Member

Choose a reason for hiding this comment

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

Even weirder.

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 23, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 23, 2025

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@logonoff
Copy link
Member Author

/retest

@vojtechszocs
Copy link
Contributor

/label plugin-api-approved

@openshift-ci openshift-ci bot added the plugin-api-approved Indicates a PR with plugin API changes has been approved by an API reviewer label Apr 23, 2025
@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD bd6ef9a and 2 for PR HEAD a9afa41 in total

@logonoff
Copy link
Member Author

/retest-required

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD bd6ef9a and 2 for PR HEAD a9afa41 in total

@rhamilto
Copy link
Member

/retest

@jhadvig
Copy link
Member

jhadvig commented Apr 24, 2025

Overriding the CI job due to flakiness

/override ci/prow/e2e-gcp-console

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 24, 2025

@jhadvig: Overrode contexts on behalf of jhadvig: ci/prow/e2e-gcp-console

Details

In response to this:

Overriding the CI job due to flakiness

/override ci/prow/e2e-gcp-console

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 kubernetes-sigs/prow repository.

@logonoff
Copy link
Member Author

/label docs-approved

@openshift-ci openshift-ci bot added the docs-approved Signifies that Docs has signed off on this PR label Apr 24, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 24, 2025

@logonoff: all tests passed!

Full PR test history. Your PR dashboard.

Details

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 kubernetes-sigs/prow repository. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit 0ef501e into openshift:main Apr 24, 2025
8 checks passed
@openshift-ci-robot
Copy link
Contributor

@logonoff: Jira Issue OCPBUGS-54670: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-54670 has been moved to the MODIFIED state.

Details

In response to this:

https://issues.redhat.com//browse/CONSOLE-4492
https://issues.redhat.com/browse/OCPBUGS-54670

follow up on #14875

adopts PF PageHeader for console's main heading component.

no major UI changes should appear in this PR (e.g., create buttons appearing in a separate row as the title), except for two: operator details now have a line between the operator icon and the operator name. badges are also now placed next to the title.

fixes small a11y issue where heading actions were inside of the h1 element when it shouldn't be

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.

@logonoff logonoff deleted the pageheader branch April 24, 2025 14:35
@openshift-merge-robot
Copy link
Contributor

Fix included in accepted release 4.19.0-0.nightly-2025-04-29-095709

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

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. component/core Related to console core functionality component/dashboard Related to dashboard component/dev-console Related to dev-console component/gitops Related to gitops-plugin component/helm Related to helm-plugin component/knative Related to knative-plugin component/metal3 Related to metal3-plugin component/monitoring Related to monitoring component/olm Related to OLM component/pipelines Related to pipelines-plugin component/sdk Related to console-plugin-sdk component/shared Related to console-shared component/topology Related to topology docs-approved Signifies that Docs has signed off on this PR jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. kind/cypress Related to Cypress e2e integration testing kind/i18n Indicates issue or PR relates to internationalization or has content that needs to be translated lgtm Indicates that a PR is ready to be merged. plugin-api-approved Indicates a PR with plugin API changes has been approved by an API reviewer plugin-api-changed Categorizes a PR as containing plugin API changes px-approved Signifies that Product Support has signed off on this PR qe-approved Signifies that QE has signed off on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants