agent page: consolidate alive/thinking/paused into one status badge
mara, #3757: fold the separate alive badge into the turn-state badge, with pause/resume + cancel-turn moved into its dropdown. Cancel-turn is click-again-to-confirm, not a modal. model/effort/ctx/cost stay as separate badges — not asked to fold those in too.
This commit is contained in:
parent
d6ca52535f
commit
1e4399d49e
5 changed files with 135 additions and 71 deletions
|
|
@ -23,6 +23,8 @@ export interface DropdownOption {
|
|||
label: ComponentChildren;
|
||||
/** Optional dim secondary text, e.g. "sonnet (balanced)". */
|
||||
description?: ComponentChildren;
|
||||
/** Red-toned row for a destructive action (e.g. cancel turn), not a picker option. */
|
||||
danger?: boolean;
|
||||
}
|
||||
|
||||
export interface DropdownProps {
|
||||
|
|
@ -67,7 +69,11 @@ export function Dropdown({ open, options, activeValue, onSelect, onClose, label
|
|||
key={opt.value}
|
||||
role="menuitemradio"
|
||||
aria-checked={opt.value === activeValue}
|
||||
class={'ui-dropdown-item' + (opt.value === activeValue ? ' ui-dropdown-item-active' : '')}
|
||||
class={
|
||||
'ui-dropdown-item' +
|
||||
(opt.value === activeValue ? ' ui-dropdown-item-active' : '') +
|
||||
(opt.danger ? ' ui-dropdown-item-danger' : '')
|
||||
}
|
||||
onClick={() => onSelect(opt.value)}
|
||||
>
|
||||
<span class="ui-dropdown-item-label">{opt.label}</span>
|
||||
|
|
|
|||
Loading…
Reference in a new issue