Sidebar redesign, dropdown fixes, and soft-delete UI #57

Merged
uz1mani merged 50 commits from staging into main 2026-03-19 00:08:16 +00:00
15 changed files with 1802 additions and 432 deletions
Showing only changes of commit 177c33830c - Show all commits

View File

@@ -390,23 +390,27 @@ export default function Sidebar({
<div className="border-t border-neutral-200/60 dark:border-neutral-800/60 px-2 py-3 shrink-0"> <div className="border-t border-neutral-200/60 dark:border-neutral-800/60 px-2 py-3 shrink-0">
{/* Notifications, Profile — same layout as nav items */} {/* Notifications, Profile — same layout as nav items */}
<div className="space-y-0.5 mb-1"> <div className="space-y-0.5 mb-1">
<NotificationCenter anchor="right" variant="sidebar"> <span title={c ? 'Notifications' : undefined}>
<Label collapsed={c}>Notifications</Label> <NotificationCenter anchor="right" variant="sidebar">
</NotificationCenter> <Label collapsed={c}>Notifications</Label>
<UserMenu </NotificationCenter>
auth={auth} </span>
LinkComponent={Link} <span title={c ? (user?.display_name?.trim() || 'Profile') : undefined}>
orgs={orgs} <UserMenu
activeOrgId={auth.user?.org_id} auth={auth}
onSwitchOrganization={handleSwitchOrganization} LinkComponent={Link}
onCreateOrganization={() => router.push('/onboarding')} orgs={orgs}
allowPersonalOrganization={false} activeOrgId={auth.user?.org_id}
onOpenSettings={openSettings} onSwitchOrganization={handleSwitchOrganization}
compact onCreateOrganization={() => router.push('/onboarding')}
anchor="right" allowPersonalOrganization={false}
> onOpenSettings={openSettings}
<Label collapsed={c}>{user?.display_name?.trim() || 'Profile'}</Label> compact
</UserMenu> anchor="right"
>
<Label collapsed={c}>{user?.display_name?.trim() || 'Profile'}</Label>
</UserMenu>
</span>
</div> </div>
{/* Settings + Collapse */} {/* Settings + Collapse */}