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:
parent
e9e71a09ac
commit
3a846c8c45
1 changed files with 430 additions and 199 deletions
|
|
@ -14,8 +14,10 @@ import "./BadgePopover.css";
|
|||
export function BadgePopover({
|
||||
label,
|
||||
value,
|
||||
icon,
|
||||
tone,
|
||||
title,
|
||||
ariaLabel,
|
||||
popoverLabel,
|
||||
children,
|
||||
}: {
|
||||
|
|
@ -23,9 +25,13 @@ export function BadgePopover({
|
|||
label?: ComponentChildren;
|
||||
/** What the badge says, e.g. "7 granted". */
|
||||
value: ComponentChildren;
|
||||
/** A glyph before the value. */
|
||||
icon?: ComponentChildren;
|
||||
tone?: BadgeTone;
|
||||
/** Tooltip on the badge: what clicking it does. */
|
||||
title?: string;
|
||||
/** The badge's accessible name, when its text is not enough of one. */
|
||||
ariaLabel?: string;
|
||||
/** `aria-label` of the floating box. */
|
||||
popoverLabel: string;
|
||||
children: ComponentChildren;
|
||||
|
|
@ -38,8 +44,10 @@ export function BadgePopover({
|
|||
<Badge
|
||||
label={label}
|
||||
value={value}
|
||||
icon={icon}
|
||||
tone={tone}
|
||||
title={title}
|
||||
ariaLabel={ariaLabel}
|
||||
expanded={open}
|
||||
onClick={() => setOpen((o) => !o)}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue