Skip to content

Commit

Permalink
[Obs ai assistant][ES|QL] Initial render of the ES|QL table in a more…
Browse files Browse the repository at this point in the history
… compact format (elastic#190027)

## Summary

Nothing super crucial, it has to do with the initial render of the ES|QL
datable. In order to be aligned with the table we render in the flyout
and minimize the space it takes, we initialize in single row. The users
can still change the row height from the settings.

It is actually this:

<img width="1084" alt="image"
src="https://github.com/user-attachments/assets/010013fd-37a8-46ff-9847-5b004d582aca">


instead of:
<img width="1075" alt="image"
src="https://github.com/user-attachments/assets/508a0cba-d66f-434b-8136-286023c02dcc">


The users can always adapt the settings:
<img width="1117" alt="image"
src="https://github.com/user-attachments/assets/1bda9a2d-d707-43bd-8f70-571ced3b337b">
  • Loading branch information
stratoula authored Aug 7, 2024
1 parent 59abfd3 commit 5926f64
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ export function VisualizeESQL({
query={{ esql: query }}
flyoutType="overlay"
isTableView
initialRowHeight={0}
/>
) : (
<lens.EmbeddableComponent
Expand All @@ -375,6 +376,7 @@ export function VisualizeESQL({
dataView={dataViewAsync.value}
query={{ esql: query }}
flyoutType="overlay"
initialRowHeight={0}
/>
</EuiFlexItem>
)}
Expand Down

0 comments on commit 5926f64

Please sign in to comment.