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:
@@ -25,6 +25,8 @@ export default {
|
||||
collapseSidebar: 'Свернуть боковую панель',
|
||||
expandSidebar: 'Развернуть боковую панель',
|
||||
logoutSuccess: 'Вы вышли из системы',
|
||||
myChats: 'Мои чаты',
|
||||
noSessions: 'Пока нет диалогов',
|
||||
agents: 'Агенты',
|
||||
organizations: 'Общие пространства'
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user