From f9b89dee12acdec5bf2b53e04eb60708bfee8340 Mon Sep 17 00:00:00 2001 From: kaitranntt Date: Thu, 18 Dec 2025 05:26:58 -0500 Subject: [PATCH] fix(ui): improve copilot sidebar logical order and remove redundancy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changes: - Reordered sidebar to follow logical flow: 1. Setup: copilot-api binary → Integration enabled 2. Auth: GitHub connection (only after binary installed) 3. Daemon: status/port (only after authenticated) - Removed redundant Config section (Model/Account already in right panel) - Progressive disclosure: sections appear as prerequisites are met --- ui/src/pages/copilot.tsx | 105 +++++++++++++++++---------------------- 1 file changed, 45 insertions(+), 60 deletions(-) diff --git a/ui/src/pages/copilot.tsx b/ui/src/pages/copilot.tsx index d18007be..97c6d3f1 100644 --- a/ui/src/pages/copilot.tsx +++ b/ui/src/pages/copilot.tsx @@ -5,7 +5,6 @@ */ import { Button } from '@/components/ui/button'; -import { Badge } from '@/components/ui/badge'; import { ScrollArea } from '@/components/ui/scroll-area'; import { Skeleton } from '@/components/ui/skeleton'; import { @@ -159,14 +158,8 @@ export function CopilotPage() { - {/* Integration Status */} - - + {/* Setup - Binary first, then enabled status */} + )} - - - {/* Authentication */} - - - {!status?.authenticated && status?.installed && ( - + {status?.installed && ( + )} - {/* Daemon */} - - -
- Port: {status?.port ?? 4141} -
- {status?.authenticated && ( + {/* Authentication - only show after binary installed */} + {status?.installed && ( + + + {!status?.authenticated && ( + + )} + + )} + + {/* Daemon - only show after authenticated */} + {status?.authenticated && ( + + +
+ Port: {status?.port ?? 4141} +
{status?.daemon_running ? (
- )} -
- - {/* Quick Status */} - -
-
- Model - - {status?.model ?? 'N/A'} - -
-
- Account - - {status?.account_type ?? 'individual'} - -
-
-
+
+ )} )}