Skip to content

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

TypeScript

Merge remote-tracking branch 'origin/dev' into feat/ux-improvements-28

Miguelon Peluchonb2e6e73830a3
diff --cc control-ui/components/RegistryCatalog.tsx
index ee4819036,67e9316b1..335c198b8
--- a/control-ui/components/RegistryCatalog.tsx
+++ b/control-ui/components/RegistryCatalog.tsx
@@@ -399,8 -335,24 +400,25 @@@ export default function RegistryCatalog
</>
}
/>
+ <MarketplaceTabs active="connectors" />
+ <TabBar<MarketplaceTab>
+ ariaLabel="Marketplace entry types"
+ activeValue={activeTab}
+ className="cu-tabs--flush-top"
+ options={[
+ {
+ value: 'connectors',
+ href: CONTROL_ROUTES.marketplace.connectors,
+ label: 'Connectors',
+ },
+ {
+ value: 'plugins',
+ href: CONTROL_ROUTES.marketplace.plugins,
+ label: 'Plugins',
+ },
+ ]}
+ />
<div className="cu-table-wrap cu-marketplace-table-wrap">
<table className="cu-table cu-table--header-band cu-expandable-table cu-marketplace-table">
<thead>
diff --cc control-ui/components/__tests__/RegistryCatalog.test.tsx
index 40ac05d03,b97f53651..db5575a94
--- a/control-ui/components/__tests__/RegistryCatalog.test.tsx
+++ b/control-ui/components/__tests__/RegistryCatalog.test.tsx
@@@ -168,18 -168,7 +168,18 @@@ describe('RegistryCatalog tabs and colu
}
})
+ it('excludes private entries from the Marketplace', async () => {
+ mockApiSuccess([
+ MOCK_MCP_ENTRY,
+ { ...MOCK_MCP_ENTRY, id: '3', name: 'private-search', visibility: 'private' },
+ ])
+ render(<RegistryCatalog />)
+
+ expect(await screen.findByText('brave-search')).toBeInTheDocument()
+ expect(screen.queryByText('private-search')).not.toBeInTheDocument()
+ })
+
- it('shows the top-level Connectors tab, no public Plugins tab', async () => {
+ it('provides canonical tabs for connectors and plugins', async () => {
mockApiSuccess()
render(<RegistryCatalog />)
await screen.findByText('brave-search')
@@@ -188,21 -177,12 +188,24 @@@
'href',
'/marketplace/connectors'
)
- expect(screen.queryByRole('tab', { name: 'Plugins' })).not.toBeInTheDocument()
+ expect(screen.getByRole('tab', { name: 'Plugins' })).toHaveAttribute(
+ 'href',
+ '/marketplace/plugins'
+ )
})
+ it('places Marketplace navigation below the panel header', async () => {
+ mockApiSuccess()
+ render(<RegistryCatalog />)
+ await screen.findByText('brave-search')
+
+ const header = screen.getByText('Marketplace')
+ const connectorsTab = screen.getByRole('tab', { name: 'Connectors' })
+ expect(header.compareDocumentPosition(connectorsTab) & Node.DOCUMENT_POSITION_FOLLOWING).toBe(
+ Node.DOCUMENT_POSITION_FOLLOWING
+ )
+ })
+
it('links entry names to their shareable detail routes', async () => {
mockApiSuccess()
render(<RegistryCatalog />)