Field pickers: - Replaced addFieldNamePicker with addTextInput for all field selectors (charge, load, state, time remaining). The FieldNamePicker component was silently failing to render in some Grafana versions. Text inputs are universally supported and let users type the exact field name from their data source. Time remaining: - New 'Enable time remaining' toggle + field name in Field Mapping - Reads the last value from the configured field (expects minutes) - Displays as a styled card with clock icon and human-readable duration (e.g. '2h 15m', '45 min', '< 1 min') Auto-revert horizontal orientation: - When orientation is set to horizontal but the panel width is < 300px, automatically switches to vertical so the battery + side content still fit. The preference is stored, so it reverts back when the panel is resized larger. Icon: - Replaced generic Grafana scaffold logo with a battery SVG icon that shows in the visualisation picker and panel header. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 line
435 B
XML
1 line
435 B
XML
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#4CAF50" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="1" y="6" width="18" height="12" rx="2" ry="2"/><line x1="23" y1="10" x2="23" y2="14"/><rect x="3" y="8" width="6" height="8" rx="1" ry="1" fill="#4CAF50" stroke="none"/><rect x="10" y="8" width="6" height="8" rx="1" ry="1" fill="#4CAF50" stroke="none" opacity="0.4"/></svg> |