Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(ui): add rounded border to organization agents summary (#2043)

Maxfd3734a99c90
diff --git a/ui/src/components/workbench/AgentsPage.test.tsx b/ui/src/components/workbench/AgentsPage.test.tsx
index b7829fdfe..859d8de04 100644
--- a/ui/src/components/workbench/AgentsPage.test.tsx
+++ b/ui/src/components/workbench/AgentsPage.test.tsx
@@ -214,6 +214,35 @@ describe('AgentsPage load requests follow the rank that can serve them', () => {
});
});
+describe('Organization access summary presentation', () => {
+ it('renders the summary as a self-contained card', async () => {
+ const listVibeAgents = vi.fn().mockResolvedValue(listResult(brief('claude', '')));
+ const getVibeAgentOnboarding = vi.fn().mockResolvedValue({
+ ok: true,
+ available: true,
+ organization_id: 'org-1',
+ agents: [],
+ counts: { total: 1, system: 0, custom: 1, not_onboarded: 1, private: 0, published: 0, conflicts: 0 },
+ });
+ const api = makeApi(listVibeAgents, undefined, getVibeAgentOnboarding);
+ const view = renderPage(api, {
+ remote: true,
+ instanceKind: 'organization',
+ instanceRole: 'owner',
+ capabilities: OWNER_INSTANCE_CAPABILITIES,
+ });
+
+ const title = await screen.findByText('agents.onboarding.title');
+ const card = title.closest('section');
+ // A card is enclosed on every side: a radius plus one full border. The
+ // full-bleed band it replaced had edge rules only, which `border-y` states.
+ expect(card?.className).toContain('rounded-2xl');
+ expect(card?.className).toContain('border-border-strong');
+ expect(card?.className).not.toContain('border-y');
+ view.unmount();
+ });
+});
+
describe('AgentsPage reconnect reconciliation', () => {
it('refreshes definitions from the server on the gap edge without bridge-status duplication', async () => {
const stale = brief('stale-agent', 'before the gap');
diff --git a/ui/src/components/workbench/AgentsPage.tsx b/ui/src/components/workbench/AgentsPage.tsx
index 0ace936b1..5345cc205 100644
--- a/ui/src/components/workbench/AgentsPage.tsx
+++ b/ui/src/components/workbench/AgentsPage.tsx
@@ -1653,9 +1653,11 @@ const OrganizationAgentOnboarding: React.FC<OrganizationAgentOnboardingProps> =
const counts = inventory.counts;
const onboarded = counts.private + counts.published;
+ // The summary is a card, matching the agent detail panel's rounded-2xl +
+ // strong-border shell, rather than a full-bleed band with only edge rules.
return (
- <section className={clsx('border-y border-border bg-surface-2/60 py-4', className)}>
- <div className="flex flex-col gap-4 px-1 sm:px-4">
+ <section className={clsx('rounded-2xl border border-border-strong bg-surface-2/60 p-4', className)}>
+ <div className="flex flex-col gap-4">
<div className="flex flex-col gap-3 lg:flex-row lg:items-center">
<div className="flex min-w-0 flex-1 items-start gap-3">
<span className="grid size-9 shrink-0 place-items-center rounded-md border border-mint/30 bg-mint-soft text-mint-ink">