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
+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;
}
}
}
}