diff --git a/.betterer.results b/.betterer.results index 448670006e4..f425117df77 100644 --- a/.betterer.results +++ b/.betterer.results @@ -6602,13 +6602,6 @@ exports[`no gf-form usage`] = { [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"] ], "public/app/plugins/datasource/influxdb/components/editor/annotation/AnnotationEditor.tsx:5381": [ - [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], - [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], - [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], - [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], - [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], - [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], - [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"], [0, 0, 0, "gf-form usage has been deprecated. Use a component from @grafana/ui or custom CSS instead.", "5381"] ], "public/app/plugins/datasource/influxdb/components/editor/query/QueryEditor.tsx:5381": [ diff --git a/public/app/plugins/datasource/influxdb/components/editor/annotation/AnnotationEditor.tsx b/public/app/plugins/datasource/influxdb/components/editor/annotation/AnnotationEditor.tsx index d8ba3b533f6..91d289c1755 100644 --- a/public/app/plugins/datasource/influxdb/components/editor/annotation/AnnotationEditor.tsx +++ b/public/app/plugins/datasource/influxdb/components/editor/annotation/AnnotationEditor.tsx @@ -1,7 +1,7 @@ import React, { useState } from 'react'; import { QueryEditorProps } from '@grafana/data/src'; -import { InlineFormLabel, Input } from '@grafana/ui/src'; +import { InlineFormLabel, Input, Stack } from '@grafana/ui/src'; import InfluxDatasource from '../../../datasource'; import { InfluxOptions, InfluxQuery } from '../../../types'; @@ -24,60 +24,63 @@ export const AnnotationEditor = (props: QueryEditorProps -
- InfluxQL Query - setEventQuery(e.currentTarget.value ?? '')} - onBlur={() => updateValue('query', eventQuery)} - placeholder="select text from events where $timeFilter limit 1000" - /> -
- - If your influxdb query returns more than one field you need to specify the column names below. An annotation - event is composed of a title, tags, and an additional text field. Optionally you can map the timeEnd column - for region annotation usage. - - } - > - Field mappings - -
-
-
+ + + + InfluxQL Query + setEventQuery(e.currentTarget.value ?? '')} + onBlur={() => updateValue('query', eventQuery)} + placeholder="select text from events where $timeFilter limit 1000" + /> + + + If your influxdb query returns more than one field you need to specify the column names below. An + annotation event is composed of a title, tags, and an additional text field. Optionally you can map the + timeEnd column for region annotation usage. +
+ } + > + Field mappings + + + Text setTextColumn(e.currentTarget.value ?? '')} onBlur={() => updateValue('textColumn', textColumn)} /> -
-
+ + Tags setTagsColumn(e.currentTarget.value ?? '')} onBlur={() => updateValue('tagsColumn', tagsColumn)} /> -
-
+ + + TimeEnd setTimeEndColumn(e.currentTarget.value ?? '')} onBlur={() => updateValue('timeEndColumn', timeEndColumn)} /> -
+
Title
-
- - + + + {/*Empty div to preserve the bottom margin */} +
+ ); };