Skip to content

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

TypeScript

feat(control-ui): overview — members/teams columns, drop assigned context

Miguelon Peluchon5e467dd8a48c
diff --git a/control-ui/app/globals.css b/control-ui/app/globals.css
index d4930e5ab..c22a0754c 100644
--- a/control-ui/app/globals.css
+++ b/control-ui/app/globals.css
@@ -7628,6 +7628,18 @@ textarea.cu-input {
gap: var(--cu-space-4);
}
+.cu-host-overview-access__columns {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: var(--cu-space-3);
+}
+
+@media (max-width: 32rem) {
+ .cu-host-overview-access__columns {
+ grid-template-columns: 1fr;
+ }
+}
+
.cu-host-overview-access__group {
display: grid;
gap: var(--cu-space-2);
diff --git a/control-ui/components/HostOverviewTab/index.tsx b/control-ui/components/HostOverviewTab/index.tsx
index fb7d34b6c..2719a2ed0 100644
--- a/control-ui/components/HostOverviewTab/index.tsx
+++ b/control-ui/components/HostOverviewTab/index.tsx
@@ -221,7 +221,6 @@ export function HostOverviewTab({
<ConfigRow setting="Primary model" value={modelPrimary} />
<ConfigRow setting="Provider · Model" value={modelProviderLine} />
<ConfigRow setting="Per-host model allowlist" value={allowlist} />
- <ConfigRow setting="Assigned context" value={contextLabel} />
</div>
</div>
</section>
@@ -230,56 +229,58 @@ export function HostOverviewTab({
<div className="cu-card__body">
<p className="cu-host-overview-section-label">Access</p>
- <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}
- </span>
+ <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}
+ </span>
+ </div>
+ {accessSummary.memberNames.length > 0 ? (
+ <ul className="cu-host-overview-access__people">
+ {accessSummary.memberNames.map(name => (
+ <li key={name} className="cu-host-overview-access__person">
+ <span className="cu-host-overview-access__avatar" aria-hidden="true">
+ {initialsFor(name)}
+ </span>
+ <span className="cu-host-overview-access__person-name">{name}</span>
+ </li>
+ ))}
+ </ul>
+ ) : (
+ <p className="cu-host-overview-access__empty">No members yet.</p>
+ )}
</div>
- {accessSummary.memberNames.length > 0 ? (
- <ul className="cu-host-overview-access__people">
- {accessSummary.memberNames.map(name => (
- <li key={name} className="cu-host-overview-access__person">
- <span className="cu-host-overview-access__avatar" aria-hidden="true">
- {initialsFor(name)}
- </span>
- <span className="cu-host-overview-access__person-name">{name}</span>
- </li>
- ))}
- </ul>
- ) : (
- <p className="cu-host-overview-access__empty">No members yet.</p>
- )}
- </div>
- <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}
- </span>
+ <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}
+ </span>
+ </div>
+ {accessSummary.teamNames.length > 0 ? (
+ <ul className="cu-host-overview-access__people">
+ {accessSummary.teamNames.map(name => (
+ <li key={name} className="cu-host-overview-access__person">
+ <span className="cu-host-overview-access__avatar" aria-hidden="true">
+ {initialsFor(name)}
+ </span>
+ <span className="cu-host-overview-access__person-name">{name}</span>
+ </li>
+ ))}
+ </ul>
+ ) : (
+ <p className="cu-host-overview-access__empty">No teams yet.</p>
+ )}
</div>
- {accessSummary.teamNames.length > 0 ? (
- <ul className="cu-host-overview-access__people">
- {accessSummary.teamNames.map(name => (
- <li key={name} className="cu-host-overview-access__person">
- <span className="cu-host-overview-access__avatar" aria-hidden="true">
- {initialsFor(name)}
- </span>
- <span className="cu-host-overview-access__person-name">{name}</span>
- </li>
- ))}
- </ul>
- ) : (
- <p className="cu-host-overview-access__empty">No teams yet.</p>
- )}
</div>
</div>
</section>
diff --git a/control-ui/package-lock.json b/control-ui/package-lock.json
index 7c0904573..dbd6b0ae6 100644
--- a/control-ui/package-lock.json
+++ b/control-ui/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-control-ui",
- "version": "0.1.440",
+ "version": "0.1.441",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-control-ui",
- "version": "0.1.440",
+ "version": "0.1.441",
"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.json
index 163a5a324..53b92ca59 100644
--- a/control-ui/package.json
+++ b/control-ui/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-control-ui",
- "version": "0.1.440",
+ "version": "0.1.441",
"private": true,
"scripts": {
"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",