Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

feat: enhance IM channel panel and localization support

wizardchen0b8a71fb6dad
diff --git a/frontend/src/components/IMChannelPanel.vue b/frontend/src/components/IMChannelPanel.vue
index d0040af7b..b14049620 100644
--- a/frontend/src/components/IMChannelPanel.vue
+++ b/frontend/src/components/IMChannelPanel.vue
@@ -497,6 +497,12 @@ onMounted(() => {
// --- Add button ---
.add-btn {
margin-top: 4px;
+
+ :deep(.t-button__text) {
+ display: inline-flex;
+ align-items: center;
+ gap: 4px;
+ }
}
// --- Dialog form (matches share form pattern) ---
diff --git a/frontend/src/i18n/locales/en-US.ts b/frontend/src/i18n/locales/en-US.ts
index 000f6aa43..2ddd23604 100755
--- a/frontend/src/i18n/locales/en-US.ts
+++ b/frontend/src/i18n/locales/en-US.ts
@@ -3270,6 +3270,7 @@ export default {
callbackUrl: 'Callback URL',
empty: 'No IM channels yet. Click the button below to add one.',
unnamed: 'Unnamed Channel',
+ docLink: 'Integration Guide',
},
mcp: {
label: 'MCP Services',
diff --git a/frontend/src/i18n/locales/ko-KR.ts b/frontend/src/i18n/locales/ko-KR.ts
index 8dab1808a..c19d2117d 100755
--- a/frontend/src/i18n/locales/ko-KR.ts
+++ b/frontend/src/i18n/locales/ko-KR.ts
@@ -3300,6 +3300,7 @@ export default {
callbackUrl: "콜백 URL",
empty: "IM 채널이 없습니다. 아래 버튼을 클릭하여 추가하세요.",
unnamed: "이름 없는 채널",
+ docLink: "통합 가이드 보기",
},
tools: {
thinking: '사고',
diff --git a/frontend/src/i18n/locales/ru-RU.ts b/frontend/src/i18n/locales/ru-RU.ts
index 38862b045..fb7c6042e 100755
--- a/frontend/src/i18n/locales/ru-RU.ts
+++ b/frontend/src/i18n/locales/ru-RU.ts
@@ -2852,7 +2852,8 @@ export default {
outputFull: 'Полное выходное значение',
callbackUrl: 'URL обратного вызова',
empty: 'Нет IM каналов. Нажмите кнопку ниже, чтобы добавить один.',
- unnamed: 'Неименованный канал'
+ unnamed: 'Неименованный канал',
+ docLink: 'Руководство по интеграции',
},
mcp: {
label: 'MCP-сервисы',
diff --git a/frontend/src/i18n/locales/zh-CN.ts b/frontend/src/i18n/locales/zh-CN.ts
index 1a7951078..9e6bdd984 100755
--- a/frontend/src/i18n/locales/zh-CN.ts
+++ b/frontend/src/i18n/locales/zh-CN.ts
@@ -3245,6 +3245,7 @@ export default {
callbackUrl: "回调地址",
empty: "暂无 IM 渠道,点击下方按钮添加",
unnamed: "未命名渠道",
+ docLink: "查看接入文档",
},
tools: {
thinking: "思考",
diff --git a/frontend/src/views/agent/AgentEditorModal.vue b/frontend/src/views/agent/AgentEditorModal.vue
index 5bfb7bb0f..ec6283d80 100644
--- a/frontend/src/views/agent/AgentEditorModal.vue
+++ b/frontend/src/views/agent/AgentEditorModal.vue
@@ -1120,7 +1120,12 @@
<div v-if="props.mode === 'edit' && props.agent?.id" v-show="currentSection === 'im'" class="section">
<div class="section-header">
<h2>{{ $t('agentEditor.im.title') }}</h2>
- <p class="section-description">{{ $t('agentEditor.im.description') }}</p>
+ <p class="section-description">
+ {{ $t('agentEditor.im.description') }}
+ <a href="https://github.com/Tencent/WeKnora/blob/main/docs/IM%E9%9B%86%E6%88%90%E5%BC%80%E5%8F%91%E6%96%87%E6%A1%A3.md" target="_blank" rel="noopener noreferrer" class="section-doc-link">
+ <t-icon name="link" class="link-icon" />{{ $t('agentEditor.im.docLink') }}
+ </a>
+ </p>
</div>
<div class="settings-group">
<IMChannelPanel :agent-id="props.agent.id" />
@@ -2943,6 +2948,26 @@ const handleSave = async () => {
color: var(--td-text-color-secondary);
margin: 0;
line-height: 1.5;
+
+ .section-doc-link {
+ margin-left: 8px;
+ color: var(--td-brand-color);
+ text-decoration: none;
+ font-weight: 500;
+ display: inline-flex;
+ align-items: center;
+ gap: 3px;
+ transition: color 0.2s ease;
+
+ .link-icon {
+ font-size: 14px;
+ }
+
+ &:hover {
+ color: var(--td-brand-color-hover);
+ text-decoration: underline;
+ }
+ }
}
}