Skip to content

fix: highlight same-net traces on hover#189

Open
minyanyi wants to merge 2 commits into
tscircuit:mainfrom
minyanyi:fix-net-trace-hover-highlight
Open

fix: highlight same-net traces on hover#189
minyanyi wants to merge 2 commits into
tscircuit:mainfrom
minyanyi:fix-net-trace-hover-highlight

Conversation

@minyanyi
Copy link
Copy Markdown

/claim tscircuit/tscircuit#1130
/fixes tscircuit/tscircuit#1130

Summary

Adds same-net hover highlighting for schematic traces in @tscircuit/schematic-viewer.

  • Adds a focused useHighlightConnectedTracesOnHover hook.
  • Groups schematic traces through source trace connectivity keys, connected source nets, and connected source ports.
  • Applies hover metadata to both trace and trace-overlay SVG groups so every segment in the same net highlights together.
  • Uses CSS :has() for hover state, avoiding per-mousemove React state updates.
  • Adds unit coverage for same-net grouping and connected source-net fallback.

Test plan

  • bun test
  • bun run build
  • git diff --check

Note: bun run build still reports the existing BaseManualEditEvent unused-import warning in lib/types/edit-events.ts, unrelated to this change.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 11, 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 11, 2026 4:51pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change of color on hover for traces are missing

1 participant