Skip to content

Emit draw.io tooltips with tri-state status - #47

Merged
jacobyoby merged 1 commit into
mainfrom
fix/issue-10-drawio-tooltips
Sep 9, 2026
Merged

jacobyoby merged 1 commit into
mainfrom
fix/issue-10-drawio-tooltips

Conversation

@jacobyoby

Copy link
Copy Markdown
Owner

The exporter computed tooltip text but discarded it, and null reachability was labeled Unreachable while retaining role colors that contradicted the README's gray unknown state.

Nodes now use draw.io's supported UserObject metadata structure with stable IDs, labels, tooltips, and individual device properties around the vertex cell. Reachable, Unreachable, and Unknown statuses consistently control tooltip text and green, red, or gray styling. Edge source and target references continue to point at the node object IDs.

The regression test parses emitted XML, verifies all three states, covers untested routers and switches, checks tooltip contents and gray styling, and proves edge references resolve to UserObject IDs. The older unique-ID test now includes all ID-bearing XML elements.

Format reference: https://www.drawio.com/docs/reference/diagram-generation/style-reference/

Validation: git diff --check passed. PowerShell and draw.io Desktop are unavailable on the local host; GitHub Actions will provide three-OS Pester and analyzer coverage. Interactive hover verification in draw.io remains required before merge and is not claimed here.

Closes #10

@jacobyoby
jacobyoby merged commit 330dd7e into main Sep 9, 2026
4 checks passed
@jacobyoby
jacobyoby deleted the fix/issue-10-drawio-tooltips branch September 9, 2026 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Emit draw.io tooltips and preserve tri-state reachability in text and styling

1 participant