-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Lens] Move function help popover triggers to extraAction
in related EuiListGroupItem
#87322
Comments
Pinging @elastic/kibana-app (Team:KibanaApp) |
@MichaelMarcialis I started to work on this but it seems like there is not enough space to render help icon next to the longer labels (it's though luck the longest names I already reduced the gap between the columns but it's still too tight in a lot of resolutions: Do you still think it's worth doing this? |
Thanks for investigating this, @flash1293! Yes, I do think this is still worth exploring. The current experience of asking users to first select a function and then view documentation explaining that function being tied to the field selector is confusing and and could benefit from this enhancement. I think it's far more desirable for users to be able to learn about the functions before being forced to make a selection. The original intent was that the inline documentation icon buttons would only show when hovering a
Any thoughts on trying one of those solutions? Side note: can we also change the use of the |
I just realized my comment above was probably a bit off-topic
I think that was the main intention of these documentation popovers - explaining the small things that are not obvious / more complex under the hood than they seem.
Based on the thing right above - I'm not sure whether it would help in this specific case (but it's a weakly held opinion). As the help descriptions are pretty specific about the "hard to understand/infer" parts of the functions (not general descriptions of the functions), it seems unlikely to me a user would want to read into them without having them selected already (and maybe wondering why the behavior in one specific place is different than they expected). The formula help to me is more of a reference of what exists in terms of functions and which parameters they have (which is handled by the list group component itself for quick functions). For quick functions, I can see this kind of overview becoming useful if we would have at least some documentation for each of the functions, like when to use it (and maybe also more general information like what Elasticsearch agg is used under the hood, what are possible advanced options, why are certain things allowed / not allowed, ...) - but that's a larger project in itself - there's definitely things to be said about each of them, but I don't know whether this is a pain point of the current UI or not (@ghudgins what do you think? Is it worth digging deeper into this at the moment?) Happy to be convinced otherwise here. |
@flash1293: I agree with you that my aforementioned additional thought of having a single inline documentation popover would only work and have value if it housed descriptions for all available functions (rather than only a select few functions as we currently do). Since that would be a larger effort/issue, let's put that idea aside. Let's instead discuss your doubts on this being a pain point. Even assuming your instinct is correct and that users would be more interested in learning more about a function after it has been selected, are we confident that placing the action to trigger such function-centric documentation on the field selector makes sense from an information architecture perspective? Would a user interacting with the documentation icon button on the field selector think it to be a description of the function they chose in the previous section? Or is it more likely that the user would think it would be documentation pertaining more to field selection? My instinct tells me the latter would be more likely, and another reason why I feel more comfortable with the documentation trigger being in closer proximity to the function selection area instead. One final thought: what if we proceeded with using the documentation icon button that appears on hover via the extraAction prop (as described originally), but slightly increased the min-width of the flyout and sidebar (currently at 320px) at appropriate breakpoints to prevent the truncation or line breaking of function text in the majority of cases? CCing @ghudgins in case he has input as well. |
No, I agree, the function selector is a more natural place for this.
I like that approach - it would take a bit of screenspace away from the chart but I guess it wouldn't be too bad. I can build a version of this. |
Per the original design direction for the Lens help popovers, we should plan to move the current
Date histogram
andMoving average
popover trigger buttons from their current locations (in the field selector form area) to instead appear as anextraAction
in that function'sEuiListGroupItem
. Doing so will:Originating issue: #81780
Enhancement to previous PR: #86821
The text was updated successfully, but these errors were encountered: