From dfd62ee19c11b7a6a5db6dea80edf210f2a13d7d Mon Sep 17 00:00:00 2001
From: Willie
Date: Wed, 11 Mar 2026 20:50:07 +0800
Subject: [PATCH] fix(ui): compact TargetsPage card layout, remove version stat
from dashboard
- Move filter link and skill count inline with sync mode dropdown,
eliminating separate rows and the dashed separator
- Use ghost variant for Filters button to match neutral B/W theme
- Show filter tags with Edit link when filters exist, inline link when empty
- Remove redundant Version card from DashboardPage stats grid
---
ui/src/pages/DashboardPage.tsx | 10 ----
ui/src/pages/TargetsPage.tsx | 88 ++++++++++++++++++++--------------
2 files changed, 51 insertions(+), 47 deletions(-)
diff --git a/ui/src/pages/DashboardPage.tsx b/ui/src/pages/DashboardPage.tsx
index 70d56cd27..9a98e3b10 100644
--- a/ui/src/pages/DashboardPage.tsx
+++ b/ui/src/pages/DashboardPage.tsx
@@ -4,7 +4,6 @@ import {
Puzzle,
Target,
FolderSync,
- Info,
ArrowRight,
RefreshCw,
Star,
@@ -135,15 +134,6 @@ export default function DashboardPage() {
bg: 'bg-warning-light',
to: '/sync',
},
- {
- label: 'Version',
- value: data.version,
- subtitle: 'skillshare',
- icon: Info,
- color: 'text-pencil-light',
- bg: 'bg-muted',
- to: '/config',
- },
{
label: 'Extras',
value: extrasData?.extras?.length ?? 0,
diff --git a/ui/src/pages/TargetsPage.tsx b/ui/src/pages/TargetsPage.tsx
index 92a07872f..26544d371 100644
--- a/ui/src/pages/TargetsPage.tsx
+++ b/ui/src/pages/TargetsPage.tsx
@@ -351,10 +351,7 @@ export default function TargetsPage() {
>
{shortenHome(target.path)}
-
-
- Sync mode:
-
+
- {/* Filters section */}
+ {/* Filters section — editing panel or existing filter tags */}
{(target.mode === 'merge' || target.mode === 'copy') && (
editingFilter === target.name ? (
@@ -426,10 +452,24 @@ export default function TargetsPage() {
- ) : (
+ ) : (target.include?.length || target.exclude?.length) ? (
-
- )
- )}
- {(target.mode === 'merge' || target.mode === 'copy') && (
-
- {hasDrift ? (
-
-
- {target.linkedCount}/{expectedCount} {target.mode === 'copy' ? 'managed' : 'shared'}, {target.localCount} local
-
- ) : (
- <>{target.linkedCount} {target.mode === 'copy' ? 'managed' : 'shared'}, {target.localCount} local>
- )}
-
+ ) : null
)}