diff --git a/frontend/src/components/SourcesPopoverFooter.test.tsx b/frontend/src/components/SourcesPopoverFooter.test.tsx index 5e7db7b5..46cb3eb1 100644 --- a/frontend/src/components/SourcesPopoverFooter.test.tsx +++ b/frontend/src/components/SourcesPopoverFooter.test.tsx @@ -53,11 +53,10 @@ describe('SourcesPopoverFooter', () => { it('renders the sources link as an inline link Button', async () => { await renderFooter(); - const [link, connect] = Array.from(container.querySelectorAll('a')); + const links = container.querySelectorAll('a'); + expect(links).toHaveLength(1); + const [link] = Array.from(links); expect(link.getAttribute('href')).toBe('/settings/knowledge'); - expect(connect.getAttribute('href')).toBe( - '/settings/connectors?capability=sync', - ); expect(link.dataset.slot).toBe('button'); expect(link.className).toContain('text-primary'); expect(link.className).toContain('text-sm'); diff --git a/frontend/src/components/SourcesPopoverFooter.tsx b/frontend/src/components/SourcesPopoverFooter.tsx index 441de6f1..1d0d373e 100644 --- a/frontend/src/components/SourcesPopoverFooter.tsx +++ b/frontend/src/components/SourcesPopoverFooter.tsx @@ -11,8 +11,8 @@ type SourcesPopoverFooterProps = { }; /** - * Shared footer for source pickers: links to the sources page and to the - * connectors that can sync content, and an upload shortcut. + * Shared footer for source pickers: a link to the sources page and an upload + * shortcut. */ export default function SourcesPopoverFooter({ onNavigate, @@ -24,20 +24,12 @@ export default function SourcesPopoverFooter({ // One row when it fits (link left, upload right); on a narrow sheet or a // long locale the button wraps under the link.
-
- - -
+ - -
+ } trigger={ diff --git a/frontend/src/locale/de.json b/frontend/src/locale/de.json index cdb2fe19..09d79c97 100644 --- a/frontend/src/locale/de.json +++ b/frontend/src/locale/de.json @@ -2019,7 +2019,6 @@ "selectedCount": "{{count}} ausgewählt", "groupOwn": "Deine", "groupTeam": "Mit dem Team geteilt", - "connectMore": "Weitere verbinden", "fromConnector": "Aus {{name}}", "fromConnectorTitle": "Aus {{name}}: {{title}}", "knowledge": "Wissen" diff --git a/frontend/src/locale/en.json b/frontend/src/locale/en.json index 20dc1c3f..f1d167d3 100644 --- a/frontend/src/locale/en.json +++ b/frontend/src/locale/en.json @@ -2025,7 +2025,6 @@ "selectedCount": "{{count}} selected", "groupOwn": "Yours", "groupTeam": "Shared with team", - "connectMore": "Connect more", "fromConnector": "From {{name}}", "fromConnectorTitle": "From {{name}}: {{title}}", "knowledge": "Knowledge" diff --git a/frontend/src/locale/es.json b/frontend/src/locale/es.json index 65e4d40d..439c211d 100644 --- a/frontend/src/locale/es.json +++ b/frontend/src/locale/es.json @@ -2019,7 +2019,6 @@ "selectedCount": "{{count}} seleccionados", "groupOwn": "Tuyos", "groupTeam": "Compartidas con el equipo", - "connectMore": "Conectar más", "fromConnector": "De {{name}}", "fromConnectorTitle": "De {{name}}: {{title}}", "knowledge": "Conocimiento" diff --git a/frontend/src/locale/jp.json b/frontend/src/locale/jp.json index 504f2460..5a1538ca 100644 --- a/frontend/src/locale/jp.json +++ b/frontend/src/locale/jp.json @@ -2006,7 +2006,6 @@ "selectedCount": "{{count}} 件選択中", "groupOwn": "あなたのもの", "groupTeam": "チームと共有", - "connectMore": "さらに接続", "fromConnector": "{{name}} から", "fromConnectorTitle": "{{name}} から: {{title}}", "knowledge": "ナレッジ" diff --git a/frontend/src/locale/ru.json b/frontend/src/locale/ru.json index 9eddd91e..1a5a6dfe 100644 --- a/frontend/src/locale/ru.json +++ b/frontend/src/locale/ru.json @@ -2111,7 +2111,6 @@ "selectedCount": "Выбрано: {{count}}", "groupOwn": "Ваши", "groupTeam": "Общие с командой", - "connectMore": "Подключить ещё", "fromConnector": "Из {{name}}", "fromConnectorTitle": "Из {{name}}: {{title}}", "knowledge": "Знания" diff --git a/frontend/src/locale/zh-TW.json b/frontend/src/locale/zh-TW.json index 82fe518c..6bb31496 100644 --- a/frontend/src/locale/zh-TW.json +++ b/frontend/src/locale/zh-TW.json @@ -2006,7 +2006,6 @@ "selectedCount": "已選 {{count}} 個", "groupOwn": "你的", "groupTeam": "團隊共享", - "connectMore": "連線更多", "fromConnector": "來自 {{name}}", "fromConnectorTitle": "來自 {{name}}:{{title}}", "knowledge": "知識庫" diff --git a/frontend/src/locale/zh.json b/frontend/src/locale/zh.json index 860fba48..eddef74e 100644 --- a/frontend/src/locale/zh.json +++ b/frontend/src/locale/zh.json @@ -2004,7 +2004,6 @@ "selectedCount": "已选 {{count}} 个", "groupOwn": "你的", "groupTeam": "团队共享", - "connectMore": "连接更多", "fromConnector": "来自 {{name}}", "fromConnectorTitle": "来自 {{name}}:{{title}}", "knowledge": "知识库" diff --git a/frontend/src/settings/Connectors.tsx b/frontend/src/settings/Connectors.tsx index dc075613..333b5659 100644 --- a/frontend/src/settings/Connectors.tsx +++ b/frontend/src/settings/Connectors.tsx @@ -103,16 +103,15 @@ export default function Connectors() { const partsOf = (key: string) => partsOfCatalog(catalog, key); - // "Connect more" in the composer opens the connectors that can do what the - // picker is for: sync content, or give tools. + // `?capability=` narrows the list to connectors that can sync content, or + // give tools. const capability = searchParams.get('capability'); const clearCapability = () => { searchParams.delete('capability'); setSearchParams(searchParams, { replace: true }); }; // Listed for syncing (Knowledge's Connect a service, Add knowledge's Browse - // all connectors, the sources picker's Connect more): a connect starts with - // Sync into Knowledge on. + // all connectors): a connect starts with Sync into Knowledge on. const withPurpose = (options: LaunchOptions = {}): LaunchOptions => capability === 'sync' ? { ...options, purpose: 'knowledge' } : options;