Rack: clicking a port on an unlinked faceplate opens the cutsheet #28

Merged
jared merged 1 commits from rack-unlinked-port-clicks into main 2026-11-10 23:54:53 -05:00
Owner

Why

Clicking a UNVR-Pro port on the rack page opened a page that said "No device with this name". The NVR is drawn from its Front drawing because UniFi doesn't report it, so it has no device page to open.

What changes

When a faceplate's rack item isn't linked to a live device, clicking one of its ports now opens:

  • the port's cable on the cutsheet, if a cable is documented on that port;
  • otherwise, the item itself on the cutsheet.

Ports on linked switches still open the switch's device page at that port.

Testing

  • 367 tests pass and ESLint reports 0 errors.
  • Playwright: clicking an NVR port opened /cutsheet#item-…, and clicking switch port 12 opened /device/24RJ45-POE#port-12.

🤖 Generated with Claude Code

## Why Clicking a UNVR-Pro port on the rack page opened a page that said "No device with this name". The NVR is drawn from its Front drawing because UniFi doesn't report it, so it has no device page to open. ## What changes When a faceplate's rack item isn't linked to a live device, clicking one of its ports now opens: - the port's cable on the cutsheet, if a cable is documented on that port; - otherwise, the item itself on the cutsheet. Ports on linked switches still open the switch's device page at that port. ## Testing - 367 tests pass and ESLint reports 0 errors. - Playwright: clicking an NVR port opened `/cutsheet#item-…`, and clicking switch port 12 opened `/device/24RJ45-POE#port-12`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
jared added 1 commit 2026-11-10 23:53:26 -05:00
Rack: clicking a port on an unlinked faceplate opens the cutsheet
Lint / JS (eslint) (push) Successful in 8s
Lint / Python (flake8) (push) Successful in 50s
Lint / Notify on failure (push) Skipped
Lint / Deploy (push) Skipped
Security / Python Security (bandit) (push) Successful in 1m8s
Lint / JS (eslint) (pull_request) Successful in 22s
Lint / Python (flake8) (pull_request) Successful in 1m49s
Lint / Notify on failure (pull_request) Skipped
Lint / Deploy (pull_request) Skipped
Security / Python Security (bandit) (pull_request) Successful in 1m12s
Test / Python Tests (pytest) (pull_request) Successful in 1m9s
Test / Python Tests (pytest) (push) Successful in 1m3s
5fdd317539
The NVR Pro is drawn by Front drawing because UniFi doesn't report it, so
it has no device page; clicking one of its ports went to /device/UNVR-Pro
and showed "No device with this name". Ports on a faceplate whose item
isn't linked to a live device now open the port's cable when one is
documented, and otherwise the item on the cutsheet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jared merged commit 6530433d9c into main 2026-11-10 23:54:53 -05:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/gandalf#28