grafana/public/app/features/dashboard/services
Giordano Ricci 09f48173fe
Explore: allow users to save Explore state to a new panel in a new dashboard (#45148)
* Add Button & Form

* Save to new dashboard

* minor adjustements

* move modal to a separate component

* handle dashboard name related errors

* pick visualization based on query results

* lift state

* fix types

* Add Open & Close tests

* Add submit test

* add navigation tests

* add tests for API errors

* remove console log

* create wrapper component for AddToDashboardButton

* remove unused mapped prop

* add wrapper test

* rename isActive to isVisible

* invert control over save & redirect logic

* remove leftover commented code

* cleanup setup parameters

* reorganize code & improve tests

* Remove option to add to existing dashboard

* UI tweaks

* disable button if no queries

* Fix tests

* better accessible tests

* handle submission errors

* improve addToDashboard types

* use dashboardSrv' saveDashboard

* remove leftover test helper

* fix typo

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>

* Apply suggestions from code review

Co-authored-by: Kristina <kristina.durivage@grafana.com>

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
Co-authored-by: Kristina <kristina.durivage@grafana.com>
2022-03-03 08:54:06 +00:00
..
DashboardLoaderSrv.ts include URL arguments in dashboard resource request (#36526) 2021-07-07 21:42:49 +02:00
DashboardSrv.ts Explore: allow users to save Explore state to a new panel in a new dashboard (#45148) 2022-03-03 08:54:06 +00:00
TimeSrv.test.ts Explore: Add t * keybindings to change time range (#45020) 2022-02-17 07:39:02 -06:00
TimeSrv.ts Explore: Add t * keybindings to change time range (#45020) 2022-02-17 07:39:02 -06:00