diff --git a/.betterer.results b/.betterer.results index 40d67c1f924..408f5dbeb98 100644 --- a/.betterer.results +++ b/.betterer.results @@ -3160,9 +3160,6 @@ exports[`better eslint`] = { [0, 0, 0, "No untranslated strings. Wrap text with ", "2"], [0, 0, 0, "No untranslated strings. Wrap text with ", "3"] ], - "public/app/features/explore/extensions/ToolbarExtensionPoint.tsx:5381": [ - [0, 0, 0, "No untranslated strings. Wrap text with ", "0"] - ], "public/app/features/explore/hooks/useStateSync/index.ts:5381": [ [0, 0, 0, "Do not re-export imported variable (\`./external.utils\`)", "0"] ], diff --git a/docs/sources/setup-grafana/configure-grafana/_index.md b/docs/sources/setup-grafana/configure-grafana/_index.md index cbd476fef97..238da2179f5 100644 --- a/docs/sources/setup-grafana/configure-grafana/_index.md +++ b/docs/sources/setup-grafana/configure-grafana/_index.md @@ -1769,7 +1769,7 @@ Configures the batch size for the annotation clean-up job. This setting is used ### tags_length -Enforces the maximum allowed length of the tags for any newly introduced annotations. It can be between 500 and 4096 (inclusive). Default value is 500. Setting it to a higher value would impact performance therefore is not recommended. +Enforces the maximum allowed amount of tags for any newly introduced annotations. This value can be between 500 and 4096 (inclusive). The default value is 500. Setting it to a higher value would impact performance and is therefore not recommended. ## [annotations.dashboard] diff --git a/e2e/plugin-e2e/plugin-e2e-api-tests/as-admin-user/alerting.spec.ts b/e2e/plugin-e2e/plugin-e2e-api-tests/as-admin-user/alerting.spec.ts index 531cb85e091..ac18e6458da 100644 --- a/e2e/plugin-e2e/plugin-e2e-api-tests/as-admin-user/alerting.spec.ts +++ b/e2e/plugin-e2e/plugin-e2e-api-tests/as-admin-user/alerting.spec.ts @@ -1,19 +1,6 @@ import * as e2e from '@grafana/e2e-selectors'; import { expect, test } from '@grafana/plugin-e2e'; -test('should evaluate to false if entire request returns 500', async ({ page, alertRuleEditPage, selectors }) => { - await alertRuleEditPage.alertRuleNameField.fill('Test Alert Rule'); - - // remove the default query - const queryA = alertRuleEditPage.getAlertRuleQueryRow('A'); - await alertRuleEditPage - .getByGrafanaSelector(selectors.components.QueryEditorRow.actionButton('Remove query'), { - root: queryA.locator, - }) - .click(); - await expect(alertRuleEditPage.evaluate()).not.toBeOK(); -}); - test('should evaluate to false if entire request returns 200 but partial query result is invalid', async ({ page, alertRuleEditPage, diff --git a/packages/grafana-data/src/themes/createComponents.ts b/packages/grafana-data/src/themes/createComponents.ts index 13e7fd46f5a..e19a16b327c 100644 --- a/packages/grafana-data/src/themes/createComponents.ts +++ b/packages/grafana-data/src/themes/createComponents.ts @@ -97,7 +97,7 @@ export function createComponents(colors: ThemeColors, shadows: ThemeShadows): Th width: 57, }, menuTabs: { - height: 42, + height: 5, }, textHighlight: { text: colors.warning.contrastText, diff --git a/packages/grafana-data/src/themes/registry.ts b/packages/grafana-data/src/themes/registry.ts index f05ea638735..2bf6e07aff1 100644 --- a/packages/grafana-data/src/themes/registry.ts +++ b/packages/grafana-data/src/themes/registry.ts @@ -119,5 +119,8 @@ function createDebug(): GrafanaTheme2 { shape: { borderRadius: 8, }, + spacing: { + gridSize: 10, + }, }); } diff --git a/packages/grafana-prometheus/src/querybuilder/components/MetricCombobox.tsx b/packages/grafana-prometheus/src/querybuilder/components/MetricCombobox.tsx index 3ce12337f37..80c2be2c262 100644 --- a/packages/grafana-prometheus/src/querybuilder/components/MetricCombobox.tsx +++ b/packages/grafana-prometheus/src/querybuilder/components/MetricCombobox.tsx @@ -1,10 +1,12 @@ +import { css } from '@emotion/css'; import { useCallback, useState } from 'react'; -import { SelectableValue } from '@grafana/data'; +import { GrafanaTheme2, SelectableValue } from '@grafana/data'; import { EditorField, EditorFieldGroup, InputGroup } from '@grafana/experimental'; import { config } from '@grafana/runtime'; -import { Button, InlineField, InlineFieldRow } from '@grafana/ui'; +import { Button, ComponentSize, InlineField, InlineFieldRow, useStyles2 } from '@grafana/ui'; import { Combobox, ComboboxOption } from '@grafana/ui/src/components/Combobox/Combobox'; +import { getPropertiesForButtonSize } from '@grafana/ui/src/components/Forms/commonStyles'; import { PrometheusDatasource } from '../../datasource'; import { regexifyLabelValuesQueryString } from '../parsingUtils'; @@ -25,6 +27,9 @@ export interface MetricComboboxProps { variableEditor?: boolean; } +const INLINE_FIELD_WIDTH = 20; +const BUTTON_SIZE: ComponentSize = 'md'; + export function MetricCombobox({ datasource, query, @@ -86,6 +91,8 @@ export function MetricCombobox({ const metricsExplorerEnabled = config.featureToggles.prometheusMetricEncyclopedia; + const styles = useStyles2(getMectricComboboxStyles); + const asyncSelect = () => { return ( @@ -101,6 +108,7 @@ export function MetricCombobox({ {metricsExplorerEnabled ? (