Make the front panel on the device page match the real hardware. This covers one model so it can be checked against the physical unit.
Device:RPDU (UniFi model code USPPDUP, reported by UniFi as type usw with 1 port)
Current state
SWITCH_LAYOUTS in static/port-inspector.js:
'USPPDUP':{rows:[[1]]}
This draws a single network port, and README lists it as "Custom/other, single-port fallback". What matters on a PDU is its outlets, and none of them appear on the panel.
What the panel should show
Every outlet in its physical position, with its name, on/off state and power draw.
Which outlets have auto power-cycle enabled, and when one last fired. This ties into the modem power-cycle detection already on the dashboard.
The single network port, shown as management rather than as the main feature.
Things to handle
An outlet can read 0 W while its device is plugged in and working, as the modem's outlet does. Don't draw 0 W as "off" or "nothing connected", because on/off state and metered power are separate facts.
A rendering path for outlets is needed, since renderChassis only draws network ports. Outlet data is already collected through outlet_table.
Verify against the unit or datasheet
Outlet count, numbering and physical arrangement, including any groups with different connector types.
Which values UniFi reports per outlet and which only for the whole unit.
Acceptance criteria
Outlet layout and numbering match a reference photo of the unit
Each outlet shows name, state and power draw, and 0 W isn't shown as off
Auto power-cycle outlets are marked
Outlet detail is available on click and by keyboard
This view is read-only, with no outlet control added
README's description is corrected
No sideways page scroll at phone width
Reference photo or datasheet link is recorded on this issue
Make the front panel on the device page match the real hardware. This covers one model so it can be checked against the physical unit.
**Device:** `RPDU` (UniFi model code `USPPDUP`, reported by UniFi as type `usw` with 1 port)
## Current state
`SWITCH_LAYOUTS` in `static/port-inspector.js`:
```js
'USPPDUP': { rows: [[1]] }
```
This draws a single network port, and README lists it as "Custom/other, single-port fallback". What matters on a PDU is its outlets, and none of them appear on the panel.
## What the panel should show
- Every outlet in its physical position, with its name, on/off state and power draw.
- Which outlets have auto power-cycle enabled, and when one last fired. This ties into the modem power-cycle detection already on the dashboard.
- The single network port, shown as management rather than as the main feature.
## Things to handle
- An outlet can read 0 W while its device is plugged in and working, as the modem's outlet does. Don't draw 0 W as "off" or "nothing connected", because on/off state and metered power are separate facts.
- A rendering path for outlets is needed, since `renderChassis` only draws network ports. Outlet data is already collected through `outlet_table`.
## Verify against the unit or datasheet
- Outlet count, numbering and physical arrangement, including any groups with different connector types.
- Which values UniFi reports per outlet and which only for the whole unit.
## Acceptance criteria
- [ ] Outlet layout and numbering match a reference photo of the unit
- [ ] Each outlet shows name, state and power draw, and 0 W isn't shown as off
- [ ] Auto power-cycle outlets are marked
- [ ] Outlet detail is available on click and by keyboard
- [ ] This view is read-only, with no outlet control added
- [ ] README's description is corrected
- [ ] No sideways page scroll at phone width
- [ ] Reference photo or datasheet link is recorded on this issue
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Make the front panel on the device page match the real hardware. This covers one model so it can be checked against the physical unit.
Device:
RPDU(UniFi model codeUSPPDUP, reported by UniFi as typeuswwith 1 port)Current state
SWITCH_LAYOUTSinstatic/port-inspector.js:This draws a single network port, and README lists it as "Custom/other, single-port fallback". What matters on a PDU is its outlets, and none of them appear on the panel.
What the panel should show
Things to handle
renderChassisonly draws network ports. Outlet data is already collected throughoutlet_table.Verify against the unit or datasheet
Acceptance criteria