feat(desktop): allow reconfiguration of already-configured providers

Previously, configured providers only showed a checkmark with no way to
reconfigure them. Now shows a "Reconfigure" button alongside the checkmark.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jiayuan Zhang 2026-02-10 23:40:36 +08:00
parent c24ac8a098
commit 0135951ac6

View file

@ -63,7 +63,20 @@ function ProviderCard({
</div>
{provider.available ? (
<HugeiconsIcon icon={Tick02Icon} className="size-4 text-primary" />
<div className="flex items-center gap-2">
<HugeiconsIcon icon={Tick02Icon} className="size-4 text-primary" />
<Button
size="sm"
variant="ghost"
className="text-xs text-muted-foreground h-auto py-1 px-2"
onClick={(e) => {
e.stopPropagation()
onConfigure(provider)
}}
>
Reconfigure
</Button>
</div>
) : (
<Button
size="sm"