Skip to content

Fix source‑subcircuit imports by preserving connectivity and props#26

Open
mohan-bee wants to merge 6 commits intotscircuit:mainfrom
mohan-bee:fix-source-sub
Open

Fix source‑subcircuit imports by preserving connectivity and props#26
mohan-bee wants to merge 6 commits intotscircuit:mainfrom
mohan-bee:fix-source-sub

Conversation

@mohan-bee
Copy link
Copy Markdown

@mohan-bee mohan-bee commented Apr 8, 2026

Motivation:

users importing source‑based exports were hitting incorrect or ambiguous connectivity, making the resulting component unusable on boards.

Proof:

Screen.Recording.2026-04-08.at.12.16.34.PM.mov

Reproduction in circuit-json-to-tscircuit:

Screen.Recording.2026-04-08.at.11.26.03.AM.mov

The fix changes the import path so full source-based Circuit JSON is rebuilt as a board-style source design instead of a flat footprint blob

@mohan-bee mohan-bee marked this pull request as draft April 8, 2026 09:12
@mohan-bee
Copy link
Copy Markdown
Author

linked circuit-json-to-tscircuit locally
after fix :

Screen.Recording.2026-04-08.at.3.19.44.PM.mov

@mohan-bee mohan-bee marked this pull request as ready for review April 8, 2026 10:07
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 function you modified is for creating a component, if we merged this we would break stuff everywhere.

Importing a board as circuit json uses a different flow generally, corcuit json can be dorectly provided to a board

@mohan-bee
Copy link
Copy Markdown
Author

Can you give me some idea of how the flow needs to be !

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