Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

feat(05-02): mount CmdKSearch in Layout.jsx

Adam Eivy22484ed31230
diff --git a/.changelog/v1.14.x.md b/.changelog/v1.14.x.md
index 09d0b033f7..feba4a36f4 100644
--- a/.changelog/v1.14.x.md
+++ b/.changelog/v1.14.x.md
@@ -26,6 +26,7 @@ Genome migration cleanup — completed the meatspace data migration so genome, C
- **Insights navigation** — "Insights" sidebar entry with Lightbulb icon, alphabetically positioned between Instances and MeatSpace
- **Unified search API** — `GET /api/search?q=<query>` fans out keyword search to Brain (inbox/people/projects/ideas/links), CoS Memory (BM25), Apps, History, and Health metrics in parallel via Promise.allSettled for fault isolation. Returns `{ query, sources }` with categorized results, each including id/title/snippet/url/type fields. Sources with zero results are omitted.
- **Search client function** — `search(q)` added to `client/src/services/api.js` for use by the overlay component
+- **Cmd+K search overlay** — Spotlight-style modal mounted in Layout, available from every page; Cmd+K/Ctrl+K opens overlay with debounced search-as-you-type (300ms), results grouped by source with Lucide icons and highlighted keyword snippets, full keyboard navigation (arrows/Enter/Escape), deep-link navigation on selection, body scroll lock, and React portal for z-index isolation
## Improvements
diff --git a/client/src/components/Layout.jsx b/client/src/components/Layout.jsx
index d4a375fdd2..2e4ae9c6fd 100644
--- a/client/src/components/Layout.jsx
+++ b/client/src/components/Layout.jsx
@@ -57,6 +57,7 @@ import { useNotifications } from '../hooks/useNotifications';
import { useAgentFeedbackToast } from '../hooks/useAgentFeedbackToast';
import NotificationDropdown from './NotificationDropdown';
import ThemeSwitcher from './ThemeSwitcher';
+import CmdKSearch from './CmdKSearch';
const navItems = [
{ to: '/', label: 'Dashboard', icon: Home, single: true },
@@ -539,6 +540,8 @@ export default function Layout() {
);
})()}
</div>
+ {/* Cmd+K search overlay — mounted in layout so it's available on every page */}
+ <CmdKSearch />
</div>
);
}