keep connected providers visible without key methods

This commit is contained in:
Wesley Tanner committed 2026-10-29 16:07:08 -05:00
1 parent a6a8121390
commit 02f1bc2a3d
1 file changed
+12 -10
@@ -169,7 +169,7 @@ export function ProviderSettings() {
const nonOAuthProviders = providerEntries.filter(
(provider) =>
!supportsOAuthMethods(provider.methods) &&
provider.methods.some((method) => method.type === 'key'),
(provider.connected || provider.methods.some((method) => method.type === 'key')),
)
return {
connected: nonOAuthProviders.filter((provider) => provider.connected),
@@ -405,15 +405,17 @@ export function ProviderSettings() {
<Check className="h-3 w-3 mr-1" />
Connected
</Badge>
<Button
size="sm"
variant="ghost"
onClick={() => handleEditApiKey(provider)}
aria-label={`Edit API key for ${provider.name || provider.id}`}
className="h-8 w-8 p-0"
>
<Pencil className="h-3.5 w-3.5" />
</Button>
{provider.methods.some((method) => method.type === 'key') && (
<Button
size="sm"
variant="ghost"
onClick={() => handleEditApiKey(provider)}
aria-label={`Edit API key for ${provider.name || provider.id}`}
className="h-8 w-8 p-0"
>
<Pencil className="h-3.5 w-3.5" />
</Button>
)}
<Button
size="sm"
variant="ghost"