From 99721ff184831dfdfb235b6eb1b0d0d847863367 Mon Sep 17 00:00:00 2001 From: Dusan Vojacek Date: Fri, 3 Apr 2026 22:02:58 +0200 Subject: [PATCH] Pridani popisku onhover soc a fve v grafu planovani --- frontend/src/pages/Planning.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/pages/Planning.tsx b/frontend/src/pages/Planning.tsx index 070758a..d9243a0 100644 --- a/frontend/src/pages/Planning.tsx +++ b/frontend/src/pages/Planning.tsx @@ -387,6 +387,9 @@ function PlanTooltip({ const buy = i.effective_buy_price const sell = i.effective_sell_price const pred = isPredictedPriceSlot(i, nowMs) + const fveStr = formatPlanPowerW(p.pv_a_w) + const fveDisplay = fveStr === '—' ? '—' : fveStr.includes('kW') ? fveStr : `${fveStr} W` + const soc = p.battery_soc_target_pct return (
{formatLocal(i.interval_start)}
@@ -398,6 +401,8 @@ function PlanTooltip({ Cena nákup: {buy != null ? `${buy.toFixed(3)} Kč/kWh` : '—'} · prodej:{' '} {sell != null ? `${sell.toFixed(3)} Kč/kWh` : '—'}
+
FVE (A / předpověď): {fveDisplay}
+
SoC cíl: {soc != null && !Number.isNaN(Number(soc)) ? `${Number(soc).toFixed(1)} %` : '—'}
Baterie: {i.battery_setpoint_w ?? '—'} W
Síť: {i.grid_setpoint_w ?? '—'} W
TČ: {i.heat_pump_enabled ? 'zapnuto' : 'vypnuto'}