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

+4 -5
View File
@@ -3,18 +3,17 @@ import { chatAppGuideUrl } from "@/components/settings/channels/catalog";
export default {
presentation: {
logoUrl: "https://img.alicdn.com/imgextra/i3/O1CN01WMvMRG1ks3Ixc9x1v_!!6000000004738-55-tps-32-32.svg",
displayName: "DingTalk",
initials: "DT",
color: "#1677FF",
logoUrl:
"https://img.alicdn.com/imgextra/i3/O1CN01WMvMRG1ks3Ixc9x1v_!!6000000004738-55-tps-32-32.svg",
setup: {
mode: "credentials",
docsUrl: chatAppGuideUrl("dingtalk"),
fields: [
{ key: "channels.dingtalk.clientId" },
{ key: "channels.dingtalk.clientSecret" },
{ key: "channels.dingtalk.allowFrom" },
{ key: "channels.dingtalk.clientId", section: "credentials" },
{ key: "channels.dingtalk.clientSecret", section: "credentials" },
{ key: "channels.dingtalk.allowFrom", section: "access" },
],
},
},
+26 -13
View File
@@ -1,30 +1,43 @@
{
"description": "Use nanobot from DingTalk groups.",
"requirements": "DingTalk app credentials and gateway",
"setup": {
"docsLabel": "Open DingTalk setup",
"officialLabel": "Open DingTalk console",
"tryIt": "Send a test message from the DingTalk group where the app is installed.",
"summary": "DingTalk needs app credentials from Stream mode.",
"steps": [
"Create or choose a DingTalk app with Stream mode enabled.",
"Add Client ID and Client Secret.",
"Save and enable DingTalk, then send a test message."
],
"fields": {
"clientId": {
"label": "Client ID",
"placeholder": "DingTalk client ID",
"help": "Copy it from DingTalk app credentials."
"placeholder": "DingTalk client ID"
},
"clientSecret": {
"label": "Client Secret",
"placeholder": "••••••",
"help": "Copy it from the same DingTalk app credentials page."
"placeholder": "••••••"
},
"allowFrom": {
"label": "Allowed users",
"placeholder": "User IDs, comma separated"
},
"allowRemoteMediaRedirects": {
"label": "Allow media redirects",
"choices": {
"true": "On",
"false": "Off"
}
},
"remoteMediaRedirectAllowedHosts": {
"label": "Media redirect hosts"
},
"groupUserIsolation": {
"label": "Separate group sessions",
"choices": {
"true": "On",
"false": "Off"
}
},
"disablePrivateChat": {
"label": "Disable direct messages",
"choices": {
"true": "On",
"false": "Off"
}
}
}
}
+26 -13
View File
@@ -1,30 +1,43 @@
{
"description": "Usa nanobot desde grupos de DingTalk.",
"requirements": "Credenciales de la app de DingTalk y pasarela",
"setup": {
"docsLabel": "Abrir guía de DingTalk",
"officialLabel": "Abrir consola de DingTalk",
"tryIt": "Envía un mensaje de prueba desde el grupo de DingTalk donde está instalada la app.",
"summary": "DingTalk necesita credenciales de una app en modo Stream.",
"steps": [
"Crea o elige una app de DingTalk con el modo Stream activado.",
"Añade el Client ID y el Client Secret.",
"Guarda y activa DingTalk; después envía un mensaje de prueba."
],
"fields": {
"clientId": {
"label": "Client ID",
"placeholder": "Client ID de DingTalk",
"help": "Cópialo de las credenciales de la app de DingTalk."
"placeholder": "Client ID de DingTalk"
},
"clientSecret": {
"label": "Client Secret",
"placeholder": "••••••",
"help": "Cópialo de la misma página de credenciales."
"placeholder": "••••••"
},
"allowFrom": {
"label": "Usuarios permitidos",
"placeholder": "ID de usuario separados por comas"
},
"allowRemoteMediaRedirects": {
"label": "Permitir redirecciones de medios",
"choices": {
"true": "encendido",
"false": "Apagado"
}
},
"remoteMediaRedirectAllowedHosts": {
"label": "Hosts de redireccionamiento de medios"
},
"groupUserIsolation": {
"label": "Sesiones grupales separadas",
"choices": {
"true": "encendido",
"false": "Apagado"
}
},
"disablePrivateChat": {
"label": "Desactivar mensajes directos",
"choices": {
"true": "encendido",
"false": "Apagado"
}
}
}
}
+26 -13
View File
@@ -1,30 +1,43 @@
{
"description": "Utilisez nanobot depuis les groupes DingTalk.",
"requirements": "Identifiants d’application DingTalk et passerelle",
"setup": {
"docsLabel": "Ouvrir le guide DingTalk",
"officialLabel": "Ouvrir la console DingTalk",
"tryIt": "Envoyez un message test dans le groupe DingTalk où l’application est installée.",
"summary": "DingTalk nécessite les identifiants d’une application en mode Stream.",
"steps": [
"Créez ou choisissez une application DingTalk avec le mode Stream activé.",
"Ajoutez le Client ID et le Client Secret.",
"Enregistrez et activez DingTalk, puis envoyez un message test."
],
"fields": {
"clientId": {
"label": "Client ID",
"placeholder": "Client ID DingTalk",
"help": "Copiez-le depuis les identifiants de l’application DingTalk."
"placeholder": "Client ID DingTalk"
},
"clientSecret": {
"label": "Client Secret",
"placeholder": "••••••",
"help": "Copiez-le depuis la même page d’identifiants DingTalk."
"placeholder": "••••••"
},
"allowFrom": {
"label": "Utilisateurs autorisés",
"placeholder": "ID utilisateur séparés par des virgules"
},
"allowRemoteMediaRedirects": {
"label": "Autoriser les redirections multimédias",
"choices": {
"true": "Sur",
"false": "Désactivé"
}
},
"remoteMediaRedirectAllowedHosts": {
"label": "Hôtes de redirection multimédia"
},
"groupUserIsolation": {
"label": "Séances de groupe séparées",
"choices": {
"true": "Sur",
"false": "Désactivé"
}
},
"disablePrivateChat": {
"label": "Désactiver les messages directs",
"choices": {
"true": "Sur",
"false": "Désactivé"
}
}
}
}
+26 -13
View File
@@ -1,30 +1,43 @@
{
"description": "Gunakan nanobot dari grup DingTalk.",
"requirements": "Kredensial aplikasi DingTalk dan gateway",
"setup": {
"docsLabel": "Buka panduan DingTalk",
"officialLabel": "Buka konsol DingTalk",
"tryIt": "Kirim pesan uji dari grup DingTalk tempat aplikasi dipasang.",
"summary": "DingTalk memerlukan kredensial aplikasi dari mode Stream.",
"steps": [
"Buat atau pilih aplikasi DingTalk dengan mode Stream aktif.",
"Tambahkan Client ID dan Client Secret.",
"Simpan dan aktifkan DingTalk, lalu kirim pesan uji."
],
"fields": {
"clientId": {
"label": "Client ID",
"placeholder": "Client ID DingTalk",
"help": "Salin dari kredensial aplikasi DingTalk."
"placeholder": "Client ID DingTalk"
},
"clientSecret": {
"label": "Client Secret",
"placeholder": "••••••",
"help": "Salin dari halaman kredensial yang sama."
"placeholder": "••••••"
},
"allowFrom": {
"label": "Pengguna yang diizinkan",
"placeholder": "ID pengguna, dipisahkan koma"
},
"allowRemoteMediaRedirects": {
"label": "Izinkan pengalihan media",
"choices": {
"true": "Aktif",
"false": "Mati"
}
},
"remoteMediaRedirectAllowedHosts": {
"label": "Host pengalihan media"
},
"groupUserIsolation": {
"label": "Sesi kelompok terpisah",
"choices": {
"true": "Aktif",
"false": "Mati"
}
},
"disablePrivateChat": {
"label": "Nonaktifkan pesan langsung",
"choices": {
"true": "Aktif",
"false": "Mati"
}
}
}
}
+26 -13
View File
@@ -1,30 +1,43 @@
{
"description": "DingTalk グループから nanobot を利用します。",
"requirements": "DingTalk アプリの認証情報とゲートウェイ",
"setup": {
"docsLabel": "DingTalk 設定ガイドを開く",
"officialLabel": "DingTalk コンソールを開く",
"tryIt": "アプリをインストールした DingTalk グループからテストメッセージを送信します。",
"summary": "DingTalk には Stream モードのアプリ認証情報が必要です。",
"steps": [
"Stream モードを有効にした DingTalk アプリを作成または選択します。",
"Client ID と Client Secret を追加します。",
"保存して DingTalk を有効にし、テストメッセージを送信します。"
],
"fields": {
"clientId": {
"label": "Client ID",
"placeholder": "DingTalk Client ID",
"help": "DingTalk アプリの認証情報からコピーします。"
"placeholder": "DingTalk Client ID"
},
"clientSecret": {
"label": "Client Secret",
"placeholder": "••••••",
"help": "同じ認証情報ページからコピーします。"
"placeholder": "••••••"
},
"allowFrom": {
"label": "許可するユーザー",
"placeholder": "ユーザー ID(カンマ区切り)"
},
"allowRemoteMediaRedirects": {
"label": "メディアのリダイレクトを許可する",
"choices": {
"true": "オン",
"false": "オフ"
}
},
"remoteMediaRedirectAllowedHosts": {
"label": "メディアリダイレクトホスト"
},
"groupUserIsolation": {
"label": "個別のグループセッション",
"choices": {
"true": "オン",
"false": "オフ"
}
},
"disablePrivateChat": {
"label": "ダイレクトメッセージを無効にする",
"choices": {
"true": "オン",
"false": "オフ"
}
}
}
}
+26 -13
View File
@@ -1,30 +1,43 @@
{
"description": "DingTalk 그룹에서 nanobot을 사용합니다.",
"requirements": "DingTalk 앱 인증 정보 및 게이트웨이",
"setup": {
"docsLabel": "DingTalk 설정 가이드 열기",
"officialLabel": "DingTalk 콘솔 열기",
"tryIt": "앱이 설치된 DingTalk 그룹에서 테스트 메시지를 보내세요.",
"summary": "DingTalk에는 Stream 모드 앱 인증 정보이 필요합니다.",
"steps": [
"Stream 모드가 활성화된 DingTalk 앱을 만들거나 선택하세요.",
"Client ID와 Client Secret을 추가하세요.",
"저장하고 DingTalk을 활성화한 다음 테스트 메시지를 보내세요."
],
"fields": {
"clientId": {
"label": "Client ID",
"placeholder": "DingTalk Client ID",
"help": "DingTalk 앱 인증 정보에서 복사하세요."
"placeholder": "DingTalk Client ID"
},
"clientSecret": {
"label": "Client Secret",
"placeholder": "••••••",
"help": "같은 인증 정보 페이지에서 복사하세요."
"placeholder": "••••••"
},
"allowFrom": {
"label": "허용된 사용자",
"placeholder": "사용자 ID, 쉼표로 구분"
},
"allowRemoteMediaRedirects": {
"label": "미디어 리디렉션 허용",
"choices": {
"true": "켜기",
"false": "끄기"
}
},
"remoteMediaRedirectAllowedHosts": {
"label": "미디어 리디렉션 호스트"
},
"groupUserIsolation": {
"label": "별도의 그룹 세션",
"choices": {
"true": "켜기",
"false": "끄기"
}
},
"disablePrivateChat": {
"label": "다이렉트 메시지 비활성화",
"choices": {
"true": "켜기",
"false": "끄기"
}
}
}
}
@@ -1,30 +1,43 @@
{
"description": "Use o nanobot em grupos do DingTalk.",
"requirements": "Credenciais do app DingTalk e gateway",
"setup": {
"docsLabel": "Abrir guia do DingTalk",
"officialLabel": "Abrir console do DingTalk",
"tryIt": "Envie uma mensagem de teste no grupo do DingTalk onde o app está instalado.",
"summary": "O DingTalk precisa das credenciais de um app no modo Stream.",
"steps": [
"Crie ou escolha um app do DingTalk com o modo Stream ativado.",
"Adicione o Client ID e o Client Secret.",
"Salve e ative o DingTalk; depois, envie uma mensagem de teste."
],
"fields": {
"clientId": {
"label": "Client ID",
"placeholder": "Client ID do DingTalk",
"help": "Copie das credenciais do app DingTalk."
"placeholder": "Client ID do DingTalk"
},
"clientSecret": {
"label": "Client Secret",
"placeholder": "••••••",
"help": "Copie da mesma página de credenciais."
"placeholder": "••••••"
},
"allowFrom": {
"label": "Usuários permitidos",
"placeholder": "IDs de usuário separados por vírgulas"
},
"allowRemoteMediaRedirects": {
"label": "Permitir redirecionamentos de mídia",
"choices": {
"true": "Ligado",
"false": "Desligado"
}
},
"remoteMediaRedirectAllowedHosts": {
"label": "Hosts de redirecionamento de mídia"
},
"groupUserIsolation": {
"label": "Sessões de grupo separadas",
"choices": {
"true": "Ligado",
"false": "Desligado"
}
},
"disablePrivateChat": {
"label": "Desativar mensagens diretas",
"choices": {
"true": "Ligado",
"false": "Desligado"
}
}
}
}
+26 -13
View File
@@ -1,30 +1,43 @@
{
"description": "Sử dụng nanobot trong các nhóm DingTalk.",
"requirements": "Thông tin xác thực ứng dụng DingTalk và gateway",
"setup": {
"docsLabel": "Mở hướng dẫn DingTalk",
"officialLabel": "Mở bảng điều khiển DingTalk",
"tryIt": "Gửi tin nhắn thử từ nhóm DingTalk đã cài ứng dụng.",
"summary": "DingTalk cần thông tin xác thực ứng dụng ở chế độ Stream.",
"steps": [
"Tạo hoặc chọn ứng dụng DingTalk đã bật chế độ Stream.",
"Thêm Client ID và Client Secret.",
"Lưu và bật DingTalk, sau đó gửi tin nhắn thử."
],
"fields": {
"clientId": {
"label": "Client ID",
"placeholder": "Client ID DingTalk",
"help": "Sao chép từ thông tin xác thực ứng dụng DingTalk."
"placeholder": "Client ID DingTalk"
},
"clientSecret": {
"label": "Client Secret",
"placeholder": "••••••",
"help": "Sao chép từ cùng trang thông tin xác thực."
"placeholder": "••••••"
},
"allowFrom": {
"label": "Người dùng được phép",
"placeholder": "ID người dùng, phân tách bằng dấu phẩy"
},
"allowRemoteMediaRedirects": {
"label": "Cho phép chuyển hướng phương tiện",
"choices": {
"true": "Bật",
"false": "Tắt"
}
},
"remoteMediaRedirectAllowedHosts": {
"label": "Máy chủ chuyển hướng phương tiện"
},
"groupUserIsolation": {
"label": "Các buổi nhóm riêng biệt",
"choices": {
"true": "Bật",
"false": "Tắt"
}
},
"disablePrivateChat": {
"label": "Tắt tin nhắn trực tiếp",
"choices": {
"true": "Bật",
"false": "Tắt"
}
}
}
}
@@ -1,31 +1,44 @@
{
"displayName": "钉钉",
"description": "在钉钉群中使用 nanobot。",
"requirements": "钉钉应用凭据和网关",
"setup": {
"docsLabel": "打开钉钉配置指南",
"officialLabel": "打开钉钉开发者后台",
"tryIt": "在已安装应用的钉钉群中发送一条测试消息。",
"summary": "钉钉需要 Stream 模式的应用凭据。",
"steps": [
"创建或选择一个已启用 Stream 模式的钉钉应用。",
"填写 Client ID 和 Client Secret。",
"保存并启用钉钉,然后发送一条测试消息。"
],
"fields": {
"clientId": {
"label": "Client ID",
"placeholder": "钉钉 Client ID",
"help": "从钉钉应用凭据页面复制。"
"placeholder": "钉钉 Client ID"
},
"clientSecret": {
"label": "Client Secret",
"placeholder": "••••••",
"help": "从同一个钉钉应用凭据页面复制。"
"placeholder": "••••••"
},
"allowFrom": {
"label": "允许的用户",
"placeholder": "用户 ID,用逗号分隔"
},
"allowRemoteMediaRedirects": {
"label": "允许媒体重定向",
"choices": {
"true": "开启",
"false": "关闭"
}
},
"remoteMediaRedirectAllowedHosts": {
"label": "允许重定向的媒体主机"
},
"groupUserIsolation": {
"label": "按群成员隔离会话",
"choices": {
"true": "开启",
"false": "关闭"
}
},
"disablePrivateChat": {
"label": "禁用私聊",
"choices": {
"true": "开启",
"false": "关闭"
}
}
}
}
@@ -1,31 +1,44 @@
{
"displayName": "釘釘",
"description": "在釘釘群組中使用 nanobot。",
"requirements": "釘釘應用程式憑證和閘道",
"setup": {
"docsLabel": "開啟釘釘設定指南",
"officialLabel": "開啟釘釘開發者後台",
"tryIt": "在已安裝應用程式的釘釘群組中傳送一則測試訊息。",
"summary": "釘釘需要 Stream 模式的應用程式憑證。",
"steps": [
"建立或選擇一個已啟用 Stream 模式的釘釘應用程式。",
"填入 Client ID 和 Client Secret。",
"儲存並啟用釘釘,然後傳送一則測試訊息。"
],
"fields": {
"clientId": {
"label": "Client ID",
"placeholder": "釘釘 Client ID",
"help": "從釘釘應用程式憑證頁面複製。"
"placeholder": "釘釘 Client ID"
},
"clientSecret": {
"label": "Client Secret",
"placeholder": "••••••",
"help": "從同一個釘釘應用程式憑證頁面複製。"
"placeholder": "••••••"
},
"allowFrom": {
"label": "允許的使用者",
"placeholder": "使用者 ID,以逗號分隔"
},
"allowRemoteMediaRedirects": {
"label": "允許媒體重定向",
"choices": {
"true": "開啟",
"false": "關閉"
}
},
"remoteMediaRedirectAllowedHosts": {
"label": "允許重定向的媒體主機"
},
"groupUserIsolation": {
"label": "按群組成員隔離會話",
"choices": {
"true": "開啟",
"false": "關閉"
}
},
"disablePrivateChat": {
"label": "停用私聊",
"choices": {
"true": "開啟",
"false": "關閉"
}
}
}
}