feat: add user-level WeChat channel accounts
This commit is contained in:
@@ -12,6 +12,7 @@ import {
|
||||
FolderKanban,
|
||||
LogOut,
|
||||
Plus,
|
||||
RadioTower,
|
||||
Settings as SettingsIcon,
|
||||
Ticket,
|
||||
UserCircle2,
|
||||
@@ -783,10 +784,17 @@ export function Sidebar({
|
||||
) : (
|
||||
activeModule === 'cloud_agents' ? <div data-testid="sidebar-cloud-agents-navigation" className="px-2 py-3">
|
||||
<button type="button" aria-label="我的智能体" onClick={() => navigate('/cloud-agents')}
|
||||
className={cn('flex min-h-10 w-full items-center gap-2 rounded-lg bg-brand-soft px-2 py-2 text-left text-sm font-semibold', sidebarCollapsed && 'justify-center px-0')}>
|
||||
aria-current={location.pathname === '/cloud-agents' ? 'page' : undefined}
|
||||
className={cn('flex min-h-10 w-full items-center gap-2 rounded-lg px-2 py-2 text-left text-sm font-semibold hover:bg-surface-tertiary', location.pathname === '/cloud-agents' && 'bg-brand-soft', sidebarCollapsed && 'justify-center px-0')}>
|
||||
<Bot className="h-4 w-4 shrink-0 text-brand" />
|
||||
{!sidebarCollapsed && <span>我的智能体</span>}
|
||||
</button>
|
||||
<button type="button" aria-label="渠道" onClick={() => navigate('/cloud-agents/channels')}
|
||||
aria-current={location.pathname.startsWith('/cloud-agents/channels') ? 'page' : undefined}
|
||||
className={cn('mt-1 flex min-h-10 w-full items-center gap-2 rounded-lg px-2 py-2 text-left text-sm font-semibold hover:bg-surface-tertiary', location.pathname.startsWith('/cloud-agents/channels') && 'bg-brand-soft', sidebarCollapsed && 'justify-center px-0')}>
|
||||
<RadioTower className="h-4 w-4 shrink-0 text-brand" />
|
||||
{!sidebarCollapsed && <span>渠道</span>}
|
||||
</button>
|
||||
</div> : <div data-testid="sidebar-robot-navigation" className="px-2 py-3">
|
||||
<button
|
||||
type="button"
|
||||
|
||||
Reference in New Issue
Block a user