Commit Graph

22 Commits

Author SHA1 Message Date
Victor Marin
b9285e320a
Fix new dashboard save name validation (#86290) 2024-04-16 15:46:25 +03:00
Ivan Ortega Alba
27bc0c19ab
DashboardScene: Detect changes when editing a panel (#85708) 2024-04-09 18:48:10 +03:00
Ivan Ortega Alba
d983629650
Detect folder changes when saving a dashboard (#85378) 2024-04-08 13:06:50 +03:00
Bogdan Matei
9d44c8e8cf
Add auto to refresh picker (#85584) 2024-04-05 18:31:40 +03:00
kay delaney
85127464a3
Scenes: Fix issue where unsaved changes prompt is shown when quickly adding panel to new dashboard (#85518)
Closes #84577
2024-04-03 15:39:01 +01:00
Ivan Ortega Alba
89638238e5
DashboardScene: Detect changes when live is enabled from settings (#85409)
* Adapt the code to the new live timer API

* Update scenes
2024-04-03 14:22:10 +03:00
Dominik Prokop
f74d5ff93e
Data layers: Integrate latest scenes changes (#84804)
* bump scenes

* Improved data layers

* DashboardScene: Allow transformations by topic

* Use stable version

* Mock grafana ds to avoid anno layers test failure

* Fix name change

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2024-03-21 18:23:47 +01:00
Dominik Prokop
a4ff2abd9d
PanelGridItemRepeater: Refactor (#84710)
* wip

* serialisation tests updates

* VizPanelManager test updates

* ests updates

* Making it green

* Use DashboardGridItem instead of SceneGridItem

* Cleanup tests that unnecessarily depend on dashboard grid items

* Fix row repeater behavior test

* Update public/app/features/dashboard-scene/panel-edit/PanelEditor.tsx

Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>

* Fix unnecessary library panel changes detection

* Fix test

---------

Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>
2024-03-21 14:38:00 +01:00
Dominik Prokop
d5e293c18d
GroupBy variable: Allow detecting static dimensions changes (#84715)
* GroupBy variable: Allow detecting static dimensions changes

* Review

* Lint
2024-03-20 10:08:42 +01:00
Dominik Prokop
7c1ad64bb2
DashboardScene: Make sure dashboard prompt is shown when navigating away way from an edited dashboard (#84077)
DashboardScene: Make sure dashboard prompt is shown when navigating away from an edited dashboard

Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>
2024-03-12 16:12:00 +01:00
Ivan Ortega Alba
920d50cb76
Worker: Use CorsWorker to avoid CORS issues (#83976) 2024-03-06 18:43:19 +02:00
Oscar Kilhed
c9ac6dd3e7
Dashboard scenes: debounce name validation when saving dashboards (#83580)
* Dashboard scenes: debounce name validation when saving dashboards

* add newline
2024-03-05 10:46:03 +01:00
Ivan Ortega Alba
59fb26443f
DashboardSceneChangeTracker: Do not load the worker until is editing (#83817) 2024-03-04 14:31:14 +01:00
Ivan Ortega Alba
29d6cd8fa0
DashboardScene: Share change detection logic between saving and runtime (#81958)
Co-authored-by: Alexandra Vargas <alexa1866@gmail.com>
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-02-29 18:18:26 +02:00
Torkel Ödegaard
526916e10f
DashboardScene: Panel edit use new splitter and new conditional data and options pane logic (#82377)
Rebase
2024-02-14 13:37:52 +01:00
Torkel Ödegaard
763dab7532
DashboardScene: Panel edit toolbar actions (#82302)
* DashboardScene: Panel edit toolbar actions

* Make saving work

* Update public/app/features/dashboard-scene/panel-edit/PanelEditor.test.ts

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-02-13 14:23:47 +01:00
Torkel Ödegaard
ba7e0d5c2e
DashboardScene: Fix issue with url sync after saving title change (#81851)
DashboardScene: Fix issue with url sycn after saving title change
2024-02-07 18:58:23 +01:00
renovate[bot]
d65df0191b
Update dependency react-hook-form to v7.50.0 (#81796)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-02 19:30:27 +02:00
Torkel Ödegaard
b48e1f897e
Dashboard: Improve diff styling (#81509)
* Dashboard: Improve diff styling

* Update public/app/features/dashboard-scene/settings/version-history/DiffGroup.tsx

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>

* Fix

* Update

* Update

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-01-30 16:07:24 +01:00
Torkel Ödegaard
715143d4ed
DashboardScene: Saving updates (provisioned dashboard and fixes) (#81471)
* Save provisioned dashboard

* Update

* fixes
2024-01-29 20:03:57 +01:00
Torkel Ödegaard
2ce81c1a52
DashboardScene: Support detecting and ignoring variable value changes (#81448)
* DashboardScene: Saving and ignoring variable value changes

* Update
2024-01-29 17:45:18 +01:00
Torkel Ödegaard
1d5edb2a18
DashboardScene: Saving (#81163)
* DashboardScene: First save works

* Updates

* version mismatch works

* Error handling

* save current time range working

* Progress on save as

* Save as works

* Progress

* First tests

* Add unit tests

* Minor tweak

* Update

* Update isDirty state when saving
2024-01-29 12:04:45 +01:00