Skip to content

OCPBUGS-84876: Remove DataViewToolbar wrapper from bottom pagination#16479

Merged
openshift-merge-bot[bot] merged 1 commit into
openshift:mainfrom
rhamilto:OCPBUGS-84876
May 21, 2026
Merged

OCPBUGS-84876: Remove DataViewToolbar wrapper from bottom pagination#16479
openshift-merge-bot[bot] merged 1 commit into
openshift:mainfrom
rhamilto:OCPBUGS-84876

Conversation

@rhamilto
Copy link
Copy Markdown
Member

@rhamilto rhamilto commented May 21, 2026

Analysis / Root cause:

Follow-on fix for OCPBUGS-84876. The initial PR (#16391) added bottom pagination to ConsoleDataView but wrapped it in a DataViewToolbar, which is unnecessary.

Solution description:

Remove the DataViewToolbar wrapper from the bottom Pagination component and render it directly as a child of DataView. The DataViewToolbar wrapper added unnecessary DOM structure — Pagination works correctly as a direct child of DataView.

Screenshots / screen recording:
Before
Screenshot 2026-05-21 at 9 00 35 AM
After
Screenshot 2026-05-21 at 9 00 28 AM

Test setup:
Navigate to any page using ConsoleDataView (e.g., Nodes page).

Test cases:

  • Verify bottom pagination is still visible and functional
  • Verify top pagination still works
  • Verify pagination syncs between top and bottom
  • Verify mobile viewport still shows full controls in the bottom pagination

Browser conformance:

  • Chrome
  • Firefox
  • Safari (or Epiphany on Linux)

Additional info:
N/A

Summary by CodeRabbit

  • Refactor
    • Internal refactoring of pagination component integration with no user-facing changes.

… pagination

The bottom Pagination component doesn't need to be wrapped in a
DataViewToolbar. Render it directly as a child of DataView instead.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@openshift-ci-robot openshift-ci-robot added jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. labels May 21, 2026
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@rhamilto: This pull request references Jira Issue OCPBUGS-84876, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (5.0.0) matches configured target version for branch (5.0.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, POST)

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

Analysis / Root cause:

Follow-on fix for OCPBUGS-84876. The initial PR (#16391) added bottom pagination to ConsoleDataView but wrapped it in a DataViewToolbar, which is unnecessary.

Solution description:

Remove the DataViewToolbar wrapper from the bottom Pagination component and render it directly as a child of DataView. The DataViewToolbar wrapper added unnecessary DOM structure — Pagination works correctly as a direct child of DataView.

Screenshots / screen recording:

Test setup:
Navigate to any page using ConsoleDataView (e.g., Nodes page).

Test cases:

  • Verify bottom pagination is still visible and functional
  • Verify top pagination still works
  • Verify pagination syncs between top and bottom
  • Verify mobile viewport still shows full controls in the bottom pagination

Browser conformance:

  • Chrome
  • Firefox
  • Safari (or Epiphany on Linux)

Additional info:
N/A

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-robot
Copy link
Copy Markdown
Contributor

@rhamilto: This pull request references Jira Issue OCPBUGS-84876, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (5.0.0) matches configured target version for branch (5.0.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)
Details

In response to this:

Analysis / Root cause:

Follow-on fix for OCPBUGS-84876. The initial PR (#16391) added bottom pagination to ConsoleDataView but wrapped it in a DataViewToolbar, which is unnecessary.

Solution description:

Remove the DataViewToolbar wrapper from the bottom Pagination component and render it directly as a child of DataView. The DataViewToolbar wrapper added unnecessary DOM structure — Pagination works correctly as a direct child of DataView.

Screenshots / screen recording:
Before
Screenshot 2026-05-21 at 9 00 35 AM
After
Screenshot 2026-05-21 at 9 00 28 AM

Test setup:
Navigate to any page using ConsoleDataView (e.g., Nodes page).

Test cases:

  • Verify bottom pagination is still visible and functional
  • Verify top pagination still works
  • Verify pagination syncs between top and bottom
  • Verify mobile viewport still shows full controls in the bottom pagination

Browser conformance:

  • Chrome
  • Firefox
  • Safari (or Epiphany on Linux)

Additional info:
N/A

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 stefanonardo May 21, 2026 13:04
@rhamilto
Copy link
Copy Markdown
Member Author

/assign @logonoff
/verified by @rhamilto
/cherry-pick release-4.22 release-4.21

@openshift-ci openshift-ci Bot added the component/core Related to console core functionality label May 21, 2026
@openshift-cherrypick-robot
Copy link
Copy Markdown

@rhamilto: once the present PR merges, I will cherry-pick it on top of release-4.22 in a new PR and assign it to you.

Details

In response to this:

/assign @logonoff
/verified by @rhamilto
/cherry-pick release-4.22 release-4.21

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.

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 21, 2026
@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label May 21, 2026
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@rhamilto: This PR has been marked as verified by @rhamilto.

Details

In response to this:

/assign @logonoff
/verified by @rhamilto
/cherry-pick release-4.22 release-4.21

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-robot
Copy link
Copy Markdown
Contributor

@rhamilto: This pull request references Jira Issue OCPBUGS-84876, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (5.0.0) matches configured target version for branch (5.0.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)
Details

In response to this:

Analysis / Root cause:

Follow-on fix for OCPBUGS-84876. The initial PR (#16391) added bottom pagination to ConsoleDataView but wrapped it in a DataViewToolbar, which is unnecessary.

Solution description:

Remove the DataViewToolbar wrapper from the bottom Pagination component and render it directly as a child of DataView. The DataViewToolbar wrapper added unnecessary DOM structure — Pagination works correctly as a direct child of DataView.

Screenshots / screen recording:
Before
Screenshot 2026-05-21 at 9 00 35 AM
After
Screenshot 2026-05-21 at 9 00 28 AM

Test setup:
Navigate to any page using ConsoleDataView (e.g., Nodes page).

Test cases:

  • Verify bottom pagination is still visible and functional
  • Verify top pagination still works
  • Verify pagination syncs between top and bottom
  • Verify mobile viewport still shows full controls in the bottom pagination

Browser conformance:

  • Chrome
  • Firefox
  • Safari (or Epiphany on Linux)

Additional info:
N/A

Summary by CodeRabbit

  • Refactor
  • Internal refactoring of pagination component integration with no user-facing changes.

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.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 21, 2026

📝 Walkthrough

Walkthrough

This PR refactors the pagination wiring in ConsoleDataView.tsx. The change removes the pagination prop wrapper pattern around the PatternFly Pagination component and renders it as a direct JSX block within the DataViewToolbar. The Pagination element retains its itemCount (derived from filteredData.length), titles (from paginationTitles), PaginationVariant.bottom setting, and spread pagination props. The refactoring simplifies the component integration without altering the pagination behavior or props surface.

🚥 Pre-merge checks | ✅ 12
✅ Passed checks (12 passed)
Check name Status Explanation
Title check ✅ Passed The title is fully related to the main change—it accurately describes the removal of the DataViewToolbar wrapper from the bottom pagination component.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names ✅ Passed PR modifies only React/TypeScript component (ConsoleDataView.tsx); custom check targets Ginkgo Go tests which are absent in this PR scope.
Test Structure And Quality ✅ Passed This PR modifies only React/TypeScript components (ConsoleDataView.tsx), not Ginkgo tests. The check is not applicable as it requires reviewing Ginkgo test code specifically.
Microshift Test Compatibility ✅ Passed This PR modifies frontend React/TypeScript code (ConsoleDataView.tsx), not Go test files. The MicroShift test compatibility check applies only to Ginkgo e2e tests, which are not added in this PR.
Single Node Openshift (Sno) Test Compatibility ✅ Passed This PR modifies only a React/TypeScript frontend component (ConsoleDataView.tsx). No new Ginkgo e2e tests are added; the SNO compatibility check only applies to new test additions.
Topology-Aware Scheduling Compatibility ✅ Passed This PR modifies a React UI component (ConsoleDataView.tsx) with no deployment manifests, operator code, or Kubernetes scheduling constraints. Check is not applicable.
Ote Binary Stdout Contract ✅ Passed PR modifies only frontend React/TypeScript component (ConsoleDataView.tsx). OTE Binary Stdout Contract applies to Go test binaries with process-level code; not applicable to React component changes.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed No Ginkgo e2e tests added in this PR. Changes are limited to React/TypeScript frontend component refactoring of ConsoleDataView pagination wrapper; check does not apply.
Description check ✅ Passed PR description comprehensively covers all required sections with clear analysis, solution, test cases, and browser conformance checklist.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Member

@logonoff logonoff left a comment

Choose a reason for hiding this comment

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

Probably deserves an issue on patternfly/react-data-view

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label May 21, 2026
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 21, 2026

[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

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 21, 2026

@rhamilto: 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 559a872 into openshift:main May 21, 2026
9 checks passed
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@rhamilto: Jira Issue Verification Checks: Jira Issue OCPBUGS-84876
✔️ This pull request was pre-merge verified.
✔️ All associated pull requests have merged.
✔️ All associated, merged pull requests were pre-merge verified.

Jira Issue OCPBUGS-84876 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. 🕓

Details

In response to this:

Analysis / Root cause:

Follow-on fix for OCPBUGS-84876. The initial PR (#16391) added bottom pagination to ConsoleDataView but wrapped it in a DataViewToolbar, which is unnecessary.

Solution description:

Remove the DataViewToolbar wrapper from the bottom Pagination component and render it directly as a child of DataView. The DataViewToolbar wrapper added unnecessary DOM structure — Pagination works correctly as a direct child of DataView.

Screenshots / screen recording:
Before
Screenshot 2026-05-21 at 9 00 35 AM
After
Screenshot 2026-05-21 at 9 00 28 AM

Test setup:
Navigate to any page using ConsoleDataView (e.g., Nodes page).

Test cases:

  • Verify bottom pagination is still visible and functional
  • Verify top pagination still works
  • Verify pagination syncs between top and bottom
  • Verify mobile viewport still shows full controls in the bottom pagination

Browser conformance:

  • Chrome
  • Firefox
  • Safari (or Epiphany on Linux)

Additional info:
N/A

Summary by CodeRabbit

  • Refactor
  • Internal refactoring of pagination component integration with no user-facing changes.

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-cherrypick-robot
Copy link
Copy Markdown

@rhamilto: new pull request created: #16483

Details

In response to this:

/assign @logonoff
/verified by @rhamilto
/cherry-pick release-4.22 release-4.21

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.

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 jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. 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. lgtm Indicates that a PR is ready to be merged. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants