Skip to content

Commit bafb6e8

Browse files
committed
ui: make Register agent button look active (shadcn Button + primary)
Was using bg-accent/20 (20% opacity on dark bg) which read as disabled. Switched to the shadcn <Button> default variant (bg-primary, full opacity, shadow-sm) + lucide <Plus> icon + w-full so it stretches in the agent rail.
1 parent 5a09447 commit bafb6e8

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

agentos/src/components/RegisterAgentForm.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
* reports back the agent name on success.
1010
*/
1111
import { useState } from "react";
12+
import { Plus } from "lucide-react";
1213
import { api, type RegisterAgentInput } from "../api.ts";
14+
import { Button } from "./ui/button.tsx";
1315

1416
const HARNESS_OPTIONS = ["claude-agent-sdk", "gitagent", "deepagents"] as const;
1517

@@ -54,12 +56,14 @@ export function RegisterAgentForm({ onRegistered }: { onRegistered?: (name: stri
5456

5557
if (!open) {
5658
return (
57-
<button
59+
<Button
5860
onClick={() => setOpen(true)}
59-
className="text-xs px-3 py-1.5 rounded-md bg-accent/20 text-accent hover:bg-accent/30 transition-colors"
61+
size="sm"
62+
className="w-full bg-primary text-primary-foreground hover:bg-primary/90 shadow-sm"
6063
>
61-
+ Register agent
62-
</button>
64+
<Plus className="h-4 w-4" />
65+
Register agent
66+
</Button>
6367
);
6468
}
6569

0 commit comments

Comments
 (0)