From d936ffe55f13f85bf001486f291589730c739ea3 Mon Sep 17 00:00:00 2001 From: Dan Lilienblum Date: Tue, 11 Aug 2026 00:06:59 +0900 Subject: [PATCH 1/4] refactor(example): consolidate Radix imports --- .../dashboard/components/ui/accordion.tsx | 2 +- .../dashboard/components/ui/alert-dialog.tsx | 2 +- .../dashboard/components/ui/aspect-ratio.tsx | 2 +- .../dashboard/components/ui/avatar.tsx | 2 +- .../dashboard/components/ui/badge.tsx | 4 +-- .../dashboard/components/ui/breadcrumb.tsx | 4 +-- .../dashboard/components/ui/button-group.tsx | 4 +-- .../dashboard/components/ui/button.tsx | 4 +-- .../dashboard/components/ui/checkbox.tsx | 2 +- .../dashboard/components/ui/collapsible.tsx | 2 +- .../dashboard/components/ui/context-menu.tsx | 2 +- .../dashboard/components/ui/dialog.tsx | 2 +- .../dashboard/components/ui/dropdown-menu.tsx | 2 +- .../packages/dashboard/components/ui/form.tsx | 8 ++--- .../dashboard/components/ui/hover-card.tsx | 2 +- .../packages/dashboard/components/ui/item.tsx | 4 +-- .../dashboard/components/ui/label.tsx | 2 +- .../dashboard/components/ui/menubar.tsx | 2 +- .../components/ui/navigation-menu.tsx | 2 +- .../dashboard/components/ui/popover.tsx | 2 +- .../dashboard/components/ui/progress.tsx | 2 +- .../dashboard/components/ui/radio-group.tsx | 2 +- .../dashboard/components/ui/scroll-area.tsx | 2 +- .../dashboard/components/ui/select.tsx | 2 +- .../dashboard/components/ui/separator.tsx | 2 +- .../dashboard/components/ui/sheet.tsx | 2 +- .../dashboard/components/ui/sidebar.tsx | 12 +++---- .../dashboard/components/ui/slider.tsx | 2 +- .../dashboard/components/ui/switch.tsx | 2 +- .../packages/dashboard/components/ui/tabs.tsx | 2 +- .../dashboard/components/ui/toast.tsx | 2 +- .../dashboard/components/ui/toggle-group.tsx | 2 +- .../dashboard/components/ui/toggle.tsx | 2 +- .../dashboard/components/ui/tooltip.tsx | 2 +- .../packages/dashboard/package.json | 34 +++---------------- .../packages/dashboard/ui/avatar.tsx | 2 +- .../packages/dashboard/ui/breadcrumb.tsx | 4 +-- .../packages/dashboard/ui/button.tsx | 4 +-- .../packages/dashboard/ui/checkbox.tsx | 2 +- .../packages/dashboard/ui/dropdown-menu.tsx | 2 +- .../packages/dashboard/ui/label.tsx | 2 +- .../packages/dashboard/ui/select.tsx | 2 +- .../packages/dashboard/ui/separator.tsx | 2 +- .../packages/dashboard/ui/sheet.tsx | 2 +- .../packages/dashboard/ui/sidebar.tsx | 12 +++---- .../packages/dashboard/ui/tabs.tsx | 2 +- .../packages/dashboard/ui/toggle-group.tsx | 2 +- .../packages/dashboard/ui/toggle.tsx | 2 +- .../packages/dashboard/ui/tooltip.tsx | 2 +- 49 files changed, 72 insertions(+), 98 deletions(-) diff --git a/examples/github-agent/packages/dashboard/components/ui/accordion.tsx b/examples/github-agent/packages/dashboard/components/ui/accordion.tsx index f537a3d9e..e59b5d02a 100644 --- a/examples/github-agent/packages/dashboard/components/ui/accordion.tsx +++ b/examples/github-agent/packages/dashboard/components/ui/accordion.tsx @@ -1,6 +1,6 @@ "use client" -import * as AccordionPrimitive from "@radix-ui/react-accordion" +import { Accordion as AccordionPrimitive } from "radix-ui" import { ChevronDownIcon } from "lucide-react" import type * as React from "react" diff --git a/examples/github-agent/packages/dashboard/components/ui/alert-dialog.tsx b/examples/github-agent/packages/dashboard/components/ui/alert-dialog.tsx index 0ba6c035c..56869be3f 100644 --- a/examples/github-agent/packages/dashboard/components/ui/alert-dialog.tsx +++ b/examples/github-agent/packages/dashboard/components/ui/alert-dialog.tsx @@ -1,6 +1,6 @@ "use client" -import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog" +import { AlertDialog as AlertDialogPrimitive } from "radix-ui" import type * as React from "react" import { buttonVariants } from "@/components/ui/button" diff --git a/examples/github-agent/packages/dashboard/components/ui/aspect-ratio.tsx b/examples/github-agent/packages/dashboard/components/ui/aspect-ratio.tsx index a7b5855a5..495b06cbb 100644 --- a/examples/github-agent/packages/dashboard/components/ui/aspect-ratio.tsx +++ b/examples/github-agent/packages/dashboard/components/ui/aspect-ratio.tsx @@ -1,6 +1,6 @@ "use client" -import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio" +import { AspectRatio as AspectRatioPrimitive } from "radix-ui" function AspectRatio({ ...props }: React.ComponentProps) { return diff --git a/examples/github-agent/packages/dashboard/components/ui/avatar.tsx b/examples/github-agent/packages/dashboard/components/ui/avatar.tsx index a1caabf34..2ccfdf5ab 100644 --- a/examples/github-agent/packages/dashboard/components/ui/avatar.tsx +++ b/examples/github-agent/packages/dashboard/components/ui/avatar.tsx @@ -1,6 +1,6 @@ "use client" -import * as AvatarPrimitive from "@radix-ui/react-avatar" +import { Avatar as AvatarPrimitive } from "radix-ui" import type * as React from "react" import { cn } from "@/lib/utils" diff --git a/examples/github-agent/packages/dashboard/components/ui/badge.tsx b/examples/github-agent/packages/dashboard/components/ui/badge.tsx index a1043e1ce..d6ec20236 100644 --- a/examples/github-agent/packages/dashboard/components/ui/badge.tsx +++ b/examples/github-agent/packages/dashboard/components/ui/badge.tsx @@ -1,4 +1,4 @@ -import { Slot } from "@radix-ui/react-slot" +import { Slot as SlotPrimitive } from "radix-ui" import { type VariantProps, cva } from "class-variance-authority" import type * as React from "react" @@ -29,7 +29,7 @@ function Badge({ asChild = false, ...props }: React.ComponentProps<"span"> & VariantProps & { asChild?: boolean }) { - const Comp = asChild ? Slot : "span" + const Comp = asChild ? SlotPrimitive.Slot : "span" return } diff --git a/examples/github-agent/packages/dashboard/components/ui/breadcrumb.tsx b/examples/github-agent/packages/dashboard/components/ui/breadcrumb.tsx index 4a727a1aa..ec5e8f1f0 100644 --- a/examples/github-agent/packages/dashboard/components/ui/breadcrumb.tsx +++ b/examples/github-agent/packages/dashboard/components/ui/breadcrumb.tsx @@ -1,4 +1,4 @@ -import { Slot } from "@radix-ui/react-slot" +import { Slot as SlotPrimitive } from "radix-ui" import { ChevronRight, MoreHorizontal } from "lucide-react" import type * as React from "react" @@ -38,7 +38,7 @@ function BreadcrumbLink({ }: React.ComponentProps<"a"> & { asChild?: boolean }) { - const Comp = asChild ? Slot : "a" + const Comp = asChild ? SlotPrimitive.Slot : "a" return ( & { asChild?: boolean }) { - const Comp = asChild ? Slot : "div" + const Comp = asChild ? SlotPrimitive.Slot : "div" return ( & { asChild?: boolean }) { - const Comp = asChild ? Slot : "button" + const Comp = asChild ? SlotPrimitive.Slot : "button" return ( ) { return diff --git a/examples/github-agent/packages/dashboard/components/ui/context-menu.tsx b/examples/github-agent/packages/dashboard/components/ui/context-menu.tsx index ab8ac24c2..5eb8dbf9f 100644 --- a/examples/github-agent/packages/dashboard/components/ui/context-menu.tsx +++ b/examples/github-agent/packages/dashboard/components/ui/context-menu.tsx @@ -1,6 +1,6 @@ "use client" -import * as ContextMenuPrimitive from "@radix-ui/react-context-menu" +import { ContextMenu as ContextMenuPrimitive } from "radix-ui" import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react" import type * as React from "react" diff --git a/examples/github-agent/packages/dashboard/components/ui/dialog.tsx b/examples/github-agent/packages/dashboard/components/ui/dialog.tsx index b1408d16e..b81cf9387 100644 --- a/examples/github-agent/packages/dashboard/components/ui/dialog.tsx +++ b/examples/github-agent/packages/dashboard/components/ui/dialog.tsx @@ -1,6 +1,6 @@ "use client" -import * as DialogPrimitive from "@radix-ui/react-dialog" +import { Dialog as DialogPrimitive } from "radix-ui" import { XIcon } from "lucide-react" import type * as React from "react" diff --git a/examples/github-agent/packages/dashboard/components/ui/dropdown-menu.tsx b/examples/github-agent/packages/dashboard/components/ui/dropdown-menu.tsx index 37d83f532..e1108453f 100644 --- a/examples/github-agent/packages/dashboard/components/ui/dropdown-menu.tsx +++ b/examples/github-agent/packages/dashboard/components/ui/dropdown-menu.tsx @@ -1,6 +1,6 @@ "use client" -import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu" +import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui" import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react" import type * as React from "react" diff --git a/examples/github-agent/packages/dashboard/components/ui/form.tsx b/examples/github-agent/packages/dashboard/components/ui/form.tsx index 45d703dbf..63f7a53b1 100644 --- a/examples/github-agent/packages/dashboard/components/ui/form.tsx +++ b/examples/github-agent/packages/dashboard/components/ui/form.tsx @@ -1,7 +1,7 @@ "use client" -import type * as LabelPrimitive from "@radix-ui/react-label" -import { Slot } from "@radix-ui/react-slot" +import { type Label as LabelPrimitive, Slot as SlotPrimitive } from "radix-ui" + import * as React from "react" import { Controller, @@ -93,11 +93,11 @@ function FormLabel({ className, ...props }: React.ComponentProps) { +function FormControl({ ...props }: React.ComponentProps) { const { error, formItemId, formDescriptionId, formMessageId } = useFormField() return ( - & VariantProps & { asChild?: boolean }) { - const Comp = asChild ? Slot : "div" + const Comp = asChild ? SlotPrimitive.Slot : "div" return ( & { asChild?: boolean }) { - const Comp = asChild ? Slot : "div" + const Comp = asChild ? SlotPrimitive.Slot : "div" return ( & { asChild?: boolean }) { - const Comp = asChild ? Slot : "button" + const Comp = asChild ? SlotPrimitive.Slot : "button" return ( } & VariantProps) { - const Comp = asChild ? Slot : "button" + const Comp = asChild ? SlotPrimitive.Slot : "button" const { isMobile, state } = useSidebar() const button = ( @@ -533,7 +533,7 @@ function SidebarMenuAction({ asChild?: boolean showOnHover?: boolean }) { - const Comp = asChild ? Slot : "button" + const Comp = asChild ? SlotPrimitive.Slot : "button" return ( (({ asChild, className, ...props }, ref) => { - const Comp = asChild ? Slot : "a" + const Comp = asChild ? SlotPrimitive.Slot : "a" return ( ( ({ className, variant, size, asChild = false, ...props }, ref) => { - const Comp = asChild ? Slot : "button" + const Comp = asChild ? SlotPrimitive.Slot : "button" return ( ) diff --git a/examples/github-agent/packages/dashboard/ui/checkbox.tsx b/examples/github-agent/packages/dashboard/ui/checkbox.tsx index 74da6996b..ce79f27db 100644 --- a/examples/github-agent/packages/dashboard/ui/checkbox.tsx +++ b/examples/github-agent/packages/dashboard/ui/checkbox.tsx @@ -1,6 +1,6 @@ "use client" -import * as CheckboxPrimitive from "@radix-ui/react-checkbox" +import { Checkbox as CheckboxPrimitive } from "radix-ui" import { Check } from "lucide-react" import * as React from "react" diff --git a/examples/github-agent/packages/dashboard/ui/dropdown-menu.tsx b/examples/github-agent/packages/dashboard/ui/dropdown-menu.tsx index 832d5be0d..8b19727d0 100644 --- a/examples/github-agent/packages/dashboard/ui/dropdown-menu.tsx +++ b/examples/github-agent/packages/dashboard/ui/dropdown-menu.tsx @@ -1,6 +1,6 @@ "use client" -import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu" +import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui" import { Check, ChevronRight, Circle } from "lucide-react" import * as React from "react" diff --git a/examples/github-agent/packages/dashboard/ui/label.tsx b/examples/github-agent/packages/dashboard/ui/label.tsx index 96d9eb1f6..d85208f69 100644 --- a/examples/github-agent/packages/dashboard/ui/label.tsx +++ b/examples/github-agent/packages/dashboard/ui/label.tsx @@ -1,6 +1,6 @@ "use client" -import * as LabelPrimitive from "@radix-ui/react-label" +import { Label as LabelPrimitive } from "radix-ui" import { type VariantProps, cva } from "class-variance-authority" import * as React from "react" diff --git a/examples/github-agent/packages/dashboard/ui/select.tsx b/examples/github-agent/packages/dashboard/ui/select.tsx index f6a3c4d24..57b957de7 100644 --- a/examples/github-agent/packages/dashboard/ui/select.tsx +++ b/examples/github-agent/packages/dashboard/ui/select.tsx @@ -1,6 +1,6 @@ "use client" -import * as SelectPrimitive from "@radix-ui/react-select" +import { Select as SelectPrimitive } from "radix-ui" import { Check, ChevronDown, ChevronUp } from "lucide-react" import * as React from "react" diff --git a/examples/github-agent/packages/dashboard/ui/separator.tsx b/examples/github-agent/packages/dashboard/ui/separator.tsx index 6404fa867..5d7ffa79a 100644 --- a/examples/github-agent/packages/dashboard/ui/separator.tsx +++ b/examples/github-agent/packages/dashboard/ui/separator.tsx @@ -1,6 +1,6 @@ "use client" -import * as SeparatorPrimitive from "@radix-ui/react-separator" +import { Separator as SeparatorPrimitive } from "radix-ui" import * as React from "react" import { cn } from "@/lib/utils" diff --git a/examples/github-agent/packages/dashboard/ui/sheet.tsx b/examples/github-agent/packages/dashboard/ui/sheet.tsx index df9b1b3fb..173714bb4 100644 --- a/examples/github-agent/packages/dashboard/ui/sheet.tsx +++ b/examples/github-agent/packages/dashboard/ui/sheet.tsx @@ -1,6 +1,6 @@ "use client" -import * as SheetPrimitive from "@radix-ui/react-dialog" +import { Dialog as SheetPrimitive } from "radix-ui" import { type VariantProps, cva } from "class-variance-authority" import { X } from "lucide-react" import * as React from "react" diff --git a/examples/github-agent/packages/dashboard/ui/sidebar.tsx b/examples/github-agent/packages/dashboard/ui/sidebar.tsx index ede0bd4e1..081ec7162 100644 --- a/examples/github-agent/packages/dashboard/ui/sidebar.tsx +++ b/examples/github-agent/packages/dashboard/ui/sidebar.tsx @@ -1,6 +1,6 @@ "use client" -import { Slot } from "@radix-ui/react-slot" +import { Slot as SlotPrimitive } from "radix-ui" import { type VariantProps, cva } from "class-variance-authority" import { PanelLeft } from "lucide-react" import * as React from "react" @@ -426,7 +426,7 @@ const SidebarGroupLabel = React.forwardRef< HTMLDivElement, React.ComponentProps<"div"> & { asChild?: boolean } >(({ className, asChild = false, ...props }, ref) => { - const Comp = asChild ? Slot : "div" + const Comp = asChild ? SlotPrimitive.Slot : "div" return ( & { asChild?: boolean } >(({ className, asChild = false, ...props }, ref) => { - const Comp = asChild ? Slot : "button" + const Comp = asChild ? SlotPrimitive.Slot : "button" return ( { - const Comp = asChild ? Slot : "button" + const Comp = asChild ? SlotPrimitive.Slot : "button" const { isMobile, state } = useSidebar() const button = ( @@ -590,7 +590,7 @@ const SidebarMenuAction = React.forwardRef< showOnHover?: boolean } >(({ className, asChild = false, showOnHover = false, ...props }, ref) => { - const Comp = asChild ? Slot : "button" + const Comp = asChild ? SlotPrimitive.Slot : "button" return ( (({ asChild = false, size = "md", isActive, className, ...props }, ref) => { - const Comp = asChild ? Slot : "a" + const Comp = asChild ? SlotPrimitive.Slot : "a" return ( Date: Tue, 11 Aug 2026 00:21:34 +0900 Subject: [PATCH 2/4] ci: rerun checks after PR title update From 3f7b8c500e052954694093009394847244ef10a7 Mon Sep 17 00:00:00 2001 From: Dan Lilienblum Date: Tue, 11 Aug 2026 07:56:18 +0900 Subject: [PATCH 3/4] fix(example): pin dashboard dependencies --- .../github-agent/packages/dashboard/package.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/github-agent/packages/dashboard/package.json b/examples/github-agent/packages/dashboard/package.json index 1b9e1cb92..62f7cb765 100644 --- a/examples/github-agent/packages/dashboard/package.json +++ b/examples/github-agent/packages/dashboard/package.json @@ -18,9 +18,9 @@ "@alienplatform/commands": "^1.0.0", "@alienplatform/platform-api": "^1.0.52", "@hookform/resolvers": "^3.10.0", - "@tabler/icons-react": "latest", + "@tabler/icons-react": "3.46.0", "@tanstack/react-query": "^5.62.11", - "@tanstack/react-table": "latest", + "@tanstack/react-table": "9.1.2", "autoprefixer": "^10.4.20", "bcrypt": "^5.1.1", "better-auth": "^1.2.8", @@ -35,20 +35,20 @@ "input-otp": "1.4.1", "lucide-react": "^0.468.0", "next": "15.2.6", - "next-themes": "latest", + "next-themes": "0.4.6", "pg": "^8.13.1", - "radix-ui": "latest", + "radix-ui": "1.6.7", "react": "^19", "react-day-picker": "9.8.0", "react-dom": "^19", "react-hook-form": "^7.60.0", "react-resizable-panels": "^2.1.7", - "recharts": "latest", - "sonner": "latest", + "recharts": "3.10.1", + "sonner": "2.0.8", "tailwind-merge": "^2.5.5", "tailwindcss-animate": "^1.0.7", "ts-pattern": "^5.5.0", - "vaul": "latest", + "vaul": "1.1.2", "workflow": "^4.0.1-beta.44", "zod": "3.25.76" }, From 705b84d153762b53f17332a7dbc1ec3631470baa Mon Sep 17 00:00:00 2001 From: Dan Lilienblum Date: Tue, 11 Aug 2026 08:09:13 +0900 Subject: [PATCH 4/4] fix(example): use compatible dependency ranges --- .../github-agent/packages/dashboard/package.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/github-agent/packages/dashboard/package.json b/examples/github-agent/packages/dashboard/package.json index 62f7cb765..a76ea327e 100644 --- a/examples/github-agent/packages/dashboard/package.json +++ b/examples/github-agent/packages/dashboard/package.json @@ -18,9 +18,9 @@ "@alienplatform/commands": "^1.0.0", "@alienplatform/platform-api": "^1.0.52", "@hookform/resolvers": "^3.10.0", - "@tabler/icons-react": "3.46.0", + "@tabler/icons-react": "^3.46.0", "@tanstack/react-query": "^5.62.11", - "@tanstack/react-table": "9.1.2", + "@tanstack/react-table": "^9.1.2", "autoprefixer": "^10.4.20", "bcrypt": "^5.1.1", "better-auth": "^1.2.8", @@ -35,20 +35,20 @@ "input-otp": "1.4.1", "lucide-react": "^0.468.0", "next": "15.2.6", - "next-themes": "0.4.6", + "next-themes": "^0.4.6", "pg": "^8.13.1", - "radix-ui": "1.6.7", + "radix-ui": "^1.6.7", "react": "^19", "react-day-picker": "9.8.0", "react-dom": "^19", "react-hook-form": "^7.60.0", "react-resizable-panels": "^2.1.7", - "recharts": "3.10.1", - "sonner": "2.0.8", + "recharts": "^3.10.1", + "sonner": "^2.0.8", "tailwind-merge": "^2.5.5", "tailwindcss-animate": "^1.0.7", "ts-pattern": "^5.5.0", - "vaul": "1.1.2", + "vaul": "^1.1.2", "workflow": "^4.0.1-beta.44", "zod": "3.25.76" },