feat: Improve knowledge base loading and dropdown UI in manual knowledge editor

- Enhanced the knowledge base loading function with detailed logging for better debugging and visibility of the data flow.
- Filtered knowledge bases to include only document types, improving the relevance of displayed options.
- Updated the dropdown component to include a custom empty state message when no document-type knowledge bases are available.
- Adjusted z-index styles for dropdowns to ensure proper visibility in various UI contexts.
- Added localization strings for the new empty state message in English, Russian, and Chinese.
This commit is contained in:
wizardchen
2025-11-20 14:24:48 +08:00
parent aabc9faf74
commit 34d842cea8
5 changed files with 54 additions and 6 deletions
+1
View File
@@ -618,6 +618,7 @@ export default {
titlePlaceholder: 'Enter title',
contentPlaceholder: 'Supports Markdown. Use # headings, lists, code blocks, etc.'
},
noDocumentKnowledgeBases: 'No document-type knowledge bases available. Please create one first',
status: {
draftTag: 'Status: Draft',
publishedTag: 'Status: Published',