Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

feat(cyclops-cs): label usage as admin (#7101)

r33drichards8e7c1e4b0f6b
diff --git a/libs/fleet/e2e/usage.spec.ts b/libs/fleet/e2e/usage.spec.ts
index b6231430e8..11497baf35 100644
--- a/libs/fleet/e2e/usage.spec.ts
+++ b/libs/fleet/e2e/usage.spec.ts
@@ -56,6 +56,7 @@ test("renders usage totals and forwards opaque pool IDs to drilldown", async ({
await page.goto("/usage")
await expect(page).toHaveTitle("Usage · Cua")
await expectSharedPageShell(page)
+ await expect(page.getByText("Admin", { exact: true })).toBeVisible()
await expect(
page.getByRole("heading", { name: "Usage preview" }),
).toBeVisible()
diff --git a/libs/fleet/src/App.tsx b/libs/fleet/src/App.tsx
index aba92a7868..3c21a403f4 100644
--- a/libs/fleet/src/App.tsx
+++ b/libs/fleet/src/App.tsx
@@ -201,7 +201,14 @@ function Shell() {
items={[
{ type: "link", text: "Pools", href: "#/pools" },
...(usage
- ? [{ type: "link" as const, text: "Usage", href: "#/usage" }]
+ ? [
+ {
+ type: "link" as const,
+ text: "Usage",
+ href: "#/usage",
+ info: <Badge color="blue">Admin</Badge>,
+ },
+ ]
: []),
...(chat
? [{ type: "link" as const, text: "Chat", href: "#/agent" }]