Device page: hovering a drawn NIC highlights its interface row, and back #64

Merged
jared merged 1 commits from zima-port-hover into main 2026-11-25 14:08:05 -05:00
Owner

This follows #63. A drawn NIC on a device page now highlights its interface row in the table, and the table highlights the drawn NIC.

What changes

  • Drawn ports: on the ZimaBoard drawings, the two RJ45 jacks (enp2s0, enp3s0) and the ConnectX-3 SFP+ cage (enp1s0) are now ports. Each one shows a tooltip with its interface name and link state.
  • Hover a port (or focus it with Tab) to ring it in cyan and highlight its interface row.
  • Hover a row to ring its port in the drawing.
  • Click a port, or press Enter on it, to open that interface's row and bring it into view. Any filter that would hide the row is cleared first.
  • Other pages: the topology and rack pages draw the same ZimaBoard, so they get the per-port tooltips. The highlight itself only applies on the device page.
  • Unchanged: switch pages keep their own port inspector.

Verification

  • Ran the app locally against a copy of prod's data, on monitor-01 at desktop and phone (390px) sizes:
    • hovering enp3s0 highlights only the enp3s0 row
    • hovering the enp1s0 row rings only the SFP+ cage
    • clicking enp2s0 opens its row and moves focus to it
    • no horizontal scroll and no page errors
  • /topology still draws all six ZimaBoard ports.
  • 655 tests pass and eslint is clean on the changed files. No em or en dashes.

hover

🤖 Generated with Claude Code

This follows #63. A drawn NIC on a device page now highlights its interface row in the table, and the table highlights the drawn NIC. ## What changes - **Drawn ports:** on the ZimaBoard drawings, the two RJ45 jacks (enp2s0, enp3s0) and the ConnectX-3 SFP+ cage (enp1s0) are now ports. Each one shows a tooltip with its interface name and link state. - **Hover a port** (or focus it with Tab) to ring it in cyan and highlight its interface row. - **Hover a row** to ring its port in the drawing. - **Click a port**, or press Enter on it, to open that interface's row and bring it into view. Any filter that would hide the row is cleared first. - **Other pages:** the topology and rack pages draw the same ZimaBoard, so they get the per-port tooltips. The highlight itself only applies on the device page. - **Unchanged:** switch pages keep their own port inspector. ## Verification - Ran the app locally against a copy of prod's data, on monitor-01 at desktop and phone (390px) sizes: - hovering enp3s0 highlights only the enp3s0 row - hovering the enp1s0 row rings only the SFP+ cage - clicking enp2s0 opens its row and moves focus to it - no horizontal scroll and no page errors - /topology still draws all six ZimaBoard ports. - 655 tests pass and eslint is clean on the changed files. No em or en dashes. ![hover](https://code.lotusguild.org/LotusGuild/gandalf/raw/branch/pr-64-screenshots/hover-light.png) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
jared added 1 commit 2026-11-25 14:06:25 -05:00
Device page: hovering a drawn NIC highlights its interface row, and back
Lint / JS (eslint) (push) Successful in 16s
Lint / Python (flake8) (push) Successful in 1m38s
Lint / Notify on failure (push) Skipped
Lint / Deploy (push) Skipped
Test / Python Tests (pytest) (push) Successful in 1m40s
Lint / JS (eslint) (pull_request) Successful in 28s
Lint / Python (flake8) (pull_request) Successful in 1m21s
Lint / Notify on failure (pull_request) Skipped
Lint / Deploy (pull_request) Skipped
Security / Python Security (bandit) (push) Successful in 1m43s
Security / Python Security (bandit) (pull_request) Successful in 1m37s
Test / Python Tests (pytest) (pull_request) Successful in 1m38s
0fa9229c06
The ZimaBoard drawing's RJ45 jacks and the ConnectX-3 SFP+ cage are now
ports tied to their interface: hover or focus one to ring it and highlight
its table row (and the other way round); click or Enter opens that row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jared scheduled this pull request to auto merge when all checks succeed 2026-11-25 14:07:56 -05:00
jared merged commit 16b8f763c4 into main 2026-11-25 14:08:05 -05:00
jared deleted branch zima-port-hover 2026-11-25 14:08:11 -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#64