Skip to content

feat(board): support explicit jlcpcbStackup construction selection (#4890) - #4892

Open
Brayaniglesias08 wants to merge 1 commit into
tscircuit:mainfrom
Brayaniglesias08:fix/issue-4890-jlc-stackup-construction
Open

Brayaniglesias08 wants to merge 1 commit into
tscircuit:mainfrom
Brayaniglesias08:fix/issue-4890-jlc-stackup-construction

Conversation

@Brayaniglesias08

Copy link
Copy Markdown

Summary

Allows <board /> to explicitly select a named JLCPCB physical stackup construction via jlcpcbStackup (e.g. jlcpcbStackup="JLC04101H-3313") when multiple JLCPCB constructions share the same (num_layers, thickness, material) combination (such as 4-layer 1.0 mm FR-4: JLC04101H-1080, JLC04101H-2116, JLC04101H-3313, and JLC04101H-7628).

  • Extends Board props and JSX TscircuitElements["board"] with optional jlcpcbStackup?: string.
  • Resolves the named construction from jlcStackups in Board_doInitialPcbStackupRender, verifying that its num_layers, thickness, and material match the board.
  • Preserves existing default getJlcStackup(...) resolution when jlcpcbStackup is omitted (so existing 4-layer 1.6 mm and 8-layer 1.4 mm fabricatorPreset="jlcpcb_standard" boards continue to work without regression) and keeps imported pcb_stackup precedence unchanged.
  • Adds single-test-per-file unit coverage (board-stackup-preset5..8.test.tsx and board-stackup-unsupported6.test.tsx) for all four 4-layer 1.0 mm FR-4 constructions and mismatched stackup rejection.

Closes #4890

@vercel

vercel Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
tscircuit-core-benchmarks Ready Ready Preview Oct 24, 2026 5:18pm UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview — c77b8f76 Deployed Oct 24, 2026 by vercel[bot]
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.

fabricatorPreset picks the first JLC stackup when several constructions match (4-layer 1.0 mm: 1080/2116/3313/7628)

1 participant