From 7301b00cb2763e28c10074ab4896f2b848708c35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Tue, 21 Apr 2026 14:38:53 -0400 Subject: [PATCH] fix(design): actually apply org chart color-bar cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous commit 86e9c21 only caught the heartbeat icon color — the main block of edits silently failed to match (comment block broke the exact-string diff). This commit lands the full cleanup that commit 86e9c21 claimed: - Drop the rounded-t [4px bg-primary | 2px bg-border] rank bar. - Drop the isRunning border-[color:var(--primary)] override and the success-tinted box-shadow glow. - Switch hover from shadow-lg + translate-y to hover:bg-muted/30. - Switch active/running avatar circle from bg-success-muted / text-success to bg-accent / text-primary. - Move avatar initials from font-bold to font-semibold. - Drop the isRoot / stale rank-bar comment block. Error and pending states keep their destructive borders. Typecheck and build:verify clean. --- src/renderer/components/organization/OrgChart.tsx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/renderer/components/organization/OrgChart.tsx b/src/renderer/components/organization/OrgChart.tsx index a9b9a1bd..4ae49bf3 100644 --- a/src/renderer/components/organization/OrgChart.tsx +++ b/src/renderer/components/organization/OrgChart.tsx @@ -131,18 +131,11 @@ export function OrgChart({ agents, connectors, onSelectAgent }: { agents: AgentR const isActive = node.agent.status === "active" || isRunning; const isError = node.agent.status === "error"; const isPending = node.agent.status === "pending_approval"; - // Binary hierarchy: the root (no reportsTo) gets a bold primary bar; - // everyone else gets a hairline neutral bar. Managerial rank is - // already communicated by tree position — duplicating it via a - // color (previously "warning" orange, which read as an alert - // rather than a rank) was misleading. - const isRoot = !node.agent.reportsTo; return ( -
onSelectAgent?.(node.agent.id)} onKeyDown={(e) => { if (e.key === "Enter" || e.key === " ") { e.preventDefault(); onSelectAgent?.(node.agent.id); } }}> -
+
onSelectAgent?.(node.agent.id)} onKeyDown={(e) => { if (e.key === "Enter" || e.key === " ") { e.preventDefault(); onSelectAgent?.(node.agent.id); } }}>
-
{initials}
+
{initials}
{isRunning ? (