Skip to content

Fully autonomous AI Agents system capable of performing complex penetration testing tasks

chore(frontend): consolidate icons onto lucide-react, drop @radix-ui/react-icons

Sergey Kozyrenko54ac6c4adb6b
diff --git a/frontend/package.json b/frontend/package.json
index 33d416f9..9696bec8 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -27,7 +27,6 @@
"@radix-ui/react-context-menu": "^2.3.1",
"@radix-ui/react-dialog": "^1.1.17",
"@radix-ui/react-dropdown-menu": "^2.1.18",
- "@radix-ui/react-icons": "^1.3.2",
"@radix-ui/react-label": "^2.1.10",
"@radix-ui/react-popover": "^1.1.17",
"@radix-ui/react-progress": "^1.1.10",
diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml
index 6776a54e..9966505a 100644
--- a/frontend/pnpm-lock.yaml
+++ b/frontend/pnpm-lock.yaml
@@ -41,9 +41,6 @@ importers:
'@radix-ui/react-dropdown-menu':
specifier: ^2.1.18
- '@radix-ui/react-icons':
- specifier: ^1.3.2
- version: 1.3.2([email protected])
'@radix-ui/react-label':
specifier: ^2.1.10
@@ -1434,11 +1431,6 @@ packages:
'@types/react-dom':
optional: true
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-fyQIhGDhzfc9pK2kH6Pl9c4BDJGfMkPqkyIgYDthyNYoNg3wVhoJMMh19WS4Up/1KMPFVpNsT2q3WmXn2N1m6g==}
- peerDependencies:
- react: ^16.x || ^17.x || ^18.x || ^19.0.0 || ^19.0.0-rc
-
'@radix-ui/[email protected]':
resolution: {integrity: sha512-orBC88futVpqCmhX1p4cvquNHsELQ+w+vBJnuj3ftETI5bJb0bZn3Tqu3SWN2IOcPycTnMGnhwoermvISt72sA==}
peerDependencies:
@@ -6817,10 +6809,6 @@ snapshots:
'@types/react': 19.2.17
'@types/react-dom': 19.2.3(@types/[email protected])
- dependencies:
- react: 19.2.7
-
dependencies:
'@radix-ui/react-use-layout-effect': 1.1.2(@types/[email protected])([email protected])
diff --git a/frontend/src/components/ui/accordion.tsx b/frontend/src/components/ui/accordion.tsx
index ffea337a..33044d1f 100644
--- a/frontend/src/components/ui/accordion.tsx
+++ b/frontend/src/components/ui/accordion.tsx
@@ -1,5 +1,5 @@
import * as AccordionPrimitive from '@radix-ui/react-accordion';
-import { ChevronDownIcon } from '@radix-ui/react-icons';
+import { ChevronDown } from 'lucide-react';
import * as React from 'react';
import { cn } from '@/lib/utils';
@@ -37,7 +37,7 @@ function AccordionTrigger({ children, className, ...props }: React.ComponentProp
{...props}
>
{children}
- <ChevronDownIcon className="text-muted-foreground h-4 w-4 shrink-0 transition-transform duration-200" />
+ <ChevronDown className="text-muted-foreground h-4 w-4 shrink-0 transition-transform duration-200" />
</AccordionPrimitive.Trigger>
</AccordionPrimitive.Header>
);
diff --git a/frontend/src/components/ui/breadcrumb.tsx b/frontend/src/components/ui/breadcrumb.tsx
index 97c5f69c..61a59a47 100644
--- a/frontend/src/components/ui/breadcrumb.tsx
+++ b/frontend/src/components/ui/breadcrumb.tsx
@@ -1,5 +1,5 @@
-import { ChevronRightIcon, DotsHorizontalIcon } from '@radix-ui/react-icons';
import { Slot } from '@radix-ui/react-slot';
+import { ChevronRight, MoreHorizontal } from 'lucide-react';
import * as React from 'react';
import { cn } from '@/lib/utils';
@@ -25,7 +25,7 @@ function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<'span'
role="presentation"
{...props}
>
- <DotsHorizontalIcon className="h-4 w-4" />
+ <MoreHorizontal className="h-4 w-4" />
<span className="sr-only">More</span>
</span>
);
@@ -89,7 +89,7 @@ function BreadcrumbSeparator({ children, className, ...props }: React.ComponentP
role="presentation"
{...props}
>
- {children ?? <ChevronRightIcon />}
+ {children ?? <ChevronRight />}
</li>
);
}
diff --git a/frontend/src/components/ui/command.tsx b/frontend/src/components/ui/command.tsx
index 126754d7..c63ec6dd 100644
--- a/frontend/src/components/ui/command.tsx
+++ b/frontend/src/components/ui/command.tsx
@@ -1,6 +1,6 @@
import { type DialogProps } from '@radix-ui/react-dialog';
-import { MagnifyingGlassIcon } from '@radix-ui/react-icons';
import { Command as CommandPrimitive } from 'cmdk';
+import { Search } from 'lucide-react';
import * as React from 'react';
import { Dialog, DialogContent } from '@/components/ui/dialog';
@@ -54,7 +54,7 @@ function CommandGroup({ className, ...props }: React.ComponentProps<typeof Comma
function CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>) {
return (
<div className="flex items-center border-b px-3">
- <MagnifyingGlassIcon className="mr-2 h-4 w-4 shrink-0 opacity-50" />
+ <Search className="mr-2 h-4 w-4 shrink-0 opacity-50" />
<CommandPrimitive.Input
className={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',
diff --git a/frontend/src/components/ui/dropdown-menu.tsx b/frontend/src/components/ui/dropdown-menu.tsx
index c0434f90..4e6a925d 100644
--- a/frontend/src/components/ui/dropdown-menu.tsx
+++ b/frontend/src/components/ui/dropdown-menu.tsx
@@ -1,5 +1,5 @@
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
-import { CheckIcon, ChevronRightIcon, DotFilledIcon } from '@radix-ui/react-icons';
+import { Check, ChevronRight, Circle } from 'lucide-react';
import * as React from 'react';
import { cn } from '@/lib/utils';
@@ -33,7 +33,7 @@ function DropdownMenuCheckboxItem({
>
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
<DropdownMenuPrimitive.ItemIndicator>
- <CheckIcon className="h-4 w-4" />
+ <Check className="h-4 w-4" />
</DropdownMenuPrimitive.ItemIndicator>
</span>
{children}
@@ -110,7 +110,7 @@ function DropdownMenuRadioItem({
>
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
<DropdownMenuPrimitive.ItemIndicator>
- <DotFilledIcon className="h-4 w-4 fill-current" />
+ <Circle className="h-2 w-2 fill-current" />
</DropdownMenuPrimitive.ItemIndicator>
</span>
{children}
@@ -169,7 +169,7 @@ function DropdownMenuSubTrigger({
{...props}
>
{children}
- <ChevronRightIcon className="ml-auto" />
+ <ChevronRight className="ml-auto" />
</DropdownMenuPrimitive.SubTrigger>
);
}
diff --git a/frontend/src/components/ui/resizable.tsx b/frontend/src/components/ui/resizable.tsx
index 40526dc7..4fdad2cc 100644
--- a/frontend/src/components/ui/resizable.tsx
+++ b/frontend/src/components/ui/resizable.tsx
@@ -1,4 +1,4 @@
-import { DragHandleDots2Icon } from '@radix-ui/react-icons';
+import { GripVertical } from 'lucide-react';
import { Group, Panel, Separator } from 'react-resizable-panels';
import { cn } from '@/lib/utils';
@@ -31,7 +31,7 @@ function ResizableHandle({
>
{withHandle && (
<div className="bg-border z-10 flex h-4 w-3 items-center justify-center rounded-sm border">
- <DragHandleDots2Icon className="h-2.5 w-2.5" />
+ <GripVertical className="h-2.5 w-2.5" />
</div>
)}
</Separator>
diff --git a/frontend/src/components/ui/select.tsx b/frontend/src/components/ui/select.tsx
index 83976d74..b51928a5 100644
--- a/frontend/src/components/ui/select.tsx
+++ b/frontend/src/components/ui/select.tsx
@@ -1,5 +1,5 @@
-import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from '@radix-ui/react-icons';
import * as SelectPrimitive from '@radix-ui/react-select';
+import { Check, ChevronDown, ChevronUp } from 'lucide-react';
import * as React from 'react';
import { cn } from '@/lib/utils';
@@ -55,7 +55,7 @@ function SelectItem({ children, className, ...props }: React.ComponentProps<type
>
<span className="absolute right-2 flex h-3.5 w-3.5 items-center justify-center">
<SelectPrimitive.ItemIndicator>
- <CheckIcon className="h-4 w-4" />
+ <Check className="h-4 w-4" />
</SelectPrimitive.ItemIndicator>
</span>
<SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
@@ -81,7 +81,7 @@ function SelectScrollDownButton({
className={cn('flex cursor-default items-center justify-center py-1', className)}
{...props}
>
- <ChevronDownIcon className="h-4 w-4" />
+ <ChevronDown className="h-4 w-4" />
</SelectPrimitive.ScrollDownButton>
);
}
@@ -92,7 +92,7 @@ function SelectScrollUpButton({ className, ...props }: React.ComponentProps<type
className={cn('flex cursor-default items-center justify-center py-1', className)}
{...props}
>
- <ChevronUpIcon className="h-4 w-4" />
+ <ChevronUp className="h-4 w-4" />
</SelectPrimitive.ScrollUpButton>
);
}
@@ -117,7 +117,7 @@ function SelectTrigger({ children, className, ...props }: React.ComponentProps<t
>
{children}
<SelectPrimitive.Icon asChild>
- <ChevronDownIcon className="h-4 w-4 opacity-50" />
+ <ChevronDown className="h-4 w-4 opacity-50" />
</SelectPrimitive.Icon>
</SelectPrimitive.Trigger>
);
diff --git a/frontend/src/components/ui/sheet.tsx b/frontend/src/components/ui/sheet.tsx
index 93882abf..e3806a99 100644
--- a/frontend/src/components/ui/sheet.tsx
+++ b/frontend/src/components/ui/sheet.tsx
@@ -1,8 +1,8 @@
'use client';
import * as SheetPrimitive from '@radix-ui/react-dialog';
-import { Cross2Icon } from '@radix-ui/react-icons';
import { cva, type VariantProps } from 'class-variance-authority';
+import { X } from 'lucide-react';
import * as React from 'react';
import { cn } from '@/lib/utils';
@@ -59,7 +59,7 @@ function SheetContent({ children, className, container, overlay = true, side = '
{...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">
- <Cross2Icon className="h-4 w-4" />
+ <X className="h-4 w-4" />
<span className="sr-only">Close</span>
</SheetPrimitive.Close>
{children}