From 446228645a314fb0d02b85c97348b5be1ef54ab2 Mon Sep 17 00:00:00 2001 From: Sreeram Sreedhar Date: Tue, 23 Jun 2026 21:59:29 -0700 Subject: [PATCH] Simplify onboarding tool cards --- apps/desktop/app/onboarding/page.tsx | 177 ++++++++++++--------------- 1 file changed, 77 insertions(+), 100 deletions(-) diff --git a/apps/desktop/app/onboarding/page.tsx b/apps/desktop/app/onboarding/page.tsx index 5a168dc6..12657c34 100644 --- a/apps/desktop/app/onboarding/page.tsx +++ b/apps/desktop/app/onboarding/page.tsx @@ -10,7 +10,7 @@ import { ChevronLeft, FolderOpen, Loader2, - RefreshCcw, + Plus, X, } from "lucide-react" import { useRouter } from "next/navigation" @@ -292,20 +292,11 @@ function ToolsStep({ return (
- - Rescan - + meta={ + loading + ? "Scanning tools..." + : `${detectedCount} detected · ${connectedCount} connected` } /> @@ -504,98 +495,75 @@ function ToolCard({ return (
-
-
-
- -
+
+
+
-
-

- {tool.name} -

-

- {tool.description} -

-
- {tool.connected ? ( - - - Connected + {tool.id !== "codex" ? ( + + Pro - ) : ( - - )} + ) : null}
-
    - {tool.perks.map((perk) => ( -
  • - - {perk} -
  • - ))} -
+
+

+ {tool.name} +

+

+ {tool.tagline} +

+
-
-
-

- {tool.configPath} -

-

- {tool.detected - ? tool.version - ? `Detected ${tool.version}` - : "Detected on this Mac" - : "Not detected yet"} -

-
- +
+ +
) } -function SaveTargetChip({ label }: { label: string }) { +function ToolCardStatus({ tool }: { tool: DesktopToolCard }) { + if (tool.connected) { + return ( +
+ + Active +
+ ) + } + return ( -
- - Uses - - - {label} +
+ + {tool.detected ? "Detected" : "Not detected"}
) } @@ -661,24 +629,33 @@ function StepHeader({ meta, action, }: { - eyebrow: string + eyebrow?: string title: string - description: string + description?: string meta?: string action?: ReactNode }) { return (
-

- {eyebrow} -

-

+ {eyebrow ? ( +

+ {eyebrow} +

+ ) : null} +

{title}

-

- {description} -

+ {description ? ( +

+ {description} +

+ ) : null} {meta ?

{meta}

: null}
{action}