mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-05-08 21:48:20 +00:00
feat(command-palette): add global Cmd+K palette with v1 actions
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user