{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "incident-management",
  "dependencies": [
    "@radix-ui/react-avatar",
    "@radix-ui/react-checkbox",
    "@radix-ui/react-collapsible",
    "@radix-ui/react-dialog",
    "@radix-ui/react-dropdown-menu",
    "@radix-ui/react-label",
    "@radix-ui/react-select",
    "@radix-ui/react-separator",
    "@radix-ui/react-slot",
    "@radix-ui/react-tabs",
    "@radix-ui/react-tooltip",
    "@tabler/icons-react",
    "class-variance-authority",
    "lucide-react",
    "react-router-dom",
    "recharts"
  ],
  "registryDependencies": [
    "avatar",
    "badge",
    "breadcrumb",
    "button",
    "card",
    "chart",
    "checkbox",
    "collapsible",
    "dialog",
    "dropdown-menu",
    "input",
    "label",
    "select",
    "separator",
    "sheet",
    "sidebar",
    "skeleton",
    "table",
    "tabs",
    "tooltip",
    "utils"
  ],
  "files": [
    {
      "path": "src/components/dashboards/incident-management/activeStreamViews.tsx",
      "content": "\"use client\"\n\nimport {\n    IconTournament,\n    IconLayoutNavbar,\n    IconHistory,\n    IconFolder,\n    IconPlus,\n    IconSettings,\n    IconClock,\n    IconHourglass,\n} from \"@tabler/icons-react\"\nimport { Tabs, TabsContent, TabsList, TabsTrigger } from \"@/components/ui/tabs\"\nimport {\n    Select,\n    SelectContent,\n    SelectItem,\n    SelectTrigger,\n    SelectValue\n} from \"@/components/ui/select\"\nimport { Badge } from \"@/components/ui/badge\"\nimport { Button } from \"@/components/ui/button\"\nimport { SidebarTrigger } from \"@/components/ui/sidebar\"\nimport { KanbanColumn } from \"./components/active-streams/kanban-column\"\nimport { detectedCards, acknowledgedCards, investigatingCards, resolvedCards } from \"./components/active-streams/constants\"\n\nexport function ActiveStreamViews() {\n    return (\n        <div className=\"flex-1 flex flex-col w-full bg-white dark:bg-neutral-950 overflow-hidden min-h-0\">\n            {/* Header */}\n            <div className=\"py-4 px-7 flex items-start justify-between\">\n                <div className=\"flex flex-col gap-0\">\n                    <h1 className=\"text-2xl font-medium tracking-tighter text-neutral-900 dark:text-neutral-100\">Activity stream</h1>\n                    <p className=\"text-neutral-500 dark:text-neutral-400 text-base tracking-tight\">Real-time system activity across teams</p>\n                </div>\n                <div className=\"md:hidden pt-1\">\n                    <SidebarTrigger className=\"text-neutral-500\" />\n                </div>\n            </div>\n\n            <Tabs defaultValue=\"flowView\" className=\"flex-1 flex flex-col min-h-0\">\n                {/* Tab List */}\n                <div className=\"px-6 border-b dark:border-neutral-800 overflow-x-auto scrollbar-hide\">\n                    <TabsList className=\"bg-transparent h-16 p-0 gap-6 max-md:w-max justify-start\">\n                        {[\n                            { value: \"flowView\", label: \"Flow view\", icon: IconTournament },\n                            { value: \"capacityView\", label: \"Capacity view\", icon: IconLayoutNavbar },\n                            { value: \"history\", label: \"History\", icon: IconHistory },\n                            { value: \"actionLog\", label: \"Action log\", icon: IconFolder },\n                        ].map((tab) => (\n                            <TabsTrigger\n                                key={tab.value}\n                                value={tab.value}\n                                disabled={tab.value !== \"flowView\"}\n                                className=\"group bg-transparent dark:bg-transparent data-[state=active]:bg-transparent dark:data-[state=active]:bg-transparent shadow-none! data-[state=active]:shadow-none! border-t-0! border-x-0! border-b-0! data-[state=active]:border-b-[1.5px]! data-[state=active]:border-orange-500! dark:data-[state=active]:border-orange-500! rounded-none flex items-center gap-2 font-medium data-[state=active]:font-medium tracking-tight data-[state=active]:text-neutral-800 dark:data-[state=active]:text-neutral-200 transition-colors duration-300 text-[15px] px-1 h-9 text-neutral-500 dark:text-neutral-400 max-md:whitespace-nowrap focus:ring-0! focus:outline-none! focus-visible:ring-0! focus-visible:outline-none! focus-visible:border-t-0! focus-visible:border-x-0! cursor-pointer\"\n                            >\n                                <tab.icon className=\"size-5 text-neutral-400 dark:text-neutral-500 group-data-[state=active]:text-orange-500 dark:group-data-[state=active]:text-orange-500 transition-colors duration-300\" strokeWidth={1.5} />\n                                <span className=\"\">{tab.label}</span>\n                            </TabsTrigger>))}\n                    </TabsList>\n                </div>\n\n                <TabsContent value=\"flowView\" className=\"flex-1 flex flex-col p-6 pt-3 bg-white dark:bg-neutral-950 overflow-hidden gap-7 min-h-0\">\n                    {/* Filters */}\n                    <div className=\"flex flex-wrap items-center gap-4\">\n                        <Button variant=\"outline\" className=\"bg-neutral-200/50 dark:bg-neutral-900/50 hover:bg-[#f2f2f2] dark:hover:bg-neutral-800 border-neutral-100/50 dark:border-neutral-800/50 rounded-lg px-3 flex items-center gap-3 font-medium text-neutral-800 dark:text-neutral-200 shadow-none transition-colors duration-300 cursor-pointer\">\n                            Filter\n                            <Badge variant=\"secondary\" className=\"bg-white dark:bg-neutral-800 text-neutral-500 dark:text-neutral-400 rounded px-2 py-0.5 size-4 flex justify-center shadow border dark:border-neutral-700\">0</Badge>\n                        </Button>\n                        {[\n                            {\n                                label: \"Assigned unit\",\n                                value: \"unit\",\n                                options: [\"All Units\", \"Frontend Team\", \"Backend Team\", \"DevOps\", \"Security\"]\n                            },\n                            {\n                                label: \"Service type\",\n                                value: \"service\",\n                                options: [\"All Services\", \"Authentication\", \"Database\", \"Payment Gateway\", \"API Gateway\"]\n                            },\n                            {\n                                label: \"Resolution window\",\n                                value: \"resolution\",\n                                options: [\"Any Time\", \"< 1 Hour\", \"1-4 Hours\", \"4-24 Hours\", \"> 24 Hours\"]\n                            },\n                            {\n                                label: \"Impact\",\n                                value: \"impact\",\n                                options: [\"All Levels\", \"Critical\", \"High\", \"Medium\", \"Low\"]\n                            },\n                        ].map((filter) => (\n                            <Select key={filter.value}>\n                                <SelectTrigger className=\"w-fit bg-white dark:bg-neutral-900 border-neutral-200 dark:border-neutral-800 rounded-lg pl-3 pr-2 font-medium text-neutral-400 dark:text-neutral-500 hover:bg-neutral-100/50 dark:hover:bg-neutral-800/60 shadow-none transition-colors duration-300 cursor-pointer text-sm focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:border-neutral-400 dark:focus-visible:border-neutral-600 outline-none hover:text-neutral-700! dark:hover:text-neutral-300!\">\n                                    <SelectValue placeholder={filter.label} />\n                                </SelectTrigger>\n                                <SelectContent className=\"rounded-xl border-neutral-100 dark:border-neutral-800 shadow-xl\">\n                                    {filter.options.map(option => (\n                                        <SelectItem key={option} value={option.toLowerCase().replace(/\\s+/g, '-')}>{option}</SelectItem>\n                                    ))}\n                                </SelectContent>\n                            </Select>\n                        ))}\n                    </div>\n\n                    {/* Kanban Grid */}\n                    <div className=\"flex-1 flex gap-6 overflow-auto over min-h-0 scrollbar-hide\">\n                        <KanbanColumn title=\"Detected\" count={12} cards={detectedCards} icon={IconClock} />\n                        <KanbanColumn title=\"Acknowledged\" count={4} cards={acknowledgedCards} icon={IconHourglass} />\n                        <KanbanColumn title=\"Investigating\" count={1} cards={investigatingCards} icon={IconSettings} />\n                        <KanbanColumn title=\"Resolved\" count={1} cards={resolvedCards} icon={IconPlus} />\n                    </div>\n                </TabsContent>\n            </Tabs>\n        </div>\n    )\n}",
      "type": "registry:component",
      "target": "components/watermelon/incident-management/activeStreamViews.tsx"
    },
    {
      "path": "src/components/dashboards/incident-management/components/active-streams/constants.tsx",
      "content": "import {\n    IconTrolley,\n    IconDatabase,\n    IconApi,\n    IconCreditCard,\n    IconSettings,\n    IconBolt,\n    IconHourglass,\n    IconBox\n} from \"@tabler/icons-react\"\nimport type { StreamCardProps } from \"./types\"\n\nexport const detectedCards: StreamCardProps[] = [\n    {\n        id: \"1\",\n        title: \"Service Flow Interruption\",\n        code: \"#OPS-129\",\n        avatar: \"https://github.com/shadcn.png\",\n        logo: <IconTrolley className=\"size-4\" />,\n        logoBg: \"bg-orange-500\",\n        details: {\n            origin: \"Customer Mobile App\",\n            priority: \"High Impact\",\n            handler: \"Platform operations\",\n            process: \"Incident resolution\",\n            date: \"Jan 24, 2026\",\n        },\n        tags: [\n            { label: \"Time-Sensitive\", icon: <IconHourglass className=\"size-4\" />, color: \"text-amber-600\", bg: \"bg-amber-50\" },\n            { label: \"Platform\", icon: <IconBox className=\"size-4\" />, color: \"text-indigo-600\", bg: \"bg-indigo-50\" },\n            { label: \"Live\", icon: <IconBolt className=\"size-4\" />, color: \"text-orange-600\", bg: \"bg-orange-50\" },\n        ],\n        messages: 3,\n        time: \"22hr ago\",\n    },\n    {\n        id: \"2\",\n        title: \"Database Downtime\",\n        code: \"#OPS-130\",\n        avatar: \"https://i.pravatar.cc/150?u=2\",\n        logo: <IconDatabase className=\"size-4\" />,\n        logoBg: \"bg-blue-600\",\n        details: {\n            origin: \"User Management System\",\n            priority: \"Moderate\",\n            handler: \"IT Support\",\n            process: \"Database recovery\",\n            date: \"Jan 27, 2026\",\n        },\n        tags: [\n            { label: \"Time-Sensitive\", icon: <IconHourglass className=\"size-4\" />, color: \"text-amber-600\", bg: \"bg-amber-50\" },\n            { label: \"Platform\", icon: <IconBox className=\"size-4\" />, color: \"text-indigo-600\", bg: \"bg-indigo-50\" },\n        ],\n        messages: 5,\n        time: \"5hr ago\",\n    },\n]\n\nexport const acknowledgedCards: StreamCardProps[] = [\n    {\n        id: \"3\",\n        title: \"API Rate Limiting\",\n        code: \"#OPS-131\",\n        avatar: \"https://i.pravatar.cc/150?u=3\",\n        logo: <IconApi className=\"size-4\" />,\n        logoBg: \"bg-emerald-600\",\n        details: {\n            origin: \"Third-party Integration\",\n            priority: \"Minor\",\n            handler: \"Integration Team\",\n            process: \"Throttling Policy\",\n            date: \"Jan 26, 2026\",\n        },\n        tags: [\n            { label: \"Time-Sensitive\", icon: <IconHourglass className=\"size-4\" />, color: \"text-amber-600\", bg: \"bg-amber-50\" },\n            { label: \"Platform\", icon: <IconBox className=\"size-4\" />, color: \"text-indigo-600\", bg: \"bg-indigo-50\" },\n        ],\n        messages: 1,\n        time: \"10hr ago\",\n    },\n    {\n        id: \"4\",\n        title: \"Payment Processing Delay\",\n        code: \"#OPS-132\",\n        avatar: \"https://i.pravatar.cc/150?u=4\",\n        logo: <IconCreditCard className=\"size-4\" />,\n        logoBg: \"bg-purple-600\",\n        details: {\n            origin: \"E-commerce Portal\",\n            priority: \"Critical\",\n            handler: \"Finance Ops\",\n            process: \"Payment Gateway\",\n            date: \"Jan 28, 2026\",\n        },\n        tags: [\n            { label: \"Platform\", icon: <IconBox className=\"size-4\" />, color: \"text-indigo-600\", bg: \"bg-indigo-50\" },\n            { label: \"Live\", icon: <IconBolt className=\"size-4\" />, color: \"text-orange-600\", bg: \"bg-orange-50\" },\n        ],\n        messages: 2,\n        time: \"1hr ago\",\n    },\n]\n\nexport const investigatingCards: StreamCardProps[] = [\n    {\n        id: \"5\",\n        title: \"Worker Node Failure\",\n        code: \"#OPS-133\",\n        avatar: \"https://i.pravatar.cc/150?u=5\",\n        logo: <IconSettings className=\"size-4\" />,\n        logoBg: \"bg-rose-600\",\n        details: {\n            origin: \"Cluster Manager\",\n            priority: \"High Impact\",\n            handler: \"SRE Team\",\n            process: \"Node Replacement\",\n            date: \"Jan 28, 2026\",\n        },\n        tags: [\n            { label: \"Time-Sensitive\", icon: <IconHourglass className=\"size-4\" />, color: \"text-amber-600\", bg: \"bg-amber-50\" },\n            { label: \"Platform\", icon: <IconBox className=\"size-4\" />, color: \"text-indigo-600\", bg: \"bg-indigo-50\" },\n        ],\n        messages: 4,\n        time: \"30m ago\",\n    }\n]\n\nexport const resolvedCards: StreamCardProps[] = [\n    {\n        id: \"6\",\n        title: \"DNS Resolution Error\",\n        code: \"#OPS-128\",\n        avatar: \"https://i.pravatar.cc/150?u=6\",\n        logo: <IconBolt className=\"size-4\" />,\n        logoBg: \"bg-neutral-600\",\n        details: {\n            origin: \"Internal Network\",\n            priority: \"Major\",\n            handler: \"Networking Team\",\n            process: \"DNS Cache Flush\",\n            date: \"Jan 23, 2026\",\n        },\n        tags: [\n            { label: \"Platform\", icon: <IconBox className=\"size-4\" />, color: \"text-indigo-600\", bg: \"bg-indigo-50\" },\n        ],\n        messages: 12,\n        time: \"2d ago\",\n    }\n]\n",
      "type": "registry:component",
      "target": "components/watermelon/incident-management/components/active-streams/constants.tsx"
    },
    {
      "path": "src/components/dashboards/incident-management/components/active-streams/kanban-column.tsx",
      "content": "\"use client\"\n\nimport { IconPlus, IconDots } from \"@tabler/icons-react\"\nimport { Badge } from \"@/components/ui/badge\"\nimport { Button } from \"@/components/ui/button\"\nimport { Input } from \"@/components/ui/input\"\nimport { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter, DialogClose } from \"@/components/ui/dialog\"\nimport { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuLabel } from \"@/components/ui/dropdown-menu\"\nimport type { StreamCardProps } from \"./types\"\nimport { StreamCard } from \"./stream-card\"\n\nexport const KanbanColumn = ({\n    title,\n    count,\n    cards,\n    icon: Icon\n}: {\n    title: string\n    count: number\n    cards: StreamCardProps[]\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    icon: any\n}) => (\n    <div className=\"flex-1 min-w-[340px] border-x-[1.5px] p-1.5 flex flex-col gap-4 border-neutral-100 dark:border-neutral-900 min-h-0\">\n        <div className=\"flex items-center justify-between\">\n            <div className=\"flex items-center gap-1.5 bg-neutral-200/50 dark:bg-neutral-800/50 px-2 py-1.5 rounded-lg group cursor-pointer\">\n                <Icon className=\"size-4 text-neutral-600 dark:text-neutral-400\" />\n                <h3 className=\"font text-neutral-800 dark:text-neutral-200 text-sm tracking-tight\">{title}</h3>\n                <Badge variant=\"secondary\" className=\"bg-white dark:bg-neutral-800 text-neutral-500 dark:text-neutral-400 group-hover:shadow dark:group-hover:bg-neutral-700/50 rounded size-4.5 border-none text-[12px] transition-colors duration-300 cursor-pointer\">\n                    {count}\n                </Badge>\n            </div>\n            <div className=\"flex items-center gap-1 text-neutral-400 dark:text-neutral-500\">\n                <Dialog>\n                    <DialogTrigger asChild>\n                        <Button variant=\"ghost\" size=\"icon-sm\" className=\" hover:bg-neutral-200/50 dark:hover:bg-neutral-800/50 rounded-lg transition-colors duration-300 cursor-pointer\">\n                            <IconPlus className=\"size-4\" />\n                        </Button>\n                    </DialogTrigger>\n                    <DialogContent className=\"bg-white dark:bg-neutral-950 border-neutral-100 dark:border-neutral-800 rounded-xl shadow-xl\">\n                        <DialogHeader>\n                            <DialogTitle className=\"text-neutral-900 dark:text-neutral-100 font-semibold tracking-tight\">Add to {title}</DialogTitle>\n                            <DialogDescription className=\"text-neutral-500 dark:text-neutral-400\">Create a new stream item in this stage.</DialogDescription>\n                        </DialogHeader>\n                        <div className=\"grid gap-4 py-4\">\n                            <div className=\"grid gap-2\">\n                                <label htmlFor=\"title\" className=\"text-sm font-medium leading-none text-neutral-900 dark:text-neutral-100 tracking-tight\">Title</label>\n                                <Input id=\"title\" placeholder=\"e.g. Server Latency Spike\" className=\"rounded-lg border-neutral-200 dark:border-neutral-800 bg-neutral-50 dark:bg-neutral-900 text-sm focus-visible:ring-1 focus-visible:ring-orange-500/50 focus-visible:border-orange-500/50 shadow-[inset_0_1px_2px_rgba(0,0,0,0.05)] transition-all\" />\n                            </div>\n                            <div className=\"grid gap-2\">\n                                <label htmlFor=\"priority\" className=\"text-sm font-medium leading-none text-neutral-900 dark:text-neutral-100 tracking-tight\">Priority</label>\n                                <Input id=\"priority\" placeholder=\"e.g. High\" className=\"rounded-lg border-neutral-200 dark:border-neutral-800 bg-neutral-50 dark:bg-neutral-900 text-sm focus-visible:ring-1 focus-visible:ring-orange-500/50 focus-visible:border-orange-500/50 shadow-[inset_0_1px_2px_rgba(0,0,0,0.05)] transition-all\" />\n                            </div>\n                        </div>\n                        <DialogFooter className=\"bg-transparent dark:bg-transparent border-t-0 p-0 sm:justify-end gap-2 mx-0 mb-0 mt-0\">\n                            <DialogClose asChild>\n                                <Button variant=\"outline\" className=\"rounded-lg bg-white dark:bg-neutral-900 border-neutral-200 dark:border-neutral-800 text-neutral-600 dark:text-neutral-300 hover:bg-neutral-100 dark:hover:bg-neutral-800 shadow-none font-medium transition-colors\">Cancel</Button>\n                            </DialogClose>\n                            <Button className=\"bg-orange-500 hover:bg-orange-600 text-white rounded-lg shadow-none border-none font-medium transition-colors\">Save Item</Button>\n                        </DialogFooter>\n                    </DialogContent>\n                </Dialog>\n                <DropdownMenu>\n                    <DropdownMenuTrigger asChild>\n                        <Button variant=\"ghost\" size=\"icon-sm\" className=\"hover:bg-neutral-200/50 dark:hover:bg-neutral-800/50 rounded-lg transition-colors duration-300 cursor-pointer\">\n                            <IconDots className=\"size-4\" />\n                        </Button>\n                    </DropdownMenuTrigger>\n                    <DropdownMenuContent align=\"end\" className=\"w-48 rounded-xl shadow-xl dark:border-neutral-800\">\n                        <DropdownMenuLabel>Column Actions</DropdownMenuLabel>\n                        <DropdownMenuSeparator />\n                        <DropdownMenuItem className=\"cursor-pointer\">Edit Column</DropdownMenuItem>\n                        <DropdownMenuItem className=\"cursor-pointer\">Sort Items</DropdownMenuItem>\n                        <DropdownMenuItem className=\"cursor-pointer text-red-600 dark:text-red-400 focus:text-red-600 dark:focus:text-red-400 focus:bg-red-50 dark:focus:bg-red-950/30\">Clear All</DropdownMenuItem>\n                    </DropdownMenuContent>\n                </DropdownMenu>\n            </div>\n        </div>\n        <div className=\"flex-1 overflow-y-auto flex flex-col gap-2 pb-2 scrollbar-hide\">\n            {cards.map((card) => (\n                <StreamCard key={card.id} card={card} />\n            ))}\n        </div>\n    </div>\n)\n",
      "type": "registry:component",
      "target": "components/watermelon/incident-management/components/active-streams/kanban-column.tsx"
    },
    {
      "path": "src/components/dashboards/incident-management/components/active-streams/stream-card.tsx",
      "content": "\"use client\"\n\nimport {\n    IconUser,\n    IconFlag,\n    IconAlertTriangle,\n    IconTool,\n    IconSettings,\n    IconCalendar,\n    IconMessage,\n    IconClock\n} from \"@tabler/icons-react\"\nimport { Card, CardContent, CardFooter, CardHeader } from \"@/components/ui/card\"\nimport { Badge } from \"@/components/ui/badge\"\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\"\nimport { cn } from \"@/lib/utils\"\nimport type { StreamCardProps } from \"./types\"\n\nconst getDarkBadgeStyles = (bg: string) => {\n    const colorMap: Record<string, string> = {\n        amber: \"dark:bg-amber-900/10 dark:text-amber-500\",\n        indigo: \"dark:bg-indigo-900/10 dark:text-indigo-500\",\n        orange: \"dark:bg-orange-900/10 dark:text-orange-500\",\n        emerald: \"dark:bg-emerald-900/10 dark:text-emerald-500\",\n        rose: \"dark:bg-rose-900/10 dark:text-rose-500\",\n        blue: \"dark:bg-blue-900/10 dark:text-blue-500\",\n        purple: \"dark:bg-purple-900/10 dark:text-purple-500\",\n    };\n\n    const colorName = Object.keys(colorMap).find((c) => bg.includes(c));\n    return colorName ? colorMap[colorName] : \"dark:bg-neutral-800 dark:text-neutral-300\";\n};\n\nexport const StreamCard = ({ card }: { card: StreamCardProps }) => (\n    <Card className=\"shadow-none bg-neutral-200/35 dark:bg-neutral-900 rounded-lg border-none px-3 py-2.5 gap-3 transition-colors duration-300 hover:bg-muted/50 cursor-pointer group\">\n        <CardHeader className=\"p-0 flex flex-row items-start justify-between space-y-0\">\n            <div className=\"flex gap-2\">\n                <div className={cn(\"size-7 rounded-sm flex items-center justify-center text-white shadow-sm\", card.logoBg)}>\n                    {card.logo}\n                </div>\n                <div className=\"grid gap-0.5\">\n                    <h4 className=\"text-base font-medium leading-tight tracking-tight text-neutral-900 dark:text-neutral-100\">{card.title}</h4>\n                    <span className=\"text-[13px] text-neutral-500 dark:text-neutral-400 font-medium\">{card.code}</span>\n                </div>\n            </div>\n            <Avatar className=\"size-8 border-2 border-white dark:border-neutral-800 shadow-sm transition-colors duration-300 hover:ring-2 hover:ring-indigo-500/30 cursor-pointer\">\n                <AvatarImage src={card.avatar} className=\"grayscale hover:grayscale-0 transition-colors duration-300\" />\n                <AvatarFallback>\n                    <IconUser className=\"size-4\" />\n                </AvatarFallback>\n            </Avatar>\n        </CardHeader>\n        <CardContent className=\"p-5 pt-2 grid gap-3 bg-white dark:bg-neutral-950 rounded-lg\">\n            <div className=\"grid gap-2.5 py-1 dark:border-neutral-800/50\">\n                {[\n                    { label: \"Origin\", value: card.details.origin, icon: <IconFlag className=\"size-4\" /> },\n                    { label: \"Priority\", value: card.details.priority, icon: <IconAlertTriangle className=\"size-4\" /> },\n                    { label: \"Handler\", value: card.details.handler, icon: <IconTool className=\"size-4\" /> },\n                    { label: \"Process\", value: card.details.process, icon: <IconSettings className=\"size-4\" /> },\n                    { label: \"Date\", value: card.details.date, icon: <IconCalendar className=\"size-4\" /> },\n                ].map((detail) => (\n                    <div key={detail.label} className=\"flex items-center gap-12 text-[14px]\">\n                        <div className=\"flex items-center gap-2.5 text-neutral-400 dark:text-neutral-500 w-[100px]\">\n                            <span className=\"text-neutral-500 dark:text-neutral-400\">{detail.icon}</span>\n                            <span className=\"text-neutral-500 dark:text-neutral-400 text-xs font-semibold\">{detail.label}</span>\n                        </div>\n                        <span className=\"text-neutral-900 dark:text-neutral-100 text-xs font-semibold tracking-tight max-md:truncate max-md:max-w-[100px]\">{detail.value}</span>\n                    </div>\n                ))}\n            </div>\n            <div className=\"flex flex-wrap gap-2 mt-1\">\n                {card.tags.map((tag, i) => (\n                    <Badge\n                        key={i}\n                        variant=\"secondary\"\n                        className={cn(\n                            \"flex items-center gap-1.5 px-2 py-1 rounded-full shadow-none text-[12px] tracking-tight transition-colors duration-300 hover:shadow-sm cursor-pointer border dark:border-neutral-700/50\",\n                            tag.bg,\n                            tag.color,\n                            getDarkBadgeStyles(tag.bg)\n                        )}\n                    >\n                        <span className=\"flex items-center justify-center\">{tag.icon}</span>\n                        {tag.label}\n                    </Badge>\n                ))}\n            </div>\n        </CardContent>\n        <CardFooter className=\"flex items-center gap-5 text-neutral-500 dark:text-neutral-400 text-[11px] font-medium border-neutral-50 dark:border-neutral-800 px-0\">\n            <div className=\"flex items-center gap-1 cursor-pointer hover:text-neutral-600 dark:hover:text-neutral-300 transition-colors\">\n                <IconMessage className=\"size-3.5\" />\n                <span>{card.messages}</span>\n            </div>\n            <div className=\"flex items-center gap-1\">\n                <IconClock className=\"size-3.5\" />\n                <span>{card.time}</span>\n            </div>\n        </CardFooter>\n    </Card>\n)\n",
      "type": "registry:component",
      "target": "components/watermelon/incident-management/components/active-streams/stream-card.tsx"
    },
    {
      "path": "src/components/dashboards/incident-management/components/active-streams/types.ts",
      "content": "export interface StreamCardProps {\n    id: string\n    title: string\n    code: string\n    avatar: string\n    logo: React.ReactNode\n    logoBg: string\n    details: {\n        origin: string\n        priority: string\n        handler: string\n        process: string\n        date: string\n    }\n    tags: { label: string; icon: React.ReactNode; color: string; bg: string }[]\n    messages: number\n    time: string\n}   \n",
      "type": "registry:component",
      "target": "components/watermelon/incident-management/components/active-streams/types.ts"
    },
    {
      "path": "src/components/dashboards/incident-management/components/app-sidebar.tsx",
      "content": "\"use client\"\nimport * as React from \"react\"\nimport {\n  Activity,\n  Bot,\n  Users,\n  Network,\n  Cpu,\n  Zap,\n  CalendarClock,\n  ListOrdered,\n  LineChart,\n  AlertOctagon,\n  GitPullRequestArrow,\n  Grid3x3,\n  Settings,\n  HelpCircle,\n  ChevronRight,\n  ChevronsUpDown,\n  ChevronDown\n} from \"lucide-react\"\nimport { useLocation } from \"react-router-dom\"\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\"\nimport { DropdownMenu, DropdownMenuTrigger } from \"@/components/ui/dropdown-menu\"\nimport {\n  Sidebar,\n  SidebarContent,\n  SidebarFooter,\n  SidebarGroup,\n  SidebarGroupContent,\n  SidebarGroupLabel,\n  SidebarHeader,\n  SidebarMenu,\n  SidebarMenuButton,\n  SidebarMenuItem,\n  SidebarMenuSub,\n  SidebarMenuSubButton,\n  SidebarMenuSubItem,\n  SidebarRail,\n  SidebarTrigger,\n} from \"@/components/ui/sidebar\"\nimport { SearchForm } from \"./search-form\"\nimport {\n  Collapsible,\n  CollapsibleContent,\n  CollapsibleTrigger,\n} from \"@/components/ui/collapsible\"\n\nconst data = {\n  user: {\n    name: \"Stephen S.\",\n    email: \"stephen@srotimi.design\",\n    avatar: \"/avatars/stephen.jpg\",\n  },\n  navMain: [\n    {\n      title: \"Activity stream\",\n      url: \"/active-streams\",\n      icon: Activity,\n      isActive: true,\n    },\n    {\n      title: \"Live operations\",\n      url: \"#\",\n      icon: Bot,\n      isDisabled: true,\n    },\n    {\n      title: \"Participants\",\n      url: \"#\",\n      icon: Users,\n      isDisabled: true,\n    },\n    {\n      title: \"System logic\",\n      url: \"#\",\n      icon: Network,\n      isDisabled: true,\n      items: [\n        {\n          title: \"Rules engine\",\n          url: \"#\",\n          icon: Cpu,\n          isDisabled: true,\n        },\n        {\n          title: \"Triggers\",\n          url: \"#\",\n          icon: Zap,\n          isDisabled: true,\n        },\n        {\n          title: \"Schedules\",\n          url: \"#\",\n          icon: CalendarClock,\n          isDisabled: true,\n        },\n      ],\n    },\n    {\n      title: \"Action queue\",\n      url: \"#\",\n      icon: ListOrdered,\n      isDisabled: true,\n    },\n    {\n      title: \"Insights\",\n      url: \"#\",\n      icon: LineChart,\n      isDisabled: true,\n    },\n  ],\n  pinnedMonitors: [\n    {\n      title: \"SLA breaches\",\n      url: \"#\",\n      icon: AlertOctagon,\n      isDisabled: true,\n    },\n    {\n      title: \"Escalated requests\",\n      url: \"#\",\n      icon: GitPullRequestArrow,\n      isDisabled: true,\n    },\n    {\n      title: \"High load zones\",\n      url: \"#\",\n      icon: Grid3x3,\n      isDisabled: true,\n    },\n  ],\n  operatorConsole: [\n    {\n      title: \"Settings\",\n      url: \"#\",\n      icon: Settings,\n      isDisabled: true,\n    },\n    {\n      title: \"Help Center\",\n      url: \"#\",\n      icon: HelpCircle,\n      isDisabled: true,\n    },\n  ],\n}\n\ninterface AppSidebarProps extends React.ComponentProps<typeof Sidebar> {\n  onNavigate?: (view: string) => void;\n  currentView?: string;\n}\n\nexport function AppSidebar({ onNavigate, currentView, ...props }: AppSidebarProps) {\n  const [openPinned, setOpenPinned] = React.useState(true)\n  const [openOperator, setOpenOperator] = React.useState(true)\n  const location = useLocation()\n  const pathname = location.pathname\n  return (\n    <Sidebar {...props}>\n      <SidebarHeader className=\"px-0 pt-0 border-b\">\n        <SidebarMenu className=\"border-b h-15 pl-2.5 justify-center\">\n          <SidebarMenuItem>\n            <SidebarMenuButton size=\"lg\" asChild className=\"hover:bg-transparent\">\n              <div className=\"flex items-center justify-between\">\n                <div className=\"flex items-center gap-2\">\n                  <div className=\"flex aspect-square size-8 items-center justify-center rounded-md shadow-sm\">\n                    <img src=\"/logo.png\" alt=\"Logo\" width={50} height={50} className=\"rounded-md\" />\n                  </div>\n                  <span className=\"font-semibold text-base\">OceanLabs</span>\n                </div>\n                <div className=\"flex items-center justify-center size-8 rounded-md bg-[#f8f8f8] dark:bg-neutral-900 shadow-[inset_2px_2px_5px_rgba(0,0,0,0.08),inset_-2px_-2px_5px_rgba(255,255,255,1)] dark:shadow-[inset_2px_2px_5px_rgba(0,0,0,0.4),inset_-2px_-2px_5px_rgba(255,255,255,0.05)] transition-colors duration-300 cursor-pointer\">\n                  <SidebarTrigger className=\"text-neutral-500 dark:text-neutral-400\" />\n                </div>\n              </div>\n            </SidebarMenuButton>\n          </SidebarMenuItem>\n        </SidebarMenu>\n        <SearchForm />\n      </SidebarHeader>\n\n      <SidebarContent className=\"gap-0\">\n        <SidebarGroup>\n          <SidebarMenu className=\"pl-2.5 pt-2\">\n            {data.navMain.map((item) => (\n              <Collapsible\n                key={item.title}\n                asChild\n                defaultOpen={item.isActive}\n                className=\"group/collapsible\"\n              >\n                <SidebarMenuItem>\n                  {item.items ? (\n                    <>\n                      <CollapsibleTrigger asChild>\n                        <SidebarMenuButton tooltip={item.title} className=\"h-10 px-2.5 rounded-lg text-neutral-500 dark:text-neutral-400 font-normal text-[15.5px] tracking-tight data-[active=true]:text-white! data-[active=true]:bg-orange-500 data-[active=true]:shadow-[inset_2px_4px_8px_rgba(255,255,255,0.4),inset_-2px_-4px_8px_rgba(0,0,0,0.3)] hover:bg-[#f8f8f8] dark:hover:bg-neutral-800 hover:shadow-[inset_2px_2px_5px_rgba(0,0,0,0.08),inset_-2px_-2px_5px_rgba(255,255,255,1)] dark:hover:shadow-[inset_2px_2px_5px_rgba(0,0,0,0.4),inset_-2px_-2px_5px_rgba(255,255,255,0.05)] hover:text-neutral-500! dark:hover:text-neutral-400! transition-colors duration-300 cursor-pointer\">\n                          {item.icon && <item.icon className=\"!size-5\" />}\n                          <span>{item.title}</span>\n                          <ChevronRight className=\"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90\" />\n                        </SidebarMenuButton>\n                      </CollapsibleTrigger>\n                      <CollapsibleContent>\n                        <SidebarMenuSub>\n                          {item.items?.map((subItem) => (\n                            <SidebarMenuSubItem key={subItem.title}>\n                              <SidebarMenuSubButton\n                                asChild\n                                isActive={pathname === subItem.url}\n                                className=\"h-10 px-2.5 rounded-lg text-neutral-500 dark:text-neutral-400 font-normal text-[15.5px] tracking-tight data-[active=true]:text-white! data-[active=true]:bg-orange-500 data-[active=true]:shadow-[inset_2px_4px_8px_rgba(255,255,255,0.4),inset_-2px_-4px_8px_rgba(0,0,0,0.3)] hover:bg-[#f8f8f8] dark:hover:bg-neutral-800 hover:shadow-[inset_2px_2px_5px_rgba(0,0,0,0.08),inset_-2px_-2px_5px_rgba(255,255,255,1)] dark:hover:shadow-[inset_2px_2px_5px_rgba(0,0,0,0.4),inset_-2px_-2px_5px_rgba(255,255,255,0.05)] hover:text-neutral-500! dark:hover:text-neutral-400! transition-colors duration-300 cursor-pointer\"\n                              >\n                                <a href={subItem.url} onClick={(e) => subItem.isDisabled && e.preventDefault()}>\n                                  {subItem.icon && <subItem.icon className=\"size-5! text-neutral-500! dark:text-neutral-400! data-[active=true]:text-white!\" />}\n                                  <span>{subItem.title}</span>\n                                </a>\n                              </SidebarMenuSubButton>\n                            </SidebarMenuSubItem>\n                          ))}\n                        </SidebarMenuSub>\n                      </CollapsibleContent>\n                    </>\n                  ) : (\n                    <SidebarMenuButton\n                      asChild\n                      tooltip={item.title}\n                      isActive={currentView ? (item.title === \"Activity stream\" && currentView === \"Activity Stream\") : item.isActive}\n                      className=\"h-10 px-2.5 rounded-lg text-neutral-500 dark:text-neutral-400 font-normal text-[15.5px] tracking-tight data-[active=true]:text-white! data-[active=true]:bg-orange-500 data-[active=true]:shadow-[inset_2px_4px_8px_rgba(255,255,255,0.4),inset_-2px_-4px_8px_rgba(0,0,0,0.3)] hover:bg-[#f8f8f8] dark:hover:bg-neutral-800 hover:shadow-[inset_2px_2px_5px_rgba(0,0,0,0.08),inset_-2px_-2px_5px_rgba(255,255,255,1)] dark:hover:shadow-[inset_2px_2px_5px_rgba(0,0,0,0.4),inset_-2px_-2px_5px_rgba(255,255,255,0.05)] hover:text-neutral-500 dark:hover:text-neutral-400 transition-colors duration-300 cursor-pointer\"\n                    >\n                      <a\n                        href={item.url}\n                        onClick={(e) => {\n                          if (item.isDisabled) {\n                            e.preventDefault()\n                            return\n                          }\n                          if (item.title === \"Activity stream\" && onNavigate) {\n                            e.preventDefault()\n                            onNavigate(\"Activity Stream\")\n                          }\n                        }}\n                      >\n                        {item.icon && <item.icon className=\"size-5!\" />}\n                        <span>{item.title}</span>\n                      </a>\n                    </SidebarMenuButton>\n                  )}\n                </SidebarMenuItem>\n              </Collapsible>\n            ))}\n          </SidebarMenu>\n        </SidebarGroup>\n\n        <SidebarGroup>\n          <SidebarGroupContent className=\"px-2\">\n            <Collapsible open={openPinned} onOpenChange={setOpenPinned}>\n              <CollapsibleTrigger asChild>\n                <SidebarGroupLabel className=\"cursor-pointer\" asChild>\n                  <div className=\"flex items-center justify-between gap-1.5 text-neutral-400! dark:text-neutral-500! font-normal tracking-tight text-[15px]\">\n                    Pinned monitors <ChevronDown className={`size-3.5! transition-transform ${openPinned ? \"rotate-180\" : \"\"}`} />\n                  </div>\n                </SidebarGroupLabel>\n              </CollapsibleTrigger>\n              <CollapsibleContent>\n                <SidebarMenu className=\"px-1.5\">\n                  {data.pinnedMonitors.map((item) => (\n                    <SidebarMenuItem key={item.title}>\n                      <SidebarMenuButton\n                        asChild\n                        isActive={pathname === item.url}\n                        className=\"h-9 rounded-sm hover:bg-[#f8f8f8] dark:hover:bg-neutral-800 hover:shadow-[inset_2px_2px_5px_rgba(0,0,0,0.08),inset_-2px_-2px_5px_rgba(255,255,255,1)] dark:hover:shadow-[inset_2px_2px_5px_rgba(0,0,0,0.4),inset_-2px_-2px_5px_rgba(255,255,255,0.05)] hover:text-neutral-500 dark:hover:text-neutral-400 data-[active=true]:text-white! data-[active=true]:bg-orange-500 data-[active=true]:shadow-[inset_2px_4px_8px_rgba(255,255,255,0.4),inset_-2px_-4px_8px_rgba(0,0,0,0.3)] text-neutral-500 dark:text-neutral-400 font-normal tracking-tight text-[15px] transition-colors duration-300 cursor-pointer\"\n                      >\n                        <a href={item.url} onClick={(e) => item.isDisabled && e.preventDefault()}>\n                          <item.icon className=\"size-5!\" />\n                          {item.title}\n                        </a>\n                      </SidebarMenuButton>\n                    </SidebarMenuItem>\n                  ))}\n                </SidebarMenu>\n              </CollapsibleContent>\n            </Collapsible>\n          </SidebarGroupContent>\n        </SidebarGroup>\n\n        <SidebarGroup>\n          <SidebarGroupContent className=\"px-2.5\">\n            <Collapsible open={openOperator} onOpenChange={setOpenOperator}>\n              <CollapsibleTrigger asChild>\n                <SidebarGroupLabel className=\"cursor-pointer\" asChild>\n                  <div className=\"flex items-center justify-between gap-1.5 text-neutral-400! dark:text-neutral-500! font-normal tracking-tight text-[15px]\">\n                    Operator console <ChevronDown className={`size-3.5! transition-transform ${openOperator ? \"rotate-180\" : \"\"}`} />\n                  </div>\n                </SidebarGroupLabel>\n              </CollapsibleTrigger>\n              <CollapsibleContent>\n                <SidebarMenu className=\"px-1.5\">\n                  {data.operatorConsole.map((item) => (\n                    <SidebarMenuItem key={item.title}>\n                      <SidebarMenuButton\n                        asChild\n                        isActive={pathname === item.url}\n                        className=\"h-9 rounded-sm hover:bg-[#f8f8f8] dark:hover:bg-neutral-800 hover:shadow-[inset_2px_2px_5px_rgba(0,0,0,0.08),inset_-2px_-2px_5px_rgba(255,255,255,1)] dark:hover:shadow-[inset_2px_2px_5px_rgba(0,0,0,0.4),inset_-2px_-2px_5px_rgba(255,255,255,0.05)] hover:text-neutral-500 dark:hover:text-neutral-400 data-[active=true]:text-white! data-[active=true]:bg-orange-500 data-[active=true]:shadow-[inset_2px_4px_8px_rgba(255,255,255,0.4),inset_-2px_-4px_8px_rgba(0,0,0,0.3)] text-neutral-500 dark:text-neutral-400 font-normal tracking-tight text-[15px] transition-colors duration-300 cursor-pointer\"\n                      >\n                        <a href={item.url} onClick={(e) => item.isDisabled && e.preventDefault()}>\n                          <item.icon className=\"size-5!\" />\n                          {item.title}\n                        </a>\n                      </SidebarMenuButton>\n                    </SidebarMenuItem>\n                  ))}\n                </SidebarMenu>\n              </CollapsibleContent>\n            </Collapsible>\n          </SidebarGroupContent>\n        </SidebarGroup>\n      </SidebarContent>\n\n      <SidebarFooter>\n        <SidebarMenu>\n          <SidebarMenuItem>\n            <DropdownMenu>\n              <DropdownMenuTrigger asChild>\n                <SidebarMenuButton\n                  size=\"lg\"\n                  className=\"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground transition-colors duration-300 cursor-pointer\"\n                >\n                  <Avatar className=\"h-8 w-8 rounded-full\">\n                    <AvatarImage\n                      src=\"https://github.com/shadcn.png\"\n                      alt=\"@shadcn\"\n                      className=\"grayscale\"\n                    />\n                    <AvatarFallback className=\"rounded-lg\">SS</AvatarFallback>\n                  </Avatar>\n                  <div className=\"grid flex-1 text-left text-sm leading-tight\">\n                    <span className=\"truncate font-medium\">{data.user.name}</span>\n                    <span className=\"truncate text-xs\">{data.user.email}</span>\n                  </div>\n                  <ChevronsUpDown className=\"ml-auto size-4\" />\n                </SidebarMenuButton>\n              </DropdownMenuTrigger>\n            </DropdownMenu>\n          </SidebarMenuItem>\n        </SidebarMenu>\n      </SidebarFooter>\n      <SidebarRail />\n    </Sidebar>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/watermelon/incident-management/components/app-sidebar.tsx"
    },
    {
      "path": "src/components/dashboards/incident-management/components/search-form.tsx",
      "content": "import { CommandIcon, Search } from \"lucide-react\"\n\nimport { Label } from \"@/components/ui/label\"\nimport {\n  SidebarGroup,\n  SidebarGroupContent,\n  SidebarInput,\n} from \"@/components/ui/sidebar\"\n\nexport function SearchForm({ ...props }: React.ComponentProps<\"form\">) {\n  return (\n    <form {...props}>\n      <SidebarGroup className=\"pb-1 pt-2 pl-4 pr-2\">\n        <SidebarGroupContent className=\"relative\">\n          <Label htmlFor=\"search\" className=\"sr-only\">\n            Search\n          </Label>\n          <SidebarInput\n            id=\"search\"\n            placeholder=\"Search\"\n            className=\"pl-8 bg-neutral-100/50 dark:bg-neutral-900! border-neutral-200 dark:border-neutral-800 text-neutral-900 dark:text-neutral-100 placeholder:text-neutral-400 dark:placeholder:text-neutral-500 h-9 rounded-lg focus-visible:ring-0 focus-visible:ring-offset-0 focus-visible:border-neutral-400 dark:focus-visible:border-neutral-600 outline-none shadow-none\"\n          />\n          <Search className=\"pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-neutral-400 dark:text-neutral-500 select-none\" />\n          <div className=\"absolute right-2.5 top-1/2 -translate-y-1/2 flex items-center gap-0.5 px-1.5 py-0.5 border-neutral-200 dark:border-neutral-800 bg-neutral-50 dark:bg-neutral-800 text-neutral-400 dark:text-neutral-500 pointer-events-none rounded-sm shadow-[inset_2px_2px_5px_rgba(0,0,0,0.08),inset_-2px_-2px_5px_rgba(255,255,255,1)] dark:shadow-[inset_2px_2px_5px_rgba(0,0,0,0.4),inset_-2px_-2px_5px_rgba(255,255,255,0.05)]\">\n            <span className=\"font-medium\"><CommandIcon className=\"size-3\" /></span>\n            <span className=\"text-[12px] font-medium\">K</span>\n          </div>\n        </SidebarGroupContent>\n      </SidebarGroup>\n    </form>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/watermelon/incident-management/components/search-form.tsx"
    },
    {
      "path": "src/components/dashboards/incident-management/dashboardLayout.tsx",
      "content": "import { AppSidebar } from \"./components/app-sidebar\"\nimport {\n    SidebarInset,\n    SidebarProvider,\n} from \"@/components/ui/sidebar\"\n\n\nexport const DashboardLayout = ({ children, onNavigate, currentView }: { children: React.ReactNode; onNavigate?: (view: string) => void; currentView?: string }) => {\n    return (\n        <SidebarProvider className=\"h-svh overflow-hidden\">\n            <AppSidebar onNavigate={onNavigate} currentView={currentView} />\n            <SidebarInset className=\"overflow-hidden min-h-0\">\n                {children}\n            </SidebarInset>\n        </SidebarProvider>\n    )\n}",
      "type": "registry:component",
      "target": "components/watermelon/incident-management/dashboardLayout.tsx"
    },
    {
      "path": "src/components/dashboards/incident-management/demo.tsx",
      "content": "import { useState } from 'react'\nimport { DashboardLayout } from './dashboardLayout'\nimport { ActiveStreamViews } from './activeStreamViews'\n\nexport default function IncidentManagementDashboardDemo() {\n    const [currentView, setCurrentView] = useState(\"Activity Stream\");\n\n    const renderContent = () => {\n        switch (currentView) {\n            case \"Activity Stream\":\n                return <ActiveStreamViews />;\n            default:\n                return <ActiveStreamViews />;\n        }\n    };\n\n    return (\n        <DashboardLayout onNavigate={setCurrentView} currentView={currentView}>\n            {renderContent()}\n        </DashboardLayout>\n    )\n}\n",
      "type": "registry:component",
      "target": "components/watermelon/incident-management/demo.tsx"
    }
  ],
  "type": "registry:block"
}
