-
Notifications
You must be signed in to change notification settings - Fork 841
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
[EuiFilterGroup][FieldValueSelectionFilter] Use EuiSelectable
#5387
Conversation
Preview documentation changes for this PR: https://eui.elastic.co/pr_5387/ |
Quick reminder that EuiSearchBar/EuiInMemoryTable uses the filter component to auto-create their filter UI. You may want to update there as well. |
Setting this back to draft while I look in to EuiSearchBar filters |
EuiSelectable
EuiSelectable
Preview documentation changes for this PR: https://eui.elastic.co/pr_5387/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5387/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5387/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thompsongl Can you also add some docs around the new props of EuiSelectable? I think it's important to tackle these as we add them even though it's not directly part of EuiFilterGroup.
Preview documentation changes for this PR: https://eui.elastic.co/pr_5387/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5387/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5387/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have a plan for creating a real EuiFilterGroup
that just takes a list of items? Like pulling FieldValueSelectionFilter
out to a real component?
I don't think so. I can create an issue if it's something we want to add. |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5387/ |
Yes, please! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After looking at this, I think it should be a separate discussion and not tacked on to this PR. |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5387/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's fine if we want to re-evaluate the re-ordering maybe at the same time we turn this into a real component.
Preview documentation changes for this PR: https://eui.elastic.co/pr_5387/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Looking forward to seeing this get turned into a real component too!
Preview documentation changes for this PR: https://eui.elastic.co/pr_5387/ |
Summary
Closes #3735 and closes #4165 by rebuilding the EuiFilterGroup demo to use EuiSelectable
Also converts FieldValueSelectionFilter in EuiSearchBar to use EuiSelectable
Before:
After:
This also raises the question of whether EuiFilterSelectItem is even needed anymore. Should it be marked for deprecation?To be done in #2841
Checklist
- [ ] Props have proper autodocs and playground toggles