OCPBUGS-78543: Hide filter category selector when only one filter exists#16153
OCPBUGS-78543: Hide filter category selector when only one filter exists#16153openshift-merge-bot[bot] merged 2 commits intoopenshift:mainfrom
Conversation
|
@rhamilto: This pull request references Jira Issue OCPBUGS-78543, which is invalid:
Comment 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. |
81b9ca8 to
a5a4f6d
Compare
|
/jira refresh |
|
@rhamilto: This pull request references Jira Issue OCPBUGS-78543, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
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. |
|
/cherry-pick release-4.21 |
|
@rhamilto: once the present PR merges, I will cherry-pick it on top of 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 kubernetes-sigs/prow repository. |
|
@rhamilto: This pull request references Jira Issue OCPBUGS-78543, which is valid. 3 validation(s) were run on this bug
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. |
|
/retest |
|
/retest |
1 similar comment
|
/retest |
Adds CSS to hide the filter category dropdown selector when there's only one filter type available in ConsoleDataView, improving UX by removing unnecessary UI elements. Changes: - Create ConsoleDataView.scss with `.co-console-data-view-single-filter` class - Apply class to DataView component when single filter is present - Import CSS utilities and stylesheet in ConsoleDataView.tsx - Add Cypress test to verify category selector is hidden for both text and select filter types - Add reusable test helper `verifySingleFilterCategoryHidden` The CSS uses `!important` to ensure the rule works across all breakpoints and targets the first child of the filter group (the category selector). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
/assign @yapei |
|
/retest |
|
Checked on cluster launched against the pr, on /settings/cluster/alertmanagerconfig page, the filter input was by default 'Filter by name' without dropdown list; on pods page, checked filter by 'Status', there was dropdown list for selecting different statuses. And there was not dropdown list when filter by 'Name/Label'. |
|
@yanpzhan: This PR has been marked as verified by 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. |
|
/retest |
|
/retest |
1 similar comment
|
/retest |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhamilto, sg00dwin 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 |
|
@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. |
|
@rhamilto: Jira Issue OCPBUGS-78543: Some pull requests linked via external trackers have merged:
The following pull request, linked via external tracker, has not merged:
All associated pull requests must be merged or unlinked from the Jira bug in order for it to move to the next state. Once unlinked, request a bug refresh with Jira Issue OCPBUGS-78543 has not been moved to the MODIFIED state. This PR is marked as verified. If the remaining PRs listed above are marked as verified before merging, the issue will automatically be moved to VERIFIED after all of the changes from the PRs are available in an accepted nightly payload. 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: #16153 failed to apply on top of branch "release-4.21": 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 kubernetes-sigs/prow repository. |
|
/jira refresh |
|
@rhamilto: Jira Issue OCPBUGS-78543: Some pull requests linked via external trackers have merged:
The following pull request, linked via external tracker, has not merged:
All associated pull requests must be merged or unlinked from the Jira bug in order for it to move to the next state. Once unlinked, request a bug refresh with Jira Issue OCPBUGS-78543 has not been moved to the MODIFIED state. This PR is marked as verified. If the remaining PRs listed above are marked as verified before merging, the issue will automatically be moved to VERIFIED after all of the changes from the PRs are available in an accepted nightly payload. 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. |
|
/jira refresh |
|
@rhamilto: Jira Issue Verification Checks: Jira Issue OCPBUGS-78543 Jira Issue OCPBUGS-78543 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. 🕓 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. |
Summary
Hides the filter category dropdown selector when only one filter type is available in ConsoleDataView, improving UX by removing an unnecessary UI element.
After
Screen.Recording.2026-03-16.at.7.34.20.PM.mov
What this PR does
When ConsoleDataView has only a single filter type (e.g., just a text filter or just a select filter), the category selector dropdown becomes redundant. This PR adds CSS to hide it automatically.
Implementation
New file: ConsoleDataView.scss
.co-console-data-view-single-filterclass following Console'sco-prefix naming convention.pf-v6-c-toolbar__group.pf-m-filter-group(the category selector)!importantto ensure visibility override works across all responsive breakpointsUpdates to ConsoleDataView.tsx
cssutility from@patternfly/react-stylesDataViewcomponent whendataViewFilterNodes.length === 1Cypress test coverage
verifySingleFilterCategoryHiddenfor DRY testsTest Plan
/settings/cluster/alertmanagerconfig(text filter only) - verify category dropdown is hidden/search/all-namespaces?kind=core~v1~Pod(select filter only) - verify category dropdown is hiddenScreenshots
Screenshots showing before/after behavior would be helpful for review
🤖 Generated with Claude Code