diff --git a/src/components/ActionsMenu.tsx b/src/components/ActionsMenu.tsx
index cb69af3b..ba54787b 100644
--- a/src/components/ActionsMenu.tsx
+++ b/src/components/ActionsMenu.tsx
@@ -24,15 +24,13 @@ import {
Play,
CloudUpload,
Loader2,
- GitBranch,
+ History,
Download,
Trash2,
- Settings,
GitMerge,
} from 'lucide-react';
import { GitHistoryDialog } from '@/components/ai/GitHistoryDialog';
import { GitDialog } from '@/components/GitDialog';
-import { AppSettingsDialog } from '@/components/AppSettingsDialog';
import { useNavigate } from 'react-router-dom';
import { useProjectsManager } from '@/hooks/useProjectsManager';
import { useToast } from '@/hooks/useToast';
@@ -222,7 +220,7 @@ export function ActionsMenu({
className="gap-2"
>
- Git Status
+ Repository
-
- Git History
+
+ Rollback
-
- e.preventDefault()}
- >
-
- Settings
-
-
-
{
- // Validate deploy server
- if (!deployServer.trim()) {
- toast({
- title: "Invalid deploy server",
- description: "Deploy server cannot be empty.",
- variant: "destructive",
- });
- return;
- }
-
- // Remove protocol if present
- const cleanDeployServer = deployServer.replace(/^https?:\/\//, '');
-
- updateConfig((current) => ({
- ...current,
- deployServer: cleanDeployServer,
- }));
-
- toast({
- title: "Settings saved",
- description: "Your deployment settings have been updated.",
- });
-
- setOpen(false);
- };
-
- const handleCancel = () => {
- // Reset to current config
- setDeployServer(config.deployServer);
- setOpen(false);
- };
-
- return (
-
- );
-}
\ No newline at end of file
diff --git a/src/components/ai/GitHistoryDialog.tsx b/src/components/ai/GitHistoryDialog.tsx
index e84845a4..2dc7f3fa 100644
--- a/src/components/ai/GitHistoryDialog.tsx
+++ b/src/components/ai/GitHistoryDialog.tsx
@@ -1,7 +1,7 @@
import { useState, useEffect, useCallback } from 'react';
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger } from '@/components/ui/dialog';
import { Button } from '@/components/ui/button';
-import { Badge } from '@/components/ui/badge';
+
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger } from '@/components/ui/alert-dialog';
import { History, GitCommit, RotateCcw, AlertTriangle, ChevronDown, ChevronUp } from 'lucide-react';
import { useGit } from '@/hooks/useGit';
@@ -291,11 +291,11 @@ ${commitsToRevert.map(c => {
-
- Git History
+
+ Rollback
- View the commit history for this project
+ Revert to an older commit
@@ -371,7 +371,18 @@ ${commitsToRevert.map(c => {
- {index > 0 && ( // Don't show rollback for the most recent commit
+ {index === 0 ? (
+ // Show "Current" for the most recent commit
+
+ ) : (
+ // Show rollback button for older commits
)}
-
-
- {commit.oid.substring(0, 7)}
-