feat: enhance IM channel panel and localization support

- Added a new integration guide link in the IM channel panel description for better user guidance.
- Updated localization files for English, Korean, Russian, and Chinese to include the new 'docLink' key for the integration guide.
- Improved styling for the add button in the IM channel panel to enhance visual alignment and user experience.
This commit is contained in:
wizardchen
2026-03-16 20:22:38 +08:00
parent f7ec47306c
commit 0b8a71fb6d
6 changed files with 37 additions and 2 deletions
@@ -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) ---
+1
View File
@@ -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',
+1
View File
@@ -3300,6 +3300,7 @@ export default {
callbackUrl: "콜백 URL",
empty: "IM 채널이 없습니다. 아래 버튼을 클릭하여 추가하세요.",
unnamed: "이름 없는 채널",
docLink: "통합 가이드 보기",
},
tools: {
thinking: '사고',
+2 -1
View File
@@ -2852,7 +2852,8 @@ export default {
outputFull: 'Полное выходное значение',
callbackUrl: 'URL обратного вызова',
empty: 'Нет IM каналов. Нажмите кнопку ниже, чтобы добавить один.',
unnamed: 'Неименованный канал'
unnamed: 'Неименованный канал',
docLink: 'Руководство по интеграции',
},
mcp: {
label: 'MCP-сервисы',
+1
View File
@@ -3245,6 +3245,7 @@ export default {
callbackUrl: "回调地址",
empty: "暂无 IM 渠道,点击下方按钮添加",
unnamed: "未命名渠道",
docLink: "查看接入文档",
},
tools: {
thinking: "思考",
+26 -1
View File
@@ -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;
}
}
}
}