diff --git a/apps/web/components/app-sidebar/app-sidebar-nav-item.tsx b/apps/web/components/app-sidebar/app-sidebar-nav-item.tsx index 24b09c10d2..2247e7c5e1 100644 --- a/apps/web/components/app-sidebar/app-sidebar-nav-item.tsx +++ b/apps/web/components/app-sidebar/app-sidebar-nav-item.tsx @@ -6,6 +6,8 @@ import type { DestinationIcon } from "@/lib/navigation/types"; import { Badge } from "@kandev/ui/badge"; import { Tooltip, TooltipContent, TooltipTrigger } from "@kandev/ui/tooltip"; import { cn } from "@/lib/utils"; +import { QuickChatActivityIndicator } from "@/components/quick-chat/quick-chat-activity-indicator"; +import type { QuickChatActivityState } from "@/lib/state/slices/ui/quick-chat-activity-selectors"; import { SIDEBAR_ITEM_ACTIVE, SIDEBAR_ITEM_INACTIVE } from "./app-sidebar-constants"; type AppSidebarNavItemProps = { @@ -14,7 +16,7 @@ type AppSidebarNavItemProps = { href?: string; badge?: number; badgeVariant?: "primary" | "muted"; - dot?: boolean; + activity?: QuickChatActivityState; onClick?: () => void; collapsed: boolean; /** Override the auto-derived active-state from pathname. */ @@ -77,17 +79,6 @@ function isPathActive(pathname: string, href: string | undefined, exactMatch: bo return hrefPathname !== "/" && pathname.startsWith(`${hrefPathname}/`); } -function renderUnseenDot(dot: boolean) { - if (!dot) return null; - return ( -