Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
feat(control-ui): overview — clickable card headers, drop agent ID, connectors rename
Miguelon Peluchonce99411454be
diff --git a/control-ui/app/globals.css b/control-ui/app/globals.cssindex 75611312c..9274a2a6a 100644--- a/control-ui/app/globals.css+++ b/control-ui/app/globals.css@@ -7539,6 +7539,57 @@ textarea.cu-input {color: var(--cu-text-muted);}+/* Clickable section header inside an Overview card. Matches the rhythm of+ `.cu-host-overview-section-label` (uppercase, muted) but reads as a+ navigation affordance via the chevron + hover color shift. */+.cu-host-overview-nav-header {+ display: inline-flex;+ align-items: center;+ gap: 0.35rem;+ width: 100%;+ margin: 0 0 var(--cu-space-2);+ padding: 0;+ background: none;+ border: none;+ font-size: 0.6875rem;+ font-weight: 700;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ color: var(--cu-text-muted);+ text-align: left;+ cursor: pointer;+}++.cu-host-overview-nav-header:hover:not(:disabled),+.cu-host-overview-nav-header:focus-visible {+ color: var(--cu-text);+}++.cu-host-overview-nav-header:disabled {+ cursor: default;+ color: var(--cu-text-muted);+}++.cu-host-overview-nav-header__label {+ flex: 1;+}++.cu-host-overview-nav-header__chev {+ display: inline-block;+ font-size: 0.875rem;+ line-height: 1;+ opacity: 0.6;+ transition:+ transform var(--cu-control-transition),+ opacity var(--cu-control-transition);+}++.cu-host-overview-nav-header:hover:not(:disabled) .cu-host-overview-nav-header__chev,+.cu-host-overview-nav-header:focus-visible .cu-host-overview-nav-header__chev {+ transform: translateX(2px);+ opacity: 1;+}+.cu-host-overview-identity__counts {display: flex;align-items: stretch;diff --git a/control-ui/app/hosts/[name]/page.tsx b/control-ui/app/hosts/[name]/page.tsxindex f88183f5d..a1965c57e 100644--- a/control-ui/app/hosts/[name]/page.tsx+++ b/control-ui/app/hosts/[name]/page.tsx@@ -853,11 +853,6 @@ export default function HostDetailsPage() {contextRef={contextRefDraft}contextMcpServers={contextMcpServers}contextMcpTotal={contextMcpServers.length}- contextHref={- contextRefDraft.trim()- ? CONTROL_ROUTES.contexts.connectors(contextRefDraft.trim())- : '#'- }modelPrimary={modelNameDraft}modelProviderLine={modelNameDraft ? `${getProviderLabel(providerDraft)} · ${modelNameDraft}` : ''@@ -866,9 +861,7 @@ export default function HostDetailsPage() {.map(entry => `${getProviderLabel(entry.provider)} · ${entry.model}`).join(', ')}accessSummary={accessSummary}- uid={hostUid}- createdAt={hostCreatedAt}- lastUpdated={hostLastUpdated}+ onNavigate={tab => selectTab(tab)}/>)}diff --git a/control-ui/components/HostOverviewTab/index.tsx b/control-ui/components/HostOverviewTab/index.tsxindex c91e9701a..036b994e1 100644--- a/control-ui/components/HostOverviewTab/index.tsx+++ b/control-ui/components/HostOverviewTab/index.tsx@@ -1,7 +1,6 @@import React from 'react'import { IconRobot } from '../Sidebar/icons'-import { IconCopy } from '../icons'-import type { HostOverviewTabProps } from './types'+import type { HostOverviewTabProps, HostTabKey } from './types'function UsersIcon() {return (@@ -57,10 +56,6 @@ function StatusDot({ tone }: { tone: HostOverviewTabProps['statusTone'] }) {)}-function SectionLabel({ children }: { children: React.ReactNode }) {- return <p className="cu-host-overview-section-label">{children}</p>-}-function initialsFor(name: string): string {const parts = String(name || '').trim()@@ -72,6 +67,34 @@ function initialsFor(name: string): string {return (first + last).toUpperCase() || '?'}+// Each section header is a button that jumps the operator to the matching+// detail tab. The label keeps the visual rhythm (uppercase, muted) and the+// chevron telegraphs that it's a navigation affordance.+function NavHeader({+ label,+ tab,+ onNavigate,+}: {+ label: string+ tab?: HostTabKey+ onNavigate: (tab: HostTabKey) => void+}) {+ return (+ <button+ type="button"+ className="cu-host-overview-nav-header"+ onClick={tab ? () => onNavigate(tab) : undefined}+ disabled={!tab}+ aria-label={tab ? `Open ${label}` : undefined}+ >+ <span className="cu-host-overview-nav-header__label">{label}</span>+ <span className="cu-host-overview-nav-header__chev" aria-hidden="true">+ ›+ </span>+ </button>+ )+}+function ConfigRow({ setting, value }: { setting: string; value: React.ReactNode }) {return (<div className="cu-host-overview-config__row">@@ -89,14 +112,11 @@ export function HostOverviewTab({contextRef,contextMcpServers,contextMcpTotal,- contextHref,modelPrimary,modelProviderLine,modelAllowlistLine,accessSummary,- uid,- createdAt,- lastUpdated,+ onNavigate,}: HostOverviewTabProps) {const shownName = displayName.trim() || hostNameconst contextLabel = contextRef.trim() || '—'@@ -118,7 +138,7 @@ export function HostOverviewTab({<div className="cu-host-overview-identity__divider" />- <SectionLabel>Access</SectionLabel>+ <NavHeader label="Access" tab="access" onNavigate={onNavigate} /><div className="cu-host-overview-identity__counts"><div><div className="cu-host-overview-identity__count-value">@@ -139,10 +159,10 @@ export function HostOverviewTab({<div className="cu-host-overview-identity__divider" />- <SectionLabel>Context</SectionLabel>+ <NavHeader label="Context" tab="contexts" onNavigate={onNavigate} />{hasContext ? (<a- href={contextHref}+ href="#"className="cu-chip cu-host-overview-context-chip"style={{ display: 'inline-flex', alignItems: 'center', gap: '0.4rem' }}>@@ -168,40 +188,12 @@ export function HostOverviewTab({—</span>)}-- <div className="cu-host-overview-identity__divider" />-- <SectionLabel>Agent ID</SectionLabel>- <div className="cu-host-overview-identity__uid">- <span className="cu-host-overview-identity__uid-text">{uid || '—'}</span>- {uid ? (- <button- type="button"- className="cu-btn cu-btn--icon cu-btn--ghost cu-btn--sm"- aria-label="Copy agent ID"- title="Copy agent ID"- onClick={() => {- if (typeof navigator !== 'undefined' && navigator.clipboard) {- void navigator.clipboard.writeText(uid)- }- }}- >- <IconCopy width={14} height={14} />- </button>- ) : null}- </div>- <dl className="cu-host-overview-identity__meta">- <dt>Created</dt>- <dd>{createdAt || '—'}</dd>- <dt>Last updated</dt>- <dd>{lastUpdated || '—'}</dd>- </dl></section><div className="cu-host-overview-right"><section className="cu-card" aria-label="Configuration"><div className="cu-card__body">- <p className="cu-host-overview-section-label">Configuration</p>+ <NavHeader label="Configuration" tab="model" onNavigate={onNavigate} /><div className="cu-host-overview-config"><ConfigRow setting="Primary model" value={modelPrimary} /><ConfigRow setting="Provider · Model" value={modelProviderLine} />@@ -212,7 +204,7 @@ export function HostOverviewTab({<section className="cu-card" aria-label="Access summary"><div className="cu-card__body">- <p className="cu-host-overview-section-label">Access</p>+ <NavHeader label="Access" tab="access" onNavigate={onNavigate} /><div className="cu-host-overview-access__columns"><div className="cu-host-overview-access__group">@@ -270,12 +262,10 @@ export function HostOverviewTab({</div></section>- <section className="cu-card" aria-label="MCP servers">+ <section className="cu-card" aria-label="Connectors"><div className="cu-card__body">+ <NavHeader label="Connectors" tab="contexts" onNavigate={onNavigate} /><div className="cu-host-overview-mcp__head">- <p className="cu-host-overview-section-label" style={{ margin: 0 }}>- MCP servers- </p><span className="cu-agent-context-mcp-summary__head" style={{ margin: 0 }}><span>{contextMcpTotal}</span></span>@@ -291,15 +281,9 @@ export function HostOverviewTab({</ul>) : (<p className="cu-muted" style={{ margin: '0.5rem 0 0', fontSize: '0.875rem' }}>- {hasContext ? 'No MCP servers attached.' : 'No context selected.'}+ {hasContext ? 'No connectors attached.' : 'No context selected.'}</p>)}- {hasContext ? (- <a className="cu-host-overview-mcp__link" href={contextHref}>- View all MCP servers- <span aria-hidden="true">→</span>- </a>- ) : null}</div></section></div>diff --git a/control-ui/components/HostOverviewTab/types.ts b/control-ui/components/HostOverviewTab/types.tsindex 8f06c2bc5..f687f2dc3 100644--- a/control-ui/components/HostOverviewTab/types.ts+++ b/control-ui/components/HostOverviewTab/types.ts@@ -5,6 +5,8 @@ export type HostOverviewAccessSummary = {teamNames: string[]}+export type HostTabKey = 'access' | 'model' | 'contexts'+export type HostOverviewTabProps = {hostName: stringdisplayName: string@@ -13,12 +15,9 @@ export type HostOverviewTabProps = {contextRef: stringcontextMcpServers: string[]contextMcpTotal: number- contextHref: stringmodelPrimary: stringmodelProviderLine: stringmodelAllowlistLine: stringaccessSummary: HostOverviewAccessSummary- uid: string- createdAt: string- lastUpdated: string+ onNavigate: (tab: HostTabKey) => void}diff --git a/control-ui/package-lock.json b/control-ui/package-lock.jsonindex 314c50b2c..c6b258943 100644--- a/control-ui/package-lock.json+++ b/control-ui/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-control-ui",- "version": "0.1.445",+ "version": "0.1.446","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-control-ui",- "version": "0.1.445",+ "version": "0.1.446","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 b26a1c932..73e7bf984 100644--- a/control-ui/package.json+++ b/control-ui/package.json@@ -1,6 +1,6 @@{"name": "clerum-control-ui",- "version": "0.1.445",+ "version": "0.1.446","private": true,"scripts": {"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",