diff --git a/app/components/ModernTaskPanel.tsx b/app/components/ModernTaskPanel.tsx index 29de9c4..51fdd9e 100644 --- a/app/components/ModernTaskPanel.tsx +++ b/app/components/ModernTaskPanel.tsx @@ -158,28 +158,19 @@ const ModernTaskPanel: React.FC = ({
- <button + + >🔀 Grouping Settings
- -
- -
- - - - ) : ( - <TaskPriorityMatrix - tasks={filteredAndSortedTasks()} - onTaskClick={setSelectedTask} - onUpdateTask={onUpdateTask} - /> - )} - </div> - - {/* Right Sidebar */} - <div className="w-80 space-y-6"> - {agixtConfig.backendUrl && agixtConfig.authToken && ( - <AIAssistantPanel + {/* Right Sidebar */}
{agixtConfig.backendUrl && agixtConfig.authToken && ({ const newTask: Task = { id: Date.now().toString(), title: suggestion.title || '', @@ -328,82 +290,57 @@ const ModernTaskPanel: React.FC = ({ }; onAddTask(newTask); }} - onTaskOptimization={(taskIds) => { + onTaskOptimization={(taskIds) =>{ const optimizedTasks = taskIds - .map(id => tasks.find(t => t.id === id)) + .map(id =>tasks.find(t =>t.id === id)) .filter(Boolean) as Task[]; onReorderTasks(optimizedTasks); }} tasks={tasks} selectedTask={selectedTask} - /> - )} - </div> - </div> - - {/* Modals */} - {isLayoutSettingsOpen && ( - <div className="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center"> - <LayoutSettingsPanel + />)}
{/* Modals */} + {isLayoutSettingsOpen && (
{ setLayoutSettings(newSettings); setIsLayoutSettingsOpen(false); }} - onClose={() => setIsLayoutSettingsOpen(false)} - /> - </div> - )} + onClose={() =>setIsLayoutSettingsOpen(false)} + />
)} - {isGroupingSettingsOpen && ( - <div className="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center"> - <GroupingSettingsPanel + {isGroupingSettingsOpen && (
{ setGroupingSettings(newSettings); setIsGroupingSettingsOpen(false); }} - onClose={() => setIsGroupingSettingsOpen(false)} - /> - </div> - )} + onClose={() =>setIsGroupingSettingsOpen(false)} + />
)} - {isAGiXTConfigOpen && ( - <div className="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center"> - <AGiXTConfig - onClose={() => setIsAGiXTConfigOpen(false)} - onSave={(config) => { + {isAGiXTConfigOpen && (
setIsAGiXTConfigOpen(false)} + onSave={(config) =>{ setAgixtConfig(config); setIsAGiXTConfigOpen(false); }} - /> - </div> - )} + />
)} - {isEditorOpen && ( - <div className="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center"> - <TaskForm - onSubmit={(task) => { + {isEditorOpen && (
{ onAddTask(task); setIsEditorOpen(false); }} - onCancel={() => setIsEditorOpen(false)} + onCancel={() =>setIsEditorOpen(false)} lists={lists} - /> - </div> - )} + />
)} - {selectedTask && ( - <TaskDetailsPanel + {selectedTask && (setSelectedTask(null)} onUpdateTask={onUpdateTask} allTasks={tasks} className="fixed inset-y-0 right-0 w-[32rem] shadow-xl" - /> - )} - - + />)} {/* Right Sidebar */}
{agixtConfig.backendUrl && agixtConfig.authToken && ( @@ -493,28 +430,19 @@ interface ColumnVisibility { interface GroupingSettings { groupBy: 'list' | 'tag' | 'project' | 'none'; - } - - onClick={() =>setLayoutSettings({ ...layoutSettings, selectedLayout: layoutSettings.selectedLayout === 'board' ? 'matrix' : 'board' })} - className="px-4 py-2 bg-gray-700 hover:bg-gray-600 rounded-lg transition-colors flex items-center space-x-2" - > - <span>{layoutSettings.selectedLayout === 'board' ? '📊 Matrix View' : '📋 Board View'}</span> - </button> - <button - onClick={() =>setIsLayoutSettingsOpen(true)} - className="px-4 py-2 bg-gray-700 hover:bg-gray-600 rounded-lg transition-colors flex items-center space-x-2" - > - <span>⚙️ Layout Settings</span> - </button> - <button - onClick={() =>setIsGroupingSettingsOpen(true)} - className="px-4 py-2 bg-gray-700 hover:bg-gray-600 rounded-lg transition-colors flex items-center space-x-2" - > - <span>🔀 Grouping Settings</span> - </button> - <button - - {isLayoutSettingsOpen && ( + <div className="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center"> <LayoutSettingsPanel layoutSettings={layoutSettings}