[EuiFilterGroup][FieldValueSelectionFilter] Use EuiSelectable#5387
[EuiFilterGroup][FieldValueSelectionFilter] Use EuiSelectable#5387thompsongl merged 48 commits intoelastic:mainfrom
EuiSelectable#5387Conversation
|
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 |
EuiSelectableEuiSelectable
|
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/ |
cchaos
left a comment
There was a problem hiding this comment.
@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/ |
cchaos
left a comment
There was a problem hiding this comment.
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! |
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/ |
cchaos
left a comment
There was a problem hiding this comment.
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/ |
cchaos
left a comment
There was a problem hiding this comment.
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