Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(control-ui): remove Marketplace tab table inset
Josué564df206ed7c
diff --git a/control-ui/app/globals.css b/control-ui/app/globals.cssindex 0a6a845b4..6a2067beb 100644--- a/control-ui/app/globals.css+++ b/control-ui/app/globals.css@@ -1828,6 +1828,15 @@ textarea.cu-input {margin-inline-start: var(--cu-space-4);}+.cu-marketplace-tab-body {+ padding: 0;+}++.cu-marketplace-tab-body > .cu-banner,+.cu-marketplace-tab-body > .cu-muted-note {+ margin: var(--cu-space-3) var(--cu-space-4);+}+.cu-table-wrap {overflow-x: auto;}diff --git a/control-ui/components/MarketplaceOrgImages/index.tsx b/control-ui/components/MarketplaceOrgImages/index.tsxindex cfc1241c8..e6e312d7c 100644--- a/control-ui/components/MarketplaceOrgImages/index.tsx+++ b/control-ui/components/MarketplaceOrgImages/index.tsx@@ -122,7 +122,7 @@ export function MarketplaceOrgImages({}/>)}- <div className="cu-card__body">+ <div className={hideHeader ? 'cu-card__body cu-marketplace-tab-body' : 'cu-card__body'}>{hideHeader ? (<p className="cu-muted-note">Your connectors and plugins push container images to{' '}diff --git a/control-ui/components/PublisherView/OwnedEntries.tsx b/control-ui/components/PublisherView/OwnedEntries.tsxindex a84994311..5b6ee1bd7 100644--- a/control-ui/components/PublisherView/OwnedEntries.tsx+++ b/control-ui/components/PublisherView/OwnedEntries.tsx@@ -250,7 +250,7 @@ export function OwnedEntries({}/>)}- <div className="cu-card__body">+ <div className={hideHeader ? 'cu-card__body cu-marketplace-tab-body' : 'cu-card__body'}>{hideHeader && sharingUnavailable && hasPrivateEntries ? (<p className="cu-muted-note">Cross-org sharing isn’t available on this deployment, so private entries stay visiblediff --git a/control-ui/components/RegistryApiKeysPanel.tsx b/control-ui/components/RegistryApiKeysPanel.tsxindex df6d14484..ca7c28d1f 100644--- a/control-ui/components/RegistryApiKeysPanel.tsx+++ b/control-ui/components/RegistryApiKeysPanel.tsx@@ -236,7 +236,7 @@ export default function RegistryApiKeysPanel({/>)}- <div className="cu-card__body">+ <div className={hideHeader ? 'cu-card__body cu-marketplace-tab-body' : 'cu-card__body'}>{view.kind === 'not-owner' ? (<p className="cu-banner cu-banner--warn">You must be an org owner to manage API keysdiff --git a/control-ui/components/__tests__/MarketplaceOrgImages.test.tsx b/control-ui/components/__tests__/MarketplaceOrgImages.test.tsxindex 09bc36d69..238898867 100644--- a/control-ui/components/__tests__/MarketplaceOrgImages.test.tsx+++ b/control-ui/components/__tests__/MarketplaceOrgImages.test.tsx@@ -9,6 +9,15 @@ afterEach(cleanup)beforeEach(() => vi.clearAllMocks())describe('MarketplaceOrgImages', () => {+ it('removes card-body padding when embedded below the Marketplace tabs', () => {+ vi.mocked(api.listOrgImages).mockReturnValue(+ new Promise(() => undefined) as ReturnType<typeof api.listOrgImages>+ )+ const { container } = render(<MarketplaceOrgImages embedded hideHeader orgScope="@acme" />)++ expect(container.querySelector('.cu-marketplace-tab-body')).toBeInTheDocument()+ })+it('lists real image repos + tags with their full coordinate (read-only)', async () => {vi.mocked(api.listOrgImages).mockResolvedValue({org: 'acme',diff --git a/control-ui/components/__tests__/OwnedEntries.test.tsx b/control-ui/components/__tests__/OwnedEntries.test.tsxindex 9b0c16111..3cdc76f42 100644--- a/control-ui/components/__tests__/OwnedEntries.test.tsx+++ b/control-ui/components/__tests__/OwnedEntries.test.tsx@@ -48,6 +48,18 @@ beforeEach(() => {})describe('OwnedEntries', () => {+ it('removes card-body padding when embedded below the Marketplace tabs', () => {+ vi.mocked(api.getOwnedRegistryEntries).mockReturnValue(+ new Promise(() => undefined) as ReturnType<typeof api.getOwnedRegistryEntries>+ )+ vi.mocked(api.getRegistryCatalog).mockReturnValue(+ new Promise(() => undefined) as ReturnType<typeof api.getRegistryCatalog>+ )+ const { container } = render(<OwnedEntries embedded hideHeader orgScope="@acme" />)++ expect(container.querySelector('.cu-marketplace-tab-body')).toBeInTheDocument()+ })+it('keeps headers mounted while owned entries load', () => {vi.mocked(api.getOwnedRegistryEntries).mockReturnValue(new Promise(() => undefined) as ReturnType<typeof api.getOwnedRegistryEntries>diff --git a/control-ui/components/__tests__/RegistryApiKeysPanel.test.tsx b/control-ui/components/__tests__/RegistryApiKeysPanel.test.tsxindex cda60dde5..721770468 100644--- a/control-ui/components/__tests__/RegistryApiKeysPanel.test.tsx+++ b/control-ui/components/__tests__/RegistryApiKeysPanel.test.tsx@@ -42,6 +42,18 @@ const key = {}describe('RegistryApiKeysPanel', () => {+ it('removes card-body padding when embedded below the Marketplace tabs', () => {+ vi.mocked(api.listRegistryApiKeys).mockReturnValue(+ new Promise(() => undefined) as ReturnType<typeof api.listRegistryApiKeys>+ )+ vi.mocked(api.getRegistryConnection).mockReturnValue(+ new Promise(() => undefined) as ReturnType<typeof api.getRegistryConnection>+ )+ const { container } = render(<RegistryApiKeysPanel embedded hideHeader />)++ expect(container.querySelector('.cu-marketplace-tab-body')).toBeInTheDocument()+ })+it('keeps headers mounted while registry API keys load', () => {vi.mocked(api.listRegistryApiKeys).mockReturnValue(new Promise(() => undefined) as ReturnType<typeof api.listRegistryApiKeys>diff --git a/control-ui/package-lock.json b/control-ui/package-lock.jsonindex 74da16267..a2b8166f9 100644--- a/control-ui/package-lock.json+++ b/control-ui/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-control-ui",- "version": "0.1.578",+ "version": "0.1.579","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-control-ui",- "version": "0.1.578",+ "version": "0.1.579","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 1b1fd6549..ff879807f 100644--- a/control-ui/package.json+++ b/control-ui/package.json@@ -1,6 +1,6 @@{"name": "clerum-control-ui",- "version": "0.1.578",+ "version": "0.1.579","private": true,"scripts": {"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",