mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-14 18:10:39 +09:00
fix(ui): dim paused agents in list and org chart views
Paused agents were visually identical to active agents in both the list view and org chart, making it hard to distinguish them at a glance. Add opacity-50 to agent rows when pausedAt is set. Closes #2199
This commit is contained in:
parent
ca8d35fd99
commit
045a3d54b9
1 changed files with 2 additions and 1 deletions
|
|
@ -234,6 +234,7 @@ export function Agents() {
|
|||
title={agent.name}
|
||||
subtitle={`${roleLabels[agent.role] ?? agent.role}${agent.title ? ` - ${agent.title}` : ""}`}
|
||||
to={agentUrl(agent)}
|
||||
className={agent.pausedAt ? "opacity-50" : ""}
|
||||
leading={
|
||||
<span className="relative flex h-2.5 w-2.5">
|
||||
<span
|
||||
|
|
@ -329,7 +330,7 @@ function OrgTreeNode({
|
|||
<div style={{ paddingLeft: depth * 24 }}>
|
||||
<Link
|
||||
to={agent ? agentUrl(agent) : `/agents/${node.id}`}
|
||||
className="flex items-center gap-3 px-3 py-2 hover:bg-accent/30 transition-colors w-full text-left no-underline text-inherit"
|
||||
className={cn("flex items-center gap-3 px-3 py-2 hover:bg-accent/30 transition-colors w-full text-left no-underline text-inherit", agent?.pausedAt && "opacity-50")}
|
||||
>
|
||||
<span className="relative flex h-2.5 w-2.5 shrink-0">
|
||||
<span className={`absolute inline-flex h-full w-full rounded-full ${statusColor}`} />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue