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 = {
|
const flowPilotItem: PaletteItem = {
|
||||||
id: 'flowpilot-ai',
|
id: 'flowpilot-ai',
|
||||||
group: 'flowpilot',
|
group: 'flowpilot',
|
||||||
title: 'Ask FlowPilot AI',
|
title: 'Troubleshoot with FlowPilot',
|
||||||
subtitle: trimmed,
|
subtitle: trimmed,
|
||||||
path: '/assistant',
|
path: '/pilot',
|
||||||
icon: 'sparkles',
|
icon: 'sparkles',
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -326,7 +326,7 @@ export function CommandPalette({ open, onClose }: CommandPaletteProps) {
|
|||||||
value={query}
|
value={query}
|
||||||
onChange={e => { setQuery(e.target.value); setSelectedIndex(0) }}
|
onChange={e => { setQuery(e.target.value); setSelectedIndex(0) }}
|
||||||
onKeyDown={handleKeyDown}
|
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"
|
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">
|
<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',
|
'bg-primary/5 border border-primary/10',
|
||||||
isQuestion ? 'mb-1' : '',
|
isQuestion ? 'mb-1' : '',
|
||||||
isSelected
|
isSelected
|
||||||
? 'bg-primary/10 border-primary/20'
|
? 'bg-primary/15 border-primary/30'
|
||||||
: 'hover:bg-primary/10 hover:border-primary/20'
|
: 'hover:bg-primary/10 hover:border-primary/20'
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
@@ -414,8 +414,8 @@ export function CommandPalette({ open, onClose }: CommandPaletteProps) {
|
|||||||
className={cn(
|
className={cn(
|
||||||
'flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-left transition-colors',
|
'flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-left transition-colors',
|
||||||
isSelected
|
isSelected
|
||||||
? 'bg-accent text-foreground'
|
? 'bg-card-hover text-foreground'
|
||||||
: 'text-muted-foreground hover:bg-accent/50'
|
: 'text-muted-foreground hover:bg-card-hover hover:text-foreground'
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<ItemIcon
|
<ItemIcon
|
||||||
|
|||||||
Reference in New Issue
Block a user