Skip to content

Add component search index service#2315

Merged
Mbeaulne merged 2 commits into
masterfrom
05-27-component-search-index-service
Jun 5, 2026
Merged

Add component search index service#2315
Mbeaulne merged 2 commits into
masterfrom
05-27-component-search-index-service

Conversation

@Mbeaulne

@Mbeaulne Mbeaulne commented May 27, 2026

Copy link
Copy Markdown
Collaborator

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

github-actions Bot commented May 27, 2026

Copy link
Copy Markdown

🎩 Preview

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

@Mbeaulne Mbeaulne force-pushed the 05-27-component-search-index-service branch 2 times, most recently from bfc7f76 to 1a766b2 Compare May 27, 2026 20:16
@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
@Mbeaulne Mbeaulne force-pushed the 05-27-component-search-index-service branch 3 times, most recently from 2c76487 to 5059b41 Compare June 3, 2026 13:42
@Mbeaulne Mbeaulne mentioned this pull request Jun 3, 2026
8 tasks
@Mbeaulne Mbeaulne force-pushed the 05-27-component-search-index-service branch from 5059b41 to 77f15d0 Compare June 3, 2026 15:13
Comment thread src/services/componentSearchIndex.ts Outdated

camielvs commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

You may want to consider if we need such detailed comments

Comment thread src/services/componentSearchIndex.ts Outdated
Comment thread src/services/componentSearchIndex.ts Outdated
@Mbeaulne Mbeaulne force-pushed the 05-27-component-search-index-service branch from d1f0f80 to 1b2dc48 Compare June 4, 2026 20:52
Comment thread src/services/componentSearchIndex.ts Fixed
@Mbeaulne Mbeaulne force-pushed the 05-27-component-search-index-service branch from 1b2dc48 to 21b5ff8 Compare June 4, 2026 21:03

Mbeaulne commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator Author

Merge activity

  • Jun 5, 2:37 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jun 5, 2:38 PM UTC: Graphite rebased this pull request as part of a merge.
  • Jun 5, 2:41 PM UTC: @Mbeaulne merged this pull request with Graphite.

Mbeaulne and others added 2 commits June 5, 2026 14:37
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@Mbeaulne Mbeaulne force-pushed the 05-27-component-search-index-service branch from 21b5ff8 to 4653a96 Compare June 5, 2026 14:37
@Mbeaulne Mbeaulne merged commit 23df6a7 into master Jun 5, 2026
17 checks passed
@Mbeaulne Mbeaulne deleted the 05-27-component-search-index-service branch June 5, 2026 14:41
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.

3 participants