Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

refactor(frontend): Update buttons to edit agents in Monitor (#8687)

Krzysztof Czerwinskia660833744f5
diff --git a/autogpt_platform/frontend/src/components/monitor/FlowInfo.tsx b/autogpt_platform/frontend/src/components/monitor/FlowInfo.tsx
index 0fdd2b1436..3cd62b012a 100644
--- a/autogpt_platform/frontend/src/components/monitor/FlowInfo.tsx
+++ b/autogpt_platform/frontend/src/components/monitor/FlowInfo.tsx
@@ -105,10 +105,11 @@ export const FlowInfo: React.FC<
</DropdownMenu>
)}
<Link
- className={buttonVariants({ variant: "outline" })}
+ className={buttonVariants({ variant: "default" })}
href={`/build?flowID=${flow.id}`}
>
- <Pencil2Icon />
+ <Pencil2Icon className="mr-2" />
+ Open in Builder
</Link>
<Button
variant="outline"
@@ -126,7 +127,7 @@ export const FlowInfo: React.FC<
)
}
>
- <ExitIcon />
+ <ExitIcon className="mr-2" /> Export
</Button>
<Button variant="outline" onClick={() => setIsDeleteModalOpen(true)}>
<Trash2Icon className="h-full" />
diff --git a/autogpt_platform/frontend/src/components/monitor/FlowRunInfo.tsx b/autogpt_platform/frontend/src/components/monitor/FlowRunInfo.tsx
index f6f3b1c28c..f866feda5f 100644
--- a/autogpt_platform/frontend/src/components/monitor/FlowRunInfo.tsx
+++ b/autogpt_platform/frontend/src/components/monitor/FlowRunInfo.tsx
@@ -47,10 +47,10 @@ export const FlowRunInfo: React.FC<
</Button>
)}
<Link
- className={buttonVariants({ variant: "outline" })}
+ className={buttonVariants({ variant: "default" })}
href={`/build?flowID=${flow.id}`}
>
- <Pencil2Icon className="mr-2" /> Edit Agent
+ <Pencil2Icon className="mr-2" /> Open in Builder
</Link>
</div>
</CardHeader>