Skip to content

Commit eea576c

Browse files
Update refresh for dashboard scene (#346)
* refresh for scene dashboard updated * update to useDashboardRefresh hook * update comment * update test case * formatting * Updated Grafana 11.3.0 and dependencies * Update README.md * act wrap * remove nested implementation for AutosizeCodeEditor (CodeEditor) and check AutosizeCodeEditor call * Add dependency --------- Co-authored-by: Mikhail Volkov <mikhail@volkovlabs.io>
1 parent 9f6b696 commit eea576c

File tree

11 files changed

+2350
-1488
lines changed

11 files changed

+2350
-1488
lines changed

.config/types/global.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/**
2+
* __grafanaSceneContext type to prevent TS error
3+
*/
4+
interface Window {
5+
__grafanaSceneContext: unknown;
6+
}

.github/workflows/e2e.yml

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- main
1010

1111
jobs:
12-
tests:
12+
dev:
1313
runs-on: ubuntu-latest
1414

1515
steps:
@@ -18,8 +18,8 @@ jobs:
1818
- name: Setup Node.js environment
1919
uses: actions/setup-node@v4
2020
with:
21-
node-version: '20'
22-
cache: 'npm'
21+
node-version: "20"
22+
cache: "npm"
2323

2424
- name: Install dependencies
2525
run: npm install
@@ -42,3 +42,37 @@ jobs:
4242
name: playwright-report
4343
path: playwright-report/
4444
retention-days: 30
45+
46+
dependency:
47+
runs-on: ubuntu-latest
48+
49+
steps:
50+
- uses: actions/checkout@v4
51+
52+
- name: Setup Node.js environment
53+
uses: actions/setup-node@v4
54+
with:
55+
node-version: "20"
56+
cache: "npm"
57+
58+
- name: Install dependencies
59+
run: npm install
60+
61+
- name: Build
62+
run: npm run build
63+
64+
- name: Start Grafana
65+
run: docker compose --profile dependency up -d
66+
67+
- name: Run e2e tests
68+
run: npm run test:e2e:docker
69+
70+
- name: Stop Grafana
71+
run: docker compose down
72+
73+
- uses: actions/upload-artifact@v4
74+
if: ${{ !cancelled() }}
75+
with:
76+
name: playwright-report-dependency
77+
path: playwright-report/
78+
retention-days: 30

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Change Log
22

3-
## 6.5.0 (IN PROGRESS)
3+
## 6.5.0 (2024-10-25)
44

55
### Features / Enhancements
66

77
- Updated Autosize Code Editor toolbar (#341)
8+
- Updated refresh for dashboard scene (#346)
9+
- Updated Grafana 11.3.0 and dependencies (#346)
810

911
## 6.4.1 (2024-09-16)
1012

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
![ECharts](https://github.com/VolkovLabs/business-charts/raw/main/src/img/dashboard.png)
44

5-
![Grafana](https://img.shields.io/badge/Grafana-11.2-orange)
5+
![Grafana](https://img.shields.io/badge/Grafana-11.3-orange)
66
[![YouTube](https://img.shields.io/badge/YouTube-Playlist-red)](https://youtube.com/playlist?list=PLPow72ygztmQHGWFqksEf3LebUfhqBfFu)
77
![CI](https://github.com/volkovlabs/business-charts/workflows/CI/badge.svg)
88
![E2E](https://github.com/volkovlabs/business-charts/workflows/E2E/badge.svg)

docker-compose.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,21 @@ services:
2929
profiles:
3030
- main
3131

32+
grafana-dep:
33+
image: grafana/grafana:10.0.0
34+
ports:
35+
- 3000:3000/tcp
36+
environment:
37+
- GF_DEFAULT_APP_MODE=development
38+
- GF_USERS_DEFAULT_THEME=light
39+
- GF_INSTALL_PLUGINS=marcusolsson-static-datasource,golioth-websocket-datasource,marcusolsson-json-datasource
40+
volumes:
41+
- ./dist:/var/lib/grafana/plugins/volkovlabs-echarts-panel
42+
- ./provisioning:/etc/grafana/provisioning
43+
- ./echarts.volkovlabs.io:/etc/grafana/provisioning/dashboards/echarts
44+
profiles:
45+
- dependency
46+
3247
test:
3348
build:
3449
context: .

0 commit comments

Comments
 (0)