{/* Backdrop */}
{ setQuery(e.target.value); setSelectedIndex(0) }}
onKeyDown={handleKeyDown}
- placeholder="Search flows, sessions…"
+ placeholder="Search flows, ask a question, navigate…"
className="flex-1 bg-transparent text-sm text-foreground placeholder:text-muted-foreground outline-hidden"
/>
@@ -151,55 +308,120 @@ export function CommandPalette({ open, onClose }: CommandPaletteProps) {
{/* Results */}
-
+
{isSearching ? (
- ) : query.length >= 2 && results.length === 0 ? (
+ ) : hasQuery && flatItems.length === 0 ? (
No results for “{query}”
- ) : results.length > 0 ? (
+ ) : builtGroups.length > 0 ? (
- {results.map((item, i) => (
-
{/* Footer hints */}
- {results.length > 0 && (
+ {flatItems.length > 0 && (
↑↓