diff --git a/public/app/plugins/datasource/jaeger/components/QueryEditor.tsx b/public/app/plugins/datasource/jaeger/components/QueryEditor.tsx index cf8ce3b3b57..2a2ed26ddb7 100644 --- a/public/app/plugins/datasource/jaeger/components/QueryEditor.tsx +++ b/public/app/plugins/datasource/jaeger/components/QueryEditor.tsx @@ -35,7 +35,7 @@ export function QueryEditor({ datasource, query, onChange, onRunQuery }: Props) default: return ( - + -
+
diff --git a/public/app/plugins/datasource/jaeger/components/SearchForm.tsx b/public/app/plugins/datasource/jaeger/components/SearchForm.tsx index cf57c8cd549..affec4cce56 100644 --- a/public/app/plugins/datasource/jaeger/components/SearchForm.tsx +++ b/public/app/plugins/datasource/jaeger/components/SearchForm.tsx @@ -1,3 +1,4 @@ +import { css } from '@emotion/css'; import { SelectableValue } from '@grafana/data'; import { InlineField, InlineFieldRow, Input, Select } from '@grafana/ui'; import React, { useEffect, useState } from 'react'; @@ -49,9 +50,9 @@ export function SearchForm({ datasource, query, onChange }: Props) { }, [datasource, query.service]); return ( - <> +
- + - + - +
); } diff --git a/public/app/plugins/datasource/tempo/NativeSearch.tsx b/public/app/plugins/datasource/tempo/NativeSearch.tsx index 477f6dc9366..2bc1cf4c436 100644 --- a/public/app/plugins/datasource/tempo/NativeSearch.tsx +++ b/public/app/plugins/datasource/tempo/NativeSearch.tsx @@ -121,6 +121,7 @@ const NativeSearch = ({ datasource, query, onChange, onBlur, onRunQuery }: Props search: value, }); }} + placeholder="http.status_code=200 error=true" cleanText={cleanText} onRunQuery={onRunQuery} syntaxLoaded={hasSyntaxLoaded} diff --git a/public/app/plugins/datasource/tempo/QueryField.tsx b/public/app/plugins/datasource/tempo/QueryField.tsx index 5b7a40b3c9f..19bf8db4595 100644 --- a/public/app/plugins/datasource/tempo/QueryField.tsx +++ b/public/app/plugins/datasource/tempo/QueryField.tsx @@ -1,13 +1,12 @@ import { css } from '@emotion/css'; import { DataSourceApi, ExploreQueryFieldProps, SelectableValue } from '@grafana/data'; -import { selectors } from '@grafana/e2e-selectors'; import { config, getDataSourceSrv } from '@grafana/runtime'; import { FileDropzone, InlineField, InlineFieldRow, InlineLabel, - LegacyForms, + QueryField, RadioButtonGroup, Themeable2, withTheme2, @@ -160,28 +159,25 @@ class TempoQueryFieldComponent extends React.PureComponent {
)} {query.queryType === 'traceId' && ( - -
- - onChange({ - ...query, - query: e.currentTarget.value, - queryType: 'traceId', - linkedQuery: undefined, - }) - } - /> -
-
- } - /> + + + { + onChange({ + ...query, + query: val, + queryType: 'traceId', + linkedQuery: undefined, + }); + }} + onBlur={this.props.onBlur} + onRunQuery={this.props.onRunQuery} + placeholder={'Enter a Trace ID (run with Shift+Enter)'} + portalOrigin="tempo" + /> + + )} {query.queryType === 'serviceMap' && } diff --git a/public/app/plugins/datasource/zipkin/QueryField.tsx b/public/app/plugins/datasource/zipkin/QueryField.tsx index 22e03bfa4ef..125ada3b4bb 100644 --- a/public/app/plugins/datasource/zipkin/QueryField.tsx +++ b/public/app/plugins/datasource/zipkin/QueryField.tsx @@ -77,12 +77,10 @@ export const ZipkinQueryField = ({ query, onChange, onRunQuery, datasource }: Pr /> ) : ( -
-
- - Traces - -
+ + + Traces +
-
+
)} );