Revert "Move Add agent button to sit immediately left of settings gear"

This reverts commit bde1fc270ffb9e988407e8f0f4e159418483f35b.
This commit is contained in:
Taylor Ho
2026-05-20 08:25:53 -07:00
parent 0bb63ae2a0
commit c1bc5dcdb3
2 changed files with 20 additions and 25 deletions

View File

@@ -89,6 +89,25 @@ export function ChannelMembersBar({
return (
<React.Fragment>
<div className="flex items-center gap-1">
<QuickAddAgentPopover
channelId={channel.id}
open={isQuickAddOpen}
onOpenChange={setIsQuickAddOpen}
onMoreOptions={() => setIsAddBotOpen(true)}
>
<Button
aria-label="Add agent"
className="h-7 w-7 rounded-full"
data-testid="channel-add-bot-trigger"
disabled={!canAddAgents}
size="icon"
type="button"
variant="outline"
>
<Plus className="h-3 w-3" />
</Button>
</QuickAddAgentPopover>
<HuddleIndicator
className="h-7 w-7"
channelId={channel.id}
@@ -119,25 +138,6 @@ export function ChannelMembersBar({
</span>
</Button>
<QuickAddAgentPopover
channelId={channel.id}
open={isQuickAddOpen}
onOpenChange={setIsQuickAddOpen}
onMoreOptions={() => setIsAddBotOpen(true)}
>
<Button
aria-label="Add agent"
className="h-7 w-7 rounded-full"
data-testid="channel-add-bot-trigger"
disabled={!canAddAgents}
size="icon"
type="button"
variant="outline"
>
<Plus className="h-3 w-3" />
</Button>
</QuickAddAgentPopover>
<Button
aria-label="Manage channel"
className="h-7 w-7 rounded-full"

View File

@@ -304,7 +304,6 @@ export function QuickAddAgentPopover({
<PopoverContent align="end" className="w-72 p-0" sideOffset={6}>
<div
className="flex max-h-80 flex-col"
role="menu"
onKeyDown={(e) => {
const container = e.currentTarget;
const buttons = Array.from(
@@ -345,11 +344,7 @@ export function QuickAddAgentPopover({
No agents available.
</div>
) : (
<div
aria-label="Available agents"
className="py-1"
role="listbox"
>
<div aria-label="Available agents" className="py-1" role="listbox">
{items.map((item) => {
const itemKey = getItemKey(item);
const isInChannel = item.kind === "running-in-channel";