Watch
0
0
Fork
You've already forked hyperhive
0

swarm ui: the terminal's status badges overhaul

The connection is a light on the agent's icon instead of a "live" badge, the
model and the effort are one badge, the context badge has an icon, subagents
and a new bash tasks badge are an icon and a count, and an agent's tab shows a
drag grip on hover.

It also removes two things the overhaul replaces: the cost badge, and the
"split" badge with its menu in group panes (splitting is by dragging a tab, or
from the subagents list).
This commit is contained in:
iris 2026-11-16 23:40:59 +01:00 • committed by mara
commit 3a846c8c45
2 changed files with 430 additions and 199 deletions

View file

@ -200,6 +200,33 @@
.shell-tab-active {
border-color: var(--pink);
}
/* A tab that can be dragged onto a terminal to split it shows a grip in a gutter
of its own on hover, so the drag is discoverable. The gutter is part of the
padding, so the tab does not change size when the grip appears. */
.shell-tab-draggable {
position: relative;
padding-left: 1.3em;
cursor: grab;
}
.shell-tab-grip {
position: absolute;
left: 0.35em;
top: 50%;
display: inline-flex;
color: var(--muted);
opacity: 0;
transform: translateY(-50%);
transition: opacity 0.15s ease;
pointer-events: none;
}
.shell-tab-draggable:hover .shell-tab-grip {
opacity: 0.9;
}
@media (prefers-reduced-motion: reduce) {
.shell-tab-grip {
transition: none;
}
}
.shell-tab-link {
color: var(--muted);
text-decoration: none;

View file

@ -35,6 +35,7 @@ import { useHideDebug } from "./useHideDebug.js";
import { SettingsMenu } from "@hive/shared/settings-menu.js";
import { HideDebugSetting } from "@hive/shared/hide-debug-setting.js";
import { ShowThinkingSetting } from "@hive/shared/show-thinking-setting.js";
import { GripIcon } from "@hive/shared/icons.js";
import { ExpandDetailsSetting } from "@hive/shared/expand-details-setting.js";
import { useApplyThemeOverride } from "@hive/shared/theme-apply.js";
import { useApplyMotionOverride } from "@hive/shared/motion-apply.js";
@ -174,13 +175,25 @@ function DynamicTabLink({
const [editing, setEditing] = useState(false);
return (
<span
class={"shell-tab" + (active ? " shell-tab-active" : "")}
class={
"shell-tab" +
(active ? " shell-tab-active" : "") +
(agent !== undefined ? " shell-tab-draggable" : "")
}
title={
agent === undefined ? undefined : "drag onto a terminal to split it"
}
draggable={agent !== undefined && !editing}
onDragStart={
agent === undefined ? undefined : (e) => startAgentDrag(e, agent)
}
onDragEnd={agent === undefined ? undefined : endAgentDrag}
>
{agent !== undefined && (
<span class="shell-tab-grip" aria-hidden="true">
<GripIcon />
</span>
)}
{editing && onRename !== undefined ? (
<input
class="shell-tab-rename"