feat(webui): improve setup flows across chat channels (NAN-112) (#5356)

* feat(webui): improve channel setup flows

* fix(webui): refine channel setup interactions (NAN-112)

* fix(webui): keep email setup sections channel-owned

* fix(webui): remove concrete channel details from shared components

* refactor(webui): remove unused channel setup resources

* fix(webui): finish channel-owned setup boundaries

* fix(webui): update channel switches optimistically

* test(channels): remove obsolete absence assertions

* fix(webui): flatten channel instance settings disclosure

* fix(webui): complete channel setup and connection flows

* fix(whatsapp): wait for session database release

* fix(webui): preserve scrolling channel controls

* fix(webui): stage channel connection checks

* fix(channels): align verification actions

* fix(email): expose connection checks

* fix(webui): align channel field actions

* fix(email): verify account credentials

* fix(wecom): bypass system proxy for websocket

* fix(channels): stabilize async connection cleanup

* fix(webui): autosave channel credentials

* fix(email): make provider presets non-destructive

* test(weixin): isolate persisted QR credentials
This commit is contained in:
chengyongru authored and GitHub committed 2026-09-11 15:22:14 +08:00
1 parent 3cc3012b3a
commit e8a29a0087
291 files changed
+12194 -3979

No files matched your search

+42 -24
View File
@@ -42,8 +42,8 @@
"description": "nanobot Web UI —— 与你的 nanobot 工作区对话。"
},
"pairing": {
"title": "配对聊天用户",
"description": "输入聊天中显示的配对码。",
"title": "配对你的聊天账号",
"description": "输入你在聊天平台中收到的配对码。",
"code": "配对码",
"matched": "已匹配 {{channel}},正在连接…",
"expiresInline": "配对码将于 {{expires}} 过期。",
@@ -983,7 +983,6 @@
"requires": "需要:{{requirements}}",
"setUp": "设置",
"setupGuide": "配置指南",
"setupSummary": "启用后,请填写此平台的连接信息,然后重启 nanobot。",
"configKeys": "配置字段",
"enable": "启用",
"disable": "停用",
@@ -997,7 +996,8 @@
"open": "打开",
"checkedAndEnabled": "已检查并启用。",
"checking": "正在检查...",
"checkOnly": "仅检查",
"help": "帮助",
"checkOnly": "检测",
"commandCopied": "命令已复制。",
"commandCopyFailed": "无法复制命令。",
"configuredInstances_one": "已配置 {{count}} 个实例",
@@ -1017,7 +1017,6 @@
"runtimeStarting": "正在启动",
"runtimeStopped": "未运行",
"managedByWebui": "由 WebUI 管理",
"officialGuide": "官方指南",
"optional": "可选",
"providerPreset": "提供商",
"requiredSetup": "必需配置",
@@ -1026,19 +1025,49 @@
"savedSettings": "设置已保存。",
"saveSettings": "保存设置",
"selectChannel": "查看 {{name}} 设置",
"setupSteps": "后续步骤",
"showSecret": "显示密钥",
"toggleChannel": "启用 {{name}}",
"toggleInstance": "启用 {{name}}",
"tryIt": "试一试",
"validationFailed": "启用前请检查必需配置。",
"completeSetupToEnable": "请先完成下方必需配置,然后即可启用此渠道。",
"chooseCredentialMethod": "选择一种凭据方式",
"or": "或",
"fieldRequired": "完成配置需要此字段。",
"secretWillBeRemoved": "将被删除",
"keepSavedSecret": "保留已保存的凭据",
"removeSavedSecret": "删除已保存的凭据",
"sections": {
"account": "账户",
"credentials": "凭据",
"connection": "连接",
"access": "访问权限",
"behavior": "行为",
"security": "安全"
},
"validation": {
"connected": "已连接",
"configured": "手动配置",
"configured": "未验证",
"needs_setup": "需要配置",
"invalid": "配置无效",
"invalid": "连接失败",
"unsupported": "手动配置"
}
},
"validationMessages": {
"connected": "连接正常",
"unverified": "尚未验证连接是否可用",
"missing": "请填写必填项",
"invalid": "检测失败",
"unsupported": "此渠道暂不支持连接检测",
"present": "已填写",
"required": "必填",
"manual": "此渠道暂不支持连接检测"
},
"search": "搜索聊天平台",
"filterEnabled": "已启用",
"noResults": "没有匹配的渠道",
"install": "安装",
"installChannel": "安装 {{name}}",
"noInstallNeeded": "无需安装",
"installNeeded": "需要额外依赖"
},
"nanobotFeatures": {
"enabled": "已启用",
@@ -1049,7 +1078,9 @@
"installSupport": "安装支持包",
"installConfirmTitle": "安装 {{name}} 所需的软件包?",
"installConfirmDescription": "安装所需软件包后,将启用 {{name}}。",
"installOnlyConfirmDescription": "将安装 {{name}} 所需的支持包。安装完成后即可连接。",
"installConfirmAction": "安装并启用",
"installOnlyConfirmAction": "安装支持包",
"websocketRequired": "WebUI 必需",
"channelDisabled": "此平台已停用",
"notEnabled": "未启用"
@@ -1114,20 +1145,7 @@
},
"channels": {
"api": "API",
"cli": "CLI",
"dingtalk": "钉钉",
"discord": "Discord",
"email": "邮件",
"feishu": "飞书",
"matrix": "Matrix",
"msteams": "Microsoft Teams",
"qq": "QQ",
"slack": "Slack",
"telegram": "Telegram",
"wechat": "微信",
"wecom": "企业微信",
"weixin": "微信",
"whatsapp": "WhatsApp"
"cli": "CLI"
},
"schedule": {
"at": "在 {{time}}",