Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(control-ui): add "Go to your organization" CTA + plainer permanence copy on registry connect
Andy Pavia550b520a36bb
diff --git a/control-ui/components/RegistryConnectPanel.tsx b/control-ui/components/RegistryConnectPanel.tsxindex d92e7510e..c823225ea 100644--- a/control-ui/components/RegistryConnectPanel.tsx+++ b/control-ui/components/RegistryConnectPanel.tsx@@ -1,6 +1,8 @@'use client'import { useCallback, useEffect, useState } from 'react'+import { useRouter } from 'next/navigation'+import { CONTROL_ROUTES } from '@constants/routes'import {type RegistryRecoveryError,disconnectRegistryConnection,@@ -33,6 +35,7 @@ type View =export default function RegistryConnectPanel() {const { showToast } = useToast()+ const router = useRouter()const { confirm, confirmDialog } = useConfirmDialog()const [view, setView] = useState<View>({ kind: 'loading' })// request-form fields@@ -460,10 +463,18 @@ export default function RegistryConnectPanel() {deployment can now publish entries and push/pull images.</p><p className="cu-muted-note">- This connection is permanent: the organization name is bound to this deployment.- Severing a live connection is an operator action against the cluster plus a support- request, not a self-service step.+ This connection is permanent: the organization name is tied to this deployment.+ Removing it later takes a change to the cluster.</p>+ <div>+ <Button+ variant="primary"+ size="sm"+ onClick={() => router.push(CONTROL_ROUTES.marketplace.orgEntries)}+ >+ Go to your organization+ </Button>+ </div></div>) : null}</div>diff --git a/control-ui/components/__tests__/RegistryConnectPanel.test.tsx b/control-ui/components/__tests__/RegistryConnectPanel.test.tsxindex 28ba8af81..511c4b5d2 100644--- a/control-ui/components/__tests__/RegistryConnectPanel.test.tsx+++ b/control-ui/components/__tests__/RegistryConnectPanel.test.tsx@@ -15,6 +15,8 @@ vi.mock('../../lib/api', () => ({recoverRegistryConnection: vi.fn(),}))vi.mock('../ConfirmDialog', () => ({ useConfirmDialog: vi.fn() }))+const { mockPush } = vi.hoisted(() => ({ mockPush: vi.fn() }))+vi.mock('next/navigation', () => ({ useRouter: () => ({ push: mockPush }) }))function render(ui: React.ReactNode) {return rtlRender(<ToastProvider>{ui}</ToastProvider>)@@ -183,6 +185,18 @@ describe('RegistryConnectPanel', () => {expect(screen.getByText(/connection is permanent/i)).toBeInTheDocument()})+ it('connected view offers a "Go to your organization" CTA → org entries', async () => {+ vi.mocked(api.getRegistryConnection).mockResolvedValue({+ state: 'connected',+ deploymentId: 'd',+ org: 'acme',+ })+ render(<RegistryConnectPanel />)+ const cta = await screen.findByRole('button', { name: /go to your organization/i })+ fireEvent.click(cta)+ expect(mockPush).toHaveBeenCalledWith('/marketplace/org/entries')+ })+// Regression guard: the panel used to render an env-var banner// (CLERUM_REGISTRY_AUTH_ENABLED guidance) when connected without registry// auth active. That banner is gone entirely, so pin its absence for BOTHdiff --git a/control-ui/package-lock.json b/control-ui/package-lock.jsonindex 216d316ea..85b73d43d 100644--- a/control-ui/package-lock.json+++ b/control-ui/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-control-ui",- "version": "0.1.374",+ "version": "0.1.375","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-control-ui",- "version": "0.1.374",+ "version": "0.1.375","dependencies": {"@clerum/llm-providers": "file:../packages/llm-providers","@clerum/workflow-recipe-capability-policy": "file:../packages/workflow-recipe-capability-policy",diff --git a/control-ui/package.json b/control-ui/package.jsonindex 25fc3932b..a8bc6a717 100644--- a/control-ui/package.json+++ b/control-ui/package.json@@ -1,6 +1,6 @@{"name": "clerum-control-ui",- "version": "0.1.374",+ "version": "0.1.375","private": true,"scripts": {"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",