diff --git a/package-lock.json b/package-lock.json index d3dccb46..cee59369 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4656,7 +4656,6 @@ "cpu": [ "arm" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4670,7 +4669,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4684,7 +4682,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4698,7 +4695,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4712,7 +4708,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4726,7 +4721,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4740,7 +4734,6 @@ "cpu": [ "arm" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4754,7 +4747,6 @@ "cpu": [ "arm" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4768,7 +4760,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4782,7 +4773,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4796,7 +4786,6 @@ "cpu": [ "loong64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4810,7 +4799,6 @@ "cpu": [ "ppc64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4824,7 +4812,6 @@ "cpu": [ "riscv64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4838,7 +4825,6 @@ "cpu": [ "riscv64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4852,7 +4838,6 @@ "cpu": [ "s390x" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4866,7 +4851,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4880,7 +4864,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4894,7 +4877,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4908,7 +4890,6 @@ "cpu": [ "ia32" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -4922,7 +4903,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ diff --git a/src/AppRouter.tsx b/src/AppRouter.tsx index 04d2723d..5fc72c30 100644 --- a/src/AppRouter.tsx +++ b/src/AppRouter.tsx @@ -1,11 +1,10 @@ -import { BrowserRouter, HashRouter, Route, Routes } from "react-router-dom"; +import { BrowserRouter, HashRouter, Route, Routes, Navigate } from "react-router-dom"; import { ScrollToTop } from "./components/ScrollToTop"; import { SessionMonitor } from "./components/SessionMonitor"; import { URLFragmentHandler } from "./components/URLFragmentHandler"; import Index from "./pages/Index"; import Clone from "./pages/Clone"; -import Settings from "./pages/Settings"; import Preferences from "./pages/Preferences"; import NostrSettings from "./pages/NostrSettings"; import AISettings from "./pages/AISettings"; @@ -42,7 +41,7 @@ export function AppRouter() { } /> } /> }> - } /> + } /> } /> } /> } /> diff --git a/src/components/ProjectSidebar.tsx b/src/components/ProjectSidebar.tsx index 108f5f5a..b30af91f 100644 --- a/src/components/ProjectSidebar.tsx +++ b/src/components/ProjectSidebar.tsx @@ -327,6 +327,7 @@ export function ProjectSidebar({ className="h-8 w-8 p-0 hover:bg-primary/10 -mr-2" onClick={handleToggleSidebar} aria-label={(onClose && isMobile) ? t('closeSidebar') : t('collapseSidebar')} + title={(onClose && isMobile) ? t('closeSidebar') : t('hidePaneButtonTooltip')} > {(onClose && isMobile) ? ( diff --git a/src/components/ProjectTitleMenu.tsx b/src/components/ProjectTitleMenu.tsx index 4ba8d067..1a76cdb4 100644 --- a/src/components/ProjectTitleMenu.tsx +++ b/src/components/ProjectTitleMenu.tsx @@ -27,7 +27,6 @@ interface ProjectTitleMenuProps { onDuplicate: () => void; onDelete: () => void; onProjectDetails: () => void; - isAILoading: boolean; isAnyLoading: boolean; className?: string; } @@ -40,7 +39,6 @@ export function ProjectTitleMenu({ onDuplicate, onDelete, onProjectDetails, - isAILoading, isAnyLoading, className = '', }: ProjectTitleMenuProps) { @@ -111,7 +109,7 @@ export function ProjectTitleMenu({ diff --git a/src/components/Shakespeare/ChatInput.tsx b/src/components/Shakespeare/ChatInput.tsx index 5c4fef04..3045fc6b 100644 --- a/src/components/Shakespeare/ChatInput.tsx +++ b/src/components/Shakespeare/ChatInput.tsx @@ -89,6 +89,21 @@ export const ChatInput = memo(function ChatInput({ setInput(e.target.value); }, []); + const handleDrop = useCallback((e: React.DragEvent) => { + e.preventDefault(); + e.stopPropagation(); + + // Call parent's drop handler for visual state management + onDrop(e); + + // Extract files from the drop event + const files = Array.from(e.dataTransfer.files); + if (files.length === 0) return; + + // Add all files without validation + setAttachedFiles(prev => [...prev, ...files]); + }, [onDrop]); + return (
{/* Chat Input Container */} @@ -99,7 +114,7 @@ export const ChatInput = memo(function ChatInput({ onDragEnter={onDragEnter} onDragOver={onDragOver} onDragLeave={onDragLeave} - onDrop={onDrop} + onDrop={handleDrop} >