Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore(settings): fix indentation and reorder imports in AI provider components

Steven Enamakel318e1ff7a80a
diff --git a/app/src/components/settings/panels/ai/ClaudeCodeStatusCard.tsx b/app/src/components/settings/panels/ai/ClaudeCodeStatusCard.tsx
index f80d9fe30b..0341dcd07e 100644
--- a/app/src/components/settings/panels/ai/ClaudeCodeStatusCard.tsx
+++ b/app/src/components/settings/panels/ai/ClaudeCodeStatusCard.tsx
@@ -269,10 +269,10 @@ function ClaudeCodeModal({
subtitle={t('settings.ai.claudeCode.modalDescription')}
onClose={onClose}
contentClassName="p-4 space-y-4">
- {/* Connection */}
- <Card title={t('settings.ai.claudeCode.connection')}>
- <div className="flex items-center justify-between gap-3 p-4">
- <div className="text-xs">
+ {/* Connection */}
+ <Card title={t('settings.ai.claudeCode.connection')}>
+ <div className="flex items-center justify-between gap-3 p-4">
+ <div className="text-xs">
<div className="font-medium text-content">{t('settings.ai.claudeCode.connection')}</div>
<div className={connected ? 'text-sage-600 dark:text-sage-400' : 'text-content-muted'}>
{connected
@@ -296,12 +296,12 @@ function ClaudeCodeModal({
{busy ? t('settings.ai.claudeCode.enabling') : t('settings.ai.claudeCode.enable')}
</Button>
)}
- </div>
- </Card>
+ </div>
+ </Card>
- {/* Authentication */}
- <Card title={t('settings.ai.claudeCode.authentication')}>
- <div className="space-y-3 p-4">
+ {/* Authentication */}
+ <Card title={t('settings.ai.claudeCode.authentication')}>
+ <div className="space-y-3 p-4">
<div className="flex items-center justify-end">
<Button
variant="tertiary"
@@ -335,12 +335,12 @@ function ClaudeCodeModal({
</p>
)}
</div>
- </div>
- </Card>
+ </div>
+ </Card>
- {/* Permissions — full access vs. the default acceptEdits posture. */}
- <Card title={t('settings.ai.claudeCode.fullAccess')}>
- <div className="p-4">
+ {/* Permissions — full access vs. the default acceptEdits posture. */}
+ <Card title={t('settings.ai.claudeCode.fullAccess')}>
+ <div className="p-4">
<div className="flex items-center justify-between gap-3">
<div className="min-w-0">
<div className="text-xs font-medium text-content">
@@ -365,8 +365,8 @@ function ClaudeCodeModal({
? t('settings.ai.claudeCode.sandboxNoteMac')
: t('settings.ai.claudeCode.sandboxNoteOther')}
</p>
- </div>
- </Card>
+ </div>
+ </Card>
</ModalShell>
);
}
diff --git a/app/src/components/settings/panels/ai/providerIcons.tsx b/app/src/components/settings/panels/ai/providerIcons.tsx
index b11bce465a..cb4547e9f5 100644
--- a/app/src/components/settings/panels/ai/providerIcons.tsx
+++ b/app/src/components/settings/panels/ai/providerIcons.tsx
@@ -16,10 +16,6 @@
*/
import { createElement, type ReactElement } from 'react';
import type { IconType } from 'react-icons';
-
-import { cn } from '../../../../lib/cn';
-import deepseekLogo from '../../../../assets/provider-icons/deepseek.svg';
-import openrouterLogo from '../../../../assets/provider-icons/openrouter.svg';
import {
SiAlibabacloud,
SiAnthropic,
@@ -33,6 +29,10 @@ import {
SiX,
} from 'react-icons/si';
+import deepseekLogo from '../../../../assets/provider-icons/deepseek.svg';
+import openrouterLogo from '../../../../assets/provider-icons/openrouter.svg';
+import { cn } from '../../../../lib/cn';
+
/**
* Provider slug to brand mark. Keys are the slugs in `builtinCloudProviders.ts`
* and the local-runtime slugs, so a rename there surfaces here as a silently
@@ -93,10 +93,15 @@ export const providerIcon = (slug: string, className: string): ReactElement | nu
const icon = PROVIDER_ICONS[slug];
if (icon) return createElement(icon, { className: cn(className, PROVIDER_ICON_COLORS[slug]) });
const asset = PROVIDER_ASSETS[slug];
- return asset ? <img src={asset} alt="" aria-hidden className={cn(className, 'object-contain')} /> : null;
+ return asset ? (
+ <img src={asset} alt="" aria-hidden className={cn(className, 'object-contain')} />
+ ) : null;
};
/** Slugs with a mark — exported for the coverage test, not for rendering. */
-export const PROVIDER_ICON_SLUGS = [...Object.keys(PROVIDER_ICONS), ...Object.keys(PROVIDER_ASSETS)];
+export const PROVIDER_ICON_SLUGS = [
+ ...Object.keys(PROVIDER_ICONS),
+ ...Object.keys(PROVIDER_ASSETS),
+];
export default providerIcon;