copy(agents): expand processor type descriptions

This commit is contained in:
RockChinQ
2026-08-27 15:02:02 +08:00
parent a9b24e59ec
commit 91f484e0ce
@@ -82,13 +82,13 @@ export default function AgentCreateContent({
kind: 'agent' as const, kind: 'agent' as const,
icon: Bot, icon: Bot,
title: t('agents.agentType'), title: t('agents.agentType'),
helper: t('agents.allEvents'), description: t('agents.agentTypeDescription'),
}, },
{ {
kind: 'pipeline' as const, kind: 'pipeline' as const,
icon: Workflow, icon: Workflow,
title: t('agents.pipelineType'), title: t('agents.pipelineType'),
helper: t('agents.messageEventsOnly'), description: t('agents.pipelineTypeDescription'),
}, },
]; ];
@@ -138,18 +138,18 @@ export default function AgentCreateContent({
key={option.kind} key={option.kind}
value={option.kind} value={option.kind}
data-processor-kind={option.kind} data-processor-kind={option.kind}
aria-label={`${option.title} ${option.helper}`} aria-label={`${option.title} ${option.description}`}
className="h-auto min-h-24 w-full justify-start gap-3 rounded-lg border px-4 py-4 text-left shadow-none hover:bg-muted/40 data-[state=on]:border-[#2288ee]/50 data-[state=on]:bg-blue-50/60 data-[state=on]:text-foreground data-[state=on]:shadow-none dark:data-[state=on]:border-blue-500/50 dark:data-[state=on]:bg-blue-500/10" className="h-auto min-h-28 w-full items-start justify-start gap-3 rounded-lg border px-4 py-4 text-left whitespace-normal shadow-none hover:bg-muted/40 data-[state=on]:border-[#2288ee]/50 data-[state=on]:bg-blue-50/60 data-[state=on]:text-foreground data-[state=on]:shadow-none dark:data-[state=on]:border-blue-500/50 dark:data-[state=on]:bg-blue-500/10"
> >
<span className="flex size-9 shrink-0 items-center justify-center rounded-md border bg-background text-[#2288ee] shadow-xs"> <span className="flex size-9 shrink-0 items-center justify-center rounded-md border bg-background text-[#2288ee] shadow-xs">
<Icon className="size-4" /> <Icon className="size-4" />
</span> </span>
<span className="min-w-0 space-y-1"> <span className="min-w-0 space-y-1.5">
<span className="block text-sm font-medium"> <span className="block text-sm font-medium">
{option.title} {option.title}
</span> </span>
<span className="block text-xs font-normal text-muted-foreground"> <span className="block text-sm font-normal leading-relaxed text-muted-foreground">
{option.helper} {option.description}
</span> </span>
</span> </span>
</ToggleGroupItem> </ToggleGroupItem>