Skip to content

Commit

Permalink
Update refresh for dashboard scene (#346)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
vitPinchuk and mikhail-vl authored Oct 25, 2024
1 parent 9f6b696 commit eea576c
Show file tree
Hide file tree
Showing 11 changed files with 2,350 additions and 1,488 deletions.
6 changes: 6 additions & 0 deletions .config/types/global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/**
* __grafanaSceneContext type to prevent TS error
*/
interface Window {
__grafanaSceneContext: unknown;
}
40 changes: 37 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- main

jobs:
tests:
dev:
runs-on: ubuntu-latest

steps:
Expand All @@ -18,8 +18,8 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
node-version: "20"
cache: "npm"

- name: Install dependencies
run: npm install
Expand All @@ -42,3 +42,37 @@ jobs:
name: playwright-report
path: playwright-report/
retention-days: 30

dependency:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"

- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: Start Grafana
run: docker compose --profile dependency up -d

- name: Run e2e tests
run: npm run test:e2e:docker

- name: Stop Grafana
run: docker compose down

- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report-dependency
path: playwright-report/
retention-days: 30
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Change Log

## 6.5.0 (IN PROGRESS)
## 6.5.0 (2024-10-25)

### Features / Enhancements

- Updated Autosize Code Editor toolbar (#341)
- Updated refresh for dashboard scene (#346)
- Updated Grafana 11.3.0 and dependencies (#346)

## 6.4.1 (2024-09-16)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

![Grafana](https://img.shields.io/badge/Grafana-11.2-orange)
![Grafana](https://img.shields.io/badge/Grafana-11.3-orange)
[![YouTube](https://img.shields.io/badge/YouTube-Playlist-red)](https://youtube.com/playlist?list=PLPow72ygztmQHGWFqksEf3LebUfhqBfFu)
![CI](https://github.com/volkovlabs/business-charts/workflows/CI/badge.svg)
![E2E](https://github.com/volkovlabs/business-charts/workflows/E2E/badge.svg)
Expand Down
15 changes: 15 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,21 @@ services:
profiles:
- main

grafana-dep:
image: grafana/grafana:10.0.0
ports:
- 3000:3000/tcp
environment:
- GF_DEFAULT_APP_MODE=development
- GF_USERS_DEFAULT_THEME=light
- GF_INSTALL_PLUGINS=marcusolsson-static-datasource,golioth-websocket-datasource,marcusolsson-json-datasource
volumes:
- ./dist:/var/lib/grafana/plugins/volkovlabs-echarts-panel
- ./provisioning:/etc/grafana/provisioning
- ./echarts.volkovlabs.io:/etc/grafana/provisioning/dashboards/echarts
profiles:
- dependency

test:
build:
context: .
Expand Down
Loading

0 comments on commit eea576c

Please sign in to comment.