feat(sidebar): integrate NavUser component into SidebarFooter and clean up SiteHeader
Build and Push Auth Portal Docker Image / build-and-push (push) Successful in 1m54s
Build and Push Auth Portal Docker Image / create-release (push) Skipped

- Added NavUser component to the SidebarFooter for user information display.
- Refactored SiteHeader by removing unused imports and components related to user account management.
- Updated breadcrumbs logic to include a new path for admin apps.
- Adjusted SidebarMenuItem formatting for improved readability.
This commit is contained in:
Denozordec
2026-07-19 02:13:08 +07:00
parent bb17ad6f4d
commit ed1699503a
4 changed files with 213 additions and 61 deletions
+8 -2
View File
@@ -2,6 +2,7 @@ import { Link, useRouterState } from '@tanstack/react-router'
import { useQuery } from '@tanstack/react-query'
import { LayoutGridIcon, UsersIcon, AppWindowIcon } from 'lucide-react'
import { AppSwitcher } from '@/components/app-switcher'
import { NavUser } from '@/components/nav-user'
import { meQueryOptions } from '@/queries/auth'
import {
Sidebar,
@@ -57,7 +58,10 @@ export function AppSidebar() {
<SidebarMenuItem>
<SidebarMenuButton
tooltip="Пользователи"
isActive={isActive(pathname, '/admin', false) && !pathname.startsWith('/admin/apps')}
isActive={
isActive(pathname, '/admin', false) &&
!pathname.startsWith('/admin/apps')
}
render={<Link to="/admin" />}
>
<UsersIcon className="size-4" />
@@ -79,7 +83,9 @@ export function AppSidebar() {
</SidebarGroup>
) : null}
</SidebarContent>
<SidebarFooter />
<SidebarFooter>
<NavUser />
</SidebarFooter>
</Sidebar>
)
}