Skip to content

Comments

Add collapsible sidebar to admin panel#322

Merged
239573049 merged 2 commits intoAIDotNet:mainfrom
keboola:upstream-pr/responsive-admin-sidebar
Feb 21, 2026
Merged

Add collapsible sidebar to admin panel#322
239573049 merged 2 commits intoAIDotNet:mainfrom
keboola:upstream-pr/responsive-admin-sidebar

Conversation

@manana2520
Copy link
Contributor

Summary

  • Add responsive mobile sidebar with Sheet overlay for admin panel
  • Replace custom admin sidebar implementation with shadcn/ui Sidebar component system
  • Add toggle button (PanelLeft icon) to collapse sidebar to icon-only view
  • Mobile sidebar handled automatically by Sidebar component (Sheet overlay)
  • Tooltips appear on hover when sidebar is in collapsed icon mode

Changes

  • web/components/admin/admin-sidebar.tsx - Rewritten to use shadcn/ui Sidebar, SidebarMenu, SidebarMenuButton components with collapsible="icon" support
  • web/app/admin/layout.tsx - Uses SidebarProvider, SidebarInset, and SidebarTrigger instead of custom Sheet/mobile handling
  • web/i18n/messages/*/common.json - Added openMenu translation key

On mobile (<768px), the sidebar is now hidden behind a hamburger menu
that opens as a slide-in Sheet overlay. Navigation links auto-close
the sheet. The confusing back arrow is replaced with a clear
"Back to Home" link at the bottom of the nav.
Replace custom admin sidebar with the same shadcn/ui Sidebar component
system used by the main page. Adds a toggle button (PanelLeft icon) in
the admin header to collapse the sidebar to icon-only view. Mobile
sidebar is now handled automatically by the Sidebar component.
@239573049 239573049 merged commit a1c9adb into AIDotNet:main Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants