New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Change search to handle multiple resources #3719
Conversation
@spadgett - first version. Please review when you have some time. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: zherman0 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
1 similar comment
/retest |
I wonder if we should just use Patternfly https://www.patternfly.org/v4/documentation/react/components/select#multiple If we use our own, I would just show a count for the number selected like the Patternfly widget. |
We might skip preselecting Service when we make this change since it's extra clicks to manually deselect it when you want something else. |
We should try to have one text filter for all types instead of repeating it. |
/retest |
1 similar comment
/retest |
UX and visual issues to be addressed
Search Results |
@zherman0: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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/test-infra repository. I understand the commands that are listed here. |
/hold |
patternfly/patternfly-react#3457 has been created to tweak how this PF component works which should make this more usable. @spadgett @benjaminapetersen |
Closing in favor of solution #3875 |
Change search page to allow for multiple resources to be selected at one time and searched using query.
Functionality this is complete, but visually we might want to make more tweaks.
Version 2: (Using PF4 Select with multi and typeahead)
There are still several visual issues and there is a difference between PF 3.112 (consle version) and PF 3.124 (current).
Images with 3.112
Filter Removed:
Images with PF 3.124
Version1: (non PF dropdown)
I tried several ways to unselect resources but decided on a checkbox for UX. I don't love the appearance so I am open to comments. I did try simply highlighting the selected row in the dropdown but was not sure that it would be obvious to users they needed to click on it again to unselect the item. I also added a close button on each resource but the title area of the dropdown is controlled by the generic Dropdown component and the close button was not clickable since it invoked the dropdown. I should have taken more pics along the way but I did not.
Here are the current images: