-
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
[RAM] Use EuiDataGrid for the rules list #124428
Conversation
Pinging @elastic/response-ops (Team:ResponseOps) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good and just a tiny css nit.
Do we have a doc somewhere with a write-up for the rationale for this update? I think the question is coming up more and more about BasicTable vs DataGrid, so looking for additional reasons for the switch.
@@ -16,6 +17,14 @@ | |||
} | |||
} | |||
|
|||
.euiDataGridHeaderCell { | |||
font-size: 12px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tiny nit, especially knowing this is a POC, but just mentioning the pixel value. Is this necessary? Perhaps down the road we can determine how we want the various cells to render and apply font sizing there as opposed to overwriting the eui class?
@mdefazio We were hoping the design team could already provide the guidance on BasicTable vs DataGrid. One question that came up in discussions was, is DataGrid seen as the table for the future and does it have continued investment in it? |
EUI provides guidance on the use of each: Tables and Data grids I'll highlight one snippet from atop the Data grids page:
Certainly there is overlap in the general layout, but they do skew towards different cases, as described. The plan is not to replace the basic table component and both are actively enhanced and supported. As for what is needed in this particular case, a more thorough understanding of those aspects - volume, number of columns, sorting requirements, etc. - would help us better determine the best fit. |
@elasticmachine merge upstream |
Changing the default of `rulesListDatagrid` to `true` so that we can play around with this on Cloud.
💔 Build Failed
Failed CI Steps
Test Failures
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
async chunk count
ESLint disabled in files
ESLint disabled line counts
References to deprecated APIs
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
After chatting with @mdefazio and looking again at the elements depicted in the screenshot above, we had a few more clarifying thoughts for this particular case. Things you get 'out of the box' with data grid:
Now, for one caveat:
As it stands today, if expandable rows are an immediate requirement, then you are faced with using a table and building those custom controls on top/outside. After chatting with @gmmorris about this requirement, we decided to open the discussion on the EUI side to get clarity on future support of this feature within the data grid component. Update: Security is engaged with EUI and, as I understand it, will be working a PoC from the spec that EUI is writing up! |
Can you expand on this problem? Definitely want to know if it's an issue in the data grid itself, an implementation issue (which we can better document, or maybe resolve entirely through code), or something else going on. |
@chandlerprall I still haven't tracked down the exact problem, as we shifted priorities to this PR being a POC instead of a finished implementation. All I know is that you can see the Enabled switches keep doing their initial rendering animation every once in a while whenever you change something in the grid (e.g. sorting, column position) so there's definitely too many renders going on somewhere. I think it's on our end and not the DataGrid's but I haven't been able to figure it out yet. |
Also it's not the |
Many great implementation considerations (i.e. questions) have been added to the EUI discuss issue. Your team's requirements/use cases would help move things along: elastic/eui#5638 Thanks! |
Summary
Related to #123860
This is a feature-flagged proof of concept to use the EuiDataGrid in place of EuiBasicTable for the Rules and Connectors list.
Usage
In
kibana.dev.yml
, add:Known Issues