Dashboard Controls: Add UI for displaying under menu (#113517)

* feat: add options to render under the controls menu

* fix: filter out hidden annotation layers from the dashboard-controls menu

* fix: adjust spacing between annotation controls in the dashboard-controls menu

* fix: e2e test for variables

* feat: move the menu button next to the variables

* fix: remove duplicate link controls

* fix: show dashboard controls when the dashboard is not saved
This commit is contained in:
Levente Balogh
2025-12-04 16:22:41 +01:00
committed by GitHub
parent 4c5d9cb95f
commit 32a58c56ed
21 changed files with 980 additions and 382 deletions
@@ -54,7 +54,13 @@ test.describe(
await expect(descriptionInput).toHaveAttribute('placeholder', 'Descriptive text');
await expect(descriptionInput).toHaveValue('');
await expect(page.locator('label').filter({ hasText: 'Hide' })).toBeVisible();
// Display
await expect(page.locator('label', { hasText: /^Display$/ })).toBeVisible();
const displaySelect = dashboardPage.getByGrafanaSelector(
selectors.pages.Dashboard.Settings.Variables.Edit.General.generalDisplaySelect
);
await expect(displaySelect).toBeVisible();
await expect(displaySelect).toHaveValue('Above dashboard');
// Check datasource selector
const datasourceSelect = dashboardPage.getByGrafanaSelector(