feat(svg): partial connection indicator#62
Merged
Conversation
Introduces a third connection state for the SVG rendering path: - Full connection (green) — both cable ends resolve to a device - Partial connection (yellow + dot) — cable attached but far-end has no device - Unconnected/disabled — unchanged grey/red A yellow warning dot is injected into the top-right corner of each partially connected port via JS, remaining visible even when cable colour mode overrides the fill colour. Closes #61
peterbaumert
added a commit
that referenced
this pull request
Apr 10, 2026
Introduces a third connection state for the SVG rendering path: - Full connection (green) — both cable ends resolve to a device - Partial connection (yellow + dot) — cable attached but far-end has no device - Unconnected/disabled — unchanged grey/red A yellow warning dot is injected into the top-right corner of each partially connected port via JS, remaining visible even when cable colour mode overrides the fill colour. Closes #61
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #61
Adds a visual distinction in the SVG renderer between fully connected and partially connected ports (i.e. a cable is attached but the path does not resolve to a far-end device — e.g. switch → patch panel → open outlet).
Changes
New connection states (SVG only)
#198754#ffc107#6c757d#dc3545How it works
link_peersandconnected_endpointsattributes — no new ORM queries. A port is partially connected whenlink_peers.length > 0ANDconnected_endpoints.length == 0.bg-warning): applied in status-colour mode (cable_colors off), shows yellow.<circle>element is injected by JS into the top-right corner of the port<rect>. It is always visible — even when cable colour mode overrides the fill — so the partial state is never hidden.Files changed
templates/…/deviceview.htmlpartiallyConnectedtoportData; updatedapplyPortStatus()with new branch + dot injectiontemplates/…/ports.htmlstatic/…/css/device_view_svg.css.dv-port.bg-warningfill rule and.dv-partial-dotstyleNotes