Fix

Fixed mobile sidebar not closing after navigation

On mobile devices, the sidebar drawer wasn't closing after tapping a menu item, forcing users to manually dismiss it.

Root cause

The sidebar used a Sheet component (from shadcn/ui) that listened for an explicit close action. Next.js client-side navigation didn't trigger the close handler.

The fix

We added a usePathname() listener that closes the sheet on route change:

const pathname = usePathname();
const [open, setOpen] = useState(false);

useEffect(() => {
  setOpen(false);
}, [pathname]);

The sidebar now closes immediately after navigation on all mobile devices.