Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

fix: align team agents with member table styling

Josuéb3db06daf696
diff --git a/control-ui/app/globals.css b/control-ui/app/globals.css
index e4d28a22b..f3b7e51eb 100644
--- a/control-ui/app/globals.css
+++ b/control-ui/app/globals.css
@@ -9264,23 +9264,10 @@ td.cu-registry-description {
}
}
-.cu-access-row {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 0.75rem;
- padding: 0.55rem 0;
- border-bottom: 1px solid var(--cu-border-subtle);
-}
-
-.cu-access-row:last-child {
- border-bottom: none;
-}
-
-/* Review R1-H1: agent rows in the member/team Agents tabs lead with the
- * display name (spec.host) and stack the immutable slug underneath whenever
- * the two differ — display names are not unique, the slug is the stable
- * identity for navigation, grants, and revoke. */
+/* Review R1-H1: member Agents rows lead with the display name (spec.host) and
+ * stack the immutable slug underneath whenever the two differ — display names
+ * are not unique, the slug is the stable identity for navigation, grants, and
+ * revoke. Team Agents use a separately labelled Agent ID table column. */
.cu-access-agent-copy {
display: grid;
gap: var(--cu-space-0);
diff --git a/control-ui/app/profile-admin/teams/[teamId]/page.tsx b/control-ui/app/profile-admin/teams/[teamId]/page.tsx
index 4b5f9e753..1cfbdc34f 100644
--- a/control-ui/app/profile-admin/teams/[teamId]/page.tsx
+++ b/control-ui/app/profile-admin/teams/[teamId]/page.tsx
@@ -5,8 +5,6 @@ import { useParams, useRouter } from 'next/navigation'
import {
DataTable,
DialogShell,
- RecordList,
- RecordListRow,
RowActionMenu,
SingleValueEditDialog,
TableViewport,
@@ -970,77 +968,96 @@ export default function TeamDetailsPage() {
{activeTab === 'agents' && (
<>
<p className="cu-muted cu-detail-section-copy">Agents this team may use.</p>
- {initialLoading ? (
- <div role="list">
- {[1, 2, 3].map(i => (
- <div key={i} className="cu-skeleton--row" role="listitem">
- <div
- className="cu-skeleton cu-skeleton--cell"
- style={{ width: '10rem' }}
- ></div>
- <div
- className="cu-skeleton cu-skeleton--cell"
- style={{ width: '4rem' }}
- ></div>
- </div>
- ))}
- </div>
- ) : effectiveAgentNames.length === 0 ? (
- <div className="cu-empty" style={{ padding: '0.5rem 0' }}>
- No agent access yet.
- </div>
- ) : (
- <RecordList>
- {effectiveAgentNames.map(agentName => {
- // Rename propagation: display name (spec.host) — same
- // resolution as the add-agent picker on this page. Links
- // and actions stay keyed by the immutable slug.
- // Review R1-H1: display names are not unique, so the slug
- // stays visible as secondary identity whenever it differs,
- // and the action label carries it to keep duplicates
- // distinguishable and correctly targeted.
- const agentDisplayName = getAgentDisplayName(agentName, hosts)
- const agentRowLabel =
- agentDisplayName === agentName
- ? agentDisplayName
- : `${agentDisplayName} (${agentName})`
- return (
- <RecordListRow key={agentName} className="cu-access-row">
- <div className="cu-access-agent-copy">
- <button
- type="button"
- className="cu-link"
- onClick={() => router.push(CONTROL_ROUTES.agents.detail(agentName))}
- >
- {agentDisplayName}
- </button>
- {agentDisplayName !== agentName ? (
- <span className="cu-access-agent-id">{agentName}</span>
- ) : null}
- </div>
- <RowActionMenu
- ariaLabel={`Actions for agent ${agentRowLabel}`}
- actions={[
- {
- key: 'view',
- label: 'View agent details',
- onSelect: () =>
- router.push(CONTROL_ROUTES.agents.detail(agentName)),
- },
- {
- key: 'revoke',
- label: 'Revoke agent access',
- danger: true,
- disabled: busy,
- onSelect: () => void revokeAgentAccess(agentName),
- },
- ]}
- />
- </RecordListRow>
- )
- })}
- </RecordList>
- )}
+ <TableViewport className="cu-table-wrap">
+ <DataTable className="eft-table cu-table">
+ <thead>
+ <tr>
+ <th>Agent</th>
+ <th>Agent ID</th>
+ <th></th>
+ </tr>
+ </thead>
+ <tbody>
+ {initialLoading ? (
+ [1, 2, 3].map(i => (
+ <tr key={i}>
+ <td>
+ <div
+ className="cu-skeleton cu-skeleton--cell"
+ style={{ width: '10rem' }}
+ ></div>
+ </td>
+ <td>
+ <div
+ className="cu-skeleton cu-skeleton--cell"
+ style={{ width: '8rem' }}
+ ></div>
+ </td>
+ <td></td>
+ </tr>
+ ))
+ ) : effectiveAgentNames.length === 0 ? (
+ <tr>
+ <td colSpan={3}>
+ <div className="cu-empty cu-empty--compact">No agent access yet.</div>
+ </td>
+ </tr>
+ ) : (
+ effectiveAgentNames.map(agentName => {
+ // Rename propagation: display name (spec.host) — same
+ // resolution as the add-agent picker on this page. Links
+ // and actions stay keyed by the immutable slug.
+ // Review R1-H1: display names are not unique, so keep
+ // the slug visible as the stable identity and include
+ // it in the action label to target duplicates safely.
+ const agentDisplayName = getAgentDisplayName(agentName, hosts)
+ const agentRowLabel =
+ agentDisplayName === agentName
+ ? agentDisplayName
+ : `${agentDisplayName} (${agentName})`
+ return (
+ <tr key={agentName}>
+ <td>
+ <button
+ type="button"
+ className="cu-link"
+ onClick={() =>
+ router.push(CONTROL_ROUTES.agents.detail(agentName))
+ }
+ >
+ {agentDisplayName}
+ </button>
+ </td>
+ <td>
+ <span className="cu-access-agent-id">{agentName}</span>
+ </td>
+ <td className="cu-table__cell-actions">
+ <RowActionMenu
+ ariaLabel={`Actions for agent ${agentRowLabel}`}
+ actions={[
+ {
+ key: 'view',
+ label: 'View agent details',
+ onSelect: () =>
+ router.push(CONTROL_ROUTES.agents.detail(agentName)),
+ },
+ {
+ key: 'revoke',
+ label: 'Revoke agent access',
+ danger: true,
+ disabled: busy,
+ onSelect: () => void revokeAgentAccess(agentName),
+ },
+ ]}
+ />
+ </td>
+ </tr>
+ )
+ })
+ )}
+ </tbody>
+ </DataTable>
+ </TableViewport>
</>
)}
</>
diff --git a/control-ui/package-lock.json b/control-ui/package-lock.json
index 9ce70a091..3a394d317 100644
--- a/control-ui/package-lock.json
+++ b/control-ui/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-control-ui",
- "version": "0.1.702",
+ "version": "0.1.703",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-control-ui",
- "version": "0.1.702",
+ "version": "0.1.703",
"dependencies": {
"@clerum/display-field": "file:../packages/display-field",
"@clerum/frontend-components": "file:../packages/frontend-components",
diff --git a/control-ui/package.json b/control-ui/package.json
index 19c877522..17049afb2 100644
--- a/control-ui/package.json
+++ b/control-ui/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-control-ui",
- "version": "0.1.702",
+ "version": "0.1.703",
"private": true,
"scripts": {
"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",