()
| 224 | * Main application sidebar with navigation, recent sessions, and user info. |
| 225 | */ |
| 226 | export function AppSidebar() { |
| 227 | const { open } = useSidebar(); |
| 228 | const { data: sessions, isLoading: sessionsLoading } = useSessions(); |
| 229 | return ( |
| 230 | <Sidebar collapsible="icon"> |
| 231 | <SidebarHeader> |
| 232 | <SidebarMenu> |
| 233 | <SidebarMenuItem> |
| 234 | <SidebarMenuButton size="lg" asChild> |
| 235 | <Link to="/"> |
| 236 | <div className="flex-1 text-left items-center justify-center"> |
| 237 | <div className="flex font-serif text-lg text-primary"> |
| 238 | <span className={cn(open ? "" : "translate-x-2")}>📯</span> |
| 239 | <span |
| 240 | className={cn( |
| 241 | "transition-opacity duration-300 font-medium translate-x-2", |
| 242 | open ? "" : "opacity-0", |
| 243 | )} |
| 244 | > |
| 245 | Agentara |
| 246 | </span> |
| 247 | </div> |
| 248 | </div> |
| 249 | </Link> |
| 250 | </SidebarMenuButton> |
| 251 | </SidebarMenuItem> |
| 252 | </SidebarMenu> |
| 253 | </SidebarHeader> |
| 254 | |
| 255 | <SidebarContent> |
| 256 | <NavSidebarGroup /> |
| 257 | <RecentsSidebarGroup loading={sessionsLoading} sessions={sessions} /> |
| 258 | </SidebarContent> |
| 259 | |
| 260 | <SidebarFooter className="border-t border-sidebar-border"> |
| 261 | <SidebarMenu> |
| 262 | <SidebarMenuItem> |
| 263 | <SidebarMenuButton size="lg" tooltip="Henry Li"> |
| 264 | <div className="flex items-center gap-2"> |
| 265 | <Avatar name="Henry Li" variant="beam" size={32} /> |
| 266 | <div className="grid flex-1 text-left leading-tight"> |
| 267 | <span className="text-sm font-semibold">Henry Li</span> |
| 268 | <span className="text-xs text-muted-foreground"> |
| 269 | Super Individual |
| 270 | </span> |
| 271 | </div> |
| 272 | </div> |
| 273 | </SidebarMenuButton> |
| 274 | </SidebarMenuItem> |
| 275 | </SidebarMenu> |
| 276 | </SidebarFooter> |
| 277 | |
| 278 | <SidebarRail /> |
| 279 | </Sidebar> |
| 280 | ); |
| 281 | } |
nothing calls this directly
no test coverage detected