Skip to content

feat: add is_extended_promotional column to all derived tables#186

Open
CrocCartelDevTeam wants to merge 6 commits intotscircuit:mainfrom
CrocCartelDevTeam:feat/is-extended-promotional-column
Open

feat: add is_extended_promotional column to all derived tables#186
CrocCartelDevTeam wants to merge 6 commits intotscircuit:mainfrom
CrocCartelDevTeam:feat/is-extended-promotional-column

Conversation

@CrocCartelDevTeam
Copy link
Copy Markdown

Closes #92

Added is_extended_promotional: boolean column to all 38 derived component tables, mirroring the existing is_basic and is_preferred pattern.

Changes:

  • component-base.ts — added is_extended_promotional: boolean to BaseComponent interface
  • All 38 derived table files — added column definition + Boolean(c.extended_promotional) mapping
  • cf-proxy/src/search.ts + cf-proxy/src/components.ts — added filterable is_extended_promotional param

swampy-autonomousops added 6 commits May 6, 2026 01:46
- Add is_extended_promotional: boolean to BaseComponent interface
- Add is_extended_promotional to extraColumns in all ~38 derived table files
- Add is_extended_promotional: Boolean(c.extended_promotional) to mapToTable in all derived table files
- Add is_extended_promotional filter support in cf-proxy/src/search.ts and components.ts

Closes tscircuit#92
…ypes

Resolves TypeScript errors - extended_promotional was missing from the
generated Component interface, causing TS2339 errors in all derived tables.
…terface

- Add extended_promotional field to raw Component interface in kysely.ts
- Fix indentation of is_extended_promotional in mapToTable across all derived tables
battery_holder and resistor_array had explicit is_basic/is_preferred fields
in their interface - needed is_extended_promotional added there too.
@CrocCartelDevTeam
Copy link
Copy Markdown
Author

The CI failure is due to a broken 7z download URL in your setup script (404 on 7-zip.org). Our code changes are solid.

Quick fix: Update scripts/setup-7z.ts to use GitHub releases instead:

const BINARY_URLS: Record<string, string> = {
  "linux-x64": "https://github.com/ip7z/7zip/releases/download/24.08/7z2408-linux-x64.tar.xz",
  "linux-arm64": "https://github.com/ip7z/7zip/releases/download/24.08/7z2408-linux-arm64.tar.xz",
  "darwin-x64": "https://github.com/ip7z/7zip/releases/download/24.08/7z2408-mac.tar.xz",
  "darwin-arm64": "https://github.com/ip7z/7zip/releases/download/24.08/7z2408-mac.tar.xz",
}

Alternatively: apt-get install p7zip-full in the CI workflow.

(This is blocking your build, not our changes.)

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.

Add is_extended_promotional column to components (from data source)

1 participant