Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
feat(control-ui): use IconRobot avatar + rename Context to Connectors
Miguelon Peluchonfb12fa80e1f8
diff --git a/control-ui/app/globals.css b/control-ui/app/globals.cssindex 3e49b9f3d..75611312c 100644--- a/control-ui/app/globals.css+++ b/control-ui/app/globals.css@@ -7420,6 +7420,20 @@ textarea.cu-input {max-width: 100%;}+.cu-host-context-count {+ display: inline-grid;+ place-items: center;+ min-width: 1.75rem;+ padding: 0.1rem 0.5rem;+ border-radius: var(--cu-radius-pill);+ border: 1px solid var(--cu-border-subtle);+ background: rgba(var(--cu-panel-rgb), 0.5);+ color: var(--cu-text);+ font-variant-numeric: tabular-nums;+ font-weight: 600;+ line-height: 1.2;+}+.cu-host-context-hover > .cu-agent-context-mcp-summary {position: absolute;top: calc(100% + var(--cu-space-1));diff --git a/control-ui/app/hosts/[name]/page.tsx b/control-ui/app/hosts/[name]/page.tsxindex 6eec5c974..cb29e8cc8 100644--- a/control-ui/app/hosts/[name]/page.tsx+++ b/control-ui/app/hosts/[name]/page.tsx@@ -43,7 +43,7 @@ const TAB_LABELS: Record<HostTab, string> = {details: 'Overview',model: 'Models & creds',advanced: 'Advanced',- contexts: 'Context',+ contexts: 'Connectors',access: 'Access',identity: 'Identity',}diff --git a/control-ui/components/HostOverviewTab/index.tsx b/control-ui/components/HostOverviewTab/index.tsxindex 2719a2ed0..c91e9701a 100644--- a/control-ui/components/HostOverviewTab/index.tsx+++ b/control-ui/components/HostOverviewTab/index.tsx@@ -1,4 +1,5 @@import React from 'react'+import { IconRobot } from '../Sidebar/icons'import { IconCopy } from '../icons'import type { HostOverviewTabProps } from './types'@@ -106,23 +107,7 @@ export function HostOverviewTab({<div className="cu-host-overview"><section className="cu-host-overview-identity" aria-label="Agent identity"><div className="cu-host-overview-identity__avatar" aria-hidden="true">- <svg- viewBox="0 0 24 24"- width="44"- height="44"- fill="none"- stroke="currentColor"- strokeWidth="1.7"- strokeLinecap="round"- strokeLinejoin="round"- >- <rect x="5" y="7" width="14" height="12" rx="3" />- <path d="M9 4h6" />- <circle cx="9" cy="13" r="1.2" fill="currentColor" stroke="none" />- <circle cx="15" cy="13" r="1.2" fill="currentColor" stroke="none" />- <path d="M12 16v3" />- <path d="M9 19h6" />- </svg>+ <IconRobot /></div><div className="cu-host-overview-identity__name">{shownName}</div><div className="cu-host-overview-identity__slug">{hostName}</div>diff --git a/control-ui/components/HostTable.tsx b/control-ui/components/HostTable.tsxindex 1936b794b..39f9b3372 100644--- a/control-ui/components/HostTable.tsx+++ b/control-ui/components/HostTable.tsx@@ -15,7 +15,7 @@ import { IconRefresh } from './icons'const HOST_COLUMNS: TableHeaderColumn[] = [{ key: 'name', label: 'Name' },- { key: 'context', label: 'Context', width: '20%' },+ { key: 'context', label: 'Connectors', width: '14%' },{ key: 'providers', label: 'Providers', minWidth: '8rem' },{ key: 'actions', width: '3.5rem', align: 'right', ariaLabel: 'Actions' },]@@ -56,13 +56,14 @@ function ContextMcpHoverCard({onOpenContext: (contextRef: string) => void}) {const [open, setOpen] = useState(false)- const hasServers = Array.isArray(mcpServers) && mcpServers.length > 0+ const servers = Array.isArray(mcpServers) ? mcpServers : []+ const hasServers = servers.length > 0const cardId = `ctx-mcp-${contextRef}`const trigger = (<buttontype="button"- className="cu-link"+ className="cu-link cu-host-context-count"onClick={e => {e.stopPropagation()onOpenContext(contextRef)@@ -70,7 +71,7 @@ function ContextMcpHoverCard({onKeyDown={e => e.stopPropagation()}aria-describedby={hasServers && open ? cardId : undefined}>- {contextRef}+ {servers.length}</button>)@@ -88,11 +89,11 @@ function ContextMcpHoverCard({{open ? (<div role="tooltip" id={cardId} className="cu-agent-context-mcp-summary"><div className="cu-agent-context-mcp-summary__head">- <span>MCP servers</span>- <span>{mcpServers.length}</span>+ <span>{contextRef}</span>+ <span>{servers.length}</span></div><ul className="cu-agent-context-mcp-summary__list">- {mcpServers.map(server => (+ {servers.map(server => (<li key={server} title={server}>{server}</li>@@ -227,7 +228,9 @@ export function HostTable({{filteredRows.map(({ key, namespace, name, displayName, item }) => {const rawContext = String(item.spec?.contextRef || '').trim()const contextRef = rawContext || '-'- const contextClickable = Boolean(rawContext)+ const contextServers = contextsByRef?.[rawContext]+ const contextClickable =+ Boolean(rawContext) && Array.isArray(contextServers) && contextServers.length > 0const providers = collectProviderIds(item.spec || {})const openAgent = () => onOpen({ namespace, name })return (@@ -254,11 +257,13 @@ export function HostTable({{contextClickable ? (<ContextMcpHoverCardcontextRef={contextRef}- mcpServers={contextsByRef?.[rawContext]}+ mcpServers={contextServers}onOpenContext={onOpenContext}/>+ ) : rawContext ? (+ <span className="cu-table__cell-muted">0</span>) : (- <span className="cu-table__cell-muted">{contextRef}</span>+ <span className="cu-table__cell-muted">—</span>)}</td><td className="cu-table__cell-soft">diff --git a/control-ui/components/__tests__/HostTable.test.tsx b/control-ui/components/__tests__/HostTable.test.tsxindex ddbc53960..a3493cebf 100644--- a/control-ui/components/__tests__/HostTable.test.tsx+++ b/control-ui/components/__tests__/HostTable.test.tsx@@ -228,11 +228,12 @@ describe('HostTable display name column (UT-9)', () => {})// Hover card on the Context column — when the page supplies a `contextsByRef`-// map, hovering (or keyboard-focusing) the context link reveals the same-// MCP-server list the create wizard shows for the selected context.+// map, hovering (or keyboard-focusing) the context pill reveals the same+// MCP-server list the create wizard shows for the selected context. The cell+// shows the count; the tooltip shows the context name + count + names.describe('HostTable context MCP hover card', () => {- function contextLink(row: HTMLElement): HTMLElement {- return within(row).getByRole('button', { name: 'context1' })+ function contextPill(row: HTMLElement, count: string): HTMLElement {+ return within(row).getByRole('button', { name: count })}it('reveals the MCP server list on hover and lists every server', () => {@@ -241,21 +242,21 @@ describe('HostTable context MCP hover card', () => {})const row = screen.getByLabelText('Open agent chatllm')- const link = contextLink(row)+ const pill = contextPill(row, '3')// Closed by default — nothing tooltipped.expect(within(row).queryByRole('tooltip')).not.toBeInTheDocument()- expect(link).not.toHaveAttribute('aria-describedby')+ expect(pill).not.toHaveAttribute('aria-describedby')- fireEvent.mouseEnter(link)+ fireEvent.mouseEnter(pill)const card = within(row).getByRole('tooltip')- expect(card).toHaveTextContent('MCP servers')+ expect(card).toHaveTextContent('context1')expect(card).toHaveTextContent('3')expect(within(card).getByText('github')).toBeInTheDocument()expect(within(card).getByText('linear')).toBeInTheDocument()expect(within(card).getByText('slack')).toBeInTheDocument()- fireEvent.mouseLeave(link)+ fireEvent.mouseLeave(pill)expect(within(row).queryByRole('tooltip')).not.toBeInTheDocument()})@@ -265,34 +266,32 @@ describe('HostTable context MCP hover card', () => {})const row = screen.getByLabelText('Open agent chatllm')- const link = contextLink(row)+ const pill = contextPill(row, '1')- fireEvent.focus(link)+ fireEvent.focus(pill)const card = within(row).getByRole('tooltip')expect(within(card).getByText('github')).toBeInTheDocument()- expect(link).toHaveAttribute('aria-describedby', card.id)+ expect(pill).toHaveAttribute('aria-describedby', card.id)- fireEvent.blur(link)+ fireEvent.blur(pill)expect(within(row).queryByRole('tooltip')).not.toBeInTheDocument()})- it('stays a plain link when the context has no MCP servers', () => {+ it('renders the bare count without a tooltip when the context has no MCP servers', () => {renderHostTable([hostWithContext('chatllm', 'context1')], {context1: [],})const row = screen.getByLabelText('Open agent chatllm')expect(within(row).queryByRole('tooltip')).not.toBeInTheDocument()- fireEvent.mouseEnter(within(row).getByRole('button', { name: 'context1' }))- expect(within(row).queryByRole('tooltip')).not.toBeInTheDocument()+ expect(within(row).getByText('0')).toBeInTheDocument()})- it('does not show a card when the context map is missing', () => {+ it('renders a plain 0 when the context map is missing', () => {renderHostTable([hostWithContext('chatllm', 'context1')])const row = screen.getByLabelText('Open agent chatllm')- const link = within(row).getByRole('button', { name: 'context1' })- fireEvent.mouseEnter(link)+ expect(within(row).getByText('0')).toBeInTheDocument()expect(within(row).queryByRole('tooltip')).not.toBeInTheDocument()})})diff --git a/control-ui/package-lock.json b/control-ui/package-lock.jsonindex 875b41811..f82798ed4 100644--- a/control-ui/package-lock.json+++ b/control-ui/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-control-ui",- "version": "0.1.442",+ "version": "0.1.443","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-control-ui",- "version": "0.1.442",+ "version": "0.1.443","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 903f97ff5..930743b63 100644--- a/control-ui/package.json+++ b/control-ui/package.json@@ -1,6 +1,6 @@{"name": "clerum-control-ui",- "version": "0.1.442",+ "version": "0.1.443","private": true,"scripts": {"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",