diff --git a/frontend/src/components/agents/workflows/agent-workflows-configuration.tsx b/frontend/src/components/agents/workflows/agent-workflows-configuration.tsx index f7ac5852..8358c6d9 100644 --- a/frontend/src/components/agents/workflows/agent-workflows-configuration.tsx +++ b/frontend/src/components/agents/workflows/agent-workflows-configuration.tsx @@ -2,7 +2,7 @@ import React, { useState, useCallback } from 'react'; import { useRouter } from 'next/navigation'; -import { Plus, AlertCircle, Workflow, Trash2 } from 'lucide-react'; +import { Plus, AlertCircle, Workflow, Trash2, Calendar } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Card } from '@/components/ui/card'; import { Badge } from '@/components/ui/badge'; @@ -137,10 +137,10 @@ export function AgentWorkflowsConfiguration({ agentId, agentName }: AgentWorkflo const getStatusBadge = (status: AgentWorkflow['status']) => { const colors = { - draft: 'text-gray-700 bg-gray-100', - active: 'text-green-700 bg-green-100', - paused: 'text-yellow-700 bg-yellow-100', - archived: 'text-red-700 bg-red-100' + draft: 'text-gray-700 bg-gray-100 dark:text-gray-300 dark:bg-gray-800', + active: 'text-green-700 bg-green-100 dark:text-green-300 dark:bg-green-900', + paused: 'text-yellow-700 bg-yellow-100 dark:text-yellow-300 dark:bg-yellow-900', + archived: 'text-red-700 bg-red-100 dark:text-red-300 dark:bg-red-900' }; return ( @@ -188,69 +188,54 @@ export function AgentWorkflowsConfiguration({ agentId, agentName }: AgentWorkflo ) : (
{workflows.map((workflow) => ( - handleWorkflowClick(workflow.id)} - > -
-
-
-

{workflow.name}

- {getStatusBadge(workflow.status)} - {workflow.is_default && Default} +
+ handleWorkflowClick(workflow.id)} + > +
+
+

{workflow.name}

+
+ {getStatusBadge(workflow.status)} + {workflow.is_default && Default} +
+

{workflow.description}

+
+ + Created {new Date(workflow.created_at).toLocaleDateString()} +
-

{workflow.description}

-
- - Created {new Date(workflow.created_at).toLocaleDateString()} - +
+ +
-
- - - -
-
-
- ))} + +
+ ))}
)}