Commit Graph

3894 Commits

Author SHA1 Message Date
Juan Cabanas
751e6739f3 ShareDrawer: Add menu item click tracking (#89860) 2024-07-01 09:01:14 -03:00
kay delaney
2e0175c3eb Dashboards: Change datemath parse logic so parsed dates always take timezone into account (#88182)
* Dashboards: Change datemath parse logic so parsed dates always take timezone into account
2024-06-27 16:17:21 +03:00
Dominik Prokop
be1414b36b Dashboards: Remove scenes feature toggle (#89771) 2024-06-27 09:03:46 +02:00
Alex Khomenko
9056ff73f6 TimeRangePicker: Use week start (#89765) 2024-06-27 07:53:46 +03:00
Ezequiel Victorero
fb15d681a1 PublicDashboards: Update data sources supported list (#89704)
PublicDashboards: Update datasources compatibility list
2024-06-26 08:44:05 -03:00
Ryan McKinley
529d4e1169 Dashboards: Use dashboard_api k8s wrapper for save options also (#89598) 2024-06-26 13:35:04 +03:00
Ryan McKinley
4651506319 K8s/Dashboards: Replace multiple calls with a single endpoint (#89639) 2024-06-26 07:27:52 +03:00
Juan Cabanas
0d276fe7b1 Share Externally: Texts modification (#89640) 2024-06-25 17:52:41 -03:00
Ashley Harrison
47f8717149 React: Use new JSX transform (#88802)
* update eslint, tsconfig + esbuild to handle new jsx transform

* remove thing that breaks the new jsx transform

* remove react imports

* adjust grafana-icons build

* is this the correct syntax?

* try this

* well this was much easier than expected...

* change grafana-plugin-configs webpack config

* fixes

* fix lockfile

* fix 2 more violations

* use path.resolve instead of require.resolve

* remove react import

* fix react imports

* more fixes

* remove React import

* remove import React from docs

* remove another react import
2024-06-25 12:43:47 +01:00
Ashley Harrison
7d8afd9578 Tab: Improve accessible name (#89602)
* replace aria-label selector with data-testid

* fix unit tests

* fix e2e selectors

* fix last unit test

* fix e2e tests

* fix casing

* fix e2e test

* fix casing
2024-06-24 17:48:26 +01:00
Ryan McKinley
579bfa477e K8s: improve frontend resource client (#89621) 2024-06-24 18:25:04 +03:00
Ashley Harrison
be65aaf5dc Chore: Clean up some more old SCSS (#89404)
* remove/migrate normalize.scss

* fix typo

* migrate _add_data_source styles

* migrate panel-header styles

* migrate slate styles to emotion globals

* put back a couple of classes used by external plugins
2024-06-21 10:03:57 +01:00
Bogdan Matei
543e71eb28 Scopes: Pass selected scopes to dashboard JSON fetching (#89157) 2024-06-20 18:49:19 +03:00
Dominik Prokop
d46df10d30 DashboardScene: Show dashboard not found view (#89342)
* DashboardScene: Show dashboard not found view

* Test fix

* Use correct selector
2024-06-19 13:33:29 +02:00
Dominik Prokop
ae80ed02e4 DashboardScene: Emit meta analytic view event (#89094)
* DashboardScene: Emit view event

* check fix
2024-06-17 09:14:27 +02:00
Ashley Harrison
84590901e5 Chore: Migrate some more deprecated SCSS (#89160)
* migrate pull-right/pull-left

* remove fa-rotate and fa-flip

* remove _stacked

* remove font-awesome _list

* remove font-awesome _larger

* remove fa fixed-width
2024-06-14 10:46:44 +01:00
Juan Cabanas
7664b89209 ShareModal: Share externally (#88259) 2024-06-12 17:02:06 -03:00
Ashley Harrison
06c30ee165 Chore: Migrate more SCSS styles (#88780)
* remove animations mixins

* move drop and drop-element to angular file

* migrate submenu scss
2024-06-10 16:10:54 +01:00
Ashley Harrison
c6d07194cc Chore: Migrate DashboardRow SCSS styles (#88768)
migrate dashboard-row styles
2024-06-07 11:31:58 +01:00
Ryan McKinley
41e0430f83 K8s/Dashboards: Add frontend api to switch between implementations (#88632) 2024-06-05 17:34:23 +03:00
Victor Marin
e86784200a Create lib panel and replace it in scene (#88504)
* Create lib panel - also replace it in scene

* refactor

* refactor

* refactor
2024-06-03 11:02:41 +03:00
Yasir Ekinci
56a544668f DashboardAI: Reformat prompts to have a single system prompt (#88429) 2024-05-30 02:46:05 -06:00
Ezequiel Victorero
e81f48ef95 Dashboards: Do not expose datasource name and uid on dashboard external export (#88382)
Co-authored-by: Juan Cabanas <juan.cabanas@grafana.com>
2024-05-29 14:36:48 -03:00
Tobias Skarhed
06304894a1 Dashboard: Keyboard and mouse panel shortcuts improvement (#87317)
* Add custom attention state to dashboard

* Add attention state to DashboardGrid

* Remove old functionality

* Add attention state to keybindingSrv

* Create PanelAttentionService

* Add PanelAttentionService with scenes support

* Remove unused code

* Use viz panel key instead of VizPanel

* Add type assertion

* Add e2e test

* Update comments

* Use panel id for non-scenes use case

* Support undefined service use case

* Memoize singleton call

* Debounce mouseover

* Set panelAttention with appEvents

* Use AppEvents for Scenes

* Remove panelAttentionSrv

* Wait in e2e to handle debounce

* Move subscription to KeybindingSrv

* Remove imports and reset keyboardShortcuts from main

* Fix on* event handlers
2024-05-29 09:11:23 +02:00
Jeroen Op 't Eynde
e1685cb44b fix: set schemaVersion on dashboard schema (CUE) (#87712)
* fix: set schemaVersion on dashboard schema (CUE)

* docs: add comment to migration code

* fix: run make gen-cue
2024-05-28 16:16:20 +02:00
Ivan Ortega Alba
66950c96f6 Dashboards: Discard the entire panel if it is newly added (#87562) 2024-05-27 13:46:02 +02:00
kay delaney
c0881cc970 Dashboards: Detect unsaved folder change (#88293) 2024-05-27 12:43:31 +01:00
Juan Cabanas
a85c1b69d5 PublicDashboards: Remove publicDashboardUid from DashboardMeta (#85126) 2024-05-23 11:21:21 -03:00
Oscar Kilhed
059e412344 Dashboards: timeRangeUpdatedDuringEditOrView should not be persisted (#88119)
Fix persisting timeRangeUpdated that should not be persisted
2024-05-21 11:41:28 +02:00
Ashley Harrison
82eb160f5c Chore: SCSS tidy up (#87956)
* more scss tidy up

* replace some scss
2024-05-16 11:20:29 +01:00
Juan Cabanas
a6d64c6ed5 PublicDashboards: Public dashboard refreshed when access token changes (#87913) 2024-05-15 10:20:00 -03:00
Torkel Ödegaard
f83366fcdd GenAI: Fixes multiple calls to settings and health (#87623)
* GenAI: Fixes multiple calls to settings and health

* swap order of tests given new caching

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-05-10 20:52:59 +02:00
Ashley Harrison
396e75dadf Chore: Type improvements (#87634)
* improve typings in opentsdb datasource

* couple of influx improvements

* couple more

* more

* more more more

* 3 more

* changes to variables/inspect/utils

* some graphite improvements
2024-05-10 17:28:44 +01:00
Joao Silva
4bab530375 Chore: Remove gf-forms from SubMenuItems and RangeMatcherEditor (#87633) 2024-05-10 16:18:40 +01:00
Ashley Harrison
670960f70c Chore: Upgrade redux (#86877)
* update packages

* fix type errors

* upgrade redux toolkit as well

* don't need eslint-disable command

* remove comment

* fix unit tests

* call rtk query selector directly

* remove unnecessary checks
2024-05-10 14:28:51 +01:00
kay delaney
cadc551a3c Chore: Remove deprecated re-exported template variable types (#87459)
Chore: Remove deprecated re-exported template varible types
2024-05-10 12:00:41 +01:00
kay delaney
cbe868b118 Chore: Use getNextRefId instead of deprecated getNextRefIdChar (#87460) 2024-05-10 12:00:17 +01:00
Alex Khomenko
683390a4ec PanelHeaderCorner: Remove font-awesome icons (#87303)
* PanelHeaderCorner: Remove font-awesome

* Fix mode styles

* Remove unused styles

* Cleanup

* Simplify styles

* Fixes

* Remove unused variable
2024-05-03 20:05:03 +03:00
Ashley Harrison
1d6d5cc2cd Chore: improve typings (#87306)
* some fixes

* some more fixes

* some canvas fixes

* use removeProperty instead

* few more

* fixy fix

* undo changes to ticks for now
2024-05-03 17:21:37 +01:00
Gilles De Mey
0dffdc1756 Scenes: Add endLineNumber to json diff (#87049) 2024-05-02 16:41:13 +02:00
Ashley Harrison
f15f21a13f Dashboard: Only show Starred as parent breadcrumb for starred dashboards (#87145)
don't update pageNav to have folder if sectionNav is starred
2024-05-01 09:55:31 +01:00
Ashley Harrison
c151a97110 Chore: Enable no-unreduced-motion and fix errors (#86572)
* enable `no-unreduced-motion` in betterer

* move all animation calls inside handleReducedMotion

* fix violations + enable rule

* update rule README

* remove unnecessary transition from <Collapse>

* remove handleReducedMotion utility and add handleMotion to theme

* update to use new theme value

* handle Dropdown and IconButton

* handle AppChromeMenu and update lint message

* keep rotation at a reduced speed

* handle DashboardLoading
2024-04-29 13:12:36 +01:00
Torkel Ödegaard
01f8301504 DashboardScene: Fixes issue with dashboard links and variables (#86910)
* DashboardScene: Fixes issue with dashboard links and variables

* Update
2024-04-29 10:28:41 +02:00
Juan Cabanas
b77763bbcc ShareModal: Differentiate between panel and dashboard share for tracking (#86992) 2024-04-26 15:35:39 -03:00
Oscar Kilhed
c3cde17b33 Dasbhoard scenes: Don't return null when uids are not matching for new dashboards (#86998)
Don't return null when uids not matching for new dashboards
2024-04-26 17:12:47 +02:00
Juan Cabanas
85c23eed38 ShareModal: Remove PublicDashboard tab when share panel (#86946) 2024-04-26 11:34:55 -03:00
kay delaney
0f98bd3b7b Chore: Rewrite dashboard component css using object styles (#86930) 2024-04-25 20:18:02 +01:00
Darren Janeczek
53ead9904d datatrails: interpolate adhoc variables and datasource variables when opening "explore metrics" from dashboard panels (#86252)
* fix: interpolate "explore metrics" from panels

---------

Co-authored-by: Darren Janeczek <darren.janeczek@grafana.com>

* fix: remove support for legacy dashboard

- simplify code
- take advantage of scenes dashboard async and datasource api object

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2024-04-24 12:05:48 -04:00
Khushi Jain
5dd8353ab1 Dashboards: Migrate from aria-label e2e selectors to data-testid (#78536)
* Dashboards: Migrate from aria-label e2e selectors to data-testid

* more changes

* addPanelwidget

* Test: Update .betterer.results

* refactor: fix e2e tests

* refactor: fix failing test

* refactor: update plugin-e2e after adding selector changes to the packege

---------

Co-authored-by: Laura Benz <48948963+L-M-K-B@users.noreply.github.com>
Co-authored-by: Laura Benz <laura.benz@grafana.com>
2024-04-24 15:16:19 +02:00
Oscar Kilhed
e7f40493e4 DashboardScene: Measure and report scene load time (#86267)
* measure scene load time

* Fix tests that fail due to performance not being the proper global performance object in jest

* add isScene parameter to tracking test
2024-04-24 11:45:32 +02:00