Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

🧹 refactor: Drop Redundant Design Overrides in the Agents Panel (#16866)

Marco Beretta2e7eccaf3197
diff --git a/client/src/components/SidePanel/Agents/ActionsInput.tsx b/client/src/components/SidePanel/Agents/ActionsInput.tsx
index c5851c4a98..d43177bb42 100644
--- a/client/src/components/SidePanel/Agents/ActionsInput.tsx
+++ b/client/src/components/SidePanel/Agents/ActionsInput.tsx
@@ -261,12 +261,13 @@ export default function ActionsInput({
/>
</div>
<Textarea
+ variant="transparent"
id="schemaInput"
value={inputValue}
onChange={handleInputChange}
spellCheck="false"
placeholder={localize('com_ui_enter_openapi_schema')}
- className="border-border-light focus-visible:border-border-heavy block min-h-[12rem] w-full resize-y rounded-lg border bg-transparent p-3 font-mono text-xs leading-relaxed transition-colors focus-visible:ring-0"
+ className="border-border-light focus-visible:border-border-heavy block min-h-[12rem] w-full resize-y p-3 font-mono text-xs leading-relaxed transition-colors focus-visible:ring-0"
/>
{validationError && (
<div className="text-text-destructive mt-1.5 text-xs">
@@ -314,12 +315,13 @@ export default function ActionsInput({
</OGDialogHeader>
<div className="border-border-medium bg-surface-secondary focus-within:border-border-heavy flex min-h-0 flex-1 flex-col overflow-hidden rounded-lg border">
<Textarea
+ variant="transparent"
value={inputValue}
onChange={handleInputChange}
spellCheck="false"
placeholder={localize('com_ui_enter_openapi_schema')}
aria-label={localize('com_ui_schema')}
- className="min-h-0 flex-1 resize-none border-0 bg-transparent p-4 font-mono text-[13px] leading-relaxed focus-visible:ring-0"
+ className="min-h-0 flex-1 resize-none border-0 p-4 font-mono text-[13px] leading-relaxed focus-visible:ring-0"
/>
</div>
{validationError && (
diff --git a/client/src/components/SidePanel/Agents/ActionsTable/Columns.tsx b/client/src/components/SidePanel/Agents/ActionsTable/Columns.tsx
index 6b594e466d..82506363c0 100644
--- a/client/src/components/SidePanel/Agents/ActionsTable/Columns.tsx
+++ b/client/src/components/SidePanel/Agents/ActionsTable/Columns.tsx
@@ -34,7 +34,7 @@ function MethodBadge({ method }: { method: string }) {
return (
<SeriesLabel
hue={METHOD_HUES[method.toLowerCase()]}
- className="font-mono text-[11px] font-semibold tracking-wide uppercase"
+ className="text-2xs font-mono font-semibold tracking-wide uppercase"
>
{method}
</SeriesLabel>
diff --git a/client/src/components/SidePanel/Agents/ActionsTable/Skeleton.tsx b/client/src/components/SidePanel/Agents/ActionsTable/Skeleton.tsx
index e80bf7615a..5c3374f481 100644
--- a/client/src/components/SidePanel/Agents/ActionsTable/Skeleton.tsx
+++ b/client/src/components/SidePanel/Agents/ActionsTable/Skeleton.tsx
@@ -18,7 +18,7 @@ export default function ActionsTableSkeleton() {
{HEADER_KEYS.map((key) => (
<th
key={key}
- className="text-text-secondary py-2 pr-3 text-left text-[11px] font-medium tracking-wide uppercase"
+ className="text-text-secondary text-2xs py-2 pr-3 text-left font-medium tracking-wide uppercase"
>
{localize(key)}
</th>
diff --git a/client/src/components/SidePanel/Agents/ActionsTable/Table.tsx b/client/src/components/SidePanel/Agents/ActionsTable/Table.tsx
index 9c2f56f532..cee3104beb 100644
--- a/client/src/components/SidePanel/Agents/ActionsTable/Table.tsx
+++ b/client/src/components/SidePanel/Agents/ActionsTable/Table.tsx
@@ -21,7 +21,7 @@ export default function DataTable<TData, TValue>({ columns, data }: DataTablePro
{headerGroup.headers.map((header) => (
<th
key={header.id}
- className="border-border-light bg-surface-primary text-text-secondary sticky top-0 z-10 border-b py-2 pr-3 text-left text-[11px] font-medium tracking-wide uppercase"
+ className="border-border-light bg-surface-primary text-text-secondary text-2xs sticky top-0 z-10 border-b py-2 pr-3 text-left font-medium tracking-wide uppercase"
>
{header.isPlaceholder
? null
diff --git a/client/src/components/SidePanel/Agents/Advanced/AdvancedButton.tsx b/client/src/components/SidePanel/Agents/Advanced/AdvancedButton.tsx
index 4ca124743f..d6ad983f26 100644
--- a/client/src/components/SidePanel/Agents/Advanced/AdvancedButton.tsx
+++ b/client/src/components/SidePanel/Agents/Advanced/AdvancedButton.tsx
@@ -14,10 +14,11 @@ const AdvancedButton: React.FC<AdvancedButtonProps> = ({ setActivePanel }) => {
return (
<Button
variant="subtle"
+ size="dense"
shape="theme"
onClick={() => setActivePanel(Panel.advanced)}
aria-label={localize('com_ui_advanced')}
- className="h-9 w-full px-3"
+ className="h-9 w-full"
>
<Settings2 className="h-4 w-4" strokeWidth={1.75} aria-hidden="true" />
{localize('com_ui_advanced')}
diff --git a/client/src/components/SidePanel/Agents/Advanced/AdvancedPanel.tsx b/client/src/components/SidePanel/Agents/Advanced/AdvancedPanel.tsx
index 417ba2117d..b704060b3e 100644
--- a/client/src/components/SidePanel/Agents/Advanced/AdvancedPanel.tsx
+++ b/client/src/components/SidePanel/Agents/Advanced/AdvancedPanel.tsx
@@ -36,11 +36,11 @@ export default function AdvancedPanel() {
<div className="mb-1 flex w-full flex-col gap-4 text-sm">
<header className="grid grid-cols-[auto_1fr_auto] items-center gap-2 pt-1">
<Button
- variant="ghost"
+ variant="quiet"
size="icon"
onClick={() => setActivePanel(Panel.builder)}
aria-label={localize('com_ui_back_to_builder')}
- className="border-border-light text-text-secondary hover:bg-surface-secondary hover:text-text-primary focus-visible:ring-text-primary shrink-0 rounded-xl border focus-visible:ring-2"
+ className="border-border-light hover:bg-surface-secondary shrink-0 rounded-xl border"
>
<ChevronLeft className="h-5 w-5" strokeWidth={1.75} aria-hidden="true" />
</Button>
@@ -77,10 +77,10 @@ export default function AdvancedPanel() {
description={currentAgentId}
render={
<Button
- variant="ghost"
+ variant="quiet"
onClick={handleCopyAgentId}
aria-label={localize('com_ui_agent_id_copy')}
- className="text-text-secondary hover:bg-surface-secondary hover:text-text-primary focus-visible:ring-text-primary h-auto gap-1.5 rounded-lg px-2 py-1 focus-visible:ring-2"
+ className="hover:bg-surface-secondary h-auto gap-1.5 px-2 py-1"
>
<code className="max-w-[9.375rem] truncate font-mono text-xs">
{currentAgentId}
diff --git a/client/src/components/SidePanel/Agents/Advanced/AgentHandoffs.tsx b/client/src/components/SidePanel/Agents/Advanced/AgentHandoffs.tsx
index 5c44e33bfd..9ace6e1766 100644
--- a/client/src/components/SidePanel/Agents/Advanced/AgentHandoffs.tsx
+++ b/client/src/components/SidePanel/Agents/Advanced/AgentHandoffs.tsx
@@ -155,9 +155,9 @@ const AgentHandoffs: React.FC<AgentHandoffsProps> = ({ field, currentAgentId })
ariaLabel={localize('com_ui_agent_var', { 0: localize('com_ui_select') })}
/>
<Button
- variant="ghost"
- size="icon"
- className="text-text-secondary hover:bg-surface-secondary hover:text-text-primary size-auto shrink-0 rounded-lg p-1"
+ variant="quiet"
+ size="snug"
+ className="hover:bg-surface-secondary size-auto shrink-0"
onClick={() => toggleExpanded(idx)}
aria-expanded={isExpanded}
aria-label={localize(isExpanded ? 'com_ui_collapse' : 'com_ui_expand')}
@@ -174,8 +174,9 @@ const AgentHandoffs: React.FC<AgentHandoffsProps> = ({ field, currentAgentId })
<div className="border-border-light ml-1.5 flex flex-col gap-2.5 border-l pl-3">
<div>
<Label
+ variant="secondary"
htmlFor={`handoff-desc-${idx}`}
- className="text-text-secondary text-xs"
+ className="text-xs"
>
{localize('com_ui_agent_handoff_description')}
</Label>
@@ -188,14 +189,15 @@ const AgentHandoffs: React.FC<AgentHandoffsProps> = ({ field, currentAgentId })
description: e.target.value === '' ? undefined : e.target.value,
})
}
- className="mt-1 h-9 text-sm"
+ className="mt-1 h-9"
/>
</div>
<div>
<Label
+ variant="secondary"
htmlFor={`handoff-prompt-${idx}`}
- className="text-text-secondary text-xs"
+ className="text-xs"
>
{localize('com_ui_agent_handoff_prompt')}
</Label>
@@ -208,15 +210,16 @@ const AgentHandoffs: React.FC<AgentHandoffsProps> = ({ field, currentAgentId })
prompt: e.target.value === '' ? undefined : e.target.value,
})
}
- className="mt-1 h-16 resize-none text-sm"
+ className="mt-1 h-16 resize-none"
/>
</div>
{edge.prompt && (
<div>
<Label
+ variant="secondary"
htmlFor={`handoff-promptkey-${idx}`}
- className="text-text-secondary text-xs"
+ className="text-xs"
>
{localize('com_ui_agent_handoff_prompt_key')}
</Label>
@@ -229,7 +232,7 @@ const AgentHandoffs: React.FC<AgentHandoffsProps> = ({ field, currentAgentId })
promptKey: e.target.value === '' ? undefined : e.target.value,
})
}
- className="mt-1 h-9 text-sm"
+ className="mt-1 h-9"
/>
</div>
)}
diff --git a/client/src/components/SidePanel/Agents/Advanced/AgentList.tsx b/client/src/components/SidePanel/Agents/Advanced/AgentList.tsx
index 0e4fa6e723..5ab2810c87 100644
--- a/client/src/components/SidePanel/Agents/Advanced/AgentList.tsx
+++ b/client/src/components/SidePanel/Agents/Advanced/AgentList.tsx
@@ -141,9 +141,9 @@ interface RemoveButtonProps {
export function RemoveButton({ onClick, label }: RemoveButtonProps) {
return (
<Button
- variant="ghost"
- size="icon"
- className="text-text-secondary hover:bg-surface-secondary hover:text-text-primary size-auto shrink-0 p-1"
+ variant="quiet"
+ size="snug"
+ className="hover:bg-surface-secondary size-auto shrink-0"
onClick={onClick}
aria-label={label}
>
@@ -197,7 +197,7 @@ export function ListMeta({ label, count, max }: ListMetaProps) {
return (
<div className="flex items-center justify-between gap-2">
<span className="text-text-secondary text-xs font-medium">{label}</span>
- <span className="text-text-tertiary text-[10px] font-medium whitespace-nowrap tabular-nums">
+ <span className="text-text-tertiary text-3xs font-medium whitespace-nowrap tabular-nums">
{count} / {max}
</span>
</div>
diff --git a/client/src/components/SidePanel/Agents/Advanced/MaxAgentSteps.tsx b/client/src/components/SidePanel/Agents/Advanced/MaxAgentSteps.tsx
index f519822703..2ae071333c 100644
--- a/client/src/components/SidePanel/Agents/Advanced/MaxAgentSteps.tsx
+++ b/client/src/components/SidePanel/Agents/Advanced/MaxAgentSteps.tsx
@@ -13,7 +13,7 @@ export default function MaxAgentSteps() {
<HoverCard openDelay={50}>
<div className="flex flex-col gap-1.5">
<div className="flex items-center gap-1.5">
- <Label htmlFor="recursion_limit" className="w-auto text-[13px] font-medium">
+ <Label htmlFor="recursion_limit" className="text-1xs w-auto font-medium">
{localize('com_ui_agent_recursion_limit')}
</Label>
<InfoTrigger />
diff --git a/client/src/components/SidePanel/Agents/Advanced/ui.tsx b/client/src/components/SidePanel/Agents/Advanced/ui.tsx
index 54d5f29127..065ed86d97 100644
--- a/client/src/components/SidePanel/Agents/Advanced/ui.tsx
+++ b/client/src/components/SidePanel/Agents/Advanced/ui.tsx
@@ -17,7 +17,7 @@ export const groupHeadingClass = 'text-sm font-semibold text-text-primary';
/** Small count chip, e.g. "2 / 10". */
export function CountPill({ children }: { children: ReactNode }) {
return (
- <span className="bg-surface-tertiary text-text-secondary inline-flex h-4 items-center justify-center rounded-full px-1.5 text-[10px] font-medium whitespace-nowrap tabular-nums">
+ <span className="bg-surface-tertiary text-text-secondary text-3xs inline-flex h-4 items-center justify-center rounded-full px-1.5 font-medium whitespace-nowrap tabular-nums">
{children}
</span>
);
@@ -34,7 +34,7 @@ export function CountPill({ children }: { children: ReactNode }) {
export function BetaPill() {
const localize = useLocalize();
return (
- <span className="border-brand-purple/40 bg-brand-purple/10 text-brand-purple rounded-full border px-1.5 py-0.5 text-[10px] font-medium tracking-wide uppercase">
+ <span className="border-brand-purple/40 bg-brand-purple/10 text-brand-purple text-3xs rounded-full border px-1.5 py-0.5 font-medium tracking-wide uppercase">
{localize('com_ui_beta')}
</span>
);
@@ -50,8 +50,9 @@ export function InfoTrigger() {
<HoverCardTrigger asChild>
<Button
variant="ghost"
+ size="bare"
aria-label={localize('com_ui_more_info')}
- className="text-text-tertiary hover:text-text-secondary focus-visible:ring-text-primary flex h-4 w-4 shrink-0 items-center justify-center rounded p-0 transition-colors hover:bg-transparent focus-visible:ring-2"
+ className="text-text-tertiary hover:text-text-secondary flex h-4 w-4 shrink-0 rounded hover:bg-transparent"
>
<CircleHelpIcon className="h-3.5 w-3.5" aria-hidden={true} />
</Button>
@@ -77,7 +78,7 @@ export function ToggleSetting({ id, label, checked, onCheckedChange, info }: Tog
const row = (
<div className="flex items-center justify-between gap-3">
<div className="flex min-w-0 items-center gap-1.5">
- <label htmlFor={id} className="text-text-primary truncate text-[13px] font-medium">
+ <label htmlFor={id} className="text-text-primary text-1xs truncate font-medium">
{label}
</label>
{info != null && <InfoTrigger />}
diff --git a/client/src/components/SidePanel/Agents/AgentConfig.tsx b/client/src/components/SidePanel/Agents/AgentConfig.tsx
index db6907af95..c9e00247b5 100644
--- a/client/src/components/SidePanel/Agents/AgentConfig.tsx
+++ b/client/src/components/SidePanel/Agents/AgentConfig.tsx
@@ -107,7 +107,8 @@ export default function AgentConfig({
<div className="mb-3 grid grid-cols-2 gap-2">
<div className="flex min-w-0 flex-col">
<Label
- className="text-text-secondary mb-1 block text-[11px] font-medium tracking-wide uppercase"
+ variant="secondary"
+ className="text-2xs mb-1 block font-medium tracking-wide uppercase"
htmlFor="provider"
>
{localize('com_ui_model')} <span className="text-text-destructive">*</span>
@@ -141,7 +142,8 @@ export default function AgentConfig({
</div>
<div className="flex flex-col">
<Label
- className="text-text-secondary mb-1 block text-[11px] font-medium tracking-wide uppercase"
+ variant="secondary"
+ className="text-2xs mb-1 block font-medium tracking-wide uppercase"
htmlFor="category-selector"
>
{localize('com_ui_category')} <span className="text-text-destructive">*</span>
@@ -171,7 +173,10 @@ export default function AgentConfig({
{/* SUPPORT CONTACT */}
<div className="mb-3 flex flex-col">
- <Label className="text-text-secondary mb-1 block text-[11px] font-medium tracking-wide uppercase">
+ <Label
+ variant="secondary"
+ className="text-2xs mb-1 block font-medium tracking-wide uppercase"
+ >
{localize('com_ui_support_contact')}
</Label>
<div className="space-y-2">
diff --git a/client/src/components/SidePanel/Agents/AgentFooter.tsx b/client/src/components/SidePanel/Agents/AgentFooter.tsx
index ddacdfdb34..4f195d247e 100644
--- a/client/src/components/SidePanel/Agents/AgentFooter.tsx
+++ b/client/src/components/SidePanel/Agents/AgentFooter.tsx
@@ -116,11 +116,12 @@ export default function AgentFooter({
resourceType={ResourceType.REMOTE_AGENT}
>
<Button
- type="button"
variant="outline"
+ size="dense"
+ type="button"
aria-label={localize('com_ui_remote_access')}
title={localize('com_ui_remote_access')}
- className="h-9 w-auto px-3"
+ className="h-9 w-auto"
>
<Globe className="h-4 w-4" aria-hidden="true" />
</Button>
@@ -131,7 +132,7 @@ export default function AgentFooter({
{/* Submit Button */}
<Button
variant="submit"
- className="h-9 w-full px-4 py-2 font-semibold"
+ className="h-9 w-full font-semibold"
type="submit"
disabled={isSaving}
aria-busy={isSaving}
diff --git a/client/src/components/SidePanel/Agents/AgentTool.tsx b/client/src/components/SidePanel/Agents/AgentTool.tsx
index ece5339d45..f5aef17652 100644
--- a/client/src/components/SidePanel/Agents/AgentTool.tsx
+++ b/client/src/components/SidePanel/Agents/AgentTool.tsx
@@ -81,11 +81,8 @@ export default function AgentTool({
<div className="flex h-8 w-8 shrink-0 items-center justify-center overflow-hidden rounded-full">
{currentTool.icon ? (
<div
- className="bg-surface-tertiary flex h-6 w-6 items-center justify-center overflow-hidden rounded-full bg-center bg-no-repeat"
- style={{
- backgroundImage: `url(${currentTool.icon})`,
- backgroundSize: 'cover',
- }}
+ className="bg-surface-tertiary flex h-6 w-6 items-center justify-center overflow-hidden rounded-full bg-(image:--tool-icon) bg-cover bg-center bg-no-repeat"
+ style={{ '--tool-icon': `url(${currentTool.icon})` } as React.CSSProperties}
/>
) : (
<div className="bg-surface-secondary text-text-secondary flex h-6 w-6 items-center justify-center rounded-md">
@@ -93,10 +90,7 @@ export default function AgentTool({
</div>
)}
</div>
- <div
- className="grow px-2 py-1.5"
- style={{ textOverflow: 'ellipsis', wordBreak: 'break-all', overflow: 'hidden' }}
- >
+ <div className="grow overflow-hidden px-2 py-1.5 break-all text-ellipsis">
{currentTool.name}
</div>
</div>
@@ -106,7 +100,7 @@ export default function AgentTool({
variant="ghost"
size="icon"
className={cn(
- 'hover:bg-surface-hover h-7 w-7 rounded transition-all duration-200',
+ 'h-7 w-7 rounded transition-all duration-200',
'focus:opacity-100 focus-visible:opacity-100',
isHovering || isFocused ? 'opacity-100' : 'pointer-events-none opacity-0',
)}
@@ -131,7 +125,9 @@ export default function AgentTool({
</p>
{currentTool.description && (
<div className="flex items-start gap-2">
- <CircleHelpIcon className="text-text-secondary h-4 w-4 shrink-0" />
+ <span className="text-text-secondary shrink-0">
+ <CircleHelpIcon className="h-4 w-4" />
+ </span>
<p className="text-sm">{currentTool.description}</p>
</div>
)}
diff --git a/client/src/components/SidePanel/Agents/Background.tsx b/client/src/components/SidePanel/Agents/Background.tsx
index 054e9318e2..bca703b843 100644
--- a/client/src/components/SidePanel/Agents/Background.tsx
+++ b/client/src/components/SidePanel/Agents/Background.tsx
@@ -66,13 +66,15 @@ export default function Background({ toolIds, switchId, labelKey, infoKey }: Pro
<div className="flex items-center space-x-2">
<div className="text-sm">{localize(labelKey)}</div>
<HoverCardTrigger>
- <CircleHelpIcon className="h-4 w-4 text-text-tertiary" />
+ <span className="text-text-tertiary">
+ <CircleHelpIcon className="h-4 w-4" />
+ </span>
</HoverCardTrigger>
</div>
<HoverCardPortal>
<HoverCardContent side={ESide.Top} className="w-80">
<div className="space-y-2">
- <p className="text-sm text-text-secondary">{localize(infoKey)}</p>
+ <p className="text-text-secondary text-sm">{localize(infoKey)}</p>
</div>
</HoverCardContent>
</HoverCardPortal>
diff --git a/client/src/components/SidePanel/Agents/Code/Background.tsx b/client/src/components/SidePanel/Agents/Code/Background.tsx
index 2d2b7916ce..4efa84d8ad 100644
--- a/client/src/components/SidePanel/Agents/Code/Background.tsx
+++ b/client/src/components/SidePanel/Agents/Code/Background.tsx
@@ -53,13 +53,15 @@ export default function Background() {
<div className="flex items-center space-x-2">
<div className="text-sm">{localize('com_ui_code_background')}</div>
<HoverCardTrigger>
- <CircleHelpIcon className="h-4 w-4 text-text-tertiary" />
+ <span className="text-text-tertiary">
+ <CircleHelpIcon className="h-4 w-4" />
+ </span>
</HoverCardTrigger>
</div>
<HoverCardPortal>
<HoverCardContent side={ESide.Top} className="w-80">
<div className="space-y-2">
- <p className="text-sm text-text-secondary">
+ <p className="text-text-secondary text-sm">
{localize('com_nav_info_code_background')}
</p>
</div>
diff --git a/client/src/components/SidePanel/Agents/Code/Files.tsx b/client/src/components/SidePanel/Agents/Code/Files.tsx
index 7c86fc4d37..9ec93cac37 100644
--- a/client/src/components/SidePanel/Agents/Code/Files.tsx
+++ b/client/src/components/SidePanel/Agents/Code/Files.tsx
@@ -72,7 +72,7 @@ function Files({
return (
<div className="mb-2 w-full">
<div className="flex flex-col gap-3">
- <div className="rounded-lg text-xs text-text-secondary">
+ <div className="text-text-secondary rounded-lg text-xs">
{localize('com_agents_run_code_files')}
</div>
<FileRow
@@ -98,7 +98,7 @@ function Files({
<input
multiple={true}
type="file"
- style={{ display: 'none' }}
+ className="hidden"
tabIndex={-1}
ref={fileInputRef}
disabled={uploadDisabled}
diff --git a/client/src/components/SidePanel/Agents/Code/Settings.tsx b/client/src/components/SidePanel/Agents/Code/Settings.tsx
index 6e68ce3810..b5c1b51bbf 100644
--- a/client/src/components/SidePanel/Agents/Code/Settings.tsx
+++ b/client/src/components/SidePanel/Agents/Code/Settings.tsx
@@ -152,7 +152,9 @@ export default function CodeSettings() {
{localize('com_ui_stateful_sessions')}
</div>
<HoverCardTrigger>
- <CircleHelpIcon className="text-text-tertiary h-4 w-4" />
+ <span className="text-text-tertiary">
+ <CircleHelpIcon className="h-4 w-4" />
+ </span>
</HoverCardTrigger>
</div>
<HoverCardPortal>
diff --git a/client/src/components/SidePanel/Agents/FileContext.tsx b/client/src/components/SidePanel/Agents/FileContext.tsx
index 0505fc5536..30a6e55152 100644
--- a/client/src/components/SidePanel/Agents/FileContext.tsx
+++ b/client/src/components/SidePanel/Agents/FileContext.tsx
@@ -142,7 +142,7 @@ function FileContext({
<div className="flex items-center justify-between gap-2">
{showHeader ? (
<div className="flex min-w-0 items-center gap-1.5">
- <span className="text-text-secondary truncate text-[11px] font-medium tracking-wide uppercase">
+ <span className="text-text-secondary text-2xs truncate font-medium tracking-wide uppercase">
{localize('com_agents_file_context_label')}
</span>
<TooltipAnchor
@@ -159,7 +159,7 @@ function FileContext({
}
/>
{fileCount > 0 && (
- <span className="bg-surface-tertiary text-text-secondary inline-flex h-4 min-w-[1rem] items-center justify-center rounded-full px-1.5 text-[10px] font-medium">
+ <span className="bg-surface-tertiary text-text-secondary text-3xs inline-flex h-4 min-w-[1rem] items-center justify-center rounded-full px-1.5 font-medium">
{fileCount}
</span>
)}
@@ -179,14 +179,14 @@ function FileContext({
/>
)}
{!agent_id && (
- <p className="text-text-secondary text-[11px] leading-snug">
+ <p className="text-text-secondary text-2xs leading-snug">
{localize('com_agents_file_context_disabled')}
</p>
)}
<input
multiple={true}
type="file"
- style={{ display: 'none' }}
+ className="hidden"
tabIndex={-1}
ref={fileInputRef}
disabled={disabledUploadButton}
diff --git a/client/src/components/SidePanel/Agents/FileSearch.tsx b/client/src/components/SidePanel/Agents/FileSearch.tsx
index 0daa540fca..ed40aed7ef 100644
--- a/client/src/components/SidePanel/Agents/FileSearch.tsx
+++ b/client/src/components/SidePanel/Agents/FileSearch.tsx
@@ -169,7 +169,7 @@ function FileSearch({
<input
multiple={true}
type="file"
- style={{ display: 'none' }}
+ className="hidden"
tabIndex={-1}
ref={fileInputRef}
disabled={disabledUploadButton}
@@ -178,7 +178,7 @@ function FileSearch({
</div>
{/* Disabled Message */}
{agent_id ? null : (
- <div className="text-xs text-text-secondary">
+ <div className="text-text-secondary text-xs">
{localize('com_agents_file_search_disabled')}
</div>
)}
diff --git a/client/src/components/SidePanel/Agents/Images.tsx b/client/src/components/SidePanel/Agents/Images.tsx
index 2667e335f7..7d82f3c0c8 100644
--- a/client/src/components/SidePanel/Agents/Images.tsx
+++ b/client/src/components/SidePanel/Agents/Images.tsx
@@ -40,16 +40,12 @@ export const AgentAvatarRender = ({ url }: { url?: string }) => {
<div className="relative h-full w-full overflow-hidden rounded-full">
<img
src={url}
- className="bg-avatar-placeholder h-full w-full rounded-full object-cover"
+ className={`bg-avatar-placeholder h-full w-full rounded-full object-cover transition-opacity duration-200 ease-in-out ${isLoaded ? 'opacity-100' : 'opacity-0'}`}
alt="Agent avatar"
loading="lazy"
key={url}
onLoad={() => setIsLoaded(true)}
onError={() => setIsLoaded(false)}
- style={{
- opacity: isLoaded ? 1 : 0,
- transition: 'opacity 0.2s ease-in-out',
- }}
/>
{!isLoaded && <Skeleton className="absolute inset-0 rounded-full" aria-hidden="true" />}
</div>
@@ -120,7 +116,7 @@ export function AvatarMenu({
accept="image/png,.png,image/jpeg,.jpg,.jpeg,image/gif,.gif,image/webp,.webp"
multiple={false}
type="file"
- style={{ display: 'none' }}
+ className="hidden"
onChange={(event) => {
handleFileChange(event);
if (fileInputRef.current) {
diff --git a/client/src/components/SidePanel/Agents/MCPIcon.tsx b/client/src/components/SidePanel/Agents/MCPIcon.tsx
index e6b56b5564..c1147b598c 100644
--- a/client/src/components/SidePanel/Agents/MCPIcon.tsx
+++ b/client/src/components/SidePanel/Agents/MCPIcon.tsx
@@ -25,11 +25,12 @@ export default function MCPIcon({ icon, onIconChange, errorId }: MCPIconProps) {
<div className="flex items-center gap-4">
<Button
variant="ghost"
+ size="bare"
onClick={handleClick}
aria-label={localize('com_ui_upload_icon')}
aria-invalid={errorId != null}
aria-describedby={errorId}
- className="border-border-medium bg-surface-secondary hover:bg-surface-hover flex h-16 w-16 shrink-0 items-center justify-center rounded-xl border-2 border-dashed p-0"
+ className="border-border-medium bg-surface-secondary flex h-16 w-16 shrink-0 rounded-xl border-2 border-dashed"
>
{icon ? (
<CustomIcon
@@ -51,7 +52,7 @@ export default function MCPIcon({ icon, onIconChange, errorId }: MCPIconProps) {
accept="image/png,.png,image/jpeg,.jpg,.jpeg,image/gif,.gif,image/webp,.webp,image/svg+xml,.svg"
multiple={false}
type="file"
- style={{ display: 'none' }}
+ className="hidden"
onChange={onIconChange}
ref={fileInputRef}
/>
diff --git a/client/src/components/SidePanel/Agents/MCPToolItem.tsx b/client/src/components/SidePanel/Agents/MCPToolItem.tsx
index b804519d20..1a75eebae0 100644
--- a/client/src/components/SidePanel/Agents/MCPToolItem.tsx
+++ b/client/src/components/SidePanel/Agents/MCPToolItem.tsx
@@ -152,16 +152,13 @@ export default function MCPToolItem({
/>
)}
<Button
- variant="ghost"
+ variant="quiet"
size="icon"
onClick={() => setExpanded((value) => !value)}
aria-expanded={expanded}
aria-controls={detailsId}
aria-label={localize('com_ui_tools_info')}
- className={cn(
- iconButton,
- expanded ? 'text-text-primary' : 'text-text-secondary hover:text-text-primary',
- )}
+ className={cn(iconButton, expanded && 'text-text-primary')}
>
<Info className="size-4" aria-hidden="true" />
</Button>
diff --git a/client/src/components/SidePanel/Agents/ModelPanel.tsx b/client/src/components/SidePanel/Agents/ModelPanel.tsx
index 8e6b480f39..dc1b783fb2 100644
--- a/client/src/components/SidePanel/Agents/ModelPanel.tsx
+++ b/client/src/components/SidePanel/Agents/ModelPanel.tsx
@@ -126,7 +126,7 @@ export default function ModelPanel({
size="icon"
onClick={() => setActivePanel(Panel.builder)}
aria-label={localize('com_ui_back_to_builder')}
- className="text-text-secondary hover:bg-surface-secondary hover:text-text-primary shrink-0 rounded-xl"
+ className="text-text-secondary hover:bg-surface-secondary shrink-0 rounded-xl"
>
<ChevronLeft className="h-5 w-5" strokeWidth={1.75} aria-hidden="true" />
</Button>
@@ -144,7 +144,7 @@ export default function ModelPanel({
<label
id="provider-label"
className={cn(
- 'text-text-secondary mb-1 block text-[11px] font-medium tracking-wide uppercase',
+ 'text-text-secondary text-2xs mb-1 block font-medium tracking-wide uppercase',
modelsPending && 'opacity-60',
)}
htmlFor="provider"
@@ -213,7 +213,7 @@ export default function ModelPanel({
<label
id="model-label"
className={cn(
- 'text-text-secondary mb-1 block text-[11px] font-medium tracking-wide uppercase',
+ 'text-text-secondary text-2xs mb-1 block font-medium tracking-wide uppercase',
(!provider || modelsPending) && 'opacity-60',
)}
htmlFor="model"
@@ -310,7 +310,7 @@ export default function ModelPanel({
<Button
variant="outline"
onClick={handleResetParameters}
- className="text-text-secondary hover:bg-surface-secondary hover:text-text-primary mt-2 h-9 w-full rounded-xl px-4 font-medium"
+ className="text-text-secondary hover:bg-surface-secondary mt-2 h-9 w-full rounded-xl font-medium"
>
<RotateCcw className="h-4 w-4" strokeWidth={1.75} aria-hidden="true" />
{localize('com_ui_reset_var', { 0: localize('com_ui_model_parameters') })}
diff --git a/client/src/components/SidePanel/Agents/Search/Action.tsx b/client/src/components/SidePanel/Agents/Search/Action.tsx
index fb5dc8d9cf..a49a80b8b0 100644
--- a/client/src/components/SidePanel/Agents/Search/Action.tsx
+++ b/client/src/components/SidePanel/Agents/Search/Action.tsx
@@ -61,7 +61,7 @@ export default function Action({
variant="outline"
onClick={() => setIsDialogOpen(true)}
aria-haspopup="dialog"
- className="w-full justify-center gap-2"
+ className="w-full justify-center"
>
<MorphIcon
icon={isToolAuthenticated ? CircleCheck : KeyRound}
diff --git a/client/src/components/SidePanel/Agents/Tools/CategoryFilter.tsx b/client/src/components/SidePanel/Agents/Tools/CategoryFilter.tsx
index d0ac18f866..9111f26935 100644
--- a/client/src/components/SidePanel/Agents/Tools/CategoryFilter.tsx
+++ b/client/src/components/SidePanel/Agents/Tools/CategoryFilter.tsx
@@ -59,8 +59,8 @@ export default function CategoryFilter({ options, value, onChange }: Props) {
render={
<Button
variant="outline"
- size="default"
- className="h-10 gap-1.5 px-3 text-sm font-normal"
+ size="dense"
+ className="h-10 gap-1.5 font-normal"
aria-label={localize('com_ui_category')}
>
<Filter
diff --git a/client/src/components/SidePanel/Agents/Tools/ItemDialog/ItemDialog.tsx b/client/src/components/SidePanel/Agents/Tools/ItemDialog/ItemDialog.tsx
index fbfeeec04b..4f27812cf2 100644
--- a/client/src/components/SidePanel/Agents/Tools/ItemDialog/ItemDialog.tsx
+++ b/client/src/components/SidePanel/Agents/Tools/ItemDialog/ItemDialog.tsx
@@ -37,7 +37,7 @@ export default function ItemDialog({ item, agentId, onClose }: Props) {
focusOutline="hidden"
onOpenAutoFocus={handleOpenAutoFocus}
className={cn(
- 'w-11/12 gap-0 rounded-2xl p-0 md:max-h-[85dvh]',
+ 'w-11/12 gap-0 p-0 md:max-h-[85dvh]',
isOrchestration ? 'overflow-visible' : 'overflow-hidden',
isAction ? 'max-w-5xl' : 'max-w-[35rem]',
)}
diff --git a/client/src/components/SidePanel/Agents/Tools/ItemDialog/ItemDialogHeader.tsx b/client/src/components/SidePanel/Agents/Tools/ItemDialog/ItemDialogHeader.tsx
index 7e28416163..fb7767d61d 100644
--- a/client/src/components/SidePanel/Agents/Tools/ItemDialog/ItemDialogHeader.tsx
+++ b/client/src/components/SidePanel/Agents/Tools/ItemDialog/ItemDialogHeader.tsx
@@ -55,7 +55,7 @@ export default function ItemDialogHeader({ item }: { item: AgentItem }) {
<HeaderIcon item={item} />
<div className="min-w-0 flex-1">
<OGDialogTitle className="truncate text-base font-semibold">{displayName}</OGDialogTitle>
- <OGDialogDescription className="text-text-secondary m-0 text-[11px] tracking-wide uppercase">
+ <OGDialogDescription className="text-2xs m-0 tracking-wide uppercase">
{kindLabel}
</OGDialogDescription>
</div>
diff --git a/client/src/components/SidePanel/Agents/Tools/ItemDialog/sections/McpSection.tsx b/client/src/components/SidePanel/Agents/Tools/ItemDialog/sections/McpSection.tsx
index 75d706b4c6..219857f5af 100644
--- a/client/src/components/SidePanel/Agents/Tools/ItemDialog/sections/McpSection.tsx
+++ b/client/src/components/SidePanel/Agents/Tools/ItemDialog/sections/McpSection.tsx
@@ -497,7 +497,7 @@ export default function McpSection({ item }: Props) {
<div className="flex flex-col gap-2">
<div className="flex min-h-7 flex-wrap items-center justify-between gap-x-2 gap-y-1">
- <span className="text-text-secondary text-[11px] font-medium tracking-wide uppercase">
+ <span className="text-text-secondary text-2xs font-medium tracking-wide uppercase">
{localize('com_ui_tools_mcp_tools_section')}
</span>
{(hasTools || runtimeToolsAvailable) && (
@@ -578,7 +578,7 @@ export default function McpSection({ item }: Props) {
? localize('com_ui_tools_mcp_deselect_all')
: localize('com_ui_tools_mcp_select_all')
}
- className="border-border-medium rounded border"
+ className="border-border-medium rounded"
/>
<span>
{(hasTools ? allSelected : isWildcardAttached)
@@ -633,12 +633,18 @@ export default function McpSection({ item }: Props) {
</Collapse>
<Collapse open={!hasTools && toolsLoading}>
<div className="flex flex-col gap-1" aria-busy="true" aria-live="polite">
- {['w-3/5', 'w-1/2', 'w-2/5'].map((width) => (
- <div key={width} className="flex items-center gap-2.5 rounded-lg px-2 py-2">
- <Skeleton className="size-4 shrink-0 rounded" />
- <Skeleton className={cn('h-4 rounded', width)} />
- </div>
- ))}
+ <div className="flex items-center gap-2.5 rounded-lg px-2 py-2">
+ <Skeleton className="size-4 shrink-0 rounded" />
+ <Skeleton className="h-4 w-3/5 rounded" />
+ </div>
+ <div className="flex items-center gap-2.5 rounded-lg px-2 py-2">
+ <Skeleton className="size-4 shrink-0 rounded" />
+ <Skeleton className="h-4 w-1/2 rounded" />
+ </div>
+ <div className="flex items-center gap-2.5 rounded-lg px-2 py-2">
+ <Skeleton className="size-4 shrink-0 rounded" />
+ <Skeleton className="h-4 w-2/5 rounded" />
+ </div>
</div>
</Collapse>
<Collapse open={!hasTools && !toolsLoading}>
diff --git a/client/src/components/SidePanel/Agents/Tools/ItemDialog/sections/ToolSection.tsx b/client/src/components/SidePanel/Agents/Tools/ItemDialog/sections/ToolSection.tsx
index e6311b6b92..211403de57 100644
--- a/client/src/components/SidePanel/Agents/Tools/ItemDialog/sections/ToolSection.tsx
+++ b/client/src/components/SidePanel/Agents/Tools/ItemDialog/sections/ToolSection.tsx
@@ -70,24 +70,25 @@ export default function ToolSection({ item }: Props) {
return (
<div className="flex flex-col gap-5">
{item.description ? (
- <p className="max-h-40 overflow-y-auto whitespace-pre-wrap text-sm leading-relaxed text-text-secondary">
+ <p className="text-text-secondary max-h-40 overflow-y-auto text-sm leading-relaxed whitespace-pre-wrap">
{item.description}
</p>
) : (
- <p className="text-sm italic text-text-tertiary">
+ <p className="text-text-tertiary text-sm italic">
{localize('com_ui_tools_no_description')}
</p>
)}
{showConfigured && (
- <div className="flex items-center justify-between rounded-xl border border-border-light bg-surface-secondary px-3 py-2.5">
- <span className="flex items-center gap-2 text-sm font-medium text-text-primary">
- <CheckCircle2 className="size-4 text-status-success" aria-hidden="true" />
+ <div className="border-border-light bg-surface-secondary flex items-center justify-between rounded-xl border px-3 py-2.5">
+ <span className="text-text-primary flex items-center gap-2 text-sm font-medium">
+ <CheckCircle2 className="text-status-success size-4" aria-hidden="true" />
{localize('com_ui_tools_info_configured')}
</span>
<Button
- variant="ghost"
+ variant="quiet"
+ size="xs"
onClick={() => setEditing(true)}
- className="h-auto rounded-md px-2 py-1 text-xs font-medium text-text-secondary"
+ className="h-auto px-2 py-1 font-medium"
>
{localize('com_ui_edit')}
</Button>
diff --git a/client/src/components/SidePanel/Agents/Tools/MarketplaceSidebar.tsx b/client/src/components/SidePanel/Agents/Tools/MarketplaceSidebar.tsx
index e926298252..519de87c9e 100644
--- a/client/src/components/SidePanel/Agents/Tools/MarketplaceSidebar.tsx
+++ b/client/src/components/SidePanel/Agents/Tools/MarketplaceSidebar.tsx
@@ -161,7 +161,7 @@ function SidebarItem({ icon, label, active, onClick, count }: SidebarEntry) {
<span className="flex size-4 shrink-0 items-center justify-center">{icon}</span>
<span className="flex-1 truncate">{label}</span>
{count !== undefined && count > 0 && (
- <span className="text-text-secondary text-[11px] tabular-nums">{count}</span>
+ <span className="text-text-secondary text-2xs tabular-nums">{count}</span>
)}
</button>
);
@@ -187,7 +187,7 @@ function SidebarChip({ icon, label, active, onClick, count }: SidebarEntry) {
<span className="flex size-4 shrink-0 items-center justify-center">{icon}</span>
<span>{label}</span>
{count !== undefined && count > 0 && (
- <span className="text-text-secondary text-[10px] tabular-nums">{count}</span>
+ <span className="text-text-secondary text-3xs tabular-nums">{count}</span>
)}
</button>
);
@@ -276,8 +276,8 @@ export function MarketplaceFilterBar(props: MarketplaceSidebarProps) {
render={
<Button
variant="outline"
- size="sm"
- className="touch:size-theme-control-touch h-8 w-8 shrink-0 justify-center p-0"
+ size="bare"
+ className="touch:size-theme-control-touch h-8 w-8 shrink-0"
aria-label={localize('com_ui_tools_create_new')}
>
<Plus className="size-4" aria-hidden="true" />
diff --git a/client/src/components/SidePanel/Agents/Tools/SkillsDialog.tsx b/client/src/components/SidePanel/Agents/Tools/SkillsDialog.tsx
index fe295a1341..af62bb4953 100644
--- a/client/src/components/SidePanel/Agents/Tools/SkillsDialog.tsx
+++ b/client/src/components/SidePanel/Agents/Tools/SkillsDialog.tsx
@@ -228,7 +228,7 @@ export default function SkillsDialog({ open, onOpenChange, agentId }: SkillsDial
onChange={(e) => setSearch(e.target.value)}
placeholder={localize('com_ui_search_skills')}
aria-label={localize('com_ui_search_skills')}
- className="h-[2.625rem] bg-transparent pl-9"
+ className="h-[2.625rem] pl-9"
/>
</div>
<CategoryFilter options={categoryOptions} value={category} onChange={setCategory} />
@@ -237,7 +237,7 @@ export default function SkillsDialog({ open, onOpenChange, agentId }: SkillsDial
return (
<OGDialog open={open} onOpenChange={onOpenChange}>
- <OGDialogContent className="border-border-medium w-11/12 max-w-[56.25rem] overflow-hidden rounded-2xl p-0 shadow-xl md:max-h-[92vh]">
+ <OGDialogContent className="border-border-medium w-11/12 max-w-[56.25rem] overflow-hidden p-0 shadow-xl md:max-h-[92vh]">
<OGDialogDescription className="sr-only">
{localize('com_ui_skills_dialog_description')}
</OGDialogDescription>
diff --git a/client/src/components/SidePanel/Agents/Tools/SkillsSection.tsx b/client/src/components/SidePanel/Agents/Tools/SkillsSection.tsx
index 04449c556d..686e60e2f4 100644
--- a/client/src/components/SidePanel/Agents/Tools/SkillsSection.tsx
+++ b/client/src/components/SidePanel/Agents/Tools/SkillsSection.tsx
@@ -417,7 +417,7 @@ export default function SkillsSection({ items, onInfo, onRemove, onAdd }: Props)
>
<Plus className="h-4 w-4" aria-hidden="true" />
<span className="text-xs">{localize('com_ui_skills_add_row')}</span>
- <span className="text-text-secondary text-[11px]">
+ <span className="text-text-secondary text-2xs">
{localize('com_ui_skills_empty_hint')}
</span>
</button>
diff --git a/client/src/components/SidePanel/Agents/Tools/ToolCard.tsx b/client/src/components/SidePanel/Agents/Tools/ToolCard.tsx
index a240f1315e..5522732065 100644
--- a/client/src/components/SidePanel/Agents/Tools/ToolCard.tsx
+++ b/client/src/components/SidePanel/Agents/Tools/ToolCard.tsx
@@ -137,10 +137,12 @@ function ToolCardImpl({
<p className="text-text-primary flex min-w-0 flex-1 items-center gap-1 text-sm font-semibold">
<span className="truncate">{name}</span>
{isNative && (
- <VerifiedIcon
- className="text-status-verified size-3.5 shrink-0"
- aria-label={localize('com_ui_tools_native')}
- />
+ <span className="text-status-verified shrink-0">
+ <VerifiedIcon
+ className="size-3.5"
+ aria-label={localize('com_ui_tools_native')}
+ />
+ </span>
)}
</p>
{selected && (
@@ -161,7 +163,7 @@ function ToolCardImpl({
<span className="truncate">{status.label}</span>
</p>
) : (
- <p className="text-text-secondary truncate text-[11px] tracking-wide uppercase">
+ <p className="text-text-secondary text-2xs truncate tracking-wide uppercase">
{kindLabel}
</p>
)}
@@ -177,7 +179,7 @@ function ToolCardImpl({
{(item.kind === 'action' && item.endpointCount > 0) || isPublicSkill || isSharedSkill ? (
<div className="mt-auto flex w-full flex-wrap items-center gap-1.5">
{item.kind === 'action' && item.endpointCount > 0 && (
- <span className="bg-surface-tertiary text-text-tertiary inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-[10px]">
+ <span className="bg-surface-tertiary text-text-tertiary text-3xs inline-flex items-center gap-1 rounded-full px-2 py-0.5">
{localize(
item.endpointCount === 1
? 'com_ui_tools_endpoint_count_one'
@@ -188,7 +190,7 @@ function ToolCardImpl({
)}
{isSharedSkill && skill && (
<span
- className="bg-surface-tertiary text-text-tertiary inline-flex max-w-[60%] items-center gap-1 rounded-full px-2 py-0.5 text-[10px]"
+ className="bg-surface-tertiary text-text-tertiary text-3xs inline-flex max-w-[60%] items-center gap-1 rounded-full px-2 py-0.5"
title={localize('com_ui_tools_shared_by', { name: skill.authorName })}
aria-label={localize('com_ui_tools_shared_by', { name: skill.authorName })}
>
@@ -198,7 +200,7 @@ function ToolCardImpl({
)}
{isPublicSkill && (
<span
- className="bg-surface-tertiary text-text-tertiary inline-flex items-center gap-1 rounded-full px-1.5 py-0.5 text-[10px]"
+ className="bg-surface-tertiary text-text-tertiary text-3xs inline-flex items-center gap-1 rounded-full px-1.5 py-0.5"
title={localize('com_ui_sr_public_skill')}
aria-label={localize('com_ui_sr_public_skill')}
>
diff --git a/client/src/components/SidePanel/Agents/Tools/ToolsMarketplaceDialog.tsx b/client/src/components/SidePanel/Agents/Tools/ToolsMarketplaceDialog.tsx
index b4d89e9043..4a0c66ae22 100644
--- a/client/src/components/SidePanel/Agents/Tools/ToolsMarketplaceDialog.tsx
+++ b/client/src/components/SidePanel/Agents/Tools/ToolsMarketplaceDialog.tsx
@@ -275,7 +275,7 @@ export default function ToolsMarketplaceDialog({
onChange={(e) => setSearch(e.target.value)}
placeholder={localize('com_ui_tools_marketplace_search')}
aria-label={localize('com_ui_tools_marketplace_search')}
- className="bg-transparent pl-9"
+ className="pl-9"
/>
</div>
</div>
diff --git a/client/src/components/SidePanel/Agents/Tools/ToolsSection.tsx b/client/src/components/SidePanel/Agents/Tools/ToolsSection.tsx
index 2d3c2cc44e..ee04642661 100644
--- a/client/src/components/SidePanel/Agents/Tools/ToolsSection.tsx
+++ b/client/src/components/SidePanel/Agents/Tools/ToolsSection.tsx
@@ -361,10 +361,10 @@ function SelectedSection({
return (
<div className="mb-3 flex flex-col">
<div className="mb-1 flex items-center justify-between">
- <label className="text-text-secondary block text-[11px] font-medium tracking-wide uppercase">
+ <label className="text-text-secondary text-2xs block font-medium tracking-wide uppercase">
{title}
{badge != null && (
- <span className="bg-surface-tertiary text-text-secondary ml-1.5 inline-flex h-4 min-w-[1rem] items-center justify-center rounded-full px-1.5 text-[10px] font-medium tracking-normal normal-case">
+ <span className="bg-surface-tertiary text-text-secondary text-3xs ml-1.5 inline-flex h-4 min-w-[1rem] items-center justify-center rounded-full px-1.5 font-medium tracking-normal normal-case">
{badge}
</span>
)}
@@ -387,7 +387,7 @@ function SelectedSection({
>
<Plus className="h-4 w-4" aria-hidden="true" />
<span className="text-xs">{emptyLabel}</span>
- <span className="text-text-secondary text-[11px]">{emptyHint}</span>
+ <span className="text-text-secondary text-2xs">{emptyHint}</span>
</button>
) : (
<ul className="flex flex-col gap-1.5">
diff --git a/client/src/components/SidePanel/Agents/Version/VersionButton.tsx b/client/src/components/SidePanel/Agents/Version/VersionButton.tsx
index 9b3337864e..a0a067a9ec 100644
--- a/client/src/components/SidePanel/Agents/Version/VersionButton.tsx
+++ b/client/src/components/SidePanel/Agents/Version/VersionButton.tsx
@@ -13,10 +13,11 @@ const VersionButton = ({ setActivePanel }: VersionButtonProps) => {
return (
<Button
variant="subtle"
+ size="dense"
shape="theme"
onClick={() => setActivePanel(Panel.version)}
aria-label={localize('com_ui_agent_version')}
- className="h-9 w-full px-3"
+ className="h-9 w-full"
>
<History className="h-4 w-4" strokeWidth={1.75} aria-hidden="true" />
{localize('com_ui_agent_version')}
diff --git a/client/src/components/SidePanel/Agents/Version/VersionItem.tsx b/client/src/components/SidePanel/Agents/Version/VersionItem.tsx
index 42a8603818..b5b125db22 100644
--- a/client/src/components/SidePanel/Agents/Version/VersionItem.tsx
+++ b/client/src/components/SidePanel/Agents/Version/VersionItem.tsx
@@ -137,7 +137,7 @@ export default function VersionItem({
{versionTitle}
</span>
{isActive && (
- <span className="bg-status-success-subtle text-status-success inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-[10px] font-semibold tracking-wide uppercase">
+ <span className="bg-status-success-subtle text-status-success text-3xs inline-flex items-center gap-1 rounded-full px-2 py-0.5 font-semibold tracking-wide uppercase">
<span
className="bg-status-success-strong size-1.5 rounded-full"
aria-hidden="true"
@@ -146,7 +146,7 @@ export default function VersionItem({
</span>
)}
{!isActive && isLatest && (
- <span className="bg-surface-tertiary text-text-secondary rounded-full px-2 py-0.5 text-[10px] font-semibold tracking-wide uppercase">
+ <span className="bg-surface-tertiary text-text-secondary text-3xs rounded-full px-2 py-0.5 font-semibold tracking-wide uppercase">
{localize('com_ui_latest')}
</span>
)}
@@ -165,10 +165,10 @@ export default function VersionItem({
side="left"
render={
<Button
- variant="ghost"
+ variant="quiet"
size="icon"
aria-label={localize('com_ui_agent_version_restore')}
- className="border-border-light text-text-secondary hover:border-border-medium size-7 shrink-0 rounded-lg border opacity-0 transition-all group-hover:opacity-100 focus-visible:opacity-100"
+ className="border-border-light hover:border-border-medium size-7 shrink-0 border opacity-0 transition-all group-hover:opacity-100 focus-visible:opacity-100"
>
<RotateCcw className="h-3.5 w-3.5" strokeWidth={1.75} aria-hidden="true" />
</Button>
diff --git a/client/src/components/SidePanel/ArtifactsPanel.tsx b/client/src/components/SidePanel/ArtifactsPanel.tsx
index 8200d1b800..82f473ca5a 100644
--- a/client/src/components/SidePanel/ArtifactsPanel.tsx
+++ b/client/src/components/SidePanel/ArtifactsPanel.tsx
@@ -36,9 +36,7 @@ const ArtifactsPanel = memo(function ArtifactsPanel({
return (
<>
- {panel != null && (
- <ResizableHandleAlt withHandle className="bg-border-medium text-text-primary" />
- )}
+ {panel != null && <ResizableHandleAlt withHandle className="text-text-primary" />}
<ResizablePanel
defaultSize="50"
maxSize="70"
diff --git a/eslint-suppressions.json b/eslint-suppressions.json
index 617ccfe3bf..6a792e4480 100644
--- a/eslint-suppressions.json
+++ b/eslint-suppressions.json
@@ -1049,71 +1049,37 @@
"count": 1
},
"shadcn/no-restyle": {
- "count": 18
- }
- },
- "client/src/components/SidePanel/Agents/ActionsTable/Columns.tsx": {
- "shadcn/no-arbitrary-values": {
- "count": 1
- }
- },
- "client/src/components/SidePanel/Agents/ActionsTable/Skeleton.tsx": {
- "shadcn/no-arbitrary-values": {
- "count": 1
- }
- },
- "client/src/components/SidePanel/Agents/ActionsTable/Table.tsx": {
- "shadcn/no-arbitrary-values": {
- "count": 1
- }
- },
- "client/src/components/SidePanel/Agents/Advanced/AdvancedButton.tsx": {
- "shadcn/no-restyle": {
- "count": 1
+ "count": 14
}
},
"client/src/components/SidePanel/Agents/Advanced/AdvancedPanel.tsx": {
"shadcn/no-restyle": {
- "count": 17
+ "count": 8
}
},
"client/src/components/SidePanel/Agents/Advanced/AgentHandoffs.tsx": {
"shadcn/no-restyle": {
- "count": 11
+ "count": 1
}
},
"client/src/components/SidePanel/Agents/Advanced/AgentList.tsx": {
- "shadcn/no-arbitrary-values": {
- "count": 1
- },
"shadcn/no-restyle": {
- "count": 11
- }
- },
- "client/src/components/SidePanel/Agents/Advanced/MaxAgentSteps.tsx": {
- "shadcn/no-arbitrary-values": {
- "count": 1
+ "count": 8
}
},
"client/src/components/SidePanel/Agents/Advanced/ui.tsx": {
- "shadcn/no-arbitrary-values": {
- "count": 3
- },
"shadcn/no-restyle": {
- "count": 8
+ "count": 4
}
},
"client/src/components/SidePanel/Agents/AgentConfig.tsx": {
- "shadcn/no-arbitrary-values": {
- "count": 3
- },
"shadcn/no-restyle": {
- "count": 9
+ "count": 6
}
},
"client/src/components/SidePanel/Agents/AgentFooter.tsx": {
"shadcn/no-restyle": {
- "count": 4
+ "count": 1
}
},
"client/src/components/SidePanel/Agents/AgentSelect.tsx": {
@@ -1122,73 +1088,28 @@
}
},
"client/src/components/SidePanel/Agents/AgentTool.tsx": {
- "shadcn/no-inline-styles": {
- "count": 5
- },
"shadcn/no-restyle": {
- "count": 9
- }
- },
- "client/src/components/SidePanel/Agents/Background.tsx": {
- "shadcn/no-restyle": {
- "count": 1
- }
- },
- "client/src/components/SidePanel/Agents/Code/Background.tsx": {
- "shadcn/no-restyle": {
- "count": 1
- }
- },
- "client/src/components/SidePanel/Agents/Code/Files.tsx": {
- "shadcn/no-inline-styles": {
- "count": 1
- }
- },
- "client/src/components/SidePanel/Agents/Code/Settings.tsx": {
- "shadcn/no-restyle": {
- "count": 1
+ "count": 7
}
},
"client/src/components/SidePanel/Agents/FileContext.tsx": {
- "shadcn/no-arbitrary-values": {
- "count": 3
- },
- "shadcn/no-inline-styles": {
- "count": 1
- },
"shadcn/no-restyle": {
"count": 14
}
},
- "client/src/components/SidePanel/Agents/FileSearch.tsx": {
- "shadcn/no-inline-styles": {
- "count": 1
- }
- },
- "client/src/components/SidePanel/Agents/Images.tsx": {
- "shadcn/no-inline-styles": {
- "count": 3
- }
- },
"client/src/components/SidePanel/Agents/MCPIcon.tsx": {
- "shadcn/no-inline-styles": {
- "count": 1
- },
"shadcn/no-restyle": {
- "count": 9
+ "count": 7
}
},
"client/src/components/SidePanel/Agents/MCPToolItem.tsx": {
"shadcn/no-restyle": {
- "count": 4
+ "count": 2
}
},
"client/src/components/SidePanel/Agents/ModelPanel.tsx": {
- "shadcn/no-arbitrary-values": {
- "count": 2
- },
"shadcn/no-restyle": {
- "count": 15
+ "count": 12
}
},
"client/src/components/SidePanel/Agents/OptionToggle.tsx": {
@@ -1200,68 +1121,38 @@
}
},
"client/src/components/SidePanel/Agents/Search/Action.tsx": {
- "shadcn/no-restyle": {
- "count": 2
- }
- },
- "client/src/components/SidePanel/Agents/Tools/CategoryFilter.tsx": {
- "shadcn/no-restyle": {
- "count": 4
- }
- },
- "client/src/components/SidePanel/Agents/Tools/ItemDialog/ItemDialog.tsx": {
"shadcn/no-restyle": {
"count": 1
}
},
- "client/src/components/SidePanel/Agents/Tools/ItemDialog/ItemDialogHeader.tsx": {
- "shadcn/no-arbitrary-values": {
- "count": 1
- },
+ "client/src/components/SidePanel/Agents/Tools/CategoryFilter.tsx": {
"shadcn/no-restyle": {
- "count": 1
+ "count": 2
}
},
"client/src/components/SidePanel/Agents/Tools/ItemDialog/sections/McpSection.tsx": {
- "shadcn/no-arbitrary-values": {
- "count": 1
- },
"shadcn/no-restyle": {
- "count": 4
- },
- "shadcn/require-static-classes": {
- "count": 1
+ "count": 3
}
},
"client/src/components/SidePanel/Agents/Tools/ItemDialog/sections/ToolSection.tsx": {
"shadcn/no-restyle": {
- "count": 6
+ "count": 3
}
},
"client/src/components/SidePanel/Agents/Tools/MarketplaceSidebar.tsx": {
- "shadcn/no-arbitrary-values": {
- "count": 2
- },
"shadcn/no-restyle": {
- "count": 3
+ "count": 2
}
},
"client/src/components/SidePanel/Agents/Tools/SkillsDialog.tsx": {
"shadcn/no-restyle": {
- "count": 7
+ "count": 5
}
},
"client/src/components/SidePanel/Agents/Tools/SkillsSection.tsx": {
"shadcn/no-arbitrary-values": {
- "count": 8
- }
- },
- "client/src/components/SidePanel/Agents/Tools/ToolCard.tsx": {
- "shadcn/no-arbitrary-values": {
- "count": 4
- },
- "shadcn/no-restyle": {
- "count": 1
+ "count": 7
}
},
"client/src/components/SidePanel/Agents/Tools/ToolRow.tsx": {
@@ -1271,25 +1162,12 @@
},
"client/src/components/SidePanel/Agents/Tools/ToolsMarketplaceDialog.tsx": {
"shadcn/no-restyle": {
- "count": 6
- }
- },
- "client/src/components/SidePanel/Agents/Tools/ToolsSection.tsx": {
- "shadcn/no-arbitrary-values": {
- "count": 3
- }
- },
- "client/src/components/SidePanel/Agents/Version/VersionButton.tsx": {
- "shadcn/no-restyle": {
- "count": 1
+ "count": 5
}
},
"client/src/components/SidePanel/Agents/Version/VersionItem.tsx": {
- "shadcn/no-arbitrary-values": {
- "count": 2
- },
"shadcn/no-restyle": {
- "count": 9
+ "count": 7
}
},
"client/src/components/SidePanel/Agents/Version/VersionPanel.tsx": {
@@ -1299,7 +1177,7 @@
},
"client/src/components/SidePanel/ArtifactsPanel.tsx": {
"shadcn/no-restyle": {
- "count": 2
+ "count": 1
}
},
"client/src/components/SidePanel/Builder/Action.tsx": {