swarm-ui: select a pane's name badge in a terminal group to open the agent's details
This commit is contained in:
parent
91e2d26133
commit
8e2844ec92
1 changed files with 73 additions and 19 deletions
|
|
@ -16,7 +16,7 @@ import { CloseIcon, ExpandIcon } from "@hive/shared/icons.js";
|
|||
import { SubagentsMenu } from "../../agent/terminal/SubagentsMenu.js";
|
||||
import { AgentTermPreview } from "../../agent/terminal/AgentTermPreview.js";
|
||||
import { BashTasksMenu } from "../../agent/terminal/BashTasksMenu.js";
|
||||
import { LiveAgentIcon } from "../../agent/terminal/ConnectionDot.js";
|
||||
import { GroupPaneName } from "../../agent/terminal/GroupPaneName.js";
|
||||
import { termPaths } from "../../agent/terminal/term-paths.js";
|
||||
import {
|
||||
agentsIn,
|
||||
|
|
@ -29,7 +29,6 @@ import {
|
|||
splitKey,
|
||||
splitPane,
|
||||
} from "../../agent/terminal/split-layout.js";
|
||||
import { endAgentDrag, startAgentDrag } from "../../agent/terminal/termDrag.js";
|
||||
import { fetchJson, usePolled } from "../../ui/polled/usePolled.js";
|
||||
import { useTermGroups } from "../../agent/terminal/useTermGroups.js";
|
||||
import { useDynamicTabs } from "../../shell/useDynamicTabs.js";
|
||||
|
|
@ -113,18 +112,11 @@ export function AgentGroupPage({
|
|||
fullHeight
|
||||
leading={(connection) => (
|
||||
<>
|
||||
<span
|
||||
class="ui-agent-group-grip"
|
||||
draggable
|
||||
title={`drag ${key} onto another pane to move it`}
|
||||
onDragStart={(e) => startAgentDrag(e, key)}
|
||||
onDragEnd={endAgentDrag}
|
||||
>
|
||||
<Badge
|
||||
icon={<LiveAgentIcon name={agent} connection={connection} />}
|
||||
value={key}
|
||||
/>
|
||||
</span>
|
||||
<GroupPaneName
|
||||
paneKey={key}
|
||||
agent={agent}
|
||||
connection={connection}
|
||||
/>
|
||||
<SubagentsMenu
|
||||
key={agent}
|
||||
agentName={agent}
|
||||
|
|
|
|||
Loading…
Reference in a new issue