From 0a4185a00df38701fc42c0fd982c0a83b9a8967e Mon Sep 17 00:00:00 2001 From: chihlasm Date: Mon, 23 Mar 2026 04:20:23 +0000 Subject: [PATCH] fix: command palette hover contrast + FlowPilot routing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Hover state uses bg-card-hover + text-foreground for readable contrast - FlowPilot item navigates to /pilot (copilot) instead of /assistant - Rename "Ask FlowPilot AI" → "Troubleshoot with FlowPilot" - Update placeholder to hint at troubleshooting capability Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/components/layout/CommandPalette.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/layout/CommandPalette.tsx b/frontend/src/components/layout/CommandPalette.tsx index 8d28ab5d..6b132816 100644 --- a/frontend/src/components/layout/CommandPalette.tsx +++ b/frontend/src/components/layout/CommandPalette.tsx @@ -174,9 +174,9 @@ export function CommandPalette({ open, onClose }: CommandPaletteProps) { const flowPilotItem: PaletteItem = { id: 'flowpilot-ai', group: 'flowpilot', - title: 'Ask FlowPilot AI', + title: 'Troubleshoot with FlowPilot', subtitle: trimmed, - path: '/assistant', + path: '/pilot', icon: 'sparkles', } @@ -326,7 +326,7 @@ export function CommandPalette({ open, onClose }: CommandPaletteProps) { value={query} onChange={e => { setQuery(e.target.value); setSelectedIndex(0) }} onKeyDown={handleKeyDown} - placeholder="Search flows, ask a question, navigate…" + placeholder="Search flows, sessions, tags... or describe an issue to troubleshoot" className="flex-1 bg-transparent text-sm text-foreground placeholder:text-muted-foreground outline-hidden" /> @@ -376,7 +376,7 @@ export function CommandPalette({ open, onClose }: CommandPaletteProps) { 'bg-primary/5 border border-primary/10', isQuestion ? 'mb-1' : '', isSelected - ? 'bg-primary/10 border-primary/20' + ? 'bg-primary/15 border-primary/30' : 'hover:bg-primary/10 hover:border-primary/20' )} > @@ -414,8 +414,8 @@ export function CommandPalette({ open, onClose }: CommandPaletteProps) { className={cn( 'flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-left transition-colors', isSelected - ? 'bg-accent text-foreground' - : 'text-muted-foreground hover:bg-accent/50' + ? 'bg-card-hover text-foreground' + : 'text-muted-foreground hover:bg-card-hover hover:text-foreground' )} >