From 2793ad2c75299a01206eac37c284944f084e5f7e Mon Sep 17 00:00:00 2001 From: Birdup <34012548+birdup000@users.noreply.github.com> Date: Fri, 27 Dec 2024 15:13:11 -0600 Subject: [PATCH 1/2] Modified app/components/ModernTaskPanel.tsx --- app/components/ModernTaskPanel.tsx | 98 ++++++++++-------------------- 1 file changed, 31 insertions(+), 67 deletions(-) diff --git a/app/components/ModernTaskPanel.tsx b/app/components/ModernTaskPanel.tsx index 29de9c4..2439728 100644 --- a/app/components/ModernTaskPanel.tsx +++ b/app/components/ModernTaskPanel.tsx @@ -158,28 +158,19 @@ const ModernTaskPanel: React.FC = ({
- <button + + >🔀 Grouping Settings
{/* Right Sidebar */}
{agixtConfig.backendUrl && agixtConfig.authToken && ({ const newTask: Task = { id: Date.now().toString(), title: suggestion.title || '', @@ -328,79 +314,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" - /> + />)} )} From 5c3766beb1745f5f05ebbc26118cdb2debd831ce Mon Sep 17 00:00:00 2001 From: Birdup <34012548+birdup000@users.noreply.github.com> Date: Fri, 27 Dec 2024 15:17:15 -0600 Subject: [PATCH 2/2] Modified app/components/ModernTaskPanel.tsx --- app/components/ModernTaskPanel.tsx | 64 +++++++----------------------- 1 file changed, 14 insertions(+), 50 deletions(-) diff --git a/app/components/ModernTaskPanel.tsx b/app/components/ModernTaskPanel.tsx index 2439728..51fdd9e 100644 --- a/app/components/ModernTaskPanel.tsx +++ b/app/components/ModernTaskPanel.tsx @@ -268,31 +268,7 @@ const ModernTaskPanel: React.FC = ({ tasks={getGroupedTasks('done')} - - - -
- -
- - - - ) : ( - <TaskPriorityMatrix - tasks={filteredAndSortedTasks()} - onTaskClick={setSelectedTask} - onUpdateTask={onUpdateTask} - /> - )} - {/* Right Sidebar */}
{agixtConfig.backendUrl && agixtConfig.authToken && ({/* Right Sidebar */}
{agixtConfig.backendUrl && agixtConfig.authToken && ({ @@ -365,9 +341,6 @@ const ModernTaskPanel: React.FC = ({ allTasks={tasks} className="fixed inset-y-0 right-0 w-[32rem] shadow-xl" />)} - )} -
- {/* Right Sidebar */}
{agixtConfig.backendUrl && agixtConfig.authToken && ( @@ -457,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}