From 6698b5f69f9fe9b1fc6dcb180758a0580cbffeaa Mon Sep 17 00:00:00 2001 From: Willie Date: Tue, 17 Mar 2026 22:23:14 +0800 Subject: [PATCH] style(ui): improve skillignore check details with grouped tag layout Replace flat bullet list with two labeled sections: - Patterns: monospace code badges with muted background - Ignored Skills: warning-tinted tags for visual distinction Other checks keep the default bullet list rendering. --- .gitignore | 1 + ui/src/pages/DoctorPage.tsx | 64 +++++++++++++++++++++++++++++-------- 2 files changed, 51 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index 40cd4552f..db8177c6f 100644 --- a/.gitignore +++ b/.gitignore @@ -33,6 +33,7 @@ docs/superpowers/ .feature-radar/ .cache/ .playwright-mcp +.superpowers/ # Worktrees diff --git a/ui/src/pages/DoctorPage.tsx b/ui/src/pages/DoctorPage.tsx index 8217bfda4..f056c917f 100644 --- a/ui/src/pages/DoctorPage.tsx +++ b/ui/src/pages/DoctorPage.tsx @@ -86,26 +86,62 @@ function CheckRow({ check }: { check: DoctorCheck }) { {expanded && hasDetails && (
- +
)} ); } +function CheckDetails({ details, name }: { details: string[]; name: string }) { + // Skillignore check uses --- to separate patterns from ignored skills + const sepIdx = details.indexOf('---'); + if (name === 'skillignore' && sepIdx !== -1) { + const patterns = details.slice(0, sepIdx); + const ignored = details.slice(sepIdx + 1); + return ( +
+ {patterns.length > 0 && ( +
+

Patterns

+
+ {patterns.map((p, i) => ( + + {p} + + ))} +
+
+ )} + {ignored.length > 0 && ( +
+

Ignored Skills

+
+ {ignored.map((s, i) => ( + + {s} + + ))} +
+
+ )} +
+ ); + } + + // Default: bullet list for all other checks + return ( + + ); +} + export default function DoctorPage() { const { data, isPending, error, isFetching, refetch } = useQuery({ queryKey: queryKeys.doctor,