Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
chore(control-ui): checkpoint agent UX updates
Miguelon Peluchon9beea868a5dd
diff --git a/control-ui/app/constants/hostDetails.ts b/control-ui/app/constants/hostDetails.tsindex 49bdc12ea..2a786aa21 100644--- a/control-ui/app/constants/hostDetails.ts+++ b/control-ui/app/constants/hostDetails.ts@@ -1,5 +1,12 @@export const HOST_DEFAULT_TAB = 'details'-export const HOST_TABS = ['details', 'identity', 'model', 'contexts', 'access', 'advanced'] as const+export const HOST_TABS = [+ 'details',+ 'identity',+ 'model',+ 'connectors',+ 'access',+ 'advanced',+] as constexport type HostTab = (typeof HOST_TABS)[number]diff --git a/control-ui/app/globals.css b/control-ui/app/globals.cssindex fe70a4ca9..892fc5a17 100644--- a/control-ui/app/globals.css+++ b/control-ui/app/globals.css@@ -5083,6 +5083,14 @@ textarea.cu-input {margin-left: auto;}+.cu-agent-connectors-table .cu-table__col-actions,+.cu-agent-connectors-table .cu-table__cell-actions {+ width: 6rem;+ min-width: 6rem;+ text-align: right;+ white-space: nowrap;+}+.cu-agent-detail-toolbar {position: sticky;top: 0;@@ -8313,10 +8321,6 @@ textarea.cu-input {filter: brightness(0) invert(1);}-:root[data-theme='light'] .cu-llm-provider-icon[data-provider='zai'] img {- filter: brightness(0);-}-/* OpenAI ships a white-on-transparent mark, so on light surfaces it needs to beknocked back to black. Scoped to provider-level controls — the model dropdownreuses the same icon on a different treatment and must not inherit this. */diff --git a/control-ui/app/hosts/[name]/[tab]/page.tsx b/control-ui/app/hosts/[name]/[tab]/page.tsxindex 3f3a7b53b..30c6deab6 100644--- a/control-ui/app/hosts/[name]/[tab]/page.tsx+++ b/control-ui/app/hosts/[name]/[tab]/page.tsx@@ -7,7 +7,7 @@ interface HostTabPageProps {export default async function HostTabPage({ params }: HostTabPageProps) {const { tab } = await params- const tabs = ['overview', 'identity', 'model', 'contexts', 'access', 'advanced']+ const tabs = ['overview', 'identity', 'model', 'connectors', 'access', 'advanced']if (!tabs.includes(tab)) notFound()return <HostDetailsPage />diff --git a/control-ui/app/hosts/[name]/page.tsx b/control-ui/app/hosts/[name]/page.tsxindex 001387cce..ea1c3c680 100644--- a/control-ui/app/hosts/[name]/page.tsx+++ b/control-ui/app/hosts/[name]/page.tsx@@ -15,6 +15,7 @@ import type { HostGuardrails } from '../../../components/HostGuardrailsSection/timport { HostIdentityTab } from '../../../components/HostIdentityTab'import { HostOverviewTab } from '../../../components/HostOverviewTab'import { LlmProviderConfig } from '../../../components/LlmProviderConfig'+import { RowActionsMenu } from '../../../components/RowActionsMenu'import { IconRobot } from '../../../components/Sidebar/icons'import { IconCheck, IconMoreHorizontal, IconPencil, IconX } from '../../../components/icons'import {@@ -52,7 +53,7 @@ const TAB_LABELS: Record<HostTab, string> = {details: 'Overview',model: 'Models & creds',advanced: 'Advanced',- contexts: 'Connectors',+ connectors: 'Connectors',access: 'Access',identity: 'Identity',}@@ -61,7 +62,7 @@ const TAB_SLUGS: Record<HostTab, string> = {details: 'overview',model: 'model',advanced: 'advanced',- contexts: 'contexts',+ connectors: 'connectors',access: 'access',identity: 'identity',}@@ -1182,7 +1183,7 @@ export default function HostDetailsPage() {</>)}- {activeTab === 'contexts' && (+ {activeTab === 'connectors' && (<><div className="cu-agent-detail-heading"><p className="cu-muted" style={{ fontSize: '0.875rem', margin: 0 }}>@@ -1200,7 +1201,7 @@ export default function HostDetailsPage() {</div></div><div className="cu-table-wrap">- <table className="cu-table cu-table--header-band cu-table--static-rows">+ <table className="cu-table cu-table--header-band cu-table--static-rows cu-agent-connectors-table"><thead><tr><th>Connector</th>@@ -1227,16 +1228,21 @@ export default function HostDetailsPage() {<span className="cu-table__cell-name">{server}</span></td><td className="cu-table__cell-actions">- <button- type="button"- className="cu-btn cu-btn--icon cu-btn--danger-icon"- onClick={() => void removeAgentConnector(server)}- disabled={busy}- aria-label={`Remove connector ${server}`}- title="Remove connector"- >- <IconX width={16} height={16} />- </button>+ <div className="cu-table-actions">+ <RowActionsMenu+ ariaLabel={`Actions for connector ${server}`}+ horizontalTrigger+ actions={[+ {+ key: 'remove',+ label: 'Remove connector',+ danger: true,+ disabled: busy,+ onClick: () => void removeAgentConnector(server),+ },+ ]}+ />+ </div></td></tr>))diff --git a/control-ui/components/HostOverviewTab/types.ts b/control-ui/components/HostOverviewTab/types.tsindex 74cdba6ba..6ca526093 100644--- a/control-ui/components/HostOverviewTab/types.ts+++ b/control-ui/components/HostOverviewTab/types.ts@@ -5,7 +5,7 @@ export type HostOverviewAccessSummary = {teamNames: string[]}-export type HostTabKey = 'access' | 'model' | 'contexts'+export type HostTabKey = 'access' | 'model' | 'connectors'export type HostOverviewTabProps = {hostName: stringdiff --git a/control-ui/components/Sidebar/constants.tsx b/control-ui/components/Sidebar/constants.tsxindex b683370ea..95b26aa9d 100644--- a/control-ui/components/Sidebar/constants.tsx+++ b/control-ui/components/Sidebar/constants.tsx@@ -28,7 +28,7 @@ import type { SidebarItem, SidebarTab } from './types'export const SIDEBAR_TABS: Record<SidebarTab, SidebarItem> = {hosts: { label: 'Agents', href: CONTROL_ROUTES.agents.root, icon: <IconRobot /> },'mcp-servers': {- label: 'Installed connectors',+ label: 'Installed Connectors',href: CONTROL_ROUTES.connectors.root,icon: <IconCable />,},@@ -94,7 +94,7 @@ export const SIDEBAR_TABS: Record<SidebarTab, SidebarItem> = {icon: <IconStore />,},'workflow-recipes': {- label: 'Installed plugins',+ label: 'Installed Plugins',href: CONTROL_ROUTES.plugins.root,icon: <IconWorkflow />,},diff --git a/control-ui/components/Sidebar/icons.tsx b/control-ui/components/Sidebar/icons.tsxindex 110deca22..ce2a61e2e 100644--- a/control-ui/components/Sidebar/icons.tsx+++ b/control-ui/components/Sidebar/icons.tsx@@ -51,15 +51,13 @@ export function IconOutputs() {width="18"height="18"viewBox="0 0 24 24"- fill="none"+ fill="currentColor"stroke="currentColor"- strokeWidth="2"- strokeLinecap="round"- strokeLinejoin="round"+ strokeWidth="0">- <path d="M3 16V8" />- <path d="M7 12h14" />- <path d="m17 8 4 4-4 4" />+ <path fill="none" d="M0 0h24v24H0z" />+ <path d="m17 17 5-5-5-5-1.41 1.41L18.17 11H9v2h9.17l-2.58 2.59z" />+ <path d="M19 19H5V5h14v2h2V5a2 2 0 0 0-2-2H5c-1.1 0-2 .9-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-2h-2z" /></svg>)}diff --git a/control-ui/components/__tests__/HostDetailsPage.connectors.test.tsx b/control-ui/components/__tests__/HostDetailsPage.connectors.test.tsxindex f6286cb3a..50d835ff8 100644--- a/control-ui/components/__tests__/HostDetailsPage.connectors.test.tsx+++ b/control-ui/components/__tests__/HostDetailsPage.connectors.test.tsx@@ -9,8 +9,8 @@ const replaceMock = vi.fn()const pushMock = vi.fn()vi.mock('next/navigation', () => ({- useParams: () => ({ name: 'foo', tab: 'contexts' }),- usePathname: () => '/agents/foo/contexts',+ useParams: () => ({ name: 'foo', tab: 'connectors' }),+ usePathname: () => '/agents/foo/connectors',useRouter: () => ({ push: pushMock, replace: replaceMock }),useSearchParams: () => new URLSearchParams(),}))@@ -134,11 +134,12 @@ describe('HostDetailsPage connectors', () => {it('confirms connector removal and updates the private context membership', async () => {renderPage()- const removeButton = await screen.findByRole('button', {- name: 'Remove connector mcp-existing',+ const actionsButton = await screen.findByRole('button', {+ name: 'Actions for connector mcp-existing',})- fireEvent.click(removeButton)- fireEvent.click(screen.getByRole('button', { name: 'Remove connector', exact: true }))+ fireEvent.click(actionsButton)+ fireEvent.click(await screen.findByRole('menuitem', { name: 'Remove connector', exact: true }))+ fireEvent.click(await screen.findByRole('button', { name: 'Remove connector', exact: true }))await waitFor(() => expect(api.updateContext).toHaveBeenCalledTimes(1))expect(api.updateContext).toHaveBeenCalledWith(@@ -149,7 +150,9 @@ describe('HostDetailsPage connectors', () => {}))await waitFor(() =>- expect(screen.queryByRole('button', { name: 'Remove connector mcp-existing' })).toBeNull()+ expect(+ screen.queryByRole('button', { name: 'Actions for connector mcp-existing' })+ ).toBeNull())})})diff --git a/control-ui/components/__tests__/HostDetailsPage.identity.test.tsx b/control-ui/components/__tests__/HostDetailsPage.identity.test.tsxindex 50be374a8..ac408efed 100644--- a/control-ui/components/__tests__/HostDetailsPage.identity.test.tsx+++ b/control-ui/components/__tests__/HostDetailsPage.identity.test.tsx@@ -124,6 +124,10 @@ describe('HostDetailsPage identity integration', () => {'Access','Advanced',])+ expect(tabs.find(tab => tab.textContent === 'Connectors')).toHaveAttribute(+ 'href',+ '/agents/foo/connectors'+ )})it('puts Allowed models in place of Model name and spells out Secret reference', async () => {@@ -270,5 +274,4 @@ describe('HostDetailsPage identity integration', () => {)expect(putCall![2].spec.host).toBe('foo-display')})-})diff --git a/control-ui/components/__tests__/Sidebar.test.tsx b/control-ui/components/__tests__/Sidebar.test.tsxindex bad45e003..513ad9777 100644--- a/control-ui/components/__tests__/Sidebar.test.tsx+++ b/control-ui/components/__tests__/Sidebar.test.tsx@@ -66,8 +66,8 @@ describe('Sidebar publisher gating', () => {'Agents','Contexts','Marketplace',- 'Installed connectors',- 'Installed plugins',+ 'Installed Connectors',+ 'Installed Plugins','Installed Guardrails','Files','External Channels',diff --git a/control-ui/e2e/plugin-workload-sdk-operator-journey.spec.ts b/control-ui/e2e/plugin-workload-sdk-operator-journey.spec.tsindex 717b4833d..9eaa1be86 100644--- a/control-ui/e2e/plugin-workload-sdk-operator-journey.spec.ts+++ b/control-ui/e2e/plugin-workload-sdk-operator-journey.spec.ts@@ -325,7 +325,7 @@ test.describe('Plugin Workload SDK — operator journey (installed plugin → gr// the authoritative install path for this local compatibility sample.await uiLogin(page)await dismissAdminEmailReminder(page)- await page.getByRole('link', { name: 'Installed plugins', exact: true }).click()+ await page.getByRole('link', { name: 'Installed Plugins', exact: true }).click()const installedPluginRow = page.getByRole('link', {name: `Open ${installedRecipeName}`,})diff --git a/control-ui/e2e/qa-recorder-connector-edit.spec.ts b/control-ui/e2e/qa-recorder-connector-edit.spec.tsindex 440e40eba..e30a205be 100644--- a/control-ui/e2e/qa-recorder-connector-edit.spec.ts+++ b/control-ui/e2e/qa-recorder-connector-edit.spec.ts@@ -59,7 +59,7 @@ async function createDiscoveryConnector(connectorName: string,contextName: string): Promise<void> {- await page.getByRole('link', { name: 'Installed connectors', exact: true }).click()+ await page.getByRole('link', { name: 'Installed Connectors', exact: true }).click()await expect(page).toHaveURL(/\/connectors$/, { timeout: 20_000 })await page.getByRole('button', { name: 'Create Connector', exact: true }).click()await expect(page).toHaveURL(/\/connectors\/new$/, { timeout: 20_000 })diff --git a/control-ui/e2e/qa-recorder-connector-rotation-demo.spec.ts b/control-ui/e2e/qa-recorder-connector-rotation-demo.spec.tsindex f13ccba89..67cbf3e0a 100644--- a/control-ui/e2e/qa-recorder-connector-rotation-demo.spec.ts+++ b/control-ui/e2e/qa-recorder-connector-rotation-demo.spec.ts@@ -79,7 +79,7 @@ test.describe('demo: Control UI credential-rotation journey', () => {await test.step('navigate: sidebar "Connectors" -> connectors list', async () => {await humanClick(page,- page.getByRole('link', { name: 'Installed connectors', exact: true })+ page.getByRole('link', { name: 'Installed Connectors', exact: true }))await expect(page).toHaveURL(/\/connectors$/, { timeout: 20_000 })await humanPause(page)diff --git a/control-ui/e2e/qa-recorder-connectors.spec.ts b/control-ui/e2e/qa-recorder-connectors.spec.tsindex 166ff8b32..e65f3a80c 100644--- a/control-ui/e2e/qa-recorder-connectors.spec.ts+++ b/control-ui/e2e/qa-recorder-connectors.spec.ts@@ -26,7 +26,7 @@ test.describe('optional QA recorder: Control UI connectors journey', () => {const credentials = adminCredentials()await loginThroughUi(page, credentials)- await page.getByRole('link', { name: 'Installed connectors', exact: true }).click()+ await page.getByRole('link', { name: 'Installed Connectors', exact: true }).click()// The rewrite keeps the URL on /connectors; assert it landed.await expect(page).toHaveURL(/\/connectors\/?$/, { timeout: 20_000 })diff --git a/control-ui/e2e/qa-recorder-context-connector.spec.ts b/control-ui/e2e/qa-recorder-context-connector.spec.tsindex 4a14c0bde..ce022d725 100644--- a/control-ui/e2e/qa-recorder-context-connector.spec.ts+++ b/control-ui/e2e/qa-recorder-context-connector.spec.ts@@ -53,7 +53,7 @@ async function createDiscoveryConnector(connectorName: string,contextName: string): Promise<void> {- await page.getByRole('link', { name: 'Installed connectors', exact: true }).click()+ await page.getByRole('link', { name: 'Installed Connectors', exact: true }).click()await expect(page).toHaveURL(/\/connectors$/, { timeout: 20_000 })await page.getByRole('button', { name: 'Create Connector', exact: true }).click()await expect(page).toHaveURL(/\/connectors\/new$/, { timeout: 20_000 })diff --git a/control-ui/e2e/qa-recorder-navigation.spec.ts b/control-ui/e2e/qa-recorder-navigation.spec.tsindex 5f11882c4..d1943f0fc 100644--- a/control-ui/e2e/qa-recorder-navigation.spec.ts+++ b/control-ui/e2e/qa-recorder-navigation.spec.ts@@ -63,7 +63,7 @@ test.describe('optional QA recorder: Control UI navigation', () => {// 3) Connectors — sidebar href is /connectors (rewritten from /mcp-servers);// the browser URL stays /connectors.- await mainNav.getByRole('link', { name: 'Installed connectors', exact: true }).click()+ await mainNav.getByRole('link', { name: 'Installed Connectors', exact: true }).click()await expect(page).toHaveURL(/\/connectors\/?$/, { timeout: 20_000 })await expect(page.getByText('Browse connector deployments and context bindings.', { exact: true })diff --git a/control-ui/e2e/registry-install.spec.ts b/control-ui/e2e/registry-install.spec.tsindex 1ff437f65..02b5ce8b1 100644--- a/control-ui/e2e/registry-install.spec.ts+++ b/control-ui/e2e/registry-install.spec.ts@@ -1599,7 +1599,7 @@ test.describe('I. Registry Egress Contracts via Control UI', () => {page,}) => {await login(page)- await page.getByRole('link', { name: 'Installed connectors', exact: true }).click()+ await page.getByRole('link', { name: 'Installed Connectors', exact: true }).click()await expect(page).toHaveURL(/\/mcp-servers/)const serverRow = page.locator('tr', { hasText: exactServerName })@@ -1761,7 +1761,7 @@ test.describe('J. Operator Egress Editor Journeys', () => {await login(page)await test.step('create exact-host connector from the visible form flow', async () => {- await page.getByRole('link', { name: 'Installed connectors', exact: true }).click()+ await page.getByRole('link', { name: 'Installed Connectors', exact: true }).click()await expect(page).toHaveURL(/\/mcp-servers/)await page.getByRole('button', { name: 'Create Connector' }).click()await expect(page).toHaveURL(/\/mcp-servers\/new/)diff --git a/control-ui/package-lock.json b/control-ui/package-lock.jsonindex f82798ed4..285ef880b 100644--- a/control-ui/package-lock.json+++ b/control-ui/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-control-ui",- "version": "0.1.443",+ "version": "0.1.444","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-control-ui",- "version": "0.1.443",+ "version": "0.1.444","dependencies": {"@clerum/display-field": "file:../packages/display-field","@clerum/llm-providers": "file:../packages/llm-providers",diff --git a/control-ui/package.json b/control-ui/package.jsonindex 930743b63..e63ae6c3c 100644--- a/control-ui/package.json+++ b/control-ui/package.json@@ -1,6 +1,6 @@{"name": "clerum-control-ui",- "version": "0.1.443",+ "version": "0.1.444","private": true,"scripts": {"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",