Skip to content

[Docs] filter_group_multi: update multi select example to be functional - #4178

Merged
thompsongl merged 5 commits into
elastic:masterfrom
Phizzard:multi-select-example
Oct 28, 2020
Merged

thompsongl merged 5 commits into
elastic:masterfrom
Phizzard:multi-select-example

Conversation

@Phizzard

@Phizzard Phizzard commented Oct 24, 2020 •

Copy link
Copy Markdown
Contributor

Summary

Fixes (partially) #4165

Updates Multi Select example with EuiFilterSelect and EuiFilterSelectGroup.

The list in the example has been updated to state so the example component can re-render as the item state updates. However, I noticed that it seems the EuiFilterSelectGroup doesn't re-render until you click off of the pop up containing the EuiFilterSelectItems.

Wondering if there's something missing from my updates or if it's something more underlying with the components?

Checklist

  • Check against all themes for compatibility in both light and dark modes
  • Checked in mobile
  • Checked in Chrome, Safari, Edge, and Firefox
  • Props have proper autodocs
  • Added documentation
  • Checked Code Sandbox works for the any docs examples
  • Added or updated jest tests
  • Checked for breaking changes and labeled appropriately
  • Checked for accessibility including keyboard-only and screenreader modes
  • A changelog entry exists and is marked appropriately

@kibanamachine

Copy link
Copy Markdown
Contributor

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@thompsongl
thompsongl self-requested a review October 26, 2020 15:12
@thompsongl

Copy link
Copy Markdown
Contributor

jenkins test this

@kibanamachine

Copy link
Copy Markdown
Contributor

@thompsongl thompsongl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for this @Phizzard!

A couple changes requested to make the example more consistent, but the basics are all there.

@thompsongl thompsongl changed the title docs(filter_group_multi): update multi select example to be functional [Docs] filter_group_multi: update multi select example to be functional Oct 26, 2020
@Phizzard

Copy link
Copy Markdown
Contributor Author

Would it be cool if this PR could be labelled hacktoberfest-accepted to count towards Hacktoberfest once it's been approved? :)

@thompsongl

Copy link
Copy Markdown
Contributor

jenkins test this

Comment thread CHANGELOG.md Resolved
@kibanamachine

Copy link
Copy Markdown
Contributor

@cchaos

cchaos commented Oct 27, 2020

Copy link
Copy Markdown
Contributor

I would say that this only partially fixes #4165. It is updating the count of the checked = on items, but there are other UI elements that need to be hooked up like searching, loading, and no results.

Screen Shot 2020-10-27 at 11 29 29 AM

Screen Shot 2020-10-27 at 11 29 17 AM

That said, I'm totally fine merging this in as a partial fix. But wanted to open it up to the opportunity to hook it all up as a fully-working example.

@cchaos

cchaos commented Oct 28, 2020

Copy link
Copy Markdown
Contributor

Jenkins, test this

@cchaos
cchaos requested a review from thompsongl October 28, 2020 15:21
@kibanamachine

Copy link
Copy Markdown
Contributor

@thompsongl thompsongl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is in a good state, so I'll go ahead and merge it.

@Phizzard, if you're looking to make some more contributions, feel free to do a follow-up PR that address the other parts of this example that Caroline mentioned: search, loading, empty state.
Thanks again.

@thompsongl
thompsongl merged commit 7524a5c into elastic:master Oct 28, 2020
cchaos added a commit to andreadelrio/eui that referenced this pull request Nov 4, 2020
…al (elastic#4178)

* docs(filter_group_multi): update multi select example to be functional

* fix(filter_group_multi): add working multi select example

* add elastic#4178 to changelog

* Remove extra space from cl

Co-authored-by: Caroline Horn <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants