diff --git a/tests/ai-connections-app/app.spec.ts b/tests/ai-connections-app/app.spec.ts index a9ad160b434..881dbcba3a4 100644 --- a/tests/ai-connections-app/app.spec.ts +++ b/tests/ai-connections-app/app.spec.ts @@ -105,9 +105,11 @@ test("personal provider defaults move the crown only after saving and survive re const announcement = page.getByRole("button", { name: "Dismiss announcement" }); if (await announcement.isVisible()) await announcement.click(); const provider = page.locator('[data-app-slug="openai"]'); + // Installed lists plugins as tiles; the accounts are on the plugin page, always open. const expand = async () => { - const trigger = provider.getByRole("button", { name: /^\d+ connections$/ }); - if (await trigger.getAttribute("data-state") === "closed") await trigger.click(); + const tile = provider.locator("h3 button"); + if (await tile.count()) await tile.click(); + await expect(provider.getByRole("button", { name: "Your default for OpenAI" })).toBeVisible(); }; await expect(provider).toBeVisible(); await expand(); @@ -176,7 +178,7 @@ test("personal provider defaults expose crown meaning on touch in both themes at const announcement = page.getByRole("button", { name: "Dismiss announcement" }); if (await announcement.isVisible()) await announcement.click(); const provider = page.locator('[data-app-slug="openai"]'); - await provider.getByRole("button", { name: /^\d+ connections$/ }).tap(); + await provider.locator("h3 button").tap(); const crown = provider.getByRole("button", { name: "Your default for OpenAI" }); await crown.scrollIntoViewIfNeeded(); await crown.tap(); diff --git a/tests/e2e/agentmail.spec.ts b/tests/e2e/agentmail.spec.ts index 9b85a4b88df..8bfdba7edbd 100644 --- a/tests/e2e/agentmail.spec.ts +++ b/tests/e2e/agentmail.spec.ts @@ -262,8 +262,9 @@ test("AgentMail setup and email work through the normal task conversation", asyn await page.screenshot({ path: test.info().outputPath("agentmail-permission-denied.png"), fullPage: true }); await page.getByRole("button", { name: "More workspace pages", exact: true }).click(); await page.getByRole("link", { name: "Plugins", exact: true }).click(); - // Account rows, including one waiting on setup, are listed under Installed. + // Installed lists plugins as tiles; account rows, including one waiting on setup, are on the plugin page. await page.getByRole("radio", { name: "Installed", exact: true }).click(); + await page.locator('[data-app-slug="agentmail"] h3 button').click(); await page.getByRole("button", { name: "Finish setup", exact: true }).click(); await expect(page.getByText("mail-agent-free@verified.example.test", { exact: true })).toBeVisible(); await expect(addressField).toHaveCount(0); diff --git a/tests/e2e/connection-reviews.spec.ts b/tests/e2e/connection-reviews.spec.ts index 54dcc1107d2..e8f85b67175 100644 --- a/tests/e2e/connection-reviews.spec.ts +++ b/tests/e2e/connection-reviews.spec.ts @@ -254,7 +254,7 @@ for (const journey of [ queue = await context.newPage(); await queue.goto(`/${seed.prefix}/apps/review`); await expect( - queue.getByRole("button", { name: "Decline", exact: true }), + queue.getByRole("button", { name: "Deny", exact: true }), ).toBeVisible({ timeout: 20_000 }); } if (journey === "restart") { @@ -290,7 +290,7 @@ for (const journey of [ if (journey === "decline") { // Resolve from Connections and observe the still-open task tab update. await queue! - .getByRole("button", { name: "Decline", exact: true }) + .getByRole("button", { name: "Deny", exact: true }) .click(); } else { @@ -339,7 +339,7 @@ for (const journey of [ ).not.toBeVisible(); if (queue) { await expect( - queue.getByRole("button", { name: "Decline", exact: true }), + queue.getByRole("button", { name: "Deny", exact: true }), ).not.toBeVisible({ timeout: 20_000 }); } await page.bringToFront(); diff --git a/tests/runner-e2e/connection-flow.ts b/tests/runner-e2e/connection-flow.ts index 77ab07a95bd..85dc33790d4 100644 --- a/tests/runner-e2e/connection-flow.ts +++ b/tests/runner-e2e/connection-flow.ts @@ -204,6 +204,9 @@ async function createConnectionThroughUi(input: ConnectionFlowInput, agentURL: s } else if (connection.provider !== harness.provider) throw new ConnectionFailure("saved_provider_mismatch"); // Navigate away and return through the normal list: proof includes durable UI state. await page.goto(`${api.origin}/${company.issuePrefix}/apps?source=installed`, { waitUntil: "domcontentloaded" }); + // Installed lists plugins as tiles; search by account name, then open the plugin page that lists its accounts. + await page.getByPlaceholder("Search plugins…").fill(connection.name); + await page.locator('[role="listitem"][data-connected="true"] h3 button').first().click(); await expect(page.getByText(connection.name, { exact: true }).first()).toBeVisible(); await page.reload({ waitUntil: "domcontentloaded" }); await expect(page.getByText(connection.name, { exact: true }).first()).toBeVisible(); diff --git a/ui/src/pages/apps/AppsReview.tsx b/ui/src/pages/apps/AppsReview.tsx index 7d1bd372ff7..20e30373230 100644 --- a/ui/src/pages/apps/AppsReview.tsx +++ b/ui/src/pages/apps/AppsReview.tsx @@ -5,6 +5,7 @@ import { Button } from "@/components/ui/button"; import { useBreadcrumbs } from "@/context/BreadcrumbContext"; import { useCompany } from "@/context/CompanyContext"; import { ReviewQueueCard } from "./ReviewQueueCard"; +import { useReviewQueue } from "./useReviewCount"; /** * Review — the "decisions waiting on you" inbox (PAP-12371, Finding B). @@ -19,11 +20,12 @@ import { ReviewQueueCard } from "./ReviewQueueCard"; export function AppsReview() { const { selectedCompanyId } = useCompany(); const { setBreadcrumbs } = useBreadcrumbs(); + const queue = useReviewQueue(); useEffect(() => { setBreadcrumbs([ { label: "Plugins", href: "/apps" }, - { label: "Review" }, + { label: "Reviews" }, ]); return () => setBreadcrumbs([]); }, [setBreadcrumbs]); @@ -33,18 +35,24 @@ export function AppsReview() { } return ( -
- Actions your agents want to run that need your OK first. Approve, always-allow, or decline. -
++ {queue.count === 0 + ? "Nothing is waiting on you." + : `${queue.count} ${queue.count === 1 ? "request" : "requests"} from your plugins ${queue.count === 1 ? "is" : "are"} waiting on you.`} +
+ ) : null} +This plugin isn’t in the catalog anymore.
- ) : source === "installed" && !categoryId ? ( -{endpoint.providerAccountLabel ?? endpoint.botLabel ?? diff --git a/ui/src/pages/apps/PluginMarketplace.tsx b/ui/src/pages/apps/PluginMarketplace.tsx index e51d41fc980..9ee8fc752dd 100644 --- a/ui/src/pages/apps/PluginMarketplace.tsx +++ b/ui/src/pages/apps/PluginMarketplace.tsx @@ -55,6 +55,7 @@ export function PluginTile({ statusLabel, action, onOpen, + icon, }: { slug: string; name: string; @@ -66,6 +67,8 @@ export function PluginTile({ statusLabel: string; action: PluginTileAction | null; onOpen: () => void; + /** Replaces the brand logo for an entry that is not a catalog app. */ + icon?: ReactNode; }) { const installed = state !== "available"; return ( @@ -76,7 +79,7 @@ export function PluginTile({ className="group relative flex min-w-0 flex-col gap-3 rounded-2xl bg-muted/50 p-5 transition-colors hover:bg-muted" >