diff --git a/frontend/src/components/Agent/AgentLayout.tsx b/frontend/src/components/Agent/AgentLayout.tsx index 3d351b9..ce21534 100644 --- a/frontend/src/components/Agent/AgentLayout.tsx +++ b/frontend/src/components/Agent/AgentLayout.tsx @@ -21,7 +21,7 @@ export function AgentLayout({ agentTab, setAgentTab }: AgentLayoutProps) { className={`w-full flex items-center px-4 py-3 text-sm font-medium rounded-xl transition-all ${agentTab === 'worker' ? 'bg-blue-50 text-blue-600' : 'text-slate-600 hover:bg-slate-50 hover:text-slate-900'}`} > - Worker Individual + Individual + + + ))} {workers.map((w) => ( {w.agent_name} @@ -179,7 +222,9 @@ export function WorkerIndividualSettings() {
-

{isNew ? 'Create Worker' : 'Edit Worker'}

+

+ {(editData as any).is_system ? 'Edit System Node' : (isNew ? 'Create Worker' : 'Edit Worker')} +

@@ -195,6 +240,7 @@ export function WorkerIndividualSettings() { value={editData.agent_name || ''} onChange={(e) => setEditData({...editData, agent_name: e.target.value})} className="w-full px-4 py-2 border border-slate-200 rounded-lg focus:ring-2 focus:ring-indigo-500" + disabled={(editData as any).is_system} />
@@ -203,13 +249,14 @@ export function WorkerIndividualSettings() { value={editData.agent_type || 'OrdinaryIndividual'} onChange={(e) => setEditData({...editData, agent_type: e.target.value})} className="w-full px-4 py-2 border border-slate-200 rounded-lg focus:ring-2 focus:ring-indigo-500" + disabled={(editData as any).is_system} > - - - + {(editData as any).is_system && ( + + )}
@@ -249,56 +296,60 @@ export function WorkerIndividualSettings() {
-
- -