Skip to content

Add component search index service#2315

Open
Mbeaulne wants to merge 1 commit into
masterfrom
05-27-component-search-index-service
Open

Add component search index service#2315
Mbeaulne wants to merge 1 commit into
masterfrom
05-27-component-search-index-service

Conversation

@Mbeaulne
Copy link
Copy Markdown
Collaborator

@Mbeaulne Mbeaulne commented May 27, 2026

Tophatting

No manual tophatting required. This PR only adds the local search index service and unit tests.

What changed

Adds the local search index used by the new Components V2 page.

This is the plain text search layer. It turns hydrated component references into searchable entries and ranks matches by useful fields like name, description, inputs, outputs, and container command text.

Why

The UI needs fast search before any AI reranking happens. This keeps normal search instant and predictable.

Test plan

  • Run pnpm exec vitest run src/services/componentSearchIndex.test.ts
  • Run pnpm run typecheck --pretty false
  • Sanity check that search ranks name matches above weaker matches like command-only matches

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 27, 2026

🎩 Preview

A preview build has been created at: 05-27-component-search-index-service/d2b079d

@Mbeaulne Mbeaulne force-pushed the 05-27-component-search-index-service branch from 1a766b2 to d2b079d Compare May 27, 2026 23:18
@Mbeaulne Mbeaulne marked this pull request as ready for review May 27, 2026 23:28
@Mbeaulne Mbeaulne requested a review from a team as a code owner May 27, 2026 23:28
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.

1 participant