Add brand icons to configured providers

This commit is contained in:
Alex Gleason committed 2025-10-18 22:34:28 -05:00
1 parent 80757b86b1
commit f8542e56db
3 files changed
+10 -1

No files matched your search

+6 -1
View File
@@ -1,7 +1,7 @@
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
import { Check, Bot, ArrowLeft, Trash2, GripVertical } from 'lucide-react';
import { SiOpenai, SiAnthropic, SiGoogle } from '@icons-pack/react-simple-icons';
import { SiOpenai, SiAnthropic, SiGoogle, SiX } from '@icons-pack/react-simple-icons';
import {
DndContext,
closestCenter,
@@ -81,6 +81,10 @@ function SortableProviderItem({ provider, preset, onRemove, onSetProvider, onOpe
<GripVertical className="h-4 w-4" />
</div>
)}
{provider.id === 'openai' && <SiOpenai size={16} />}
{provider.id === 'anthropic' && <SiAnthropic size={16} />}
{provider.id === 'google' && <SiGoogle size={16} />}
{provider.id === 'xai' && <SiX size={16} />}
<span className="font-medium">
{preset?.name || provider.id}
</span>
@@ -363,6 +367,7 @@ export function AISettings() {
{preset.id === 'openai' && <SiOpenai size={16} />}
{preset.id === 'anthropic' && <SiAnthropic size={16} />}
{preset.id === 'google' && <SiGoogle size={16} />}
{preset.id === 'xai' && <SiX size={16} />}
<h5 className="font-medium">{preset.name}</h5>
</div>
{(preset.apiKeysURL && preset.id !== "routstr") && (
+2
View File
@@ -90,6 +90,8 @@ function SortableProviderItem({ provider, index, preset, onRemove, onUpdate, sho
<GripVertical className="h-4 w-4" />
</div>
)}
{provider.id === 'netlify' && <SiNetlify size={16} />}
{provider.id === 'vercel' && <SiVercel size={16} />}
<span className="font-medium">
{provider.name}
</span>
+2
View File
@@ -152,6 +152,8 @@ export function GitSettings() {
<AccordionItem key={origin} value={origin} className="border rounded-lg">
<AccordionTrigger className="px-4 py-3 hover:no-underline">
<div className="flex items-center gap-2">
{preset?.id === 'github' && <SiGithub size={16} />}
{preset?.id === 'gitlab' && <SiGitlab size={16} />}
<span className="font-medium">
{preset?.name || new URL(origin).hostname}
</span>