fix: command palette hover contrast + FlowPilot routing
- 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) <noreply@anthropic.com>
This commit is contained in:
@@ -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"
|
||||
/>
|
||||
<kbd className="rounded border border-border bg-background px-1.5 py-0.5 font-mono text-[0.625rem] text-muted-foreground">
|
||||
@@ -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'
|
||||
)}
|
||||
>
|
||||
<ItemIcon
|
||||
|
||||
Reference in New Issue
Block a user