From 603f7e86fa141f4423f5b4fd82ee40192ac1ff44 Mon Sep 17 00:00:00 2001 From: Willie Date: Fri, 3 Apr 2026 23:09:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20refine=20tracked=20repo=20row=20?= =?UTF-8?q?=E2=80=94=20add=20xs=20button=20size,=20move=20status=20to=20in?= =?UTF-8?q?fo=20group?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add 'xs' button size tier (px-2 py-1 text-xs) to Button component - Use xs buttons for tracked repo Update/Uninstall actions to reduce visual weight in row-level controls - Move clean/modified status from action area to info group (left side) as Badge — status is metadata, not an action - clean: subtle default Badge; modified: warning Badge with dot - Remove unused Check icon import --- ui/src/components/Button.tsx | 3 ++- ui/src/pages/DashboardPage.tsx | 25 +++++++++---------------- 2 files changed, 11 insertions(+), 17 deletions(-) diff --git a/ui/src/components/Button.tsx b/ui/src/components/Button.tsx index 56c5be1d9..f343d8780 100644 --- a/ui/src/components/Button.tsx +++ b/ui/src/components/Button.tsx @@ -4,7 +4,7 @@ import Spinner from './Spinner'; interface ButtonProps extends ButtonHTMLAttributes { children: ReactNode; variant?: 'primary' | 'secondary' | 'danger' | 'ghost' | 'link'; - size?: 'sm' | 'md' | 'lg'; + size?: 'xs' | 'sm' | 'md' | 'lg'; loading?: boolean; ref?: Ref; } @@ -18,6 +18,7 @@ const variantClasses = { }; const sizeClasses = { + xs: 'px-2 py-1 text-xs', sm: 'px-3 py-1.5 text-sm', md: 'px-5 py-2.5 text-sm', lg: 'px-6 py-3 text-base', diff --git a/ui/src/pages/DashboardPage.tsx b/ui/src/pages/DashboardPage.tsx index 7cf2f470b..77abafb2e 100644 --- a/ui/src/pages/DashboardPage.tsx +++ b/ui/src/pages/DashboardPage.tsx @@ -11,7 +11,6 @@ import { Download, GitBranch, AlertTriangle, - Check, Trash2, Package, Zap, @@ -513,36 +512,30 @@ function TrackedReposSection({ repos }: { repos: { name: string; skillCount: num {displayName} {repo.skillCount} skills + {repo.dirty ? ( + modified + ) : ( + clean + )}
- {repo.dirty ? ( - - - modified - - ) : ( - - - clean - - )}