Skip to content

feat: add is_extended_promotional field to component pipeline#347

Open
theherrovn-sys wants to merge 4 commits into
tscircuit:mainfrom
theherrovn-sys:main
Open

feat: add is_extended_promotional field to component pipeline#347
theherrovn-sys wants to merge 4 commits into
tscircuit:mainfrom
theherrovn-sys:main

Conversation

@theherrovn-sys
Copy link
Copy Markdown

Add is_extended_promotional filter to component parts search

Added new is_extended_promotional boolean field following the same pattern as the existing is_basic field. This touches the whole stack - updated types, DB schema, API endpoints, frontend UI, and the proxy layer. Should be straightforward since we're just copying the is_basic implementation. Ready for review.

Fixes #92

/claim #92

Adds is_extended_promotional boolean field to mark JLCPCB parts
that are temporarily 'basic' during promotional periods.

Changes span the full pipeline:
- Core types: BaseComponent, DerivedTableSpec, Kysely schema
- 18 derived component tables (resistor, capacitor, fpga, etc.)
- API routes: /components/list, /api/search
- CloudFlare proxy: search, render, handlers, db types
- Query param filtering: ?is_extended_promotional=true

Fixes tscircuit#92

/claim tscircuit#92
theherrovn-sys added 3 commits May 31, 2026 18:34
…z download URLs

- setupDerivedTables now only destroys db if caller provided it (not singleton)
- Updated 7z download URLs from 2408 to 2601 (2408 removed from 7-zip.org)
- Apply biome formatting
- Add test script to package.json targeting ./tests/ only
- Update CI workflow to use bun run test
- Create stub components, categories, v_components, components_fts tables
  in test preload so routes that depend on them work without full DB setup
- Seed minimal test data for search API integration tests
- DB singleton fix (prevent destruction in setupDerivedTables) verified working

Closes tscircuit#347
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add is_extended_promotional column to components (from data source)

1 participant