diff --git a/src/components/ActionsMenu.tsx b/src/components/ActionsMenu.tsx
index 3e868305..5a1c2913 100644
--- a/src/components/ActionsMenu.tsx
+++ b/src/components/ActionsMenu.tsx
@@ -11,6 +11,7 @@ import {
MoreHorizontal,
MessageSquarePlus,
History,
+ Folder,
} from 'lucide-react';
import { GitHistoryDialog } from '@/components/ai/GitHistoryDialog';
import { GitDialog } from '@/components/GitDialog';
@@ -19,6 +20,7 @@ interface ActionsMenuProps {
projectId: string;
projectName: string;
onNewChat: () => void;
+ onProjectDetails?: () => void;
isLoading?: boolean;
isBuildLoading?: boolean;
disabled?: boolean;
@@ -29,6 +31,7 @@ export function ActionsMenu({
projectId,
projectName: _projectName,
onNewChat,
+ onProjectDetails,
isLoading = false,
isBuildLoading = false,
disabled = false,
@@ -65,6 +68,15 @@ export function ActionsMenu({
New Chat
+ setGitHistoryOpen(true)}
+ disabled={isAnyLoading}
+ className="gap-2"
+ >
+
+ Rollback
+
+
setGitDialogOpen(true)}
disabled={isAnyLoading}
@@ -75,12 +87,12 @@ export function ActionsMenu({
setGitHistoryOpen(true)}
+ onClick={onProjectDetails}
disabled={isAnyLoading}
className="gap-2"
>
-
- Rollback
+
+ Project Details
diff --git a/src/components/ProjectInfoDialog.tsx b/src/components/ProjectDetailsDialog.tsx
similarity index 98%
rename from src/components/ProjectInfoDialog.tsx
rename to src/components/ProjectDetailsDialog.tsx
index 59b638df..0ace47dc 100644
--- a/src/components/ProjectInfoDialog.tsx
+++ b/src/components/ProjectDetailsDialog.tsx
@@ -36,14 +36,14 @@ import {
import JSZip from 'jszip';
import { Separator } from './ui/separator';
-interface ProjectInfoDialogProps {
+interface ProjectDetailsDialogProps {
project: Project;
open: boolean;
onOpenChange: (open: boolean) => void;
onProjectDeleted?: () => void;
}
-export function ProjectInfoDialog({ project, open, onOpenChange, onProjectDeleted }: ProjectInfoDialogProps) {
+export function ProjectDetailsDialog({ project, open, onOpenChange, onProjectDeleted }: ProjectDetailsDialogProps) {
const [isExporting, setIsExporting] = useState(false);
const [isDeleting, setIsDeleting] = useState(false);
const [isRenaming, setIsRenaming] = useState(false);
@@ -212,7 +212,7 @@ export function ProjectInfoDialog({ project, open, onOpenChange, onProjectDelete
- Project Info
+ {project.name}
diff --git a/src/pages/ProjectView.tsx b/src/pages/ProjectView.tsx
index d66124c3..c4cdef53 100644
--- a/src/pages/ProjectView.tsx
+++ b/src/pages/ProjectView.tsx
@@ -6,7 +6,7 @@ import { useProjectsManager } from '@/hooks/useProjectsManager';
import { ChatPane, type ChatPaneRef } from '@/components/Shakespeare/ChatPane';
import { PreviewPane } from '@/components/Shakespeare/PreviewPane';
import { ProjectSidebar } from '@/components/ProjectSidebar';
-import { ProjectInfoDialog } from '@/components/ProjectInfoDialog';
+import { ProjectDetailsDialog } from '@/components/ProjectDetailsDialog';
import { ResizablePanelGroup, ResizablePanel, ResizableHandle } from '@/components/ui/resizable';
import { Button } from '@/components/ui/button';
import { Skeleton } from '@/components/ui/skeleton';
@@ -29,7 +29,7 @@ export function ProjectView() {
const [activeTab, setActiveTab] = useState<'preview' | 'code'>('preview');
const [mobileView, setMobileView] = useState<'chat' | 'preview' | 'code'>('chat');
const [isAILoading, setIsAILoading] = useState(false);
- const [isProjectInfoOpen, setIsProjectInfoOpen] = useState(false);
+ const [isProjectDetailsOpen, setIsProjectDetailsOpen] = useState(false);
const projectsManager = useProjectsManager();
const chatPaneRef = useRef(null);
const navigate = useNavigate();
@@ -162,7 +162,7 @@ export function ProjectView() {
@@ -184,6 +184,7 @@ export function ProjectView() {
projectId={project.id}
projectName={project.name}
onNewChat={handleNewChat}
+ onProjectDetails={() => setIsProjectDetailsOpen(true)}
isLoading={isAILoading}
isBuildLoading={build.isPending}
onFirstInteraction={handleFirstInteraction}
@@ -305,12 +306,12 @@ export function ProjectView() {
- {/* Project Info Dialog */}
+ {/* Project Details Dialog */}
{project && (
-
)}
@@ -367,7 +368,7 @@ export function ProjectView() {
@@ -390,6 +391,7 @@ export function ProjectView() {
projectId={project.id}
projectName={project.name}
onNewChat={handleNewChat}
+ onProjectDetails={() => setIsProjectDetailsOpen(true)}
isLoading={isAILoading}
isBuildLoading={build.isPending}
onFirstInteraction={handleFirstInteraction}
@@ -457,12 +459,12 @@ export function ProjectView() {
- {/* Project Info Dialog */}
+ {/* Project Details Dialog */}
{project && (
-
)}