Torkel Ödegaard
9cd7c87b48
DashboardScene: Fixing major row repeat issues ( #87539 )
...
* DashboardScene: Fixing major row repeat issues
* Fixing edit scope
* Use dashboard variableDependendency to notify row repeat behaviors
* update scenes lib
* Do not repeat if values are the same
* Update public/app/features/dashboard-scene/scene/DashboardScene.tsx
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
* Updated scenes
* Update
* Update
* Do not render row actions for repeated rows
* Fixed e2e
---------
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-05-14 12:39:10 +02:00
kay delaney
b3f173f153
Dashboard: Fix issue where changes to panel in row weren't detected in panel edit ( #87195 )
...
Closes #87171
2024-05-03 11:50:10 +02:00
Oscar Kilhed
fdc1023586
Dashboard scenes: Fix min interval not saving ( #86962 )
...
* Fix min interval not saving
* Add tests
* Fix test
2024-04-29 09:41:43 +02:00
Tom Ratcliffe
a5c75c5ffb
Remove explicit imports of `whatwg-fetch` from individual test files
2024-04-18 12:23:38 +01:00
Torkel Ödegaard
5837def850
DashboardScene: Move add library panel view from grid item to drawer ( #86257 )
...
* DashboardScene: Add library panel in drawer
* DashboardScene: Move add libray panel view to a drawer instead of a grid item
* Update
* Update tests
2024-04-17 06:54:38 +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
Bogdan Matei
9d44c8e8cf
Add `auto` to refresh picker ( #85584 )
2024-04-05 18:31:40 +03:00
kay delaney
9efbf142a8
Scenes: Persist changes made in edit mode to save model ( #84320 )
2024-04-05 12:32:28 +03:00
Torkel Ödegaard
d290aaff46
DashboardScene: Support time region migrations ( #84147 )
...
* DashboardScene: Support time region migrations
* Update
* Update
* Update
* fix
* Fix lock
* fix tests
* Fix migrations test
---------
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-03-28 07:39:26 +01: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
kay delaney
4b0547014a
Scenes/LibraryPanels: Fix transformSceneToSaveModel for library panel repeats ( #83843 )
2024-03-05 14:09:24 +00:00
Victor Marin
04539ffccb
Scenes: Add 'Import from library' functionality ( #83498 )
...
* wip
* tests + refactor ad panel func
* Add row functionality
* update row state only when there are children
* Add new row + copy paste panels
* Add library panel functionality
* tests
* PR mods
* reafctor + tests
* reafctor
* fix test
* refactor
* fix bug on cancelling lib widget
* dashboard now saves with lib panel widget
* add lib panels widget works in rows as well
* split add lib panel func to another PR
* Add library panel functionality
* refactor
* take panelKey into account when getting next panel id in dashboard
* fix tests
2024-02-28 16:41:12 +02:00
Dominik Prokop
62efe6e170
Panel Query Options: Support query caching options ( #82448 )
...
* schema update
* Panel Query Options: Support query caching options
2024-02-14 09:19:39 -08:00
Dominik Prokop
f20053e4b6
DashboardScene: Allow editing panel links ( #81560 )
...
* Panel links supplier for VizPanel
* Update panel links behavior
* Allow editing panel links
* Update so that single link is rendered without a dropdown
* Serialise links in scene -> save model transformation
* Betterer fix
* Fix inspect json tab test
2024-01-31 13:30:27 +02:00
Torkel Ödegaard
5770828871
Scenes: Updates to scene v2.0 ( #80953 )
...
* Scenes: Updates to scene v2.0
* Update
2024-01-22 19:22:04 +01:00
Ivan Ortega Alba
07778cb221
DashboardLinksSettings: Move them to Scenes ( #79998 )
2024-01-16 13:24:54 +02:00
Ivan Ortega Alba
e56a252158
GeneralSettings: Edit general dashboards settings to scenes ( #78492 )
2023-12-01 17:04:56 +02:00
Dominik Prokop
6e4418ffd2
DashboardScene: Show plugin extensions in panel menu ( #78702 )
...
* DashboardScene: Show plugin extensions in panel menu
* FIx test
* Nits
* Nit
* Review nits
2023-11-28 03:26:09 -08:00
Torkel Ödegaard
54bca5e590
DashboardSchema: Remove some old panel types ( #78590 )
2023-11-24 14:53:28 +01:00
Torkel Ödegaard
a98a39c418
DashboardScene: Fixes angular panels inside collapsed rows ( #78532 )
...
* DashboardScene: Fixes angular panels inside collapsed rows
* Update
2023-11-23 15:15:36 +01:00
Dominik Prokop
384db8e0ca
DashboardScene: Add macro for interpolating __dashboard variable ( #78172 )
...
* DashbaordScene: Add macro for interpoladint __dashboard variable
* Review
* Test fix
* Test fix
2023-11-15 04:05:54 -08:00
Torkel Ödegaard
1f1d348e17
DataTrails: Auto query, explore and breakdown/drilldown prototype ( #77019 )
...
* First try
* Update
* app with drilldowns
* Progres
* Progress
* update
* Update
* update
* Update
* Update
* Progress
* Update
* Progress
* Update
* Progress
* logs url sync
* related metrics
* Progress
* progress
* Progress
* Update
* Update
* Update
* Update
* Update
* fix
* Update
* update
* Update
* update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* update
* Update
* Update
* Settings
* Update
* Tweaks
* update
* Improve auto queries
* Update
* Update
* Fixes
* Update
* Update
* Update
* fix
* Update
* Removing logs view, cleanup
* Update
* Update
* disabled not implemented buttons
* Update
* Feature toggle on dashboard menu
* remove unused prometheus change
* removed bit
* Fix failing test
* chore: added `/public/app/features/trails/` to CODEOWNERS
* go mod tidy
* go mod tidy
* fix: added missing arg
* Moved panel action
* Moved panel action
---------
Co-authored-by: André Pereira <adrapereira@gmail.com>
Co-authored-by: Darren Janeczek <darren.janeczek@grafana.com>
2023-11-15 11:28:29 +00:00
Dominik Prokop
120247667b
DashboardScene: Transform scene repeats to snapshot ( #76428 )
...
* WIP : Transform scene panel repeats to snapshot
* Set scoped vars correctly on repeated panel snapshot
* Row repeats snapshots
* Fix scoped vars for repeated rows
* Tests
* Fix merge
2023-10-23 02:46:35 -07:00
Alexa V
8dfd918200
Dashboard: Use Interval variable in DashboardScene ( #75836 )
...
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2023-10-16 17:34:09 +02:00
Torkel Ödegaard
72a1de855c
Schema: Clean up / correct panel schema ( #76346 )
...
* Schema: Clean up / correct panel schema
* fixes
2023-10-11 15:56:42 +02:00
Dominik Prokop
6968f4d6ff
DashboardScene: Share snapshot ( #76132 )
...
* Dashboard snapshot creation logic and tests
* Add variable type to serialized json, add refresh prop to datasource var
* WIP Snapshots tab UI
* Use Grafana snapshot query for a generated snapshot
* Make anno snapshots backwards compatible
* Share snapshot tab UI
* Single panel snapshot
* Remove unused param
* Snap update
* Ts fix
* One more snap fix
* Basic rows support
* Add tests for basic rows
* Bettererupdate
2023-10-11 04:24:18 -07:00
Dominik Prokop
2cfbe087fc
DashboardScene serialization: Handle variables and library panels ( #76117 )
...
* DashboardScene serialization: Library panels
* DashboardScene serialization: Variables
* TS fix
* Review
* betetrer -u
2023-10-06 05:32:29 -07:00
Dominik Prokop
1a5d5c2820
DashboardScene serialization: Handle transformations and queries ( #75907 )
...
* Serialization: Handle transformations and queries
* Betterer
2023-10-04 02:31:16 -07:00
Dominik Prokop
157859aede
DashboardScene: Integrate annotations ( #74610 )
...
* WIP Dashboard to Scenes: Annotations
* Bump scenes
* Enable annotations and controls
* Betterer
* Update snapshots
* Test fix
2023-09-20 02:50:35 -07:00
Torkel Ödegaard
97d568e60a
DashbboardScene: RowRepeaterBehavior ( #74505 )
...
* Repeating rows start
* working
* Progress
* Progress
* Update
* up scenes lib
* Update
* Progress
* restore url sync
* Progress
* Fixes and tests
* Update
* Adds tests and code to remove repeats from save model
* Update
* Fix test
2023-09-11 12:02:04 +02:00
Torkel Ödegaard
d82a3c9fc6
DashboardScene: Repeat panel by variable ( #74294 )
...
* Progress
* think this a bad approach
* Scene panel repeats looking good
* Update
* update
* Update
* Use key instead for inspect/view
* refactorings to improve tests
* Update
* More tests
* Update
* added support for key / value variables
* Update
* Fixes
* remove log
* Update
* Removed old gdev templating dashboard and added new and improved one
* Update
* Added repeating panels coded demo
* Update to latest scenes lib
* review feedback fixes
* update
* Sync schema
2023-09-05 13:51:46 +02:00
Torkel Ödegaard
f4c127a1d8
DashboardScene: Support panel relative time overrides and timeshift ( #62844 )
...
* Things are working
* update
* Added unit tests
* More tests
* minor fix
* Update
* Support hideTimeOverride
2023-09-01 10:21:41 +02:00
Torkel Ödegaard
412e545503
DashboardScene: Support for discard, start at transform back to save model and save drawer ( #73873 )
...
* SceneDashboard: Discard changes now works
* To save model works and start at save drawer
* Update
* Added missing file
* Refactorings to keep responsibility more logical
* Refactorings
* Removed file
* Fixed state issue
* Update
* Update
2023-08-29 14:17:55 +02:00