Andy DixonandCopilot fb411e6a4d Replace text inputs with dynamic dropdowns, fix cross-series field resolution
Field selectors are now dropdowns populated from the panel's actual
data frames. Each option shows 'fieldName (refId)' so users can
distinguish fields from different queries (A, B, C, etc.).

The selected value uses a 'refId:fieldName' composite key so the
panel can unambiguously resolve the correct field even when multiple
queries return fields with the same name.

Data extraction now searches across ALL series (not just series[0]),
fixing the core bug where selecting a field from query B/C had no
effect because the code only looked at the first data frame.

Field resolution priority:
1. Exact 'refId:fieldName' match (from dropdown selection)
2. Fuzzy match by field name, display name, frame name, or refId
3. For charge field only: fallback to first numeric field ('Auto')

Dropdowns also support allowCustomValue for manual entry and
isClearable to reset.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-24 13:42:45 +01:00
2025-10-11 18:48:08 +02:00
2025-10-11 17:26:33 +01:00
2025-10-11 18:36:06 +02:00

Grafana Battery Visualisation

I hate writing documentation, and since I will have ADHD brain, I will forget how to do this.

npm install
npm run build
cp -r dist /var/lib/grafana/plugins/andydixon-battery-panel

in /etc/grafana/grsfana.ini add andydixon-battery-panel to allow_loading_unsigned_plugins

S
Description
Grafana battery visualisation
Readme GPL-3.0
276 KiB
Languages
TypeScript 87%
JavaScript 9.5%
Dockerfile 2.8%
Shell 0.7%