Skip to content

Expose extended promotional component filter#327

Open
absalonCRC wants to merge 1 commit into
tscircuit:mainfrom
absalonCRC:bounty/extended-promotional-92
Open

Expose extended promotional component filter#327
absalonCRC wants to merge 1 commit into
tscircuit:mainfrom
absalonCRC:bounty/extended-promotional-92

Conversation

@absalonCRC
Copy link
Copy Markdown

@absalonCRC absalonCRC commented May 20, 2026

Summary

  • derive and expose is_extended_promotional from existing component flags (preferred && !basic) in /api/search and /components/list responses
  • add is_extended_promotional=true filtering to the legacy routes and Cloudflare/D1 search paths
  • add an Extended Promotional checkbox to the components list UI and render coverage for the Cloudflare table path
  • fixes /components/list selecting preferred before mapping is_preferred
  • updates the setup 7-Zip download URLs from removed 7z2408 archives to current official 7z2600 archives
  • switches PR tests to a small seeded SQLite fixture so CI does not rebuild/download the full production catalog
  • resets the DB singleton after destroy() so setup code cannot leave later route tests with a dead Kysely client

Verification

  • bun test
  • bunx tsc --noEmit
  • bunx biome format .
  • cd cf-proxy && bunx tsc --noEmit
  • cd cf-proxy && bunx biome format .
  • bun run scripts/setup-7z.ts
  • cd cf-proxy && bun test test/render.test.ts

/claim #92

Payment fallback if needed: PayPal cultofrozen@gmail.com

@absalonCRC absalonCRC force-pushed the bounty/extended-promotional-92 branch 4 times, most recently from 51b1be3 to 58b6e5f Compare May 20, 2026 15:39
@absalonCRC absalonCRC force-pushed the bounty/extended-promotional-92 branch from 58b6e5f to 8beec40 Compare May 20, 2026 15:40
@absalonCRC
Copy link
Copy Markdown
Author

Status update for review:

  • Scope matches Add is_extended_promotional column to components (from data source) #92: exposes and filters is_extended_promotional across /components/list, /api/search, and the Cloudflare/D1 search paths.
  • Derivation is intentionally narrow: preferred && !basic, using the existing JLC source flags.
  • PR includes route/UI coverage plus helper coverage.
  • Current checks are green: Bun Test, Format Check, and Type Check.

The PR body already includes /claim #92 for the bounty flow.

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.

1 participant