feat(frontend): add session source filter to sidebar (#1560)
IM-channel sessions were mixed in with the user's own chats. The sidebar now defaults to web sessions; tenants with a configured IM channel get a source switcher in the "对话" header to reach a specific platform. - getSessionsList: optional `source` query param - getMessageList: token-guarded loads (racing source switches / route changes can't append stale rows) + per-source pagination reset - SourceSwitcherDropdown: scope dropdown mirroring KBSwitcherDropdown, scales to many platforms, reuses platform logos, closes on select - empty state when a source has no sessions - pure logic in sessionSourceFilter.ts with unit tests; zh/en/ko/ru i18n
This commit is contained in:
@@ -27,6 +27,8 @@ export default {
|
||||
collapseSidebar: "사이드바 접기",
|
||||
expandSidebar: "사이드바 펼치기",
|
||||
logoutSuccess: "로그아웃되었습니다",
|
||||
myChats: "내 대화",
|
||||
noSessions: "대화가 없습니다",
|
||||
},
|
||||
newUserGuide: {
|
||||
stepOf: "{current} / {total}",
|
||||
|
||||
Reference in New Issue
Block a user