From f6b3c5d004efdd617f44167ee8ccbdd8eb9a1e2f Mon Sep 17 00:00:00 2001 From: Taylor Ho Date: Wed, 20 May 2026 08:29:18 -0700 Subject: [PATCH] Move Add agent trigger to Members sidebar header row MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a compact '+' icon button immediately left of the ellipsis (⋯) bulk-actions menu in the Bots section header of the Members side pane. Remove the old full-width 'Add agent' button from below the bots list. The trigger opens the same QuickAddAgentPopover as before — just in a more discoverable, compact location matching the ⋯ button style. --- .../features/channels/ui/MembersSidebar.tsx | 79 +++++++++---------- .../ui/MembersSidebarAgentControls.tsx | 2 +- 2 files changed, 40 insertions(+), 41 deletions(-) diff --git a/desktop/src/features/channels/ui/MembersSidebar.tsx b/desktop/src/features/channels/ui/MembersSidebar.tsx index f3fa835926..22c052620d 100644 --- a/desktop/src/features/channels/ui/MembersSidebar.tsx +++ b/desktop/src/features/channels/ui/MembersSidebar.tsx @@ -281,23 +281,45 @@ export function MembersSidebar({ {bots.length} - {hasControllableManagedBots ? ( - { - void handleRemoveAll(); - }} - onRespawnAll={() => { - void handleRespawnAll(); - }} - onStopAll={() => { - void handleStopAll(); - }} - /> - ) : null} +
+ {canAddAgents ? ( + { + setIsSidebarQuickAddOpen(false); + onOpenAddBotDialog?.(); + }} + > + + + ) : null} + {hasControllableManagedBots ? ( + { + void handleRemoveAll(); + }} + onRespawnAll={() => { + void handleRespawnAll(); + }} + onStopAll={() => { + void handleStopAll(); + }} + /> + ) : null} +
{bots.length > 0 ? ( @@ -310,29 +332,6 @@ export function MembersSidebar({

)}
- {canAddAgents ? ( - { - setIsSidebarQuickAddOpen(false); - onOpenAddBotDialog?.(); - }} - > - - - ) : null} {changeRoleError ? ( diff --git a/desktop/src/features/channels/ui/MembersSidebarAgentControls.tsx b/desktop/src/features/channels/ui/MembersSidebarAgentControls.tsx index 303f6748ac..6aa925dc1d 100644 --- a/desktop/src/features/channels/ui/MembersSidebarAgentControls.tsx +++ b/desktop/src/features/channels/ui/MembersSidebarAgentControls.tsx @@ -31,7 +31,7 @@ export function MembersSidebarAgentControls({