From 3027a3de5c78fdfa4f34c47c436d63c97a525e4e Mon Sep 17 00:00:00 2001 From: Louis Knight-Webb Date: Fri, 20 Jun 2025 16:20:22 +0100 Subject: [PATCH] Task attempt 4e0e57ea-d98b-44d2-b0a5-2c7ef9114a47 - Final changes --- .../components/projects/project-detail.tsx | 2 +- .../src/components/projects/project-list.tsx | 2 +- frontend/src/components/tasks/TaskCard.tsx | 4 +- .../components/tasks/TaskDetailsDialog.tsx | 47 ++++++++-------- .../src/components/tasks/TaskKanbanBoard.tsx | 10 ++-- .../components/ui/file-search-textarea.tsx | 10 ++-- frontend/src/index.css | 56 +++++++++++++++++++ frontend/src/pages/project-tasks.tsx | 2 +- frontend/src/pages/task-attempt-compare.tsx | 10 ++-- frontend/src/pages/task-details.tsx | 49 ++++++++-------- frontend/tailwind.config.js | 34 +++++++++++ 11 files changed, 157 insertions(+), 69 deletions(-) diff --git a/frontend/src/components/projects/project-detail.tsx b/frontend/src/components/projects/project-detail.tsx index 9a26183a..489ca8eb 100644 --- a/frontend/src/components/projects/project-detail.tsx +++ b/frontend/src/components/projects/project-detail.tsx @@ -125,7 +125,7 @@ export function ProjectDetail({ projectId, onBack }: ProjectDetailProps) { @@ -65,7 +65,7 @@ export function TaskCard({ task, index, status, onEdit, onDelete, onViewDetails onDelete(task.id)} - className="text-red-600" + className="text-destructive" > Delete diff --git a/frontend/src/components/tasks/TaskDetailsDialog.tsx b/frontend/src/components/tasks/TaskDetailsDialog.tsx index 1e7eb503..3c0331b7 100644 --- a/frontend/src/components/tasks/TaskDetailsDialog.tsx +++ b/frontend/src/components/tasks/TaskDetailsDialog.tsx @@ -61,23 +61,23 @@ const statusLabels: Record = { const getAttemptStatusDisplay = (status: TaskAttemptStatus): { label: string; className: string } => { switch (status) { case "init": - return { label: "Init", className: "bg-gray-100 text-gray-800" }; + return { label: "Init", className: "bg-status-init text-status-init-foreground" }; case "setuprunning": - return { label: "Setup Running", className: "bg-blue-100 text-blue-800" }; + return { label: "Setup Running", className: "bg-status-running text-status-running-foreground" }; case "setupcomplete": - return { label: "Setup Complete", className: "bg-green-100 text-green-800" }; + return { label: "Setup Complete", className: "bg-status-complete text-status-complete-foreground" }; case "setupfailed": - return { label: "Setup Failed", className: "bg-red-100 text-red-800" }; + return { label: "Setup Failed", className: "bg-status-failed text-status-failed-foreground" }; case "executorrunning": - return { label: "Executor Running", className: "bg-blue-100 text-blue-800" }; + return { label: "Executor Running", className: "bg-status-running text-status-running-foreground" }; case "executorcomplete": - return { label: "Executor Complete", className: "bg-green-100 text-green-800" }; + return { label: "Executor Complete", className: "bg-status-complete text-status-complete-foreground" }; case "executorfailed": - return { label: "Executor Failed", className: "bg-red-100 text-red-800" }; + return { label: "Executor Failed", className: "bg-status-failed text-status-failed-foreground" }; case "paused": - return { label: "Paused", className: "bg-yellow-100 text-yellow-800" }; + return { label: "Paused", className: "bg-status-paused text-status-paused-foreground" }; default: - return { label: "Unknown", className: "bg-gray-100 text-gray-800" }; + return { label: "Unknown", className: "bg-status-init text-status-init-foreground" }; } }; @@ -371,13 +371,13 @@ export function TaskDetailsDialog({ placeholder="Enter task description..." /> ) : ( -
+
{task?.description ? ( -

+

{task.description}

) : ( -

+

No description provided

)} @@ -399,11 +399,11 @@ export function TaskDetailsDialog({
{selectedAttempt.stdout && (
-