feat(frontend): redesign knowledge document tag selector

Replace the default t-dropdown on knowledge document cards with a
custom t-popup-based list that matches the existing card-more popup
styling (rounded corners, blur, dark mode). Selected entries show a
brand-colored check icon.

Also fix the empty placeholder issue: when a document has no tag,
render a dashed "+ category" affordance only for users with edit
permission, instead of an empty tag chip. A "clear category" action
appears at the bottom of the popup only when a tag is already set,
avoiding ambiguity with user-defined tags named the same as the
generic "uncategorized" label.

Adds the knowledgeBase.tagClearAction i18n key in zh-CN, en-US,
ko-KR and ru-RU.
This commit is contained in:
wizardchen
2026-05-18 18:30:28 +08:00
committed by lyingbug
parent bbcedbee63
commit 5cee0d0921
6 changed files with 167 additions and 12 deletions
+1
View File
@@ -55,6 +55,7 @@ export default {
documentCategoryTitle: 'Категории документов',
faqCategoryTitle: 'Категории FAQ',
untagged: 'Без метки',
tagClearAction: 'Снять категорию',
tagSearchTooltip: 'Поиск тегов',
tagUpdateSuccess: 'Тег успешно обновлен',
category: 'Категория',