grafana/public/app/features/explore/state
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
..
datasource.test.ts Update dependency prettier to v2.5.1 (#43473) 2022-02-02 12:02:32 +00:00
datasource.ts Loki: Logs volume improvements (#40327) 2021-10-18 12:22:41 +02:00
explorePane.test.ts explore: store failed queries too (#42516) 2021-12-09 14:00:50 +01:00
explorePane.ts Explore: Add t * keybindings to change time range (#45020) 2022-02-17 07:39:02 -06:00
history.ts Query History: Split data and view models (#44922) 2022-02-10 13:59:43 +01:00
main.test.ts Update dependency prettier to v2.5.1 (#43473) 2022-02-02 12:02:32 +00:00
main.ts Remove return to panel button and related code (#45018) 2022-02-08 10:20:22 -06:00
query.test.ts log-volume: adjust request-id to avoid conflicts (#45511) 2022-02-18 12:05:29 +01:00
query.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
selectors.ts Explore: Reuse Dashboard's QueryRows component (#38942) 2021-09-15 16:26:23 +01:00
time.test.ts Update dependency prettier to v2.5.1 (#43473) 2022-02-02 12:02:32 +00:00
time.ts Explore: Add t * keybindings to change time range (#45020) 2022-02-17 07:39:02 -06:00
utils.test.ts Dependencies: Jest 27 (#42681) 2021-12-03 17:09:25 +00:00
utils.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