Merge branch 'main' into feat-grouped-projectapi_a7m

This commit is contained in:
Wendong-Fan 2025-11-13 17:47:48 +08:00 committed by GitHub
commit 53726f12fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 7 deletions

View file

@ -332,7 +332,7 @@ export function Node({ id, data }: NodeProps) {
? `${agentMap[data.type]?.borderColor} z-50`
: "border-worker-border-default z-10"
} transition-all duration-300 ease-in-out ${
data.agent?.tasks.length === 0 && "opacity-30"
(data.agent?.tasks?.length ?? 0) === 0 && "opacity-30"
}`}
>
<div
@ -451,13 +451,15 @@ export function Node({ id, data }: NodeProps) {
)}
</div>
)}
{data.type === "document_agent" && (
<div className="overflow-hidden w-full h-[180px] rounded-sm relative">
<div className="absolute left-0 top-0 scale-[0.3] w-[500px] h-[500px] origin-top-left">
<Folder data={data.agent as Agent} />
{data.type === "document_agent" &&
data?.agent?.tasks &&
data.agent.tasks.length > 0 && (
<div className="overflow-hidden w-full h-[180px] rounded-sm relative">
<div className="absolute left-0 top-0 scale-[0.3] w-[500px] h-[500px] origin-top-left">
<Folder data={data.agent as Agent} />
</div>
</div>
</div>
)}
)}
{data.type === "developer_agent" &&
data?.agent?.tasks &&