Dominik Prokop
6e80a3d59b
DashboardScene: Viewer role only support ( #76748 )
...
* Allow starring DashboardScene
* Add feature toggle to enable dashbaord scene for viewers
* Basics for proxying viewers to a dashboard scene
* Removed isHomeDashboard flag
* Don't use proxy for rendering dashboard page
* Revert "Don't use proxy for rendering dashboard page"
This reverts commit 95836bdb2c
.
* Pre-fetch dashboard prior page rendering
* Depend only on dashboard permissions
* Update default home dashboard to proper model...
* Fix breadcrumbs
* Types update
* Dashboards page proxy tests
* Fix missing controls
* URLs generation
* DashboardScenePageStateManager caching test
* Tests updates
* Fix wrong import
* Test update
* Gen
2023-11-02 12:02:25 -07:00
Ryan McKinley
45d59cf31b
Dashboards: Remove dummy trim dashboard api ( #77249 )
...
Co-authored-by: nikimanoledaki <niki.manoledaki@grafana.com>
2023-11-02 08:35:14 -07:00
Dominik Prokop
bbe1767310
DashboardScene: Panel links support ( #77295 )
...
* DashboardScene: PanelLinks support
* Update public/app/features/dashboard-scene/scene/PanelMenuBehavior.tsx
* Remove code
* Use updated API
* Bump scenes version
2023-10-31 01:57:38 -07:00
Dominik Prokop
877b61e31d
DashboardScene: Render share snapshot radio button translations ( #77136 )
...
DashboardScene: Render share snapshot tab translations
2023-10-26 00:37:16 -07: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
Torkel Ödegaard
7759e2f8a3
DashboardScene: Panel Keybindings and some others ( #76233 )
...
* DashboardScene: Keybindings like v to view panel
* more bindings
* Fix imports
* Progress
* Nit update
* Fix merge
---------
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2023-10-20 06:22:56 -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
a42040a59a
DashboardScene: Backward compatability with getDashboardSrv.getCurrent and DashboardModel props and functions ( #76371 )
...
* DashboardSrv.getCurrent backward compatibility
* fixes
2023-10-13 16:24:04 +02:00
Torkel Ödegaard
0d55dad075
DashboardScene: Fixes full page reload of fullscreen view of a repeated panel ( #76326 )
...
* Progress on view panel for repeats
* Good enough
* Update
2023-10-13 16:03:38 +02:00
Torkel Ödegaard
de8ab7efe7
DashboardScene: Support for dashboard PanelContext actions via state hook ( #76192 )
...
* DashboardScene: Support for dashboard PanelContext actions via state hook
* Update
* Progress
* Update
* Update
* update
2023-10-13 11:42:42 +02:00
Torkel Ödegaard
bf7fae4bd3
Tempo: Fix type errors that appeared when removing the "any" type from DataQueryResponseData ( #75600 )
...
* Tempo: Improving typing of data types
* last fix
* Fix
2023-10-11 18:04:54 +02:00
Dominik Prokop
46dc898a87
Fix container width not being set after latest scenes update ( #76372 )
...
* Fix container width after latest scenes update
* typecheck
2023-10-11 17:56:50 +03: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
Torkel Ödegaard
bcf850f8bf
DashboardScene: Set maxDataPointsFromWidth to true ( #76319 )
...
* DashboardScene: Set maxDataPointsFromWidth to true
* fix
2023-10-11 15:56:10 +02:00
Torkel Ödegaard
e46e66313d
DashboardScene: Support for Angular panels ( #76072 )
...
* Could work
* it's working
* remove comment
* Update comment
* Make options work
* Progress
* Update panel class name
* Update public/app/angular/panel/AngularPanelReactWrapper.tsx
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
* Fixes
---------
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2023-10-11 14:27:20 +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
Torkel Ödegaard
42218fbdbb
DashboardScene: Support auto migration for angular panels ( #76100 )
...
* DashboardScene: Support auto migration for angular panels
* minor tweak
* Update scenes
* Review fix
* Update
2023-10-10 14:33:58 +02:00
Torkel Ödegaard
f41565626a
DashboardScene: AdHoc filters ( #76115 )
...
* DashboardScene: AdHoc filters
* Update
* minor update
* update
2023-10-10 10:17:21 +02:00
Torkel Ödegaard
e569ede870
DashboardScene: Fixes issue with height of repeated panels inside row ( #76189 )
...
DashboardScene: Fixes issue with height in panel repeat inside row repeat
2023-10-09 16:40:46 +02:00
Torkel Ödegaard
fc0933d5f4
Schema: Clean up dashboard variables schema ( #76121 )
...
* Cleanup variable schema model
* minor fix
* remove type ignores that are no longer type errors
2023-10-09 09:10:52 +02: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
Torkel Ödegaard
5bba89fc86
Scenes: Backward compatability with new template variable system for functions that don't pass scopedVars ( #75937 )
...
* Use __grafanaScene in templateSrv
* Update
* fix
2023-10-04 13:21:01 +02: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
Torkel Ödegaard
9201c47e59
DashboardScene: Map timezone and fiscal year to scene model and back ( #75715 )
...
* DashboardScene: Map timezone and fiscal year to scene model and back
* weekstart
* update scenes
2023-10-03 11:03:53 +02:00
Torkel Ödegaard
f842b47d78
DashoardScene: Add dashboardUID and panelId to requests ( #75719 )
2023-09-29 13:19:03 +02:00
Dominik Prokop
933d920121
Dashboard scene: Share modal export ( #75640 )
...
* Dashboard scene: Share modal export
* i18n
2023-09-29 00:34:22 -07:00
Ashley Harrison
b374912937
Drawer: Make content scroll by default ( #75287 )
...
* deprecate scrollableContent prop and make it the default behaviour
* restore prop behaviour, just make it default to true
* Update packages/grafana-ui/src/components/Drawer/Drawer.tsx
Co-authored-by: Alexa V <239999+axelavargas@users.noreply.github.com>
---------
Co-authored-by: Alexa V <239999+axelavargas@users.noreply.github.com>
2023-09-27 13:31:57 +01:00
Ashley Harrison
ff0642bf6e
Chore: Type improvements 🧹 ( #75271 )
...
* fix some e2e flows types
* some type fixes
* must... fix... more...
* MOAR
* MOREMOREMORE
* 1 more
2023-09-22 15:06:49 +01:00
Torkel Ödegaard
3529b7413d
DashboardScene: Include url params when switching from old dashboard arch to new ( #74969 )
...
* DashboardScene: Include url params when switching from old dashboard arch to new
* remove imports
* fix
2023-09-22 13:04:17 +02:00
Dominik Prokop
df1c80c7d8
DashboardScene: Prepare annotations support for public dashboards ( #75146 )
...
* WIP Dashboard to Scenes: Annotations
* Bump scenes
* Enable annotations and controls
* Betterer
* Update snapshots
* Test fix
* DashboardScene: Prepare annotations support for public dashboards
* Use latest scenes
2023-09-20 03:47:09 -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
Leon Sorokin
9dc0c8be11
TimeSeries: Rename axisShow -> axisBorderShow ( #75127 )
...
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2023-09-19 23:43:15 +03:00
Torkel Ödegaard
1d1bdaab37
DashboardScene: ShareModal + link sharing ( #74955 )
...
* DashboardScene: Panel menu updates, adding explore action
* DashboardScene: Panel menu updates, adding explore action
* Initial test
* Update
* share modal
* Update
* rename
* Update tests
* Fix test
* update
* Fix tooltip wording
* Update translation file
* fix e2e
* Extract ShareLinkTab component
* rename to overlay
---------
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2023-09-19 16:02:21 +02:00
Torkel Ödegaard
401ec3c4b0
DashboardScene: Meta data tab ( #74810 )
...
* DashboardScene: Inspect meta tab
* DashboardScene: Inspect meta tab
* fix casing
* Added meta data inspector to testdata data source
2023-09-18 09:00:59 +02:00
Torkel Ödegaard
ed3fb71f7b
DashboardScene: Panel menu tracking, adding explore menu action and unit tests ( #74867 )
...
* DashboardScene: Panel menu updates, adding explore action
* DashboardScene: Panel menu updates, adding explore action
* Fix test
* Update test
2023-09-14 16:12:20 +02:00
Torkel Ödegaard
05f01dee0c
DashboardScene: Inspect / query tab ( #74795 )
2023-09-14 12:45:13 +02:00
Torkel Ödegaard
5e9f252962
DashboardScene: Inspect / Json tab ( #74701 )
...
* DashboardScene: Inspect / Json tab
* Fixing behaviors and writing tests
* Progress
* limit options based on data provider
* Fixes
* Add tracking
* Remove unused function
* Remove unused function
* Fix test
* Update
* Move utils function
* Rename to source
2023-09-14 12:17:04 +02:00
Ashley Harrison
0c44a6f9bb
Chore: Improve typings 🧹 ( #74599 )
...
* various type fixes
* candlestick panel type fixes
* few more fixes
* some fixes
* more :)
* moar!
* undo change to SilencesFilter
* undo change to configureStore
2023-09-13 09:17:07 +01:00
Torkel Ödegaard
73a675af02
DashboardScene: Inspect panel data tab ( #74646 )
...
* Refactor data tab to be usable from scenes
* DashboardScene: Inspect data tab
* Everything seem to work now
* don't change drawer size in this PR
* Remove uncommented code
* Fix layout issues for data actions
* Added comment explaining retry
2023-09-11 16:11:22 +02:00
Torkel Ödegaard
499b02b3c6
DashboardScene: Panel edit route basics ( #74081 )
...
* DashboardScene: Panel edit route basics
* remove unused file
* Removed some comments
* Minor fix
* Update
* example of apply changes implementation
* SceneObjectRef: Testing scene object ref
* Rename to ref suffix
* Update
* Fix url sync in panel edit
* Update
* Update
* simplify logic when committing change
* remove import
* Another fix for committing change
2023-09-11 13:51:05 +02:00
Torkel Ödegaard
7718a67b77
DashboardScene: Use TimeRangeTransformerBase in PanelTimeRange ( #74647 )
2023-09-11 12:18:10 +02: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
0563b51098
DashboardScene: Use numeric panel ids in url ( #74005 )
...
* DashboardScene: Use numeric panel ids in url
* Rename fix
* Fixed tests
2023-08-30 10:09:47 +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
Torkel Ödegaard
5bd58cac57
Eslint: Update grafana/eslint-config that allows public accessability modifier ( #73906 )
2023-08-28 14:57:49 +02:00
Torkel Ödegaard
eab6250142
DashboardScene: Move to new folder structure, some refactorings and progress on inspect ( #73810 )
...
* Progress refactoring
* Update
* Update
* Update
* DashboardScene: Folder struct propsal
* Rename loading to persistance
* Moving and renaming
2023-08-25 14:11:47 +02:00