Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

✨ feat(marketplace): organize connector discovery and installed navigation (#23577)

AmAzing-bc7465b1195f
diff --git a/.agents/ux/lobe-design-rules.md b/.agents/ux/lobe-design-rules.md
index e6486af4731..8e6d56dae88 100644
--- a/.agents/ux/lobe-design-rules.md
+++ b/.agents/ux/lobe-design-rules.md
@@ -232,6 +232,12 @@ Source: user correction comparing the Marketplace desktop layout with Open Bot (
## LOBE-UX-032 — Show installed skill rows in the main pane
-Display installed skill rows in the Skills catalog's main pane and in its installed manager. Use the row menus for skill management and the “View all” link for the full list. Keep the installed connector list and its manager entry visible in the sidebar across Marketplace sections. The section label already identifies installed connectors, so omit the connected check mark from those rows.
+Display installed skill rows in the Skills catalog's main pane and in its installed manager. Use the row menus for skill management and the “View all” link for the full list. Keep the installed connector list visible across Marketplace sections. Make its section title a link to the installed connector manager so workspace users can reach their private connectors even when the shared list is empty. The section label already identifies installed connectors, so omit the connected check mark from those rows.
Source: user correction comparing the Skills sidebar and main pane with Open Bot (2026-11-20).
+
+## LOBE-UX-033 — Use one icon action per Marketplace connector row
+
+Use the settings list’s trailing controls in both Verified and Public. Show a plus to connect, an ellipsis to manage an existing connection, and a rotating-arrow icon to reauthorize. Give each icon a localized accessible name and tooltip. Show a loading indicator while authorization is underway.
+
+Source: user correction on the Marketplace connector list (2026-11-21).
diff --git a/e2e/src/features/community/detail-pages.feature b/e2e/src/features/community/detail-pages.feature
index 4de7c8246ae..1ef1899f7a4 100644
--- a/e2e/src/features/community/detail-pages.feature
+++ b/e2e/src/features/community/detail-pages.feature
@@ -78,7 +78,7 @@ Feature: Discover Detail Pages
@COMMUNITY-DETAIL-007 @P1
Scenario: Load MCP detail page and verify content
- Given I navigate to "/marketplace/connector"
+ Given I navigate to "/marketplace/connector?source=public"
And I wait for the page to fully load
When I click on the first MCP card
Then I should be on an MCP detail page
@@ -88,8 +88,8 @@ Feature: Discover Detail Pages
@COMMUNITY-DETAIL-008 @P1
Scenario: Navigate back from MCP detail page
- Given I navigate to "/marketplace/connector"
+ Given I navigate to "/marketplace/connector?source=public"
And I wait for the page to fully load
And I click on the first MCP card
When I click the back button
- Then I should be navigated to "/marketplace/connector"
+ Then I should be navigated to "/marketplace/connector?source=public"
diff --git a/e2e/src/features/community/interactions.feature b/e2e/src/features/community/interactions.feature
index 8eed1ba84ce..4f2d0c67a8e 100644
--- a/e2e/src/features/community/interactions.feature
+++ b/e2e/src/features/community/interactions.feature
@@ -76,8 +76,9 @@ Feature: Discover Interactions
@COMMUNITY-INTERACT-008 @P1
Scenario: Browse a category in Connectors Discover
Given I navigate to "/marketplace/connector"
- When I open the MCP category "developer"
- Then I should be navigated to "/marketplace/connector?category=developer"
+ When I select the "Public" connector filter
+ And I open the MCP category "developer"
+ Then I should be navigated to "/marketplace/connector?category=developer&source=public"
And I should see only these MCP cards
| File Manager |
| Build Runner |
@@ -89,7 +90,7 @@ Feature: Discover Interactions
@COMMUNITY-INTERACT-009 @P1
Scenario: Navigate to MCP detail page
- Given I navigate to "/marketplace/connector"
+ Given I navigate to "/marketplace/connector?source=public"
When I click on the first MCP card
Then I should be navigated to the MCP detail page
And I should see the MCP detail content
@@ -97,5 +98,8 @@ Feature: Discover Interactions
@COMMUNITY-INTERACT-010 @P1
Scenario: Open an old marketplace bookmark with a search
Given I navigate to "/community?q=developer"
- Then I should be navigated to "/marketplace/agent?q=developer"
- And I should see only "Code Assistant" in the assistant catalog
+ Then I should be navigated to "/marketplace/connector?q=developer"
+ And the "Verified" connector filter should be selected
+ When I select the "Public" connector filter
+ Then I should see only these MCP cards
+ | File Manager |
diff --git a/e2e/src/features/community/smoke.feature b/e2e/src/features/community/smoke.feature
index c2763c0f114..4520aa9bd6f 100644
--- a/e2e/src/features/community/smoke.feature
+++ b/e2e/src/features/community/smoke.feature
@@ -3,12 +3,12 @@ Feature: Community Smoke Tests
Critical path tests to ensure the community/discover module is functional
@COMMUNITY-SMOKE-001 @P0
- Scenario: Open the marketplace at the assistant list
+ Scenario: Open the marketplace at the verified connector list
Given I navigate to "/marketplace"
Then the page should load without errors
And I should see the page body
- And I should be navigated to "/marketplace/agent"
- And I should see assistant cards
+ And I should be navigated to "/marketplace/connector"
+ And the "Verified" connector filter should be selected
@COMMUNITY-SMOKE-002 @P0
Scenario: Load Assistant List Page
@@ -39,6 +39,8 @@ Feature: Community Smoke Tests
Given I navigate to "/marketplace/connector"
Then the page should load without errors
And I should see the page body
+ When I select the "Public" connector filter
+ Then the "Public" connector filter should be selected
And I should see MCP cards
And I should see the MCP category "developer"
diff --git a/e2e/src/steps/community/interactions.steps.ts b/e2e/src/steps/community/interactions.steps.ts
index 9d284e07a99..158996e63ae 100644
--- a/e2e/src/steps/community/interactions.steps.ts
+++ b/e2e/src/steps/community/interactions.steps.ts
@@ -38,8 +38,21 @@ When('I open the recommended assistants', async function (this: CustomWorld) {
await this.page.locator('section a[href="/marketplace/agent?sort=recommended"]').click();
});
+When('I select the {string} connector filter', async function (this: CustomWorld, name: string) {
+ await this.page.getByRole('button', { exact: true, name }).click();
+});
+
+Then(
+ 'the {string} connector filter should be selected',
+ async function (this: CustomWorld, name: string) {
+ await expect(this.page.getByRole('button', { exact: true, name, pressed: true })).toBeVisible();
+ },
+);
+
When('I open the MCP category {string}', async function (this: CustomWorld, category: string) {
- await this.page.locator(`section a[href="/marketplace/connector?category=${category}"]`).click();
+ await this.page
+ .locator(`section a[href="/marketplace/connector?category=${category}&source=public"]`)
+ .click();
});
When('I wait for the filtered results to load', async function (this: CustomWorld) {
diff --git a/e2e/src/steps/community/smoke.steps.ts b/e2e/src/steps/community/smoke.steps.ts
index b09f730c9f9..2db11baf8a9 100644
--- a/e2e/src/steps/community/smoke.steps.ts
+++ b/e2e/src/steps/community/smoke.steps.ts
@@ -85,7 +85,9 @@ Then(
'I should see the MCP category {string}',
async function (this: CustomWorld, category: string) {
await expect(
- this.page.locator(`section a[href="/marketplace/connector?category=${category}"]`),
+ this.page.locator(
+ `section a[href="/marketplace/connector?category=${category}&source=public"]`,
+ ),
).toBeVisible();
},
);
diff --git a/locales/en-US/discover.json b/locales/en-US/discover.json
index 71ca8a3508e..bc5ba149707 100644
--- a/locales/en-US/discover.json
+++ b/locales/en-US/discover.json
@@ -90,7 +90,9 @@
"catalog.manageInstalledConnectors": "Manage installed connectors",
"catalog.manageInstalledSkills": "Manage installed skills",
"catalog.new": "New & Noteworthy",
+ "catalog.noVerifiedConnectors": "No verified connectors available",
"catalog.popular": "Popular",
+ "catalog.public": "Public",
"catalog.recommended": "Recommended",
"catalog.retry": "Retry",
"catalog.rowAction": "{{action}} {{name}}",
@@ -98,6 +100,7 @@
"catalog.searchIn": "Search in {{name}}",
"catalog.searchResults": "Results for “{{keyword}}”",
"catalog.sectionError": "Couldn't load this group",
+ "catalog.verified": "Verified",
"catalog.viewAll": "View all",
"catalog.viewAllIn": "View all in {{name}}",
"catalog.yourSkills": "Your skills",
diff --git a/locales/zh-CN/discover.json b/locales/zh-CN/discover.json
index b64449a589b..5154f7acef2 100644
--- a/locales/zh-CN/discover.json
+++ b/locales/zh-CN/discover.json
@@ -90,7 +90,9 @@
"catalog.manageInstalledConnectors": "管理已安装的连接器",
"catalog.manageInstalledSkills": "管理已安装的技能",
"catalog.new": "新上架",
+ "catalog.noVerifiedConnectors": "暂无已验证的连接器",
"catalog.popular": "热门",
+ "catalog.public": "公开",
"catalog.recommended": "推荐",
"catalog.retry": "重试",
"catalog.rowAction": "{{action}} {{name}}",
@@ -98,6 +100,7 @@
"catalog.searchIn": "在 {{name}} 中搜索",
"catalog.searchResults": "“{{keyword}}”的搜索结果",
"catalog.sectionError": "这一组没有加载出来",
+ "catalog.verified": "已验证",
"catalog.viewAll": "查看全部",
"catalog.viewAllIn": "查看 {{name}} 的全部条目",
"catalog.yourSkills": "你的技能",
diff --git a/packages/locales/src/default/discover.ts b/packages/locales/src/default/discover.ts
index 7272949c792..cee16afdde4 100644
--- a/packages/locales/src/default/discover.ts
+++ b/packages/locales/src/default/discover.ts
@@ -99,7 +99,9 @@ export default {
'catalog.manageInstalledConnectors': 'Manage installed connectors',
'catalog.manageInstalledSkills': 'Manage installed skills',
'catalog.new': 'New & Noteworthy',
+ 'catalog.noVerifiedConnectors': 'No verified connectors available',
'catalog.popular': 'Popular',
+ 'catalog.public': 'Public',
'catalog.recommended': 'Recommended',
'catalog.retry': 'Retry',
'catalog.rowAction': '{{action}} {{name}}',
@@ -107,6 +109,7 @@ export default {
'catalog.searchIn': 'Search in {{name}}',
'catalog.searchResults': 'Results for “{{keyword}}”',
'catalog.sectionError': "Couldn't load this group",
+ 'catalog.verified': 'Verified',
'catalog.viewAll': 'View all',
'catalog.viewAllIn': 'View all in {{name}}',
'catalog.yourSkills': 'Your skills',
diff --git a/src/features/Marketplace/Catalog/ConnectorCatalog.tsx b/src/features/Marketplace/Catalog/ConnectorCatalog.tsx
index 27847fa0ef4..aaa8ead7ca4 100644
--- a/src/features/Marketplace/Catalog/ConnectorCatalog.tsx
+++ b/src/features/Marketplace/Catalog/ConnectorCatalog.tsx
@@ -1,14 +1,17 @@
'use client';
-import { Avatar, Icon } from '@lobehub/ui';
+import { Avatar, Icon, Segmented } from '@lobehub/ui';
import { McpIcon } from '@lobehub/ui/icons';
import * as stylex from '@stylexjs/stylex';
-import { memo, type ReactNode } from 'react';
+import { ShieldCheck } from 'lucide-react';
+import { memo } from 'react';
import { useTranslation } from 'react-i18next';
+import { useSearchParams } from 'react-router';
import urlJoin from 'url-join';
import AsyncBoundary from '@/components/AsyncBoundary';
import { CatalogRowsSkeleton } from '@/components/Skeleton/MarketplaceCatalog';
+import { RowAddAction, RowMoreMenu } from '@/features/Settings/skill/features/RowActions';
import SkillListRow from '@/features/Settings/skill/features/SkillListRow';
import { useFetchInstalledPlugins } from '@/hooks/useFetchInstalledPlugins';
import { useCategory as useMcpCategory } from '@/hooks/useMCPCategory';
@@ -21,15 +24,16 @@ import { useDiscoverStore } from '@/store/discover';
import { mcpSelectors } from '@/store/discover/selectors';
import { useToolStore } from '@/store/tool';
import { pluginSelectors } from '@/store/tool/selectors';
+import { connectorSelectors } from '@/store/tool/slices/connector';
import { type DiscoverMcpItem, McpCategory, type McpQueryParams, McpSorts } from '@/types/discover';
import CatalogViewTabs from '../CatalogViewTabs';
+import { buildInstalledDetailPath } from '../InstalledNav';
import { MARKETPLACE_CONNECTOR_PATH, MARKETPLACE_MCP_PATH } from '../paths';
import CatalogListView from './CatalogListView';
import CatalogSection, { useSeenOnce } from './CatalogSection';
import DiscoverCatalogHeader from './DiscoverCatalogHeader';
import { openMcpConnectModal } from './McpConnectModal';
-import RowAction from './RowAction';
import {
buildCatalogListUrl,
CATALOG_LIST_PAGE_SIZE,
@@ -48,13 +52,42 @@ const McpCatalogRow = memo<{ item: DiscoverMcpItem }>(({ item }) => {
const navigate = useCatalogDetailNavigate();
const { allowed: canCreate } = usePermission('create_content');
const { allowed: canEdit } = usePermission('edit_own_content');
- const connectLabel = ts('connectorMarket.action.connect');
+ const connectLabel = t('catalog.rowAction', {
+ action: ts('connectorMarket.action.connect'),
+ name,
+ });
const installed = useToolStore(pluginSelectors.isPluginInstalled(identifier));
const openDetail = () => {
discoverService
.reportMcpEvent({ event: 'click', identifier, source: location.pathname })
.catch(() => {});
+ if (installed) {
+ const state = useToolStore.getState();
+ const legacy = pluginSelectors
+ .installedPluginMetaList(state)
+ .find((plugin) => plugin.identifier === identifier);
+ if (legacy) {
+ navigate(
+ buildInstalledDetailPath(
+ 'connector',
+ identifier,
+ legacy.type === 'customPlugin' ? 'mcp-connector' : 'plugin',
+ ),
+ );
+ return;
+ }
+ const installs = connectorSelectors
+ .marketplaceMcpConnectors(state)
+ .filter((connector) => connector.identifier === identifier);
+ const connector = installs.find((item) => item.visibility !== 'private') ?? installs[0];
+ if (connector) {
+ navigate(
+ buildInstalledDetailPath('connector', identifier, 'mcp-connector', connector.visibility),
+ );
+ return;
+ }
+ }
navigate(urlJoin(MARKETPLACE_MCP_PATH, identifier));
};
@@ -64,16 +97,15 @@ const McpCatalogRow = memo<{ item: DiscoverMcpItem }>(({ item }) => {
testId={'mcp-item'}
title={name}
extra={
- <RowAction
- addLabel={connectLabel}
- disabled={!canCreate || !canEdit}
- installed={installed}
- installedLabel={t('catalog.installed')}
- name={name}
- onAdd={() =>
- openMcpConnectModal(item, t('catalog.rowAction', { action: connectLabel, name }))
- }
- />
+ installed ? (
+ <RowMoreMenu onOpenDetail={openDetail} />
+ ) : (
+ <RowAddAction
+ disabled={!canCreate || !canEdit}
+ label={connectLabel}
+ onClick={() => openMcpConnectModal(item, connectLabel)}
+ />
+ )
}
icon={() =>
icon ? (
@@ -115,7 +147,7 @@ const McpCatalogGroup = ({ category, count, eager, label, q }: McpGroup) => {
label={label}
loading={!data}
sectionRef={sectionRef}
- to={buildCatalogListUrl(MARKETPLACE_CONNECTOR_PATH, { category, q })}
+ to={buildCatalogListUrl(MARKETPLACE_CONNECTOR_PATH, { category, q, source: 'public' })}
onRetry={() => void mutate()}
>
{data?.items.slice(0, CATALOG_SECTION_SIZE).map((item) => (
@@ -127,13 +159,7 @@ const McpCatalogGroup = ({ category, count, eager, label, q }: McpGroup) => {
const MCP_PSEUDO_CATEGORIES = [McpCategory.All, McpCategory.Discover];
-const McpCatalogGroups = ({
- integrationSection,
- q,
-}: {
- integrationSection?: ReactNode;
- q?: string;
-}) => {
+const McpCatalogGroups = ({ q }: { q?: string }) => {
const categories = useMcpCategory();
const useMcpCategories = useDiscoverStore((s) => s.useMcpCategories);
const { error, isLoading, mutate, queryKey } = useMcpCategories({ q });
@@ -142,7 +168,6 @@ const McpCatalogGroups = ({
return (
<div {...stylex.props(catalogStyles.sections)}>
- {integrationSection}
<AsyncBoundary
data={counts.length > 0 ? counts : undefined}
error={error}
@@ -151,7 +176,7 @@ const McpCatalogGroups = ({
onRetry={() => void mutate()}
>
{groups.length === 0 ? (
- <McpCatalogList query={{ q }} showEmpty={!integrationSection} />
+ <McpCatalogList query={{ q }} />
) : (
groups.map(({ count, key, label }, index) => (
<McpCatalogGroup
@@ -171,10 +196,8 @@ const McpCatalogGroups = ({
const McpCatalogList = ({
query: { category, connectionType, order, page, q, sort },
- showEmpty = true,
}: {
query: McpQueryParams;
- showEmpty?: boolean;
}) => {
const useMcpList = useDiscoverStore((s) => s.useFetchMcpList);
const { error, isLoading, mutate, queryKey } = useMcpList({
@@ -191,7 +214,7 @@ const McpCatalogList = ({
return (
<CatalogListView
- empty={showEmpty && <McpEmpty search={Boolean(q)} />}
+ empty={<McpEmpty search={Boolean(q)} />}
error={error}
hasData={!!data}
isEmpty={items.length === 0}
@@ -216,65 +239,97 @@ const McpCatalogList = ({
);
};
-const ConnectorCatalog = () => {
+const VerifiedConnectorList = ({ q }: { q?: string }) => {
const { t } = useTranslation('discover');
- const { group, ...query } = useQuery() as McpQueryParams & { group?: string };
- const { category, q, sort } = query;
- const categories = useMcpCategory();
- const integrations = useCatalogIntegrations(q);
- const useFetchConnectors = useToolStore((s) => s.useFetchConnectors);
+ const { t: ts } = useTranslation('setting');
+ const rows = useCatalogIntegrations(q);
+ const [useFetchConnectors, initialized] = useToolStore((s) => [
+ s.useFetchConnectors,
+ s.isConnectorsInit,
+ ]);
const connections = useFetchConnectors(true);
+
+ return (
+ <CatalogListView
+ error={connections.error}
+ hasData={initialized || rows.length > 0}
+ isEmpty={rows.length === 0}
+ loading={connections.isLoading}
+ empty={
+ <McpEmpty
+ description={q ? ts('connectorMarket.empty.search', { keyword: q }) : undefined}
+ search={Boolean(q)}
+ title={q ? undefined : t('catalog.noVerifiedConnectors')}
+ />
+ }
+ onRetry={() => void connections.mutate()}
+ >
+ {rows}
+ </CatalogListView>
+ );
+};
+
+const PublicConnectorList = ({ group, query }: { group: boolean; query: McpQueryParams }) => {
useFetchInstalledPlugins();
+ return group ? <McpCatalogList query={query} /> : <McpCatalogGroups q={query.q} />;
+};
- const isIntegrationGroup = group === 'integrations';
- const isMarketGroup = isCatalogListView(query) || Boolean(query.connectionType);
- const backTo = buildCatalogListUrl(MARKETPLACE_CONNECTOR_PATH, { q });
- const title = isIntegrationGroup
- ? integrations.label
- : (categories.find((item) => item.key === category)?.label ??
- (sort === McpSorts.CreatedAt ? t('catalog.new') : t('catalog.allConnectors')));
+const ConnectorCatalog = () => {
+ const { t } = useTranslation('discover');
+ const { group, source, ...query } = useQuery() as McpQueryParams & {
+ group?: string;
+ source?: string;
+ };
+ const [, setParams] = useSearchParams();
+ const { category, q, sort } = query;
+ const categories = useMcpCategory();
+ // Existing category, sort and pagination links predate the source filter.
+ const isMarketGroup =
+ group !== 'integrations' && (isCatalogListView(query) || Boolean(query.connectionType));
+ const isPublic = isMarketGroup || source === 'public';
+ const title =
+ categories.find((item) => item.key === category)?.label ??
+ (sort === McpSorts.CreatedAt ? t('catalog.new') : t('catalog.allConnectors'));
return (
- <div
- {...stylex.props(
- catalogStyles.frame,
- (isIntegrationGroup || isMarketGroup) && catalogStyles.groupFrame,
- )}
- >
+ <div {...stylex.props(catalogStyles.frame, isMarketGroup && catalogStyles.groupFrame)}>
<DiscoverCatalogHeader
- group={isIntegrationGroup || isMarketGroup ? { backTo, title } : undefined}
kind={'connector'}
+ group={
+ isMarketGroup
+ ? {
+ backTo: buildCatalogListUrl(MARKETPLACE_CONNECTOR_PATH, { q, source: 'public' }),
+ title,
+ }
+ : undefined
+ }
+ titleExtra={
+ !isMarketGroup && (
+ <Segmented<'verified' | 'public'>
+ value={isPublic ? 'public' : 'verified'}
+ options={[
+ {
+ icon: <Icon icon={ShieldCheck} size={16} />,
+ label: t('catalog.verified'),
+ value: 'verified',
+ },
+ { label: t('catalog.public'), value: 'public' },
+ ]}
+ onChange={(next) => {
+ const params = new URLSearchParams();
+ if (q) params.set('q', q);
+ if (next === 'public') params.set('source', 'public');
+ setParams(params);
+ }}
+ />
+ )
+ }
/>
<CatalogViewTabs active={'discover'} kind={'connector'} />
- {isIntegrationGroup ? (
- <CatalogListView
- empty={<McpEmpty search={Boolean(q)} />}
- error={connections.error}
- hasData={integrations.count > 0}
- isEmpty={integrations.count === 0}
- loading={connections.isLoading}
- onRetry={() => void connections.mutate()}
- >
- {integrations.rows()}
- </CatalogListView>
- ) : isMarketGroup ? (
- <McpCatalogList query={query} />
+ {isPublic ? (
+ <PublicConnectorList group={isMarketGroup} query={query} />
) : (
- <McpCatalogGroups
- q={q}
- integrationSection={
- integrations.count > 0 ? (
- <CatalogSection
- count={integrations.count}
- label={integrations.label}
- loading={false}
- to={buildCatalogListUrl(MARKETPLACE_CONNECTOR_PATH, { group: 'integrations', q })}
- >
- {integrations.rows(CATALOG_SECTION_SIZE)}
- </CatalogSection>
- ) : undefined
- }
- />
+ <VerifiedConnectorList q={q} />
)}
</div>
);
diff --git a/src/features/Marketplace/Catalog/DiscoverCatalogHeader.tsx b/src/features/Marketplace/Catalog/DiscoverCatalogHeader.tsx
index 10253520154..a421122da11 100644
--- a/src/features/Marketplace/Catalog/DiscoverCatalogHeader.tsx
+++ b/src/features/Marketplace/Catalog/DiscoverCatalogHeader.tsx
@@ -84,9 +84,15 @@ interface DiscoverCatalogHeaderProps {
group?: { backTo: string; title: string };
kind: CatalogKind | 'agent';
sortControl?: ReactNode;
+ titleExtra?: ReactNode;
}
-const DiscoverCatalogHeader = ({ group, kind, sortControl }: DiscoverCatalogHeaderProps) => {
+const DiscoverCatalogHeader = ({
+ group,
+ kind,
+ sortControl,
+ titleExtra,
+}: DiscoverCatalogHeaderProps) => {
const { t } = useTranslation('discover');
const { t: ts } = useTranslation('setting');
const location = useLocation();
@@ -140,9 +146,12 @@ const DiscoverCatalogHeader = ({ group, kind, sortControl }: DiscoverCatalogHead
{title}
</WorkspaceLink>
)}
- <h1 ref={headingRef} tabIndex={-1} {...stylex.props(styles.title)}>
- {groupTitle ?? title}
- </h1>
+ <Flexbox horizontal align={'center'} gap={12} justify={'space-between'} wrap={'wrap'}>
+ <h1 ref={headingRef} tabIndex={-1} {...stylex.props(styles.title)}>
+ {groupTitle ?? title}
+ </h1>
+ {titleExtra}
+ </Flexbox>
{!group && <Text type={'secondary'}>{description}</Text>}
</Flexbox>
<Flexbox horizontal align={'center'} gap={8} style={{ flexWrap: 'wrap' }}>
diff --git a/src/features/Marketplace/Catalog/useCatalogIntegrations.tsx b/src/features/Marketplace/Catalog/useCatalogIntegrations.tsx
index 676fa237e40..354f57a4e73 100644
--- a/src/features/Marketplace/Catalog/useCatalogIntegrations.tsx
+++ b/src/features/Marketplace/Catalog/useCatalogIntegrations.tsx
@@ -56,38 +56,29 @@ export const useCatalogIntegrations = (keyword?: string) => {
);
});
- return {
- count: matches.length,
- label: t('connectorMarket.section.lobehub'),
- rows: (limit?: number) =>
- matches.slice(0, limit).map((item) => {
- if (item.type === 'lobehub') {
- const id = item.provider.id;
- return (
- <LobehubSkillItem
- showConnectLabel
- key={id}
- provider={item.provider}
- server={lobehubById.get(id)}
- onSelect={() =>
- navigate(buildInstalledDetailPath('connector', id, 'lobehub-connector', visibility))
- }
- />
- );
- }
+ return matches.map((item) => {
+ if (item.type === 'lobehub') {
+ const id = item.provider.id;
+ return (
+ <LobehubSkillItem
+ key={id}
+ provider={item.provider}
+ server={lobehubById.get(id)}
+ onSelect={() =>
+ navigate(buildInstalledDetailPath('connector', id, 'lobehub-connector', visibility))
+ }
+ />
+ );
+ }
- const id = item.serverType.identifier;
- return (
- <ComposioSkillItem
- showConnectLabel
- key={id}
- server={composioById.get(id)}
- serverType={item.serverType}
- onSelect={() =>
- navigate(buildInstalledDetailPath('connector', id, 'plugin', visibility))
- }
- />
- );
- }),
- };
+ const id = item.serverType.identifier;
+ return (
+ <ComposioSkillItem
+ key={id}
+ server={composioById.get(id)}
+ serverType={item.serverType}
+ onSelect={() => navigate(buildInstalledDetailPath('connector', id, 'plugin', visibility))}
+ />
+ );
+ });
};
diff --git a/src/features/Marketplace/InstalledNav.test.ts b/src/features/Marketplace/InstalledNav.test.ts
index 80e8b78b380..f72248d858d 100644
--- a/src/features/Marketplace/InstalledNav.test.ts
+++ b/src/features/Marketplace/InstalledNav.test.ts
@@ -1,11 +1,27 @@
+import { fireEvent, render } from '@testing-library/react';
+import { createElement } from 'react';
+import { createMemoryRouter, MemoryRouter, RouterProvider } from 'react-router';
import { describe, expect, it, vi } from 'vitest';
-vi.mock('@/features/Settings/skill/features/SkillList', () => ({ default: () => null }));
+const { installedList, activeLocation } = vi.hoisted(() => ({
+ activeLocation: { pathname: '/acme/marketplace/connector/installed', search: '' },
+ installedList: vi.fn(() => null),
+}));
+vi.mock('@/features/Settings/skill/features/SkillList', () => ({ default: installedList }));
+vi.mock('@/hooks/useActiveLocation', () => ({ useActiveLocation: () => activeLocation }));
vi.mock('@/business/client/hooks/useActiveWorkspaceId', () => ({
- useActiveWorkspaceId: () => null,
+ useActiveWorkspaceId: () => 'ws_1',
+}));
+
+vi.mock('@/business/client/hooks/useActiveWorkspaceSlug', () => ({
+ useActiveWorkspaceSlug: () => 'acme',
}));
-const { buildInstalledDetailPath, getInstalledVisibility } = await import('./InstalledNav');
+const {
+ default: InstalledNav,
+ buildInstalledDetailPath,
+ getInstalledVisibility,
+} = await import('./InstalledNav');
describe('buildInstalledDetailPath', () => {
it('opens one installed item on its installed page', () => {
@@ -45,3 +61,41 @@ describe('buildInstalledDetailPath in a workspace', () => {
);
});
});
+
+describe('installed connector sidebar selection', () => {
+ it('highlights the connector from the active desktop tab even when the shell router is on another URL', () => {
+ activeLocation.search = '?open=mcp-connector%3Aacme%3Aci&visibility=private';
+ render(createElement(MemoryRouter, { initialEntries: ['/'] }, createElement(InstalledNav)));
+ expect(installedList).toHaveBeenCalledWith(
+ expect.objectContaining({ selectedIdentifier: 'acme:ci', visibility: 'private' }),
+ undefined,
+ );
+ });
+});
+
+describe('installed connector collection link', () => {
+ it.each([
+ ['/acme/marketplace/connector', '', ''],
+ [
+ '/acme/marketplace/connector/installed',
+ '?open=mcp-connector%3Aexample&visibility=private',
+ '?visibility=private',
+ ],
+ ])(
+ 'opens the collection from %s%s even without visible rows',
+ (pathname, search, expectedSearch) => {
+ Object.assign(activeLocation, { pathname, search });
+ const router = createMemoryRouter([{ path: '*', element: createElement(InstalledNav) }], {
+ initialEntries: [pathname + search],
+ });
+ const view = render(createElement(RouterProvider, { router }));
+ const link = view.getByRole('link', { name: /installed/i });
+ const expectedPath = '/acme/marketplace/connector/installed';
+ expect(link.getAttribute('href')).toBe(expectedPath + expectedSearch);
+ fireEvent.click(link);
+ expect(router.state.location.pathname + router.state.location.search).toBe(
+ expectedPath + expectedSearch,
+ );
+ },
+ );
+});
diff --git a/src/features/Marketplace/InstalledNav.tsx b/src/features/Marketplace/InstalledNav.tsx
index 30fbf821dd0..0dbcdbcfea4 100644
--- a/src/features/Marketplace/InstalledNav.tsx
+++ b/src/features/Marketplace/InstalledNav.tsx
@@ -1,11 +1,11 @@
'use client';
import type { ConnectorVisibility } from '@lobechat/types';
-import { ActionIcon, Flexbox } from '@lobehub/ui';
-import { SlidersHorizontalIcon } from 'lucide-react';
+import { Flexbox } from '@lobehub/ui';
+import { cssVar } from '@lobehub/ui/stylex/cssVar.stylex';
+import * as stylex from '@stylexjs/stylex';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
-import { useSearchParams } from 'react-router';
import { useActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';
import SectionTitle, { useSectionTriggerStyle } from '@/features/NavPanel/components/SectionTitle';
@@ -18,6 +18,7 @@ import {
parseMobileSelection,
} from '@/features/Settings/skill/mobileSelection';
import { useWorkspaceAwareNavigate } from '@/features/Workspace/useWorkspaceAwareNavigate';
+import WorkspaceLink from '@/features/Workspace/WorkspaceLink';
import { useActiveLocation } from '@/hooks/useActiveLocation';
import {
@@ -26,6 +27,18 @@ import {
MARKETPLACE_INSTALLED_SKILLS_PATH,
} from './paths';
+const styles = stylex.create({
+ collectionLink: {
+ backgroundColor: {
+ 'default': 'transparent',
+ ':hover': cssVar.colorFillTertiary,
+ ':focus-visible': cssVar.colorFillTertiary,
+ },
+ borderRadius: cssVar.borderRadiusSM,
+ display: 'flex',
+ },
+});
+
export type InstalledKind = 'connector' | 'skill';
const INSTALLED_PATHS: Record<InstalledKind, string> = {
@@ -71,8 +84,8 @@ export const buildInstalledDetailPath = (
*/
const InstalledNav = memo(() => {
const { t } = useTranslation('discover');
- const { pathname } = useActiveLocation();
- const [searchParams] = useSearchParams();
+ const { pathname, search } = useActiveLocation();
+ const searchParams = new URLSearchParams(search);
const navigate = useWorkspaceAwareNavigate();
const sectionTriggerStyle = useSectionTriggerStyle();
@@ -97,22 +110,19 @@ const InstalledNav = memo(() => {
return (
<Flexbox gap={2} paddingBlock={8} paddingInline={4}>
- <Flexbox horizontal align={'center'} justify={'space-between'} style={sectionTriggerStyle}>
+ <WorkspaceLink
+ aria-current={onInstalledPage && !selectedIdentifier ? 'page' : undefined}
+ className={stylex.props(styles.collectionLink).className}
+ style={sectionTriggerStyle}
+ title={t('catalog.manageInstalledConnectors')}
+ to={
+ visibility === 'private'
+ ? `${MARKETPLACE_INSTALLED_CONNECTORS_PATH}?visibility=private`
+ : MARKETPLACE_INSTALLED_CONNECTORS_PATH
+ }
+ >
<SectionTitle>{t('catalog.installed')}</SectionTitle>
- <ActionIcon
- active={onInstalledPage && !selectedIdentifier}
- icon={SlidersHorizontalIcon}
- size={'small'}
- title={t('catalog.manageInstalledConnectors')}
- onClick={() =>
- navigate(
- visibility === 'private'
- ? `${MARKETPLACE_INSTALLED_CONNECTORS_PATH}?visibility=private`
- : MARKETPLACE_INSTALLED_CONNECTORS_PATH,
- )
- }
- />
- </Flexbox>
+ </WorkspaceLink>
<SkillListVariantProvider value={'nav'}>
<SkillList
installedOnly
diff --git a/src/features/Marketplace/paths.ts b/src/features/Marketplace/paths.ts
index cbc62b1277e..8383943223a 100644
--- a/src/features/Marketplace/paths.ts
+++ b/src/features/Marketplace/paths.ts
@@ -33,7 +33,7 @@ export const MARKETPLACE_INSTALLED_CONNECTORS_PATH = `${MARKETPLACE_CONNECTOR_PA
export const MARKETPLACE_MCP_PATH = `${MARKETPLACE_PATH}/mcp`;
export const getMarketplaceEntryPath = (showMarket: boolean | undefined): string =>
- showMarket ? MARKETPLACE_AGENT_PATH : MARKETPLACE_INSTALLED_SKILLS_PATH;
+ showMarket ? MARKETPLACE_CONNECTOR_PATH : MARKETPLACE_INSTALLED_CONNECTORS_PATH;
/** Remaining marketplace path after the (optionally workspace-prefixed) marketplace root. */
export const getMarketplaceSubPath = (pathname: string): string | undefined => {
diff --git a/src/features/Settings/skill/features/ComposioSkillItem.tsx b/src/features/Settings/skill/features/ComposioSkillItem.tsx
index 47271fff1dc..cca2144dd74 100644
--- a/src/features/Settings/skill/features/ComposioSkillItem.tsx
+++ b/src/features/Settings/skill/features/ComposioSkillItem.tsx
@@ -42,11 +42,10 @@ interface ComposioSkillItemProps {
onSelect?: () => void;
server?: ComposioServer;
serverType: ComposioAppType;
- showConnectLabel?: boolean;
}
const ComposioSkillItem = memo<ComposioSkillItemProps>(
- ({ hideConnectedStatus, serverType, server, isSelected, onSelect, showConnectLabel }) => {
+ ({ hideConnectedStatus, serverType, server, isSelected, onSelect }) => {
const { t } = useTranslation('setting');
const isPage = useSkillListVariant() === 'page';
const { allowed: canCreate, reason: createReason } = usePermission('create_content');
@@ -389,8 +388,6 @@ const ComposioSkillItem = memo<ComposioSkillItemProps>(
// A restricted or stale (pending / errored) connection keeps its explicit
// control, since a bare `+` would not say why the first try did not stick.
const renderPageExtra = () => {
- if (isConnected && showConnectLabel)
- return <ConnectedStatus label={t('tools.composio.connected')} />;
if (isConnected)
return (
<RowMoreMenu
@@ -407,21 +404,27 @@ const ComposioSkillItem = memo<ComposioSkillItemProps>(
onOpenDetail={onSelect}
/>
);
+ const needsAuth = isPending || isError;
return (
<RowAddAction
disabled={!canCreate || !canEdit || !canManage}
- disabledReason={!canCreate ? createReason : editReason}
- label={t('connectorMarket.action.connect')}
+ icon={needsAuth ? RotateCcw : undefined}
+ label={t(needsAuth ? 'tools.composio.reauthorize' : 'connectorMarket.action.connect')}
loading={isConnecting || isWaitingAuth}
- showLabel={showConnectLabel}
- onClick={handleConnect}
+ disabledReason={
+ isRestricted
+ ? t('tools.connectorFeedback.manageOnly')
+ : !canCreate
+ ? createReason
+ : editReason
+ }
+ onClick={needsAuth ? handleReauthorize : handleConnect}
/>
);
};
const renderNavExtra = () => {
- if (isPage && (isConnected || (!isRestricted && !isPending && !isError)))
- return renderPageExtra();
+ if (isPage) return renderPageExtra();
if (isConnecting || isWaitingAuth) {
return <Button disabled loading size="small" type="text" />;
}
@@ -437,9 +440,9 @@ const ComposioSkillItem = memo<ComposioSkillItemProps>(
<Tooltip title={!canCreate ? createReason : editReason}>
<Button
disabled={!canCreate || !canEdit || !canManage}
- icon={isPage ? undefined : <Icon icon={SquareArrowOutUpRight} />}
+ icon={<Icon icon={SquareArrowOutUpRight} />}
size="small"
- type={isPage ? 'default' : 'text'}
+ type={'text'}
onClick={handleReauthorize}
>
{t('tools.composio.reauthorize', { defaultValue: 'Re-authorize' })}
@@ -451,9 +454,9 @@ const ComposioSkillItem = memo<ComposioSkillItemProps>(
<Tooltip title={!canCreate ? createReason : editReason}>
<Button
disabled={!canCreate || !canEdit || !canManage}
- icon={isPage ? undefined : <Icon icon={SquareArrowOutUpRight} />}
+ icon={<Icon icon={SquareArrowOutUpRight} />}
size="small"
- type={isPage ? 'default' : 'text'}
+ type={'text'}
onClick={handleConnect}
>
{t('tools.composio.connect', { defaultValue: 'Connect' })}
diff --git a/src/features/Settings/skill/features/LobehubSkillItem.tsx b/src/features/Settings/skill/features/LobehubSkillItem.tsx
index b13e3d8ab8b..0a0d93b4cd4 100644
--- a/src/features/Settings/skill/features/LobehubSkillItem.tsx
+++ b/src/features/Settings/skill/features/LobehubSkillItem.tsx
@@ -13,7 +13,7 @@ import {
Tooltip,
} from '@lobehub/ui';
import * as stylex from '@stylexjs/stylex';
-import { MoreHorizontalIcon, SquareArrowOutUpRight, Unplug } from 'lucide-react';
+import { MoreHorizontalIcon, RotateCcw, SquareArrowOutUpRight, Unplug } from 'lucide-react';
import { memo, useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -41,11 +41,10 @@ interface LobehubSkillItemProps {
onSelect?: () => void;
provider: LobehubSkillProviderType;
server?: LobehubSkillServer;
- showConnectLabel?: boolean;
}
const LobehubSkillItem = memo<LobehubSkillItemProps>(
- ({ hideConnectedStatus, provider, server, isSelected, onSelect, onDelete, showConnectLabel }) => {
+ ({ hideConnectedStatus, provider, server, isSelected, onSelect, onDelete }) => {
const { t } = useTranslation('setting');
const isPage = useSkillListVariant() === 'page';
const { allowed: canCreate, reason: createReason } = usePermission('create_content');
@@ -322,11 +321,8 @@ const LobehubSkillItem = memo<LobehubSkillItemProps>(
// ChatInput skills dropdown UX: connected → green check; otherwise a Connect
// button that opens the OAuth flow inline, so users can tell what is connected
// and aren't left staring at a blank detail panel wondering if it's a bug.
- // Page row: a quiet `+` connects in place; once connected the row's state
- // reads from its position (Installed) and the action becomes the manage menu.
const renderPageExtra = () => {
- if (isConnected && showConnectLabel)
- return <ConnectedStatus label={t('tools.lobehubSkill.connected')} />;
+ const needsAuth = server?.status === LobehubSkillStatus.ERROR;
if (isConnected)
return (
<RowMoreMenu
@@ -347,9 +343,9 @@ const LobehubSkillItem = memo<LobehubSkillItemProps>(
<RowAddAction
disabled={!canCreate || !canEdit}
disabledReason={!canCreate ? createReason : editReason}
- label={t('connectorMarket.action.connect')}
+ icon={needsAuth ? RotateCcw : undefined}
+ label={t(needsAuth ? 'tools.composio.reauthorize' : 'connectorMarket.action.connect')}
loading={isConnecting || isWaitingAuth}
- showLabel={showConnectLabel}
onClick={handleConnect}
/>
);
@@ -372,9 +368,9 @@ const LobehubSkillItem = memo<LobehubSkillItemProps>(
<Tooltip title={!canCreate ? createReason : editReason}>
<Button
disabled={!canCreate || !canEdit}
- icon={isPage ? undefined : <Icon icon={SquareArrowOutUpRight} />}
+ icon={<Icon icon={SquareArrowOutUpRight} />}
size="small"
- type={isPage ? 'default' : 'text'}
+ type={'text'}
onClick={handleConnect}
>
{t('tools.lobehubSkill.connect')}
diff --git a/src/features/Settings/skill/features/RowActions.tsx b/src/features/Settings/skill/features/RowActions.tsx
index 0ee7c3cb306..a882b602183 100644
--- a/src/features/Settings/skill/features/RowActions.tsx
+++ b/src/features/Settings/skill/features/RowActions.tsx
@@ -1,6 +1,12 @@
'use client';
-import { ActionIcon, Button, type DropdownItem, DropdownMenu, Icon } from '@lobehub/ui';
+import {
+ ActionIcon,
+ type ActionIconProps,
+ type DropdownItem,
+ DropdownMenu,
+ Icon,
+} from '@lobehub/ui';
import { MoreHorizontalIcon, PanelRightOpen, Plus } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
@@ -9,11 +15,11 @@ interface RowAddActionProps {
disabled?: boolean;
/** Why it is disabled; replaces the action name in the tooltip. */
disabledReason?: string;
+ icon?: ActionIconProps['icon'];
/** Accessible name and tooltip, e.g. "Connect" or "Install". */
label: string;
loading?: boolean;
onClick: () => void;
- showLabel?: boolean;
}
/**
@@ -21,31 +27,17 @@ interface RowAddActionProps {
* that connects or installs in place. Once added it becomes {@link RowMoreMenu}.
*/
export const RowAddAction = memo<RowAddActionProps>(
- ({ disabled, disabledReason, label, loading, onClick, showLabel }) => {
+ ({ disabled, disabledReason, icon = Plus, label, loading, onClick }) => {
const handleClick = (event: React.MouseEvent) => {
event.stopPropagation();
onClick();
};
- if (showLabel)
- return (
- <Button
- disabled={disabled || loading}
- icon={Plus}
- loading={loading}
- size={'small'}
- title={disabled ? disabledReason : undefined}
- onClick={handleClick}
- >
- {label}
- </Button>
- );
-
return (
<ActionIcon
aria-label={label}
disabled={disabled || loading}
- icon={Plus}
+ icon={icon}
loading={loading}
title={disabled && disabledReason ? disabledReason : label}
onClick={handleClick}
diff --git a/src/features/Settings/skill/features/SkillListRow.tsx b/src/features/Settings/skill/features/SkillListRow.tsx
index a8d4487280b..fdc4758f032 100644
--- a/src/features/Settings/skill/features/SkillListRow.tsx
+++ b/src/features/Settings/skill/features/SkillListRow.tsx
@@ -164,36 +164,14 @@ const SkillListRow = memo<SkillListRowProps>(
SkillListRow.displayName = 'SkillListRow';
-/**
- * The nav row only has room for a check with a tooltip; the page row spells
- * the state out so a scan down the list reads without hovering.
- */
-export const ConnectedStatus = memo<{ label: string }>(({ label }) => {
- const variant = useSkillListVariant();
- const check = (
- <Icon
- icon={CircleCheck}
- size={variant === 'page' ? 14 : 16}
- style={{ color: cssVar.colorSuccess }}
- />
- );
-
- if (variant === 'page')
- return (
- <Flexbox horizontal align={'center'} gap={4}>
- {check}
- <Text fontSize={12} type={'secondary'}>
- {label}
- </Text>
- </Flexbox>
- );
-
- return (
- <Tooltip title={label}>
- <Center width={20}>{check}</Center>
- </Tooltip>
- );
-});
+/** Connection indicator for the compact sidebar row. */
+export const ConnectedStatus = memo<{ label: string }>(({ label }) => (
+ <Tooltip title={label}>
+ <Center width={20}>
+ <Icon icon={CircleCheck} size={16} style={{ color: cssVar.colorSuccess }} />
+ </Center>
+ </Tooltip>
+));
ConnectedStatus.displayName = 'ConnectedStatus';
diff --git a/src/routes/(main)/community/_layout/Sidebar/Header/Nav.tsx b/src/routes/(main)/community/_layout/Sidebar/Header/Nav.tsx
index 91c17a8c5c8..fce052e4625 100644
--- a/src/routes/(main)/community/_layout/Sidebar/Header/Nav.tsx
+++ b/src/routes/(main)/community/_layout/Sidebar/Header/Nav.tsx
@@ -16,6 +16,10 @@ import {
} from '@/features/Marketplace/paths';
import NavItem from '@/features/NavPanel/components/NavItem';
import { type NavItemProps } from '@/features/NavPanel/components/NavItem';
+import {
+ MOBILE_SELECTION_PARAM,
+ parseMobileSelection,
+} from '@/features/Settings/skill/mobileSelection';
import { useWorkspaceAwareNavigate } from '@/features/Workspace/useWorkspaceAwareNavigate';
import WorkspaceLink from '@/features/Workspace/WorkspaceLink';
import { useActiveLocation } from '@/hooks/useActiveLocation';
@@ -39,8 +43,13 @@ interface Item {
// Workspace-aware: `/:slug/marketplace/skill` resolves to `skill` as well.
// MCP detail pages (`mcp/:slug`) belong to Connectors, which absorbed the MCP list.
const useActiveTabKey = () => {
- const { pathname } = useActiveLocation();
+ const { pathname, search } = useActiveLocation();
const subPath = getMarketplaceSubPath(pathname) ?? '';
+ if (
+ subPath === getMarketplaceSubPath(MARKETPLACE_INSTALLED_CONNECTORS_PATH) &&
+ parseMobileSelection(new URLSearchParams(search).get(MOBILE_SELECTION_PARAM))
+ )
+ return '';
return subPath.startsWith(DiscoverTab.Mcp) ? CONNECTOR_TAB : subPath;
};
@@ -54,11 +63,12 @@ const Nav = memo(() => {
() =>
[
{
- icon: Bot,
- key: DiscoverTab.Assistants,
- marketOnly: true,
- title: t('tab.assistant'),
- url: MARKETPLACE_AGENT_PATH,
+ icon: Blocks,
+ key: CONNECTOR_TAB,
+ title: t('tab.connector'),
+ // Connectors merges the MCP catalog (Discover) with the installed
+ // connectors; without the market only the installed view exists.
+ url: showMarket ? MARKETPLACE_CONNECTOR_PATH : MARKETPLACE_INSTALLED_CONNECTORS_PATH,
},
{
icon: SkillsIcon,
@@ -68,12 +78,11 @@ const Nav = memo(() => {
url: showMarket ? MARKETPLACE_SKILL_PATH : MARKETPLACE_INSTALLED_SKILLS_PATH,
},
{
- icon: Blocks,
- key: CONNECTOR_TAB,
- title: t('tab.connector'),
- // Connectors merges the MCP catalog (Discover) with the installed
- // connectors; without the market only the installed view exists.
- url: showMarket ? MARKETPLACE_CONNECTOR_PATH : MARKETPLACE_INSTALLED_CONNECTORS_PATH,
+ icon: Bot,
+ key: DiscoverTab.Assistants,
+ marketOnly: true,
+ title: t('tab.assistant'),
+ url: MARKETPLACE_AGENT_PATH,
},
].filter((item: Item) => showMarket || !item.marketOnly) as Item[],
[showMarket, t],
diff --git a/src/routes/(main)/community/features/useNav.tsx b/src/routes/(main)/community/features/useNav.tsx
index 8624fa2a40d..d791e61e892 100644
--- a/src/routes/(main)/community/features/useNav.tsx
+++ b/src/routes/(main)/community/features/useNav.tsx
@@ -29,9 +29,9 @@ export const useNav = () => {
const items: MenuProps['items'] = useMemo(
() => [
{
- icon: <Icon icon={Bot} size={ICON_SIZE} />,
- key: DiscoverTab.Assistants,
- label: <div style={{ color: 'inherit', display: 'inline' }}>{t('tab.assistant')}</div>,
+ icon: <Icon icon={Blocks} size={ICON_SIZE} />,
+ key: MARKETPLACE_CONNECTOR_TAB,
+ label: <div style={{ color: 'inherit', display: 'inline' }}>{t('tab.connector')}</div>,
},
{
icon: <Icon icon={SkillsIcon} size={ICON_SIZE} />,
@@ -39,9 +39,9 @@ export const useNav = () => {
label: <div style={{ color: 'inherit', display: 'inline' }}>{t('tab.skill')}</div>,
},
{
- icon: <Icon icon={Blocks} size={ICON_SIZE} />,
- key: MARKETPLACE_CONNECTOR_TAB,
- label: <div style={{ color: 'inherit', display: 'inline' }}>{t('tab.connector')}</div>,
+ icon: <Icon icon={Bot} size={ICON_SIZE} />,
+ key: DiscoverTab.Assistants,
+ label: <div style={{ color: 'inherit', display: 'inline' }}>{t('tab.assistant')}</div>,
},
],
[t],
diff --git a/src/spa/router/legacyPathRedirect.test.ts b/src/spa/router/legacyPathRedirect.test.ts
index aaf48d5e15c..91b3d3caacd 100644
--- a/src/spa/router/legacyPathRedirect.test.ts
+++ b/src/spa/router/legacyPathRedirect.test.ts
@@ -41,6 +41,7 @@ const renderAt = (url: string, serverConfigInit = true) => {
// The real tree has static `marketplace/<section>` routes that outrank the workspace ones.
{ children: [marketplaceIndexRoute], path: 'marketplace' },
{ element: currentUrl, path: 'marketplace/*' },
+ { element: currentUrl, path: 'marketplace/connector' },
{ element: currentUrl, path: 'marketplace/agent' },
{ element: currentUrl, path: 'marketplace/agent/:slug' },
{
@@ -101,8 +102,8 @@ describe('buildLegacyRedirectPath', () => {
describe('legacy URL redirects', () => {
it.each([
- [true, '/acme/marketplace/agent?q=developer#results'],
- [false, '/acme/marketplace/skill/installed?q=developer#results'],
+ [true, '/acme/marketplace/connector?q=developer#results'],
+ [false, '/acme/marketplace/connector/installed?q=developer#results'],
] as const)(
'opens the original bookmark directly after loading showMarket=%s',
async (showMarket, destination) => {
@@ -136,12 +137,12 @@ describe('legacy URL redirects', () => {
'/acme/marketplace/connector/installed?open=mcp-connector%3Amwe',
],
// `/community` became `/marketplace`.
- ['/marketplace', '/marketplace/agent'],
- ['/community', '/marketplace/agent'],
+ ['/marketplace', '/marketplace/connector'],
+ ['/community', '/marketplace/connector'],
['/community/skill?category=dev&page=2', '/marketplace/skill?category=dev&page=2'],
['/community/mcp/notion', '/marketplace/mcp/notion'],
- ['/acme/community', '/acme/marketplace/agent'],
- ['/acme/marketplace?q=developer#results', '/acme/marketplace/agent?q=developer#results'],
+ ['/acme/community', '/acme/marketplace/connector'],
+ ['/acme/marketplace?q=developer#results', '/acme/marketplace/connector?q=developer#results'],
['/acme/community/agent/some-agent#top', '/acme/marketplace/agent/some-agent#top'],
['/community/agent', '/marketplace/agent'],
['/community/agent/some-agent', '/marketplace/agent/some-agent'],