Skip to content
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

[ML] Add border to text editor for ES|QL data visualizer #192726

Merged
merged 8 commits into from
Sep 20, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -259,14 +259,24 @@ export const IndexDataVisualizerESQL: FC<IndexDataVisualizerESQLProps> = (dataVi
</EuiFlexGroup>
</EuiPageTemplate.Header>
<EuiSpacer size="m" />
<TextBasedLangEditor
query={localQuery}
onTextLangQueryChange={onTextLangQueryChange}
onTextLangQuerySubmit={onTextLangQuerySubmit}
detectedTimestamp={currentDataView?.timeFieldName}
hideRunQueryText={false}
isLoading={queryHistoryStatus ?? false}
/>
<EuiFlexItem
grow={false}
data-test-subj="DataVisualizerESQLEditor"
css={css({
borderTop: euiTheme.euiBorderThin,
borderLeft: euiTheme.euiBorderThin,
borderRight: euiTheme.euiBorderThin,
})}
>
<TextBasedLangEditor
query={localQuery}
onTextLangQueryChange={onTextLangQueryChange}
onTextLangQuerySubmit={onTextLangQuerySubmit}
detectedTimestamp={currentDataView?.timeFieldName}
hideRunQueryText={false}
isLoading={queryHistoryStatus ?? false}
/>
</EuiFlexItem>

<EuiFlexGroup gutterSize="m" direction={isWithinLargeBreakpoint ? 'column' : 'row'}>
<EuiFlexItem>
Expand Down