Skip to content

feat: add connectors settings tab for DingTalk and XiaoShouYi integration - #2049

Open
xielixing wants to merge 1 commit into
GCWing:mainfrom
xielixing:feat/connector-framework-1562
Open

feat: add connectors settings tab for DingTalk and XiaoShouYi integration#2049
xielixing wants to merge 1 commit into
GCWing:mainfrom
xielixing:feat/connector-framework-1562

Conversation

@xielixing

Copy link
Copy Markdown

Summary

Resolves #1562

This PR adds a Connectors settings tab that lets users connect to SaaS platforms like DingTalk (钉钉) and XiaoShouYi/Neocrm (销售易), enabling the AI agent to fetch and analyze data from these services.

Changes

  • settingsConfig.ts: Add \connectors\ to \ConfigTab\ union type and register it in the \smartCapabilities\ category
  • settingsContentRegistry.ts: Register lazy loader for the Connectors config component
  • SettingsScene.tsx: Add \case 'connectors'\ to the content resolver switch
  • settingsTabI18n.ts: Map the connectors tab to its i18n namespace
  • ConnectorsConfig.tsx (new): Full settings panel with configured connector cards, add-connector dialog, provider catalog, and sync/test/delete actions
  • ConnectorsAPI.ts (new): Type definitions for \ConnectorProvider, \ConnectorInstance, \ConnectorConfig, and a \connectorsAPI\ service with list/create/update/delete/test/sync methods
  • i18n: New \settings/connectors\ namespace for en-US, zh-CN, zh-TW; updated \settings.json\ tab labels and descriptions for all three locales

Supported Providers

Provider Capabilities
DingTalk (钉钉) messages, contacts, approvals, calendar
XiaoShouYi (销售易/Neocrm) leads, customers, opportunities, reports

Testing

  • TypeScript/TSX validated via esbuild (exit code 0, no errors)
  • All JSON locale files validated as valid JSON
  • Component follows existing settings tab patterns (lazy load, i18n namespace, ConfigPageLayout)

…tion (GCWing#1562)

- Add connectors tab to settings config and content registry
- Create ConnectorsConfig component with provider list UI
- Create ConnectorsAPI with connector types and API stubs
- Add i18n resources for en-US, zh-CN, zh-TW
- Connectors support DingTalk and XiaoShouYi/Neocrm providers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: 参考市面上成熟产品如workbuddy,增加连接器能力,至少要支持钉钉、销售易

1 participant