Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
feat(control-ui): overview — inline icon, restore timestamps, drop svg titles
Miguelon Peluchon999b1b4c39c5
diff --git a/control-ui/app/globals.css b/control-ui/app/globals.cssindex 9274a2a6a..6e5bde072 100644--- a/control-ui/app/globals.css+++ b/control-ui/app/globals.css@@ -7467,6 +7467,24 @@ textarea.cu-input {text-align: center;}+.cu-host-overview-identity__icon {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ width: 1em;+ height: 1em;+ margin-right: 0.35em;+ vertical-align: -0.1em;+ color: var(--cu-accent);+ flex-shrink: 0;+}++.cu-host-overview-identity__icon svg {+ width: 100%;+ height: 100%;+ display: block;+}+.cu-host-overview-identity__avatar {display: grid;place-items: center;@@ -7574,6 +7592,19 @@ textarea.cu-input {flex: 1;}+.cu-host-overview-nav-header__count {+ min-width: 1.5rem;+ padding: 0.05rem 0.45rem;+ border: 1px solid var(--cu-border-subtle);+ border-radius: var(--cu-radius-pill);+ background: rgba(var(--cu-panel-rgb), 0.5);+ color: var(--cu-text);+ font-variant-numeric: tabular-nums;+ font-size: 0.75rem;+ font-weight: 600;+ text-align: center;+}+.cu-host-overview-nav-header__chev {display: inline-block;font-size: 0.875rem;diff --git a/control-ui/app/hosts/[name]/page.tsx b/control-ui/app/hosts/[name]/page.tsxindex a1965c57e..2ca0ebbd0 100644--- a/control-ui/app/hosts/[name]/page.tsx+++ b/control-ui/app/hosts/[name]/page.tsx@@ -862,6 +862,8 @@ export default function HostDetailsPage() {.join(', ')}accessSummary={accessSummary}onNavigate={tab => selectTab(tab)}+ createdAt={hostCreatedAt}+ lastUpdated={hostLastUpdated}/>)}diff --git a/control-ui/components/HostOverviewTab/index.tsx b/control-ui/components/HostOverviewTab/index.tsxindex 036b994e1..b0921c633 100644--- a/control-ui/components/HostOverviewTab/index.tsx+++ b/control-ui/components/HostOverviewTab/index.tsx@@ -2,48 +2,6 @@ import React from 'react'import { IconRobot } from '../Sidebar/icons'import type { HostOverviewTabProps, HostTabKey } from './types'-function UsersIcon() {- return (- <svg- viewBox="0 0 24 24"- width="20"- height="20"- fill="none"- stroke="currentColor"- strokeWidth="1.8"- strokeLinecap="round"- strokeLinejoin="round"- aria-hidden="true"- >- <circle cx="9" cy="8" r="3.2" />- <path d="M2.8 19.4c.4-3 2.9-5.2 6.2-5.2s5.8 2.2 6.2 5.2" />- <circle cx="17" cy="6.5" r="2.4" />- <path d="M21.2 17c-.3-2.2-2-3.7-4.2-3.7" />- </svg>- )-}--function TeamIcon() {- return (- <svg- viewBox="0 0 24 24"- width="20"- height="20"- fill="none"- stroke="currentColor"- strokeWidth="1.8"- strokeLinecap="round"- strokeLinejoin="round"- aria-hidden="true"- >- <rect x="3.5" y="6" width="17" height="13" rx="2" />- <path d="M3.5 10.5h17" />- <path d="M8 6V4.5h8V6" />- <path d="M9 14h6" />- </svg>- )-}-const STATUS_DOT_CLASS: Record<HostOverviewTabProps['statusTone'], string> = {active: 'cu-host-overview-status__dot--active',inactive: 'cu-host-overview-status__dot--inactive',@@ -67,16 +25,18 @@ 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.+// Clickable section header inside an Overview card. The optional `count`+// badge sits inline with the label so the count reads as part of the+// section title rather than a separate row.function NavHeader({label,tab,+ count,onNavigate,}: {label: stringtab?: HostTabKey+ count?: numberonNavigate: (tab: HostTabKey) => void}) {return (@@ -88,6 +48,9 @@ function NavHeader({aria-label={tab ? `Open ${label}` : undefined}><span className="cu-host-overview-nav-header__label">{label}</span>+ {typeof count === 'number' ? (+ <span className="cu-host-overview-nav-header__count">{count}</span>+ ) : null}<span className="cu-host-overview-nav-header__chev" aria-hidden="true">›</span>@@ -104,6 +67,20 @@ function ConfigRow({ setting, value }: { setting: string; value: React.ReactNode)}+function formatTimestamp(value: string): string {+ if (!value) return ''+ const date = new Date(value)+ if (Number.isNaN(date.getTime())) return value+ const month = date.toLocaleString('en-US', { month: 'long' })+ const day = date.getDate()+ const year = date.getFullYear()+ let hours = date.getHours()+ const minutes = date.getMinutes().toString().padStart(2, '0')+ const meridiem = hours >= 12 ? 'PM' : 'AM'+ hours = hours % 12 || 12+ return `${month} ${day}, ${year} • ${hours}:${minutes} ${meridiem}`+}+export function HostOverviewTab({hostName,displayName,@@ -117,7 +94,9 @@ export function HostOverviewTab({modelAllowlistLine,accessSummary,onNavigate,-}: HostOverviewTabProps) {+ createdAt,+ lastUpdated,+}: HostOverviewTabProps & { createdAt: string; lastUpdated: string }) {const shownName = displayName.trim() || hostNameconst contextLabel = contextRef.trim() || '—'const hasContext = Boolean(contextRef.trim())@@ -126,10 +105,12 @@ export function HostOverviewTab({return (<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">- <IconRobot />+ <div className="cu-host-overview-identity__name">+ <span className="cu-host-overview-identity__icon" aria-hidden="true">+ <IconRobot />+ </span>+ {shownName}</div>- <div className="cu-host-overview-identity__name">{shownName}</div><div className="cu-host-overview-identity__slug">{hostName}</div><div className="cu-host-overview-identity__status"><StatusDot tone={statusTone} />@@ -188,6 +169,15 @@ export function HostOverviewTab({—</span>)}++ <div className="cu-host-overview-identity__divider" />++ <dl className="cu-host-overview-identity__meta">+ <dt>Created</dt>+ <dd>{formatTimestamp(createdAt) || '—'}</dd>+ <dt>Last updated</dt>+ <dd>{formatTimestamp(lastUpdated) || '—'}</dd>+ </dl></section><div className="cu-host-overview-right">@@ -209,9 +199,6 @@ export function HostOverviewTab({<div className="cu-host-overview-access__columns"><div className="cu-host-overview-access__group"><div className="cu-host-overview-access__head">- <span className="cu-host-overview-access__head-icon" aria-hidden="true">- <UsersIcon />- </span><span className="cu-host-overview-access__head-label">Members</span><span className="cu-host-overview-access__head-count">{accessSummary.memberCount}@@ -235,9 +222,6 @@ export function HostOverviewTab({<div className="cu-host-overview-access__group"><div className="cu-host-overview-access__head">- <span className="cu-host-overview-access__head-icon" aria-hidden="true">- <TeamIcon />- </span><span className="cu-host-overview-access__head-label">Teams</span><span className="cu-host-overview-access__head-count">{accessSummary.teamCount}@@ -264,12 +248,12 @@ export function HostOverviewTab({<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">- <span className="cu-agent-context-mcp-summary__head" style={{ margin: 0 }}>- <span>{contextMcpTotal}</span>- </span>- </div>+ <NavHeader+ label="Connectors"+ tab="contexts"+ count={contextMcpTotal}+ onNavigate={onNavigate}+ />{contextMcpServers.length > 0 ? (<ul className="cu-host-overview-mcp__list">{contextMcpServers.map(server => (diff --git a/control-ui/components/HostOverviewTab/types.ts b/control-ui/components/HostOverviewTab/types.tsindex f687f2dc3..74cdba6ba 100644--- a/control-ui/components/HostOverviewTab/types.ts+++ b/control-ui/components/HostOverviewTab/types.ts@@ -20,4 +20,6 @@ export type HostOverviewTabProps = {modelAllowlistLine: stringaccessSummary: HostOverviewAccessSummaryonNavigate: (tab: HostTabKey) => void+ createdAt: string+ lastUpdated: string}diff --git a/control-ui/package-lock.json b/control-ui/package-lock.jsonindex c6b258943..cb12f538b 100644--- a/control-ui/package-lock.json+++ b/control-ui/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-control-ui",- "version": "0.1.446",+ "version": "0.1.447","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-control-ui",- "version": "0.1.446",+ "version": "0.1.447","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 73e7bf984..a389c6693 100644--- a/control-ui/package.json+++ b/control-ui/package.json@@ -1,6 +1,6 @@{"name": "clerum-control-ui",- "version": "0.1.446",+ "version": "0.1.447","private": true,"scripts": {"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",