Skip to content

feat: schematic_disabled metadata flag and port schematic fix#2072

Closed
mohan-bee wants to merge 4 commits intotscircuit:mainfrom
mohan-bee:meta
Closed

feat: schematic_disabled metadata flag and port schematic fix#2072
mohan-bee wants to merge 4 commits intotscircuit:mainfrom
mohan-bee:meta

Conversation

@mohan-bee
Copy link

@mohan-bee mohan-bee commented Mar 24, 2026

fixes #1837

Added schematic_disabled flag to source_project_metadata also and detects panels automatically.
Also added memoization to board lookups, resolving bottlenecks in multi-board panels.

Updated the snapshots to fully reflect the empty schematic state.

@vercel
Copy link

vercel bot commented Mar 24, 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 Mar 24, 2026 10:44am

Request Review

Comment on lines +215 to +222
} as any)
} else {
this.db.source_project_metadata.update(
(existing as any).source_project_metadata_id,
{
schematic_disabled: this.schematicDisabled,
} as any,
)
Copy link
Member

Choose a reason for hiding this comment

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

This is incorrect, you need to add support for the schematic_disabled in circuit-json first

Copy link
Author

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

ok letme add the schematic_disabled support in the circuit-json also !

Copy link
Author

Choose a reason for hiding this comment

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

image

in order to test this file I don't find any tests there can I create one ! or stick to default ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes you can create test if there isn't one

@mohan-bee mohan-bee requested a review from imrishabh18 March 24, 2026 11:20
@mohan-bee
Copy link
Author

mohan-bee commented Mar 24, 2026

tscircuit/circuit-json#523

I have added the support here !

@mohan-bee
Copy link
Author

@imrishabh18 after the PR merge I will remove the 'as any' casts

@seveibar
Copy link
Contributor

What's the point of this pr? How does it help users?

the entire premise for this to be used for panel detection is a hack

@seveibar seveibar closed this Mar 24, 2026
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.

we could add something to source_board or source_project_metadata

4 participants