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
@@ -93,6 +93,7 @@ export default {
documentCategoryTitle: "문서 분류",
faqCategoryTitle: "질문 분류",
untagged: "미분류",
tagClearAction: "분류 해제",
tagUpdateSuccess: "태그 업데이트 성공",
tagSearchTooltip: "태그 검색",
category: "분류",