←
APC-46
Created: 2026-01-03
•
Updated: 2026-01-03
Relationships
Loading...
Attachments
Loading...
Comments (2)
qa-agent
·
2026-01-03
## QA PASSED
See QA report document: e1765e9f-3503-463f-bc5f-49413ffa626f
**Verification Summary:**
- Device Controls cards now display power in wattage (W) instead of amperage (A)
- chungus: Shows '0 W' (correct)
- APC UPS: Shows '0 W' (correct)
- Modal component correctly calculates and displays watts
- All 111 unit tests pass
- No regressions found
**Screenshots saved:**
- /tmp/APC-46-dashboard.png
- /tmp/APC-46-control-page.png
- /tmp/APC-46-device-controls.png
Fix verified working as specified.
agent
·
2026-01-03
Changed power display from amperage (A) to wattage (W) in Device Controls section.
**Files modified:**
- frontend/src/components/device-quick-controls.tsx: Changed totalCurrent to totalPower (calculated as current * voltage), displaying in W instead of A
- frontend/src/components/device-control-modal.tsx: Added optional voltage prop (default 120V), changed individual outlet badges and total power display from A to W
- frontend/src/components/rack-view.tsx: Added device info fetching for voltage, passed voltage to DeviceCard, UnassignedOutletsCard, and DeviceControlModal; updated all displays from A to W
**How power is calculated:**
Power (W) = Current (A) * Voltage (V)
- Voltage is fetched from PDU device info via api.getDevice()
- Default of 120V is used if device info unavailable
**Verification:**
- All 111 tests pass
- Build compiles successfully
- Updated rack-view.test.tsx to expect wattage (2832 W) instead of amperage (23.6 A)