Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(connectors): use the display name in the mapped-agent chip title and aria-label (R1-M12)
Diego Zacariasbbe905f55a5a
diff --git a/desktop-app/ui/src/pages/ContextDetailsPage.tsx b/desktop-app/ui/src/pages/ContextDetailsPage.tsxindex 5ff0c5673..0be4fca01 100644--- a/desktop-app/ui/src/pages/ContextDetailsPage.tsx+++ b/desktop-app/ui/src/pages/ContextDetailsPage.tsx@@ -630,15 +630,18 @@ export function ContextDetailsPage() {key={`${server.name}:${agentName}`}kind="agent"onClick={() => handleOpenAgentWorkspace(agentName, 'mcp-servers')}- title={agentName}- aria-label={`Open connectors for agent ${agentName}`}+ title={agentDisplayByName[agentName] ?? agentName}+ aria-label={`Open connectors for agent ${+ agentDisplayByName[agentName] ?? agentName+ }`}>{/* Visible agent name (spec.host). mappedAgentscan include cross-team agents (from scopedcontext detail sources) absent from thecatalog map, so fall back to the identifierfor those — not the Decision #6 `|| name`- guard. */}+ guard. Title + aria-label track the visible+ text so a screen reader announces the same. */}{agentDisplayByName[agentName] ?? agentName}</ReferenceTag>))}diff --git a/desktop-app/ui/src/pages/__tests__/ContextDetailsPage.test.tsx b/desktop-app/ui/src/pages/__tests__/ContextDetailsPage.test.tsxindex deb5c82d6..8859563e6 100644--- a/desktop-app/ui/src/pages/__tests__/ContextDetailsPage.test.tsx+++ b/desktop-app/ui/src/pages/__tests__/ContextDetailsPage.test.tsx@@ -506,6 +506,31 @@ describe('ContextDetailsPage — Connectors tab actions', () => {)})+ it('(d) mapped-agent chip uses the display name in text, title AND aria-label (R1-M12)', () => {+ const { container } = renderWithContexts(+ {},+ {+ // Seed a host→display mapping for the mapped agent.+ accessCatalog: { ...ACCESS_CATALOG, agentDisplayByName: { alpha: 'Alpha Bot' } },+ mcpServers: { selectedContextMcpServerDetails: CONTEXT_SERVERS },+ connectors: { agents: CONNECTOR_AGENTS },+ }+ )+ openConnectorsTab()++ // Screen readers must announce the same name the chip shows — not the raw id.+ const chip = within(connectorRow(container, 'monday')).getByRole('button', {+ name: 'Open connectors for agent Alpha Bot',+ })+ expect(chip.getAttribute('title')).toBe('Alpha Bot')+ expect(chip.textContent).toContain('Alpha Bot')+ expect(+ within(connectorRow(container, 'monday')).queryByRole('button', {+ name: 'Open connectors for agent alpha',+ })+ ).toBeNull()+ })+it('(d) the status pill reflects each connector state', () => {const { container } = renderWithContexts({},