{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "workflow-management-dashboard",
  "dependencies": [
    "@tabler/icons-react",
    "class-variance-authority",
    "cmdk",
    "lucide-react",
    "next-themes",
    "zustand"
  ],
  "registryDependencies": [
    "alert-dialog",
    "avatar",
    "badge",
    "button",
    "card",
    "checkbox",
    "combobox",
    "dialog",
    "drawer",
    "dropdown-menu",
    "field",
    "input",
    "input-group",
    "label",
    "popover",
    "scroll-area",
    "select",
    "separator",
    "sheet",
    "sidebar",
    "skeleton",
    "switch",
    "tabs",
    "textarea",
    "tooltip",
    "use-mobile",
    "utils"
  ],
  "files": [
    {
      "path": "src/components/dashboards/workflow-management-dashboard/components/app-sidebar.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport {\n  Sidebar,\n  SidebarContent,\n  SidebarFooter,\n  SidebarHeader,\n  SidebarMenu,\n  SidebarMenuButton,\n  SidebarMenuItem,\n} from \"@/components/ui/sidebar\";\nimport { NavMain } from \"./nav-main\";\nimport { NavApps } from \"./nav-products\";\nimport { NavSecondary } from \"./nav-options\";\n\nimport {\n  IconHome,\n  IconChecklist,\n  IconNews,\n  IconHeartbeat,\n  IconTargetArrow,\n  IconCalendarEvent,\n  IconLayoutDashboard,\n  IconUsers,\n  IconBuilding,\n  IconBroadcast,\n  IconBriefcase,\n  IconSchool,\n  IconSettings,\n  IconPlayerRecord,\n} from \"@tabler/icons-react\";\nimport { TeamSwitcher } from \"./team-switcher\";\nimport { BellIcon, Search, User, Settings, CreditCard, CheckCircle2, MessageSquare, AlertCircle } from \"lucide-react\";\nimport { Button } from \"@/components/ui/button\";\nimport {\n  Command,\n  CommandEmpty,\n  CommandGroup,\n  CommandInput,\n  CommandItem,\n  CommandList,\n  CommandSeparator,\n} from \"cmdk\";\nimport {\n  Dialog,\n  DialogContent,\n  DialogHeader,\n  DialogTitle,\n  DialogDescription,\n} from \"@/components/ui/dialog\";\nimport {\n  Popover,\n  PopoverContent,\n  PopoverHeader,\n  PopoverTitle,\n  PopoverTrigger,\n} from \"@/components/ui/popover\";\nimport { Badge } from \"@/components/ui/badge\";\nimport { ScrollArea } from \"@/components/ui/scroll-area\";\n\nexport const data = {\n  teams: [\n    {\n      name: \"Watermelon\",\n      logo: IconHome,\n      plan: \"Free\",\n    },\n  ],\n\n  navMain: [\n    {\n      title: \"Home\",\n      url: \"/home\",\n      icon: IconHome,\n    },\n    {\n      title: \"Tasks\",\n      url: \"/tasks\",\n      icon: IconChecklist,\n      isActive: true,\n    },\n    {\n      title: \"Feed\",\n      url: \"/feed\",\n      icon: IconNews,\n    },\n  ],\n\n  apps: [\n    {\n      title: \"Health\",\n      url: \"/health\",\n      icon: IconHeartbeat,\n      className: \"text-green-500\",\n    },\n    {\n      title: \"Opportunities\",\n      url: \"/opportunities\",\n      icon: IconTargetArrow,\n      className: \"text-blue-500\",\n    },\n    {\n      title: \"Meetings\",\n      url: \"/meetings\",\n      icon: IconCalendarEvent,\n      className: \"text-purple-500\",\n    },\n    {\n      title: \"Dashboards\",\n      url: \"/dashboards\",\n      icon: IconLayoutDashboard,\n      className: \"text-yellow-500\",\n    },\n  ],\n\n  records: [\n    {\n      title: \"People\",\n      url: \"/people\",\n      icon: IconUsers,\n    },\n    {\n      title: \"Companies\",\n      url: \"/companies\",\n      icon: IconBuilding,\n    },\n    {\n      title: \"Recordings\",\n      url: \"/recordings\",\n      icon: IconPlayerRecord,\n    },\n  ],\n\n  browse: [\n    {\n      title: \"Broadcasts\",\n      url: \"/broadcasts\",\n      icon: IconBroadcast,\n    },\n    {\n      title: \"Jobs\",\n      url: \"/jobs\",\n      icon: IconBriefcase,\n    },\n    {\n      title: \"Skills\",\n      url: \"/skills\",\n      icon: IconSchool,\n    },\n  ],\n\n  options: [\n    {\n      title: \"Settings\",\n      url: \"/settings\",\n      icon: IconSettings,\n    },\n  ],\n};\n\nexport function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {\n  const [open, setOpen] = React.useState(false);\n\n  React.useEffect(() => {\n    const down = (e: KeyboardEvent) => {\n      if (e.key === \"k\" && (e.metaKey || e.ctrlKey)) {\n        e.preventDefault();\n        setOpen((open) => !open);\n      }\n    };\n    document.addEventListener(\"keydown\", down);\n    return () => document.removeEventListener(\"keydown\", down);\n  }, []);\n\n  return (\n    <Sidebar collapsible=\"icon\" {...props}>\n      <SidebarHeader className=\"\">\n        <SidebarMenu>\n          <SidebarMenuItem className=\"flex items-center gap-2 \">\n            <TeamSwitcher teams={data.teams} />\n\n            <div className=\"flex items-center justify-center text-muted-foreground group-data-[collapsible=icon]:hidden\">\n              <Button\n                variant=\"ghost\"\n                size=\"sm\"\n                className=\" p-1 text-sm font-medium text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors cursor-pointer\"\n                onClick={() => setOpen(true)}\n              >\n                <Search className=\"size-4\" />\n              </Button>\n              <Dialog open={open} onOpenChange={setOpen}>\n                <DialogContent className=\"p-0 overflow-hidden sm:max-w-2xl border-none shadow-2xl bg-transparent\">\n                  <DialogHeader className=\"sr-only\">\n                    <DialogTitle>Search</DialogTitle>\n                    <DialogDescription>Search for tasks, dashboards, and more.</DialogDescription>\n                  </DialogHeader>\n                  <Command className=\"rounded-xl border shadow-md bg-popover text-popover-foreground overflow-hidden\">\n                    <div className=\"flex items-center border-b px-3 h-12\" cmdk-input-wrapper=\"\">\n                      <Search className=\"mr-2 h-4 w-4 shrink-0 opacity-50\" />\n                      <CommandInput\n                        placeholder=\"Type a command or search...\"\n                        className=\"flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50\"\n                      />\n                    </div>\n                    <CommandList className=\"max-h-[300px] overflow-y-auto overflow-x-hidden p-2\">\n                      <CommandEmpty className=\"py-6 text-center text-sm\">No results found.</CommandEmpty>\n                      <CommandGroup heading=\"Suggestions\" className=\"overflow-hidden text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground\">\n                        <CommandItem className=\"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 hover:bg-muted/50 transition-colors\">\n                          <IconChecklist className=\"mr-2 h-4 w-4\" />\n                          <span>Tasks</span>\n                        </CommandItem>\n                        <CommandItem className=\"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 hover:bg-muted/50 transition-colors\">\n                          <IconLayoutDashboard className=\"mr-2 h-4 w-4\" />\n                          <span>Dashboards</span>\n                        </CommandItem>\n                        <CommandItem className=\"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 hover:bg-muted/50 transition-colors\">\n                          <IconCalendarEvent className=\"mr-2 h-4 w-4\" />\n                          <span>Calendar</span>\n                        </CommandItem>\n                      </CommandGroup>\n                      <CommandSeparator className=\"-mx-1 h-px bg-border my-2\" />\n                      <CommandGroup heading=\"Settings\" className=\"overflow-hidden text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground\">\n                        <CommandItem className=\"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 hover:bg-muted/50 transition-colors\">\n                          <User className=\"mr-2 h-4 w-4\" />\n                          <span>Profile</span>\n                        </CommandItem>\n                        <CommandItem className=\"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 hover:bg-muted/50 transition-colors\">\n                          <CreditCard className=\"mr-2 h-4 w-4\" />\n                          <span>Billing</span>\n                        </CommandItem>\n                        <CommandItem className=\"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 cursor-pointer hover:bg-muted/50 transition-colors\">\n                          <Settings className=\"mr-2 h-4 w-4\" />\n                          <span>Settings</span>\n                        </CommandItem>\n                      </CommandGroup>\n                    </CommandList>\n                  </Command>\n                </DialogContent>\n              </Dialog>\n\n              <Popover>\n                <PopoverTrigger asChild>\n                  <Button\n                    variant=\"ghost\"\n                    size=\"sm\"\n                    className=\"p-1 text-sm font-medium text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors cursor-pointer\"\n                  >\n                    <div className=\"relative\">\n                      <BellIcon className=\"size-4\" />\n                      <span className=\"absolute -top-1 -right-1 flex h-2 w-2\">\n                        <span className=\"animate-ping absolute inline-flex h-full w-full rounded-full bg-blue-400 opacity-75\"></span>\n                        <span className=\"relative inline-flex rounded-full h-2 w-2 bg-blue-500\"></span>\n                      </span>\n                    </div>\n                  </Button>\n                </PopoverTrigger>\n                <PopoverContent className=\"w-80 p-0\" align=\"start\">\n                  <PopoverHeader className=\"px-4 py-3 border-b border-border/50\">\n                    <PopoverTitle className=\"text-sm font-semibold flex items-center justify-between\">\n                      Notifications\n                      <Badge variant=\"outline\" className=\"text-[10px] font-bold px-1.5 py-0\">3 New</Badge>\n                    </PopoverTitle>\n                  </PopoverHeader>\n                  <ScrollArea className=\"h-[300px]\">\n                    <div className=\"flex flex-col\">\n                      <div className=\"flex items-start gap-3 p-4 hover:bg-muted/50 transition-colors cursor-pointer border-b border-border/30\">\n                        <div className=\"size-8 rounded-full bg-blue-100 dark:bg-blue-900/30 flex items-center justify-center shrink-0\">\n                          <CheckCircle2 className=\"size-4 text-blue-600 dark:text-blue-400\" />\n                        </div>\n                        <div className=\"flex flex-col gap-1\">\n                          <p className=\"text-xs font-medium\">Task \"API Integration\" completed</p>\n                          <p className=\"text-[10px] text-muted-foreground\">2 minutes ago • Project Alpha</p>\n                        </div>\n                      </div>\n                      <div className=\"flex items-start gap-3 p-4 hover:bg-muted/50 transition-colors cursor-pointer border-b border-border/30\">\n                        <div className=\"size-8 rounded-full bg-orange-100 dark:bg-orange-900/30 flex items-center justify-center shrink-0\">\n                          <MessageSquare className=\"size-4 text-orange-600 dark:text-orange-400\" />\n                        </div>\n                        <div className=\"flex flex-col gap-1\">\n                          <p className=\"text-xs font-medium\">New comment on \"Design Review\"</p>\n                          <p className=\"text-[10px] text-muted-foreground\">1 hour ago • By Sarah Miller</p>\n                        </div>\n                      </div>\n                      <div className=\"flex items-start gap-3 p-4 hover:bg-muted/50 transition-colors cursor-pointer\">\n                        <div className=\"size-8 rounded-full bg-red-100 dark:bg-red-900/30 flex items-center justify-center shrink-0\">\n                          <AlertCircle className=\"size-4 text-red-600 dark:text-red-400\" />\n                        </div>\n                        <div className=\"flex flex-col gap-1\">\n                          <p className=\"text-xs font-medium\">Deadline approaching: \"Sprint 4\"</p>\n                          <p className=\"text-[10px] text-muted-foreground\">Yesterday • Urgent action required</p>\n                        </div>\n                      </div>\n                    </div>\n                  </ScrollArea>\n                  <div className=\"p-3 bg-muted/30 border-t border-border/50 text-center\">\n                    <Button variant=\"link\" size=\"sm\" className=\"h-auto p-0 text-[11px] font-semibold text-blue-600\">\n                      View all notifications\n                    </Button>\n                  </div>\n                </PopoverContent>\n              </Popover>\n            </div>\n          </SidebarMenuItem>\n        </SidebarMenu>\n      </SidebarHeader>\n      <SidebarContent>\n        <NavMain items={data.navMain} />\n        <NavApps items={data.apps} />\n        <NavSecondary items={data.records} />\n      </SidebarContent>\n      <SidebarFooter>\n        <SidebarMenuItem>\n          <SidebarMenuButton tooltip=\"Options\" className=\" data-[active=true]:bg-white dark:data-[active=true]:bg-black data-[active=true]:text-zinc-900 dark:data-[active=true]:text-white data-[active=true]:hover:bg-zinc-100 dark:data-[active=true]:hover:bg-zinc-800 data-[active=true]:hover:text-zinc-900 data-[active=true]:shadow-sm rounded-none transition-colors outline-none focus-visible:ring-0\">\n            <IconSettings />\n            <span>Options</span>\n          </SidebarMenuButton>\n        </SidebarMenuItem>\n      </SidebarFooter>\n    </Sidebar>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/watermelon/workflow-management-dashboard/components/app-sidebar.tsx"
    },
    {
      "path": "src/components/dashboards/workflow-management-dashboard/components/header.tsx",
      "content": "import { Settings } from \"lucide-react\";\nimport { Separator } from \"@/components/ui/separator\";\nimport { SidebarTrigger } from \"@/components/ui/sidebar\";\nimport { Tabs, TabsList, TabsTrigger } from \"@/components/ui/tabs\";\nimport { ModeToggle } from \"./theme-toggle\";\nimport { Button } from \"@/components/ui/button\";\nimport {\n  Dialog,\n  DialogContent,\n  DialogDescription,\n  DialogHeader,\n  DialogTitle,\n  DialogTrigger,\n} from \"@/components/ui/dialog\";\nimport { Label } from \"@/components/ui/label\";\nimport { Switch } from \"@/components/ui/switch\";\n\nexport default function Header() {\n  return (\n    <div className=\"flex h-14 items-center justify-between border-b border-border bg-background px-3 md:px-4\">\n      <div className=\"flex items-center justify-between  w-full\">\n        <div className=\"flex items-center gap-2\">\n          <div className=\"flex items-center gap-2\">\n            <SidebarTrigger />\n            <p className=\"text-foreground\">Tasks</p>\n          </div>\n          <Separator\n            className=\"h-4 w-1 bg-border mt-2 \"\n            orientation=\"vertical\"\n          />\n          <div className=\" hidden md:block\">\n            <Tabs defaultValue=\"all\" className=\"w-full\">\n              <TabsList className=\"h-8 w-full justify-start bg-transparent p-0 gap-1\">\n                <TabsTrigger\n                  value=\"all\"\n                  className=\"h-7 px-3 text-[12px] rounded-md data-[state=active]:bg-neutral-100 data-[state=active]:border-border data-[state=active]:border data-[state=active]:text-muted-foreground transition-colors hover:bg-muted\"\n                >\n                  All tasks\n                </TabsTrigger>\n                <TabsTrigger\n                  value=\"team\"\n                  disabled\n                  className=\"h-7 px-3 text-[12px] rounded-md data-[state=active]:bg-neutral-100 data-[state=active]:border-border data-[state=active]:border data-[state=active]:text-muted-foreground transition-colors hover:bg-muted\"\n                >\n                  Tasks team\n                </TabsTrigger>\n                <TabsTrigger\n                  value=\"sales\"\n                  disabled\n                  className=\"h-7 px-3 text-[12px] rounded-md data-[state=active]:bg-neutral-100 data-[state=active]:border-border data-[state=active]:border data-[state=active]:text-muted-foreground transition-colors hover:bg-muted\"\n                >\n                  Sales\n                </TabsTrigger>\n              </TabsList>\n            </Tabs>\n          </div>\n        </div>\n        <div className=\"flex items-center gap-2 text-muted-foreground font-medium mr-2\">\n          <Dialog>\n            <DialogTrigger asChild>\n              <Button className=\"flex items-center gap-2 bg-transparent text-muted-foreground hover:bg-muted/50 transition-colors group shadow-none\">\n                <Settings className=\" size-4\" />\n                <span className=\"text-sm\">Configure</span>\n              </Button>\n            </DialogTrigger>\n            <DialogContent className=\"sm:max-w-[425px]\">\n              <DialogHeader>\n                <DialogTitle>Configure Board</DialogTitle>\n                <DialogDescription>\n                  Adjust your board settings and workflow preferences.\n                </DialogDescription>\n              </DialogHeader>\n              <div className=\"grid gap-4 py-4\">\n                <div className=\"flex items-center justify-between space-x-2\">\n                  <Label htmlFor=\"show-labels\" className=\"flex flex-col space-y-1\">\n                    <span>Show Labels</span>\n                    <span className=\"font-normal leading-snug text-muted-foreground\">\n                      Display task labels on the card overview.\n                    </span>\n                  </Label>\n                  <Switch id=\"show-labels\" defaultChecked />\n                </div>\n                <div className=\"flex items-center justify-between space-x-2\">\n                  <Label htmlFor=\"auto-assign\" className=\"flex flex-col space-y-1\">\n                    <span>Auto-assign Tasks</span>\n                    <span className=\"font-normal leading-snug text-muted-foreground\">\n                      Automatically assign new tasks to team members.\n                    </span>\n                  </Label>\n                  <Switch id=\"auto-assign\" />\n                </div>\n              </div>\n            </DialogContent>\n          </Dialog>\n\n          <Separator\n            className=\"h-4 w-1 bg-border mt-2 \"\n            orientation=\"vertical\"\n          />\n          {/* <MessageCircle className=\"text-muted-foreground size-4\" /> */}\n          <ModeToggle />\n        </div>\n      </div>\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/watermelon/workflow-management-dashboard/components/header.tsx"
    },
    {
      "path": "src/components/dashboards/workflow-management-dashboard/components/nav-footer.tsx",
      "content": "\"use client\";\n\nimport {\n  IconCreditCard,\n  IconDotsVertical,\n  IconLogout,\n  IconNotification,\n  IconUserCircle,\n} from \"@tabler/icons-react\";\n\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\";\nimport {\n  DropdownMenu,\n  DropdownMenuContent,\n  DropdownMenuGroup,\n  DropdownMenuItem,\n  DropdownMenuLabel,\n  DropdownMenuSeparator,\n  DropdownMenuTrigger,\n} from \"@/components/ui/dropdown-menu\";\nimport {\n  SidebarMenu,\n  SidebarMenuButton,\n  SidebarMenuItem,\n  useSidebar,\n} from \"@/components/ui/sidebar\";\n\nexport function NavUser({\n  user,\n}: {\n  user: {\n    name: string;\n    email: string;\n    avatar: string;\n  };\n}) {\n  const { isMobile } = useSidebar();\n\n  return (\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 outline-none focus-visible:ring-0\"\n            >\n              <Avatar className=\"h-8 w-8 rounded-none grayscale\">\n                <AvatarImage src={user.avatar} alt={user.name} />\n                <AvatarFallback className=\"rounded-none bg-zinc-200\">CN</AvatarFallback>\n              </Avatar>\n              <div className=\"grid flex-1 text-left text-sm leading-tight\">\n                <span className=\"truncate font-medium\">{user.name}</span>\n                <span className=\"text-muted-foreground truncate text-xs\">\n                  {user.email}\n                </span>\n              </div>\n              <IconDotsVertical className=\"ml-auto size-4\" />\n            </SidebarMenuButton>\n          </DropdownMenuTrigger>\n          <DropdownMenuContent\n            className=\"w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg\"\n            side={isMobile ? \"bottom\" : \"right\"}\n            align=\"end\"\n            sideOffset={4}\n          >\n            <DropdownMenuLabel className=\"p-0 font-normal\">\n              <div className=\"flex items-center gap-2 px-1 py-1.5 text-left text-sm\">\n                <Avatar className=\"h-8 w-8 rounded-lg\">\n                  <AvatarImage src={user.avatar} alt={user.name} />\n                  <AvatarFallback className=\"rounded-lg\">CN</AvatarFallback>\n                </Avatar>\n                <div className=\"grid flex-1 text-left text-sm leading-tight\">\n                  <span className=\"truncate font-medium\">{user.name}</span>\n                  <span className=\"text-muted-foreground truncate text-xs\">\n                    {user.email}\n                  </span>\n                </div>\n              </div>\n            </DropdownMenuLabel>\n            <DropdownMenuSeparator />\n            <DropdownMenuGroup>\n              <DropdownMenuItem>\n                <IconUserCircle />\n                Account\n              </DropdownMenuItem>\n              <DropdownMenuItem>\n                <IconCreditCard />\n                Billing\n              </DropdownMenuItem>\n              <DropdownMenuItem>\n                <IconNotification />\n                Notifications\n              </DropdownMenuItem>\n            </DropdownMenuGroup>\n            <DropdownMenuSeparator />\n            <DropdownMenuItem>\n              <IconLogout />\n              Log out\n            </DropdownMenuItem>\n          </DropdownMenuContent>\n        </DropdownMenu>\n      </SidebarMenuItem>\n    </SidebarMenu>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/watermelon/workflow-management-dashboard/components/nav-footer.tsx"
    },
    {
      "path": "src/components/dashboards/workflow-management-dashboard/components/nav-main.tsx",
      "content": "\"use client\";\n\nimport { type Icon } from \"@tabler/icons-react\";\n\nimport {\n  SidebarGroup,\n  SidebarGroupContent,\n  SidebarMenu,\n  SidebarMenuButton,\n  SidebarMenuItem,\n} from \"@/components/ui/sidebar\";\n\nexport function NavMain({\n  items,\n}: {\n  items: {\n    title: string;\n    url: string;\n    icon?: Icon;\n    isActive?: boolean;\n  }[];\n}) {\n  return (\n    <SidebarGroup className=\"\">\n      <SidebarGroupContent className=\"flex flex-col gap-0\">\n        <SidebarMenu className=\"gap-\">\n          {items.map((item) => (\n            <SidebarMenuItem key={item.title}>\n              <SidebarMenuButton\n                tooltip={item.title}\n                isActive={item.isActive}\n                className=\" data-[active=true]:bg-white dark:data-[active=true]:bg-black data-[active=true]:text-zinc-900 dark:data-[active=true]:text-white data-[active=true]:hover:bg-zinc-100 dark:data-[active=true]:hover:bg-zinc-800 data-[active=true]:hover:text-zinc-900 data-[active=true]:shadow-sm rounded-none transition-colors outline-none focus-visible:ring-0\"\n              >\n                {item.icon && <item.icon />}\n                <span>{item.title}</span>\n              </SidebarMenuButton>\n            </SidebarMenuItem>\n          ))}\n        </SidebarMenu>\n      </SidebarGroupContent>\n    </SidebarGroup>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/watermelon/workflow-management-dashboard/components/nav-main.tsx"
    },
    {
      "path": "src/components/dashboards/workflow-management-dashboard/components/nav-options.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\nimport { type Icon } from \"@tabler/icons-react\";\n\nimport {\n  SidebarGroup,\n  SidebarGroupContent,\n  SidebarGroupLabel,\n  SidebarMenu,\n  SidebarMenuButton,\n  SidebarMenuItem,\n} from \"@/components/ui/sidebar\";\n\n\nexport function NavSecondary({\n  items,\n  ...props\n}: {\n  items: {\n    title: string;\n    url: string;\n    icon: Icon;\n  }[];\n} & React.ComponentPropsWithoutRef<typeof SidebarGroup>) {\n  return (\n    <SidebarGroup {...props}>\n      <SidebarGroupContent>\n        <SidebarGroupLabel className=\"font-mono text-md\">Records</SidebarGroupLabel>\n        <SidebarMenu className=\"gap-0\">\n          {items.map((item) => (\n            <SidebarMenuItem key={item.title}>\n              <SidebarMenuButton\n                tooltip={item.title}\n                className=\" data-[active=true]:bg-white dark:data-[active=true]:bg-black data-[active=true]:text-zinc-900 dark:data-[active=true]:text-white data-[active=true]:hover:bg-zinc-100 dark:data-[active=true]:hover:bg-zinc-800 data-[active=true]:hover:text-zinc-900 data-[active=true]:shadow-sm rounded-none transition-colors outline-none focus-visible:ring-0\"\n              >\n                <item.icon />\n                <span>{item.title}</span>\n              </SidebarMenuButton>\n            </SidebarMenuItem>\n          ))}\n        </SidebarMenu>\n\n      </SidebarGroupContent>\n    </SidebarGroup>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/watermelon/workflow-management-dashboard/components/nav-options.tsx"
    },
    {
      "path": "src/components/dashboards/workflow-management-dashboard/components/nav-products.tsx",
      "content": "\"use client\";\n\nimport {\n  type Icon,\n} from \"@tabler/icons-react\";\nimport {\n  SidebarGroup,\n  SidebarGroupContent,\n  SidebarGroupLabel,\n  SidebarMenu,\n  SidebarMenuButton,\n  SidebarMenuItem,\n} from \"@/components/ui/sidebar\";\n\nexport function NavApps({\n  items,\n}: {\n  items: {\n    title: string;\n    url: string;\n    icon: Icon;\n    className: string\n  }[];\n}) {\n\n  return (\n    <SidebarGroup >\n      <SidebarGroupContent>\n        <SidebarGroupLabel className=\"font-mono text-sm \">\n          Apps\n        </SidebarGroupLabel>\n        <SidebarMenu className=\"gap-0\">\n          {items.map((item) => (\n            <SidebarMenuItem key={item.title}>\n              <SidebarMenuButton\n                tooltip={item.title}\n                className=\" data-[active=true]:bg-white dark:data-[active=true]:bg-black data-[active=true]:text-zinc-900 dark:data-[active=true]:text-white data-[active=true]:hover:bg-zinc-100 dark:data-[active=true]:hover:bg-zinc-800 data-[active=true]:hover:text-zinc-900 data-[active=true]:shadow-sm rounded-none transition-colors outline-none focus-visible:ring-0\"\n              >\n                <item.icon className={item.className} />\n                <span>{item.title}</span>\n              </SidebarMenuButton>\n            </SidebarMenuItem>\n          ))}\n        </SidebarMenu>\n      </SidebarGroupContent>\n    </SidebarGroup>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/watermelon/workflow-management-dashboard/components/nav-products.tsx"
    },
    {
      "path": "src/components/dashboards/workflow-management-dashboard/components/store/task-store.tsx",
      "content": "import { create } from \"zustand\";\n\nexport interface SubTask {\n  id: string;\n  title: string;\n  completed: boolean;\n}\n\nexport interface TaskMessage {\n  author: string;\n  platform: string;\n  timestamp: string;\n  content: string;\n  avatar?: string;\n}\n\nexport interface TimelineEvent {\n  event: string;\n  date: string;\n}\n\nexport interface Task {\n  id: string;\n  mainTitle: string;\n  date: string;\n  title: string;\n  tags: { label: string; icon: string }[];\n  subTasks: SubTask[];\n  waitingOn?: TaskMessage;\n  timeline: TimelineEvent[];\n}\n\ninterface TaskState {\n  tasks: Task[];\n  selectedTaskId: string | null;\n  selectTask: (id: string | null) => void;\n  toggleSubTask: (taskId: string, subTaskId: string) => void;\n}\n\nexport const useTaskStore = create<TaskState>((set) => ({\n  tasks: [\n    {\n      id: \"AGE-2201\",\n      date: \"Apr 25\",\n      mainTitle: \"Onboard new features and introduce key features\",\n      title: \"Investigate meeting recording camera visibility issue\",\n      tags: [\n        { label: \"Shopify\", icon: \"S\" },\n        { label: \"Sofia\", icon: \"S\" },\n      ],\n      subTasks: [\n        {\n          id: \"st1\",\n          title: \"Message provider for resolution ETA\",\n          completed: false,\n        },\n        { id: \"st2\", title: \"Update Elias today\", completed: false },\n      ],\n      waitingOn: {\n        author: \"Elias Torres\",\n        platform: \"Slack\",\n        timestamp: \"Today 03:18 PM\",\n        content:\n          \"Hey — following up again. We've tested across devices and the camera view is still missing in recordings. This is blocking us now.\",\n      },\n      timeline: [\n        {\n          event: \"Follow-up sent to customer with expected resolution timeline\",\n          date: \"Dec 20\",\n        },\n        {\n          event: \"Issue confirmed and escalated to meeting bot provider\",\n          date: \"Dec 18\",\n        },\n        {\n          event: \"Customer reported missing participant cameras in recordings\",\n          date: \"Dec 15\",\n        },\n      ],\n    },\n    {\n      id: \"AGE-2202\",\n      date: \"Apr 25\",\n      mainTitle: \"Details on Roadmap\",\n      title: \"Share customer success stories and product roadmap\",\n      tags: [\n        { label: \"Stripe\", icon: \"S\" },\n        { label: \"Valen\", icon: \"V\" },\n      ],\n      subTasks: [\n        {\n          id: \"st3\",\n          title: \"Escalate internally to engineering\",\n          completed: false,\n        },\n      ],\n      timeline: [],\n    },\n    {\n      id: \"AGE-2203\",\n      date: \"Apr 26\",\n      mainTitle: \"Quarterly Goals\",\n      title: \"Check in on quarterly goals and progress\",\n      tags: [\n        { label: \"Vercel\", icon: \"V\" },\n        { label: \"Sofia\", icon: \"S\" },\n      ],\n      subTasks: [\n        {\n          id: \"st4\",\n          title: \"Review Q1 metrics and prepare for board meeting\",\n          completed: false,\n        },\n      ],\n      timeline: [],\n    },\n    {\n      id: \"AGE-2204\",\n      date: \"Apr 27\",\n      mainTitle: \"Onboard new users to the agency platform\",\n      title: \"Onboard new users to the agency platform\",\n      tags: [\n        { label: \"Figma\", icon: \"F\" },\n        { label: \"Lucas\", icon: \"L\" },\n      ],\n      subTasks: [\n        {\n          id: \"st5\",\n          title: \"Setup workspace and initial permissions\",\n          completed: true,\n        },\n        {\n          id: \"st6\",\n          title: \"Send welcome kit and tutorial links\",\n          completed: false,\n        },\n      ],\n      timeline: [],\n    },\n\n  ],\n  selectedTaskId: null,\n\n  selectTask: (id: string | null) => set({ selectedTaskId: id }),\n\n  toggleSubTask: (taskId: string, subTaskId: string) =>\n    set((state: TaskState) => ({\n      tasks: state.tasks.map((task: Task) =>\n        task.id === taskId\n          ? {\n            ...task,\n            subTasks: task.subTasks.map((st: SubTask) =>\n              st.id === subTaskId ? { ...st, completed: !st.completed } : st\n            ),\n          }\n          : task\n      ),\n    })),\n}));\n",
      "type": "registry:component",
      "target": "components/watermelon/workflow-management-dashboard/components/store/task-store.tsx"
    },
    {
      "path": "src/components/dashboards/workflow-management-dashboard/components/task-detail-header.tsx",
      "content": "import { useTaskStore, type Task } from \"./store/task-store\";\n\nimport { AlertCircle, Check, Ellipsis, X, Share2, Trash2, Copy } from \"lucide-react\";\nimport { Separator } from \"@/components/ui/separator\";\nimport { Button } from \"@/components/ui/button\";\nimport {\n  Dialog,\n  DialogContent,\n  DialogDescription,\n  DialogHeader,\n  DialogTitle,\n  DialogTrigger,\n  DialogFooter,\n} from \"@/components/ui/dialog\";\nimport {\n  DropdownMenu,\n  DropdownMenuContent,\n  DropdownMenuItem,\n  DropdownMenuTrigger,\n  DropdownMenuSeparator,\n} from \"@/components/ui/dropdown-menu\";\nimport { Badge } from \"@/components/ui/badge\";\n\nexport default function TaskDetailHeader() {\n  const { tasks, selectedTaskId, selectTask } = useTaskStore();\n  const task = tasks.find((t: Task) => t.id === selectedTaskId);\n  if (!task) {\n    return null;\n  }\n  return (\n    <div className=\"hidden w-full h-12 items-center justify-between border-r border-b border-border bg-background px-3 md:flex    \">\n      <div className=\"flex items-center  gap-1  \">\n        <Button\n          variant=\"ghost\"\n          size=\"sm\"\n          className=\" p-1 text-sm font-medium text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors cursor-pointer\"\n          onClick={() => selectTask(null)}\n        >\n          <X className=\"size-4 transition-transform hover:rotate-90\" />\n        </Button>\n        <p className=\"text-md w-[250px] truncate \">{task.mainTitle}</p>\n      </div>\n      <div className=\"hidden items-center gap-1 mr-1 lg:flex\">\n        <Button\n          variant=\"ghost\"\n          size=\"sm\"\n          className=\" text-sm font-medium text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors cursor-pointer\"\n        >\n          <Check className=\"size-4 hover:bg-muted/50 cursor-pointer\" />\n          <p>close as completed</p>\n        </Button>\n        <Separator className=\"h-4 w-1 bg-border mt-2 \" orientation=\"vertical\" />\n        <Dialog>\n          <DialogTrigger asChild>\n            <Button\n              variant=\"ghost\"\n              size=\"sm\"\n              className=\"  text-sm font-medium text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors cursor-pointer\"\n            >\n              <AlertCircle className=\"size-4\" />\n              <p>View Details</p>\n            </Button>\n          </DialogTrigger>\n          <DialogContent className=\"sm:max-w-[500px]\">\n            <DialogHeader>\n              <DialogTitle>{task.title}</DialogTitle>\n              <DialogDescription>\n                Detailed overview of task metadata and history.\n              </DialogDescription>\n            </DialogHeader>\n            <div className=\"grid gap-4 py-4 border-y border-border/50 my-2\">\n              <div className=\"grid grid-cols-4 items-center gap-4\">\n                <span className=\"text-xs font-semibold text-muted-foreground uppercase\">ID</span>\n                <span className=\"col-span-3 text-sm font-mono\">{task.id}</span>\n              </div>\n              <div className=\"grid grid-cols-4 items-center gap-4\">\n                <span className=\"text-xs font-semibold text-muted-foreground uppercase\">Created</span>\n                <span className=\"col-span-3 text-sm\">{task.date}</span>\n              </div>\n              <div className=\"grid grid-cols-4 items-center gap-4\">\n                <span className=\"text-xs font-semibold text-muted-foreground uppercase\">Tags</span>\n                <div className=\"col-span-3 flex gap-2\">\n                  {task.tags.map((tag: { label: string; icon: string }) => (\n                    <Badge key={tag.label} variant=\"outline\" className=\"text-[10px]\">{tag.label}</Badge>\n                  ))}\n                </div>\n              </div>\n            </div>\n            <DialogFooter>\n              <Button type=\"submit\" size=\"sm\" className=\"bg-blue-600 hover:bg-blue-700\">Open full page</Button>\n            </DialogFooter>\n          </DialogContent>\n        </Dialog>\n        <Separator className=\"h-4 w-1 bg-border mt-2 \" orientation=\"vertical\" />\n        <DropdownMenu>\n          <DropdownMenuTrigger asChild>\n            <Button\n              variant=\"ghost\"\n              size=\"sm\"\n              className=\" text-sm font-medium text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors cursor-pointer\"\n            >\n              <Ellipsis className=\"size-4\" />\n            </Button>\n          </DropdownMenuTrigger>\n          <DropdownMenuContent align=\"end\" className=\"w-48\">\n            <DropdownMenuItem className=\"gap-2 cursor-pointer\">\n              <Share2 className=\"size-3.5\" />\n              <span>Share task</span>\n            </DropdownMenuItem>\n            <DropdownMenuItem className=\"gap-2 cursor-pointer\">\n              <Copy className=\"size-3.5\" />\n              <span>Duplicate</span>\n            </DropdownMenuItem>\n            <DropdownMenuSeparator />\n            <DropdownMenuItem className=\"gap-2 text-destructive focus:text-destructive cursor-pointer\">\n              <Trash2 className=\"size-3.5\" />\n              <span>Delete task</span>\n            </DropdownMenuItem>\n          </DropdownMenuContent>\n        </DropdownMenu>\n      </div>\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/watermelon/workflow-management-dashboard/components/task-detail-header.tsx"
    },
    {
      "path": "src/components/dashboards/workflow-management-dashboard/components/task-detail.tsx",
      "content": "import { useTaskStore, type Task, type SubTask, type TimelineEvent } from \"./store/task-store\";\nimport { ScrollArea } from \"@/components/ui/scroll-area\";\nimport { Separator } from \"@/components/ui/separator\";\nimport { Send } from \"lucide-react\";\nimport { Avatar, AvatarFallback } from \"@/components/ui/avatar\";\nimport { cn } from \"@/lib/utils\";\nimport { Checkbox } from \"@/components/ui/checkbox\";\nimport { Textarea } from \"@/components/ui/textarea\";\nimport { Button } from \"@/components/ui/button\";\n\nexport function TaskDetail() {\n  const { tasks, selectedTaskId, toggleSubTask } = useTaskStore();\n  const task = tasks.find((t: Task) => t.id === selectedTaskId);\n\n  if (!task) {\n    return (\n      <div className=\"flex flex-col items-center justify-center h-full text-muted-foreground\">\n        <p className=\"text-sm\">Select a task to view details</p>\n      </div>\n    );\n  }\n\n  return (\n    <div className=\"flex flex-col h-full  \">\n      <ScrollArea className=\"flex-1 min-h-0 w-full\">\n        <div className=\"lg:px-24 lg:py-20 p-4 max-w-4xl space-y-4 mx-auto\">\n          <div className=\"space-y-2\">\n            <div className=\"size-12 border rounded-xs flex items-center justify-center shrink-0 shadow-sm\">\n              <div className=\"size-8 rounded-full border border-muted-foreground\" />\n            </div>\n            <h2 className=\"text-3xl font-medium tracking-tight text-foreground\">\n              {task.title}\n            </h2>\n          </div>\n          {task.waitingOn && (\n            <div className=\"space-y-2\">\n              <div className=\"flex items-center \">\n                <h3 className=\"text-sm font-medium text-muted-foreground\">\n                  Waiting on us\n                </h3>\n              </div>\n\n              <div className=\"bg-foreground/5  border rounded-none p-2\">\n                <div className=\"flex items-start gap-3\">\n                  <Avatar className=\"size-10 border-2 border-white shadow-sm rounded-none\">\n                    <AvatarFallback className=\"text-[11px] bg-blue-600 text-white font-bold rounded-none\">\n                      ET\n                    </AvatarFallback>\n                  </Avatar>\n                  <div className=\"flex items-start space-x-2 self-start\">\n                    <div className=\"flex items-center\">\n                      <div className=\"flex flex-col\">\n                        <div className=\"flex items-center gap-1.5\">\n                          <span className=\"text-sm font-medium text-foreground\">\n                            {task.waitingOn.author}\n                          </span>\n\n                          <span className=\"text-xs flex items-center font-medium font-mono mt-0.5 rounded text-muted-foreground  \">\n                            ({task.waitingOn.platform})\n                          </span>\n                          <Separator\n                            className=\"h-4 w-1 bg-border mt-0.5 \"\n                            orientation=\"vertical\"\n                          />\n                          <span className=\"text-xs text-muted-foreground font-medium self-center mt-0.5\">\n                            {task.waitingOn.timestamp}\n                          </span>\n                        </div>\n                        <p className=\"text-[14px] leading-relaxed text-foreground italic font-medium\">\n                          \"{task.waitingOn.content}\"\n                        </p>\n                      </div>\n                    </div>\n\n                    <p className=\"text-[14px] leading-relaxed text-gray-700 italic font-medium\"></p>\n                  </div>\n                </div>\n              </div>\n            </div>\n          )}\n          <div className=\"space-y-4\">\n            <h3 className=\"text-[11px] font-bold uppercase tracking-wider text-muted-foreground/60\">\n              Next Moves\n            </h3>\n            <div className=\"space-y-4\">\n              {task.subTasks.map((sub: SubTask) => (\n                <div\n                  key={sub.id}\n                  className=\"flex items-center gap-3 p-3 bg-foreground/5 border border-border/50 rounded-none group hover:bg-muted transition-colors duration-200 cursor-pointer\"\n                >\n                  <Checkbox\n                    id={sub.id}\n                    checked={sub.completed}\n                    onCheckedChange={() => toggleSubTask(task.id, sub.id)}\n                    className=\"size-4 shrink-0 rounded-none border-muted-foreground/30 data-[state=checked]:bg-blue-500 data-[state=checked]:border-none dark:data-[state=checked]:bg-blue-500 dark:data-[state=checked]:border-none shadow-card p-1 transition-all group-hover:border-blue-400\"\n                  />\n                  <label\n                    htmlFor={sub.id}\n                    className={cn(\n                      \"text-sm font-medium cursor-pointer\",\n                      sub.completed\n                        ? \"text-muted-foreground line-through\"\n                        : \"text-foreground\"\n                    )}\n                  >\n                    {sub.title}\n                  </label>\n                </div>\n              ))}\n            </div>\n          </div>\n\n          <div className=\"space-y-4 pt-4\">\n            <div className=\"flex flex-col gap-4 \">\n              <h3 className=\"text-md font-medium  tracking-wider text-muted-foreground/60\">\n                Timeline\n              </h3>\n              <div className=\"relative group\">\n                <Textarea\n                  placeholder=\"Add a comment or update...\"\n                  className=\"min-h-[100px] bg-foreground/5 border-border shadow-card resize-none focus-visible:ring-1 focus-visible:ring-blue-600 rounded-none p-4 text-sm\"\n                />\n                <div className=\"absolute bottom-3 right-3 flex items-center gap-2\">\n                  <span className=\"text-[10px] text-muted-foreground font-medium hidden group-focus-within:block\">\n                    Press ⌘ + Enter to post\n                  </span>\n                  <Button\n                    size=\"sm\"\n                    className=\"h-8 w-8 rounded-none bg-blue-600 hover:bg-blue-700 transition-colors\"\n                  >\n                    <Send className=\"size-3.5\" />\n                  </Button>\n                </div>\n              </div>\n            </div>\n\n            <div className=\"relative flex flex-col gap-2 \">\n              {task.timeline?.map((item: TimelineEvent, index: number) => (\n                <div\n                  key={index}\n                  className=\"relative flex items-center justify-between\"\n                >\n                  <div className=\"flex items-center justify-between w-full\">\n                    <p className=\"text-[14px] font-medium text-muted-foreground\">\n                      {item.event}\n                    </p>\n                    <time className=\"text-xs text-muted-foreground font-medium tabular-nums\">\n                      {item.date}\n                    </time>\n                  </div>\n                </div>\n              ))}\n            </div>\n          </div>\n        </div>\n      </ScrollArea>\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/watermelon/workflow-management-dashboard/components/task-detail.tsx"
    },
    {
      "path": "src/components/dashboards/workflow-management-dashboard/components/task-list-header.tsx",
      "content": "import {\n  ListFilter,\n  LayoutPanelLeft,\n  User,\n  BarChart2,\n  Tag,\n  CircleDot,\n} from \"lucide-react\";\nimport {\n  DropdownMenu,\n  DropdownMenuContent,\n  DropdownMenuItem,\n  DropdownMenuTrigger,\n  DropdownMenuSeparator,\n  DropdownMenuLabel,\n} from \"@/components/ui/dropdown-menu\";\nimport { Button } from \"@/components/ui/button\";\nimport {\n  Popover,\n  PopoverContent,\n  PopoverHeader,\n  PopoverTitle,\n  PopoverTrigger,\n} from \"@/components/ui/popover\";\nimport { Label } from \"@/components/ui/label\";\nimport { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from \"@/components/ui/select\";\n\nexport default function TaskListHeader() {\n  return (\n    <div className=\"flex  h-12 items-center justify-between border-r border-b border-border bg-background px-1 shrink-0\">\n      <DropdownMenu>\n        <DropdownMenuTrigger asChild>\n          <Button\n            variant=\"ghost\"\n            size=\"sm\"\n            className=\"h-8 gap-2 px-2 text-sm font-medium text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors flex items-center justify-center cursor-pointer\"\n          >\n            <ListFilter className=\"size-3\" />\n            Filter\n\n          </Button>\n        </DropdownMenuTrigger>\n\n        <DropdownMenuContent\n          align=\"start\"\n          className=\"w-[180px] p-1 shadow-md border-muted\"\n        >\n          <DropdownMenuLabel className=\"text-[11px] font-medium text-muted-foreground px-2 py-1.5 uppercase tracking-wider\">\n            Filter by\n          </DropdownMenuLabel>\n\n          <DropdownMenuItem className=\"text-[12px] gap-2 px-2 py-1.5 focus:bg-muted cursor-pointer\">\n            <CircleDot className=\"size-3.5 text-muted-foreground\" />\n            Status\n          </DropdownMenuItem>\n\n          <DropdownMenuItem className=\"text-[12px] gap-2 px-2 py-1.5 focus:bg-muted cursor-pointer\">\n            <User className=\"size-3.5 text-muted-foreground\" />\n            Assignee\n          </DropdownMenuItem>\n\n          <DropdownMenuSeparator className=\"bg-muted/50\" />\n\n          <DropdownMenuItem className=\"text-[12px] gap-2 px-2 py-1.5 focus:bg-muted cursor-pointer\">\n            <BarChart2 className=\"size-3.5 text-muted-foreground\" />\n            Priority\n          </DropdownMenuItem>\n\n          <DropdownMenuItem className=\"text-[12px] gap-2 px-2 py-1.5 focus:bg-muted cursor-pointer\">\n            <Tag className=\"size-3.5 text-muted-foreground\" />\n            Label\n          </DropdownMenuItem>\n        </DropdownMenuContent>\n      </DropdownMenu>\n\n      <Popover>\n        <PopoverTrigger asChild>\n          <Button\n            variant=\"ghost\"\n            size=\"sm\"\n            className=\"h-8 gap-2 px-2 text-sm font-medium text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors flex items-center justify-center cursor-pointer\"\n          >\n            <LayoutPanelLeft className=\"size-3\" />\n            Display\n          </Button>\n        </PopoverTrigger>\n        <PopoverContent className=\"w-56 p-3\" align=\"end\">\n          <PopoverHeader className=\"mb-2\">\n            <PopoverTitle className=\"text-xs uppercase tracking-wider text-muted-foreground\">Display Settings</PopoverTitle>\n          </PopoverHeader>\n          <div className=\"grid gap-3\">\n            <div className=\"flex flex-col gap-1.5\">\n              <Label className=\"text-[11px]\">Density</Label>\n              <Select defaultValue=\"comfortable\">\n                <SelectTrigger className=\"h-8 text-xs\">\n                  <SelectValue placeholder=\"Density\" />\n                </SelectTrigger>\n                <SelectContent>\n                  <SelectItem value=\"compact\" className=\"text-xs\">Compact</SelectItem>\n                  <SelectItem value=\"comfortable\" className=\"text-xs\">Comfortable</SelectItem>\n                </SelectContent>\n              </Select>\n            </div>\n            <div className=\"flex flex-col gap-1.5\">\n              <Label className=\"text-[11px]\">Group By</Label>\n              <Select defaultValue=\"status\">\n                <SelectTrigger className=\"h-8 text-xs\">\n                  <SelectValue placeholder=\"Group by\" />\n                </SelectTrigger>\n                <SelectContent>\n                  <SelectItem value=\"status\" className=\"text-xs\">Status</SelectItem>\n                  <SelectItem value=\"assignee\" className=\"text-xs\">Assignee</SelectItem>\n                  <SelectItem value=\"priority\" className=\"text-xs\">Priority</SelectItem>\n                </SelectContent>\n              </Select>\n            </div>\n          </div>\n        </PopoverContent>\n      </Popover>\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/watermelon/workflow-management-dashboard/components/task-list-header.tsx"
    },
    {
      "path": "src/components/dashboards/workflow-management-dashboard/components/task-list.tsx",
      "content": "import { useTaskStore, type Task, type SubTask } from \"./store/task-store\";\nimport { ScrollArea } from \"@/components/ui/scroll-area\";\nimport { Badge } from \"@/components/ui/badge\";\nimport { Checkbox } from \"@/components/ui/checkbox\";\nimport {\n  CornerDownRight,\n  Calendar,\n  ChevronsUp,\n  BadgeCent,\n  Inbox,\n  Plus,\n} from \"lucide-react\";\nimport { cn } from \"@/lib/utils\";\nimport { Button } from \"@/components/ui/button\";\nimport {\n  Tooltip,\n  TooltipContent,\n  TooltipProvider,\n  TooltipTrigger,\n} from \"@/components/ui/tooltip\";\n\nexport function TaskList() {\n  const { tasks, selectedTaskId, selectTask, toggleSubTask } = useTaskStore();\n  return (\n    <div className=\"flex flex-col h-full bg-foreground/5 dark:bg-black overflow-hidden\">\n      <TooltipProvider delayDuration={300}>\n        <ScrollArea className=\"flex-1 min-h-0 w-full\">\n          <div className=\"p-2.5 space-y-1\">\n            {tasks.length === 0 ? (\n              <div className=\"flex flex-col items-center justify-center h-[400px] px-6 text-center\">\n                <div className=\"size-12 rounded-full bg-muted flex items-center justify-center mb-4\">\n                  <Inbox className=\"size-6 text-muted-foreground/60\" />\n                </div>\n                <h3 className=\"text-sm font-medium text-foreground\">No tasks found</h3>\n                <p className=\"text-xs text-muted-foreground mt-1 mb-4\">\n                  Try adjusting your filters or create a new task to get started.\n                </p>\n                <Button variant=\"outline\" size=\"sm\" className=\"h-8 gap-2 text-xs\">\n                  <Plus className=\"size-3.5\" />\n                  New Task\n                </Button>\n              </div>\n            ) : (\n              tasks.map((task: Task) => (\n                <div key={task.id} className=\"flex flex-col\">\n                  <div\n                    onClick={() => selectTask(task.id)}\n                    className={cn(\n                      \"p-3 rounded-none border cursor-pointer transition-colors duration-200 mb-1 shadow-card group/card\",\n                      selectedTaskId === task.id\n                        ? \"border-blue-400 bg-card ring-1 ring-blue-400/20\"\n                        : \"bg-card hover:bg-muted/40 border-border\"\n                    )}\n                  >\n                    <div className=\"flex items-center justify-between mb-1.5\">\n                      <div className=\"flex items-center gap-1.5 text-[11px] text-muted-foreground font-medium\">\n                        <span>{task.id}</span>\n                        <span>/</span>\n                        <span className=\"flex items-center gap-1\">\n                          <Calendar className=\"size-3 text-muted-foreground\" />\n                          {task.date}\n                        </span>\n                      </div>\n                      <div className=\"flex items-center gap-1.5 text-blue-500\">\n                        <ChevronsUp className=\"size-4 stroke-3\" />\n                        <BadgeCent className=\"size-4 stroke-3\" />\n                      </div>\n                    </div>\n\n                    <h3 className=\"text-sm font-medium leading-tight mb-2.5 break-all line-clamp-3\">\n                      {task.title}\n                    </h3>\n\n                    <div className=\"flex items-center gap-2\">\n                      <div className=\"size-5 border rounded-xs flex items-center justify-center shrink-0\">\n                        <div className=\"size-2 rounded-full border border-muted-foreground\" />\n                      </div>\n                      <div className=\"flex gap-1.5 overflow-hidden\">\n                        {task.tags.map((tag: { label: string; icon: string }) => (\n                          <Tooltip key={tag.label}>\n                            <TooltipTrigger asChild>\n                              <Badge\n                                variant=\"outline\"\n                                className=\"px-1.5 text-xs font-normal gap-1 bg-card rounded-none shrink-0 cursor-help hover:bg-muted/50 transition-colors\"\n                              >\n                                <span className=\"size-3 rounded-xs bg-muted flex items-center justify-center text-[8px] font-bold\">\n                                  {tag.icon}\n                                </span>\n                                {tag.label}\n                              </Badge>\n                            </TooltipTrigger>\n                            <TooltipContent side=\"bottom\" className=\"text-[10px] py-1 px-2\">\n                              Filter by {tag.label}\n                            </TooltipContent>\n                          </Tooltip>\n                        ))}\n                      </div>\n                    </div>\n                  </div>\n\n                  <div className=\" flex flex-col gap-1 mb-3\">\n                    {task.subTasks.map((subTask: SubTask) => (\n                      <div\n                        key={subTask.id}\n                        className=\"group flex items-center gap-2 px-3 py-1.5 rounded-none bg-muted shadow-card transition-colors hover:bg-muted/80\"\n                      >\n                        <CornerDownRight className=\"size-3.5 text-muted-foreground/50 shrink-0\" />\n\n                        <div className=\"flex items-center gap-2 flex-1\">\n                          <Checkbox\n                            checked={subTask.completed}\n                            onCheckedChange={() =>\n                              toggleSubTask(task.id, subTask.id)\n                            }\n                            className=\"size-4 shrink-0 rounded-none border-muted-foreground/30 data-[state=checked]:bg-blue-500 data-[state=checked]:border-none  dark:data-[state=checked]:bg-blue-500 dark:data-[state=checked]:border-none shadow-card p-1 transition-all\"\n                          />\n                          <p\n                            className={cn(\n                              \"text-[12px] font-medium transition-colors truncate w-[250px]\",\n                              subTask.completed\n                                ? \"text-muted-foreground/60 line-through\"\n                                : \"text-foreground/80\"\n                            )}\n                          >\n                            {subTask.title}\n                          </p>\n                        </div>\n                      </div>\n                    ))}\n                  </div>\n                </div>\n              ))\n            )}\n          </div>\n        </ScrollArea>\n      </TooltipProvider>\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/watermelon/workflow-management-dashboard/components/task-list.tsx"
    },
    {
      "path": "src/components/dashboards/workflow-management-dashboard/components/team-switcher.tsx",
      "content": "\"use client\";\n\nimport { ChevronsUpDown, Plus } from \"lucide-react\";\n\nimport {\n  DropdownMenu,\n  DropdownMenuContent,\n  DropdownMenuItem,\n  DropdownMenuLabel,\n  DropdownMenuSeparator,\n  DropdownMenuShortcut,\n  DropdownMenuTrigger,\n} from \"@/components/ui/dropdown-menu\";\nimport {\n  SidebarMenu,\n  SidebarMenuButton,\n  SidebarMenuItem,\n  useSidebar,\n} from \"@/components/ui/sidebar\";\nimport { useState } from \"react\";\n\nexport function TeamSwitcher({\n  teams,\n}: {\n  teams: {\n    name: string;\n    logo: React.ElementType;\n    plan: string;\n  }[];\n}) {\n  const { isMobile } = useSidebar();\n  const [activeTeam, setActiveTeam] = useState(teams[0]);\n\n  if (!activeTeam) {\n    return null;\n  }\n\n  return (\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 rounded-none transition-colors outline-none focus-visible:ring-0\"\n            >\n              <div className=\"bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-none\">\n                <activeTeam.logo className=\"size-4\" />\n              </div>\n              <div className=\" flex items-center justify-center text-left text-sm leading-tight gap-1\">\n                <span className=\"truncate font-medium\">{activeTeam.name}</span>\n                <ChevronsUpDown className=\"\" />\n              </div>\n\n            </SidebarMenuButton>\n          </DropdownMenuTrigger>\n          <DropdownMenuContent\n            className=\"w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg\"\n            align=\"start\"\n            side={isMobile ? \"bottom\" : \"bottom\"}\n            sideOffset={4}\n          >\n            <DropdownMenuLabel className=\"text-muted-foreground text-xs\">\n              Teams\n            </DropdownMenuLabel>\n            {teams.map((team, index) => (\n              <DropdownMenuItem\n                key={team.name}\n                onClick={() => setActiveTeam(team)}\n                className=\"gap-2 p-2\"\n              >\n                <div className=\"flex size-6 items-center justify-center rounded-md border\">\n                  <team.logo className=\"size-3.5 shrink-0\" />\n                </div>\n                {team.name}\n                <DropdownMenuShortcut>⌘{index + 1}</DropdownMenuShortcut>\n              </DropdownMenuItem>\n            ))}\n            <DropdownMenuSeparator />\n            <DropdownMenuItem className=\"gap-2 p-2\">\n              <div className=\"flex size-6 items-center justify-center rounded-md border bg-transparent\">\n                <Plus className=\"size-4\" />\n              </div>\n              <div className=\"text-muted-foreground font-medium\">Add team</div>\n            </DropdownMenuItem>\n          </DropdownMenuContent>\n        </DropdownMenu>\n      </SidebarMenuItem>\n    </SidebarMenu>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/watermelon/workflow-management-dashboard/components/team-switcher.tsx"
    },
    {
      "path": "src/components/dashboards/workflow-management-dashboard/components/theme-provider.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\nimport { ThemeProvider as NextThemesProvider } from \"next-themes\";\n\nexport function ThemeProvider({\n  children,\n  ...props\n}: React.ComponentProps<typeof NextThemesProvider>) {\n  return <NextThemesProvider {...props}>{children}</NextThemesProvider>;\n}\n",
      "type": "registry:component",
      "target": "components/watermelon/workflow-management-dashboard/components/theme-provider.tsx"
    },
    {
      "path": "src/components/dashboards/workflow-management-dashboard/components/theme-toggle.tsx",
      "content": "\"use client\";\n\nimport { Moon, Sun } from \"lucide-react\";\nimport { useTheme } from \"next-themes\";\n\nimport { Button } from \"@/components/ui/button\";\nimport {\n  DropdownMenu,\n  DropdownMenuContent,\n  DropdownMenuItem,\n  DropdownMenuTrigger,  \n} from \"@/components/ui/dropdown-menu\";\n\nexport function ModeToggle() {\n  const { setTheme } = useTheme();\n\n  return (\n    <DropdownMenu>\n      <DropdownMenuTrigger asChild>\n        <Button variant=\"outline\" size=\"icon\">\n          <Sun className=\"h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90\" />\n          <Moon className=\"absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0\" />\n          <span className=\"sr-only\">Toggle theme</span>\n        </Button>\n      </DropdownMenuTrigger>\n      <DropdownMenuContent align=\"end\">\n        <DropdownMenuItem onClick={() => setTheme(\"light\")}>\n          Light\n        </DropdownMenuItem>\n        <DropdownMenuItem onClick={() => setTheme(\"dark\")}>\n          Dark\n        </DropdownMenuItem>\n        <DropdownMenuItem onClick={() => setTheme(\"system\")}>\n          System\n        </DropdownMenuItem>\n      </DropdownMenuContent>\n    </DropdownMenu>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/watermelon/workflow-management-dashboard/components/theme-toggle.tsx"
    },
    {
      "path": "src/components/dashboards/workflow-management-dashboard/dashboard-layout.tsx",
      "content": "\"use client\";\nimport { AppSidebar } from \"./components/app-sidebar\";\nimport { SidebarProvider } from \"@/components/ui/sidebar\";\n\nexport const DashboardLayout = ({\n  children,\n}: {\n  children: React.ReactNode;\n}) => {\n  return (\n    <div className=\"bg-white dark:bg-white/5  h-svh w-screen overflow-hidden font-sans \">\n      <SidebarProvider\n        className=\"h-full min-h-0! overflow-hidden\"\n        style={\n          {\n            \"--sidebar-width\": \"calc(var(--spacing) * 60)\",\n            \"--header-height\": \"calc(var(--spacing) * 12)\",\n          } as React.CSSProperties\n        }\n      >\n        <AppSidebar />\n\n        {children}\n      </SidebarProvider>\n    </div>\n  );\n};\n",
      "type": "registry:component",
      "target": "components/watermelon/workflow-management-dashboard/dashboard-layout.tsx"
    },
    {
      "path": "src/components/dashboards/workflow-management-dashboard/dashboardView.tsx",
      "content": "\"use client\";\n\nimport Header from \"./components/header\";\nimport { TaskDetail } from \"./components/task-detail\";\nimport TaskDetailHeader from \"./components/task-detail-header\";\nimport { TaskList } from \"./components/task-list\";\nimport TaskListHeader from \"./components/task-list-header\";\nimport { Drawer, DrawerContent } from \"@/components/ui/drawer\";\nimport { useIsMobile } from \"@/hooks/use-mobile\";\nimport { useTaskStore } from \"./components/store/task-store\";\nimport { useEffect, useState, useRef } from \"react\";\n\nexport default function Home() {\n  const { tasks, selectedTaskId, selectTask } = useTaskStore();\n  const isMobile = useIsMobile();\n  const [drawerOpen, setDrawerOpen] = useState(false);\n  const hasInitializedRef = useRef(false);\n\n  const handleDrawerClose = (open: boolean) => {\n    setDrawerOpen(open);\n    if (!open) {\n      selectTask(null);\n    }\n  };\n  useEffect(() => {\n    if (\n      isMobile === false &&\n      tasks.length > 0 &&\n      !selectedTaskId &&\n      !hasInitializedRef.current\n    ) {\n      selectTask(tasks[0].id);\n      hasInitializedRef.current = true;\n    }\n  }, [tasks, selectedTaskId, isMobile, selectTask]);\n\n  useEffect(() => {\n    if (isMobile && selectedTaskId) {\n      setTimeout(() => setDrawerOpen(true), 0);\n    }\n  }, [isMobile, selectedTaskId]);\n\n  useEffect(() => {\n    if (!selectedTaskId) {\n      setTimeout(() => setDrawerOpen(false), 0);\n    }\n  }, [selectedTaskId]);\n\n  return (\n    <div className=\"flex flex-col min-h-screen w-full bg-background\">\n      <Header />\n\n      <div className=\"flex flex-1 flex-col overflow-hidden\">\n        <div className=\"flex border-b\">\n          <div className=\"w-full md:w-[340px] border-r\">\n            <TaskListHeader />\n          </div>\n          <div className=\"flex-1 hidden md:block\">\n            <TaskDetailHeader />\n          </div>\n        </div>\n\n        <div className=\"flex flex-1 overflow-hidden\">\n          <div className=\"w-full md:w-[340px] border-r border-border shrink-0\">\n            <TaskList />\n          </div>\n          <div className=\"flex-1 hidden md:block\">\n            <TaskDetail />\n          </div>\n        </div>\n\n        <Drawer open={drawerOpen} onOpenChange={handleDrawerClose}>\n          <DrawerContent className=\"h-[90vh]\">\n            <div className=\"flex-1 f-full overflow-hidden\">\n              <TaskDetail />\n            </div>\n          </DrawerContent>\n        </Drawer>\n      </div>\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/watermelon/workflow-management-dashboard/dashboardView.tsx"
    },
    {
      "path": "src/components/dashboards/workflow-management-dashboard/demo.tsx",
      "content": "import { DashboardLayout } from './dashboard-layout'\nimport DashboardView from './dashboardView'\n\nexport default function WorkflowManagementDashboardDemo() {\n    return (\n        <DashboardLayout>\n            <DashboardView />\n        </DashboardLayout>\n    )\n}\n",
      "type": "registry:component",
      "target": "components/watermelon/workflow-management-dashboard/demo.tsx"
    }
  ],
  "type": "registry:block"
}
