Skip to content

Commit 6d04d27

Browse files
wesbillmanRick
andauthored
Show team count separately in channel template rows (#2404)
Signed-off-by: Wes <[email protected]> Co-authored-by: Rick <738ae2df545ecddd7788884357e8ab6842c5b10389b980a58aad43b424db74d9@sprout-oss.stage.blox.sqprod.co>
1 parent d3757f5 commit 6d04d27

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

‎desktop/src/features/settings/ui/ChannelTemplatesSettingsCard.tsx‎

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {
2+
Bot,
23
Copy,
34
MessageSquare,
45
MoreHorizontal,
@@ -199,8 +200,8 @@ function TemplateRow({
199200
onDuplicate: () => void;
200201
onDelete: () => void;
201202
}) {
202-
const agentCount =
203-
template.agents.personas.length + template.agents.teams.length;
203+
const personaCount = template.agents.personas.length;
204+
const teamCount = template.agents.teams.length;
204205

205206
return (
206207
<div className="group flex items-center gap-3 rounded-lg px-3 py-2.5 hover:bg-muted/50">
@@ -219,10 +220,16 @@ function TemplateRow({
219220
</p>
220221
) : null}
221222
<div className="mt-1 flex items-center gap-3 text-xs text-muted-foreground">
222-
{agentCount > 0 ? (
223+
{personaCount > 0 ? (
224+
<span className="flex items-center gap-1">
225+
<Bot className="h-4 w-4" />
226+
{personaCount} {personaCount === 1 ? "agent" : "agents"}
227+
</span>
228+
) : null}
229+
{teamCount > 0 ? (
223230
<span className="flex items-center gap-1">
224231
<Users className="h-4 w-4" />
225-
{agentCount} {agentCount === 1 ? "agent" : "agents"}
232+
{teamCount} {teamCount === 1 ? "team" : "teams"}
226233
</span>
227234
) : null}
228235
{template.canvasTemplate ? (

0 commit comments

Comments
 (0)