grafana/public/app
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
..
angular Angular: Option to disable angular support and isolate angular dependencies (#45421) 2022-02-16 17:14:33 +01:00
core Chore: Remove several 'as' type assertions (#45913) 2022-03-02 14:02:09 +00:00
features Explore: allow users to save Explore state to a new panel in a new dashboard (#45148) 2022-03-03 08:54:06 +00:00
partials Chore: Migrates remaining Angular modals to React (#33476) 2021-04-28 15:22:28 +02:00
plugins Update dependency ol to v6.13.0 (#45949) 2022-03-03 09:45:33 +01:00
polyfills WIP Chore: reduce strict errors (#40462) 2021-10-15 08:57:55 +02:00
routes Redux: Factor Invites out to separate slice (#45552) 2022-02-21 11:37:49 +00:00
store Variables: move state tree into a keyed state (#44642) 2022-02-18 06:06:04 +01:00
types Explore: allow users to save Explore state to a new panel in a new dashboard (#45148) 2022-03-03 08:54:06 +00:00
app.ts Chore: refactor core transformer folder structure (#45497) 2022-02-17 08:12:38 -08:00
AppWrapper.tsx Angular: Option to disable angular support and isolate angular dependencies (#45421) 2022-02-16 17:14:33 +01:00
dev.ts React: Add why-did-you-render dev extension to better see what components re-render and why (in console) (#23455) 2020-04-09 19:44:05 +02:00
index.ts Chore: Prevent loading error from showing too early (#41347) 2021-11-08 16:13:37 +01:00