-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Integrate tags to navigational search results #81846
Comments
Pinging @elastic/kibana-core-ui (Team:Core UI) |
Pinging @elastic/kibana-platform (Team:Platform) |
I don't see any technical blocker to enhance SO search results with tags. I don't know the |
On the surface, it seems like this might get very noisy. I wonder if the more optimal UX thing to do with tags is work them into the search syntax idea. For example If the consensus is to go the 'display tags by default' route, then let's have a designer iterate on that a bit. |
Technically, we can achieve this pretty easily though it isn't built into the component as is right now. For the meta data, there are 5 types ('application', 'deployment', 'article', 'case', 'platform') which I think each just align to specific colors. But we could create a custom type of meta data (e.g., 'tag') and render it however we wanted to. |
Another subtask of #74571 regarding the navigational search integration is |
Re: clicking, I didn't envision tags as being search results themselves, but rather used as (non-clickable) metadata or as a search syntax key/term. If, in the future, we have an advanced results page, then I could see a tag result taking you there to a filtered list of 'stuff'. |
I was thinking of supporting tags in two ways
I had been thinking we can focus on the first item first, but it seems like there are some design concerns. @ryankeairns @MichaelMarcialis do we think this would be too busy? I was aiming for consistency and object differentiation, but I can see the argument for noisy. Is it worth putting some quick mocks together? If we think it's visually too noisy, I think we can probably close this out and add tags as a requirement for #74290 and the advanced results page (couldn't find an issue) |
Maybe this gets into the realm of more UI configuration than we typically support, but it would be kind of neat if users could opt-in/out of showing the tagging. I imagine it'll be more important to some users rather than others. |
Yeah, we can do some mockups and see where it goes. |
++ @myasonik, I agree - perfect requirement for a user setting! @ryankeairns visually, I wonder if it would feel less busy if we kept tags monochromatic or text only in the search results |
@ryankeairns any progress on that one? |
@pgayvallet No, not yet. I had presumed this was further out but can get something up quickly. |
Hey, all. I've put together a quick mockup and prototype for how tags could potentially appear in the global search experience. Whenever you have a moment, please take a look at the design overview video I've linked below for a detailed walkthrough. As always, feel free to leave any feedback here or in Figma via the commenting tool. Otherwise, if you'd like to meet to discuss further, let me know and I'll throw something on the calendar. Thanks. |
I think most of the propositions make sense. I personally find the tags being displayed on the right to not be obstructive, and it even adds a nice touch of color to the result list. Still got a lot of questions, but most of them are regarding the technical implementation and feasibility. The
|
Yup, the amount we're doing that isn't part of the default component I think is starting to outweigh the utility in sticking to the default but I'm a little concerned about the shift from an EUI-owned cross-solution component to a Kibana-owned "enhanced" version and I'm not sure how we want to go forward ultimately... @cchaos thoughts? |
Yes, exactly! If we could make smart suggestions like this while also educating users about the filter syntax options, that would be great.
If it's not possible to change the text within the key indicator badge, perhaps we just shorten it to show the ↩ symbol in all cases? Thoughts, @ryankeairns? As for the blue colored text on hover/focus, I believe we already do that currently, though it appears that the highlighted/marked styles applied to keyword matches is overriding the color styles. We may need to either ask for an EUI CSS tweak here.
Gotcha. I wanted to use an |
We have (Also, to be totally honest, as this is limited by both EUI's
yea, it's not only that. With the default renderer, we can't have non-text meta I think, and we definitely can't render the tags where they are in the mockup anyway.
++ on that. But the default option renderer of the component is just not compatible with the advanced display we would need to match the design here. Also as this seems fairly specific to this exact and only need, I don't really see the component / option rendered being provided by EUI. I mean, that's what |
The designs look great, thanks for putting them together @MichaelMarcialis ! It's natural (and likely a sign of excitement) for the conversation to move into implementation complexities, but let's not lose sight of what we were hoping to achieve here with these particular designs - what would it look like? and is it worth pursuing? It seems we're all on board with the general approach, so it's reasonable to next outline the changes we would need from EUI. As we dive into that request, let's also keep in mind how/if others would leverage this approach (i.e. Cloud and Dream Machine). In the short term, it sounds like we need to get consensus on whether or not we're ok with adding the syntax sans showing tags in the UI. I think we have consensus on that being the initial version, but speak up if you disagree. @alexfrancoeur does that work for you? |
Nothing in this proposal deviates so fully from the template in EUI that would make it seem unreasonable to add these updates to the EUI component. I'm excluding the search syntax from this for now as that is just a more technical request.
All you have to do to support this is to pass an
The underlying component allows this to be configurable, so from the EUI side we just need to expose this at a higher level for customizing per item. Should be easy.
Yes, I think that is a text-color inheritance issue and we can look into fixing.
This is the biggest change that will be needed from the EUI side. But I think we can just make it general enough that EUI provides an "area" that can be placed on the right containing anything. Or open up the area where the current Space avatar exists to be customized. Again, this shouldn't be too difficult to provide either. One question I do have though, is if the designs have taken into consideration the future plans of adding the Space avatar. How will these interact? |
Yeah, this is a great question, and one I had not taken into account here. Ryan made me aware of this future addition to search results after sharing these designs and it's one we'll definitely have to take into account. Does it make sense to move the space avatar to a different location to accommodate this placement of tags? The first thing that jumped to mind was presenting the space avatar in the Further complicating matters is the fact that saved objects will be able to be shared across multiple spaces in the near future. So does that mean the same saved object appears multiple times (one for each space it exists within)? Or do we show the saved object once with multiple space avatars displayed? If the latter, which space is the user taken to when interacting with that search result? |
Some thoughts regarding Spaces: Moving Spaces to left
Keeping Spaces at right
|
This has, imho, low value, as the info is already in the searchbar. The only usage I can see is when the user is searching for multiple (OR) tags, to dissociate the tag that returned each result.
They actually do (well, if we want them to). I looked at the SO metadata, and we have an icon, that is currently used in the SO management section. The wiring was quite easy, and the result is: I implemented this in #83422, but I can also revert that if we don't want it. What do you think? Another question regarding the How would that work this this new 'suggestion' option? Would we be just displaying the suggestion instead? |
I'll be curious to check this out. The design team was instructed to steer away from these app-level icons, however the case is not closed. We've had recent discussions of potentially re-purposing these as an object-level set.
Curious to try this one out as well. The UX here (especially as we launch without visible tags in the results) feels a bit rough with regards to how we handle/educate on the syntax keywords, and the fail state (illustration) is appearing to frequently for my taste :) This addition of this suggestion may just do the trick. The other common pattern I see is suggested text, but that feels more complicated on the surface (e.g tags:name, where :name is subdued text). |
Regarding launching the advanced syntax without showing tags in the results. If we showed just text of tags initially, would that be a bit easier to consume? I really like the suggestions to help our users learn syntax and agree with @pgayvallet that it'd be good to support for Related to returning results for multiple spaces, I've been trying to think through this. We either need a separate result returned for each SO, or some UX that allows you to choose the SO returned and then choose which space you want to navigate to. This feels increasingly complex for things like applications. If I type Dashboard and have 20 spaces with access to Dashboards, whats the UX? If we introduce cross-deployment results, what's the UX for that? Navigation will get overly complex pretty quickly in larger environments. |
Created #83888 for the 'suggestion option' part of this issue, as this is not only related to tag integration into the search. |
In response to the question about what to do with Spaces, I've added a comment with our (@myasonik @MichaelMarcialis ) initial thoughts to the [GS] Search across Sapces issue. In short, we're comfortable with using the right-hand space for tags (as proposed by Michael above) and revisiting alternatives for the cross-space UX. I've noted some of those alternatives in the aforementioned comment. |
With #74290 closed and merged, are we keeping this open to provide tags in the search results themselves? |
Yep. Michail is currently working on an EUI change to support this. |
And with that, our 7.11 tags story is complete. Thank you @pgayvallet @myasonik @MichaelMarcialis and @ryankeairns for making this experience as amazing as it is. 👏 👏 👏 |
With tags coming soon (#79096) and support for fleet integrations on the horizon (elastic/integrations#327), I'm beginning to think we'll need to surface tags in the saved objects results of navigational search. There are a few reasons I think we should do this.
I'll definitely need some design help here, but here's a quick PM mock of how this could look visually
Today:
Support for tags:
I'd love to hear the teams thoughts on this. It feels like something we should support in a post-tags world, but let's discuss.
cc: @pgayvallet @ryankeairns @myasonik
The text was updated successfully, but these errors were encountered: