Skip to content

Add extended promotional component filter#323

Open
hanjav wants to merge 1 commit into
tscircuit:mainfrom
hanjav:hanjav-is-extended-promotional
Open

Add extended promotional component filter#323
hanjav wants to merge 1 commit into
tscircuit:mainfrom
hanjav:hanjav-is-extended-promotional

Conversation

@hanjav
Copy link
Copy Markdown

@hanjav hanjav commented May 20, 2026

/claim #92

Summary

  • Add is_extended_promotional as a response field derived from preferred && !basic
  • Add is_extended_promotional=true filtering to /api/search, /components/list, and the Cloudflare proxy search path
  • Add the filter control to the rendered components list UI
  • Keep the shared Bun test DB connection alive when derived tables are prepared in test preload
  • Cover the new field/filter in route tests
  • Update the 7-Zip setup URLs to the current upstream release so the database setup job can download 7zz

Testing

  • .\node_modules\.bin\biome.cmd check routes\components\list.tsx routes\api\search.tsx cf-proxy\src\search.ts cf-proxy\src\components.ts cf-proxy\src\index.ts cf-proxy\src\render.ts tests\routes\components\list.test.ts tests\routes\api\search.test.ts tests\preload.ts
  • .\node_modules\.bin\biome.cmd check --write scripts\setup-7z.ts
  • npx.cmd --yes -p typescript@~5.6.2 tsc --noEmit
  • npx.cmd --yes bun test tests\routes\components\list.test.ts tests\routes\api\search.test.ts

@hanjav hanjav force-pushed the hanjav-is-extended-promotional branch from 4a9445a to 3aaa3a1 Compare May 20, 2026 09:15
@hanjav
Copy link
Copy Markdown
Author

hanjav commented May 20, 2026

Quick CI note: the cancelled Bun Test run looks like a workflow timeout during DB setup rather than a test failure. The run successfully downloaded/extracted the DB cache and completed several setup-db-optimizations steps before GitHub cancelled it at the 20-minute job timeout. I verified this PR locally with: format check on the changed files, TypeScript type-check, and the targeted Bun route tests for components/list + api/search (11 passing).

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