ProjectDetailsDialog

This commit is contained in:
Alex Gleason committed 2025-09-23 21:49:14 -05:00
1 parent fc36073654
commit fcf6369356
3 files changed
+32 -18

No files matched your search

+15 -3
View File
@@ -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
</DropdownMenuItem>
<DropdownMenuItem
onClick={() => setGitHistoryOpen(true)}
disabled={isAnyLoading}
className="gap-2"
>
<History className="h-4 w-4" />
Rollback
</DropdownMenuItem>
<DropdownMenuItem
onClick={() => setGitDialogOpen(true)}
disabled={isAnyLoading}
@@ -75,12 +87,12 @@ export function ActionsMenu({
</DropdownMenuItem>
<DropdownMenuItem
onClick={() => setGitHistoryOpen(true)}
onClick={onProjectDetails}
disabled={isAnyLoading}
className="gap-2"
>
<History className="h-4 w-4" />
Rollback
<Folder className="h-4 w-4" />
Project Details
</DropdownMenuItem>