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 && (
-