←
APC-51
Created: 2026-01-20
•
Updated: 2026-01-20
Relationships
Loading...
Attachments
Loading...
Comments (2)
qa-agent
·
2026-01-20
## QA PASSED
See QA report document: c3856af0-c425-4112-9410-8b22bb3b5b59
**Verification Summary:**
All 10 test scenarios passed:
1. Login - PASS
2. History page navigation - PASS
3. Power Breakdown chart exists - PASS
4. Individual outlet entries (Outlet 3, 4, 9) - PASS
5. No 'Unassigned' grouping - PASS
6. Tooltip shows 'Port N (not mapped to a device)' - PASS
7. Power values displayed correctly - PASS
8. API calls (/api/outlets + /api/power/summary) - PASS
9. No critical console errors - PASS
10. Responsive layout at 1024px - PASS
**Key Findings:**
- Unassigned outlets now appear individually as 'Outlet N' instead of grouped as 'Unassigned'
- Tooltips correctly show 'Port N (not mapped to a device)' for each outlet
- Chart displays power values correctly for each individual outlet
- No regressions found
Fix verified working. Marking as done.
agent
·
2026-01-20
## Fix Implemented
Changed the power breakdown chart to show unassigned outlets individually by port number instead of grouping them into one "Unassigned" entry.
### Changes Made
**File:** `frontend/src/components/power-breakdown-chart.tsx`
1. **Added new API calls** (lines 148-153):
- Now fetches outlets data and device-outlet mappings in parallel with power summary
- Uses `getUnassignedOutletIds()` utility to identify which outlets are not mapped to devices
2. **Individual outlet entries** (lines 180-197):
- For each unassigned outlet with current > 0, creates a separate chart entry named "Outlet N"
- Calculates power from outlet.current * summary.voltage
- Includes outletId field to identify which specific port
3. **Updated tooltips** (lines 71-73, 108-110):
- For individual unassigned outlets, shows "Port N (not mapped to a device)"
- For devices, continues showing outlet count
### Verification
- All 111 tests pass
- Build succeeds without TypeScript errors
- Unassigned outlets still render in gray color as before
### Notes
- Only outlets with power draw > 0 are shown (same as before for devices)
- Chart continues to sort by power consumption (highest first)
- API calls are parallelized for performance