diff --git a/packages/webui/components/settings/AgentsSettings.tsx b/packages/webui/components/settings/AgentsSettings.tsx index 52e3d1cc..73dda80e 100644 --- a/packages/webui/components/settings/AgentsSettings.tsx +++ b/packages/webui/components/settings/AgentsSettings.tsx @@ -206,6 +206,7 @@ export function AgentsSettings({ teamId }: AgentsSettingsProps) { {AGENT_TYPES.map((section) => { const typeAgents = agents.filter((a) => a.type === section.type) const Icon = section.icon + const isSingleAgentType = section.type === 'autofill' || section.type === 'embedding' return (
toggleSection(section.type)} + className={cn( + 'px-6 py-4 flex items-center justify-between', + !isSingleAgentType && 'cursor-pointer hover:bg-muted/50 transition-colors', + )} + onClick={!isSingleAgentType ? () => toggleSection(section.type) : undefined} >
-

{section.label} Agents

- - {typeAgents.length} - +

+ {section.label} {isSingleAgentType ? 'Agent' : 'Agents'} +

+ {!isSingleAgentType && ( + + {typeAgents.length} + + )}
- {!( - (section.type === 'autofill' || section.type === 'embedding') && - typeAgents.length > 0 - ) && ( + {!(isSingleAgentType && typeAgents.length > 0) && ( )} - + {!isSingleAgentType && ( + + )}
- {expandedSections[section.type] && ( + {(isSingleAgentType || expandedSections[section.type]) && (
{typeAgents.map((agent) => ( @@ -338,7 +345,7 @@ export function AgentsSettings({ teamId }: AgentsSettingsProps) {

- No {section.label} agents found + No {section.label} {isSingleAgentType ? 'agent' : 'agents'} found