diff --git a/src/components/Settings.jsx b/src/components/Settings.jsx index 60fe047..b3760ac 100644 --- a/src/components/Settings.jsx +++ b/src/components/Settings.jsx @@ -4,24 +4,16 @@ import { Input } from './ui/input'; import { Badge } from './ui/badge'; import { X, Plus, Settings as SettingsIcon, Shield, AlertTriangle, Moon, Sun, Server, Edit3, Trash2, Globe, Terminal, Zap, FolderOpen, LogIn, Key, GitBranch, Check } from 'lucide-react'; import { useTheme } from '../contexts/ThemeContext'; -import { useTasksSettings } from '../contexts/TasksSettingsContext'; import ClaudeLogo from './ClaudeLogo'; import CursorLogo from './CursorLogo'; import CredentialsSettings from './CredentialsSettings'; import GitSettings from './GitSettings'; +import TasksSettings from './TasksSettings'; import LoginModal from './LoginModal'; import { authenticatedFetch } from '../utils/api'; function Settings({ isOpen, onClose, projects = [], initialTab = 'tools' }) { const { isDarkMode, toggleDarkMode } = useTheme(); - const { - tasksEnabled, - setTasksEnabled, - isTaskMasterInstalled, - isTaskMasterReady, - installationStatus, - isCheckingInstallation - } = useTasksSettings(); const [allowedTools, setAllowedTools] = useState([]); const [disallowedTools, setDisallowedTools] = useState([]); const [newAllowedTool, setNewAllowedTool] = useState(''); @@ -754,16 +746,6 @@ function Settings({ isOpen, onClose, projects = [], initialTab = 'tools' }) { Git - + @@ -2096,154 +2088,7 @@ function Settings({ isOpen, onClose, projects = [], initialTab = 'tools' }) { {/* Tasks Tab */} {activeTab === 'tasks' && (
- {/* Installation Status Check */} - {isCheckingInstallation ? ( -
-
-
- Checking TaskMaster installation... -
-
- ) : ( - <> - {/* TaskMaster Not Installed Warning */} - {!isTaskMasterInstalled && ( -
-
-
- - - -
-
-
- TaskMaster AI CLI Not Installed -
-
-

TaskMaster CLI is required to use task management features. Install it to get started:

- -
- npm install -g task-master-ai - - - - - View on GitHub - - - - -
- -
-

After installation:

-
    -
  1. Restart this application
  2. -
  3. TaskMaster features will automatically become available
  4. -
  5. Use task-master init in your project directory
  6. -
-
-
-
-
-
- )} - - {/* TaskMaster Settings */} -
-
-
-
-
- Enable TaskMaster Integration -
-
- Show TaskMaster tasks, banners, and sidebar indicators across the interface -
- {!isTaskMasterInstalled && ( -
- TaskMaster CLI must be installed first -
- )} -
- -
-
- - {/* TaskMaster Information */} -
-
-
- -
-
-
- 🎯 About TaskMaster AI -
-
-

AI-Powered Task Management: Break complex projects into manageable subtasks with AI assistance

-

PRD: Generate structured tasks from Product Requirements Documents

-

Dependency Tracking: Understand task relationships and execution order

-

Progress Visualization: Kanban boards, and detailed task views

-
-
- - {/* GitHub Link and Resources */} -
-
-
- - - -
-
-
- 📚 Learn More & Tutorial -
-
-

TaskMaster AI (aka claude-task-master ) is an advanced AI-powered task management system built for developers.

-
- - - - - View on GitHub - - - - -

- Find documentation, setup guides, and examples for advanced TaskMaster workflows -

-
-
-
-
-
-
-
-
- - )} +
)} diff --git a/src/components/TasksSettings.jsx b/src/components/TasksSettings.jsx new file mode 100644 index 0000000..ffb4cc3 --- /dev/null +++ b/src/components/TasksSettings.jsx @@ -0,0 +1,107 @@ +import { Zap } from 'lucide-react'; +import { useTasksSettings } from '../contexts/TasksSettingsContext'; + +function TasksSettings() { + const { + tasksEnabled, + setTasksEnabled, + isTaskMasterInstalled, + isCheckingInstallation + } = useTasksSettings(); + + return ( +
+ {/* Installation Status Check */} + {isCheckingInstallation ? ( +
+
+
+ Checking TaskMaster installation... +
+
+ ) : ( + <> + {/* TaskMaster Not Installed Warning */} + {!isTaskMasterInstalled && ( +
+
+
+ + + +
+
+
+ TaskMaster AI CLI Not Installed +
+
+

TaskMaster CLI is required to use task management features. Install it to get started:

+ +
+ npm install -g task-master-ai +
+ + + +
+

After installation:

+
    +
  1. Restart this application
  2. +
  3. TaskMaster features will automatically become available
  4. +
  5. Use task-master init in your project directory
  6. +
+
+
+
+
+
+ )} + + {/* TaskMaster Settings */} + {isTaskMasterInstalled && ( +
+
+
+
+
+ Enable TaskMaster Integration +
+
+ Show TaskMaster tasks, banners, and sidebar indicators across the interface +
+
+ +
+
+
+ )} + + )} +
+ ); +} + +export default TasksSettings;