Commit Graph
2 Commits
Author SHA1 Message Date
dependabot[bot] 196fd78a0a Bump protobufjs, @grafana/runtime and @grafana/ui
Removes [protobufjs](https://github.com/protobufjs/protobuf.js). It's no longer used after updating ancestor dependencies [protobufjs](https://github.com/protobufjs/protobuf.js), [@grafana/runtime](https://github.com/grafana/grafana/tree/HEAD/packages/grafana-runtime) and [@grafana/ui](https://github.com/grafana/grafana/tree/HEAD/packages/grafana-ui). These dependencies need to be updated together.


Removes `protobufjs`

Updates `@grafana/runtime` from 12.4.2 to 12.4.5
- [Release notes](https://github.com/grafana/grafana/releases)
- [Changelog](https://github.com/grafana/grafana/blob/main/CHANGELOG.md)
- [Commits](https://github.com/grafana/grafana/commits/v12.4.5/packages/grafana-runtime)

Updates `@grafana/ui` from 12.4.2 to 12.4.5
- [Release notes](https://github.com/grafana/grafana/releases)
- [Changelog](https://github.com/grafana/grafana/blob/main/CHANGELOG.md)
- [Commits](https://github.com/grafana/grafana/commits/v12.4.5/packages/grafana-ui)

---
updated-dependencies:
- dependency-name: protobufjs
  dependency-version:
  dependency-type: indirect
- dependency-name: "@grafana/runtime"
  dependency-version: 12.4.5
  dependency-type: direct:production
- dependency-name: "@grafana/ui"
  dependency-version: 12.4.5
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-21 08:49:33 +00:00
Andy DixonandCopilot 942a390248 Overhaul battery panel: responsive layout, configurable options, enterprise-level UI
- Responsive layout adapts to any panel size (mobile to widescreen)
  - Auto-switches between column/row layout based on dimensions
  - Gracefully degrades in tiny panels (hides stats, keeps battery)
  - Font sizes scale dynamically to available space

- New configurable options via Grafana panel editor:
  - Colours category: low/mid/high battery colours
  - Thresholds category: configurable low/high % boundaries (was hardcoded 30/70)
  - Appearance category: gradient fill, orientation (vertical/horizontal),
    charging animation, border width
  - Display category: individual show/hide toggles for percentage, rate,
    low/high stats, charging status
  - Data category: decimal places, regression toggle

- Fixed bugs:
  - Gradient ID now unique per panel instance (fixes multi-panel dashboards)
  - Battery fill uses clipPath so it respects rounded corners
  - Proper 'No data' empty state

- Horizontal battery orientation for wide/short panels
- Pulse animation when charging (configurable)
- Status badge with themed colours (charging/discharging/stable)
- Moved options interface to shared types.ts
- Updated stale e2e tests to match current component

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-24 13:06:47 +01:00