Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(control-ui): address follow-up review
Miguelon Peluchon4da5abacb2cd
diff --git a/control-ui/components/LlmDiscoveryPanel/index.tsx b/control-ui/components/LlmDiscoveryPanel/index.tsxindex a3c94edcc..10b4a46b7 100644--- a/control-ui/components/LlmDiscoveryPanel/index.tsx+++ b/control-ui/components/LlmDiscoveryPanel/index.tsx@@ -228,6 +228,7 @@ export function LlmDiscoveryPanel({setError(message)showToast(message, { tone: 'error' })} finally {+ if (generation === statusRequestGeneration.current) setStatusLoading(false)setSyncing(false)}}diff --git a/control-ui/components/__tests__/GfsGrantPanel.bulk.test.tsx b/control-ui/components/__tests__/GfsGrantPanel.bulk.test.tsxindex 3b3019a1f..9d8f9716c 100644--- a/control-ui/components/__tests__/GfsGrantPanel.bulk.test.tsx+++ b/control-ui/components/__tests__/GfsGrantPanel.bulk.test.tsx@@ -390,7 +390,7 @@ describe('GfsGrantPanel bulk access', () => {expect(dialog).toHaveTextContent('"reports"')expect(dialog).toHaveTextContent('Permissions: read, write')expect(dialog).toHaveTextContent('Scope: this resource and all descendants')- expect(screen.getByRole('button', { name: 'Grant access' })).toBeDisabled()+ expect(screen.getByRole('button', { name: 'Create share' })).toBeDisabled()fireEvent.click(within(dialog).getByRole('button', { name: 'Cancel' }))await waitFor(() => expect(screen.queryByRole('alertdialog')).toBeNull())diff --git a/control-ui/components/__tests__/LlmDiscoveryPanel.test.tsx b/control-ui/components/__tests__/LlmDiscoveryPanel.test.tsxindex 953343e36..de6997951 100644--- a/control-ui/components/__tests__/LlmDiscoveryPanel.test.tsx+++ b/control-ui/components/__tests__/LlmDiscoveryPanel.test.tsx@@ -140,6 +140,9 @@ describe('LlmDiscoveryPanel merged lifecycle workflow', () => {await waitFor(() => expect(onRefresh).toHaveBeenCalledTimes(1))expect(screen.getByText('+2 new')).toBeInTheDocument()+ await waitFor(() =>+ expect(screen.getByRole('button', { name: 'Reload discovery review' })).toBeEnabled()+ )resolveInitialStatus({ranAt: '2026-07-01T00:00:00.000Z',@@ -151,5 +154,6 @@ describe('LlmDiscoveryPanel merged lifecycle workflow', () => {await waitFor(() => expect(screen.getByText('+2 new')).toBeInTheDocument())expect(screen.queryByText('+99 new')).toBeNull()+ expect(screen.getByRole('button', { name: 'Reload discovery review' })).toBeEnabled()})})diff --git a/control-ui/e2e/qa-recorder-marketplace-browse.spec.ts b/control-ui/e2e/qa-recorder-marketplace-browse.spec.tsindex bdf149bc9..ce32b76c9 100644--- a/control-ui/e2e/qa-recorder-marketplace-browse.spec.ts+++ b/control-ui/e2e/qa-recorder-marketplace-browse.spec.ts@@ -1,10 +1,10 @@// control-ui/e2e/qa-recorder-marketplace-browse.spec.ts//-// Read-only Marketplace catalog browse journey: opens the connectors catalog,-// exercises search + category filter, switches to the Plugins tab, then probes-// the registry through the Control API and — when entries exist — opens the-// first entry detail and asserts its header, version, Install action, and-// kebab menu. Nothing is installed or mutated; no confirm flag or cleanup.+// Read-only Marketplace catalog browse journey: opens the connector catalog,+// exercises search + category filter, then probes the registry through the+// Control API and — when entries exist — opens the first entry detail and+// asserts its header, version, Install action, and kebab menu. Nothing is+// installed or mutated; no confirm flag or cleanup.import { expect, test } from '@playwright/test'import {CONTROL_API_URL,@@ -25,7 +25,7 @@ type RegistryEntrySummary = {type RegistryEntryListResponse = { data?: RegistryEntrySummary[] }test.describe('optional QA recorder: Control UI marketplace browse', () => {- test('Marketplace catalog browse, search, filter, plugins tab, and first entry detail', async ({+ test('Marketplace connector catalog browse, search, filter, and first entry detail', async ({page,}, testInfo) => {assertAllowedTarget('CONTROL_UI_URL', CONTROL_UI_URL)@@ -36,7 +36,7 @@ test.describe('optional QA recorder: Control UI marketplace browse', () => {await page.getByRole('link', { name: 'Marketplace', exact: true }).click()await expect(page).toHaveURL(/\/marketplace\/connectors$/)- // Catalog shell: the TablePanelHeader subtitle and the entry-type tablist+ // Catalog shell: the TablePanelHeader subtitle and connector-only tablist// render regardless of catalog size or empty/loading/error state.await expect(page.getByText('Discover and install connectors and plugins from the Marketplace.', {@@ -47,9 +47,7 @@ test.describe('optional QA recorder: Control UI marketplace browse', () => {await expect(entryTabs.getByRole('tab', { name: 'Connectors', exact: true })).toBeVisible({timeout: 20_000,})- await expect(entryTabs.getByRole('tab', { name: 'Plugins', exact: true })).toBeVisible({- timeout: 20_000,- })+ await expect(entryTabs.getByRole('tab', { name: 'Plugins', exact: true })).toHaveCount(0)// Search: a query that matches nothing drives the result set to the empty// state (the catalog also shows it when entirely empty, so this is resilient@@ -67,13 +65,6 @@ test.describe('optional QA recorder: Control UI marketplace browse', () => {timeout: 20_000,})- // Switch to the Plugins tab; the search input re-binds to plugins.- await entryTabs.getByRole('tab', { name: 'Plugins', exact: true }).click()- await expect(page).toHaveURL(/\/marketplace\/plugins$/)- await expect(page.getByLabel('Search Marketplace plugins', { exact: true })).toBeVisible({- timeout: 20_000,- })-// Probe the registry through the Control UI proxy (admin session cookie) so// the detail step only runs when a real entry exists. Mirrors the contexts// detail skip pattern.diff --git a/control-ui/e2e/qa-recorder-marketplace.spec.ts b/control-ui/e2e/qa-recorder-marketplace.spec.tsindex 4dbc822c1..0545b4f57 100644--- a/control-ui/e2e/qa-recorder-marketplace.spec.ts+++ b/control-ui/e2e/qa-recorder-marketplace.spec.ts@@ -8,8 +8,8 @@ import {screenshotAndLog,} from './qa-recorder-helpers'-// Read-only inventory/navigation journey for the Marketplace (registry catalog)-// and Plugins (installed workflow recipes) shells. The sidebar 'Marketplace'+// Read-only inventory/navigation journey for the Marketplace connector catalog+// and the installed Plugins (workflow recipes) shell. The sidebar 'Marketplace'// link (href /marketplace/connectors) is rewritten transparently to the// /registry page (RegistryCatalog); 'Plugins' (href /plugins) is rewritten to// /workflow-recipes (RecipesTab). Both rewrites keep the source URL in the@@ -37,15 +37,13 @@ test.describe('optional QA recorder: Control UI marketplace and plugins journey'page.getByText('Discover and install connectors and plugins from the Marketplace.')).toBeVisible({ timeout: 20_000 })- // The Marketplace entry-type tablist (Connectors / Plugins) is part of the- // shell. Scope to the named tablist so the locator is unambiguous.+ // Marketplace now presents a connector-only catalog. Scope to the named+ // tablist so the locator is unambiguous and assert the retired tab is gone.const entryTabs = page.getByRole('tablist', { name: 'Marketplace entry types' })await expect(entryTabs.getByRole('tab', { name: 'Connectors', exact: true })).toBeVisible({timeout: 20_000,})- await expect(entryTabs.getByRole('tab', { name: 'Plugins', exact: true })).toBeVisible({- timeout: 20_000,- })+ await expect(entryTabs.getByRole('tab', { name: 'Plugins', exact: true })).toHaveCount(0)await screenshotAndLog(page, testInfo, 'control-ui-marketplace')})