Skip to content

Preserve literal silkscreen labels from footprinter strings - #2980

Merged
seveibar merged 9 commits into
mainfrom
agent/footprinter-silkscreen-title
Aug 3, 2026
Merged

Preserve literal silkscreen labels from footprinter strings#2980
seveibar merged 9 commits into
mainfrom
agent/footprinter-silkscreen-title

Conversation

@seveibar

@seveibar seveibar commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

What changed

Preserve literal pcb_silkscreen_text.text values generated by the explicit silkscreenlabel(...) footprinter option when importing a footprinter result into core. The importer resolves the reference placeholders {REF}, {NAME}, and {REFERENCE} to the component name, while custom text such as XIAO RP2040 remains unchanged. Other imported footprint text keeps the existing component-name fallback.

This lets footprinter strings provide a module title while retaining the normal component-name behavior for reference placeholders.

Validation

  • bun test tests/utils/createComponentsFromCircuitJson/footprinter-silkscreen-label.test.tsx
  • bun run build
  • bunx tsc --noEmit

@vercel

vercel Bot commented Aug 2, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
tscircuit-core-benchmarks Ready Ready Preview Aug 3, 2026 2:07am

Request Review

@seveibar
seveibar marked this pull request as ready for review August 3, 2026 02:10
@seveibar
seveibar merged commit a362822 into main Aug 3, 2026
12 checks passed
@seveibar
seveibar deleted the agent/footprinter-silkscreen-title branch August 3, 2026 02:15
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.

1 participant