Refine provider catalog buttons and show Add errors as toasts (#7030)

* fix(app): refine provider catalog actions and error feedback

Use compact row tiles and the shared error toast so failed Add actions remain visible while browsing the catalog. Point Hoplite installation instructions at the CLI install section.

* test(app): supply toast context in provider settings tests

Import the toast API independently of its renderer so the provider section only depends on the context it consumes.
This commit is contained in:
Mohamed Boudra
2026-10-15 22:45:12 +07:00
committed by GitHub
parent d6d4084a06
commit 2d86b94b2f
6 changed files with 69 additions and 96 deletions
@@ -140,8 +140,10 @@ test("unsupported host asks for an update without writing Hoplite config", async
await openSettingsHost(page, outdatedDaemon.serverId);
await openSettingsHostSection(page, outdatedDaemon.serverId, "providers");
await openAddProviderArea(page);
await installAcpCatalogProvider(page, "Hoplite");
await expect(page.getByRole("alert")).toHaveText("Update the host to add Hoplite.");
await page.getByRole("button", { name: "Add Hoplite", exact: true }).click();
const errorToast = page.getByTestId("app-toast-message");
await expect(errorToast).toHaveText("Update the host to add Hoplite.");
await expect(errorToast).toBeInViewport();
expect((await client.getDaemonConfig()).config).toEqual(before.config);
await expect(
page.getByRole("button", { name: "Hoplite provider details", exact: true }),