fix(frontend): load provider integrations through the typed OpenCode client

Fetch integrations with callOpenCode instead of a dedicated backend route,
drop the unused provider credentials list query, label an existing key as
"Edit API key", and keep the loaded provider list when a background
refetch fails.
This commit is contained in:
Chris Scott committed 2026-11-06 00:10:20 -05:00
1 parent b179267376
commit 99713e15b4
13 files changed
+44 -84

No files matched your search

-7
View File
@@ -304,13 +304,6 @@ describe('providerCredentialsApi', () => {
vi.clearAllMocks()
})
it('lists provider ids with credentials from the Manager response', async () => {
mockFetchWrapper.mockResolvedValue({ providers: ['anthropic', 'openai'] })
await expect(providerCredentialsApi.list()).resolves.toEqual(['anthropic', 'openai'])
expect(mockFetchWrapper).toHaveBeenCalledWith(`${API_BASE_URL}/api/providers/credentials`)
})
it('reports credential status from the Manager response', async () => {
mockFetchWrapper.mockResolvedValue({ hasCredentials: true })