Skip to content

Commit 3f3af31

Browse files
improv: ui
1 parent a5e02eb commit 3f3af31

File tree

1 file changed

+20
-23
lines changed

1 file changed

+20
-23
lines changed

gui/src/components/BackgroundMode/AgentsList.tsx

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { useAuth } from "../../context/Auth";
44
import { IdeMessengerContext } from "../../context/IdeMessenger";
55
import { useAppSelector } from "../../redux/hooks";
66
import { selectCurrentOrg } from "../../redux/slices/profilesSlice";
7+
import { Button } from "../ui";
78

89
interface Agent {
910
id: string;
@@ -219,26 +220,21 @@ export function AgentsList({ isCreatingAgent = false }: AgentsListProps) {
219220
</div>
220221
<div className="ml-2 flex items-center gap-2">
221222
<AgentStatusBadge status={agent.status} />
222-
<div className="group relative">
223-
<button
224-
onClick={(e) =>
225-
canOpenLocally && handleOpenLocally(agent, e)
226-
}
227-
disabled={!canOpenLocally}
228-
className={`rounded p-1.5 transition-colors ${
229-
canOpenLocally
230-
? "text-link hover:bg-input-border cursor-pointer"
231-
: "text-description-muted cursor-not-allowed opacity-50"
232-
}`}
233-
title={
234-
canOpenLocally
235-
? "Open this agent workflow locally"
236-
: "This agent is for a different repository. Open the correct workspace to take over this workflow."
237-
}
238-
>
239-
<ArrowDownTrayIcon className="h-4 w-4" />
240-
</button>
241-
</div>
223+
<Button
224+
onClick={(e) =>
225+
canOpenLocally && handleOpenLocally(agent, e)
226+
}
227+
disabled={!canOpenLocally}
228+
variant="icon"
229+
size="lg"
230+
title={
231+
canOpenLocally
232+
? "Open this agent workflow locally"
233+
: "This agent is for a different repository. Open the correct workspace to take over this workflow."
234+
}
235+
>
236+
<ArrowDownTrayIcon className="h-4 w-4" />
237+
</Button>
242238
</div>
243239
</div>
244240
<div className="text-description-muted mt-1 text-xs">
@@ -249,17 +245,18 @@ export function AgentsList({ isCreatingAgent = false }: AgentsListProps) {
249245
})}
250246
{totalCount > agents.length && (
251247
<div className="mt-2">
252-
<button
248+
<Button
253249
onClick={() => {
254250
ideMessenger.post("controlPlane/openUrl", {
255251
path: "agents",
256252
orgSlug: currentOrg?.slug,
257253
});
258254
}}
259-
className="text-link w-full cursor-pointer border-none bg-transparent p-0 text-center text-sm font-medium no-underline hover:underline"
255+
variant="ghost"
256+
className="text-link my-0 w-full py-0 text-center text-sm font-medium hover:underline"
260257
>
261258
See all {totalCount} tasks →
262-
</button>
259+
</Button>
263260
</div>
264261
)}
265262
</div>

0 commit comments

Comments
 (0)