feat: enhance IM channel panel with platform hints and localization updates

- Added hints for WeCom and Feishu platforms in the IM channel panel to guide users in obtaining credentials.
- Included a recommendation for using WebSocket for easier setup.
- Updated localization files for English, Korean, Russian, and Chinese to support new hints and console links.
This commit is contained in:
wizardchen
2026-03-16 21:00:37 +08:00
parent d4e14235a6
commit 37633f89ef
5 changed files with 68 additions and 0 deletions
@@ -104,6 +104,7 @@
<t-radio-button value="websocket">WebSocket</t-radio-button>
<t-radio-button value="webhook">Webhook</t-radio-button>
</t-radio-group>
<p class="form-hint">{{ $t('agentEditor.im.modeHint') }}</p>
</div>
<!-- Output mode -->
@@ -120,6 +121,13 @@
<!-- WeCom credentials -->
<template v-if="formData.platform === 'wecom'">
<div class="platform-link-hint">
<t-icon name="jump" class="hint-link-icon" />
<a href="https://work.weixin.qq.com/" target="_blank" rel="noopener noreferrer" class="hint-link">
{{ $t('agentEditor.im.wecomConsole') }}
</a>
<span class="hint-text">{{ $t('agentEditor.im.consoleTip') }}</span>
</div>
<template v-if="formData.mode === 'websocket'">
<div class="form-item">
<label class="form-label">Bot ID</label>
@@ -156,6 +164,13 @@
<!-- Feishu credentials -->
<template v-if="formData.platform === 'feishu'">
<div class="platform-link-hint">
<t-icon name="jump" class="hint-link-icon" />
<a href="https://open.feishu.cn/" target="_blank" rel="noopener noreferrer" class="hint-link">
{{ $t('agentEditor.im.feishuConsole') }}
</a>
<span class="hint-text">{{ $t('agentEditor.im.consoleTip') }}</span>
</div>
<div class="form-item">
<label class="form-label">App ID</label>
<t-input v-model="formData.credentials.app_id" placeholder="App ID" />
@@ -527,4 +542,41 @@ onMounted(() => {
background: var(--td-component-stroke);
margin: 4px 0;
}
.form-hint {
margin: 6px 0 0;
font-size: 12px;
color: var(--td-text-color-placeholder);
line-height: 1.4;
}
.platform-link-hint {
display: flex;
align-items: center;
gap: 4px;
font-size: 12px;
line-height: 1.4;
color: var(--td-text-color-placeholder);
.hint-link-icon {
font-size: 12px;
color: var(--td-brand-color);
flex-shrink: 0;
}
.hint-link {
color: var(--td-brand-color);
text-decoration: none;
font-weight: 500;
white-space: nowrap;
&:hover {
text-decoration: underline;
}
}
.hint-text {
color: var(--td-text-color-placeholder);
}
}
</style>
+4
View File
@@ -3271,6 +3271,10 @@ export default {
empty: 'No IM channels yet. Click the button below to add one.',
unnamed: 'Unnamed Channel',
docLink: 'Integration Guide',
wecomConsole: 'WeCom Admin',
feishuConsole: 'Feishu Open Platform',
modeHint: 'WebSocket is recommended for easier setup',
consoleTip: 'to get credentials',
},
mcp: {
label: 'MCP Services',
+4
View File
@@ -3301,6 +3301,10 @@ export default {
empty: "IM 채널이 없습니다. 아래 버튼을 클릭하여 추가하세요.",
unnamed: "이름 없는 채널",
docLink: "통합 가이드 보기",
wecomConsole: "WeCom 관리 콘솔",
feishuConsole: "Feishu 개발 플랫폼",
modeHint: "WebSocket 방식이 설정이 더 간편하여 권장됩니다",
consoleTip: "자격 증명 정보를 가져오세요",
},
tools: {
thinking: '사고',
+4
View File
@@ -2854,6 +2854,10 @@ export default {
empty: 'Нет IM каналов. Нажмите кнопку ниже, чтобы добавить один.',
unnamed: 'Неименованный канал',
docLink: 'Руководство по интеграции',
wecomConsole: 'Консоль WeCom',
feishuConsole: 'Платформа Feishu',
modeHint: 'Рекомендуется WebSocket — проще настроить',
consoleTip: 'для получения учётных данных',
},
mcp: {
label: 'MCP-сервисы',
+4
View File
@@ -3246,6 +3246,10 @@ export default {
empty: "暂无 IM 渠道,点击下方按钮添加",
unnamed: "未命名渠道",
docLink: "查看接入文档",
wecomConsole: "企业微信管理后台",
feishuConsole: "飞书开放平台",
modeHint: "推荐使用 WebSocket 方式接入,配置更简单",
consoleTip: "前往获取凭证信息",
},
tools: {
thinking: "思考",