Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(ui): soften HubSidebar styling and improve UX

Naiyuan Qing3190be60c3ad
diff --git a/apps/web/app/components/hub-sidebar.tsx b/apps/web/app/components/hub-sidebar.tsx
index d71c897e2b..9120ff5c27 100644
--- a/apps/web/app/components/hub-sidebar.tsx
+++ b/apps/web/app/components/hub-sidebar.tsx
@@ -17,10 +17,10 @@ import { useHub } from "../hooks/use-hub"
import { useActiveAgent } from "../hooks/use-active-agent"
const STATUS_DOT: Record<string, string> = {
- connected: "bg-green-500",
- loading: "bg-yellow-500 animate-pulse",
- error: "bg-red-500",
- idle: "bg-muted-foreground",
+ connected: "bg-green-500/60",
+ loading: "bg-yellow-500/50 animate-pulse",
+ error: "bg-red-500/60",
+ idle: "bg-muted-foreground/50",
}
const STATUS_LABEL: Record<string, string> = {
@@ -42,11 +42,11 @@ export function HubSidebar() {
<SidebarGroupContent>
<div className="flex items-center gap-2 px-2 py-1 text-sm">
<span className={`size-2 rounded-full shrink-0 ${STATUS_DOT[status]}`} />
- <span className="text-muted-foreground">{STATUS_LABEL[status]}</span>
+ <span className="text-muted-foreground/70 text-xs">{STATUS_LABEL[status]}</span>
</div>
{status === "connected" && hub && (
- <div className="px-2 text-xs text-muted-foreground font-mono truncate">
- {hub.hubId.slice(0, 8)}...
+ <div className="px-2 text-xs text-muted-foreground/50 font-mono truncate">
+ {hub.hubId}
</div>
)}
{status === "error" && (
@@ -68,7 +68,7 @@ export function HubSidebar() {
<SidebarGroupContent>
<SidebarMenu>
{agents.length === 0 && (
- <div className="px-2 py-2 text-xs text-muted-foreground">
+ <div className="px-2 py-2 text-xs text-muted-foreground/60">
No agents
</div>
)}
@@ -77,18 +77,19 @@ export function HubSidebar() {
<SidebarMenuButton
isActive={agent.id === activeAgentId}
onClick={() => setActiveAgentId(agent.id)}
- className="font-mono text-xs"
+ className="font-mono text-xs truncate"
>
- {agent.id.slice(0, 8)}...
+ {agent.id}
</SidebarMenuButton>
<SidebarMenuAction
+ showOnHover
onClick={() => {
if (activeAgentId === agent.id) setActiveAgentId(null)
deleteAgent(agent.id)
}}
title="Delete agent"
>
- <HugeiconsIcon icon={Delete02Icon} strokeWidth={2} className="size-3.5" />
+ <HugeiconsIcon icon={Delete02Icon} strokeWidth={1.5} className="size-3.5 text-muted-foreground" />
</SidebarMenuAction>
</SidebarMenuItem>
))}