Compare commits

...

6 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
88b53755ef [WIP] Investigating energy pie chart displaying 0 kWh total issue
Co-authored-by: MindFreeze <5219205+MindFreeze@users.noreply.github.com>
2025-11-24 10:31:07 +00:00
copilot-swe-agent[bot]
b090ba6e8e Refactor total calculation to avoid duplicate type assertions
Extracted the type cast to a variable for better readability and to avoid duplication.

Addresses code review feedback.

Co-authored-by: MindFreeze <5219205+MindFreeze@users.noreply.github.com>
2025-11-24 09:55:56 +00:00
copilot-swe-agent[bot]
60142cde59 Add JSDoc documentation for EnergyDeviceDataItem interface
Added detailed documentation explaining the purpose and structure of the interface, including the tuple value format used for chart data.

Addresses code review feedback.

Co-authored-by: MindFreeze <5219205+MindFreeze@users.noreply.github.com>
2025-11-24 09:54:34 +00:00
copilot-swe-agent[bot]
95691a859b Add proper type definition for energy device data items
Replaced `any` type with proper `EnergyDeviceDataItem` interface for better type safety while maintaining correct runtime behavior.

Addresses code review feedback.

Co-authored-by: MindFreeze <5219205+MindFreeze@users.noreply.github.com>
2025-11-24 09:53:06 +00:00
copilot-swe-agent[bot]
a2a5d68f3f Fix energy pie chart total calculation showing 0 instead of actual total
The issue was caused by incorrect type assertion when accessing array values.
Changed from `(d as PieDataItemOption).value![0]` to `(d as any).value[0]`
to properly access the array structure at runtime.

Also fixed tooltip formatter to check value[0] instead of value for decimal precision.

Fixes #27925

Co-authored-by: MindFreeze <5219205+MindFreeze@users.noreply.github.com>
2025-11-24 09:51:20 +00:00
copilot-swe-agent[bot]
5086d1ed1a Initial plan 2025-11-24 09:37:57 +00:00

Diff Content Not Available