[Lens] Index pattern selection using EuiSelectable#46350
[Lens] Index pattern selection using EuiSelectable#46350cchaos merged 11 commits intoelastic:masterfrom
Conversation
|
@flash1293 Because I see that you were the one who created these components, can you help me fix a few things?
|
💔 Build Failed |
There was a problem hiding this comment.
I will open an EUI issue for this, we had the same problem with the combo box
I think this is the best option at the moment. Can we push the issue a bit? Seems like quite a few people ran into it.
Selectables in popovers are super awkward to test with our setup because of you can't mount them because enzyme doesn't support portals and you can't shallow render because then you won't get the rendered options. You can sort-of do both by shallow rendering the container, then use
I fixed that, This was caused by a now obsolete performance optimization that made it necessary to pass the |
💔 Build Failed |
|
@cchaos tests should work now |
💚 Build Succeeded |
|
Awesome, thank you @flash1293 ! I'll rebase the PR and do the browser checks. I think it's ready for review then. |
|
Pinging @elastic/kibana-app |
💚 Build Succeeded |
x-pack/legacy/plugins/lens/public/indexpattern_plugin/change_indexpattern.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/lens/public/indexpattern_plugin/change_indexpattern.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/lens/public/indexpattern_plugin/datapanel.tsx
Outdated
Show resolved
Hide resolved
💔 Build Failed |
💚 Build Succeeded |
|
This PR's ready for a final review. |
|
@elasticmachine merge upstream |
💔 Build Failed |
|
Random unrelated failing jest test. Gonna merge with upstream manually to see if it fixes it. |
6afd876 to
93567a1
Compare
|
Good catch @nickofthyme ! I will add that in |
flash1293
left a comment
There was a problem hiding this comment.
LGTM, tested and works as expected 👍
💚 Build Succeeded |
💔 Build Failed |
💚 Build Succeeded |

Created a shared component for changing index pattern
There were two different implementations used in the fields panel and the layer panel. They both used EuiComboBox and swapped out the UI from text to the input. This wasn't ideal as I wanted the selection to occur in a popover with a straight list and search capability.
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.[ ] Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support[ ] Documentation was added for features that require explanation or tutorials[ ] This was checked for keyboard-only and screenreader accessibility