Fully autonomous AI Agents system capable of performing complex penetration testing tasks
Go ai-agentsai-security-toolanthropicautonomous-agentsgolanggptgraphqlmulti-agent-systemoffensive-securityopen-sourceopenaipenetration-testingpenetration-testing-toolsreactsecurity-automationsecurity-testingsecurity-toolsself-hosted
refactor(ui): adopt shadcn v4 data-slot + aria-invalid, fix primitive drift
Sergey Kozyrenko0a5a9a6cdae4
diff --git a/frontend/src/components/shared/file-manager/file-manager-row.tsx b/frontend/src/components/shared/file-manager/file-manager-row.tsxindex 3772b4bb..9a4f1009 100644--- a/frontend/src/components/shared/file-manager/file-manager-row.tsx+++ b/frontend/src/components/shared/file-manager/file-manager-row.tsx@@ -275,16 +275,14 @@ function FileManagerRowImpl({action: FileManagerAction,) => {const ActionIcon = action.icon;- const itemClassName = cn(- action.variant === 'destructive' && 'text-destructive focus:bg-destructive/10 focus:text-destructive',- );+ const variant = action.variant === 'destructive' ? 'destructive' : 'default';if (action.getHref) {return (<ComponentasChild- className={itemClassName}key={action.id}+ variant={variant}><adownload={action.getHrefDownloadAttr?.(file) ?? true}@@ -299,9 +297,9 @@ function FileManagerRowImpl({return (<Component- className={itemClassName}key={action.id}onSelect={() => action.onSelect(file)}+ variant={variant}>{ActionIcon ? <ActionIcon className="size-4" /> : null}{action.label}diff --git a/frontend/src/components/ui/accordion.tsx b/frontend/src/components/ui/accordion.tsxindex 33044d1f..6b222301 100644--- a/frontend/src/components/ui/accordion.tsx+++ b/frontend/src/components/ui/accordion.tsx@@ -4,12 +4,20 @@ import * as React from 'react';import { cn } from '@/lib/utils';-const Accordion = AccordionPrimitive.Root;+function Accordion({ ...props }: React.ComponentProps<typeof AccordionPrimitive.Root>) {+ return (+ <AccordionPrimitive.Root+ data-slot="accordion"+ {...props}+ />+ );+}function AccordionContent({ children, className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Content>) {return (<AccordionPrimitive.ContentclassName="data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm"+ data-slot="accordion-content"{...props}><div className={cn('pt-0 pb-4', className)}>{children}</div>@@ -21,6 +29,7 @@ function AccordionItem({ className, ...props }: React.ComponentProps<typeof Accoreturn (<AccordionPrimitive.ItemclassName={cn('border-b', className)}+ data-slot="accordion-item"{...props}/>);@@ -34,6 +43,7 @@ function AccordionTrigger({ children, className, ...props }: React.ComponentProp'flex flex-1 items-center justify-between py-4 text-left text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180',className,)}+ data-slot="accordion-trigger"{...props}>{children}diff --git a/frontend/src/components/ui/alert.tsx b/frontend/src/components/ui/alert.tsxindex 5e41ce51..ef85a3f4 100644--- a/frontend/src/components/ui/alert.tsx+++ b/frontend/src/components/ui/alert.tsx@@ -22,6 +22,7 @@ function Alert({ className, variant, ...props }: React.ComponentProps<'div'> & Vreturn (<divclassName={cn(alertVariants({ variant }), className)}+ data-slot="alert"role="alert"{...props}/>@@ -32,6 +33,7 @@ function AlertDescription({ className, ...props }: React.ComponentProps<'div'>)return (<divclassName={cn('text-sm [&_p]:leading-relaxed', className)}+ data-slot="alert-description"{...props}/>);@@ -41,6 +43,7 @@ function AlertTitle({ className, ...props }: React.ComponentProps<'h5'>) {return (<h5className={cn('mb-1 leading-none font-medium tracking-tight', className)}+ data-slot="alert-title"{...props}/>);diff --git a/frontend/src/components/ui/avatar.tsx b/frontend/src/components/ui/avatar.tsxindex 689d6216..17e0beec 100644--- a/frontend/src/components/ui/avatar.tsx+++ b/frontend/src/components/ui/avatar.tsx@@ -7,6 +7,7 @@ function Avatar({ className, ...props }: React.ComponentProps<typeof AvatarPrimireturn (<AvatarPrimitive.RootclassName={cn('relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full', className)}+ data-slot="avatar"{...props}/>);@@ -16,6 +17,7 @@ function AvatarFallback({ className, ...props }: React.ComponentProps<typeof Avareturn (<AvatarPrimitive.FallbackclassName={cn('bg-muted flex h-full w-full items-center justify-center rounded-full', className)}+ data-slot="avatar-fallback"{...props}/>);@@ -25,6 +27,7 @@ function AvatarImage({ className, ...props }: React.ComponentProps<typeof Avatarreturn (<AvatarPrimitive.ImageclassName={cn('aspect-square h-full w-full', className)}+ data-slot="avatar-image"{...props}/>);diff --git a/frontend/src/components/ui/badge.tsx b/frontend/src/components/ui/badge.tsxindex 66097a8a..99231206 100644--- a/frontend/src/components/ui/badge.tsx+++ b/frontend/src/components/ui/badge.tsx@@ -35,6 +35,7 @@ function Badge({ className, variant, ...props }: BadgeProps) {return (<divclassName={cn(badgeVariants({ variant }), className)}+ data-slot="badge"{...props}/>);diff --git a/frontend/src/components/ui/breadcrumb.tsx b/frontend/src/components/ui/breadcrumb.tsxindex 61a59a47..a06378bc 100644--- a/frontend/src/components/ui/breadcrumb.tsx+++ b/frontend/src/components/ui/breadcrumb.tsx@@ -12,6 +12,7 @@ function Breadcrumb({return (<navaria-label="breadcrumb"+ data-slot="breadcrumb"{...props}/>);@@ -22,6 +23,7 @@ function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<'span'<spanaria-hidden="true"className={cn('flex h-9 w-9 items-center justify-center', className)}+ data-slot="breadcrumb-ellipsis"role="presentation"{...props}>@@ -35,6 +37,7 @@ function BreadcrumbItem({ className, ...props }: React.ComponentProps<'li'>) {return (<liclassName={cn('inline-flex items-center gap-1.5', className)}+ data-slot="breadcrumb-item"{...props}/>);@@ -52,6 +55,7 @@ function BreadcrumbLink({return (<CompclassName={cn('hover:text-foreground transition-colors', className)}+ data-slot="breadcrumb-link"{...props}/>);@@ -64,6 +68,7 @@ function BreadcrumbList({ className, ...props }: React.ComponentProps<'ol'>) {'text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm wrap-break-word sm:gap-2.5',className,)}+ data-slot="breadcrumb-list"{...props}/>);@@ -75,6 +80,7 @@ function BreadcrumbPage({ className, ...props }: React.ComponentProps<'span'>) {aria-current="page"aria-disabled="true"className={cn('text-foreground font-normal', className)}+ data-slot="breadcrumb-page"role="link"{...props}/>@@ -86,6 +92,7 @@ function BreadcrumbSeparator({ children, className, ...props }: React.ComponentP<liaria-hidden="true"className={cn('[&>svg]:h-3.5 [&>svg]:w-3.5', className)}+ data-slot="breadcrumb-separator"role="presentation"{...props}>diff --git a/frontend/src/components/ui/button.tsx b/frontend/src/components/ui/button.tsxindex 870335d0..6b96648f 100644--- a/frontend/src/components/ui/button.tsx+++ b/frontend/src/components/ui/button.tsx@@ -5,7 +5,7 @@ import * as React from 'react';import { cn } from '@/lib/utils';const buttonVariants = cva(- 'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',+ 'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',{defaultVariants: {size: 'default',@@ -44,6 +44,7 @@ function Button({ asChild = false, className, size, type, variant, ...props }: Breturn (<CompclassName={cn(buttonVariants({ className, size, variant }))}+ data-slot="button"// HTML's default `type` for a `<button>` inside a `<form>` is `submit`,// which silently submits the form on every click — every nav cluster,// toggle, or dropdown trigger placed inside a form would post thediff --git a/frontend/src/components/ui/card.tsx b/frontend/src/components/ui/card.tsxindex 9d855dba..4cafab68 100644--- a/frontend/src/components/ui/card.tsx+++ b/frontend/src/components/ui/card.tsx@@ -6,6 +6,7 @@ function Card({ className, ...props }: React.ComponentProps<'div'>) {return (<divclassName={cn('bg-card text-card-foreground rounded-xl border shadow-sm', className)}+ data-slot="card"{...props}/>);@@ -15,6 +16,7 @@ function CardContent({ className, ...props }: React.ComponentProps<'div'>) {return (<divclassName={cn('p-4 pt-0', className)}+ data-slot="card-content"{...props}/>);@@ -24,6 +26,7 @@ function CardDescription({ className, ...props }: React.ComponentProps<'p'>) {return (<pclassName={cn('text-muted-foreground text-sm', className)}+ data-slot="card-description"{...props}/>);@@ -33,6 +36,7 @@ function CardFooter({ className, ...props }: React.ComponentProps<'div'>) {return (<divclassName={cn('flex items-center p-4 pt-0', className)}+ data-slot="card-footer"{...props}/>);@@ -42,6 +46,7 @@ function CardHeader({ className, ...props }: React.ComponentProps<'div'>) {return (<divclassName={cn('flex flex-col gap-1.5 p-4', className)}+ data-slot="card-header"{...props}/>);@@ -51,6 +56,7 @@ function CardTitle({ className, ...props }: React.ComponentProps<'h3'>) {return (<h3className={cn('leading-none font-semibold tracking-tight', className)}+ data-slot="card-title"{...props}/>);diff --git a/frontend/src/components/ui/checkbox.tsx b/frontend/src/components/ui/checkbox.tsxindex 36e1d6ec..f581d67c 100644--- a/frontend/src/components/ui/checkbox.tsx+++ b/frontend/src/components/ui/checkbox.tsx@@ -8,9 +8,10 @@ function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPreturn (<CheckboxPrimitive.RootclassName={cn(- 'peer border-primary focus-visible:ring-ring data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground grid h-4 w-4 shrink-0 place-content-center rounded-sm border shadow focus-visible:ring-1 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50',+ 'peer border-input aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive focus-visible:ring-ring data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground grid h-4 w-4 shrink-0 place-content-center rounded-sm border shadow focus-visible:ring-1 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50',className,)}+ data-slot="checkbox"{...props}><CheckboxPrimitive.Indicator className={cn('grid place-content-center text-current')}>diff --git a/frontend/src/components/ui/collapsible.tsx b/frontend/src/components/ui/collapsible.tsxindex 6105fb47..a5d2031c 100644--- a/frontend/src/components/ui/collapsible.tsx+++ b/frontend/src/components/ui/collapsible.tsx@@ -1,9 +1,31 @@import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';+import * as React from 'react';-const Collapsible = CollapsiblePrimitive.Root;+function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>) {+ return (+ <CollapsiblePrimitive.Root+ data-slot="collapsible"+ {...props}+ />+ );+}-const CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger;+function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>) {+ return (+ <CollapsiblePrimitive.CollapsibleContent+ data-slot="collapsible-content"+ {...props}+ />+ );+}-const CollapsibleContent = CollapsiblePrimitive.CollapsibleContent;+function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>) {+ return (+ <CollapsiblePrimitive.CollapsibleTrigger+ data-slot="collapsible-trigger"+ {...props}+ />+ );+}export { Collapsible, CollapsibleContent, CollapsibleTrigger };diff --git a/frontend/src/components/ui/command.tsx b/frontend/src/components/ui/command.tsxindex c63ec6dd..1254e580 100644--- a/frontend/src/components/ui/command.tsx+++ b/frontend/src/components/ui/command.tsx@@ -13,6 +13,7 @@ function Command({ className, ...props }: React.ComponentProps<typeof CommandPri'bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md',className,)}+ data-slot="command"{...props}/>);@@ -34,6 +35,7 @@ function CommandEmpty({ ...props }: React.ComponentProps<typeof CommandPrimitivereturn (<CommandPrimitive.EmptyclassName="text-muted-foreground/50 py-6 text-center text-sm"+ data-slot="command-empty"{...props}/>);@@ -46,6 +48,7 @@ function CommandGroup({ className, ...props }: React.ComponentProps<typeof Comma'text-foreground **:[[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium',className,)}+ data-slot="command-group"{...props}/>);@@ -53,13 +56,17 @@ function CommandGroup({ className, ...props }: React.ComponentProps<typeof Commafunction CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>) {return (- <div className="flex items-center border-b px-3">+ <div+ className="flex items-center border-b px-3"+ data-slot="command-input-wrapper"+ ><Search className="mr-2 h-4 w-4 shrink-0 opacity-50" /><CommandPrimitive.InputclassName={cn('placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50',className,)}+ data-slot="command-input"{...props}/></div>@@ -73,6 +80,7 @@ function CommandItem({ className, ...props }: React.ComponentProps<typeof Comman'data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',className,)}+ data-slot="command-item"{...props}/>);@@ -82,6 +90,7 @@ function CommandList({ className, ...props }: React.ComponentProps<typeof Commanreturn (<CommandPrimitive.ListclassName={cn('max-h-[300px] overflow-x-hidden overflow-y-auto', className)}+ data-slot="command-list"{...props}/>);@@ -91,6 +100,7 @@ function CommandSeparator({ className, ...props }: React.ComponentProps<typeof Creturn (<CommandPrimitive.SeparatorclassName={cn('bg-border -mx-1 h-px', className)}+ data-slot="command-separator"{...props}/>);@@ -100,6 +110,7 @@ function CommandShortcut({ className, ...props }: React.ComponentProps<'span'>)return (<spanclassName={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)}+ data-slot="command-shortcut"{...props}/>);diff --git a/frontend/src/components/ui/context-menu.tsx b/frontend/src/components/ui/context-menu.tsxindex 0793aacf..d6aab07e 100644--- a/frontend/src/components/ui/context-menu.tsx+++ b/frontend/src/components/ui/context-menu.tsx@@ -4,17 +4,14 @@ import * as React from 'react';import { cn } from '@/lib/utils';-const ContextMenu = ContextMenuPrimitive.Root;--const ContextMenuTrigger = ContextMenuPrimitive.Trigger;--const ContextMenuGroup = ContextMenuPrimitive.Group;--const ContextMenuPortal = ContextMenuPrimitive.Portal;--const ContextMenuSub = ContextMenuPrimitive.Sub;--const ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;+function ContextMenu({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Root>) {+ return (+ <ContextMenuPrimitive.Root+ data-slot="context-menu"+ {...props}+ />+ );+}function ContextMenuCheckboxItem({checked,@@ -29,6 +26,7 @@ function ContextMenuCheckboxItem({'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',className,)}+ data-slot="context-menu-checkbox-item"{...props}><span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">@@ -49,26 +47,40 @@ function ContextMenuContent({ className, ...props }: React.ComponentProps<typeof'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] origin-[--radix-context-menu-content-transform-origin] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md',className,)}+ data-slot="context-menu-content"{...props}/></ContextMenuPrimitive.Portal>);}+function ContextMenuGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Group>) {+ return (+ <ContextMenuPrimitive.Group+ data-slot="context-menu-group"+ {...props}+ />+ );+}+function ContextMenuItem({className,inset,+ variant = 'default',...props}: React.ComponentProps<typeof ContextMenuPrimitive.Item> & {inset?: boolean;+ variant?: 'default' | 'destructive';}) {return (<ContextMenuPrimitive.ItemclassName={cn(- "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",inset && 'pl-8',className,)}+ data-slot="context-menu-item"+ data-variant={variant}{...props}/>);@@ -84,6 +96,25 @@ function ContextMenuLabel({return (<ContextMenuPrimitive.LabelclassName={cn('text-foreground px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}+ data-slot="context-menu-label"+ {...props}+ />+ );+}++function ContextMenuPortal({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Portal>) {+ return (+ <ContextMenuPrimitive.Portal+ data-slot="context-menu-portal"+ {...props}+ />+ );+}++function ContextMenuRadioGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioGroup>) {+ return (+ <ContextMenuPrimitive.RadioGroup+ data-slot="context-menu-radio-group"{...props}/>);@@ -100,6 +131,7 @@ function ContextMenuRadioItem({'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',className,)}+ data-slot="context-menu-radio-item"{...props}><span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">@@ -116,6 +148,7 @@ function ContextMenuSeparator({ className, ...props }: React.ComponentProps<typereturn (<ContextMenuPrimitive.SeparatorclassName={cn('bg-border -mx-1 my-1 h-px', className)}+ data-slot="context-menu-separator"{...props}/>);@@ -125,6 +158,16 @@ function ContextMenuShortcut({ className, ...props }: React.ComponentProps<'spanreturn (<spanclassName={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)}+ data-slot="context-menu-shortcut"+ {...props}+ />+ );+}++function ContextMenuSub({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Sub>) {+ return (+ <ContextMenuPrimitive.Sub+ data-slot="context-menu-sub"{...props}/>);@@ -137,6 +180,7 @@ function ContextMenuSubContent({ className, ...props }: React.ComponentProps<typ'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-[--radix-context-menu-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg',className,)}+ data-slot="context-menu-sub-content"{...props}/>);@@ -157,6 +201,7 @@ function ContextMenuSubTrigger({inset && 'pl-8',className,)}+ data-slot="context-menu-sub-trigger"{...props}>{children}@@ -165,6 +210,15 @@ function ContextMenuSubTrigger({);}+function ContextMenuTrigger({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Trigger>) {+ return (+ <ContextMenuPrimitive.Trigger+ data-slot="context-menu-trigger"+ {...props}+ />+ );+}+export {ContextMenu,ContextMenuCheckboxItem,diff --git a/frontend/src/components/ui/dialog.tsx b/frontend/src/components/ui/dialog.tsxindex 9164acb9..3ea71b89 100644--- a/frontend/src/components/ui/dialog.tsx+++ b/frontend/src/components/ui/dialog.tsx@@ -4,13 +4,23 @@ import * as React from 'react';import { cn } from '@/lib/utils';-const Dialog = DialogPrimitive.Root;--const DialogTrigger = DialogPrimitive.Trigger;--const DialogPortal = DialogPrimitive.Portal;+function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>) {+ return (+ <DialogPrimitive.Root+ data-slot="dialog"+ {...props}+ />+ );+}-const DialogClose = DialogPrimitive.Close;+function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>) {+ return (+ <DialogPrimitive.Close+ data-slot="dialog-close"+ {...props}+ />+ );+}function DialogContent({ children, className, ...props }: React.ComponentProps<typeof DialogPrimitive.Content>) {return (@@ -21,10 +31,14 @@ function DialogContent({ children, className, ...props }: React.ComponentProps<t'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg outline-0 duration-200 sm:max-w-lg',className,)}+ data-slot="dialog-content"{...props}>{children}- <DialogPrimitive.Close className="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none">+ <DialogPrimitive.Close+ className="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none"+ data-slot="dialog-close"+ ><X className="h-4 w-4" /><span className="sr-only">Close</span></DialogPrimitive.Close>@@ -37,6 +51,7 @@ function DialogDescription({ className, ...props }: React.ComponentProps<typeofreturn (<DialogPrimitive.DescriptionclassName={cn('text-muted-foreground text-sm', className)}+ data-slot="dialog-description"{...props}/>);@@ -46,6 +61,7 @@ function DialogFooter({ className, ...props }: React.ComponentProps<'div'>) {return (<divclassName={cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', className)}+ data-slot="dialog-footer"{...props}/>);@@ -55,6 +71,7 @@ function DialogHeader({ className, ...props }: React.ComponentProps<'div'>) {return (<divclassName={cn('flex flex-col gap-1.5 text-center sm:text-left', className)}+ data-slot="dialog-header"{...props}/>);@@ -67,6 +84,16 @@ function DialogOverlay({ className, ...props }: React.ComponentProps<typeof Dial'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 bg-background/80 fixed inset-0 z-50 backdrop-blur-xs',className,)}+ data-slot="dialog-overlay"+ {...props}+ />+ );+}++function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>) {+ return (+ <DialogPrimitive.Portal+ data-slot="dialog-portal"{...props}/>);@@ -76,6 +103,16 @@ function DialogTitle({ className, ...props }: React.ComponentProps<typeof Dialogreturn (<DialogPrimitive.TitleclassName={cn('text-lg leading-none font-semibold tracking-tight', className)}+ data-slot="dialog-title"+ {...props}+ />+ );+}++function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>) {+ return (+ <DialogPrimitive.Trigger+ data-slot="dialog-trigger"{...props}/>);diff --git a/frontend/src/components/ui/dropdown-menu.tsx b/frontend/src/components/ui/dropdown-menu.tsxindex 4e6a925d..81347ffb 100644--- a/frontend/src/components/ui/dropdown-menu.tsx+++ b/frontend/src/components/ui/dropdown-menu.tsx@@ -4,17 +4,14 @@ import * as React from 'react';import { cn } from '@/lib/utils';-const DropdownMenu = DropdownMenuPrimitive.Root;--const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;--const DropdownMenuGroup = DropdownMenuPrimitive.Group;--const DropdownMenuPortal = DropdownMenuPrimitive.Portal;--const DropdownMenuSub = DropdownMenuPrimitive.Sub;--const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;+function DropdownMenu(props: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {+ return (+ <DropdownMenuPrimitive.Root+ data-slot="dropdown-menu"+ {...props}+ />+ );+}function DropdownMenuCheckboxItem({checked,@@ -29,6 +26,7 @@ function DropdownMenuCheckboxItem({'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden transition-colors select-none data-disabled:pointer-events-none data-disabled:opacity-50',className,)}+ data-slot="dropdown-menu-checkbox-item"{...props}><span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">@@ -50,10 +48,11 @@ function DropdownMenuContent({<DropdownMenuPrimitive.Portal><DropdownMenuPrimitive.ContentclassName={cn(- 'bg-popover text-popover-foreground z-50 min-w-32 overflow-hidden rounded-md border p-1 shadow-md',+ 'bg-popover text-popover-foreground z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md','data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',className,)}+ data-slot="dropdown-menu-content"sideOffset={sideOffset}{...props}/>@@ -61,20 +60,33 @@ function DropdownMenuContent({);}+function DropdownMenuGroup(props: React.ComponentProps<typeof DropdownMenuPrimitive.Group>) {+ return (+ <DropdownMenuPrimitive.Group+ data-slot="dropdown-menu-group"+ {...props}+ />+ );+}+function DropdownMenuItem({className,inset,+ variant = 'default',...props}: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {inset?: boolean;+ variant?: 'default' | 'destructive';}) {return (<DropdownMenuPrimitive.ItemclassName={cn(- 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden transition-colors select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0',+ 'focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden transition-colors select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0',inset && 'pl-8',className,)}+ data-slot="dropdown-menu-item"+ data-variant={variant}{...props}/>);@@ -90,6 +102,25 @@ function DropdownMenuLabel({return (<DropdownMenuPrimitive.LabelclassName={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}+ data-slot="dropdown-menu-label"+ {...props}+ />+ );+}++function DropdownMenuPortal(props: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>) {+ return (+ <DropdownMenuPrimitive.Portal+ data-slot="dropdown-menu-portal"+ {...props}+ />+ );+}++function DropdownMenuRadioGroup(props: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>) {+ return (+ <DropdownMenuPrimitive.RadioGroup+ data-slot="dropdown-menu-radio-group"{...props}/>);@@ -106,6 +137,7 @@ function DropdownMenuRadioItem({'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden transition-colors select-none data-disabled:pointer-events-none data-disabled:opacity-50',className,)}+ data-slot="dropdown-menu-radio-item"{...props}><span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">@@ -122,6 +154,7 @@ function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typreturn (<DropdownMenuPrimitive.SeparatorclassName={cn('bg-border -mx-1 my-1 h-px', className)}+ data-slot="dropdown-menu-separator"{...props}/>);@@ -131,6 +164,16 @@ function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<'spareturn (<spanclassName={cn('ml-auto text-xs tracking-widest opacity-60', className)}+ data-slot="dropdown-menu-shortcut"+ {...props}+ />+ );+}++function DropdownMenuSub(props: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>) {+ return (+ <DropdownMenuPrimitive.Sub+ data-slot="dropdown-menu-sub"{...props}/>);@@ -146,6 +189,7 @@ function DropdownMenuSubContent({'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-32 overflow-hidden rounded-md border p-1 shadow-lg',className,)}+ data-slot="dropdown-menu-sub-content"{...props}/>);@@ -166,6 +210,7 @@ function DropdownMenuSubTrigger({inset && 'pl-8',className,)}+ data-slot="dropdown-menu-sub-trigger"{...props}>{children}@@ -174,6 +219,15 @@ function DropdownMenuSubTrigger({);}+function DropdownMenuTrigger(props: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>) {+ return (+ <DropdownMenuPrimitive.Trigger+ data-slot="dropdown-menu-trigger"+ {...props}+ />+ );+}+export {DropdownMenu,DropdownMenuCheckboxItem,diff --git a/frontend/src/components/ui/form.tsx b/frontend/src/components/ui/form.tsxindex 216342ac..8dc5ee87 100644--- a/frontend/src/components/ui/form.tsx+++ b/frontend/src/components/ui/form.tsx@@ -71,6 +71,7 @@ function FormControl({ ...props }: React.ComponentProps<typeof Slot>) {<Slotaria-describedby={!error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`}aria-invalid={!!error}+ data-slot="form-control"id={formItemId}{...props}/>@@ -83,6 +84,7 @@ function FormDescription({ className, ...props }: React.ComponentProps<'p'>) {return (<pclassName={cn('text-muted-foreground text-[0.8rem]', className)}+ data-slot="form-description"id={formDescriptionId}{...props}/>@@ -96,6 +98,7 @@ function FormItem({ className, ...props }: React.ComponentProps<'div'>) {<FormItemContext.Provider value={{ id }}><divclassName={cn('flex flex-col gap-2', className)}+ data-slot="form-item"{...props}/></FormItemContext.Provider>@@ -108,6 +111,7 @@ function FormLabel({ className, ...props }: React.ComponentProps<typeof LabelPrireturn (<LabelclassName={cn(error && 'text-destructive', className)}+ data-slot="form-label"htmlFor={formItemId}{...props}/>@@ -125,6 +129,7 @@ function FormMessage({ children, className, ...props }: React.ComponentProps<'p'return (<pclassName={cn('text-destructive text-[0.8rem] font-medium', className)}+ data-slot="form-message"id={formMessageId}{...props}>diff --git a/frontend/src/components/ui/input.tsx b/frontend/src/components/ui/input.tsxindex af5ac6d6..7e042b12 100644--- a/frontend/src/components/ui/input.tsx+++ b/frontend/src/components/ui/input.tsx@@ -8,11 +8,12 @@ function Input({ className, type, ...props }: InputProps) {return (<inputclassName={cn(- 'aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive border-input dark:bg-input/30 file:text-foreground placeholder:text-muted-foreground focus-visible:ring-ring flex h-9 w-full rounded-md border bg-transparent px-3 py-1 text-sm shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-1 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50',+ 'aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive border-input dark:bg-input/30 file:text-foreground placeholder:text-muted-foreground focus-visible:ring-ring flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-1 focus-visible:outline-hidden disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',type === 'number' &&'[appearance:textfield] [&::-webkit-inner-spin-button]:m-0 [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:m-0 [&::-webkit-outer-spin-button]:appearance-none',className,)}+ data-slot="input"type={type}{...props}/>diff --git a/frontend/src/components/ui/label.tsx b/frontend/src/components/ui/label.tsxindex 81f80134..992a305a 100644--- a/frontend/src/components/ui/label.tsx+++ b/frontend/src/components/ui/label.tsx@@ -13,6 +13,7 @@ function Label({return (<LabelPrimitive.RootclassName={cn(labelVariants(), className)}+ data-slot="label"{...props}/>);diff --git a/frontend/src/components/ui/popover.tsx b/frontend/src/components/ui/popover.tsxindex 68f84d2a..a6d1e562 100644--- a/frontend/src/components/ui/popover.tsx+++ b/frontend/src/components/ui/popover.tsx@@ -3,11 +3,23 @@ import * as React from 'react';import { cn } from '@/lib/utils';-const Popover = PopoverPrimitive.Root;--const PopoverTrigger = PopoverPrimitive.Trigger;+function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) {+ return (+ <PopoverPrimitive.Root+ data-slot="popover"+ {...props}+ />+ );+}-const PopoverAnchor = PopoverPrimitive.Anchor;+function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {+ return (+ <PopoverPrimitive.Anchor+ data-slot="popover-anchor"+ {...props}+ />+ );+}function PopoverContent({align = 'center',@@ -23,6 +35,7 @@ function PopoverContent({'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden',className,)}+ data-slot="popover-content"sideOffset={sideOffset}{...props}/>@@ -30,4 +43,13 @@ function PopoverContent({);}+function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {+ return (+ <PopoverPrimitive.Trigger+ data-slot="popover-trigger"+ {...props}+ />+ );+}+export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };diff --git a/frontend/src/components/ui/progress.tsx b/frontend/src/components/ui/progress.tsxindex 3df3ffcc..db65deb3 100644--- a/frontend/src/components/ui/progress.tsx+++ b/frontend/src/components/ui/progress.tsx@@ -7,10 +7,12 @@ function Progress({ className, value, ...props }: React.ComponentProps<typeof Prreturn (<ProgressPrimitive.RootclassName={cn('bg-primary/20 relative h-2 w-full overflow-hidden rounded-full', className)}+ data-slot="progress"{...props}><ProgressPrimitive.IndicatorclassName={cn('bg-primary h-full w-full flex-1 transition-all')}+ data-slot="progress-indicator"style={{ transform: `translateX(-${100 - (value || 0)}%)` }}/></ProgressPrimitive.Root>diff --git a/frontend/src/components/ui/resizable.tsx b/frontend/src/components/ui/resizable.tsxindex 4fdad2cc..78dd8465 100644--- a/frontend/src/components/ui/resizable.tsx+++ b/frontend/src/components/ui/resizable.tsx@@ -3,17 +3,6 @@ import { Group, Panel, Separator } from 'react-resizable-panels';import { cn } from '@/lib/utils';-function ResizablePanelGroup({ className, ...props }: React.ComponentProps<typeof Group>) {- return (- <Group- className={cn('flex h-full w-full data-[panel-group-direction=vertical]:flex-col', className)}- {...props}- />- );-}--const ResizablePanel = Panel;-function ResizableHandle({className,withHandle,@@ -24,9 +13,10 @@ function ResizableHandle({return (<SeparatorclassName={cn(- 'bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90',+ 'bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:left-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 [&[aria-orientation=horizontal]>div]:rotate-90',className,)}+ data-slot="resizable-handle"{...props}>{withHandle && (@@ -38,4 +28,23 @@ function ResizableHandle({);}+function ResizablePanel(props: React.ComponentProps<typeof Panel>) {+ return (+ <Panel+ data-slot="resizable-panel"+ {...props}+ />+ );+}++function ResizablePanelGroup({ className, ...props }: React.ComponentProps<typeof Group>) {+ return (+ <Group+ className={cn('flex h-full w-full aria-[orientation=vertical]:flex-col', className)}+ data-slot="resizable-panel-group"+ {...props}+ />+ );+}+export { ResizableHandle, ResizablePanel, ResizablePanelGroup };diff --git a/frontend/src/components/ui/scroll-area.tsx b/frontend/src/components/ui/scroll-area.tsxindex f716ae30..9b2cedf6 100644--- a/frontend/src/components/ui/scroll-area.tsx+++ b/frontend/src/components/ui/scroll-area.tsx@@ -7,9 +7,13 @@ function ScrollArea({ children, className, ...props }: React.ComponentProps<typereturn (<ScrollAreaPrimitive.RootclassName={cn('relative overflow-hidden', className)}+ data-slot="scroll-area"{...props}>- <ScrollAreaPrimitive.Viewport className="size-full rounded-[inherit]">+ <ScrollAreaPrimitive.Viewport+ className="size-full rounded-[inherit]"+ data-slot="scroll-area-viewport"+ >{children}</ScrollAreaPrimitive.Viewport><ScrollBar />@@ -31,10 +35,14 @@ function ScrollBar({orientation === 'horizontal' && 'h-2.5 flex-col border-t border-t-transparent p-px',className,)}+ data-slot="scroll-area-scrollbar"orientation={orientation}{...props}>- <ScrollAreaPrimitive.ScrollAreaThumb className="bg-border relative flex-1 rounded-full" />+ <ScrollAreaPrimitive.ScrollAreaThumb+ className="bg-border relative flex-1 rounded-full"+ data-slot="scroll-area-thumb"+ /></ScrollAreaPrimitive.ScrollAreaScrollbar>);}diff --git a/frontend/src/components/ui/select.tsx b/frontend/src/components/ui/select.tsxindex 45f63fd7..1b7a534d 100644--- a/frontend/src/components/ui/select.tsx+++ b/frontend/src/components/ui/select.tsx@@ -4,11 +4,14 @@ import * as React from 'react';import { cn } from '@/lib/utils';-const Select = SelectPrimitive.Root;--const SelectGroup = SelectPrimitive.Group;--const SelectValue = SelectPrimitive.Value;+function Select(props: React.ComponentProps<typeof SelectPrimitive.Root>) {+ return (+ <SelectPrimitive.Root+ data-slot="select"+ {...props}+ />+ );+}function SelectContent({children,@@ -25,6 +28,7 @@ function SelectContent({'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',className,)}+ data-slot="select-content"position={position}{...props}>@@ -44,6 +48,15 @@ function SelectContent({);}+function SelectGroup(props: React.ComponentProps<typeof SelectPrimitive.Group>) {+ return (+ <SelectPrimitive.Group+ data-slot="select-group"+ {...props}+ />+ );+}+function SelectItem({ children, className, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>) {return (<SelectPrimitive.Item@@ -51,6 +64,7 @@ function SelectItem({ children, className, ...props }: React.ComponentProps<type'focus:bg-accent focus:text-accent-foreground relative flex w-full cursor-default items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50',className,)}+ data-slot="select-item"{...props}><span className="absolute right-2 flex h-3.5 w-3.5 items-center justify-center">@@ -67,6 +81,7 @@ function SelectLabel({ className, ...props }: React.ComponentProps<typeof Selectreturn (<SelectPrimitive.LabelclassName={cn('px-2 py-1.5 text-sm font-semibold', className)}+ data-slot="select-label"{...props}/>);@@ -79,6 +94,7 @@ function SelectScrollDownButton({return (<SelectPrimitive.ScrollDownButtonclassName={cn('flex cursor-default items-center justify-center py-1', className)}+ data-slot="select-scroll-down-button"{...props}><ChevronDown className="size-4" />@@ -90,6 +106,7 @@ function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typereturn (<SelectPrimitive.ScrollUpButtonclassName={cn('flex cursor-default items-center justify-center py-1', className)}+ data-slot="select-scroll-up-button"{...props}><ChevronUp className="h-4 w-4" />@@ -101,6 +118,7 @@ function SelectSeparator({ className, ...props }: React.ComponentProps<typeof Sereturn (<SelectPrimitive.SeparatorclassName={cn('bg-muted -mx-1 my-1 h-px', className)}+ data-slot="select-separator"{...props}/>);@@ -113,6 +131,7 @@ function SelectTrigger({ children, className, ...props }: React.ComponentProps<t'aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive border-input ring-offset-background focus:ring-ring data-placeholder:text-muted-foreground flex h-9 w-full items-center justify-between rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs focus:ring-1 focus:outline-hidden disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1',className,)}+ data-slot="select-trigger"{...props}>{children}@@ -123,6 +142,15 @@ function SelectTrigger({ children, className, ...props }: React.ComponentProps<t);}+function SelectValue(props: React.ComponentProps<typeof SelectPrimitive.Value>) {+ return (+ <SelectPrimitive.Value+ data-slot="select-value"+ {...props}+ />+ );+}+export {Select,SelectContent,diff --git a/frontend/src/components/ui/separator.tsx b/frontend/src/components/ui/separator.tsxindex cbecf228..7dd53e10 100644--- a/frontend/src/components/ui/separator.tsx+++ b/frontend/src/components/ui/separator.tsx@@ -16,6 +16,7 @@ function Separator({orientation === 'horizontal' ? 'h-px w-full' : 'h-full w-px',className,)}+ data-slot="separator"decorative={decorative}orientation={orientation}{...props}diff --git a/frontend/src/components/ui/sheet.tsx b/frontend/src/components/ui/sheet.tsxindex e3806a99..845c39c6 100644--- a/frontend/src/components/ui/sheet.tsx+++ b/frontend/src/components/ui/sheet.tsx@@ -7,13 +7,23 @@ import * as React from 'react';import { cn } from '@/lib/utils';-const Sheet = SheetPrimitive.Root;--const SheetTrigger = SheetPrimitive.Trigger;--const SheetClose = SheetPrimitive.Close;+function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {+ return (+ <SheetPrimitive.Root+ data-slot="sheet"+ {...props}+ />+ );+}-const SheetPortal = SheetPrimitive.Portal;+function SheetClose({ ...props }: React.ComponentProps<typeof SheetPrimitive.Close>) {+ return (+ <SheetPrimitive.Close+ data-slot="sheet-close"+ {...props}+ />+ );+}function SheetOverlay({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Overlay>) {return (@@ -22,6 +32,25 @@ function SheetOverlay({ className, ...props }: React.ComponentProps<typeof Sheet'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80',className,)}+ data-slot="sheet-overlay"+ {...props}+ />+ );+}++function SheetPortal({ ...props }: React.ComponentProps<typeof SheetPrimitive.Portal>) {+ return (+ <SheetPrimitive.Portal+ data-slot="sheet-portal"+ {...props}+ />+ );+}++function SheetTrigger({ ...props }: React.ComponentProps<typeof SheetPrimitive.Trigger>) {+ return (+ <SheetPrimitive.Trigger+ data-slot="sheet-trigger"{...props}/>);@@ -56,6 +85,7 @@ function SheetContent({ children, className, container, overlay = true, side = '{overlay && <SheetOverlay />}<SheetPrimitive.ContentclassName={cn(sheetVariants({ side }), className)}+ data-slot="sheet-content"{...props}><SheetPrimitive.Close className="ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none">@@ -72,6 +102,7 @@ function SheetDescription({ className, ...props }: React.ComponentProps<typeof Sreturn (<SheetPrimitive.DescriptionclassName={cn('text-muted-foreground text-sm', className)}+ data-slot="sheet-description"{...props}/>);@@ -81,6 +112,7 @@ function SheetFooter({ className, ...props }: React.ComponentProps<'div'>) {return (<divclassName={cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', className)}+ data-slot="sheet-footer"{...props}/>);@@ -90,6 +122,7 @@ function SheetHeader({ className, ...props }: React.ComponentProps<'div'>) {return (<divclassName={cn('flex flex-col gap-2 text-center sm:text-left', className)}+ data-slot="sheet-header"{...props}/>);@@ -99,6 +132,7 @@ function SheetTitle({ className, ...props }: React.ComponentProps<typeof SheetPrreturn (<SheetPrimitive.TitleclassName={cn('text-foreground text-lg font-semibold', className)}+ data-slot="sheet-title"{...props}/>);diff --git a/frontend/src/components/ui/sidebar.tsx b/frontend/src/components/ui/sidebar.tsxindex 4feefbbb..b623b42e 100644--- a/frontend/src/components/ui/sidebar.tsx+++ b/frontend/src/components/ui/sidebar.tsx@@ -109,8 +109,8 @@ function Sidebar({} as React.CSSProperties}>- <SheetTitle className="sr-only"></SheetTitle>- <SheetDescription className="sr-only"></SheetDescription>+ <SheetTitle className="sr-only">Sidebar</SheetTitle>+ <SheetDescription className="sr-only">Displays the mobile sidebar.</SheetDescription><div className="flex h-full w-full flex-col">{children}</div></SheetContent></Sheet>diff --git a/frontend/src/components/ui/skeleton.tsx b/frontend/src/components/ui/skeleton.tsxindex ee8c545b..a89d7ef3 100644--- a/frontend/src/components/ui/skeleton.tsx+++ b/frontend/src/components/ui/skeleton.tsx@@ -4,6 +4,7 @@ function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)return (<divclassName={cn('bg-primary/10 animate-pulse rounded-md', className)}+ data-slot="skeleton"{...props}/>);diff --git a/frontend/src/components/ui/switch.tsx b/frontend/src/components/ui/switch.tsxindex e2dd89ad..77a3b7d7 100644--- a/frontend/src/components/ui/switch.tsx+++ b/frontend/src/components/ui/switch.tsx@@ -10,12 +10,14 @@ function Switch({ className, ...props }: React.ComponentProps<typeof SwitchPrimi'peer focus-visible:ring-ring focus-visible:ring-offset-background data-[state=checked]:bg-primary data-[state=unchecked]:bg-input inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-xs transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50',className,)}+ data-slot="switch"{...props}><SwitchPrimitives.ThumbclassName={cn('bg-background pointer-events-none block h-4 w-4 rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0',)}+ data-slot="switch-thumb"/></SwitchPrimitives.Root>);diff --git a/frontend/src/components/ui/table.tsx b/frontend/src/components/ui/table.tsxindex 253bbe78..eee8cdf2 100644--- a/frontend/src/components/ui/table.tsx+++ b/frontend/src/components/ui/table.tsx@@ -4,9 +4,13 @@ import { cn } from '@/lib/utils';function Table({ className, ...props }: React.ComponentProps<'table'>) {return (- <div className="relative w-full overflow-auto">+ <div+ className="relative w-full overflow-auto"+ data-slot="table-container"+ ><tableclassName={cn('w-full caption-bottom text-sm', className)}+ data-slot="table"{...props}/></div>@@ -17,6 +21,7 @@ function TableBody({ className, ...props }: React.ComponentProps<'tbody'>) {return (<tbodyclassName={cn('[&_tr:last-child]:border-0', className)}+ data-slot="table-body"{...props}/>);@@ -26,6 +31,7 @@ function TableCaption({ className, ...props }: React.ComponentProps<'caption'>)return (<captionclassName={cn('text-muted-foreground mt-4 text-sm', className)}+ data-slot="table-caption"{...props}/>);@@ -35,6 +41,7 @@ function TableCell({ className, ...props }: React.ComponentProps<'td'>) {return (<tdclassName={cn('p-4 align-middle [&:has([role=checkbox])]:pr-0', className)}+ data-slot="table-cell"{...props}/>);@@ -44,6 +51,7 @@ function TableFooter({ className, ...props }: React.ComponentProps<'tfoot'>) {return (<tfootclassName={cn('bg-muted/50 border-t font-medium last:[&>tr]:border-b-0', className)}+ data-slot="table-footer"{...props}/>);@@ -56,6 +64,7 @@ function TableHead({ className, ...props }: React.ComponentProps<'th'>) {'text-muted-foreground h-12 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0',className,)}+ data-slot="table-head"{...props}/>);@@ -65,6 +74,7 @@ function TableHeader({ className, ...props }: React.ComponentProps<'thead'>) {return (<theadclassName={cn('[&_tr]:border-b', className)}+ data-slot="table-header"{...props}/>);@@ -74,6 +84,7 @@ function TableRow({ className, ...props }: React.ComponentProps<'tr'>) {return (<trclassName={cn('hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors', className)}+ data-slot="table-row"{...props}/>);diff --git a/frontend/src/components/ui/tabs.tsx b/frontend/src/components/ui/tabs.tsxindex 191c9a71..990584b5 100644--- a/frontend/src/components/ui/tabs.tsx+++ b/frontend/src/components/ui/tabs.tsx@@ -3,7 +3,14 @@ import * as React from 'react';import { cn } from '@/lib/utils';-const Tabs = TabsPrimitive.Root;+function Tabs(props: React.ComponentProps<typeof TabsPrimitive.Root>) {+ return (+ <TabsPrimitive.Root+ data-slot="tabs"+ {...props}+ />+ );+}function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>) {return (@@ -12,6 +19,7 @@ function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPr'ring-offset-background focus-visible:ring-ring mt-4 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden',className,)}+ data-slot="tabs-content"{...props}/>);@@ -24,6 +32,7 @@ function TabsList({ className, ...props }: React.ComponentProps<typeof TabsPrimi'bg-muted text-muted-foreground inline-flex h-9 items-center justify-center rounded-lg p-1',className,)}+ data-slot="tabs-list"{...props}/>);@@ -36,6 +45,7 @@ function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPr'ring-offset-background focus-visible:ring-ring data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center gap-2 rounded-md px-3 py-1 text-sm font-medium whitespace-nowrap transition-all focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm',className,)}+ data-slot="tabs-trigger"{...props}/>);diff --git a/frontend/src/components/ui/textarea.tsx b/frontend/src/components/ui/textarea.tsxindex 8f43aa02..1b0f8daa 100644--- a/frontend/src/components/ui/textarea.tsx+++ b/frontend/src/components/ui/textarea.tsx@@ -60,9 +60,10 @@ function Textarea({return (<textareaclassName={cn(- 'aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive border-input placeholder:text-muted-foreground focus-visible:ring-ring flex w-full resize-none rounded-md border bg-transparent px-3 py-2 text-sm shadow-xs focus-visible:ring-1 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50',+ 'aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive border-input dark:bg-input/30 placeholder:text-muted-foreground focus-visible:ring-ring flex w-full min-w-0 resize-none rounded-md border bg-transparent px-3 py-2 text-base shadow-xs focus-visible:ring-1 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',className,)}+ data-slot="textarea"ref={textareaRef}{...props}onChange={(e) => {diff --git a/frontend/src/components/ui/toggle-group.tsx b/frontend/src/components/ui/toggle-group.tsxindex 0ef75d31..15ca53a1 100644--- a/frontend/src/components/ui/toggle-group.tsx+++ b/frontend/src/components/ui/toggle-group.tsx@@ -22,6 +22,7 @@ function ToggleGroup({return (<ToggleGroupPrimitive.RootclassName={cn('flex items-center justify-center gap-1', className)}+ data-slot="toggle-group"{...props}><ToggleGroupContext.Provider value={{ size, variant }}>{children}</ToggleGroupContext.Provider>@@ -47,6 +48,7 @@ function ToggleGroupItem({}),className,)}+ data-slot="toggle-group-item"{...props}>{children}diff --git a/frontend/src/components/ui/toggle.tsx b/frontend/src/components/ui/toggle.tsxindex 2bbbabff..7c46d4b6 100644--- a/frontend/src/components/ui/toggle.tsx+++ b/frontend/src/components/ui/toggle.tsx@@ -5,7 +5,7 @@ import * as React from 'react';import { cn } from '@/lib/utils';const toggleVariants = cva(- 'group/toggle inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',+ 'group/toggle inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',{defaultVariants: {size: 'default',@@ -34,6 +34,7 @@ function Toggle({return (<TogglePrimitive.RootclassName={cn(toggleVariants({ className, size, variant }))}+ data-slot="toggle"{...props}/>);