Skip to content

fix: support JLCPCB shop parts by falling back to manufacturer name search - #352

Open
lucaferri-dev wants to merge 1 commit into
tscircuit:mainfrom
lucaferri-dev:fix-jlcpcb-shop-parts-import
Open

fix: support JLCPCB shop parts by falling back to manufacturer name search#352
lucaferri-dev wants to merge 1 commit into
tscircuit:mainfrom
lucaferri-dev:fix-jlcpcb-shop-parts-import

Conversation

@lucaferri-dev

Copy link
Copy Markdown

Summary

  • Fixes [C9900037709] Failed to import from JLCPCB #288 — JLCPCB shop parts (like C9900037709) that aren't in the EasyEDA/LCSC catalog can now be imported
  • When the initial EasyEDA search returns no results, falls back to the JLCPCB API to get the manufacturer part name (e.g. TXB0104), then retries the EasyEDA search with that name
  • Improved error message when a component truly can't be found

Test plan

  • New test: c9900037709-jlcpcb-shop-part.test.ts verifies fallback works for a JLCPCB-exclusive part
  • All 75 existing tests still pass

🤖 Generated with Claude Code

…earch

When a JLCPCB part number (e.g. C9900037709) isn't found in EasyEDA's LCSC
catalog, query the JLCPCB API to get the manufacturer part name and retry
the EasyEDA search with that name. Fixes tscircuit#288.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

[C9900037709] Failed to import from JLCPCB

1 participant