elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.73k stars 8.14k forks source link

[Meta] Discover rewrite to EUI #38646

Closed timroes closed 3 years ago

timroes commented 5 years ago

While in the process of moving over Discover to the new platform (#38242) the largest part is rewriting Discover in EUI/React. During that rewrite we're trying to address many open issues/enhancement if possible to make sure we're starting with a good new experience.

For the actual table component the new datagrid component in EUI (https://github.com/elastic/eui/issues/1689) will be used, which would hopefully already solve a lot of issues.

This meta issue tracks important issues we are trying to address while rewriting:

More interactions

More configuration/styling

Remaining Tasks

elasticmachine commented 5 years ago

Pinging @elastic/kibana-app

AlonaNadler commented 5 years ago

Few things which we should add to the list :

cc: @kertal

flash1293 commented 5 years ago

Related to

Evaluate if the side menu can be similar to Lens, provide consistency and the ability to see field context, except for the dragging of fields it can share the same capabilities

https://github.com/elastic/kibana/issues/41108

elasticmachine commented 5 years ago

Pinging @elastic/kibana-design

kertal commented 5 years ago

If our valued @elastic/kibana-design team is ok with aligning the side menu with Lens (which I think is a good idea) this would be my next step in the deangularization + Euification of Discover

ryankeairns commented 5 years ago

@mdefazio this meta issue tracks the Discover enhancements we discussed previously.

@kertal would a mockup be helpful for the Lens-style side menu?

kertal commented 5 years ago

@ryankeairns if we agree doing it this way, definitely. mocks would be very welcome 👍

cchaos commented 5 years ago

@kertal I'm guessing you talked with @AlonaNadler and @wylieconlon about reusing the Lens component for this? How would you integrate the work that's happening on the Lens side? Would you collaborate on the effort? How much feature parity will there be when Lens is still Beta?

I do like the idea of sharing this component, by the way.

kertal commented 5 years ago

@cchaos That's the things I'd start to evaluate now, if you're saying, it would be a good approach going into that direction from design perspective. maybe we should have a session about this?

kertal commented 5 years ago

An alternative approach that comes to my mind would be to move the field selection into the new grid, but then the new grids field selector would need more features like searching in long field lists, displaying details about data etc.

ryankeairns commented 5 years ago

Seems like quick session would be a good start as we have people coming at this from a couple of angles. Thanks @kertal !

AlonaNadler commented 5 years ago

An alternative approach that comes to my mind would be to move the field selection into the new grid

I think we will still need the left side menu listing the fields. Removing it will be too big of a change and users look at discover not only using the data grid. We can make it collapsable if we want which will give more screen real estate when using grid

@wylieconlon is currently working on the context pop up for each field in Lens, the approach is different than the one Discover uses, it is worth evaluating it in the context of discover. Currently when selecting a field in Discover, it does top values. Wylie's PR is closer to ML data visualizer were based on the field type it provide a different context to the field value. We should check that it doesn't have any performance drawback

mdefazio commented 5 years ago

Here's a first go at updating the left side menu based on our the direction here

Prototype

Quick gif for reference: Screen Recording 2019-09-12 at 10 45 AM

The prototype doesn't show it properly, but we are proposing using an 'add/remove' icon as opposed to the full text on hover to add it to the selected fields

AlonaNadler commented 5 years ago

Thanks @mdefazio looks excellent, visually it is an improvement, consistent with Lens, distinguishing between fields is easy and good, search and filter by type is a great improvement. Would be good if we can adjust the width to support long fields currently discover truncates the fields name image

Maybe a route similar to how it is done currently in visualize left side configurator, allowing users to increase the width

kertal commented 5 years ago

looking forward to implement it @mdefazio
@AlonaNadler the adjustment of the columns is very easy to overlook currently in visualize, I'll take a look at the underlying code

Bildschirmfoto 2019-09-13 um 14 37 00
mdefazio commented 4 years ago

Here is a first go at how the DataGrid could look inside Discover. I'm showing a popover (on click) for one cell. I'm also showing how the column renaming could work. Let me know your thoughts. @kertal @AlonaNadler @timroes

image

AlonaNadler commented 4 years ago

Wow, this is so exciting to see !!! ship it. :)

Few suggestions:

snide commented 4 years ago

sorting on a single column is what most users do, can we do that on the column itself

This will be in a later release of the data grid. All the elements are in it to make this available, and my guess is it would likely be implemented as a feature in data grid component before the discover project is shipped. You can stop requesting it in every channel and making me guilty! 😆

if using multiple fields sorting can the sorting label show how many fields are sorted, similar to the filter fields counter

It already does this. 🎉

image

when clicking on a field can we allow users to click on the cell itself instead of trying to get to their mouse on the expand icon

I'll need to think about how to handle this. In the majority of cases data grid cells won't have actions, so it would be annoying to always pop up the expansion. We could probably do something like this with a special prop. Likely a soon after V1 for the data grid component, that discover would be able to implement before they ship.

instead of the magnifying glass icon which is not clear to many of our users can we have descriptive options

👍 to this.

mdefazio commented 4 years ago

Updated popover with descriptions next to the magnifying glass

Screen Recording 2019-10-17 at 10 45 AM

ryankeairns commented 4 years ago

@mdefazio yeesssss, I love that! Much clearer, nice design.

AlonaNadler commented 4 years ago

Nice ! Can we make the entire cell clickable, I see users challenging in hitting the icon with their mouse in Lens when we have icon in a similar location and this operation will be done quite frequently

ryankeairns commented 4 years ago

What Michael has mocked up here is how the datagrid currently works, so any change would come on the EUI side. The first version of datagrid is nearing release, so let's see that through, get a feel for things, and follow up with any enhancements requests (in EUI).

timroes commented 4 years ago

https://github.com/elastic/kibana/issues/40719 Has another comment about real estate in the discover app, we might want to take into consideration during the redesign process.

timroes commented 3 years ago

Closing this in favor of https://github.com/elastic/kibana/issues/92573