TS

/attempt https://github.com/tscircuit/tscircuit/issues/1130

Summary

  • Added useHighlightConnectedTracesOnHover hook that highlights all connected traces in the same net when hovering over any trace
  • When hovering a trace, all traces sharing the same source_trace_id are highlighted together

Implementation

  • New hook listens for mouseover/mouseout events on trace elements
  • Finds connected traces via source_trace_id in CircuitJson
  • Applies highlight color (#ff6b6b) and increased stroke width (7px)
  • Handles edge cases: moving between connected traces, SVG changes

Test plan

  • Hover over a trace - all connected traces should highlight
  • Move mouse between connected traces - highlight should persist
  • Move mouse away - all traces should return to original color

Fixes tscircuit/tscircuit#1130

/claim https://github.com/tscircuit/tscircuit/issues/1130

Claim

Total prize pool $25
Total paid $0
Status Pending
Submitted January 16, 2026
Last updated January 16, 2026

Contributors

GR

Gregorius Bima Kharisma Wicaksana

@bimakw

100%

Sponsors

TS

tscircuit

@tscircuit

$25