feat(command-palette): add global Cmd+K palette with v1 actions

This commit is contained in:
simosmik
2026-04-30 06:36:06 +00:00
parent 33d3be6e73
commit 2811c00eb8
2 changed files with 101 additions and 0 deletions

View File

@@ -1,8 +1,10 @@
import { useEffect, useRef } from 'react';
import { useNavigate, useParams } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
import Sidebar from '../sidebar/view/Sidebar';
import MainContent from '../main-content/view/MainContent';
import CommandPalette from '../command-palette/CommandPalette';
import { useWebSocket } from '../../contexts/WebSocketContext';
import { useDeviceSettings } from '../../hooks/useDeviceSettings';
import { useSessionProtection } from '../../hooks/useSessionProtection';
@@ -40,6 +42,7 @@ export default function AppContent() {
openSettings,
refreshProjectsSilently,
sidebarSharedProps,
handleNewSession,
} = useProjectsState({
sessionId,
navigate,
@@ -202,6 +205,11 @@ export default function AppContent() {
/>
</div>
<CommandPalette
selectedProject={selectedProject}
onStartNewChat={handleNewSession}
onOpenSettings={() => openSettings()}
/>
</div>
);
}