Use ui-select for index pattern selector#10144
Conversation
|
@lukasolson I like this. Is there any work remaining on this? It's marked as "in progress". @cjcenizal Any reason we couldn't use the same control for selecting metrics in Visualize, which is another big pain point for users with 1000s of fields in an index? #2130 |
|
I'm all in favor of auto-completion. There might be some additional aspects to consider though:
|
There was a problem hiding this comment.
This is BOMB! Much better UI and UX. How many index patterns can be displayed at one time?
Re @weltenwort's questions, this probably does decrease accessibility somewhat, but we already don't have a solid accessibility baseline to work from. So I think we can address this as part of our accessibility initiative. In terms of style, I'm OK with the way the looks for now.
Before
After
| <div class="col-md-2 sidebar-container collapsible-sidebar"> | ||
| <disc-field-chooser | ||
| columns="state.columns" | ||
| refresh="refreshFieldList" |
There was a problem hiding this comment.
Out of curiosity, why was this removed?
There was a problem hiding this comment.
It wasn't being used anywhere.
|
@lukasolson can we expect this to be merged for 5.4? also, how re-usable is this component? Is it something @thomasneirynck or @ppisljar could possibly use for #2130? |
|
did this feature will be integrated in 5.3? |
|
@alexfrancoeur should be an low hanging fruit once this is merged |
|
@ppisljar I actually experimented with this ui-select a little earlier yesterday. Tap me for details. |
|
@xycloud this feature will unfortunately not make 5.3, but we are trying to get it in as soon as possible! |
|
@lukasolson I'm not sure how much control we have over the UI at the moment but the recommended UI/UX from design can be found here. Let's sync when you're back to discuss our options |
|
@lukasolson @alexfrancoeur Please feel free to involve me in this conversation, so I can help answer questions around implementation. |
|
@cjcenizal makes sense. I believe @lukasolson has a component in mind already for re-use. Please sync with him on the current component and see if we can make any modifications in the short term that are closer to @snide's design. |
|
I just need to get a corresponding PR to remove some code duplication from X-Pack as a result of moving this component into core Kibana, then get the build passing, then this should be good to go. Hoping to get it done early today. |
|
jenkins test it |
|
@lukasolson LGTM. I'd be interested in seeing how this behaves with a large number of index patterns. I don't have any environment where that's the case though. |
Bargs
left a comment
There was a problem hiding this comment.
❤️❤️❤️ This is fantastic
Left one idea inline, and I have one other minor nit: can we increase the max height of the select box? While the search is perfect when you know what you're looking for, the small size of the box will hurt the scan-ability of the list when browsing.
| {{$select.selected}} | ||
| </ui-select-match> | ||
| <ui-select-choices repeat="id in indexPatternList | filter:$select.search | orderBy"> | ||
| <div ng-bind-html="id"></div> |
There was a problem hiding this comment.
@Bargs I'm not quite sure I understand your comment about increasing the max-height. Do you mean of the select input, or the options list, or what? Also, I've added the highlighting, good call. :)
There was a problem hiding this comment.
@Bargs Ahh, I see what you're saying. Do you think we should increase the max height for all ui-select components or just this one for now?
There was a problem hiding this comment.
Also, sorry about the premature merge, I forgot about this last item and got a couple of other LGTMs so I got trigger happy.
There was a problem hiding this comment.
Haha no worries. I think maybe just this one should be taller, since it might be dependent on where the select box shows up on the page? I'm not sure, I guess I'd have to see how it looks in other areas where it might be used.
|
jenkins test it |
* Replace index pattern selector with ui-select * Show index patterns in alphabetical order * Add highlighting to select
|
Backported to 5.x (5.4) in 5620116. |







Closes #7091.
This PR uses the ui-select component for the index pattern selector. This addresses the problem when there is a long list of index patterns that pushes the field list all the way down and makes it simpler to select a new index pattern by allowing the user to quickly filter to the desired pattern.