Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(control-ui): align table toolbar controls
Josuéef4d753b15e0
diff --git a/control-ui/app/globals.css b/control-ui/app/globals.cssindex a3132d595..01890903e 100644--- a/control-ui/app/globals.css+++ b/control-ui/app/globals.css@@ -2347,7 +2347,7 @@ textarea.cu-input {.cu-table-panel__head {display: flex;- align-items: flex-start;+ align-items: stretch;justify-content: space-between;flex-wrap: wrap;gap: 0.65rem;@@ -2379,11 +2379,34 @@ textarea.cu-input {color: var(--cu-text-soft);}+.cu-table-panel__head > .eft-data-view-header__main {+ flex-wrap: wrap;+ width: 100%;+ min-width: 0;+}++.cu-table-panel__head .eft-data-view-header__identity {+ flex: 0 1 auto;+}++.cu-table-panel__head .eft-data-view-header__actions {+ flex: 1 1 42rem;+ min-width: 0;+}+.cu-table-panel__actions {display: flex;align-items: center;+ justify-content: flex-end;+ flex-wrap: wrap;gap: 0.4rem;align-self: flex-start;+ width: 100%;+}++.cu-table-panel__actions > select.cu-input {+ flex: 0 1 auto;+ width: auto;}.cu-table-panel__actions--mcp .cu-section-search {@@ -11055,6 +11078,22 @@ textarea.cu-input {min-width: 0;}+ .cu-table-panel__actions {+ justify-content: flex-start;+ flex-wrap: wrap;+ width: 100%;+ }++ .cu-table-panel__actions > .cu-section-search {+ flex: 0 1 13rem;+ width: min(13rem, 100%);+ }++ .cu-table-panel__head .eft-data-view-header__actions {+ flex: none;+ width: 100%;+ }+.cu-registry-toolbar .cu-section-search {width: 100%;min-width: 0;diff --git a/control-ui/app/outputs/page.tsx b/control-ui/app/outputs/page.tsxindex c379607cf..c77b58b0f 100644--- a/control-ui/app/outputs/page.tsx+++ b/control-ui/app/outputs/page.tsx@@ -192,29 +192,29 @@ function OutputsPageContent() {</>}subtitle="Browse generated artifacts from workflows and chat sessions."- actions={- <>- <SectionSearchInput- value={searchQuery}- onChange={setSearchQuery}- placeholder="Search agent outputs"- ariaLabel="Search agent outputs"- disabled={isRefreshing}+ refreshAction={+ <button+ type="button"+ className="cu-btn cu-btn--icon cu-btn--toolbar"+ onClick={() => void loadAll()}+ disabled={isRefreshing}+ aria-label={isRefreshing ? 'Refreshing outputs…' : 'Reload outputs'}+ >+ <IconRefresh+ className={isRefreshing ? 'cu-spin' : undefined}+ width={18}+ height={18}/>- <button- type="button"- className="cu-btn cu-btn--icon cu-btn--toolbar"- onClick={() => void loadAll()}- disabled={isRefreshing}- aria-label={isRefreshing ? 'Refreshing outputs…' : 'Reload outputs'}- >- <IconRefresh- className={isRefreshing ? 'cu-spin' : undefined}- width={18}- height={18}- />- </button>- </>+ </button>+ }+ search={+ <SectionSearchInput+ value={searchQuery}+ onChange={setSearchQuery}+ placeholder="Search agent outputs"+ ariaLabel="Search agent outputs"+ disabled={isRefreshing}+ />}/><div className="cu-card__body cu-card__body--auto cu-outputs-strip">diff --git a/control-ui/app/plugin-workload-sdk/page.tsx b/control-ui/app/plugin-workload-sdk/page.tsxindex 114e0b684..35cf72001 100644--- a/control-ui/app/plugin-workload-sdk/page.tsx+++ b/control-ui/app/plugin-workload-sdk/page.tsx@@ -309,73 +309,79 @@ export default function PluginWorkloadSdkPage() {}subtitle="Per-recipe capability grants, quota, and invocation audit for promptBridge and clientNotifications."actions={- <>- {view === 'grants' ? (- <>- <SectionSearchInput- value={grantSearch}- onChange={setGrantSearch}- placeholder="Search grants"- ariaLabel="Search grants"- disabled={- grantsInitialLoad ||- legacyInventoryLoading ||- Boolean(legacyInventoryError) ||- Boolean(grantsError)- }- />- <Button- type="button"- className="cu-btn--icon cu-btn--toolbar"- onClick={() => void loadGrants()}- disabled={grantsLoading}- aria-label="Refresh grants"- >- <IconRefresh- className={grantsLoading ? 'cu-spin' : undefined}- width={18}- height={18}- />- </Button>- <Button- type="button"- size="sm"- variant="ghost"- onClick={() => setView('invocations')}- >- Invocations- </Button>- <Button- type="button"- variant="primary"- size="sm"- onClick={() => setEditing('new')}- disabled={- grantsInitialLoad ||- legacyInventoryLoading ||- Boolean(legacyInventoryError) ||- Boolean(grantsError)- }- >- New grant- </Button>- </>- ) : (+ view === 'grants' ? (+ <><Buttontype="button"- className="cu-btn--icon cu-btn--toolbar"- onClick={() => void loadInvocations()}- disabled={invocationsLoading}- aria-label="Refresh invocations"+ size="sm"+ variant="ghost"+ onClick={() => setView('invocations')}>- <IconRefresh- className={invocationsLoading ? 'cu-spin' : undefined}- width={18}- height={18}- />+ Invocations</Button>- )}- </>+ <Button+ type="button"+ variant="primary"+ size="sm"+ onClick={() => setEditing('new')}+ disabled={+ grantsInitialLoad ||+ legacyInventoryLoading ||+ Boolean(legacyInventoryError) ||+ Boolean(grantsError)+ }+ >+ New grant+ </Button>+ </>+ ) : undefined+ }+ refreshAction={+ view === 'grants' ? (+ <Button+ type="button"+ className="cu-btn--icon cu-btn--toolbar"+ onClick={() => void loadGrants()}+ disabled={grantsLoading}+ aria-label="Refresh grants"+ >+ <IconRefresh+ className={grantsLoading ? 'cu-spin' : undefined}+ width={18}+ height={18}+ />+ </Button>+ ) : (+ <Button+ type="button"+ className="cu-btn--icon cu-btn--toolbar"+ onClick={() => void loadInvocations()}+ disabled={invocationsLoading}+ aria-label="Refresh invocations"+ >+ <IconRefresh+ className={invocationsLoading ? 'cu-spin' : undefined}+ width={18}+ height={18}+ />+ </Button>+ )+ }+ search={+ view === 'grants' ? (+ <SectionSearchInput+ value={grantSearch}+ onChange={setGrantSearch}+ placeholder="Search grants"+ ariaLabel="Search grants"+ disabled={+ grantsInitialLoad ||+ legacyInventoryLoading ||+ Boolean(legacyInventoryError) ||+ Boolean(grantsError)+ }+ />+ ) : undefined}/>diff --git a/control-ui/app/shared-filesystems/page.tsx b/control-ui/app/shared-filesystems/page.tsxindex 0bf477cf8..5341b36f4 100644--- a/control-ui/app/shared-filesystems/page.tsx+++ b/control-ui/app/shared-filesystems/page.tsx@@ -200,32 +200,34 @@ export default function SharedFileSystemsPage() {}subtitle="Workspace volumes that Contexts can mount read-only into agent pods."actions={- <>- <SectionSearchInput- value={searchQuery}- onChange={setSearchQuery}- placeholder="Search agent files"- ariaLabel="Search agent files"- disabled={isInitialLoad}- />- <button- type="button"- className="cu-btn cu-btn--icon cu-btn--toolbar"- onClick={() => void load()}- disabled={loading || isInitialLoad}- aria-label={loading ? 'Refreshing agent files' : 'Refresh agent files'}- >- <IconRefresh className={loading ? 'cu-spin' : undefined} width={18} height={18} />- </button>- <button- type="button"- className="cu-btn cu-btn--primary cu-btn--sm"- onClick={() => router.push(CONTROL_ROUTES.agentFiles.new)}- disabled={isInitialLoad}- >- New- </button>- </>+ <button+ type="button"+ className="cu-btn cu-btn--primary cu-btn--sm"+ onClick={() => router.push(CONTROL_ROUTES.agentFiles.new)}+ disabled={isInitialLoad}+ >+ New+ </button>+ }+ refreshAction={+ <button+ type="button"+ className="cu-btn cu-btn--icon cu-btn--toolbar"+ onClick={() => void load()}+ disabled={loading || isInitialLoad}+ aria-label={loading ? 'Refreshing agent files' : 'Refresh agent files'}+ >+ <IconRefresh className={loading ? 'cu-spin' : undefined} width={18} height={18} />+ </button>+ }+ search={+ <SectionSearchInput+ value={searchQuery}+ onChange={setSearchQuery}+ placeholder="Search agent files"+ ariaLabel="Search agent files"+ disabled={isInitialLoad}+ />}/>diff --git a/control-ui/app/workflow-recipes/[namespace]/[name]/page.tsx b/control-ui/app/workflow-recipes/[namespace]/[name]/page.tsxindex 3596c374d..b9e74ae90 100644--- a/control-ui/app/workflow-recipes/[namespace]/[name]/page.tsx+++ b/control-ui/app/workflow-recipes/[namespace]/[name]/page.tsx@@ -895,7 +895,7 @@ function WorkloadsTab({the current runtime pod state.</>}- actions={+ refreshAction={<buttontype="button"className="cu-btn cu-btn--icon cu-btn--toolbar"diff --git a/control-ui/components/CodexSubscriptionHub/index.tsx b/control-ui/components/CodexSubscriptionHub/index.tsxindex 7cdc513ac..707a08aa3 100644--- a/control-ui/components/CodexSubscriptionHub/index.tsx+++ b/control-ui/components/CodexSubscriptionHub/index.tsx@@ -410,40 +410,42 @@ export function CodexSubscriptionHub() {}subtitle="Manage LLM, connector, and recipe credentials in one place."actions={- <>- <SectionSearchInput- value={searchQuery}- onChange={setSearchQuery}- placeholder="Search secrets"- ariaLabel="Search ChatGPT subscriptions"- disabled={initialLoad}- />- <button- type="button"- className="cu-btn cu-btn--icon cu-btn--toolbar"- onClick={() =>- void load().catch(err => {- setError(- err instanceof Error ? err.message : 'Failed to load ChatGPT subscriptions'- )- })- }- disabled={initialLoad || loading}- aria-label={loading ? 'Refreshing...' : 'Reload ChatGPT subscriptions'}- >- <IconRefresh className={loading ? 'cu-spin' : undefined} width={18} height={18} />- </button>- <button- type="button"- className="cu-btn cu-btn--primary cu-btn--sm"- onClick={() => {- beginCreate()- }}- disabled={initialLoad}- >- Add subscription- </button>- </>+ <button+ type="button"+ className="cu-btn cu-btn--primary cu-btn--sm"+ onClick={() => {+ beginCreate()+ }}+ disabled={initialLoad}+ >+ Add subscription+ </button>+ }+ refreshAction={+ <button+ type="button"+ className="cu-btn cu-btn--icon cu-btn--toolbar"+ onClick={() =>+ void load().catch(err => {+ setError(+ err instanceof Error ? err.message : 'Failed to load ChatGPT subscriptions'+ )+ })+ }+ disabled={initialLoad || loading}+ aria-label={loading ? 'Refreshing...' : 'Reload ChatGPT subscriptions'}+ >+ <IconRefresh className={loading ? 'cu-spin' : undefined} width={18} height={18} />+ </button>+ }+ search={+ <SectionSearchInput+ value={searchQuery}+ onChange={setSearchQuery}+ placeholder="Search secrets"+ ariaLabel="Search ChatGPT subscriptions"+ disabled={initialLoad}+ />}/>diff --git a/control-ui/components/CommunicationChannelsTable.tsx b/control-ui/components/CommunicationChannelsTable.tsxindex 6ceefb99b..c3be0c2a8 100644--- a/control-ui/components/CommunicationChannelsTable.tsx+++ b/control-ui/components/CommunicationChannelsTable.tsx@@ -195,38 +195,40 @@ export function CommunicationChannelsTable({}subtitle="Route channel messages to the selected agent."actions={- <>- <SectionSearchInput- value={searchQuery}- onChange={setSearchQuery}- placeholder="Search channels"- ariaLabel="Search communication channels"- disabled={isInitialLoad}- />- {onRefresh && (- <button- type="button"- className="cu-btn cu-btn--icon cu-btn--toolbar"- onClick={() => void onRefresh()}- disabled={refreshing || isInitialLoad}- aria-label={refreshing ? 'Refreshing…' : 'Reload communication channels'}- >- <IconRefresh- className={refreshing ? 'cu-spin' : undefined}- width={18}- height={18}- />- </button>- )}+ <button+ type="button"+ className="cu-btn cu-btn--primary cu-btn--sm"+ onClick={() => onCreateChannel?.()}+ disabled={!onCreateChannel || isInitialLoad}+ >+ Add channel+ </button>+ }+ refreshAction={+ onRefresh ? (<buttontype="button"- className="cu-btn cu-btn--primary cu-btn--sm"- onClick={() => onCreateChannel?.()}- disabled={!onCreateChannel || isInitialLoad}+ className="cu-btn cu-btn--icon cu-btn--toolbar"+ onClick={() => void onRefresh()}+ disabled={refreshing || isInitialLoad}+ aria-label={refreshing ? 'Refreshing…' : 'Reload communication channels'}>- Add channel+ <IconRefresh+ className={refreshing ? 'cu-spin' : undefined}+ width={18}+ height={18}+ /></button>- </>+ ) : undefined+ }+ search={+ <SectionSearchInput+ value={searchQuery}+ onChange={setSearchQuery}+ placeholder="Search channels"+ ariaLabel="Search communication channels"+ disabled={isInitialLoad}+ />}/>{error ? (diff --git a/control-ui/components/ContextTable.tsx b/control-ui/components/ContextTable.tsxindex 991812ada..1f1902264 100644--- a/control-ui/components/ContextTable.tsx+++ b/control-ui/components/ContextTable.tsx@@ -111,32 +111,34 @@ export function ContextTable({}subtitle="Group connectors into reusable access scopes."actions={- <>- <SectionSearchInput- value={searchQuery}- onChange={setSearchQuery}- placeholder="Search contexts"- ariaLabel="Search contexts"- disabled={isInitialLoad}- />- <button- type="button"- className="cu-btn cu-btn--icon cu-btn--toolbar"- onClick={() => void onRefresh()}- disabled={refreshing || isInitialLoad}- aria-label={refreshing ? 'Refreshing…' : 'Reload contexts'}- >- <IconRefresh className={refreshing ? 'cu-spin' : undefined} width={18} height={18} />- </button>- <button- type="button"- className="cu-btn cu-btn--primary cu-btn--sm"- onClick={onCreate}- disabled={isInitialLoad}- >- Create context- </button>- </>+ <button+ type="button"+ className="cu-btn cu-btn--primary cu-btn--sm"+ onClick={onCreate}+ disabled={isInitialLoad}+ >+ Create context+ </button>+ }+ refreshAction={+ <button+ type="button"+ className="cu-btn cu-btn--icon cu-btn--toolbar"+ onClick={() => void onRefresh()}+ disabled={refreshing || isInitialLoad}+ aria-label={refreshing ? 'Refreshing…' : 'Reload contexts'}+ >+ <IconRefresh className={refreshing ? 'cu-spin' : undefined} width={18} height={18} />+ </button>+ }+ search={+ <SectionSearchInput+ value={searchQuery}+ onChange={setSearchQuery}+ placeholder="Search contexts"+ ariaLabel="Search contexts"+ disabled={isInitialLoad}+ />}/><div className="eft-table-viewport cu-table-wrap">diff --git a/control-ui/components/GovernedTraceSurface/AdministrativeEventDetail/index.tsx b/control-ui/components/GovernedTraceSurface/AdministrativeEventDetail/index.tsxindex 09de30854..b0aef1587 100644--- a/control-ui/components/GovernedTraceSurface/AdministrativeEventDetail/index.tsx+++ b/control-ui/components/GovernedTraceSurface/AdministrativeEventDetail/index.tsx@@ -132,7 +132,7 @@ export function AdministrativeEventDetail({ eventId }: AdministrativeEventDetail<section className="cu-trace-layout"><div className="cu-card cu-card--viewport-fill cu-trace-detail"><TablePanelHeader- actions={+ refreshAction={<buttonaria-label={loading ? 'Refreshing administrative event' : 'Refresh administrative event'diff --git a/control-ui/components/GovernedTraceSurface/GovernedEventExplorer/index.tsx b/control-ui/components/GovernedTraceSurface/GovernedEventExplorer/index.tsxindex 5405644dc..2ced53f59 100644--- a/control-ui/components/GovernedTraceSurface/GovernedEventExplorer/index.tsx+++ b/control-ui/components/GovernedTraceSurface/GovernedEventExplorer/index.tsx@@ -136,20 +136,18 @@ export function GovernedEventExplorer({ family, subtitle, title }: GovernedEvent<section className="cu-trace-layout"><div className="cu-card cu-card--viewport-fill"><TablePanelHeader- actions={- <>- <TraceTimeWindowControl onChange={updateState} state={state} />- <button- aria-label={loading ? 'Refreshing governed events' : 'Refresh governed events'}- className="cu-trace-refresh"- disabled={loading || loadingMore}- onClick={() => setBoundaryEpoch(current => current + 1)}- title="Refresh"- type="button"- >- <IconRefresh className={loading ? 'cu-spin' : undefined} height={18} width={18} />- </button>- </>+ actions={<TraceTimeWindowControl onChange={updateState} state={state} />}+ refreshAction={+ <button+ aria-label={loading ? 'Refreshing governed events' : 'Refresh governed events'}+ className="cu-trace-refresh"+ disabled={loading || loadingMore}+ onClick={() => setBoundaryEpoch(current => current + 1)}+ title="Refresh"+ type="button"+ >+ <IconRefresh className={loading ? 'cu-spin' : undefined} height={18} width={18} />+ </button>}subtitle={subtitle}title={title}diff --git a/control-ui/components/GovernedTraceSurface/InfrastructureEventDetail/index.tsx b/control-ui/components/GovernedTraceSurface/InfrastructureEventDetail/index.tsxindex 31d009135..c5e696058 100644--- a/control-ui/components/GovernedTraceSurface/InfrastructureEventDetail/index.tsx+++ b/control-ui/components/GovernedTraceSurface/InfrastructureEventDetail/index.tsx@@ -50,7 +50,7 @@ export function InfrastructureEventDetail({ eventId }: InfrastructureEventDetail<section className="cu-trace-layout"><div className="cu-card cu-card--viewport-fill cu-trace-detail"><TablePanelHeader- actions={+ refreshAction={<buttonaria-label={loading ? 'Refreshing infrastructure event' : 'Refresh infrastructure event'diff --git a/control-ui/components/GovernedTraceSurface/SessionReplay/index.tsx b/control-ui/components/GovernedTraceSurface/SessionReplay/index.tsxindex b91a67769..80de8cf4d 100644--- a/control-ui/components/GovernedTraceSurface/SessionReplay/index.tsx+++ b/control-ui/components/GovernedTraceSurface/SessionReplay/index.tsx@@ -138,20 +138,18 @@ export function SessionReplay({<section className="cu-trace-layout"><div className="cu-card cu-card--viewport-fill"><TablePanelHeader- actions={- <>- <TraceTimeWindowControl onChange={updateState} state={state} />- <button- aria-label={loading ? 'Refreshing sessions' : 'Refresh sessions'}- className="cu-trace-refresh"- disabled={loading || loadingMore}- onClick={() => setBoundaryEpoch(current => current + 1)}- title="Refresh"- type="button"- >- <IconRefresh className={loading ? 'cu-spin' : undefined} height={18} width={18} />- </button>- </>+ actions={<TraceTimeWindowControl onChange={updateState} state={state} />}+ refreshAction={+ <button+ aria-label={loading ? 'Refreshing sessions' : 'Refresh sessions'}+ className="cu-trace-refresh"+ disabled={loading || loadingMore}+ onClick={() => setBoundaryEpoch(current => current + 1)}+ title="Refresh"+ type="button"+ >+ <IconRefresh className={loading ? 'cu-spin' : undefined} height={18} width={18} />+ </button>}subtitle={subtitle}title={title}diff --git a/control-ui/components/GovernedTraceSurface/SessionReplayDetail/index.tsx b/control-ui/components/GovernedTraceSurface/SessionReplayDetail/index.tsxindex c13e8d4fd..5d105bc5f 100644--- a/control-ui/components/GovernedTraceSurface/SessionReplayDetail/index.tsx+++ b/control-ui/components/GovernedTraceSurface/SessionReplayDetail/index.tsx@@ -65,7 +65,7 @@ export function SessionReplayDetail({ hostRef, sessionId }: SessionReplayDetailP<section className="cu-trace-layout"><div className="cu-card cu-card--viewport-fill cu-trace-detail"><TablePanelHeader- actions={+ refreshAction={<buttonaria-label={loading ? 'Refreshing session replay' : 'Refresh session replay'}className="cu-trace-refresh"diff --git a/control-ui/components/GovernedTraceSurface/TracingOperations/index.tsx b/control-ui/components/GovernedTraceSurface/TracingOperations/index.tsxindex 3970990b2..dd0037044 100644--- a/control-ui/components/GovernedTraceSurface/TracingOperations/index.tsx+++ b/control-ui/components/GovernedTraceSurface/TracingOperations/index.tsx@@ -18,7 +18,7 @@ export function TracingOperations() {<TablePanelHeadertitle="Tracing dashboard"subtitle="Current control-api ingestion health and effective limits."- actions={+ refreshAction={<buttonaria-label={refreshing ? 'Refreshing tracing health' : 'Refresh tracing health'}className="cu-trace-refresh"diff --git a/control-ui/components/GovernedTraceSurface/index.tsx b/control-ui/components/GovernedTraceSurface/index.tsxindex d80c43507..9414718be 100644--- a/control-ui/components/GovernedTraceSurface/index.tsx+++ b/control-ui/components/GovernedTraceSurface/index.tsx@@ -315,53 +315,55 @@ export function GovernedTraceSurface({title={title}subtitle={subtitle}actions={- <>- {!detail ? (- <>- <SelectInput- aria-label="Trace time window"- compact- onChange={event => {- const nextWindow = event.target.value as TraceTimeWindow- setTimeWindow(nextWindow)- router.replace(- buildTraceWindowUrl(- pathname,- new URLSearchParams(searchParamsValue),- nextWindow- ),- { scroll: false }- )- }}- value={timeWindow}- >- <option value="24h">Last 24 hours</option>- <option value="7d">Last 7 days</option>- <option value="30d">Last 30 days</option>- </SelectInput>- <TextInput- aria-label="Filter loaded governed events"- className="cu-section-search"- onChange={event => setFilter(event.target.value)}- placeholder="Filter loaded events"- value={filter}- />- </>- ) : null}- <button- aria-label={loading ? 'Refreshing governed events' : 'Refresh governed events'}- className="cu-trace-refresh"- disabled={loading || loadingMore}- onClick={() => {- if (!detail) windowBounds.current = traceWindowBounds(timeWindow)- void readPage()+ !detail ? (+ <SelectInput+ aria-label="Trace time window"+ compact+ onChange={event => {+ const nextWindow = event.target.value as TraceTimeWindow+ setTimeWindow(nextWindow)+ router.replace(+ buildTraceWindowUrl(+ pathname,+ new URLSearchParams(searchParamsValue),+ nextWindow+ ),+ { scroll: false }+ )}}- title="Refresh"- type="button"+ value={timeWindow}>- <IconRefresh className={loading ? 'cu-spin' : undefined} height={18} width={18} />- </button>- </>+ <option value="24h">Last 24 hours</option>+ <option value="7d">Last 7 days</option>+ <option value="30d">Last 30 days</option>+ </SelectInput>+ ) : undefined+ }+ refreshAction={+ <button+ aria-label={loading ? 'Refreshing governed events' : 'Refresh governed events'}+ className="cu-trace-refresh"+ disabled={loading || loadingMore}+ onClick={() => {+ if (!detail) windowBounds.current = traceWindowBounds(timeWindow)+ void readPage()+ }}+ title="Refresh"+ type="button"+ >+ <IconRefresh className={loading ? 'cu-spin' : undefined} height={18} width={18} />+ </button>+ }+ search={+ !detail ? (+ <TextInput+ aria-label="Filter loaded governed events"+ className="cu-section-search"+ onChange={event => setFilter(event.target.value)}+ placeholder="Filter loaded events"+ value={filter}+ />+ ) : undefined}/>{error ? (diff --git a/control-ui/components/GuardrailHooksTable.tsx b/control-ui/components/GuardrailHooksTable.tsxindex 66e4ba2dc..7a52d101c 100644--- a/control-ui/components/GuardrailHooksTable.tsx+++ b/control-ui/components/GuardrailHooksTable.tsx@@ -167,40 +167,38 @@ export function GuardrailHooksTable({}subtitle="Installed LLM guardrail hooks across the cluster."actions={- <>- <SectionSearchInput- value={searchQuery}- onChange={setSearchQuery}- placeholder="Search guardrails"- ariaLabel="Search installed guardrails"+ onInstall ? (+ <button+ type="button"+ className="cu-btn cu-btn--primary cu-btn--sm"+ onClick={onInstall}disabled={isInitialLoad}- />- {onRefresh ? (- <button- type="button"- className="cu-btn cu-btn--icon cu-btn--toolbar"- onClick={() => void onRefresh()}- disabled={refreshing || isInitialLoad}- aria-label={refreshing ? 'Refreshing...' : 'Reload installed guardrails'}- >- <IconRefresh- className={refreshing ? 'cu-spin' : undefined}- width={18}- height={18}- />- </button>- ) : null}- {onInstall ? (- <button- type="button"- className="cu-btn cu-btn--primary cu-btn--sm"- onClick={onInstall}- disabled={isInitialLoad}- >- Install Guardrail- </button>- ) : null}- </>+ >+ Install Guardrail+ </button>+ ) : undefined+ }+ refreshAction={+ onRefresh ? (+ <button+ type="button"+ className="cu-btn cu-btn--icon cu-btn--toolbar"+ onClick={() => void onRefresh()}+ disabled={refreshing || isInitialLoad}+ aria-label={refreshing ? 'Refreshing...' : 'Reload installed guardrails'}+ >+ <IconRefresh className={refreshing ? 'cu-spin' : undefined} width={18} height={18} />+ </button>+ ) : undefined+ }+ search={+ <SectionSearchInput+ value={searchQuery}+ onChange={setSearchQuery}+ placeholder="Search guardrails"+ ariaLabel="Search installed guardrails"+ disabled={isInitialLoad}+ />}/><div className="eft-table-viewport cu-table-wrap cu-guardrails-table-wrap">diff --git a/control-ui/components/HostTable.tsx b/control-ui/components/HostTable.tsxindex 3b7294c20..f35d67544 100644--- a/control-ui/components/HostTable.tsx+++ b/control-ui/components/HostTable.tsx@@ -201,32 +201,34 @@ export function HostTable({}subtitle="Manage available agents and their host mappings."actions={- <>- <SectionSearchInput- value={searchQuery}- onChange={setSearchQuery}- placeholder="Search agents"- ariaLabel="Search agents"- disabled={isInitialLoad}- />- <button- type="button"- className="cu-btn cu-btn--icon cu-btn--toolbar"- onClick={() => void onRefresh()}- disabled={refreshing || isInitialLoad}- aria-label={refreshing ? 'Refreshing…' : 'Reload agents'}- >- <IconRefresh className={refreshing ? 'cu-spin' : undefined} width={18} height={18} />- </button>- <button- type="button"- className="cu-btn cu-btn--primary cu-btn--sm"- onClick={onCreateHost}- disabled={isInitialLoad}- >- Create agent- </button>- </>+ <button+ type="button"+ className="cu-btn cu-btn--primary cu-btn--sm"+ onClick={onCreateHost}+ disabled={isInitialLoad}+ >+ Create agent+ </button>+ }+ refreshAction={+ <button+ type="button"+ className="cu-btn cu-btn--icon cu-btn--toolbar"+ onClick={() => void onRefresh()}+ disabled={refreshing || isInitialLoad}+ aria-label={refreshing ? 'Refreshing…' : 'Reload agents'}+ >+ <IconRefresh className={refreshing ? 'cu-spin' : undefined} width={18} height={18} />+ </button>+ }+ search={+ <SectionSearchInput+ value={searchQuery}+ onChange={setSearchQuery}+ placeholder="Search agents"+ ariaLabel="Search agents"+ disabled={isInitialLoad}+ />}/><div className="eft-table-viewport cu-table-wrap">diff --git a/control-ui/components/LlmDiscoveryPanel/index.tsx b/control-ui/components/LlmDiscoveryPanel/index.tsxindex 399b2ef4d..b83cb6056 100644--- a/control-ui/components/LlmDiscoveryPanel/index.tsx+++ b/control-ui/components/LlmDiscoveryPanel/index.tsx@@ -290,29 +290,29 @@ export function LlmDiscoveryPanel({}subtitle="Newly synced models land here disabled. Enable only the models you want available to agents and runtime."actions={- <>- <button- type="button"- className="cu-btn cu-btn--icon cu-btn--toolbar"- onClick={() => void handleRefresh()}- disabled={loading || statusLoading || isInitialLoad}- aria-label={loading || statusLoading ? 'Refreshing…' : 'Reload discovery review'}- >- <IconRefresh- className={loading || statusLoading ? 'cu-spin' : undefined}- width={18}- height={18}- />- </button>- <button- type="button"- className="cu-btn cu-btn--primary cu-btn--sm"- onClick={() => void handleSync()}- disabled={syncing || isInitialLoad}- >- {syncing ? 'Syncing…' : 'Sync catalog'}- </button>- </>+ <button+ type="button"+ className="cu-btn cu-btn--primary cu-btn--sm"+ onClick={() => void handleSync()}+ disabled={syncing || isInitialLoad}+ >+ {syncing ? 'Syncing…' : 'Sync catalog'}+ </button>+ }+ refreshAction={+ <button+ type="button"+ className="cu-btn cu-btn--icon cu-btn--toolbar"+ onClick={() => void handleRefresh()}+ disabled={loading || statusLoading || isInitialLoad}+ aria-label={loading || statusLoading ? 'Refreshing…' : 'Reload discovery review'}+ >+ <IconRefresh+ className={loading || statusLoading ? 'cu-spin' : undefined}+ width={18}+ height={18}+ />+ </button>}/><div className="cu-discovery-bar">diff --git a/control-ui/components/LlmModelTable.tsx b/control-ui/components/LlmModelTable.tsxindex 64263c81a..1f6f8ba4f 100644--- a/control-ui/components/LlmModelTable.tsx+++ b/control-ui/components/LlmModelTable.tsx@@ -263,22 +263,6 @@ export function LlmModelTable({<option value="discovery">Discovered</option></SelectInput>) : null}- <SectionSearchInput- value={searchQuery}- onChange={setSearchQuery}- placeholder="Search models"- ariaLabel="Search models"- disabled={isInitialLoad}- />- <button- type="button"- className="cu-btn cu-btn--icon cu-btn--toolbar"- onClick={() => void onRefresh()}- disabled={refreshing || isInitialLoad}- aria-label={refreshing ? 'Refreshing…' : 'Reload models'}- >- <IconRefresh className={refreshing ? 'cu-spin' : undefined} width={18} height={18} />- </button><buttontype="button"className="cu-btn cu-btn--primary cu-btn--sm"@@ -289,6 +273,26 @@ export function LlmModelTable({</button></>}+ refreshAction={+ <button+ type="button"+ className="cu-btn cu-btn--icon cu-btn--toolbar"+ onClick={() => void onRefresh()}+ disabled={refreshing || isInitialLoad}+ aria-label={refreshing ? 'Refreshing…' : 'Reload models'}+ >+ <IconRefresh className={refreshing ? 'cu-spin' : undefined} width={18} height={18} />+ </button>+ }+ search={+ <SectionSearchInput+ value={searchQuery}+ onChange={setSearchQuery}+ placeholder="Search models"+ ariaLabel="Search models"+ disabled={isInitialLoad}+ />+ }/>{navigation}<div className="eft-table-viewport cu-table-wrap cu-table-wrap--sticky-header">diff --git a/control-ui/components/LlmPriceTable.tsx b/control-ui/components/LlmPriceTable.tsxindex 5bfbd3522..3e2ed9fdd 100644--- a/control-ui/components/LlmPriceTable.tsx+++ b/control-ui/components/LlmPriceTable.tsx@@ -160,32 +160,34 @@ export function LlmPriceTable({}subtitle="Per-model token prices that back cost-unit budgets. Prices are per 1M tokens."actions={- <>- <SectionSearchInput- value={searchQuery}- onChange={setSearchQuery}- placeholder="Search prices"- ariaLabel="Search prices"- disabled={isInitialLoad}- />- <button- type="button"- className="cu-btn cu-btn--icon cu-btn--toolbar"- onClick={() => void onRefresh()}- disabled={refreshing || isInitialLoad}- aria-label={refreshing ? 'Refreshing…' : 'Reload prices'}- >- <IconRefresh className={refreshing ? 'cu-spin' : undefined} width={18} height={18} />- </button>- <button- type="button"- className="cu-btn cu-btn--primary cu-btn--sm"- onClick={onCreate}- disabled={isInitialLoad}- >- Add price- </button>- </>+ <button+ type="button"+ className="cu-btn cu-btn--primary cu-btn--sm"+ onClick={onCreate}+ disabled={isInitialLoad}+ >+ Add price+ </button>+ }+ refreshAction={+ <button+ type="button"+ className="cu-btn cu-btn--icon cu-btn--toolbar"+ onClick={() => void onRefresh()}+ disabled={refreshing || isInitialLoad}+ aria-label={refreshing ? 'Refreshing…' : 'Reload prices'}+ >+ <IconRefresh className={refreshing ? 'cu-spin' : undefined} width={18} height={18} />+ </button>+ }+ search={+ <SectionSearchInput+ value={searchQuery}+ onChange={setSearchQuery}+ placeholder="Search prices"+ ariaLabel="Search prices"+ disabled={isInitialLoad}+ />}/><div className="eft-table-viewport cu-table-wrap">diff --git a/control-ui/components/McpServerTable.tsx b/control-ui/components/McpServerTable.tsxindex e1c30b8f8..ad6090f83 100644--- a/control-ui/components/McpServerTable.tsx+++ b/control-ui/components/McpServerTable.tsx@@ -373,40 +373,38 @@ export function McpServerTable({subtitle="Browse connector deployments and context bindings."actionsClassName="cu-table-panel__actions--mcp"actions={- <>- <SectionSearchInput- value={searchQuery}- onChange={setSearchQuery}- placeholder="Search connectors"- ariaLabel="Search connectors"+ onInstallFromRegistry ? (+ <button+ type="button"+ className="cu-btn cu-btn--primary cu-btn--sm cu-btn--mcp-install"+ onClick={onInstallFromRegistry}disabled={isInitialLoad}- />- {onRefresh ? (- <button- type="button"- className="cu-btn cu-btn--icon cu-btn--toolbar"- onClick={() => void onRefresh()}- disabled={refreshing || isInitialLoad}- aria-label={refreshing ? 'Refreshing...' : 'Reload connectors'}- >- <IconRefresh- className={refreshing ? 'cu-spin' : undefined}- width={18}- height={18}- />- </button>- ) : null}- {onInstallFromRegistry ? (- <button- type="button"- className="cu-btn cu-btn--primary cu-btn--sm cu-btn--mcp-install"- onClick={onInstallFromRegistry}- disabled={isInitialLoad}- >- Install from Marketplace- </button>- ) : null}- </>+ >+ Install from Marketplace+ </button>+ ) : undefined+ }+ refreshAction={+ onRefresh ? (+ <button+ type="button"+ className="cu-btn cu-btn--icon cu-btn--toolbar"+ onClick={() => void onRefresh()}+ disabled={refreshing || isInitialLoad}+ aria-label={refreshing ? 'Refreshing...' : 'Reload connectors'}+ >+ <IconRefresh className={refreshing ? 'cu-spin' : undefined} width={18} height={18} />+ </button>+ ) : undefined+ }+ search={+ <SectionSearchInput+ value={searchQuery}+ onChange={setSearchQuery}+ placeholder="Search connectors"+ ariaLabel="Search connectors"+ disabled={isInitialLoad}+ />}/>{detailContent ? <div className="cu-card__body">{detailContent}</div> : null}diff --git a/control-ui/components/ProfileAdminHome.tsx b/control-ui/components/ProfileAdminHome.tsxindex 2ade664a9..95a45874e 100644--- a/control-ui/components/ProfileAdminHome.tsx+++ b/control-ui/components/ProfileAdminHome.tsx@@ -434,102 +434,104 @@ export function ProfileAdminHome({ activeTab, highlightedAdminId = '' }: Profile}subtitle="Members and teams grant Desktop App access. Admins grant Control UI access."actions={- <>- <SectionSearchInput- value={- activeTab === 'admins'- ? adminSearchInput- : activeTab === 'teams'- ? teamSearchInput- : searchInput+ activeTab === 'admins' ? (+ <button+ type="button"+ className="cu-btn cu-btn--primary cu-btn--sm"+ onClick={() => router.push(CONTROL_ROUTES.usersAndTeams.newAdmin())}+ disabled={adminLoading}+ >+ Invite admin+ </button>+ ) : activeTab === 'teams' ? (+ <button+ type="button"+ className="cu-btn cu-btn--primary cu-btn--sm"+ onClick={() => router.push(CONTROL_ROUTES.usersAndTeams.newTeam)}+ disabled={busy && !loaded}+ >+ Create team+ </button>+ ) : (+ <button+ type="button"+ className="cu-btn cu-btn--primary cu-btn--sm"+ onClick={() => router.push(CONTROL_ROUTES.usersAndTeams.newUser())}+ disabled={busy && !loaded}+ >+ Create member+ </button>+ )+ }+ refreshAction={+ activeTab === 'admins' ? (+ <button+ type="button"+ className="cu-btn cu-btn--icon cu-btn--toolbar"+ onClick={() => setAdminRefreshKey(key => key + 1)}+ disabled={adminLoading}+ aria-label={adminLoading ? 'Refreshing admins...' : 'Reload admins'}+ >+ <IconRefresh+ className={adminLoading ? 'cu-spin' : undefined}+ width={18}+ height={18}+ />+ </button>+ ) : (+ <button+ type="button"+ className="cu-btn cu-btn--icon cu-btn--toolbar"+ onClick={() => void loadData()}+ disabled={busy}+ aria-label={+ isListRefreshing ? 'Refreshing users and teams...' : 'Reload users and teams'}- onChange={value => {- if (activeTab === 'admins') {- setAdminSearchInput(value)- return- }- if (activeTab === 'teams') {- setTeamSearchInput(value)- return- }- setSearchInput(value)- }}- placeholder={- activeTab === 'admins'- ? 'Search admins'- : activeTab === 'teams'- ? 'Search teams'- : 'Search members'+ >+ <IconRefresh+ className={isListRefreshing ? 'cu-spin' : undefined}+ width={18}+ height={18}+ />+ </button>+ )+ }+ search={+ <SectionSearchInput+ value={+ activeTab === 'admins'+ ? adminSearchInput+ : activeTab === 'teams'+ ? teamSearchInput+ : searchInput+ }+ onChange={value => {+ if (activeTab === 'admins') {+ setAdminSearchInput(value)+ return}- ariaLabel={- activeTab === 'admins'- ? 'Search admins'- : activeTab === 'teams'- ? 'Search teams'- : 'Search members'+ if (activeTab === 'teams') {+ setTeamSearchInput(value)+ return}- disabled={activeTab === 'admins' ? adminLoading : isInitialLoad}- />- {activeTab === 'admins' ? (- <button- type="button"- className="cu-btn cu-btn--icon cu-btn--toolbar"- onClick={() => setAdminRefreshKey(key => key + 1)}- disabled={adminLoading}- aria-label={adminLoading ? 'Refreshing admins...' : 'Reload admins'}- >- <IconRefresh- className={adminLoading ? 'cu-spin' : undefined}- width={18}- height={18}- />- </button>- ) : (- <button- type="button"- className="cu-btn cu-btn--icon cu-btn--toolbar"- onClick={() => void loadData()}- disabled={busy}- aria-label={- isListRefreshing ? 'Refreshing users and teams...' : 'Reload users and teams'- }- >- <IconRefresh- className={isListRefreshing ? 'cu-spin' : undefined}- width={18}- height={18}- />- </button>- )}- {activeTab === 'admins' ? (- <button- type="button"- className="cu-btn cu-btn--primary cu-btn--sm"- onClick={() => router.push(CONTROL_ROUTES.usersAndTeams.newAdmin())}- disabled={adminLoading}- >- Invite admin- </button>- ) : activeTab === 'teams' ? (- <button- type="button"- className="cu-btn cu-btn--primary cu-btn--sm"- onClick={() => router.push(CONTROL_ROUTES.usersAndTeams.newTeam)}- disabled={busy && !loaded}- >- Create team- </button>- ) : (- <button- type="button"- className="cu-btn cu-btn--primary cu-btn--sm"- onClick={() => router.push(CONTROL_ROUTES.usersAndTeams.newUser())}- disabled={busy && !loaded}- >- Create member- </button>- )}- </>+ setSearchInput(value)+ }}+ placeholder={+ activeTab === 'admins'+ ? 'Search admins'+ : activeTab === 'teams'+ ? 'Search teams'+ : 'Search members'+ }+ ariaLabel={+ activeTab === 'admins'+ ? 'Search admins'+ : activeTab === 'teams'+ ? 'Search teams'+ : 'Search members'+ }+ disabled={activeTab === 'admins' ? adminLoading : isInitialLoad}+ />}/><div className="cu-card__body">diff --git a/control-ui/components/RecipeIntegrationsPanel/index.tsx b/control-ui/components/RecipeIntegrationsPanel/index.tsxindex 9098b19f7..755052f49 100644--- a/control-ui/components/RecipeIntegrationsPanel/index.tsx+++ b/control-ui/components/RecipeIntegrationsPanel/index.tsx@@ -252,7 +252,7 @@ export function RecipeIntegrationsPanel({ recipe }: { recipe: WorkflowRecipeResouser is involved.</>}- actions={+ refreshAction={<buttontype="button"className="cu-btn cu-btn--icon cu-btn--toolbar"diff --git a/control-ui/components/RecipeSecretsPanel/index.tsx b/control-ui/components/RecipeSecretsPanel/index.tsxindex 0fe460a74..7e6c9e558 100644--- a/control-ui/components/RecipeSecretsPanel/index.tsx+++ b/control-ui/components/RecipeSecretsPanel/index.tsx@@ -175,24 +175,24 @@ export function RecipeSecretsPanel({</>}actions={- <>- <button- type="button"- className="cu-btn cu-btn--icon cu-btn--toolbar"- onClick={() => void load()}- disabled={loading}- aria-label={loading ? 'Refreshing…' : 'Reload secrets'}- >- <IconRefresh className={loading ? 'cu-spin' : undefined} width={18} height={18} />- </button>- <button- type="button"- className="cu-btn cu-btn--primary cu-btn--sm"- onClick={navigateToCreateBlank}- >- Create secret- </button>- </>+ <button+ type="button"+ className="cu-btn cu-btn--primary cu-btn--sm"+ onClick={navigateToCreateBlank}+ >+ Create secret+ </button>+ }+ refreshAction={+ <button+ type="button"+ className="cu-btn cu-btn--icon cu-btn--toolbar"+ onClick={() => void load()}+ disabled={loading}+ aria-label={loading ? 'Refreshing…' : 'Reload secrets'}+ >+ <IconRefresh className={loading ? 'cu-spin' : undefined} width={18} height={18} />+ </button>}/>diff --git a/control-ui/components/RecipesTab.tsx b/control-ui/components/RecipesTab.tsxindex c3fbd291d..7210abba5 100644--- a/control-ui/components/RecipesTab.tsx+++ b/control-ui/components/RecipesTab.tsx@@ -90,22 +90,6 @@ export function RecipesTab({ items, loading, error, onInstall, onRefresh }: Propsubtitle="Select a plugin to view status, run history, and actions."actions={<>- <SectionSearchInput- value={searchQuery}- onChange={setSearchQuery}- placeholder="Search plugins"- ariaLabel="Search plugins"- disabled={isInitialLoad}- />- <button- type="button"- className="cu-btn cu-btn--icon cu-btn--toolbar"- onClick={onRefresh}- disabled={loading || isInitialLoad}- aria-label={loading ? 'Refreshing…' : 'Reload plugins'}- >- <IconRefresh className={loading ? 'cu-spin' : undefined} width={18} height={18} />- </button><buttontype="button"className="cu-btn cu-btn--sm cu-nowrap"@@ -124,6 +108,26 @@ export function RecipesTab({ items, loading, error, onInstall, onRefresh }: Prop</button></>}+ refreshAction={+ <button+ type="button"+ className="cu-btn cu-btn--icon cu-btn--toolbar"+ onClick={onRefresh}+ disabled={loading || isInitialLoad}+ aria-label={loading ? 'Refreshing…' : 'Reload plugins'}+ >+ <IconRefresh className={loading ? 'cu-spin' : undefined} width={18} height={18} />+ </button>+ }+ search={+ <SectionSearchInput+ value={searchQuery}+ onChange={setSearchQuery}+ placeholder="Search plugins"+ ariaLabel="Search plugins"+ disabled={isInitialLoad}+ />+ }/>{error ? <div className="cu-banner cu-banner--error cu-table-error">{error}</div> : null}diff --git a/control-ui/components/RegistryCatalog.tsx b/control-ui/components/RegistryCatalog.tsxindex 70a399e2a..f70402dee 100644--- a/control-ui/components/RegistryCatalog.tsx+++ b/control-ui/components/RegistryCatalog.tsx@@ -241,13 +241,6 @@ export default function RegistryCatalog() {actionsClassName="cu-registry-toolbar"actions={<>- <SectionSearchInput- value={search}- onChange={setSearch}- placeholder="Search connectors..."- ariaLabel="Search the Marketplace"- disabled={isInitialLoad}- /><div className="cu-registry-filter-group"><FilterSelectvalue={categoryFilter}@@ -288,6 +281,15 @@ export default function RegistryCatalog() {*/}</>}+ search={+ <SectionSearchInput+ value={search}+ onChange={setSearch}+ placeholder="Search connectors..."+ ariaLabel="Search the Marketplace"+ disabled={isInitialLoad}+ />+ }/><MarketplaceTabs active="connectors" />{error ? <div className="cu-banner cu-banner--error">Error: {error}</div> : null}diff --git a/control-ui/components/ResourceTable.tsx b/control-ui/components/ResourceTable.tsxindex fcd067b9d..e99339c2b 100644--- a/control-ui/components/ResourceTable.tsx+++ b/control-ui/components/ResourceTable.tsx@@ -49,7 +49,7 @@ export function ResourceTable({<TablePanelHeadertitle={isInitialLoad ? title : `${title} (${rows.length})`}subtitle="Inspect linked resources and their summaries."- actions={+ refreshAction={onRefresh ? (<buttontype="button"diff --git a/control-ui/components/SecretsTable.tsx b/control-ui/components/SecretsTable.tsxindex 7aa1d8d14..71504a9b6 100644--- a/control-ui/components/SecretsTable.tsx+++ b/control-ui/components/SecretsTable.tsx@@ -422,85 +422,87 @@ export function SecretsTable({}subtitle="Manage LLM, connector, and recipe credentials in one place."actions={- <>- <SectionSearchInput- value={- scope === 'llm'- ? llmSearchQuery- : scope === 'mcp'- ? mcpSearchQuery- : recipeSearchQuery- }- onChange={value => {- if (scope === 'llm') setLlmSearchQuery(value)- else if (scope === 'mcp') setMcpSearchQuery(value)- else setRecipeSearchQuery(value)- }}- placeholder="Search secrets"- ariaLabel={- scope === 'llm'- ? 'Search LLM secrets'- : scope === 'mcp'- ? 'Search connector secrets'- : 'Search recipe secrets'- }- disabled={activeInitialLoad}- />- <button- type="button"- className="cu-btn cu-btn--icon cu-btn--toolbar"- onClick={() => {- if (scope === 'llm') void onRefresh?.()- else if (scope === 'mcp') void loadMcpSecretReferences()- else void loadRecipeSecretsAndUsage()- }}- disabled={- activeInitialLoad ||- (scope === 'llm' ? refreshing : scope === 'mcp' ? mcpLoading : recipeLoading)- }- aria-label={- scope === 'llm'- ? refreshing+ <button+ type="button"+ className="cu-btn cu-btn--primary cu-btn--sm"+ onClick={() => {+ if (scope === 'llm') onCreateLlmSecret()+ else if (scope === 'mcp') onCreateMcpSecret()+ else onCreateRecipeSecret()+ }}+ disabled={activeInitialLoad}+ >+ {scope === 'llm'+ ? 'Add LLM secret'+ : scope === 'mcp'+ ? 'Add connector secret'+ : 'Add recipe secret'}+ </button>+ }+ refreshAction={+ <button+ type="button"+ className="cu-btn cu-btn--icon cu-btn--toolbar"+ onClick={() => {+ if (scope === 'llm') void onRefresh?.()+ else if (scope === 'mcp') void loadMcpSecretReferences()+ else void loadRecipeSecretsAndUsage()+ }}+ disabled={+ activeInitialLoad ||+ (scope === 'llm' ? refreshing : scope === 'mcp' ? mcpLoading : recipeLoading)+ }+ aria-label={+ scope === 'llm'+ ? refreshing+ ? 'Refreshing...'+ : 'Reload LLM secrets'+ : scope === 'mcp'+ ? mcpLoading+ ? 'Refreshing...'+ : 'Reload connector secret references'+ : recipeLoading? 'Refreshing...'- : 'Reload LLM secrets'- : scope === 'mcp'- ? mcpLoading- ? 'Refreshing...'- : 'Reload connector secret references'- : recipeLoading- ? 'Refreshing...'- : 'Reload recipe secrets'+ : 'Reload recipe secrets'+ }+ >+ <IconRefresh+ className={+ (scope === 'llm' && refreshing) ||+ (scope === 'mcp' && mcpLoading) ||+ (scope === 'recipe' && recipeLoading)+ ? 'cu-spin'+ : undefined}- >- <IconRefresh- className={- (scope === 'llm' && refreshing) ||- (scope === 'mcp' && mcpLoading) ||- (scope === 'recipe' && recipeLoading)- ? 'cu-spin'- : undefined- }- width={18}- height={18}- />- </button>- <button- type="button"- className="cu-btn cu-btn--primary cu-btn--sm"- onClick={() => {- if (scope === 'llm') onCreateLlmSecret()- else if (scope === 'mcp') onCreateMcpSecret()- else onCreateRecipeSecret()- }}- disabled={activeInitialLoad}- >- {scope === 'llm'- ? 'Add LLM secret'+ width={18}+ height={18}+ />+ </button>+ }+ search={+ <SectionSearchInput+ value={+ scope === 'llm'+ ? llmSearchQuery: scope === 'mcp'- ? 'Add connector secret'- : 'Add recipe secret'}- </button>- </>+ ? mcpSearchQuery+ : recipeSearchQuery+ }+ onChange={value => {+ if (scope === 'llm') setLlmSearchQuery(value)+ else if (scope === 'mcp') setMcpSearchQuery(value)+ else setRecipeSearchQuery(value)+ }}+ placeholder="Search secrets"+ ariaLabel={+ scope === 'llm'+ ? 'Search LLM secrets'+ : scope === 'mcp'+ ? 'Search connector secrets'+ : 'Search recipe secrets'+ }+ disabled={activeInitialLoad}+ />}/>diff --git a/control-ui/components/TablePanelHeader/index.tsx b/control-ui/components/TablePanelHeader/index.tsxindex 0f036d8b2..76c9d7714 100644--- a/control-ui/components/TablePanelHeader/index.tsx+++ b/control-ui/components/TablePanelHeader/index.tsx@@ -8,13 +8,23 @@ import type { TablePanelHeaderProps } from './types'export function TablePanelHeader({actions,actionsClassName,+ refreshAction,+ search,subtitle,title,titleActions,}: TablePanelHeaderProps) {return (<DataViewHeader- actions={actions ? <div className={cn(actionsClassName)}>{actions}</div> : undefined}+ actions={+ actions || refreshAction || search ? (+ <div className={cn('cu-table-panel__actions', actionsClassName)}>+ {actions}+ {refreshAction}+ {search}+ </div>+ ) : undefined+ }className="cu-table-panel__head"description={subtitle}title={diff --git a/control-ui/components/TablePanelHeader/types.ts b/control-ui/components/TablePanelHeader/types.tsindex 4bc72272e..18bf50797 100644--- a/control-ui/components/TablePanelHeader/types.ts+++ b/control-ui/components/TablePanelHeader/types.ts@@ -3,6 +3,8 @@ import type { ReactNode } from 'react'export type TablePanelHeaderProps = {actions?: ReactNodeactionsClassName?: string+ refreshAction?: ReactNode+ search?: ReactNodesubtitle?: ReactNodetitle: ReactNodetitleActions?: ReactNodediff --git a/control-ui/components/TokenBudgetTable.tsx b/control-ui/components/TokenBudgetTable.tsxindex cf9c193b2..7598bdd8f 100644--- a/control-ui/components/TokenBudgetTable.tsx+++ b/control-ui/components/TokenBudgetTable.tsx@@ -117,32 +117,34 @@ export function TokenBudgetTable({}subtitle="Spend caps per dimension, shown against live usage. P0c runs in observation mode (warn)."actions={- <>- <SectionSearchInput- value={searchQuery}- onChange={setSearchQuery}- placeholder="Search budgets"- ariaLabel="Search budgets"- disabled={isInitialLoad}- />- <button- type="button"- className="cu-btn cu-btn--icon cu-btn--toolbar"- onClick={() => void onRefresh()}- disabled={refreshing || isInitialLoad}- aria-label={refreshing ? 'Refreshing…' : 'Reload budgets'}- >- <IconRefresh className={refreshing ? 'cu-spin' : undefined} width={18} height={18} />- </button>- <button- type="button"- className="cu-btn cu-btn--primary cu-btn--sm"- onClick={onCreate}- disabled={isInitialLoad}- >- New budget- </button>- </>+ <button+ type="button"+ className="cu-btn cu-btn--primary cu-btn--sm"+ onClick={onCreate}+ disabled={isInitialLoad}+ >+ New budget+ </button>+ }+ refreshAction={+ <button+ type="button"+ className="cu-btn cu-btn--icon cu-btn--toolbar"+ onClick={() => void onRefresh()}+ disabled={refreshing || isInitialLoad}+ aria-label={refreshing ? 'Refreshing…' : 'Reload budgets'}+ >+ <IconRefresh className={refreshing ? 'cu-spin' : undefined} width={18} height={18} />+ </button>+ }+ search={+ <SectionSearchInput+ value={searchQuery}+ onChange={setSearchQuery}+ placeholder="Search budgets"+ ariaLabel="Search budgets"+ disabled={isInitialLoad}+ />}/><div className="eft-table-viewport cu-table-wrap">diff --git a/control-ui/components/UsageDashboard/index.tsx b/control-ui/components/UsageDashboard/index.tsxindex e4ea78ac1..27f5e71ef 100644--- a/control-ui/components/UsageDashboard/index.tsx+++ b/control-ui/components/UsageDashboard/index.tsx@@ -393,7 +393,7 @@ export function UsageDashboard() {</>}subtitle="Track token usage and request volume across LLM activity."- actions={+ refreshAction={<buttontype="button"className="cu-btn cu-btn--icon cu-btn--toolbar"diff --git a/control-ui/components/__tests__/TablePanelHeader.test.tsx b/control-ui/components/__tests__/TablePanelHeader.test.tsxnew file mode 100644index 000000000..b4cfd2276--- /dev/null+++ b/control-ui/components/__tests__/TablePanelHeader.test.tsx@@ -0,0 +1,70 @@+import { describe, expect, it } from 'vitest'+import { render, screen } from '@testing-library/react'+import { readFileSync } from 'node:fs'+import { resolve } from 'node:path'+import { TablePanelHeader } from '../TablePanelHeader'++const css = readFileSync(resolve(__dirname, '../../app/globals.css'), 'utf8')++describe('TablePanelHeader', () => {+ it('applies the common action-toolbar layout to every header', () => {+ render(+ <TablePanelHeader+ actions={<button type="button">Create agent</button>}+ actionsClassName="custom-toolbar"+ refreshAction={<button type="button">Refresh agents</button>}+ search={<input aria-label="Search agents" type="search" />}+ title="Agents"+ />+ )++ expect(screen.getByRole('button', { name: 'Create agent' }).parentElement).toHaveClass(+ 'cu-table-panel__actions',+ 'custom-toolbar'+ )+ })++ it('renders page actions, refresh, and search in visual and focus order', () => {+ render(+ <TablePanelHeader+ search={<input aria-label="Search agents" type="search" />}+ refreshAction={<button type="button">Refresh agents</button>}+ actions={<button type="button">Create agent</button>}+ title="Agents"+ />+ )++ const toolbar = screen.getByRole('button', { name: 'Create agent' }).parentElement+ expect(toolbar).not.toBeNull()+ expect(+ Array.from((toolbar as HTMLElement).querySelectorAll('button, input[type="search"]')).map(+ control => control.getAttribute('aria-label') || control.textContent+ )+ ).toEqual(['Create agent', 'Refresh agents', 'Search agents'])+ expect(css).not.toMatch(/\.cu-table-panel__actions[^{}]*\{[^}]*\border\s*:/)+ expect(css).toMatch(/\.cu-table-panel__actions\s*\{[^}]*flex-wrap:\s*wrap/)+ expect(css).toMatch(/\.cu-table-panel__actions\s*\{[^}]*width:\s*100%/)+ expect(css).toMatch(+ /\.cu-table-panel__head\s*>\s*\.eft-data-view-header__main\s*\{[^}]*flex-wrap:\s*wrap/+ )+ expect(css).toMatch(+ /\.cu-table-panel__head\s+\.eft-data-view-header__actions\s*\{[^}]*flex:\s*1\s+1\s+42rem/+ )+ expect(css).toMatch(+ /@media\s*\(max-width:\s*768px\)[\s\S]*\.cu-table-panel__head\s+\.eft-data-view-header__actions\s*\{[^}]*flex:\s*none/+ )+ expect(css).not.toMatch(+ /\.cu-table-panel__actions\s*>\s*\.cu-section-search\s*\{[^}]*flex:\s*1\s+1\s+100%/+ )+ const narrowLayoutStart = css.lastIndexOf('@media (max-width: 768px)')+ const narrowSearchStart = css.indexOf(+ '.cu-table-panel__actions > .cu-section-search {',+ narrowLayoutStart+ )+ expect(narrowSearchStart).toBeGreaterThan(narrowLayoutStart)+ const narrowSearchBlock = css.slice(narrowSearchStart, css.indexOf('}', narrowSearchStart) + 1)+ expect(narrowSearchBlock).toMatch(/flex:\s*0\s+1\s+13rem/)+ expect(narrowSearchBlock).toMatch(/width:\s*min\(13rem,\s*100%\)/)+ expect(css).toMatch(/\.cu-table-panel__actions\s*>\s*select\.cu-input\s*\{[^}]*width:\s*auto/)+ })+})diff --git a/control-ui/package-lock.json b/control-ui/package-lock.jsonindex b87550604..cdc3e648d 100644--- a/control-ui/package-lock.json+++ b/control-ui/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-control-ui",- "version": "0.1.508",+ "version": "0.1.509","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-control-ui",- "version": "0.1.508",+ "version": "0.1.509","dependencies": {"@clerum/display-field": "file:../packages/display-field","@clerum/frontend-table-system": "file:../packages/frontend-table-system",diff --git a/control-ui/package.json b/control-ui/package.jsonindex 919d21730..60fc743d3 100644--- a/control-ui/package.json+++ b/control-ui/package.json@@ -1,6 +1,6 @@{"name": "clerum-control-ui",- "version": "0.1.508",+ "version": "0.1.509","private": true,"scripts": {"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",diff --git a/docs/agents/control-ui-rules.md b/docs/agents/control-ui-rules.mdindex 0db78e4ce..f0b741854 100644--- a/docs/agents/control-ui-rules.md+++ b/docs/agents/control-ui-rules.md@@ -107,6 +107,11 @@ leaning on either behaviour.while initial loading, empty, and error states render in the content area.Disable header CTAs during initial loading, and let only the content panescroll when rows overflow.+- In `TablePanelHeader`, pass page-action buttons through `actions`, the refresh+ control through `refreshAction`, and the search input through `search`. The+ adapter renders that semantic and focus order, keeps those controls on one+ toolbar line whenever their combined minimum widths fit, and preserves their+ order when a genuinely crowded toolbar must wrap.- Use `CreatePageHeader` plus `cu-create-panel`, `cu-create-content`, and`cu-form-grid` for full-screen create/install pages. Put Cancel in a ghostbutton and Submit in a primary button inside `cu-create-actions`. Use `<h2>`