Repository navigation
Description
Summary
Render the display name with the slug beneath it on the nine UI surfaces that have room for a two-line treatment, and retire the template-derived fallback in favour of the #964 precedence chain. This is where users first see the feature.
Follow-up 3 of 5 from the design decision on #964.
Context
Of ~67 agent-name render sites, only nine are roomy enough for "display name primary, slug secondary". Three of them (OverviewPanel.vue, InfoPanel.vue, and the public chat header via src/backend/routers/public.py) already render a template-derived friendly name — this issue switches them onto the durable precedence chain so the old, inconsistent path retires rather than lingering alongside the new one.
The core constraint from #964: when a display name is set, the slug stays visible so it's always clear which agent you're looking at.
Acceptance Criteria
- Two-line treatment (display name primary, slug secondary) on all nine roomy surfaces:
-
src/frontend/src/components/AgentHeader.vue(badge row directly below is the natural slug slot) -
src/frontend/src/components/OverviewPanel.vue -
src/frontend/src/components/AgentTile.vue(reuse the existing.t-reposecondary line) -
src/frontend/src/components/portal/PortalBriefing.vue -
src/frontend/src/components/portal/PortalSidebar.vue -
src/frontend/src/components/portal/PortalConversation.vue -
src/frontend/src/views/enterprise/PortalChat.vue -
src/frontend/src/views/enterprise/ClientPortal.vue -
src/frontend/src/views/MobileAdmin.vue
-
- When no display name is set, the slug is promoted to primary and there is no dangling empty secondary line
-
OverviewPanel.vue/InfoPanel.vue/ public chat header read the precedence chain (DB → template → slug) rather than template-only -
src/backend/routers/public.pyreads the column instead of falling back through container labels; the friendly name now renders when the agent is stopped -
src/backend/routers/voice.pystops synthesising a name viaagent_name.replace("-", " ").title() -
AgentAvatarstill receives the slug — verified that setting a display name does not change any agent's avatar colour or initials - Dark mode + truncation verified on every surface
- Frontend e2e snapshots updated
Technical Notes
Idiom to copy — already in the codebase at src/frontend/src/components/SharingPanel.vue, which promotes the identity to primary when there's no friendly name so there's never an empty line:
<span class="font-medium">{{ x.display_name || x.identity }}</span>
<span v-if="x.display_name" class="block text-xs text-gray-500 dark:text-gray-400">{{ x.identity }}</span>Avatar risk (load-bearing). src/frontend/src/components/AgentAvatar.vue derives initials from the name and hashes it into the background gradient. Passing a display name makes "TOM — Marketing operations" yield initials TM and silently recolours every agent's avatar the moment a name is set — across 16 call sites, plus a duplicate implementation in ClientPortal.vue. Per the #964 decision: keep passing the slug so identity colour stays stable. If a surface wants display-name initials, add a separate :initials-from prop rather than repointing :name.
Collaboration graph is deliberately out of scope here — AgentNode.vue uses data.label as both display text and API key (router.push, toggleAutonomy, toggleAgentRunning), so it needs the sibling-field change in src/frontend/src/stores/network.js. Handled in the long-tail issue.
Depends on: the #964 schema/API/MCP issue.
Activity
fix(ui): resolve the Timeline tile label off row data, not the agents…
ci: re-trigger unit suite (prior run cancelled, not a real failure)
fix(ui): Dashboard Timeline tile leads with the display name, slug be…