feat: add is_extended_promotional field to component pipeline#347
Open
theherrovn-sys wants to merge 4 commits into
Open
feat: add is_extended_promotional field to component pipeline#347theherrovn-sys wants to merge 4 commits into
theherrovn-sys wants to merge 4 commits into
Conversation
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
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
is_extended_promotionalfilter to component parts searchAdded new
is_extended_promotionalboolean field following the same pattern as the existingis_basicfield. 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 theis_basicimplementation. Ready for review.Fixes #92
/claim #92