diff --git a/canvas/src/components/BundleDropZone.tsx b/canvas/src/components/BundleDropZone.tsx index b17d8ac8..268eb85c 100644 --- a/canvas/src/components/BundleDropZone.tsx +++ b/canvas/src/components/BundleDropZone.tsx @@ -108,6 +108,7 @@ export function BundleDropZone() { {/* Keyboard-accessible import button — visible on focus or hover so keyboard / AT users can trigger bundle import without drag-and-drop (WCAG 2.1.1) */} )} {step !== "done" && ( + + + + {/* Role */} + {data.role && ( +
{data.role}
+ )} + + {/* Skills */} + {skills.length > 0 && ( +
+ {skills.slice(0, 3).map((skill) => ( + + {skill} + + ))} + {skills.length > 3 && ( + +{skills.length - 3} + )} +
+ )} + + {/* Status + active tasks row */} +
+ {data.status !== "online" ? ( + + {statusCfg.label} + + ) :
} + {data.activeTasks > 0 && ( +
+
+ + {data.activeTasks} + +
+ )} +
+ + {/* Current task banner for sub-agents */} + {data.currentTask && ( + +
+
+ {data.currentTask} +
+ + )} + + {/* Recursive sub-children rendered inside this card */} + {hasSubChildren && depth < MAX_NESTING_DEPTH && ( +
+
Team
+
= 2 ? "grid grid-cols-2 gap-1" : "space-y-1"}> + {subChildren.map((sub) => ( + + ))} +
+
+ )} +
+
+ ); +} function getSkillNames(agentCard: Record | null): string[] { if (!agentCard) return [];