feat: enhance OpenCode provider tests and UI setup

- Updated unit tests for OpenCode provider to include new authentication indicators.
- Refactored ProvidersSetupStep component by removing unnecessary UI elements for better clarity.
- Improved board background persistence tests by utilizing a setup function for initializing app state.
- Enhanced settings synchronization tests to ensure proper handling of login and app state.

These changes improve the testing framework and user interface for OpenCode integration, ensuring a smoother setup and authentication process.
This commit is contained in:
webdevcody
2026-01-09 10:08:38 -05:00
parent 87c3d766c9
commit a695d0db7b
5 changed files with 111 additions and 80 deletions

View File

@@ -1271,25 +1271,6 @@ export function ProvidersSetupStep({ onNext, onBack }: ProvidersSetupStepProps)
</div>
</Tabs>
<div className="flex items-center justify-center gap-4 py-2 text-sm">
{providers.map((provider) => (
<div
key={provider.id}
className={cn(
'flex items-center gap-1.5',
provider.configured ? 'text-green-500' : 'text-muted-foreground'
)}
>
{provider.configured ? (
<CheckCircle2 className="w-4 h-4" />
) : (
<div className="w-4 h-4 rounded-full border border-current" />
)}
<span>{provider.label}</span>
</div>
))}
</div>
<div className="flex justify-between pt-4">
<Button variant="ghost" onClick={onBack} className="text-muted-foreground">
<ArrowLeft className="w-4 h-4 mr-2" />