Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
refactor(control-ui): address pr #857 review notes on hint flush and token
Mc0cdab21b222
diff --git a/control-ui/app/globals.css b/control-ui/app/globals.cssindex 63339935f..c35cabf57 100644--- a/control-ui/app/globals.css+++ b/control-ui/app/globals.css@@ -44,6 +44,10 @@--cu-auth-bg-edge: rgba(var(--cu-edge-rgb), 0.42);--cu-selection-bg: rgba(var(--cu-accent-rgb), 0.45);--cu-selection-text: #ffffff;+ /* Selected/active option background for dropdown option lists. Decoupled+ from the text-selection highlight (--cu-selection-bg) on purpose so the+ two can diverge. */+ --cu-option-selected-bg: rgba(var(--cu-accent-rgb), 0.45);--cu-radius: 12px;--cu-radius-sm: 8px;--cu-radius-pill: 999px;@@ -167,6 +171,7 @@--cu-auth-bg-edge: rgba(var(--cu-edge-rgb), 0.28);--cu-selection-bg: rgba(var(--cu-accent-rgb), 0.3);--cu-selection-text: var(--cu-brand-dark-blue);+ --cu-option-selected-bg: rgba(var(--cu-accent-rgb), 0.3);--cu-preview-body-bg: var(--cu-bg);}@@ -1361,6 +1366,12 @@ body.cu-body {color: var(--cu-text-soft);}+/* Flushes the UA paragraph margin when a hint stands alone inside a block+ that already owns its spacing. */+.cu-field__hint--flush {+ margin: 0;+}+.cu-field__error {color: var(--cu-danger);}@@ -6771,7 +6782,7 @@ td.cu-registry-description {.cu-agent-select__option[data-active='true'] {color: var(--cu-text);- background: var(--cu-selection-bg);+ background: var(--cu-option-selected-bg);box-shadow: inset 0 0 0 1px var(--cu-accent);outline: none;}@@ -7010,7 +7021,7 @@ td.cu-registry-description {.cu-selection-dropdown__option[data-selected='true'] {color: var(--cu-text);- background: var(--cu-selection-bg);+ background: var(--cu-option-selected-bg);box-shadow: inset 0 0 0 1px var(--cu-accent);outline: none;}diff --git a/control-ui/components/CodexSubscriptionHub/index.tsx b/control-ui/components/CodexSubscriptionHub/index.tsxindex 51eba91c0..367e28f23 100644--- a/control-ui/components/CodexSubscriptionHub/index.tsx+++ b/control-ui/components/CodexSubscriptionHub/index.tsx@@ -955,9 +955,8 @@ export function CodexSubscriptionHub() {</p>{connectedGrant ? (<p- className="cu-field__hint"+ className="cu-field__hint cu-field__hint--flush"data-testid="codex-signin-connected"- style={{ margin: 0 }}>{`Signed in with ${dialogCopy.brand} — agents authorize through this grant.`}</p>diff --git a/control-ui/package-lock.json b/control-ui/package-lock.jsonindex 6a11d5f01..a7466dcb2 100644--- a/control-ui/package-lock.json+++ b/control-ui/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-control-ui",- "version": "0.1.654",+ "version": "0.1.655","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-control-ui",- "version": "0.1.654",+ "version": "0.1.655","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.jsonindex 956a113f2..349558be4 100644--- a/control-ui/package.json+++ b/control-ui/package.json@@ -1,6 +1,6 @@{"name": "clerum-control-ui",- "version": "0.1.654",+ "version": "0.1.655","private": true,"scripts": {"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",