Spaces:
Running
Running
Add 3 files
Browse files- README.md +7 -5
- index.html +659 -19
- prompts.txt +2 -0
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: a-task-board
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: gray
|
| 5 |
+
colorTo: red
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,659 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Task Kanban Board</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
.kanban-column {
|
| 11 |
+
min-height: 500px;
|
| 12 |
+
}
|
| 13 |
+
.task-card {
|
| 14 |
+
transition: all 0.2s ease;
|
| 15 |
+
}
|
| 16 |
+
.task-card:hover {
|
| 17 |
+
transform: translateY(-2px);
|
| 18 |
+
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
|
| 19 |
+
}
|
| 20 |
+
.task-card.dragging {
|
| 21 |
+
opacity: 0.5;
|
| 22 |
+
background: #f0f4ff;
|
| 23 |
+
}
|
| 24 |
+
.avatar-small {
|
| 25 |
+
width: 24px;
|
| 26 |
+
height: 24px;
|
| 27 |
+
}
|
| 28 |
+
.priority-high {
|
| 29 |
+
border-left: 4px solid #ef4444;
|
| 30 |
+
}
|
| 31 |
+
.priority-medium {
|
| 32 |
+
border-left: 4px solid #f59e0b;
|
| 33 |
+
}
|
| 34 |
+
.priority-low {
|
| 35 |
+
border-left: 4px solid #10b981;
|
| 36 |
+
}
|
| 37 |
+
</style>
|
| 38 |
+
</head>
|
| 39 |
+
<body class="bg-gray-50">
|
| 40 |
+
<div class="min-h-screen">
|
| 41 |
+
<!-- Header -->
|
| 42 |
+
<header class="bg-white shadow-sm">
|
| 43 |
+
<div class="max-w-7xl mx-auto px-4 py-4 sm:px-6 lg:px-8 flex justify-between items-center">
|
| 44 |
+
<h1 class="text-2xl font-bold text-gray-900">
|
| 45 |
+
<i class="fas fa-tasks mr-2 text-blue-500"></i> Task Kanban Board
|
| 46 |
+
</h1>
|
| 47 |
+
<div class="flex items-center space-x-4">
|
| 48 |
+
<button id="filterBtn" class="flex items-center text-gray-600 hover:text-gray-900">
|
| 49 |
+
<i class="fas fa-filter mr-1"></i> Filter
|
| 50 |
+
</button>
|
| 51 |
+
<button id="addTaskBtn" class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-md flex items-center">
|
| 52 |
+
<i class="fas fa-plus mr-2"></i> Add Task
|
| 53 |
+
</button>
|
| 54 |
+
</div>
|
| 55 |
+
</div>
|
| 56 |
+
</header>
|
| 57 |
+
|
| 58 |
+
<!-- Filter Panel (hidden by default) -->
|
| 59 |
+
<div id="filterPanel" class="hidden bg-white shadow-sm p-4 mb-4">
|
| 60 |
+
<div class="max-w-7xl mx-auto">
|
| 61 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
| 62 |
+
<div>
|
| 63 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Priority</label>
|
| 64 |
+
<select id="priorityFilter" class="w-full border border-gray-300 rounded-md p-2">
|
| 65 |
+
<option value="">All Priorities</option>
|
| 66 |
+
<option value="high">High</option>
|
| 67 |
+
<option value="medium">Medium</option>
|
| 68 |
+
<option value="low">Low</option>
|
| 69 |
+
</select>
|
| 70 |
+
</div>
|
| 71 |
+
<div>
|
| 72 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Assignee</label>
|
| 73 |
+
<select id="assigneeFilter" class="w-full border border-gray-300 rounded-md p-2">
|
| 74 |
+
<option value="">All Assignees</option>
|
| 75 |
+
<!-- Will be populated with employees from the database -->
|
| 76 |
+
</select>
|
| 77 |
+
</div>
|
| 78 |
+
<div>
|
| 79 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Due Date</label>
|
| 80 |
+
<select id="dueDateFilter" class="w-full border border-gray-300 rounded-md p-2">
|
| 81 |
+
<option value="">All Dates</option>
|
| 82 |
+
<option value="today">Today</option>
|
| 83 |
+
<option value="week">This Week</option>
|
| 84 |
+
<option value="overdue">Overdue</option>
|
| 85 |
+
</select>
|
| 86 |
+
</div>
|
| 87 |
+
</div>
|
| 88 |
+
<div class="mt-4 flex justify-end">
|
| 89 |
+
<button id="applyFilters" class="bg-blue-500 text-white px-4 py-2 rounded-md mr-2">
|
| 90 |
+
Apply Filters
|
| 91 |
+
</button>
|
| 92 |
+
<button id="clearFilters" class="bg-gray-200 text-gray-700 px-4 py-2 rounded-md">
|
| 93 |
+
Clear All
|
| 94 |
+
</button>
|
| 95 |
+
</div>
|
| 96 |
+
</div>
|
| 97 |
+
</div>
|
| 98 |
+
|
| 99 |
+
<!-- Main Content -->
|
| 100 |
+
<main class="max-w-7xl mx-auto px-4 py-6 sm:px-6 lg:px-8">
|
| 101 |
+
<!-- Kanban Board -->
|
| 102 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
| 103 |
+
<!-- To Do Column -->
|
| 104 |
+
<div class="kanban-column bg-gray-100 rounded-lg p-4">
|
| 105 |
+
<div class="flex justify-between items-center mb-4">
|
| 106 |
+
<h2 class="font-semibold text-lg text-gray-800">
|
| 107 |
+
<i class="fas fa-circle-notch mr-2 text-gray-500"></i> To Do
|
| 108 |
+
</h2>
|
| 109 |
+
<span class="bg-gray-200 text-gray-700 text-xs font-medium px-2 py-1 rounded-full">
|
| 110 |
+
<span id="todo-count">0</span> tasks
|
| 111 |
+
</span>
|
| 112 |
+
</div>
|
| 113 |
+
<div id="todo-tasks" class="space-y-3">
|
| 114 |
+
<!-- Tasks will be added here dynamically -->
|
| 115 |
+
</div>
|
| 116 |
+
</div>
|
| 117 |
+
|
| 118 |
+
<!-- In Progress Column -->
|
| 119 |
+
<div class="kanban-column bg-gray-100 rounded-lg p-4">
|
| 120 |
+
<div class="flex justify-between items-center mb-4">
|
| 121 |
+
<h2 class="font-semibold text-lg text-gray-800">
|
| 122 |
+
<i class="fas fa-spinner mr-2 text-blue-500"></i> In Progress
|
| 123 |
+
</h2>
|
| 124 |
+
<span class="bg-gray-200 text-gray-700 text-xs font-medium px-2 py-1 rounded-full">
|
| 125 |
+
<span id="inprogress-count">0</span> tasks
|
| 126 |
+
</span>
|
| 127 |
+
</div>
|
| 128 |
+
<div id="inprogress-tasks" class="space-y-3">
|
| 129 |
+
<!-- Tasks will be added here dynamically -->
|
| 130 |
+
</div>
|
| 131 |
+
</div>
|
| 132 |
+
|
| 133 |
+
<!-- Done Column -->
|
| 134 |
+
<div class="kanban-column bg-gray-100 rounded-lg p-4">
|
| 135 |
+
<div class="flex justify-between items-center mb-4">
|
| 136 |
+
<h2 class="font-semibold text-lg text-gray-800">
|
| 137 |
+
<i class="fas fa-check-circle mr-2 text-green-500"></i> Done
|
| 138 |
+
</h2>
|
| 139 |
+
<span class="bg-gray-200 text-gray-700 text-xs font-medium px-2 py-1 rounded-full">
|
| 140 |
+
<span id="done-count">0</span> tasks
|
| 141 |
+
</span>
|
| 142 |
+
</div>
|
| 143 |
+
<div id="done-tasks" class="space-y-3">
|
| 144 |
+
<!-- Tasks will be added here dynamically -->
|
| 145 |
+
</div>
|
| 146 |
+
</div>
|
| 147 |
+
</div>
|
| 148 |
+
</main>
|
| 149 |
+
</div>
|
| 150 |
+
|
| 151 |
+
<!-- Add/Edit Task Modal -->
|
| 152 |
+
<div id="taskModal" class="fixed inset-0 overflow-y-auto hidden z-50">
|
| 153 |
+
<div class="flex items-center justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
|
| 154 |
+
<div class="fixed inset-0 transition-opacity" aria-hidden="true">
|
| 155 |
+
<div class="absolute inset-0 bg-gray-500 opacity-75"></div>
|
| 156 |
+
</div>
|
| 157 |
+
<span class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">​</span>
|
| 158 |
+
<div class="inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-2xl sm:w-full">
|
| 159 |
+
<div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
|
| 160 |
+
<div class="sm:flex sm:items-start">
|
| 161 |
+
<div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full">
|
| 162 |
+
<div class="flex justify-between items-center">
|
| 163 |
+
<h3 class="text-lg leading-6 font-medium text-gray-900" id="modalTitle">
|
| 164 |
+
Add New Task
|
| 165 |
+
</h3>
|
| 166 |
+
<button id="closeModal" class="text-gray-400 hover:text-gray-500">
|
| 167 |
+
<i class="fas fa-times"></i>
|
| 168 |
+
</button>
|
| 169 |
+
</div>
|
| 170 |
+
<div class="mt-6">
|
| 171 |
+
<form id="taskForm" class="space-y-6">
|
| 172 |
+
<input type="hidden" id="taskId">
|
| 173 |
+
<div class="grid grid-cols-1 gap-6 sm:grid-cols-2">
|
| 174 |
+
<div class="sm:col-span-2">
|
| 175 |
+
<label for="taskTitle" class="block text-sm font-medium text-gray-700">Task Title*</label>
|
| 176 |
+
<input type="text" id="taskTitle" name="taskTitle" required class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-blue-500 focus:border-blue-500">
|
| 177 |
+
</div>
|
| 178 |
+
<div>
|
| 179 |
+
<label for="taskPriority" class="block text-sm font-medium text-gray-700">Priority*</label>
|
| 180 |
+
<select id="taskPriority" name="taskPriority" required class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-blue-500 focus:border-blue-500">
|
| 181 |
+
<option value="">Select priority</option>
|
| 182 |
+
<option value="high">High</option>
|
| 183 |
+
<option value="medium">Medium</option>
|
| 184 |
+
<option value="low">Low</option>
|
| 185 |
+
</select>
|
| 186 |
+
</div>
|
| 187 |
+
<div>
|
| 188 |
+
<label for="taskDueDate" class="block text-sm font-medium text-gray-700">Due Date</label>
|
| 189 |
+
<input type="date" id="taskDueDate" name="taskDueDate" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-blue-500 focus:border-blue-500">
|
| 190 |
+
</div>
|
| 191 |
+
<div>
|
| 192 |
+
<label for="taskAssignee" class="block text-sm font-medium text-gray-700">Assignee</label>
|
| 193 |
+
<select id="taskAssignee" name="taskAssignee" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-blue-500 focus:border-blue-500">
|
| 194 |
+
<option value="">Unassigned</option>
|
| 195 |
+
<!-- Will be populated with employees from the database -->
|
| 196 |
+
</select>
|
| 197 |
+
</div>
|
| 198 |
+
<div>
|
| 199 |
+
<label for="taskStatus" class="block text-sm font-medium text-gray-700">Status*</label>
|
| 200 |
+
<select id="taskStatus" name="taskStatus" required class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-blue-500 focus:border-blue-500">
|
| 201 |
+
<option value="todo">To Do</option>
|
| 202 |
+
<option value="inprogress">In Progress</option>
|
| 203 |
+
<option value="done">Done</option>
|
| 204 |
+
</select>
|
| 205 |
+
</div>
|
| 206 |
+
</div>
|
| 207 |
+
<div>
|
| 208 |
+
<label for="taskDescription" class="block text-sm font-medium text-gray-700">Description</label>
|
| 209 |
+
<textarea id="taskDescription" name="taskDescription" rows="4" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-blue-500 focus:border-blue-500"></textarea>
|
| 210 |
+
</div>
|
| 211 |
+
</form>
|
| 212 |
+
</div>
|
| 213 |
+
</div>
|
| 214 |
+
</div>
|
| 215 |
+
</div>
|
| 216 |
+
<div class="bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse">
|
| 217 |
+
<button type="button" id="saveTask" class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-500 text-base font-medium text-white hover:bg-blue-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 sm:ml-3 sm:w-auto sm:text-sm">
|
| 218 |
+
Save Task
|
| 219 |
+
</button>
|
| 220 |
+
<button type="button" id="cancelModal" class="mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm">
|
| 221 |
+
Cancel
|
| 222 |
+
</button>
|
| 223 |
+
<button type="button" id="deleteTask" class="hidden mt-3 w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-500 text-base font-medium text-white hover:bg-red-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm">
|
| 224 |
+
Delete
|
| 225 |
+
</button>
|
| 226 |
+
</div>
|
| 227 |
+
</div>
|
| 228 |
+
</div>
|
| 229 |
+
</div>
|
| 230 |
+
|
| 231 |
+
<script>
|
| 232 |
+
// Sample employee data (would normally come from your employee database)
|
| 233 |
+
const employees = [
|
| 234 |
+
{ id: 1, name: "Sarah Johnson", avatar: "https://randomuser.me/api/portraits/women/44.jpg" },
|
| 235 |
+
{ id: 2, name: "Michael Chen", avatar: "https://randomuser.me/api/portraits/men/32.jpg" },
|
| 236 |
+
{ id: 3, name: "David Wilson", avatar: "https://randomuser.me/api/portraits/men/75.jpg" },
|
| 237 |
+
{ id: 4, name: "Emily Davis", avatar: "https://randomuser.me/api/portraits/women/65.jpg" },
|
| 238 |
+
{ id: 5, name: "James Brown", avatar: "https://randomuser.me/api/portraits/men/55.jpg" }
|
| 239 |
+
];
|
| 240 |
+
|
| 241 |
+
// Sample initial task data
|
| 242 |
+
let tasks = [
|
| 243 |
+
{
|
| 244 |
+
id: 1,
|
| 245 |
+
title: "Implement user authentication",
|
| 246 |
+
description: "Create login and registration pages with JWT authentication",
|
| 247 |
+
priority: "high",
|
| 248 |
+
status: "inprogress",
|
| 249 |
+
assignee: 1,
|
| 250 |
+
dueDate: "2023-12-15",
|
| 251 |
+
createdAt: new Date().toISOString()
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
id: 2,
|
| 255 |
+
title: "Design dashboard UI",
|
| 256 |
+
description: "Create wireframes and mockups for the new dashboard",
|
| 257 |
+
priority: "medium",
|
| 258 |
+
status: "todo",
|
| 259 |
+
assignee: 2,
|
| 260 |
+
dueDate: "2023-12-20",
|
| 261 |
+
createdAt: new Date().toISOString()
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
id: 3,
|
| 265 |
+
title: "Database optimization",
|
| 266 |
+
description: "Review and optimize database queries for better performance",
|
| 267 |
+
priority: "high",
|
| 268 |
+
status: "todo",
|
| 269 |
+
assignee: 3,
|
| 270 |
+
dueDate: "2023-12-10",
|
| 271 |
+
createdAt: new Date().toISOString()
|
| 272 |
+
},
|
| 273 |
+
{
|
| 274 |
+
id: 4,
|
| 275 |
+
title: "Write API documentation",
|
| 276 |
+
description: "Document all API endpoints with examples",
|
| 277 |
+
priority: "low",
|
| 278 |
+
status: "done",
|
| 279 |
+
assignee: 4,
|
| 280 |
+
dueDate: "2023-11-30",
|
| 281 |
+
createdAt: new Date().toISOString()
|
| 282 |
+
}
|
| 283 |
+
];
|
| 284 |
+
|
| 285 |
+
// DOM elements
|
| 286 |
+
const filterPanel = document.getElementById('filterPanel');
|
| 287 |
+
const filterBtn = document.getElementById('filterBtn');
|
| 288 |
+
const addTaskBtn = document.getElementById('addTaskBtn');
|
| 289 |
+
const taskModal = document.getElementById('taskModal');
|
| 290 |
+
const closeModal = document.getElementById('closeModal');
|
| 291 |
+
const cancelModal = document.getElementById('cancelModal');
|
| 292 |
+
const saveTask = document.getElementById('saveTask');
|
| 293 |
+
const deleteTask = document.getElementById('deleteTask');
|
| 294 |
+
const taskForm = document.getElementById('taskForm');
|
| 295 |
+
const priorityFilter = document.getElementById('priorityFilter');
|
| 296 |
+
const assigneeFilter = document.getElementById('assigneeFilter');
|
| 297 |
+
const dueDateFilter = document.getElementById('dueDateFilter');
|
| 298 |
+
const applyFilters = document.getElementById('applyFilters');
|
| 299 |
+
const clearFilters = document.getElementById('clearFilters');
|
| 300 |
+
|
| 301 |
+
// Current task being edited
|
| 302 |
+
let currentTask = null;
|
| 303 |
+
|
| 304 |
+
// Initialize the app
|
| 305 |
+
function init() {
|
| 306 |
+
populateAssigneeDropdowns();
|
| 307 |
+
renderTasks();
|
| 308 |
+
setupEventListeners();
|
| 309 |
+
updateTaskCounts();
|
| 310 |
+
}
|
| 311 |
+
|
| 312 |
+
// Set up event listeners
|
| 313 |
+
function setupEventListeners() {
|
| 314 |
+
// Filter panel
|
| 315 |
+
filterBtn.addEventListener('click', () => filterPanel.classList.toggle('hidden'));
|
| 316 |
+
applyFilters.addEventListener('click', applyTaskFilters);
|
| 317 |
+
clearFilters.addEventListener('click', clearTaskFilters);
|
| 318 |
+
|
| 319 |
+
// Task modal
|
| 320 |
+
addTaskBtn.addEventListener('click', () => openTaskModal());
|
| 321 |
+
closeModal.addEventListener('click', closeTaskModal);
|
| 322 |
+
cancelModal.addEventListener('click', closeTaskModal);
|
| 323 |
+
saveTask.addEventListener('click', saveTaskHandler);
|
| 324 |
+
deleteTask.addEventListener('click', deleteTaskHandler);
|
| 325 |
+
|
| 326 |
+
// Drag and drop setup
|
| 327 |
+
setupDragAndDrop();
|
| 328 |
+
}
|
| 329 |
+
|
| 330 |
+
// Populate assignee dropdowns with employees
|
| 331 |
+
function populateAssigneeDropdowns() {
|
| 332 |
+
const assigneeDropdowns = [
|
| 333 |
+
document.getElementById('taskAssignee'),
|
| 334 |
+
document.getElementById('assigneeFilter')
|
| 335 |
+
];
|
| 336 |
+
|
| 337 |
+
assigneeDropdowns.forEach(dropdown => {
|
| 338 |
+
dropdown.innerHTML = '<option value="">Unassigned</option>' +
|
| 339 |
+
employees.map(employee =>
|
| 340 |
+
`<option value="${employee.id}">${employee.name}</option>`
|
| 341 |
+
).join('');
|
| 342 |
+
});
|
| 343 |
+
}
|
| 344 |
+
|
| 345 |
+
// Render tasks to the Kanban board
|
| 346 |
+
function renderTasks(filteredTasks = null) {
|
| 347 |
+
const tasksToRender = filteredTasks || tasks;
|
| 348 |
+
|
| 349 |
+
// Clear all columns
|
| 350 |
+
document.getElementById('todo-tasks').innerHTML = '';
|
| 351 |
+
document.getElementById('inprogress-tasks').innerHTML = '';
|
| 352 |
+
document.getElementById('done-tasks').innerHTML = '';
|
| 353 |
+
|
| 354 |
+
if (tasksToRender.length === 0) {
|
| 355 |
+
updateTaskCounts();
|
| 356 |
+
return;
|
| 357 |
+
}
|
| 358 |
+
|
| 359 |
+
tasksToRender.forEach(task => {
|
| 360 |
+
const assignee = employees.find(emp => emp.id === task.assignee);
|
| 361 |
+
const assigneeInfo = assignee ?
|
| 362 |
+
`<div class="flex items-center mt-2">
|
| 363 |
+
<img src="${assignee.avatar}" alt="${assignee.name}" class="avatar-small rounded-full mr-2">
|
| 364 |
+
<span class="text-xs text-gray-600">${assignee.name}</span>
|
| 365 |
+
</div>` :
|
| 366 |
+
'<div class="text-xs text-gray-400 mt-2">Unassigned</div>';
|
| 367 |
+
|
| 368 |
+
const dueDateInfo = task.dueDate ?
|
| 369 |
+
`<div class="flex items-center text-xs mt-2 ${isOverdue(task.dueDate) ? 'text-red-500' : 'text-gray-500'}">
|
| 370 |
+
<i class="far fa-calendar-alt mr-1"></i>
|
| 371 |
+
${formatDueDate(task.dueDate)}
|
| 372 |
+
</div>` : '';
|
| 373 |
+
|
| 374 |
+
const priorityClass = `priority-${task.priority || 'medium'}`;
|
| 375 |
+
|
| 376 |
+
const taskCard = `
|
| 377 |
+
<div class="task-card bg-white rounded-md shadow p-4 cursor-move ${priorityClass}"
|
| 378 |
+
draggable="true" data-task-id="${task.id}">
|
| 379 |
+
<div class="flex justify-between items-start">
|
| 380 |
+
<h3 class="font-medium text-gray-800">${task.title}</h3>
|
| 381 |
+
<span class="text-xs px-2 py-1 rounded-full ${getPriorityBadgeClass(task.priority)}">
|
| 382 |
+
${task.priority || 'medium'}
|
| 383 |
+
</span>
|
| 384 |
+
</div>
|
| 385 |
+
${task.description ? `<p class="text-sm text-gray-600 mt-2">${task.description}</p>` : ''}
|
| 386 |
+
${assigneeInfo}
|
| 387 |
+
${dueDateInfo}
|
| 388 |
+
<div class="flex justify-end mt-3 space-x-2">
|
| 389 |
+
<button class="edit-task-btn text-gray-400 hover:text-gray-600 text-sm" data-task-id="${task.id}">
|
| 390 |
+
<i class="fas fa-edit"></i>
|
| 391 |
+
</button>
|
| 392 |
+
</div>
|
| 393 |
+
</div>
|
| 394 |
+
`;
|
| 395 |
+
|
| 396 |
+
// Add to appropriate column
|
| 397 |
+
switch(task.status) {
|
| 398 |
+
case 'todo':
|
| 399 |
+
document.getElementById('todo-tasks').insertAdjacentHTML('beforeend', taskCard);
|
| 400 |
+
break;
|
| 401 |
+
case 'inprogress':
|
| 402 |
+
document.getElementById('inprogress-tasks').insertAdjacentHTML('beforeend', taskCard);
|
| 403 |
+
break;
|
| 404 |
+
case 'done':
|
| 405 |
+
document.getElementById('done-tasks').insertAdjacentHTML('beforeend', taskCard);
|
| 406 |
+
break;
|
| 407 |
+
}
|
| 408 |
+
});
|
| 409 |
+
|
| 410 |
+
// Add event listeners to edit buttons
|
| 411 |
+
document.querySelectorAll('.edit-task-btn').forEach(btn => {
|
| 412 |
+
btn.addEventListener('click', (e) => {
|
| 413 |
+
const taskId = parseInt(e.currentTarget.getAttribute('data-task-id'));
|
| 414 |
+
openTaskModal(taskId);
|
| 415 |
+
});
|
| 416 |
+
});
|
| 417 |
+
|
| 418 |
+
updateTaskCounts();
|
| 419 |
+
}
|
| 420 |
+
|
| 421 |
+
// Get priority badge class
|
| 422 |
+
function getPriorityBadgeClass(priority) {
|
| 423 |
+
switch(priority) {
|
| 424 |
+
case 'high': return 'bg-red-100 text-red-800';
|
| 425 |
+
case 'medium': return 'bg-yellow-100 text-yellow-800';
|
| 426 |
+
case 'low': return 'bg-green-100 text-green-800';
|
| 427 |
+
default: return 'bg-gray-100 text-gray-800';
|
| 428 |
+
}
|
| 429 |
+
}
|
| 430 |
+
|
| 431 |
+
// Format due date for display
|
| 432 |
+
function formatDueDate(dateString) {
|
| 433 |
+
const options = { year: 'numeric', month: 'short', day: 'numeric' };
|
| 434 |
+
return new Date(dateString).toLocaleDateString(undefined, options);
|
| 435 |
+
}
|
| 436 |
+
|
| 437 |
+
// Check if a task is overdue
|
| 438 |
+
function isOverdue(dueDate) {
|
| 439 |
+
if (!dueDate) return false;
|
| 440 |
+
const today = new Date();
|
| 441 |
+
today.setHours(0, 0, 0, 0);
|
| 442 |
+
return new Date(dueDate) < today;
|
| 443 |
+
}
|
| 444 |
+
|
| 445 |
+
// Update task count badges
|
| 446 |
+
function updateTaskCounts() {
|
| 447 |
+
const todoCount = document.getElementById('todo-tasks').children.length;
|
| 448 |
+
const inprogressCount = document.getElementById('inprogress-tasks').children.length;
|
| 449 |
+
const doneCount = document.getElementById('done-tasks').children.length;
|
| 450 |
+
|
| 451 |
+
document.getElementById('todo-count').textContent = todoCount;
|
| 452 |
+
document.getElementById('inprogress-count').textContent = inprogressCount;
|
| 453 |
+
document.getElementById('done-count').textContent = doneCount;
|
| 454 |
+
}
|
| 455 |
+
|
| 456 |
+
// Set up drag and drop functionality
|
| 457 |
+
function setupDragAndDrop() {
|
| 458 |
+
const taskCards = document.querySelectorAll('.task-card');
|
| 459 |
+
const columns = document.querySelectorAll('.kanban-column > div:last-child');
|
| 460 |
+
|
| 461 |
+
taskCards.forEach(task => {
|
| 462 |
+
task.addEventListener('dragstart', dragStart);
|
| 463 |
+
task.addEventListener('dragend', dragEnd);
|
| 464 |
+
});
|
| 465 |
+
|
| 466 |
+
columns.forEach(column => {
|
| 467 |
+
column.addEventListener('dragover', dragOver);
|
| 468 |
+
column.addEventListener('dragenter', dragEnter);
|
| 469 |
+
column.addEventListener('dragleave', dragLeave);
|
| 470 |
+
column.addEventListener('drop', drop);
|
| 471 |
+
});
|
| 472 |
+
}
|
| 473 |
+
|
| 474 |
+
// Drag and drop event handlers
|
| 475 |
+
function dragStart(e) {
|
| 476 |
+
e.currentTarget.classList.add('dragging');
|
| 477 |
+
e.dataTransfer.setData('text/plain', e.currentTarget.getAttribute('data-task-id'));
|
| 478 |
+
}
|
| 479 |
+
|
| 480 |
+
function dragEnd(e) {
|
| 481 |
+
e.currentTarget.classList.remove('dragging');
|
| 482 |
+
}
|
| 483 |
+
|
| 484 |
+
function dragOver(e) {
|
| 485 |
+
e.preventDefault();
|
| 486 |
+
}
|
| 487 |
+
|
| 488 |
+
function dragEnter(e) {
|
| 489 |
+
e.preventDefault();
|
| 490 |
+
e.currentTarget.classList.add('bg-blue-50');
|
| 491 |
+
}
|
| 492 |
+
|
| 493 |
+
function dragLeave(e) {
|
| 494 |
+
e.currentTarget.classList.remove('bg-blue-50');
|
| 495 |
+
}
|
| 496 |
+
|
| 497 |
+
function drop(e) {
|
| 498 |
+
e.preventDefault();
|
| 499 |
+
e.currentTarget.classList.remove('bg-blue-50');
|
| 500 |
+
|
| 501 |
+
const taskId = e.dataTransfer.getData('text/plain');
|
| 502 |
+
const draggedTask = document.querySelector(`.task-card[data-task-id="${taskId}"]`);
|
| 503 |
+
|
| 504 |
+
// Determine the new status based on the column
|
| 505 |
+
let newStatus;
|
| 506 |
+
if (e.currentTarget.id === 'todo-tasks') newStatus = 'todo';
|
| 507 |
+
else if (e.currentTarget.id === 'inprogress-tasks') newStatus = 'inprogress';
|
| 508 |
+
else if (e.currentTarget.id === 'done-tasks') newStatus = 'done';
|
| 509 |
+
|
| 510 |
+
// Update the task in our data
|
| 511 |
+
const taskIndex = tasks.findIndex(t => t.id == taskId);
|
| 512 |
+
if (taskIndex !== -1) {
|
| 513 |
+
tasks[taskIndex].status = newStatus;
|
| 514 |
+
}
|
| 515 |
+
|
| 516 |
+
// Re-render the tasks to reflect the change
|
| 517 |
+
renderTasks();
|
| 518 |
+
}
|
| 519 |
+
|
| 520 |
+
// Apply task filters
|
| 521 |
+
function applyTaskFilters() {
|
| 522 |
+
const priority = priorityFilter.value;
|
| 523 |
+
const assignee = assigneeFilter.value;
|
| 524 |
+
const dueDate = dueDateFilter.value;
|
| 525 |
+
|
| 526 |
+
let filtered = tasks;
|
| 527 |
+
|
| 528 |
+
if (priority) {
|
| 529 |
+
filtered = filtered.filter(task => task.priority === priority);
|
| 530 |
+
}
|
| 531 |
+
|
| 532 |
+
if (assignee) {
|
| 533 |
+
filtered = filtered.filter(task => task.assignee == assignee);
|
| 534 |
+
}
|
| 535 |
+
|
| 536 |
+
if (dueDate) {
|
| 537 |
+
const today = new Date();
|
| 538 |
+
today.setHours(0, 0, 0, 0);
|
| 539 |
+
|
| 540 |
+
filtered = filtered.filter(task => {
|
| 541 |
+
if (!task.dueDate) return false;
|
| 542 |
+
|
| 543 |
+
const taskDate = new Date(task.dueDate);
|
| 544 |
+
|
| 545 |
+
switch(dueDate) {
|
| 546 |
+
case 'today':
|
| 547 |
+
return taskDate.toDateString() === today.toDateString();
|
| 548 |
+
case 'week':
|
| 549 |
+
const endOfWeek = new Date(today);
|
| 550 |
+
endOfWeek.setDate(today.getDate() + 7);
|
| 551 |
+
return taskDate >= today && taskDate <= endOfWeek;
|
| 552 |
+
case 'overdue':
|
| 553 |
+
return taskDate < today;
|
| 554 |
+
default:
|
| 555 |
+
return true;
|
| 556 |
+
}
|
| 557 |
+
});
|
| 558 |
+
}
|
| 559 |
+
|
| 560 |
+
renderTasks(filtered);
|
| 561 |
+
filterPanel.classList.add('hidden');
|
| 562 |
+
}
|
| 563 |
+
|
| 564 |
+
// Clear task filters
|
| 565 |
+
function clearTaskFilters() {
|
| 566 |
+
priorityFilter.value = '';
|
| 567 |
+
assigneeFilter.value = '';
|
| 568 |
+
dueDateFilter.value = '';
|
| 569 |
+
renderTasks();
|
| 570 |
+
filterPanel.classList.add('hidden');
|
| 571 |
+
}
|
| 572 |
+
|
| 573 |
+
// Open task modal for adding or editing
|
| 574 |
+
function openTaskModal(id = null) {
|
| 575 |
+
currentTask = id ? tasks.find(task => task.id === id) : null;
|
| 576 |
+
|
| 577 |
+
if (currentTask) {
|
| 578 |
+
// Edit mode
|
| 579 |
+
document.getElementById('modalTitle').textContent = 'Edit Task';
|
| 580 |
+
document.getElementById('taskId').value = currentTask.id;
|
| 581 |
+
document.getElementById('taskTitle').value = currentTask.title;
|
| 582 |
+
document.getElementById('taskDescription').value = currentTask.description || '';
|
| 583 |
+
document.getElementById('taskPriority').value = currentTask.priority || 'medium';
|
| 584 |
+
document.getElementById('taskStatus').value = currentTask.status || 'todo';
|
| 585 |
+
document.getElementById('taskAssignee').value = currentTask.assignee || '';
|
| 586 |
+
document.getElementById('taskDueDate').value = currentTask.dueDate || '';
|
| 587 |
+
deleteTask.classList.remove('hidden');
|
| 588 |
+
} else {
|
| 589 |
+
// Add mode
|
| 590 |
+
document.getElementById('modalTitle').textContent = 'Add New Task';
|
| 591 |
+
taskForm.reset();
|
| 592 |
+
document.getElementById('taskPriority').value = 'medium';
|
| 593 |
+
document.getElementById('taskStatus').value = 'todo';
|
| 594 |
+
deleteTask.classList.add('hidden');
|
| 595 |
+
}
|
| 596 |
+
|
| 597 |
+
taskModal.classList.remove('hidden');
|
| 598 |
+
}
|
| 599 |
+
|
| 600 |
+
// Close task modal
|
| 601 |
+
function closeTaskModal() {
|
| 602 |
+
taskModal.classList.add('hidden');
|
| 603 |
+
currentTask = null;
|
| 604 |
+
}
|
| 605 |
+
|
| 606 |
+
// Save task (add or update)
|
| 607 |
+
function saveTaskHandler() {
|
| 608 |
+
const formData = new FormData(taskForm);
|
| 609 |
+
const title = formData.get('taskTitle');
|
| 610 |
+
const description = formData.get('taskDescription');
|
| 611 |
+
const priority = formData.get('taskPriority');
|
| 612 |
+
const status = formData.get('taskStatus');
|
| 613 |
+
const assignee = formData.get('taskAssignee');
|
| 614 |
+
const dueDate = formData.get('taskDueDate');
|
| 615 |
+
const id = formData.get('taskId');
|
| 616 |
+
|
| 617 |
+
if (!title || !priority || !status) {
|
| 618 |
+
alert('Please fill in all required fields');
|
| 619 |
+
return;
|
| 620 |
+
}
|
| 621 |
+
|
| 622 |
+
const taskData = {
|
| 623 |
+
id: id ? parseInt(id) : tasks.length > 0 ? Math.max(...tasks.map(t => t.id)) + 1 : 1,
|
| 624 |
+
title,
|
| 625 |
+
description,
|
| 626 |
+
priority,
|
| 627 |
+
status,
|
| 628 |
+
assignee: assignee ? parseInt(assignee) : null,
|
| 629 |
+
dueDate,
|
| 630 |
+
createdAt: id ? currentTask.createdAt : new Date().toISOString()
|
| 631 |
+
};
|
| 632 |
+
|
| 633 |
+
if (currentTask) {
|
| 634 |
+
// Update existing task
|
| 635 |
+
const index = tasks.findIndex(t => t.id === currentTask.id);
|
| 636 |
+
tasks[index] = taskData;
|
| 637 |
+
} else {
|
| 638 |
+
// Add new task
|
| 639 |
+
tasks.push(taskData);
|
| 640 |
+
}
|
| 641 |
+
|
| 642 |
+
renderTasks();
|
| 643 |
+
closeTaskModal();
|
| 644 |
+
}
|
| 645 |
+
|
| 646 |
+
// Delete task
|
| 647 |
+
function deleteTaskHandler() {
|
| 648 |
+
if (currentTask) {
|
| 649 |
+
tasks = tasks.filter(task => task.id !== currentTask.id);
|
| 650 |
+
renderTasks();
|
| 651 |
+
}
|
| 652 |
+
closeTaskModal();
|
| 653 |
+
}
|
| 654 |
+
|
| 655 |
+
// Initialize the app
|
| 656 |
+
init();
|
| 657 |
+
</script>
|
| 658 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=johngoad/a-task-board" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 659 |
+
</html>
|
prompts.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
create a employee database with a web interface to manage. each Employee should have an avatar, name, title, role, goals. and backstory
|
| 2 |
+
create a kanban board style page of tasks that can be assigned to employees in the employee database
|