Commit Graph

10918 Commits

Author SHA1 Message Date
Victor Marin
b9285e320a
Fix new dashboard save name validation (#86290) 2024-04-16 15:46:25 +03:00
Piotr Jamróz
ccd660d559
Explore: Skip flaky test (#86289)
Skip flakey test
2024-04-16 12:42:22 +00:00
kay delaney
3795f0d5a9
Dashboards: Fix issue when importing external dashboard with datasource variables (#86273) 2024-04-16 13:29:27 +01:00
Josh Hunt
b5337ba419
I18N: Fix untranslated descriptions in data source picker (#86216)
I18n: Remove t() call from root module scope
2024-04-16 10:28:24 +01:00
Alexa V
40f1b2c92c
Dashboard: Migration - Add public dashboard tag in the nav bar (#86204)
Migrate public dashboard badge to scenes dashboard
2024-04-16 10:04:25 +02:00
Torkel Ödegaard
e15beab362
DashboardScene: Fixes saving dashboard with angular panels (#86098)
* DashboardScene: Fixes saving angularOptions

* Update

* Update
2024-04-16 03:13:42 +02:00
Torkel Ödegaard
869814ea3e
DashboardScene: Fix empty row repeat issue (#86095) 2024-04-16 03:10:24 +02:00
Brendan O'Handley
f85470d652
Prometheus: Use the frontend package in Prometheus and remove feature toggle (#86080)
* add history links for monaco completion provider folder

* add history links for monaco query field folder

* add history links for components folder

* add history links for configuration folder

* add history links for dashboard json folder

* add history links for gcopypaste folder

* add history link for variableMigration

* add history link for querybuilder/components/metrics-modal folder

* add history link for querybuilder/components/promqail folder

* add history links for querybuilder/components folder

* add history links for querybuilder/hooks folder

* add history links for querybuilder/shared folder

* add history links for querybuilder folder

* add history links for querycache folder

* add history links for src folder

* use frontend package and custom auth in module.ts

* remove files and fix import issues

* remove usePrometheusFrontendPackage

* remove extra files

* update betterer

* remove extra files after rebase

* fix betterer for rebase

* fix e2e flakiness
2024-04-15 16:45:23 -05:00
Laura Fernández
726cd4a8a6
Chore: Fix link in UsersTable (#86152) 2024-04-15 16:56:28 +02:00
Laura Fernández
499ad35a50
Chore: ActionRow - Replace HorizontalGroup with Stack (#86143) 2024-04-15 15:57:15 +02:00
Kristina
0034e9f044
Explore: Change service in hook, un-skip test (#85894)
Use different service, un-skip test
2024-04-15 08:11:21 -05:00
Kristina
ad3abfc695
Explore: Query history does not save filtered queries (#85825)
* Bring in datasource filterQuery in, to not save filtered queries to history

* Add test
2024-04-15 08:07:02 -05:00
Bogdan Matei
d379e319d6
Implement API server client in Scopes (#85266) 2024-04-15 13:43:42 +03:00
Torkel Ödegaard
814ffdbc2b
DashboardScene: Fixes issue moving between dashboards (#86093) 2024-04-15 09:18:02 +02:00
Joao Silva
10c6ab5a17
Chore: Replace HorizontalGroup with Stack in SelectOrgPage and ChangePasswordForm (#86061) 2024-04-12 16:32:57 +01:00
Tobias Skarhed
f1f02207f2
Alerting: Improve heading accessibility (#85723)
* Change from h5 to Text component

* Fix goworksum error

* Add headings for contact points and notification policies

* Alert group h2

* Reset labels and move h2 to group by

---------

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-04-12 16:19:47 +02:00
Josh Hunt
3b4983695e
E2C: Remove mock api (#86043) 2024-04-12 13:26:13 +01:00
Ashley Harrison
40c148ba48
EmptyState: Provide custom messages for existing empty states (#86021)
provide custom messages for existing empty states
2024-04-12 11:08:14 +02:00
Tom Ratcliffe
ce5fc59d54 Use ActiveTab type for custom hook 2024-04-12 09:13:29 +01:00
Tom Ratcliffe
ccaf850c09 Refactor to useTabQueryParam 2024-04-12 09:13:29 +01:00
Tom Ratcliffe
d91e1a4e3a Refactor tab query param logic and add tests 2024-04-12 09:13:29 +01:00
Tom Ratcliffe
800a2e0228 Fix tests being stateful due to locationService 2024-04-12 09:13:29 +01:00
Tom Ratcliffe
94ad66998f Send tab query param through when returning from template save 2024-04-12 09:13:29 +01:00
Tom Ratcliffe
933cc3f075 Tweak ContactPoints to use query param for tab selection 2024-04-12 09:13:29 +01:00
Adela Almasan
eb86fd867f
Canvas: Update new element type with rotation (#85690) 2024-04-11 15:36:33 -05:00
renovate[bot]
51d5a4c8f2
Update dependency @testing-library/dom to v10 (#85958)
* Update dependency @testing-library/dom to v10

* update @testing-library/react as well

* fix unit tests

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-04-11 17:29:35 +02:00
Darren Janeczek
34875344ed
datatrails: fix: clear undefined query params on history step change (#85607)
* fix: clear undefined query params on history step change

* Minor tweak

* fix: resolve CodeQL check: Client-side cross-site scripting

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2024-04-11 09:52:33 -04:00
Josh Hunt
c024d51a38
Chore: Remove a buncha stuff from Sandbox TestStuffPage (#85876) 2024-04-11 09:40:30 +01:00
Darren Janeczek
2e1e45bbb1
datatrails: ensure breakdown yaxis sync is maintained when layout changes (#85380)
fix: ensure breakdown yaxis sync is maintained when layout changes
2024-04-10 17:12:33 -04:00
Tom Ratcliffe
a852b70953 Fix console.errors from edit group modal tests 2024-04-10 19:13:41 +01:00
Tom Ratcliffe
fff524b54c Make quick eval buttons in group edit set dirty state on form and handle invalid case 2024-04-10 19:13:41 +01:00
Tom Ratcliffe
584d2bcb91 Remove useEffect that was setting incorrect display value for pending period 2024-04-10 19:13:41 +01:00
Sergej-Vlasov
79631bdd15
DashboardScene: prevent panel hovel header crop with scenes (#85869)
* add behaviour that adjusts hoverHeaderOffset

* clean up behaviour logic

* optimise and extract behaviour to separate file

* fix hoverHeaderOffsetBehavior unsubscribe

* update to latest scenes version

* Fix PanelOptionsTest

* fix: test value for adhoc filter url param

* Fix transformation tab tests

* bump scenes version

* Revert "Fix transformation tab tests"

This reverts commit 3ec9f5b226.

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
Co-authored-by: Darren Janeczek <darren.janeczek@grafana.com>
Co-authored-by: oscarkilhed <oscar.kilhed@grafana.com>
2024-04-10 20:39:43 +03:00
Armand Grillet
212acb9bc5
Alerting: clarify alerting silences (#85853)
* Clarify alerting silences

* Update docs/sources/alerting/configure-notifications/create-silence.md

Co-authored-by: Tom Ratcliffe <tom.ratcliffe@grafana.com>

---------

Co-authored-by: Tom Ratcliffe <tom.ratcliffe@grafana.com>
2024-04-10 18:30:21 +02:00
Dominik Prokop
483dc02b68
Remove repeating responsibility from LibraryVizPanel (#84879)
* Remove repeating responsibility from LibraryVizPanel

* Improvements
2024-04-10 17:46:42 +02:00
Dominik Prokop
615fa73f23
DashboardScene: Enrich requests correctly in edit mode (#85883) 2024-04-10 17:38:37 +02:00
Kristina
60edd988ac
Explore: Skip flaky test (#85878)
Skip flaky test
2024-04-10 16:05:07 +02:00
Ashley Harrison
3c69de6be5
Chore: removing some type assertions (#85839)
* fix some type assertions in loops

* some more cleanup

* some alerting fixes

* put comments in correct place to ignore rule

* couple more

* undo SilencesFilter changes
2024-04-10 14:54:31 +01:00
Sergej-Vlasov
33b6f45a9e
Revert "DashboardScene: prevent panel hovel header crop with scenes" (#85865)
Revert "DashboardScene: prevent panel hovel header crop with scenes (#85780)"

This reverts commit 23f1732855.
2024-04-10 16:27:53 +03:00
Kristina
98c575d28f
Explore: Query history should gracefully handle undefined exploreId on run button (#85821)
* Gracefully handle undefined exploreId on run button

* Add test
2024-04-10 07:21:29 -06:00
Sergej-Vlasov
23f1732855
DashboardScene: prevent panel hovel header crop with scenes (#85780)
* add behaviour that adjusts hoverHeaderOffset

* clean up behaviour logic

* optimise and extract behaviour to separate file

* fix hoverHeaderOffsetBehavior unsubscribe

* update to latest scenes version

* Fix PanelOptionsTest

* fix: test value for adhoc filter url param

* Fix transformation tab tests

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
Co-authored-by: Darren Janeczek <darren.janeczek@grafana.com>
Co-authored-by: oscarkilhed <oscar.kilhed@grafana.com>
2024-04-10 15:39:51 +03:00
Josh Hunt
f484519784
E2C: Refactor on-prem ConnectModal (#85799)
* Refactor on-prem ConnectModal to not use ModalProvider

* fix
2024-04-10 10:07:52 +01:00
Oscar Kilhed
96abe65fe4
Dashboard scenes: Fix export tab not including variables when exporting externally (#85807)
Fix export tab not including variables when exporting externally
2024-04-09 20:39:30 +02:00
Darren Janeczek
66c0fd4dcc
chore: update datatrails feature flag and enable (#85508)
* chore: update datatrails feature flag and enable

* fix: rename `datatrails` feature flag to `exploreMetrics`
2024-04-09 14:15:18 -04:00
Victor Marin
b6249d6a50
Check source panel for updates in Dashboard DS panel (#85655)
* Check source panel for updates in Dashboard DS panel

* Test

* made it better

* cleanup

* cleanup and tests

* fix failing tests

* find the correct dashboard query

* revert mixed check in dashboard behaviour

* Dashboard data source: Return error when used in mixed data source (#85765)

* MixedDS: Inform about dashboard ds not being supported

* lint fix

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-04-09 20:59:37 +03:00
Tobias Skarhed
c7e4baff75
Explore: Add h1 for screen readers (#85794)
* Add h1 in Explore for screen readers

* Add i18n

* Move to ExplorePage
2024-04-09 18:15:44 +02:00
Ieva
9a2969fb4f
RBAC: hide save button for users who can't save dashboard (#85758)
hide save button for users who can't save dashboard
2024-04-09 17:09:41 +01:00
Ivan Ortega Alba
27bc0c19ab
DashboardScene: Detect changes when editing a panel (#85708) 2024-04-09 18:48:10 +03:00
Kristina
5305316f5a
Explore: Move Query History to be screen wide (#84321)
* WIP

* Use splitpanewrapper for drawer

* Get rich history pulling from multiple datasources

* highlight pane

* Fix datasource data handling

* create ds/explore map, move around ds lookup

* Handle no filters

* Fix tests and some errors

* Fix context menu issue

* (Poorly) enable scrolling, fix onClose to function

* Remove highlighting, use legacy key, fix casing

* fix filtering to handle non-simple data

* Fix linter, add translations

* Fixing tests~~

* Move to explore drawer and fix some more tests

* Kinda fix drawer stuff?

* Fix remaining card tests

* Fix test

* Fix tests

* Partially fix starred tab tests

* Fix integration tests

* Fix remaining tests 🤞

* Add a test and a clarifying comment behind a couple hooks

* Remove unused code

* Fix button styling and fix animation (but break width)

* Make Drawer using parent width (100%)

* Fix tests and some small catches

* Add tests for selectExploreDSMaps selector

---------

Co-authored-by: Piotr Jamroz <pm.jamroz@gmail.com>
2024-04-09 07:36:46 -05:00
kay delaney
02096c4e22
Dashboards: Add isViewing to mustKeepProps (#85748) 2024-04-09 10:33:59 +00:00