fix telemtrie na dahsbaordu (15min misto 1h)
Some checks failed
deploy / deploy (push) Failing after 1m42s
test / smoke-test (push) Successful in 2s

This commit is contained in:
Dusan Vojacek
2026-04-10 20:48:41 +02:00
parent 920d9ff40c
commit eb8dd0368f
11 changed files with 131 additions and 23 deletions

View File

@@ -35,7 +35,9 @@ const MemoRegimeBar = memo(RegimeBar, (prev, next) =>
)
const MemoSocTuvChart = memo(SocTuvChart, (prev, next) =>
prev.slots === next.slots && prev.nowIndex === next.nowIndex,
prev.slots === next.slots &&
prev.nowIndex === next.nowIndex &&
prev.liveBatSoc === next.liveBatSoc,
)
function fmtKw2(w: number | null | undefined): string {
@@ -324,7 +326,11 @@ export function Dashboard() {
chartArea={chartArea}
/>
<div className="border-t border-slate-800 px-2 py-2">
<MemoSocTuvChart slots={data.slots} nowIndex={data.nowIndex} />
<MemoSocTuvChart
slots={data.slots}
nowIndex={data.nowIndex}
liveBatSoc={data.liveMetrics?.bat_soc ?? null}
/>
</div>
</div>
)}