-
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
[Discover] Expanded doc flyout doesn't close when clicking outside the flyout area #160306
Comments
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
@timductive is right that this is intentional behaviour, but it's not the first time someone has questioned this UX, so a design review could be a good idea. Using a push flyout instead was also discussed at one point, there's an issue for it here: #148902. |
thanks @davismcphee, a push flyout is a better solution if the user has to interact at the same time with the table. But if this is not a must-have, then the flyout is much better for smaller screens since the table would shrink too much and may not be usable anyway. But the current behaviour is very annoying and weird for users. If the user clicks in the icon to open another document, we can just update the flyout (without having to open and close) but if the user clicks anywhere else in the screen we should close the flyout. Pleas @andreadelrio @ryankeairns provide your input here :) |
Agreed, and the source of the push flyout issue was that we had some user requests to allow interacting with the data grid and the expanded doc at the same time without obstructing the grid, similar to the old grid that allowed expanding docs inline. The issue proposes using a push flyout at larger screen sizes and a regular flyout at smaller screen sizes to avoid the table shrinking issue you mentioned. But a push flyout on larger screens wouldn't address the outside click concern on smaller screens anyway, so it's definitely worth getting some design input on how we could improve the experience overall 👍 |
Hi all, it's also relevant to mention here that we've received feedback that the content in the To achieve a more compact
|
Wow @andreadelrio this is perfect. I really think we should implement these improvements. This is the #1 used apps in Kibana and opening docs is one of the most frequent actions. The correct UX will save tons of time and massively decrease current users' frustration. My 2 cents on the design: the icon to change between push and normal flyout could just be a simple "pin" icon. |
@andreadelrio That prototype looks awesome! I really like the suggestions here and made a note to discuss them with the team tomorrow in our dev sync. Thanks a lot for looking into this! |
+1 Looks great, btw fun fact, seems we link the first Kibana issue on GitHub a lot @teresaalvarezsoler wanted to highlight that Discover is the Number one used app ... and this was automatically linked to the first Kibana issue: |
Related (which we may close, because there's much more input in the current issue): |
+++ in favor of the pushover option. |
Good data point! |
2 things we mentioned in our sync we should consider
|
@andreadelrio will better say but regarding this
Maybe moving the floating menu to the left will solve it. There is a lot of white unused space now. |
@kertal do you by chance have the original issue/feedback report? I found the related PR but I don't see the actual feedback we received then. I do remember that actions on the right were an issue for people with large screens. With the proposed solution I think users should be able to resize the width of the flyout. So for example, I'd imagine a user with a large screen would opt for the push display and would adjust to the width that works better for them. In any case, seeing the original feedback would be useful to make sure we're covering all issues with this proposal. |
Oooo right... pushover flyout is one thing, resizable container is another. Perhaps the latter is what we are really after on larger viewports? This was for a different exploration, but a layout like this for wider viewports (switch to flyout on smaller sizes): |
@andreadelrio sure, what I found is this: |
I think those are not mutually exclusive, and we should use them in tandem. So we could support a) resizable regular flyout and b) resizable push flyout.
@kertal thanks! For what is worth, I think floating actions on the left side would work nicely. We can position them in a way that values are not covered. |
I really like the ability to change between a push over and regular fly out, that will be a really nice feature to have. During product meetings with the Security team we've brought up the idea of a completely detachable 'pop-out' window that stays synchronized with the selected alert in the original window when reviewing alerts. That would be really nice to have for people with multiple monitors. |
@andreadelrio I really like the idea of making the flyout resizable, but looking into this briefly I'm not sure we can use
I agree, the floating actions on the left look good to me! I think this would address the distance issues on large screens without the need for all the additional whitespace. |
@davismcphee We're not doing anything like this anywhere in Kibana afaik. It sounds like this (resizable flyout) would be a significant effort. As a starting point, how about we implement the other improvements suggested for the flyout then? |
@andreadelrio That makes sense to me. The other enhancements suggested would still be a big improvement over the current flyout, and we can spin off the resizable work into a new issue to track separately. What are your thoughts on this point from @kertal, do you think there's a way to save on some vertical space here or is the stacked links the best we could do here? The plan is for this to become the standard Kibana doc viewer eventually and the available links could vary in number and text length between usages.
|
@davismcphee I think like Matthias was saying we can do icons + text if there's enough space. If there isn't (or there are too many actions) we can show icons only instead with a tooltip showing the text on hover. Also, if there are several actions available we can pick the top "x" ones and group the rest under the "more" icon. Icon-only actionsIcon + text actions |
I like the suggestions with the push fly-out 👍🏻 I do not think it is necessary to offer the switch on several modes of the fly-out, let us go with the push fly-out like we are doing with ESQL. And great with the extra UI changes. I will make sure this enhancement gets prioritized. |
@ninoslavmiskovic I'm migrating parts of this discussion to a separate issue #163284 , so just to be sure, we should decided for the user when we use the push flyout style, depending on the screen resolution, rather than make this style configurable, right? |
@kertal - Yes. This issue should be a small UX nit that closes the fly-out when the user clicks on areas outside of it. The re-design of the UX and UI of the fly-out should be separated. |
FYI this will be resolved by when #163798 is resolved |
## Summary Closes #163798. Closes #160306 Uses `"push"` style for the document viewer flyout in Discover. Before: <img width="1552" alt="image" src="https://github.com/elastic/kibana/assets/1178348/7e3e7c35-7317-44ae-b614-55eb337f742b"> After: <img width="1552" alt="image" src="https://github.com/elastic/kibana/assets/1178348/542b78e6-3c82-47a5-b35f-1c8635e21580"> ### Checklist - [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md) - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios --------- Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Stratoula Kalafateli <[email protected]> Co-authored-by: Davis McPhee <[email protected]>
Problem
User needs to click in the cross icon to close the flyout for expanded documents. This is a waste of time and it is inconsistent with the rest of flyouts behavour in Discover and other Kibana apps.
Solution
The flyout should be closed when the user clicks anywhere outside its area.
The text was updated successfully, but these errors were encountered: