swarm-ui: a maximize button on each pane of a terminal group opens that agent's own terminal
This commit is contained in:
parent
7e2580ed69
commit
5665bbf827
1 changed files with 11 additions and 1 deletions
|
|
@ -10,6 +10,7 @@
|
|||
import { useEffect } from "preact/hooks";
|
||||
import { useLocation, type RouteComponentProps } from "wouter-preact";
|
||||
import { Badge } from "@hive/shared/badge.js";
|
||||
import { ExpandIcon } from "@hive/shared/icons.js";
|
||||
import { AgentIcon } from "../../agent/AgentIcon.js";
|
||||
import {
|
||||
AgentTermPreview,
|
||||
|
|
@ -158,6 +159,14 @@ export function AgentGroupPage({
|
|||
groups.update(id, (r) => splitPane(r, agent, other, side))
|
||||
}
|
||||
/>
|
||||
<Badge
|
||||
icon={<ExpandIcon />}
|
||||
value="maximize"
|
||||
title={`open ${agent}'s terminal on its own`}
|
||||
onClick={() =>
|
||||
open({ href: termPaths(agent).page, label: agent })
|
||||
}
|
||||
/>
|
||||
<Badge
|
||||
variant="quiet"
|
||||
value="×"
|
||||
|
|
|
|||
Loading…
Reference in a new issue