Skip to content

Add extended promotional component filter#328

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

Add extended promotional component filter#328
NguyenTienDat-GTR wants to merge 1 commit into
tscircuit:mainfrom
NguyenTienDat-GTR:bounty/issue-92-extended-promotional

Conversation

@NguyenTienDat-GTR
Copy link
Copy Markdown

Closes #92
/claim #92

Summary

  • adds an is_extended_promotional response field and filter to /api/search and /components/list
  • derives the flag from existing source data as preferred = true and basic = false
  • carries the flag through the Cloudflare D1 search/component routes and rebuild scripts with indexes

Validation

  • git diff --check
  • npm.cmd exec --yes @biomejs/biome@1.9.4 -- check ...
  • npm.cmd exec --yes bun -- run tsc --noEmit
  • npm.cmd exec --yes bun -- x tsc --noEmit in cf-proxy
  • npm.cmd exec --yes bun -- test tests/lib/is-extended-promotional.test.ts

Route tests were also attempted with npm.cmd exec --yes bun -- test --jobs 1 tests/routes/components/list.test.ts tests/routes/api/search.test.ts, but the current local test harness returns driver has already been destroyed before route assertions run.

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