Skip to content

fix: highlight same-net traces on hover#218

Open
kitwongpixel wants to merge 1 commit into
tscircuit:mainfrom
kitwongpixel:codex/trace-hover-net-highlight
Open

fix: highlight same-net traces on hover#218
kitwongpixel wants to merge 1 commit into
tscircuit:mainfrom
kitwongpixel:codex/trace-hover-net-highlight

Conversation

@kitwongpixel
Copy link
Copy Markdown

@kitwongpixel kitwongpixel commented May 30, 2026

Fixes #1130

Summary

  • Adds a useTraceHoverHighlight hook in schematic-viewer
  • Highlights all schematic trace groups with the same connectivity key when one trace is hovered
  • Adds a dedicated fixture for manual verification: example21-connected-trace-hover.fixture.tsx

Verification

  • git diff --check
  • npx biome check lib/components/SchematicViewer.tsx lib/hooks/useTraceHoverHighlight.ts examples/example21-connected-trace-hover.fixture.tsx
  • npx -p typescript@5.9.2 tsc --noEmit -p tsconfig.json

Demo Video

Notes

  • This keeps the fix localized to the viewer layer and does not change the SVG generation pipeline.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
schematic-viewer Ready Ready Preview, Comment May 30, 2026 5:32am

Request Review

Copy link
Copy Markdown
Author

Demo video for the fix: https://github.com/kitwongpixel/schematic-viewer/releases/tag/demo-trace-hover-1130

The video is a browser recording of the fixture showing same-net trace hover highlighting.

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.

2 participants