Skip to content

feat(connector): resolve usb_c pinLabels deterministically (defaults + user overrides)#2092

Closed
MustafaMulla29 wants to merge 3 commits intomainfrom
usb/pinlabels
Closed

feat(connector): resolve usb_c pinLabels deterministically (defaults + user overrides)#2092
MustafaMulla29 wants to merge 3 commits intomainfrom
usb/pinlabels

Conversation

@MustafaMulla29
Copy link
Copy Markdown
Contributor

No description provided.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 2, 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 2, 2026 8:03am

Request Review

})
}

override _getPinCount(): number {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@seveibar is this needed? otherwise the default schematic for usb_c will not render pinLabels and ports in schematics

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Im not completely sure, you actually need to commit several usb c circuit json representations from the real world to this repo as examples so that we can test our handling i think

@MustafaMulla29 MustafaMulla29 requested review from seveibar and removed request for seveibar April 2, 2026 08:05
Copy link
Copy Markdown
Contributor

@seveibar seveibar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests are getting sloppy, you should pull in a real usb footprint.

a simpler approach is to modify/map the circuit json before its converted to a footprint elements etc

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