Format project device power values on project page

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Julian Appel 2026-09-28 22:46:32 +02:00
parent 68d986ff80
commit cf022b250f

View file

@ -73,6 +73,7 @@ import {
updateProjectSettings, updateProjectSettings,
} from "../../../frontend/utils/api"; } from "../../../frontend/utils/api";
import { createClientId } from "../../../frontend/utils/client-id"; import { createClientId } from "../../../frontend/utils/client-id";
import { formatValue } from "../../../frontend/utils/circuit-grid-model";
import { import {
buildFeederCircuitSnapshot, buildFeederCircuitSnapshot,
getDefaultFeederCircuitSection, getDefaultFeederCircuitSection,
@ -1294,10 +1295,11 @@ export default function ProjectDetailPage() {
) : null} ) : null}
</td> </td>
<td> <td>
{device.totalPower} kW {formatValue(device.totalPower, "rowTotalPower")} kW
<div className="small text-secondary"> <div className="small text-secondary">
{device.quantity} × {device.powerPerUnit} kW · GZF{" "} {formatValue(device.quantity, "quantity")} ×{" "}
{device.simultaneityFactor} {formatValue(device.powerPerUnit, "powerPerUnit")} kW · GZF{" "}
{formatValue(device.simultaneityFactor, "simultaneityFactor")}
</div> </div>
</td> </td>
<td>{device.costGroup ?? "-"}</td> <td>{device.costGroup ?? "-"}</td>