Skip to content

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

TypeScript

fix(control-ui): expose marketplace plugins tab for sdk journey

Alfredo Lopezbd51988ba142
diff --git a/control-ui/components/RegistryCatalog.tsx b/control-ui/components/RegistryCatalog.tsx
index f089475b3..67e9316b1 100644
--- a/control-ui/components/RegistryCatalog.tsx
+++ b/control-ui/components/RegistryCatalog.tsx
@@ -9,6 +9,7 @@ import { type RowAction, RowActionsMenu } from '@components/RowActionsMenu'
import { SectionSearchInput } from '@components/SectionSearchInput'
import { IconStore } from '@components/Sidebar/icons'
import { SkeletonTableRows } from '@components/SkeletonTableRows'
+import { TabBar } from '@components/TabBar'
import { TableHeaderRow } from '@components/TableHeaderRow'
import type { TableHeaderColumn } from '@components/TableHeaderRow/types'
import { TablePanelHeader } from '@components/TablePanelHeader'
@@ -335,6 +336,23 @@ export default function RegistryCatalog() {
}
/>
+ <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 --git a/control-ui/components/__tests__/RegistryCatalog.test.tsx b/control-ui/components/__tests__/RegistryCatalog.test.tsx
index 58e53a8fd..1157afce4 100644
--- a/control-ui/components/__tests__/RegistryCatalog.test.tsx
+++ b/control-ui/components/__tests__/RegistryCatalog.test.tsx
@@ -168,7 +168,7 @@ describe('RegistryCatalog tabs and columns', () => {
}
})
- it('shows the top-level Marketplace tab, no public Plugins tab', async () => {
+ it('provides canonical tabs for connectors and plugins', async () => {
mockApiSuccess()
render(<RegistryCatalog />)
await screen.findByText('brave-search')
@@ -177,7 +177,10 @@ describe('RegistryCatalog tabs and columns', () => {
'href',
'/marketplace/connectors'
)
- expect(screen.queryByRole('tab', { name: 'Plugins' })).not.toBeInTheDocument()
+ expect(screen.getByRole('tab', { name: 'Plugins' })).toHaveAttribute(
+ 'href',
+ '/marketplace/plugins'
+ )
})
it('links entry names to their shareable detail routes', async () => {
diff --git a/control-ui/e2e/plugin-workload-sdk-operator-journey.spec.ts b/control-ui/e2e/plugin-workload-sdk-operator-journey.spec.ts
index 33b681e2d..1f89bf3bf 100644
--- a/control-ui/e2e/plugin-workload-sdk-operator-journey.spec.ts
+++ b/control-ui/e2e/plugin-workload-sdk-operator-journey.spec.ts
@@ -262,8 +262,11 @@ test.describe('Plugin Workload SDK — operator journey (Marketplace → install
// directly from the catalog, unlike connector entries that open the wizard.
await uiLogin(page)
await page.locator('text=Marketplace').first().click()
- await expect(page.getByLabel('Search Marketplace entries')).toBeVisible({ timeout: 15_000 })
- await page.getByLabel('Search Marketplace entries').fill(entryName)
+ const pluginsTab = page.getByRole('tab', { name: 'Plugins', exact: true })
+ await expect(pluginsTab).toBeVisible({ timeout: 15_000 })
+ await pluginsTab.click()
+ await expect(page.getByLabel('Search Marketplace plugins')).toBeVisible({ timeout: 15_000 })
+ await page.getByLabel('Search Marketplace plugins').fill(entryName)
const row = page.locator('tr', { hasText: entryName })
await expect(row).toBeVisible({ timeout: 15_000 })
const installResp = page.waitForResponse(