Skip to content

Add BYOK component search settings hook#2316

Draft
Mbeaulne wants to merge 1 commit into
05-27-component-search-index-servicefrom
05-27-agent-settings-ai-rerank-service
Draft

Add BYOK component search settings hook#2316
Mbeaulne wants to merge 1 commit into
05-27-component-search-index-servicefrom
05-27-agent-settings-ai-rerank-service

Conversation

@Mbeaulne
Copy link
Copy Markdown
Collaborator

@Mbeaulne Mbeaulne commented May 27, 2026

Tophatting

No manual tophatting required. This PR only adds the settings storage hook and unit tests.

What changed

Adds a small settings hook for Components V2 AI search configuration.

The hook stores these values in browser localStorage:

  • API base URL
  • API key
  • model id

It also handles old saved config that used thinkingModel.

Why

AI search uses a bring-your-own-key setup. This PR only adds the storage layer; it does not add UI or call an AI provider yet.

Test plan

  • Run pnpm exec vitest run src/hooks/useComponentSearchSettings.test.ts
  • Run pnpm run typecheck --pretty false
  • Confirm empty settings report as not configured
  • Confirm saved settings load back from localStorage

Copy link
Copy Markdown
Collaborator Author

Mbeaulne commented May 27, 2026

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 27, 2026

🎩 Preview

A preview build has been created at: 05-27-agent-settings-ai-rerank-service/3125081

@Mbeaulne Mbeaulne force-pushed the 05-27-agent-settings-ai-rerank-service branch from 988d36e to aa37795 Compare May 27, 2026 20:07
@Mbeaulne Mbeaulne force-pushed the 05-27-component-search-index-service branch from 3028b43 to bfc7f76 Compare May 27, 2026 20:07
@Mbeaulne Mbeaulne force-pushed the 05-27-agent-settings-ai-rerank-service branch 2 times, most recently from 6d8a2b9 to 8d45929 Compare May 27, 2026 20:27
@Mbeaulne Mbeaulne changed the title Add agent settings and AI rerank service Add BYOK component search settings hook May 27, 2026
@Mbeaulne Mbeaulne force-pushed the 05-27-agent-settings-ai-rerank-service branch from 8d45929 to 38e0b45 Compare May 27, 2026 20:29
@Mbeaulne Mbeaulne force-pushed the 05-27-component-search-index-service branch from 1a766b2 to d2b079d Compare May 27, 2026 23:18
@Mbeaulne Mbeaulne force-pushed the 05-27-agent-settings-ai-rerank-service branch from 38e0b45 to 3125081 Compare May 27, 2026 23:18
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