Skip to content

Deduplicate logical ports from composite footprint copper#2132

Merged
ShiboSoftwareDev merged 3 commits intomainfrom
dedupe-port-hints
Apr 14, 2026
Merged

Deduplicate logical ports from composite footprint copper#2132
ShiboSoftwareDev merged 3 commits intomainfrom
dedupe-port-hints

Conversation

@ShiboSoftwareDev
Copy link
Copy Markdown
Contributor

@ShiboSoftwareDev ShiboSoftwareDev commented Apr 14, 2026

Fixes composite footprints where multiple copper primitives share the same logical pin,
such as an SMT pad plus plated hole with the same portHints.

Previously, footprint port discovery returned one port per copper primitive, so repeated
pin1/pin2 hints could inflate the inferred pin count and create extra logical pins like
pin3 and pin4.

This adds a shared helper to normalize footprint portHints, merge aliases, and dedupe
ports by logical pin number for both string and JSX footprints.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 14, 2026

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

Project Deployment Actions Updated (UTC)
tscircuit-core-benchmarks Ready Ready Preview, Comment Apr 14, 2026 9:16pm

Request Review

@ShiboSoftwareDev ShiboSoftwareDev merged commit ecde664 into main Apr 14, 2026
10 checks passed
@ShiboSoftwareDev ShiboSoftwareDev deleted the dedupe-port-hints branch April 14, 2026 21:24
@tscircuitbot
Copy link
Copy Markdown
Contributor


Thank you for your contribution! 🎉

PR Rating: ⭐⭐⭐
Impact: Major

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


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.

3 participants