Skip to content

Commit

Permalink
Update useRuntimeVariables hook for Scenes dashboards (#247)
Browse files Browse the repository at this point in the history
* update useRuntimeVariables hook to use in dashboard scene

* Update CHANGELOG.md

---------

Co-authored-by: Mikhail Volkov <mikhail@volkovlabs.io>
  • Loading branch information
vitPinchuk and mikhail-vl authored Oct 25, 2024
1 parent 8b76d1d commit f552c80
Show file tree
Hide file tree
Showing 8 changed files with 284 additions and 162 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

### Features / Enhancements

- Add Multi Day Events in Yearly View (#243)
- Update Migration for thresholds color filter (#248)
- Added Multi Day Events in Yearly View (#243)
- Updated Migration for thresholds color filter (#248)
- Updated useRuntimeVariables hook for Scenes dashboards (#247)

## 3.7.0 (2024-09-15)

Expand Down
178 changes: 159 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"@grafana/data": "^11.2.0",
"@grafana/runtime": "^11.2.0",
"@grafana/ui": "^11.2.0",
"@volkovlabs/components": "^3.4.1",
"@types/react-virtualized-auto-sizer": "^1.0.4",
"dayjs": "^1.11.13",
"i18next": "^23.15.1",
Expand Down
7 changes: 7 additions & 0 deletions src/components/__mocks__/@grafana/scenes.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* Mock @grafana/scenes
* mostly prevent IntersectionObserver is not defined
*/
jest.mock('@grafana/scenes', () => ({
sceneGraph: {},
}));
Loading

0 comments on commit f552c80

Please sign in to comment.