Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

refactor(frontend): replace Phosphor icons with Hugeicons stroke-rounded (#13751)

Abhimanyu Yadav0fe774ddc7e5
diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md
index 3c72eaae18..5653d829ab 100644
--- a/.github/copilot-instructions.md
+++ b/.github/copilot-instructions.md
@@ -260,7 +260,7 @@ Agents are built using a visual block-based system where each block performs a s
- Use Tailwind CSS utilities only
- Use design system components from `src/components/` (atoms, molecules, organisms)
- Never use `src/components/__legacy__/*`
-- Only use Phosphor Icons (`@phosphor-icons/react`)
+- Only use Hugeicons (`@hugeicons/core-free-icons`), rendered via the `Icon` atom
- Prefer design tokens over hardcoded values
**Error Handling:**
diff --git a/autogpt_platform/frontend/AGENTS.md b/autogpt_platform/frontend/AGENTS.md
index fee844ccaf..7456c3796b 100644
--- a/autogpt_platform/frontend/AGENTS.md
+++ b/autogpt_platform/frontend/AGENTS.md
@@ -61,7 +61,7 @@ Do NOT skip these steps. If any command reports errors, fix them and re-run unti
- **Component Structure**: Separate render logic (`.tsx`) from business logic (`use*.ts` hooks)
- **Workflow Builder**: Visual graph editor using @xyflow/react
- **UI Components**: shadcn/ui (Radix UI primitives) with Tailwind CSS styling
-- **Icons**: Phosphor Icons only
+- **Icons**: Hugeicons (stroke-rounded) only, rendered through the `Icon` atom
- **Feature Flags**: LaunchDarkly integration
- **Error Handling**: ErrorCard for render errors, toast for mutations, Sentry for exceptions
- **Testing**: Vitest + React Testing Library + MSW for integration tests (primary), Playwright for E2E, Storybook for visual
@@ -85,8 +85,10 @@ See @CONTRIBUTING.md for complete patterns. Quick reference:
3. **Data fetching**: Use generated API hooks from `@/app/api/__generated__/endpoints/`
- Regenerate with `pnpm generate:api`
- Pattern: `use{Method}{Version}{OperationName}`
-4. **Styling**: Tailwind CSS only, use design tokens, Phosphor Icons only
- - Always import the `-Icon`-suffixed alias from `@phosphor-icons/react` (e.g. `TrashIcon`, `PlusIcon`, `SquareIcon`) — bare exports like `Trash`/`Plus` are deprecated.
+4. **Styling**: Tailwind CSS only, use design tokens, Hugeicons only
+ - Import icon data from `@hugeicons/core-free-icons` and render it with the `Icon` atom (`src/components/atoms/Icon/Icon.tsx`), e.g. `<Icon icon={Delete02Icon} size={16} />`.
+ - Never render `HugeiconsIcon` directly — the atom applies the 2px design-system stroke width.
+ - Type icon-carrying props with `IconSvgElement` from `@hugeicons/react`.
5. **Testing**: Integration tests are the default (~90%). See `TESTING.md` for full details.
- **New pages/features**: Write integration tests in `__tests__/` next to `page.tsx` using Vitest + RTL + MSW
- **API mocking**: Use Orval-generated MSW handlers from `@/app/api/__generated__/endpoints/{tag}/{tag}.msw.ts`
diff --git a/autogpt_platform/frontend/CONTRIBUTING.md b/autogpt_platform/frontend/CONTRIBUTING.md
index bcb40f4430..f2549df1e5 100644
--- a/autogpt_platform/frontend/CONTRIBUTING.md
+++ b/autogpt_platform/frontend/CONTRIBUTING.md
@@ -91,7 +91,7 @@ See [Data fetching patterns](#-data-fetching-patterns) for more examples.
4. If logic exists, create `useComponentName.ts`
5. Create `ComponentName.stories.tsx` for Storybook
6. Use Tailwind + design tokens (avoid hardcoded values)
-7. Only use Phosphor icons
+7. Only use Hugeicons via the `Icon` atom
8. Test in Storybook: `pnpm storybook`
9. Verify in Chromatic after PR
@@ -726,25 +726,40 @@ export function useFeatureX() {
## 🖼 Icons
-- Only use Phosphor Icons. Treat all other icon libraries as deprecated for new code.
- - Package: `@phosphor-icons/react`
- - Site: [`https://phosphoricons.com/`](https://phosphoricons.com/)
+- Only use Hugeicons, always through the `Icon` atom. Treat all other icon libraries as deprecated for new code.
+ - Icon data: `@hugeicons/core-free-icons` (stroke-rounded variants)
+ - Renderer: `src/components/atoms/Icon/Icon.tsx`
+ - Site: [`https://hugeicons.com/icons/stroke-rounded`](https://hugeicons.com/icons/stroke-rounded)
+
+The `Icon` atom applies the design-system stroke width (2px) and defaults to `1em`
+so icons scale with their surrounding text. Do not render `HugeiconsIcon` directly.
Example usage:
```tsx
-import { Plus } from "@phosphor-icons/react";
+import { PlusSignIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function CreateButton() {
return (
<button type="button" className="inline-flex items-center gap-2">
- <Plus size={16} />
+ <Icon icon={PlusSignIcon} size={16} />
Create
</button>
);
}
```
+To type a prop or config entry that carries an icon, use `IconSvgElement`:
+
+```tsx
+import type { IconSvgElement } from "@hugeicons/react";
+
+interface Props {
+ icon: IconSvgElement;
+}
+```
+
---
## 🧪 Testing
diff --git a/autogpt_platform/frontend/README.md b/autogpt_platform/frontend/README.md
index becba46ebc..6e57086b5d 100644
--- a/autogpt_platform/frontend/README.md
+++ b/autogpt_platform/frontend/README.md
@@ -157,7 +157,7 @@ By integrating Storybook into our development workflow, we can streamline UI dev
- [**Tailwind CSS**](https://tailwindcss.com/) - Utility-first CSS framework
- [**shadcn/ui**](https://ui.shadcn.com/) - Re-usable components built with Radix UI and Tailwind CSS
- [**Radix UI**](https://www.radix-ui.com/) - Headless UI components for accessibility
-- [**Phosphor Icons**](https://phosphoricons.com/) - Icon set used across the app
+- [**Hugeicons**](https://hugeicons.com/icons/stroke-rounded) - Icon set used across the app (stroke-rounded)
- [**Framer Motion**](https://motion.dev/) - Animation library for React
### Development & Testing
diff --git a/autogpt_platform/frontend/package.json b/autogpt_platform/frontend/package.json
index 9bf2737bea..b01da44f62 100644
--- a/autogpt_platform/frontend/package.json
+++ b/autogpt_platform/frontend/package.json
@@ -36,9 +36,10 @@
"@faker-js/faker": "10.0.0",
"@ferrucc-io/emoji-picker": "0.0.48",
"@hookform/resolvers": "5.2.2",
+ "@hugeicons/core-free-icons": "^4.2.3",
+ "@hugeicons/react": "^1.1.9",
"@next/third-parties": "15.4.6",
"@number-flow/react": "0.6.0",
- "@phosphor-icons/react": "2.1.10",
"@posthog/react": "1.7.0",
"@radix-ui/react-accordion": "1.2.12",
"@radix-ui/react-alert-dialog": "1.1.15",
diff --git a/autogpt_platform/frontend/pnpm-lock.yaml b/autogpt_platform/frontend/pnpm-lock.yaml
index 6db0365d9f..cf7a3f5074 100644
--- a/autogpt_platform/frontend/pnpm-lock.yaml
+++ b/autogpt_platform/frontend/pnpm-lock.yaml
@@ -25,15 +25,18 @@ importers:
'@hookform/resolvers':
specifier: 5.2.2
+ '@hugeicons/core-free-icons':
+ specifier: ^4.2.3
+ version: 4.2.3
+ '@hugeicons/react':
+ specifier: ^1.1.9
+ version: 1.1.9([email protected])
'@next/third-parties':
specifier: 15.4.6
'@number-flow/react':
specifier: 0.6.0
- '@phosphor-icons/react':
- specifier: 2.1.10
'@posthog/react':
specifier: 1.7.0
@@ -1695,6 +1698,14 @@ packages:
peerDependencies:
react-hook-form: ^7.55.0
+ '@hugeicons/[email protected]':
+ resolution: {integrity: sha512-fpiU0qFZkv4ABi23xJ2m4qNr0BBfuIaYjPboN8WDA6aj9D+OzXa7eykxKOpACZRuGbDz1U9S5DsNx1d5KNnsgA==}
+
+ '@hugeicons/[email protected]':
+ resolution: {integrity: sha512-O+lWSWjbijoAvMCxn4K2bQWCGN5+mP1y5j+X99j23mXMj+s0X25fs71T6t9YJLaBodwmZdaewD27dzS/PiboQw==}
+ peerDependencies:
+ react: '>=16.0.0'
+
'@humanwhocodes/[email protected]':
resolution: {integrity: sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==}
engines: {node: '>=10.10.0'}
@@ -2325,13 +2336,6 @@ packages:
resolution: {integrity: sha512-jEEj0uRO5D5D1CHKQdth5Atl5Ap4/P21SMiOFmVpiArlXr4LQtMpbkiPVM2tsQXIhtC38c9oMt8+rOx1rYSjcw==}
- '@phosphor-icons/[email protected]':
- resolution: {integrity: sha512-vt8Tvq8GLjheAZZYa+YG/pW7HDbov8El/MANW8pOAz4eGxrwhnbfrQZq0Cp4q8zBEu8NIhHdnr+r8thnfRSNYA==}
- engines: {node: '>=10'}
- peerDependencies:
- react: '>= 16.8'
- react-dom: '>= 16.8'
-
resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}
engines: {node: '>=14'}
@@ -10625,6 +10629,12 @@ snapshots:
'@standard-schema/utils': 0.3.0
react-hook-form: 7.66.0([email protected])
+ '@hugeicons/[email protected]': {}
+
+ dependencies:
+ react: 18.3.1
+
'@humanwhocodes/[email protected]':
dependencies:
'@humanwhocodes/object-schema': 2.0.3
@@ -11331,11 +11341,6 @@ snapshots:
- supports-color
- typescript
- dependencies:
- react: 18.3.1
- react-dom: 18.3.1([email protected])
-
optional: true
diff --git a/autogpt_platform/frontend/src/app/(no-navbar)/link/[token]/components/ErrorView.tsx b/autogpt_platform/frontend/src/app/(no-navbar)/link/[token]/components/ErrorView.tsx
index e68303be7b..8c0478ee28 100644
--- a/autogpt_platform/frontend/src/app/(no-navbar)/link/[token]/components/ErrorView.tsx
+++ b/autogpt_platform/frontend/src/app/(no-navbar)/link/[token]/components/ErrorView.tsx
@@ -1,6 +1,7 @@
import { Text } from "@/components/atoms/Text/Text";
import { AuthCard } from "@/components/auth/AuthCard";
-import { LinkBreak } from "@phosphor-icons/react";
+import { Unlink01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
message: string;
@@ -11,7 +12,7 @@ export function ErrorView({ message }: Props) {
<AuthCard title="Setup failed">
<div className="flex w-full flex-col items-center gap-6">
<div className="flex h-16 w-16 items-center justify-center rounded-full bg-red-100">
- <LinkBreak size={40} weight="bold" className="text-red-600" />
+ <Icon icon={Unlink01Icon} size={40} className="text-red-600" />
</div>
<Text
variant="body-medium"
diff --git a/autogpt_platform/frontend/src/app/(no-navbar)/link/[token]/components/LoadingView.tsx b/autogpt_platform/frontend/src/app/(no-navbar)/link/[token]/components/LoadingView.tsx
index 02d02cf92e..33410c4020 100644
--- a/autogpt_platform/frontend/src/app/(no-navbar)/link/[token]/components/LoadingView.tsx
+++ b/autogpt_platform/frontend/src/app/(no-navbar)/link/[token]/components/LoadingView.tsx
@@ -1,6 +1,7 @@
import { Text } from "@/components/atoms/Text/Text";
import { AuthCard } from "@/components/auth/AuthCard";
-import { Spinner } from "@phosphor-icons/react";
+import { Loading03Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
title?: string;
@@ -14,7 +15,11 @@ export function LoadingView({
return (
<AuthCard title={title}>
<div className="flex flex-col items-center gap-4">
- <Spinner size={48} className="animate-spin text-primary" />
+ <Icon
+ icon={Loading03Icon}
+ size={48}
+ className="animate-spin text-primary"
+ />
<Text variant="body-medium" className="text-muted-foreground">
{message}
</Text>
diff --git a/autogpt_platform/frontend/src/app/(no-navbar)/link/[token]/components/SuccessView.tsx b/autogpt_platform/frontend/src/app/(no-navbar)/link/[token]/components/SuccessView.tsx
index b096037057..14efcd43d5 100644
--- a/autogpt_platform/frontend/src/app/(no-navbar)/link/[token]/components/SuccessView.tsx
+++ b/autogpt_platform/frontend/src/app/(no-navbar)/link/[token]/components/SuccessView.tsx
@@ -1,8 +1,9 @@
import { Text } from "@/components/atoms/Text/Text";
import { AuthCard } from "@/components/auth/AuthCard";
import { LinkType } from "@/app/api/__generated__/models/linkType";
-import { CheckCircle } from "@phosphor-icons/react";
import { isUserLink } from "../helpers";
+import { CheckmarkCircle02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
linkType: LinkType;
@@ -22,7 +23,11 @@ export function SuccessView({ linkType, platform, serverName }: Props) {
<AuthCard title="AutoGPT is ready!">
<div className="flex w-full flex-col items-center gap-6">
<div className="flex h-16 w-16 items-center justify-center rounded-full bg-green-100">
- <CheckCircle size={40} weight="fill" className="text-green-600" />
+ <Icon
+ icon={CheckmarkCircle02Icon}
+ size={40}
+ className="text-green-600"
+ />
</div>
<Text
variant="body-medium"
diff --git a/autogpt_platform/frontend/src/app/(no-navbar)/login/components/LoginMarketingPanel.tsx b/autogpt_platform/frontend/src/app/(no-navbar)/login/components/LoginMarketingPanel.tsx
index 93cc5090f3..501cd84a32 100644
--- a/autogpt_platform/frontend/src/app/(no-navbar)/login/components/LoginMarketingPanel.tsx
+++ b/autogpt_platform/frontend/src/app/(no-navbar)/login/components/LoginMarketingPanel.tsx
@@ -1,9 +1,6 @@
-import {
- BrainIcon,
- GaugeIcon,
- StorefrontIcon,
-} from "@phosphor-icons/react/dist/ssr";
import { AuthMarketingPanel } from "@/components/auth/AuthSplitLayout/AuthMarketingPanel";
+import { BrainIcon, GaugeIcon, Store01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function LoginMarketingPanel() {
return (
@@ -13,17 +10,17 @@ export function LoginMarketingPanel() {
itemsTitle="What's new"
items={[
{
- icon: <BrainIcon size={20} weight="duotone" />,
+ icon: <Icon icon={BrainIcon} size={20} />,
title: "New memory upgrades",
description: "Smarter agents with longer context windows.",
},
{
- icon: <StorefrontIcon size={20} weight="duotone" />,
+ icon: <Icon icon={Store01Icon} size={20} />,
title: "Marketplace update",
description: "Discover agents shared by the community.",
},
{
- icon: <GaugeIcon size={20} weight="duotone" />,
+ icon: <Icon icon={GaugeIcon} size={20} />,
title: "Performance boost",
description: "Faster runs and reduced latency.",
},
diff --git a/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/components/SelectableCard.tsx b/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/components/SelectableCard.tsx
index 574f02fd7b..b0db3453c1 100644
--- a/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/components/SelectableCard.tsx
+++ b/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/components/SelectableCard.tsx
@@ -2,7 +2,8 @@
import { Text } from "@/components/atoms/Text/Text";
import { cn } from "@/lib/utils";
-import { Check } from "@phosphor-icons/react";
+import { Tick02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
icon: React.ReactNode;
@@ -34,7 +35,7 @@ export function SelectableCard({
>
{selected && (
<span className="absolute right-2 top-2 flex h-5 w-5 items-center justify-center rounded-full bg-purple-500">
- <Check size={12} weight="bold" className="text-white" />
+ <Icon icon={Tick02Icon} size={12} className="text-white" />
</span>
)}
<Text
diff --git a/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/page.tsx b/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/page.tsx
index 1d42aebfa5..0aac14b9cb 100644
--- a/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/page.tsx
+++ b/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/page.tsx
@@ -1,6 +1,4 @@
"use client";
-
-import { CaretLeftIcon, SignOutIcon } from "@phosphor-icons/react";
import Link from "next/link";
import { ProgressBar } from "./components/ProgressBar";
import { StepIndicator } from "./components/StepIndicator";
@@ -11,6 +9,8 @@ import { SubscriptionStep } from "./steps/SubscriptionStep/SubscriptionStep";
import { WelcomeStep } from "./steps/WelcomeStep";
import { PAYWALL_FIRST_STEPS, useOnboardingWizardStore } from "./store";
import { useOnboardingPage } from "./useOnboardingPage";
+import { ArrowLeft01Icon, Logout03Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export default function OnboardingPage() {
const {
@@ -48,7 +48,7 @@ export default function OnboardingPage() {
onClick={prevStep}
className="text-md absolute left-6 top-6 flex items-center gap-1 text-zinc-500 transition-colors duration-200 hover:text-zinc-900"
>
- <CaretLeftIcon size={16} />
+ <Icon icon={ArrowLeft01Icon} size={16} />
Back
</button>
)}
@@ -77,7 +77,7 @@ export default function OnboardingPage() {
href="/logout"
className="text-md absolute bottom-6 left-6 flex items-center gap-1 text-zinc-500 transition-colors duration-200 hover:text-zinc-900"
>
- <SignOutIcon size={16} />
+ <Icon icon={Logout03Icon} size={16} />
Log out
</Link>
)}
diff --git a/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/steps/PreparingStep.tsx b/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/steps/PreparingStep.tsx
index a04ec75f35..d49b84f35b 100644
--- a/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/steps/PreparingStep.tsx
+++ b/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/steps/PreparingStep.tsx
@@ -4,8 +4,9 @@ import { AutoGPTLogo } from "@/components/atoms/AutoGPTLogo/AutoGPTLogo";
import { Text } from "@/components/atoms/Text/Text";
import { TypingText } from "@/components/molecules/TypingText/TypingText";
import { cn } from "@/lib/utils";
-import { Check } from "@phosphor-icons/react";
import { useEffect, useRef, useState } from "react";
+import { Tick02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
const CHECKLIST = [
"Personalizing your experience",
@@ -92,7 +93,7 @@ export function PreparingStep({ onComplete }: Props) {
: "bg-gray-200 text-gray-400",
)}
>
- <Check size={14} weight="bold" />
+ <Icon icon={Tick02Icon} size={14} />
</div>
<Text
variant="body"
diff --git a/autogpt_platform/frontend/src/app/(no-navbar)/share/chat/[token]/components/SharedChatErrorState.tsx b/autogpt_platform/frontend/src/app/(no-navbar)/share/chat/[token]/components/SharedChatErrorState.tsx
index 4eed582ca7..6f1e132572 100644
--- a/autogpt_platform/frontend/src/app/(no-navbar)/share/chat/[token]/components/SharedChatErrorState.tsx
+++ b/autogpt_platform/frontend/src/app/(no-navbar)/share/chat/[token]/components/SharedChatErrorState.tsx
@@ -1,4 +1,5 @@
-import { InfoIcon } from "@phosphor-icons/react";
+import { InformationCircleIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type Props = {
reason?: string;
@@ -11,7 +12,11 @@ export function SharedChatErrorState({ onRetry }: Props) {
<div className="mx-auto w-full max-w-md p-6">
<div className="space-y-4 rounded-lg border border-dashed border-zinc-300 p-6 text-center">
<div className="mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-zinc-100">
- <InfoIcon size={24} className="text-zinc-500" />
+ <Icon
+ icon={InformationCircleIcon}
+ size={24}
+ className="text-zinc-500"
+ />
</div>
<div className="space-y-2">
<h3 className="text-lg font-semibold">Share link not found</h3>
diff --git a/autogpt_platform/frontend/src/app/(no-navbar)/share/components/ShareHeader/ShareActions.tsx b/autogpt_platform/frontend/src/app/(no-navbar)/share/components/ShareHeader/ShareActions.tsx
index d845707d00..911fa4baed 100644
--- a/autogpt_platform/frontend/src/app/(no-navbar)/share/components/ShareHeader/ShareActions.tsx
+++ b/autogpt_platform/frontend/src/app/(no-navbar)/share/components/ShareHeader/ShareActions.tsx
@@ -1,10 +1,11 @@
"use client";
import { useState } from "react";
-import { CheckIcon, CopyIcon } from "@phosphor-icons/react";
import { Button } from "@/components/atoms/Button/Button";
import { toast } from "@/components/molecules/Toast/use-toast";
import { useAuth } from "@/lib/auth/hooks/useAuth";
+import { Copy01Icon, Tick02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
// Renders the right-slot CTAs on every ``/share/...`` viewer:
//
@@ -46,9 +47,9 @@ export function ShareActions() {
onClick={handleCopy}
leftIcon={
copied ? (
- <CheckIcon size={14} weight="bold" />
+ <Icon icon={Tick02Icon} size={14} />
) : (
- <CopyIcon size={14} />
+ <Icon icon={Copy01Icon} size={14} />
)
}
>
diff --git a/autogpt_platform/frontend/src/app/(no-navbar)/signup/components/SignupMarketingPanel.tsx b/autogpt_platform/frontend/src/app/(no-navbar)/signup/components/SignupMarketingPanel.tsx
index 694786425c..fd297ec332 100644
--- a/autogpt_platform/frontend/src/app/(no-navbar)/signup/components/SignupMarketingPanel.tsx
+++ b/autogpt_platform/frontend/src/app/(no-navbar)/signup/components/SignupMarketingPanel.tsx
@@ -1,9 +1,10 @@
+import { AuthMarketingPanel } from "@/components/auth/AuthSplitLayout/AuthMarketingPanel";
import {
+ FlashIcon,
HammerIcon,
- LightningIcon,
- ShieldCheckIcon,
-} from "@phosphor-icons/react/dist/ssr";
-import { AuthMarketingPanel } from "@/components/auth/AuthSplitLayout/AuthMarketingPanel";
+ SecurityCheckIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function SignupMarketingPanel() {
return (
@@ -17,17 +18,17 @@ export function SignupMarketingPanel() {
description="Discover, build, and deploy AI agents that automate real work — no code required. Start building agents in minutes."
items={[
{
- icon: <LightningIcon size={20} weight="duotone" />,
+ icon: <Icon icon={FlashIcon} size={20} />,
title: "Run in minutes",
description: "Get started quickly and see results fast.",
},
{
- icon: <HammerIcon size={20} weight="duotone" />,
+ icon: <Icon icon={HammerIcon} size={20} />,
title: "Built for real work",
description: "Powerful blocks that handle tasks across your stack.",
},
{
- icon: <ShieldCheckIcon size={20} weight="duotone" />,
+ icon: <Icon icon={SecurityCheckIcon} size={20} />,
title: "Secure & private",
description: "Enterprise-grade security to keep your data safe.",
},
diff --git a/autogpt_platform/frontend/src/app/(no-navbar)/signup/page.tsx b/autogpt_platform/frontend/src/app/(no-navbar)/signup/page.tsx
index 518b3258c5..9e3a22c858 100644
--- a/autogpt_platform/frontend/src/app/(no-navbar)/signup/page.tsx
+++ b/autogpt_platform/frontend/src/app/(no-navbar)/signup/page.tsx
@@ -19,15 +19,13 @@ import { AuthDivider } from "@/components/auth/AuthSplitLayout/AuthDivider";
import { AuthSplitLayout } from "@/components/auth/AuthSplitLayout/AuthSplitLayout";
import { MobileWarningBanner } from "@/components/auth/MobileWarningBanner";
import { environment } from "@/services/environment";
-import {
- PlayCircleIcon,
- WarningOctagonIcon,
-} from "@phosphor-icons/react/dist/ssr";
import NextLink from "next/link";
import { useSearchParams } from "next/navigation";
import { LoadingSignup } from "./components/LoadingSignup";
import { SignupMarketingPanel } from "./components/SignupMarketingPanel";
import { useSignupPage } from "./useSignupPage";
+import { Alert02Icon, PlayCircleIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export const dynamic = "force-dynamic";
@@ -158,7 +156,7 @@ export default function SignupPage() {
</FormItem>
{termsError ? (
<div className="flex items-center gap-2">
- <WarningOctagonIcon className="h-4 w-4 text-red-500" />
+ <Icon icon={Alert02Icon} className="h-4 w-4 text-red-500" />
<Text variant="small-medium" className="!text-red-500">
{termsError}
</Text>
@@ -203,9 +201,9 @@ export default function SignupPage() {
href="/tour/chat?utm_source=platform_signup"
className="inline-flex items-center gap-2 rounded-full border border-violet-200 bg-violet-50/60 px-4 py-1.5 text-sm text-zinc-700 transition-colors hover:bg-violet-100/60"
>
- <PlayCircleIcon
+ <Icon
+ icon={PlayCircleIcon}
className="size-5 shrink-0 text-violet-600"
- weight="fill"
/>
<span>
Want to see it first?{" "}
diff --git a/autogpt_platform/frontend/src/app/(platform)/PaywallGate/PaywallModal.tsx b/autogpt_platform/frontend/src/app/(platform)/PaywallGate/PaywallModal.tsx
index fd7f2358d4..89972b90cd 100644
--- a/autogpt_platform/frontend/src/app/(platform)/PaywallGate/PaywallModal.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/PaywallGate/PaywallModal.tsx
@@ -6,10 +6,11 @@ import { Skeleton } from "@/components/atoms/Skeleton/Skeleton";
import { Text } from "@/components/atoms/Text/Text";
import { PlanCard } from "@/components/molecules/PlanCard/PlanCard";
import { cn } from "@/lib/utils";
-import { PlayCircleIcon, SignOutIcon } from "@phosphor-icons/react";
import Link from "next/link";
import { SwitchTierDialog } from "../settings/billing/components/SubscriptionTab/YourPlanCard/SwitchTierDialog";
import { usePaywallModal } from "./usePaywallModal";
+import { Logout03Icon, PlayCircleIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
// Non-dismissable Stripe paywall for NO_TIER users. Reuses the onboarding
// PlanCard + Monthly/Yearly toggle so both surfaces share one visual.
@@ -47,7 +48,7 @@ export function PaywallModal() {
variant="ghost"
size="small"
onClick={handleLogout}
- leftIcon={<SignOutIcon size={16} />}
+ leftIcon={<Icon icon={Logout03Icon} size={16} />}
className="bg-white/90 text-zinc-500 hover:text-zinc-700"
>
Log out
@@ -71,9 +72,9 @@ export function PaywallModal() {
target="_blank"
className="mt-2 inline-flex items-center gap-2 rounded-full border border-violet-200 bg-violet-50/60 px-4 py-1.5 text-sm text-zinc-700 transition-colors hover:bg-violet-100/60"
>
- <PlayCircleIcon
+ <Icon
+ icon={PlayCircleIcon}
className="size-5 shrink-0 text-violet-600"
- weight="fill"
/>
<span>
Not sure yet?{" "}
diff --git a/autogpt_platform/frontend/src/app/(platform)/PlatformChrome/components/InsetHeaderTitle/InsetHeaderTitle.tsx b/autogpt_platform/frontend/src/app/(platform)/PlatformChrome/components/InsetHeaderTitle/InsetHeaderTitle.tsx
index c281166348..d2e7c8a51f 100644
--- a/autogpt_platform/frontend/src/app/(platform)/PlatformChrome/components/InsetHeaderTitle/InsetHeaderTitle.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/PlatformChrome/components/InsetHeaderTitle/InsetHeaderTitle.tsx
@@ -1,11 +1,13 @@
"use client";
+import { Icon } from "@/components/atoms/Icon/Icon";
import { Text } from "@/components/atoms/Text/Text";
-import { FolderIcon, type Icon } from "@phosphor-icons/react";
import { usePathname } from "next/navigation";
+import { Folder01Icon } from "@hugeicons/core-free-icons";
+import type { IconSvgElement } from "@hugeicons/react";
-const ROUTE_TITLES: Record<string, { title: string; icon: Icon }> = {
- "/artifacts": { title: "Files", icon: FolderIcon },
+const ROUTE_TITLES: Record<string, { title: string; icon: IconSvgElement }> = {
+ "/artifacts": { title: "Files", icon: Folder01Icon },
};
export function getRouteTitle(pathname: string | null) {
@@ -22,11 +24,9 @@ export function InsetHeaderTitle() {
if (!entry) return null;
- const TitleIcon = entry.icon;
-
return (
<div className="flex items-center gap-2">
- <TitleIcon className="size-5 text-zinc-800" />
+ <Icon icon={entry.icon} className="size-5 text-zinc-800" />
<Text variant="large-medium">{entry.title}</Text>
</div>
);
diff --git a/autogpt_platform/frontend/src/app/(platform)/PlatformChrome/components/UsageIndicator/UsageIndicator.tsx b/autogpt_platform/frontend/src/app/(platform)/PlatformChrome/components/UsageIndicator/UsageIndicator.tsx
index e7e68e61a9..4900345a6c 100644
--- a/autogpt_platform/frontend/src/app/(platform)/PlatformChrome/components/UsageIndicator/UsageIndicator.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/PlatformChrome/components/UsageIndicator/UsageIndicator.tsx
@@ -1,8 +1,9 @@
"use client";
import { UsagePopover } from "@/app/(platform)/copilot/components/UsageLimits/UsagePopover/UsagePopover";
-import { GaugeIcon } from "@phosphor-icons/react";
import { useUsageIndicator } from "./useUsageIndicator";
+import { GaugeIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function UsageIndicator() {
const { percent } = useUsageIndicator();
@@ -18,7 +19,7 @@ export function UsageIndicator() {
aria-label={label}
className="relative flex size-8 items-center justify-center rounded-lg p-0 transition-colors hover:bg-zinc-100"
>
- <GaugeIcon className="size-5 text-black" />
+ <Icon icon={GaugeIcon} className="size-5 text-black" />
{percent ? (
<svg
diff --git a/autogpt_platform/frontend/src/app/(platform)/admin/block-cost-estimates/components/BlockCostEstimatesContent.tsx b/autogpt_platform/frontend/src/app/(platform)/admin/block-cost-estimates/components/BlockCostEstimatesContent.tsx
index 6acfd48914..54e70cb931 100644
--- a/autogpt_platform/frontend/src/app/(platform)/admin/block-cost-estimates/components/BlockCostEstimatesContent.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/admin/block-cost-estimates/components/BlockCostEstimatesContent.tsx
@@ -1,9 +1,9 @@
"use client";
-
-import { DownloadSimpleIcon } from "@phosphor-icons/react";
import { Button } from "@/components/atoms/Button/Button";
import { buildEstimatesJson, downloadJson } from "../helpers";
import { useBlockCostEstimates } from "./useBlockCostEstimates";
+import { Download04Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function BlockCostEstimatesContent() {
const {
@@ -87,7 +87,7 @@ export function BlockCostEstimatesContent() {
size="small"
onClick={handleDownload}
disabled={!data || data.total_rows === 0}
- leftIcon={<DownloadSimpleIcon weight="bold" />}
+ leftIcon={<Icon icon={Download04Icon} />}
>
Download JSON
</Button>
diff --git a/autogpt_platform/frontend/src/app/(platform)/admin/components/AdminImpersonationPanel.tsx b/autogpt_platform/frontend/src/app/(platform)/admin/components/AdminImpersonationPanel.tsx
index 8acfe55fbf..0c30bb55c4 100644
--- a/autogpt_platform/frontend/src/app/(platform)/admin/components/AdminImpersonationPanel.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/admin/components/AdminImpersonationPanel.tsx
@@ -1,13 +1,18 @@
"use client";
import { useState } from "react";
-import { UserMinus, UserCheck, CreditCard } from "@phosphor-icons/react";
import { Card } from "@/components/atoms/Card/Card";
import { Input } from "@/components/atoms/Input/Input";
import { Button } from "@/components/atoms/Button/Button";
import { Alert, AlertDescription } from "@/components/molecules/Alert/Alert";
import { useAdminImpersonation } from "./useAdminImpersonation";
import { useGetV1GetUserCredits } from "@/app/api/__generated__/endpoints/credits/credits";
+import {
+ CreditCardIcon,
+ UserCheck01Icon,
+ UserRemove01Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function AdminImpersonationPanel() {
const [userIdInput, setUserIdInput] = useState("");
@@ -62,7 +67,7 @@ export function AdminImpersonationPanel() {
<div className="space-y-4">
<div className="border-b pb-4">
<div className="mb-2 flex items-center space-x-2">
- <UserCheck className="h-5 w-5" />
+ <Icon icon={UserCheck01Icon} className="h-5 w-5" />
<h2 className="text-xl font-semibold">Admin User Impersonation</h2>
</div>
<p className="text-sm text-gray-600">
@@ -116,7 +121,7 @@ export function AdminImpersonationPanel() {
<Button
onClick={handleStopImpersonation}
variant="secondary"
- leftIcon={<UserMinus className="h-4 w-4" />}
+ leftIcon={<Icon icon={UserRemove01Icon} className="h-4 w-4" />}
>
Stop Impersonation
</Button>
@@ -128,7 +133,7 @@ export function AdminImpersonationPanel() {
<Card className="bg-gray-50">
<div className="space-y-3">
<div className="flex items-center space-x-2">
- <CreditCard className="h-4 w-4" />
+ <Icon icon={CreditCardIcon} className="h-4 w-4" />
<h3 className="text-sm font-medium">Live Demo: User Credits</h3>
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/admin/components/AdminUserSearch.tsx b/autogpt_platform/frontend/src/app/(platform)/admin/components/AdminUserSearch.tsx
index 5e00218305..831404e287 100644
--- a/autogpt_platform/frontend/src/app/(platform)/admin/components/AdminUserSearch.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/admin/components/AdminUserSearch.tsx
@@ -3,7 +3,8 @@
import { useState } from "react";
import { Input } from "@/components/__legacy__/ui/input";
import { Button } from "@/components/atoms/Button/Button";
-import { MagnifyingGlass } from "@phosphor-icons/react";
+import { Search01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export interface AdminUserSearchProps {
/** Current search query value (controlled). Falls back to internal state if omitted. */
@@ -64,7 +65,7 @@ export function AdminUserSearch({
disabled={isLoading || !currentValue.trim()}
loading={isLoading}
>
- {isLoading ? "Searching..." : <MagnifyingGlass size={16} />}
+ {isLoading ? "Searching..." : <Icon icon={Search01Icon} size={16} />}
</Button>
</div>
);
diff --git a/autogpt_platform/frontend/src/app/(platform)/admin/diagnostics/components/DiagnosticsContent.tsx b/autogpt_platform/frontend/src/app/(platform)/admin/diagnostics/components/DiagnosticsContent.tsx
index 2cf9da5f2d..9d40b15e32 100644
--- a/autogpt_platform/frontend/src/app/(platform)/admin/diagnostics/components/DiagnosticsContent.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/admin/diagnostics/components/DiagnosticsContent.tsx
@@ -9,11 +9,12 @@ import {
CardHeader,
CardTitle,
} from "@/components/__legacy__/ui/card";
-import { ArrowClockwise } from "@phosphor-icons/react";
import { ErrorCard } from "@/components/molecules/ErrorCard/ErrorCard";
import { useDiagnosticsContent } from "./useDiagnosticsContent";
import { ExecutionsTable } from "./ExecutionsTable";
import { SchedulesTable } from "./SchedulesTable";
+import { Refresh01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function DiagnosticsContent() {
const {
@@ -34,7 +35,10 @@ export function DiagnosticsContent() {
return (
<div className="flex h-64 items-center justify-center">
<div className="text-center">
- <ArrowClockwise className="mx-auto h-8 w-8 animate-spin text-gray-400" />
+ <Icon
+ icon={Refresh01Icon}
+ className="mx-auto h-8 w-8 animate-spin text-gray-400"
+ />
<p className="mt-2 text-gray-500">Loading diagnostics...</p>
</div>
</div>
@@ -66,7 +70,8 @@ export function DiagnosticsContent() {
variant="outline"
size="small"
>
- <ArrowClockwise
+ <Icon
+ icon={Refresh01Icon}
className={`mr-2 h-4 w-4 ${isLoading ? "animate-spin" : ""}`}
/>
Refresh
diff --git a/autogpt_platform/frontend/src/app/(platform)/admin/diagnostics/components/ExecutionsTable.tsx b/autogpt_platform/frontend/src/app/(platform)/admin/diagnostics/components/ExecutionsTable.tsx
index 6c27256845..75eee8116b 100644
--- a/autogpt_platform/frontend/src/app/(platform)/admin/diagnostics/components/ExecutionsTable.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/admin/diagnostics/components/ExecutionsTable.tsx
@@ -12,14 +12,6 @@ import {
DialogTitle,
} from "@/components/__legacy__/ui/dialog";
import { toast } from "@/components/molecules/Toast/use-toast";
-import {
- StopCircleIcon,
- ArrowClockwise,
- Stop,
- CaretLeft,
- CaretRight,
- Copy,
-} from "@phosphor-icons/react";
import React, { useState } from "react";
import {
Table,
@@ -58,6 +50,15 @@ import {
TabsLineList,
TabsLineTrigger,
} from "@/components/molecules/TabsLine/TabsLine";
+import {
+ ArrowLeft01Icon,
+ ArrowRight01Icon,
+ Copy01Icon,
+ Refresh01Icon,
+ StopCircleIcon,
+ StopIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface RunningExecutionDetail {
execution_id: string;
@@ -542,7 +543,7 @@ export function ExecutionsTable({
disabled={isStopping}
className="border-orange-500 text-orange-700 hover:bg-orange-50"
>
- <StopCircleIcon className="mr-2 h-4 w-4" />
+ <Icon icon={StopCircleIcon} className="mr-2 h-4 w-4" />
Cleanup All ({total})
</Button>
<Button
@@ -552,7 +553,7 @@ export function ExecutionsTable({
disabled={isStopping}
className="border-blue-500 text-blue-700 hover:bg-blue-50"
>
- <ArrowClockwise className="mr-2 h-4 w-4" />
+ <Icon icon={Refresh01Icon} className="mr-2 h-4 w-4" />
Requeue All ({total})
</Button>
</>
@@ -566,7 +567,7 @@ export function ExecutionsTable({
onClick={() => confirmStop("selected", "stop")}
disabled={isStopping}
>
- <StopCircleIcon className="mr-2 h-4 w-4" />
+ <Icon icon={StopCircleIcon} className="mr-2 h-4 w-4" />
Stop Selected ({selectedIds.size})
{hasOrphanedSelected && (
<span className="ml-1 text-xs text-orange-200">
@@ -583,7 +584,7 @@ export function ExecutionsTable({
onClick={() => confirmStop("all", "stop")}
disabled={isStopping}
>
- <StopCircleIcon className="mr-2 h-4 w-4" />
+ <Icon icon={StopCircleIcon} className="mr-2 h-4 w-4" />
Stop All Long-Running ({total})
</Button>
)}
@@ -606,7 +607,8 @@ export function ExecutionsTable({
}}
disabled={isLoading}
>
- <ArrowClockwise
+ <Icon
+ icon={Refresh01Icon}
className={`h-4 w-4 ${isLoading ? "animate-spin" : ""}`}
/>
</Button>
@@ -654,7 +656,10 @@ export function ExecutionsTable({
/>
) : isLoading && executions.length === 0 ? (
<div className="flex h-32 items-center justify-center">
- <ArrowClockwise className="h-6 w-6 animate-spin text-gray-400" />
+ <Icon
+ icon={Refresh01Icon}
+ className="h-6 w-6 animate-spin text-gray-400"
+ />
</div>
) : executions.length === 0 ? (
<div className="py-8 text-center text-gray-500">
@@ -734,7 +739,10 @@ export function ExecutionsTable({
title="Click to copy full execution ID"
>
{execution.execution_id.substring(0, 8)}...
- <Copy className="h-3 w-3 opacity-0 transition-opacity group-hover:opacity-100" />
+ <Icon
+ icon={Copy01Icon}
+ className="h-3 w-3 opacity-0 transition-opacity group-hover:opacity-100"
+ />
</div>
</TableCell>
<TableCell>{execution.graph_name}</TableCell>
@@ -759,7 +767,10 @@ export function ExecutionsTable({
title="Click to copy full user ID"
>
{execution.user_id.substring(0, 8)}...
- <Copy className="h-3 w-3 opacity-0 transition-opacity group-hover:opacity-100" />
+ <Icon
+ icon={Copy01Icon}
+ className="h-3 w-3 opacity-0 transition-opacity group-hover:opacity-100"
+ />
</div>
</TableCell>
<TableCell>
@@ -845,7 +856,10 @@ export function ExecutionsTable({
className="text-orange-600 hover:bg-orange-50"
title="Cleanup (mark as FAILED)"
>
- <StopCircleIcon className="h-4 w-4" />
+ <Icon
+ icon={StopCircleIcon}
+ className="h-4 w-4"
+ />
</Button>
<Button
variant="ghost"
@@ -861,7 +875,10 @@ export function ExecutionsTable({
className="text-blue-600 hover:bg-blue-50"
title="Requeue (send to RabbitMQ)"
>
- <ArrowClockwise className="h-4 w-4" />
+ <Icon
+ icon={Refresh01Icon}
+ className="h-4 w-4"
+ />
</Button>
</>
) : (
@@ -885,7 +902,7 @@ export function ExecutionsTable({
: ""
}
>
- <Stop className="h-4 w-4" />
+ <Icon icon={StopIcon} className="h-4 w-4" />
</Button>
)}
</div>
@@ -910,7 +927,7 @@ export function ExecutionsTable({
onClick={() => setCurrentPage(currentPage - 1)}
disabled={currentPage === 1}
>
- <CaretLeft className="h-4 w-4" />
+ <Icon icon={ArrowLeft01Icon} className="h-4 w-4" />
Previous
</Button>
<div className="flex items-center px-3">
@@ -923,7 +940,7 @@ export function ExecutionsTable({
disabled={currentPage === totalPages}
>
Next
- <CaretRight className="h-4 w-4" />
+ <Icon icon={ArrowRight01Icon} className="h-4 w-4" />
</Button>
</div>
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/admin/diagnostics/components/SchedulesTable.tsx b/autogpt_platform/frontend/src/app/(platform)/admin/diagnostics/components/SchedulesTable.tsx
index 4ad268995b..9f7fd37844 100644
--- a/autogpt_platform/frontend/src/app/(platform)/admin/diagnostics/components/SchedulesTable.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/admin/diagnostics/components/SchedulesTable.tsx
@@ -11,7 +11,6 @@ import {
DialogTitle,
} from "@/components/__legacy__/ui/dialog";
import { toast } from "@/components/molecules/Toast/use-toast";
-import { ArrowClockwise, Trash, Copy } from "@phosphor-icons/react";
import React, { useState } from "react";
import {
Table,
@@ -38,6 +37,12 @@ import {
TabsLineList,
TabsLineTrigger,
} from "@/components/molecules/TabsLine/TabsLine";
+import {
+ Copy01Icon,
+ Delete02Icon,
+ Refresh01Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface ScheduleDetail {
schedule_id: string;
@@ -208,7 +213,7 @@ export function SchedulesTable({
onClick={confirmDelete}
disabled={isDeleting}
>
- <Trash className="mr-2 h-4 w-4" />
+ <Icon icon={Delete02Icon} className="mr-2 h-4 w-4" />
Delete All Orphaned ({total})
</Button>
)}
@@ -219,7 +224,7 @@ export function SchedulesTable({
onClick={confirmDelete}
disabled={isDeleting}
>
- <Trash className="mr-2 h-4 w-4" />
+ <Icon icon={Delete02Icon} className="mr-2 h-4 w-4" />
Delete Selected ({selectedIds.size})
</Button>
)}
@@ -232,7 +237,8 @@ export function SchedulesTable({
}}
disabled={isLoading}
>
- <ArrowClockwise
+ <Icon
+ icon={Refresh01Icon}
className={`h-4 w-4 ${isLoading ? "animate-spin" : ""}`}
/>
</Button>
@@ -255,7 +261,10 @@ export function SchedulesTable({
<CardContent>
{isLoading && schedules.length === 0 ? (
<div className="flex h-32 items-center justify-center">
- <ArrowClockwise className="h-6 w-6 animate-spin text-gray-400" />
+ <Icon
+ icon={Refresh01Icon}
+ className="h-6 w-6 animate-spin text-gray-400"
+ />
</div>
) : schedules.length === 0 ? (
<div className="py-8 text-center text-gray-500">
@@ -331,7 +340,10 @@ export function SchedulesTable({
title="Click to copy user ID"
>
{schedule.user_id.substring(0, 8)}...
- <Copy className="h-3 w-3 opacity-0 transition-opacity group-hover:opacity-100" />
+ <Icon
+ icon={Copy01Icon}
+ className="h-3 w-3 opacity-0 transition-opacity group-hover:opacity-100"
+ />
</div>
</TableCell>
<TableCell>
diff --git a/autogpt_platform/frontend/src/app/(platform)/admin/execution-analytics/components/AnalyticsResultsTable.tsx b/autogpt_platform/frontend/src/app/(platform)/admin/execution-analytics/components/AnalyticsResultsTable.tsx
index 7ab251efb1..a3cf32eceb 100644
--- a/autogpt_platform/frontend/src/app/(platform)/admin/execution-analytics/components/AnalyticsResultsTable.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/admin/execution-analytics/components/AnalyticsResultsTable.tsx
@@ -4,9 +4,14 @@ import React, { useState } from "react";
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
import { Badge } from "@/components/atoms/Badge/Badge";
-import { DownloadIcon, EyeIcon, CopyIcon } from "@phosphor-icons/react";
import { useToast } from "@/components/molecules/Toast/use-toast";
import type { ExecutionAnalyticsResponse } from "@/app/api/__generated__/models/executionAnalyticsResponse";
+import {
+ Copy01Icon,
+ Download04Icon,
+ EyeIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
results: ExecutionAnalyticsResponse;
@@ -29,7 +34,10 @@ export function AnalyticsResultsTable({ results }: Props) {
title={`Click to copy ${label.toLowerCase()}`}
>
{value.substring(0, 8)}...
- <CopyIcon className="h-3 w-3 opacity-0 transition-opacity group-hover:opacity-100" />
+ <Icon
+ icon={Copy01Icon}
+ className="h-3 w-3 opacity-0 transition-opacity group-hover:opacity-100"
+ />
</div>
);
@@ -176,7 +184,7 @@ export function AnalyticsResultsTable({ results }: Props) {
onClick={exportToCSV}
disabled={results.results.length === 0}
>
- <DownloadIcon size={16} className="mr-2" />
+ <Icon icon={Download04Icon} size={16} className="mr-2" />
Export CSV
</Button>
</div>
@@ -257,7 +265,7 @@ export function AnalyticsResultsTable({ results }: Props) {
size="small"
onClick={() => toggleRowExpansion(result.exec_id)}
>
- <EyeIcon size={16} />
+ <Icon icon={EyeIcon} size={16} />
</Button>
</td>
</tr>
diff --git a/autogpt_platform/frontend/src/app/(platform)/admin/layout.tsx b/autogpt_platform/frontend/src/app/(platform)/admin/layout.tsx
index bd1f82dc83..c5b39c2ec4 100644
--- a/autogpt_platform/frontend/src/app/(platform)/admin/layout.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/admin/layout.tsx
@@ -1,18 +1,18 @@
import { Sidebar } from "@/components/__legacy__/Sidebar";
+import { IconSliders } from "@/components/__legacy__/ui/icons";
import {
- UsersIcon,
- CurrencyDollarIcon,
- MagnifyingGlassIcon,
- GaugeIcon,
- ReceiptIcon,
- FileTextIcon,
- HeartbeatIcon,
- CalculatorIcon,
BrainIcon,
- RobotIcon,
-} from "@phosphor-icons/react/dist/ssr";
-
-import { IconSliders } from "@/components/__legacy__/ui/icons";
+ Calculator01Icon,
+ DollarSignIcon,
+ File02Icon,
+ GaugeIcon,
+ Pulse01Icon,
+ ReceiptTextIcon,
+ Robot01Icon,
+ Search01Icon,
+ UserMultipleIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
const sidebarLinkGroups = [
{
@@ -20,52 +20,52 @@ const sidebarLinkGroups = [
{
text: "Marketplace Management",
href: "/admin/marketplace",
- icon: <UsersIcon className="h-6 w-6" />,
+ icon: <Icon icon={UserMultipleIcon} className="h-6 w-6" />,
},
{
text: "User Spending",
href: "/admin/spending",
- icon: <CurrencyDollarIcon className="h-6 w-6" />,
+ icon: <Icon icon={DollarSignIcon} className="h-6 w-6" />,
},
{
text: "System Diagnostics",
href: "/admin/diagnostics",
- icon: <HeartbeatIcon className="h-6 w-6" />,
+ icon: <Icon icon={Pulse01Icon} className="h-6 w-6" />,
},
{
text: "User Impersonation",
href: "/admin/impersonation",
- icon: <MagnifyingGlassIcon className="h-6 w-6" />,
+ icon: <Icon icon={Search01Icon} className="h-6 w-6" />,
},
{
text: "Rate Limits",
href: "/admin/rate-limits",
- icon: <GaugeIcon className="h-6 w-6" />,
+ icon: <Icon icon={GaugeIcon} className="h-6 w-6" />,
},
{
text: "Platform Costs",
href: "/admin/platform-costs",
- icon: <ReceiptIcon className="h-6 w-6" />,
+ icon: <Icon icon={ReceiptTextIcon} className="h-6 w-6" />,
},
{
text: "Execution Analytics",
href: "/admin/execution-analytics",
- icon: <FileTextIcon className="h-6 w-6" />,
+ icon: <Icon icon={File02Icon} className="h-6 w-6" />,
},
{
text: "Bot Analytics",
href: "/admin/bots",
- icon: <RobotIcon className="h-6 w-6" />,
+ icon: <Icon icon={Robot01Icon} className="h-6 w-6" />,
},
{
text: "Block Cost Estimates",
href: "/admin/block-cost-estimates",
- icon: <CalculatorIcon className="h-6 w-6" />,
+ icon: <Icon icon={Calculator01Icon} className="h-6 w-6" />,
},
{
text: "Memory Inspector",
href: "/admin/memory",
- icon: <BrainIcon className="h-6 w-6" />,
+ icon: <Icon icon={BrainIcon} className="h-6 w-6" />,
},
{
text: "Admin User Management",
diff --git a/autogpt_platform/frontend/src/app/(platform)/admin/marketplace/preview/[id]/page.tsx b/autogpt_platform/frontend/src/app/(platform)/admin/marketplace/preview/[id]/page.tsx
index 9804c4d1da..e781e792f7 100644
--- a/autogpt_platform/frontend/src/app/(platform)/admin/marketplace/preview/[id]/page.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/admin/marketplace/preview/[id]/page.tsx
@@ -2,12 +2,13 @@
import { useEffect, useState } from "react";
import { useParams, useRouter } from "next/navigation";
-import { ArrowLeft } from "@phosphor-icons/react";
import { AgentInfo } from "@/app/(platform)/marketplace/components/AgentInfo/AgentInfo";
import { AgentImages } from "@/app/(platform)/marketplace/components/AgentImages/AgentImage";
import type { StoreAgentDetails } from "@/app/api/__generated__/models/storeAgentDetails";
import { previewAsAdmin, addToLibraryAsAdmin } from "../../actions";
import { useToast } from "@/components/molecules/Toast/use-toast";
+import { ArrowLeft02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export default function AdminPreviewPage() {
const params = useParams<{ id: string }>();
@@ -88,7 +89,7 @@ export default function AdminPreviewPage() {
onClick={() => router.back()}
className="flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground"
>
- <ArrowLeft size={16} />
+ <Icon icon={ArrowLeft02Icon} size={16} />
Back to Admin Marketplace
</button>
diff --git a/autogpt_platform/frontend/src/app/(platform)/admin/memory/components/DreamOperationsView/DreamOperationsView.tsx b/autogpt_platform/frontend/src/app/(platform)/admin/memory/components/DreamOperationsView/DreamOperationsView.tsx
index cd7eb63cd2..bef39256fb 100644
--- a/autogpt_platform/frontend/src/app/(platform)/admin/memory/components/DreamOperationsView/DreamOperationsView.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/admin/memory/components/DreamOperationsView/DreamOperationsView.tsx
@@ -8,16 +8,17 @@ import {
AccordionTrigger,
} from "@/components/molecules/Accordion/Accordion";
import { Text } from "@/components/atoms/Text/Text";
-import {
- FilePlusIcon,
- LightbulbIcon,
- TrashIcon,
- WarningIcon,
-} from "@phosphor-icons/react";
import { DreamWriteRow } from "./components/DreamWriteRow";
import { DreamDemotionRow } from "./components/DreamDemotionRow";
import { DreamEntityInvalidationRow } from "./components/DreamEntityInvalidationRow";
import { sectionCounts } from "./helpers";
+import {
+ Alert01Icon,
+ BulbIcon,
+ Delete02Icon,
+ FilePlusIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
operations: DreamOperationsSnapshot | null | undefined;
@@ -56,7 +57,7 @@ export function DreamOperationsView({ operations }: Props) {
<AccordionItem value="writes">
<AccordionTrigger>
<SectionLabel
- icon={<FilePlusIcon size={14} weight="bold" />}
+ icon={<Icon icon={FilePlusIcon} size={14} />}
label="Writes"
count={counts.writes}
/>
@@ -80,7 +81,7 @@ export function DreamOperationsView({ operations }: Props) {
<AccordionItem value="proposals">
<AccordionTrigger>
<SectionLabel
- icon={<LightbulbIcon size={14} weight="bold" />}
+ icon={<Icon icon={BulbIcon} size={14} />}
label="Proposals"
count={counts.proposals}
/>
@@ -104,7 +105,7 @@ export function DreamOperationsView({ operations }: Props) {
<AccordionItem value="demotions">
<AccordionTrigger>
<SectionLabel
- icon={<TrashIcon size={14} weight="bold" />}
+ icon={<Icon icon={Delete02Icon} size={14} />}
label="Demotions"
count={counts.demotions}
/>
@@ -125,7 +126,7 @@ export function DreamOperationsView({ operations }: Props) {
<AccordionItem value="entities">
<AccordionTrigger>
<SectionLabel
- icon={<WarningIcon size={14} weight="bold" />}
+ icon={<Icon icon={Alert01Icon} size={14} />}
label="Entity invalidations"
count={counts.entities}
/>
diff --git a/autogpt_platform/frontend/src/app/(platform)/admin/memory/components/DreamUsageSummary/DreamUsageSummary.tsx b/autogpt_platform/frontend/src/app/(platform)/admin/memory/components/DreamUsageSummary/DreamUsageSummary.tsx
index 38bd1a9fde..c1ad205a07 100644
--- a/autogpt_platform/frontend/src/app/(platform)/admin/memory/components/DreamUsageSummary/DreamUsageSummary.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/admin/memory/components/DreamUsageSummary/DreamUsageSummary.tsx
@@ -3,8 +3,9 @@
import type { DreamPassUsage } from "@/app/api/__generated__/models/dreamPassUsage";
import { Text } from "@/components/atoms/Text/Text";
import { Badge } from "@/components/atoms/Badge/Badge";
-import { CoinsIcon } from "@phosphor-icons/react";
import { formatCost, formatTokens } from "./helpers";
+import { Coins01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
usage: DreamPassUsage | null | undefined;
@@ -35,7 +36,7 @@ export function DreamUsageSummary({ usage }: Props) {
Token usage
</Text>
<div className="inline-flex items-center gap-2">
- <CoinsIcon size={14} className="text-gray-500" />
+ <Icon icon={Coins01Icon} size={14} className="text-gray-500" />
<Text variant="small-medium" as="span">
total: {formatCost(usage.total_cost_usd)}
</Text>
diff --git a/autogpt_platform/frontend/src/app/(platform)/admin/spending/components/ExportCopilotUsageButton.tsx b/autogpt_platform/frontend/src/app/(platform)/admin/spending/components/ExportCopilotUsageButton.tsx
index 07f93f13f8..a5515d1073 100644
--- a/autogpt_platform/frontend/src/app/(platform)/admin/spending/components/ExportCopilotUsageButton.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/admin/spending/components/ExportCopilotUsageButton.tsx
@@ -1,7 +1,6 @@
"use client";
import { useEffect, useState } from "react";
-import { ChartLineIcon } from "@phosphor-icons/react";
import { Button } from "@/components/atoms/Button/Button";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
import { useToast } from "@/components/molecules/Toast/use-toast";
@@ -16,6 +15,8 @@ import {
defaultStartDate,
downloadCsv,
} from "../helpers";
+import { ChartLineIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function ExportCopilotUsageButton() {
const { toast } = useToast();
@@ -104,7 +105,7 @@ export function ExportCopilotUsageButton() {
<Button
variant="secondary"
size="small"
- leftIcon={<ChartLineIcon weight="bold" />}
+ leftIcon={<Icon icon={ChartLineIcon} />}
>
Copilot Usage CSV
</Button>
diff --git a/autogpt_platform/frontend/src/app/(platform)/admin/spending/components/ExportCreditTransactionsButton.tsx b/autogpt_platform/frontend/src/app/(platform)/admin/spending/components/ExportCreditTransactionsButton.tsx
index 8c97cad04c..55bf8cc632 100644
--- a/autogpt_platform/frontend/src/app/(platform)/admin/spending/components/ExportCreditTransactionsButton.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/admin/spending/components/ExportCreditTransactionsButton.tsx
@@ -1,7 +1,6 @@
"use client";
import { useEffect, useState } from "react";
-import { DownloadSimpleIcon } from "@phosphor-icons/react";
import { Button } from "@/components/atoms/Button/Button";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
import {
@@ -24,6 +23,8 @@ import {
defaultStartDate,
downloadCsv,
} from "../helpers";
+import { Download04Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type TypeFilter = "ALL" | CreditTransactionType;
@@ -131,7 +132,7 @@ export function ExportCreditTransactionsButton() {
<Button
variant="secondary"
size="small"
- leftIcon={<DownloadSimpleIcon weight="bold" />}
+ leftIcon={<Icon icon={Download04Icon} />}
>
Export CSV
</Button>
diff --git a/autogpt_platform/frontend/src/app/(platform)/admin/spending/components/RateLimitModal.tsx b/autogpt_platform/frontend/src/app/(platform)/admin/spending/components/RateLimitModal.tsx
index 8ce3b10d98..b8a4ba64bb 100644
--- a/autogpt_platform/frontend/src/app/(platform)/admin/spending/components/RateLimitModal.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/admin/spending/components/RateLimitModal.tsx
@@ -15,8 +15,9 @@ import {
getV2GetUserRateLimit,
postV2ResetUserRateLimitUsage,
} from "@/app/api/__generated__/endpoints/admin/admin";
-import { Gauge } from "@phosphor-icons/react";
import { RateLimitDisplay } from "../../rate-limits/components/RateLimitDisplay";
+import { GaugeIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function RateLimitModal({
userId,
@@ -99,7 +100,7 @@ export function RateLimitModal({
setOpen(true);
}}
>
- <Gauge size={16} className="mr-1" />
+ <Icon icon={GaugeIcon} size={16} className="mr-1" />
Rate Limits
</Button>
diff --git a/autogpt_platform/frontend/src/app/(platform)/artifacts/components/ArtifactsList/ArtifactCard/ArtifactCard.tsx b/autogpt_platform/frontend/src/app/(platform)/artifacts/components/ArtifactsList/ArtifactCard/ArtifactCard.tsx
index c8aa630cb6..459bf46fb4 100644
--- a/autogpt_platform/frontend/src/app/(platform)/artifacts/components/ArtifactsList/ArtifactCard/ArtifactCard.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/artifacts/components/ArtifactsList/ArtifactCard/ArtifactCard.tsx
@@ -12,14 +12,6 @@ import {
DropdownMenuTrigger,
} from "@/components/molecules/DropdownMenu/DropdownMenu";
import { useToast } from "@/components/molecules/Toast/use-toast";
-import {
- ArrowSquareOutIcon,
- CircleNotchIcon,
- DotsThreeIcon,
- DownloadSimpleIcon,
- FolderIcon,
- TrashIcon,
-} from "@phosphor-icons/react";
import { useQueryClient } from "@tanstack/react-query";
import { motion, useReducedMotion } from "framer-motion";
import type { Variants } from "framer-motion";
@@ -39,6 +31,15 @@ import {
getFileTypeLabel,
} from "../helpers";
import { CardPreview } from "./CardPreview";
+import {
+ Delete02Icon,
+ Download04Icon,
+ Folder01Icon,
+ LinkSquare01Icon,
+ Loading03Icon,
+ MoreHorizontalIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
file: WorkspaceFileItem;
@@ -64,7 +65,7 @@ const REDUCED_CARD_VARIANTS: Variants = {
export function ArtifactCard({ file, onOpen }: Props) {
const origin = deriveFileOrigin(file.path);
const goLabel = origin.kind === "session" ? "Open chat" : "Open in Builder";
- const TypeIcon = getFileTypeIcon(file.mime_type, file.name);
+ const typeIcon = getFileTypeIcon(file.mime_type, file.name);
const reduceMotion = useReducedMotion();
const [isMoveOpen, setIsMoveOpen] = useState(false);
const dragImageRef = useRef<HTMLElement | null>(null);
@@ -116,11 +117,7 @@ export function ArtifactCard({ file, onOpen }: Props) {
<div className="pointer-events-none relative z-10">
<CardPreview file={file} />
<div className="flex items-center gap-3 p-3">
- <TypeIcon
- size={20}
- weight="regular"
- className="shrink-0 text-zinc-500"
- />
+ <Icon icon={typeIcon} size={20} className="shrink-0 text-zinc-500" />
<div className="flex min-w-0 flex-1 flex-col">
<Text
variant="body-medium"
@@ -225,7 +222,7 @@ function CardMenu({
className="inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-zinc-500 transition-colors hover:bg-zinc-100 hover:text-zinc-900"
data-testid="artifacts-card-menu"
>
- <DotsThreeIcon size={20} weight="bold" />
+ <Icon icon={MoreHorizontalIcon} size={20} />
</button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="w-44">
@@ -238,15 +235,19 @@ function CardMenu({
data-testid="artifacts-download"
>
{isDownloading ? (
- <CircleNotchIcon size={16} className="mr-2 animate-spin" />
+ <Icon
+ icon={Loading03Icon}
+ size={16}
+ className="mr-2 animate-spin"
+ />
) : (
- <DownloadSimpleIcon size={16} className="mr-2" />
+ <Icon icon={Download04Icon} size={16} className="mr-2" />
)}
{isDownloading ? "Downloading…" : "Download"}
</DropdownMenuItem>
<DropdownMenuItem asChild>
<Link href={goHref} data-testid="artifacts-origin-link">
- <ArrowSquareOutIcon size={16} className="mr-2" />
+ <Icon icon={LinkSquare01Icon} size={16} className="mr-2" />
{goLabel}
</Link>
</DropdownMenuItem>
@@ -257,7 +258,7 @@ function CardMenu({
}}
data-testid="artifacts-move-to-folder"
>
- <FolderIcon size={16} className="mr-2" />
+ <Icon icon={Folder01Icon} size={16} className="mr-2" />
Move to folder
</DropdownMenuItem>
<DropdownMenuSeparator />
@@ -271,9 +272,13 @@ function CardMenu({
data-testid="artifacts-delete"
>
{isDeleting ? (
- <CircleNotchIcon size={16} className="mr-2 animate-spin" />
+ <Icon
+ icon={Loading03Icon}
+ size={16}
+ className="mr-2 animate-spin"
+ />
) : (
- <TrashIcon size={16} className="mr-2" />
+ <Icon icon={Delete02Icon} size={16} className="mr-2" />
)}
{isDeleting ? "Deleting…" : "Delete"}
</DropdownMenuItem>
diff --git a/autogpt_platform/frontend/src/app/(platform)/artifacts/components/ArtifactsList/ArtifactCard/StructuredPreviews.tsx b/autogpt_platform/frontend/src/app/(platform)/artifacts/components/ArtifactsList/ArtifactCard/StructuredPreviews.tsx
index a834a96bde..a13cb9ec2a 100644
--- a/autogpt_platform/frontend/src/app/(platform)/artifacts/components/ArtifactsList/ArtifactCard/StructuredPreviews.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/artifacts/components/ArtifactsList/ArtifactCard/StructuredPreviews.tsx
@@ -1,7 +1,6 @@
"use client";
import type { WorkspaceFileItem } from "@/app/api/__generated__/models/workspaceFileItem";
-import { EnvelopeSimpleIcon, PhoneIcon } from "@phosphor-icons/react";
import { getFilePreviewUrl } from "../helpers";
// Whole file (kind is gated < 110KB) via the preview endpoint, which sets
@@ -14,6 +13,8 @@ import {
type VcardPreview as VcardData,
} from "../parsers";
import { Fallback, LoadingPlaceholder, useFileText } from "./PreviewParts";
+import { CallIcon, Mail02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface PreviewProps {
file: WorkspaceFileItem;
@@ -159,13 +160,13 @@ function ContactCard({ contact }: { contact: VcardData }) {
) : null}
{contact.tel ? (
<span className="flex items-center gap-1 text-xs text-zinc-500">
- <PhoneIcon size={12} className="shrink-0" />
+ <Icon icon={CallIcon} size={12} className="shrink-0" />
<span className="truncate">{contact.tel}</span>
</span>
) : null}
{contact.email ? (
<span className="flex items-center gap-1 text-xs text-zinc-500">
- <EnvelopeSimpleIcon size={12} className="shrink-0" />
+ <Icon icon={Mail02Icon} size={12} className="shrink-0" />
<span className="truncate">{contact.email}</span>
</span>
) : null}
diff --git a/autogpt_platform/frontend/src/app/(platform)/artifacts/components/ArtifactsList/helpers.ts b/autogpt_platform/frontend/src/app/(platform)/artifacts/components/ArtifactsList/helpers.ts
index 9b9157ad2a..be8c1a7939 100644
--- a/autogpt_platform/frontend/src/app/(platform)/artifacts/components/ArtifactsList/helpers.ts
+++ b/autogpt_platform/frontend/src/app/(platform)/artifacts/components/ArtifactsList/helpers.ts
@@ -1,14 +1,14 @@
-import type { Icon } from "@phosphor-icons/react";
import {
- BracketsCurlyIcon,
+ BracesIcon,
CodeIcon,
- FileIcon,
- FilePdfIcon,
- FileTextIcon,
- ImageIcon,
+ File02Icon,
+ FileEmpty02Icon,
+ Image01Icon,
+ Pdf01Icon,
TableIcon,
- VideoCameraIcon,
-} from "@phosphor-icons/react";
+ Video01Icon,
+} from "@hugeicons/core-free-icons";
+import type { IconSvgElement } from "@hugeicons/react";
export type FileOrigin =
| { kind: "session"; sessionId: string; href: string }
@@ -176,12 +176,12 @@ export function getFileTypeLabel(
export function getFileTypeIcon(
mimeType: string | undefined,
fileName?: string,
-): Icon {
+): IconSvgElement {
if (isCodeFile(fileName)) return CodeIcon;
const mt = (mimeType ?? "").toLowerCase();
- if (mt.startsWith("image/")) return ImageIcon;
- if (mt.startsWith("video/")) return VideoCameraIcon;
- if (mt.includes("pdf")) return FilePdfIcon;
+ if (mt.startsWith("image/")) return Image01Icon;
+ if (mt.startsWith("video/")) return Video01Icon;
+ if (mt.includes("pdf")) return Pdf01Icon;
if (mt.includes("html") || mt.includes("xhtml")) return CodeIcon;
if (
mt.includes("csv") ||
@@ -190,9 +190,9 @@ export function getFileTypeIcon(
) {
return TableIcon;
}
- if (mt.includes("json")) return BracketsCurlyIcon;
- if (mt.includes("text") || mt.includes("markdown")) return FileTextIcon;
- return FileIcon;
+ if (mt.includes("json")) return BracesIcon;
+ if (mt.includes("text") || mt.includes("markdown")) return File02Icon;
+ return FileEmpty02Icon;
}
export type PreviewKind =
diff --git a/autogpt_platform/frontend/src/app/(platform)/artifacts/components/ArtifactsSearchBar/ArtifactsSearchBar.tsx b/autogpt_platform/frontend/src/app/(platform)/artifacts/components/ArtifactsSearchBar/ArtifactsSearchBar.tsx
index 88051b432a..23abd61a05 100644
--- a/autogpt_platform/frontend/src/app/(platform)/artifacts/components/ArtifactsSearchBar/ArtifactsSearchBar.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/artifacts/components/ArtifactsSearchBar/ArtifactsSearchBar.tsx
@@ -1,8 +1,9 @@
"use client";
import { Input } from "@/components/atoms/Input/Input";
-import { MagnifyingGlassIcon } from "@phosphor-icons/react";
import type { ChangeEvent } from "react";
+import { Search01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
searchTerm: string;
@@ -19,7 +20,8 @@ export function ArtifactsSearchBar({ searchTerm, setSearchTerm }: Props) {
data-testid="artifacts-search-bar"
className="relative -mb-6 flex w-full items-center md:w-auto"
>
- <MagnifyingGlassIcon
+ <Icon
+ icon={Search01Icon}
width={18}
height={18}
className="absolute left-4 top-[34%] z-20 -translate-y-1/2 text-zinc-800"
diff --git a/autogpt_platform/frontend/src/app/(platform)/artifacts/components/FileViewerModal/FileViewerModal.tsx b/autogpt_platform/frontend/src/app/(platform)/artifacts/components/FileViewerModal/FileViewerModal.tsx
index e095780e67..3ae0d6c3a1 100644
--- a/autogpt_platform/frontend/src/app/(platform)/artifacts/components/FileViewerModal/FileViewerModal.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/artifacts/components/FileViewerModal/FileViewerModal.tsx
@@ -7,9 +7,10 @@ import type { ArtifactRef } from "@/app/(platform)/copilot/store";
import { Button } from "@/components/atoms/Button/Button";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
import { useToast } from "@/components/molecules/Toast/use-toast";
-import { CodeIcon, DownloadSimpleIcon, EyeIcon } from "@phosphor-icons/react";
import { useState } from "react";
import { downloadFileBlob, getFileDownloadUrl } from "../ArtifactsList/helpers";
+import { CodeIcon, Download04Icon, EyeIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
file: WorkspaceFileItem | null;
@@ -124,7 +125,11 @@ function Header({
size="small"
onClick={onToggleSource}
leftIcon={
- isSourceView ? <EyeIcon size={14} /> : <CodeIcon size={14} />
+ isSourceView ? (
+ <Icon icon={EyeIcon} size={14} />
+ ) : (
+ <Icon icon={CodeIcon} size={14} />
+ )
}
>
{isSourceView ? "Preview" : "Source"}
@@ -135,7 +140,7 @@ function Header({
size="small"
onClick={handleDownload}
loading={isDownloading}
- leftIcon={<DownloadSimpleIcon size={14} />}
+ leftIcon={<Icon icon={Download04Icon} size={14} />}
data-testid="file-viewer-download"
>
{isDownloading ? "Downloading…" : "Download"}
@@ -162,7 +167,7 @@ function DownloadOnly({
download={name}
className="inline-flex items-center gap-1.5 rounded-md border border-zinc-200 bg-white px-3 py-1.5 text-sm font-medium text-zinc-700 transition-colors hover:bg-zinc-50"
>
- <DownloadSimpleIcon size={16} />
+ <Icon icon={Download04Icon} size={16} />
Download
</a>
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/artifacts/components/MoveToFolderDialog/MoveToFolderDialog.tsx b/autogpt_platform/frontend/src/app/(platform)/artifacts/components/MoveToFolderDialog/MoveToFolderDialog.tsx
index 49bb69c6d2..c478375079 100644
--- a/autogpt_platform/frontend/src/app/(platform)/artifacts/components/MoveToFolderDialog/MoveToFolderDialog.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/artifacts/components/MoveToFolderDialog/MoveToFolderDialog.tsx
@@ -1,11 +1,11 @@
"use client";
-
-import { FolderIcon, HouseIcon } from "@phosphor-icons/react";
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
import { useArtifactsFolders } from "../../useArtifactsFolders";
import { FOLDER_STYLE } from "../WorkspaceFolders/folder-constants";
+import { Folder01Icon, Home01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
fileId: string;
@@ -51,7 +51,7 @@ export function MoveToFolderDialog({
onClick={() => handleMove(null)}
data-testid="move-to-root"
>
- <HouseIcon size={18} className="text-zinc-500" />
+ <Icon icon={Home01Icon} size={18} className="text-zinc-500" />
<Text variant="small-medium">Files (root)</Text>
</Button>
)}
@@ -72,7 +72,7 @@ export function MoveToFolderDialog({
onClick={() => handleMove(folder.id)}
data-testid="move-to-folder-option"
>
- <FolderIcon size={18} weight="fill" className={style.icon} />
+ <Icon icon={Folder01Icon} size={18} className={style.icon} />
<Text variant="small-medium">{folder.name}</Text>
</Button>
);
diff --git a/autogpt_platform/frontend/src/app/(platform)/artifacts/components/OriginFilter/OriginFilter.tsx b/autogpt_platform/frontend/src/app/(platform)/artifacts/components/OriginFilter/OriginFilter.tsx
index 14204a4a94..ea04fef559 100644
--- a/autogpt_platform/frontend/src/app/(platform)/artifacts/components/OriginFilter/OriginFilter.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/artifacts/components/OriginFilter/OriginFilter.tsx
@@ -1,14 +1,15 @@
"use client";
+import { Icon } from "@/components/atoms/Icon/Icon";
import { cn } from "@/lib/utils";
-import {
- ListBulletsIcon,
- SparkleIcon,
- UploadSimpleIcon,
- type Icon,
-} from "@phosphor-icons/react";
import { LayoutGroup, motion, type Transition } from "framer-motion";
import type { OriginFilter as OriginFilterValue } from "../../useArtifactsPage";
+import {
+ LeftToRightListBulletIcon,
+ SparklesIcon,
+ Upload03Icon,
+} from "@hugeicons/core-free-icons";
+import type { IconSvgElement } from "@hugeicons/react";
interface Props {
value: OriginFilterValue;
@@ -18,13 +19,13 @@ interface Props {
interface Option {
value: OriginFilterValue;
label: string;
- Icon: Icon;
+ icon: IconSvgElement;
}
const OPTIONS: Option[] = [
- { value: "all", label: "All", Icon: ListBulletsIcon },
- { value: "uploaded", label: "Uploaded", Icon: UploadSimpleIcon },
- { value: "generated", label: "Generated", Icon: SparkleIcon },
+ { value: "all", label: "All", icon: LeftToRightListBulletIcon },
+ { value: "uploaded", label: "Uploaded", icon: Upload03Icon },
+ { value: "generated", label: "Generated", icon: SparklesIcon },
];
const snappySpring: Transition = {
@@ -63,7 +64,7 @@ interface OriginTabProps {
}
function OriginTab({ option, active, onClick }: OriginTabProps) {
- const { label, Icon } = option;
+ const { label, icon } = option;
return (
<button
type="button"
@@ -85,6 +86,7 @@ function OriginTab({ option, active, onClick }: OriginTabProps) {
) : null}
<span className="relative z-10 flex items-center gap-1.5">
<Icon
+ icon={icon}
size={14}
className={cn(
"transition-transform duration-300",
diff --git a/autogpt_platform/frontend/src/app/(platform)/artifacts/components/WorkspaceFolders/FolderBreadcrumb.tsx b/autogpt_platform/frontend/src/app/(platform)/artifacts/components/WorkspaceFolders/FolderBreadcrumb.tsx
index e309e182c2..a909d24fa4 100644
--- a/autogpt_platform/frontend/src/app/(platform)/artifacts/components/WorkspaceFolders/FolderBreadcrumb.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/artifacts/components/WorkspaceFolders/FolderBreadcrumb.tsx
@@ -1,7 +1,7 @@
"use client";
-
-import { CaretRightIcon, HouseIcon } from "@phosphor-icons/react";
import { Text } from "@/components/atoms/Text/Text";
+import { ArrowRight01Icon, Home01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
folderName: string;
@@ -21,12 +21,12 @@ export function FolderBreadcrumb({ folderName, onBack }: Props) {
className="inline-flex items-center gap-1.5 rounded-md px-1.5 py-1 hover:bg-zinc-100 hover:text-zinc-800"
data-testid="folder-breadcrumb-root"
>
- <HouseIcon size={16} />
+ <Icon icon={Home01Icon} size={16} />
<Text variant="small-medium" as="span">
Files
</Text>
</button>
- <CaretRightIcon size={14} className="text-zinc-400" />
+ <Icon icon={ArrowRight01Icon} size={14} className="text-zinc-400" />
<Text variant="small-medium" as="span" className="text-zinc-800">
{folderName}
</Text>
diff --git a/autogpt_platform/frontend/src/app/(platform)/artifacts/components/WorkspaceFolders/WorkspaceFolder.tsx b/autogpt_platform/frontend/src/app/(platform)/artifacts/components/WorkspaceFolders/WorkspaceFolder.tsx
index 07958dc3cd..1effcf5cb4 100644
--- a/autogpt_platform/frontend/src/app/(platform)/artifacts/components/WorkspaceFolders/WorkspaceFolder.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/artifacts/components/WorkspaceFolders/WorkspaceFolder.tsx
@@ -1,11 +1,16 @@
"use client";
import { useState } from "react";
-import { FolderIcon, PencilSimpleIcon, TrashIcon } from "@phosphor-icons/react";
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
import { FILE_DRAG_MIME } from "./drag";
import { FOLDER_STYLE } from "./folder-constants";
+import {
+ Delete02Icon,
+ Folder01Icon,
+ PencilIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
id: string;
@@ -74,7 +79,7 @@ export function WorkspaceFolder({
<div
className={`flex h-10 w-10 shrink-0 items-center justify-center rounded-xl ${style.surface}`}
>
- <FolderIcon size={22} weight="fill" className={style.icon} />
+ <Icon icon={Folder01Icon} size={22} className={style.icon} />
</div>
<div className="flex min-w-0 flex-1 flex-col">
<Text
@@ -100,7 +105,7 @@ export function WorkspaceFolder({
}}
className="h-9 w-9 !p-2 text-zinc-500 hover:text-zinc-800"
>
- <PencilSimpleIcon size={16} />
+ <Icon icon={PencilIcon} size={16} />
</Button>
<Button
variant="icon"
@@ -112,7 +117,7 @@ export function WorkspaceFolder({
}}
className="h-9 w-9 !p-2 text-zinc-500 hover:text-red-600"
>
- <TrashIcon size={16} />
+ <Icon icon={Delete02Icon} size={16} />
</Button>
</div>
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/artifacts/components/WorkspaceFolders/WorkspaceFolders.tsx b/autogpt_platform/frontend/src/app/(platform)/artifacts/components/WorkspaceFolders/WorkspaceFolders.tsx
index 806a207b46..ce3e60e0f5 100644
--- a/autogpt_platform/frontend/src/app/(platform)/artifacts/components/WorkspaceFolders/WorkspaceFolders.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/artifacts/components/WorkspaceFolders/WorkspaceFolders.tsx
@@ -1,7 +1,6 @@
"use client";
import { useState } from "react";
-import { FolderSimplePlusIcon } from "@phosphor-icons/react";
import { Button } from "@/components/atoms/Button/Button";
import { Skeleton } from "@/components/atoms/Skeleton/Skeleton";
import { Text } from "@/components/atoms/Text/Text";
@@ -11,6 +10,8 @@ import { useArtifactsFolders } from "../../useArtifactsFolders";
import { DeleteFolderDialog } from "./DeleteFolderDialog";
import { FolderFormDialog } from "./FolderFormDialog";
import { WorkspaceFolder } from "./WorkspaceFolder";
+import { FolderAddIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
onSelectFolder: (folderId: string) => void;
@@ -68,7 +69,7 @@ export function WorkspaceFolders({ onSelectFolder }: Props) {
onClick={() => setIsCreateOpen(true)}
data-testid="create-folder-button"
>
- <FolderSimplePlusIcon size={18} />
+ <Icon icon={FolderAddIcon} size={18} />
New folder
</Button>
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/auth/authorize/page.tsx b/autogpt_platform/frontend/src/app/(platform)/auth/authorize/page.tsx
index 64b1586d61..bb57900e50 100644
--- a/autogpt_platform/frontend/src/app/(platform)/auth/authorize/page.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/auth/authorize/page.tsx
@@ -7,12 +7,13 @@ import { Text } from "@/components/atoms/Text/Text";
import { Button } from "@/components/atoms/Button/Button";
import { LoadingSpinner } from "@/components/atoms/LoadingSpinner/LoadingSpinner";
import { ErrorCard } from "@/components/molecules/ErrorCard/ErrorCard";
-import { ImageIcon, SealCheckIcon } from "@phosphor-icons/react";
import {
postOauthAuthorize,
useGetOauthGetOauthAppInfo,
} from "@/app/api/__generated__/endpoints/oauth/oauth";
import type { APIKeyPermission } from "@/app/api/__generated__/models/aPIKeyPermission";
+import { CheckmarkBadge01Icon, Image01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
// Human-readable scope descriptions
const SCOPE_DESCRIPTIONS: { [key in APIKeyPermission]: string } = {
@@ -227,7 +228,7 @@ export default function AuthorizePage() {
className="h-full w-full object-cover"
/>
) : (
- <ImageIcon className="h-8 w-8 text-slate-400" />
+ <Icon icon={Image01Icon} className="h-8 w-8 text-slate-400" />
)}
</div>
<Text variant="h4" className="mb-2">
@@ -248,7 +249,10 @@ export default function AuthorizePage() {
<ul className="space-y-2">
{requestedScopes.map((scopeKey) => (
<li key={scopeKey} className="flex items-start gap-3">
- <SealCheckIcon className="mt-0.5 text-green-600" />
+ <Icon
+ icon={CheckmarkBadge01Icon}
+ className="mt-0.5 text-green-600"
+ />
<Text variant="body">
{SCOPE_DESCRIPTIONS[scopeKey as APIKeyPermission] ||
scopeKey}
diff --git a/autogpt_platform/frontend/src/app/(platform)/auth/integrations/setup-wizard/page.tsx b/autogpt_platform/frontend/src/app/(platform)/auth/integrations/setup-wizard/page.tsx
index e369faf072..7067b7ed87 100644
--- a/autogpt_platform/frontend/src/app/(platform)/auth/integrations/setup-wizard/page.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/auth/integrations/setup-wizard/page.tsx
@@ -12,11 +12,12 @@ import type {
CredentialsMetaInput,
CredentialsType,
} from "@/lib/autogpt-server-api";
-import { CheckIcon, CircleIcon } from "@phosphor-icons/react";
import Image from "next/image";
import Link from "next/link";
import { useSearchParams } from "next/navigation";
import { useMemo, useRef, useState } from "react";
+import { CircleIcon, Tick02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
// All credential types - we accept any type of credential
const ALL_CREDENTIAL_TYPES: CredentialsType[] = [
@@ -257,16 +258,16 @@ export default function IntegrationSetupWizardPage() {
</Text>
<div className="grow"></div>
{isSelected ? (
- <CheckIcon
+ <Icon
+ icon={Tick02Icon}
size={20}
className="text-green-500"
- weight="bold"
/>
) : (
- <CircleIcon
+ <Icon
+ icon={CircleIcon}
size={20}
className="text-slate-300"
- weight="bold"
/>
)}
{isSelected && (
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderActions/components/AgentOutputs/AgentOutputs.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderActions/components/AgentOutputs/AgentOutputs.tsx
index 5a4c2dc9ae..9ee151e6cb 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderActions/components/AgentOutputs/AgentOutputs.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderActions/components/AgentOutputs/AgentOutputs.tsx
@@ -23,9 +23,10 @@ import {
OutputActions,
OutputItem,
} from "@/components/contextual/OutputRenderers";
-import { BookOpenIcon } from "@phosphor-icons/react";
import { useMemo } from "react";
import { useShallow } from "zustand/react/shallow";
+import { BookOpen01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export const AgentOutputs = ({ flowID }: { flowID: string | null }) => {
const hasOutputs = useGraphStore(useShallow((state) => state.hasOutputs));
@@ -96,7 +97,7 @@ export const AgentOutputs = ({ flowID }: { flowID: string | null }) => {
data-id="agent-outputs-button"
disabled={!flowID || !hasOutputs()}
>
- <BookOpenIcon className="size-4" />
+ <Icon icon={BookOpen01Icon} className="size-4" />
</Button>
</SheetTrigger>
</TooltipTrigger>
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderActions/components/PublishToMarketplace/PublishToMarketplace.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderActions/components/PublishToMarketplace/PublishToMarketplace.tsx
index 13d79844c8..541edf60ba 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderActions/components/PublishToMarketplace/PublishToMarketplace.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderActions/components/PublishToMarketplace/PublishToMarketplace.tsx
@@ -5,8 +5,9 @@ import {
TooltipTrigger,
} from "@/components/atoms/Tooltip/BaseTooltip";
import { PublishAgentModal } from "@/components/contextual/PublishAgentModal/PublishAgentModal";
-import { ShareIcon } from "@phosphor-icons/react";
import { usePublishToMarketplace } from "./usePublishToMarketplace";
+import { Share01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
flowID: string | null;
@@ -29,7 +30,7 @@ export function PublishToMarketplace({ flowID, flowVersion }: Props) {
onClick={handlePublishToMarketplace}
disabled={isDisabled}
>
- <ShareIcon className="size-4" />
+ <Icon icon={Share01Icon} className="size-4" />
</Button>
</TooltipTrigger>
<TooltipContent>Publish to Marketplace</TooltipContent>
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderActions/components/RunGraph/RunGraph.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderActions/components/RunGraph/RunGraph.tsx
index 1fee22f6eb..c018976cea 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderActions/components/RunGraph/RunGraph.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderActions/components/RunGraph/RunGraph.tsx
@@ -5,16 +5,17 @@ import {
TooltipContent,
TooltipTrigger,
} from "@/components/atoms/Tooltip/BaseTooltip";
-import {
- CircleNotchIcon,
- FlaskIcon,
- PlayIcon,
- StopIcon,
-} from "@phosphor-icons/react";
import { useShallow } from "zustand/react/shallow";
import { RunInputDialog } from "../RunInputDialog/RunInputDialog";
import { useRunGraph } from "./useRunGraph";
import { cn } from "@/lib/utils";
+import {
+ FlaskConicalIcon,
+ Loading03Icon,
+ PlayIcon,
+ StopIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export const RunGraph = ({ flowID }: { flowID: string | null }) => {
const {
@@ -42,18 +43,15 @@ export const RunGraph = ({ flowID }: { flowID: string | null }) => {
if (isLoading) {
return (
- <CircleNotchIcon
- className={cn(iconClass, "animate-spin")}
- weight="bold"
- />
+ <Icon icon={Loading03Icon} className={cn(iconClass, "animate-spin")} />
);
}
if (isGraphRunning) {
- return <StopIcon className={iconClass} weight="fill" />;
+ return <Icon icon={StopIcon} className={iconClass} />;
}
- return <PlayIcon className={iconClass} weight="fill" />;
+ return <Icon icon={PlayIcon} className={iconClass} />;
};
return (
@@ -70,9 +68,9 @@ export const RunGraph = ({ flowID }: { flowID: string | null }) => {
disabled={!flowID || isLoading}
className="group text-amber-600 hover:bg-amber-50 hover:text-amber-700"
>
- <FlaskIcon
+ <Icon
+ icon={FlaskConicalIcon}
className="size-4 transition-transform duration-200 ease-out group-hover:scale-110"
- weight="fill"
/>
</Button>
</TooltipTrigger>
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderActions/components/RunInputDialog/RunInputDialog.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderActions/components/RunInputDialog/RunInputDialog.tsx
index 1ac522a565..14e94dfe0f 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderActions/components/RunInputDialog/RunInputDialog.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderActions/components/RunInputDialog/RunInputDialog.tsx
@@ -3,7 +3,6 @@ import { RJSFSchema } from "@rjsf/utils";
import { uiSchema } from "../../../FlowEditor/nodes/uiSchema";
import { useGraphStore } from "@/app/(platform)/build/stores/graphStore";
import { Button } from "@/components/atoms/Button/Button";
-import { ClockIcon, PlayIcon } from "@phosphor-icons/react";
import { Text } from "@/components/atoms/Text/Text";
import { FormRenderer } from "@/components/renderers/InputRenderer/FormRenderer";
import { useRunInputDialog } from "./useRunInputDialog";
@@ -11,6 +10,8 @@ import { CronSchedulerDialog } from "../CronSchedulerDialog/CronSchedulerDialog"
import { useTutorialStore } from "@/app/(platform)/build/stores/tutorialStore";
import { useEffect } from "react";
import { CredentialsGroupedView } from "@/components/contextual/CredentialsInput/components/CredentialsGroupedView/CredentialsGroupedView";
+import { Clock01Icon, PlayIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export const RunInputDialog = ({
isOpen,
@@ -131,7 +132,10 @@ export const RunInputDialog = ({
data-id="run-input-manual-run-button"
>
{!isExecutingGraph && (
- <PlayIcon className="size-5 transition-transform group-hover:scale-110" />
+ <Icon
+ icon={PlayIcon}
+ className="size-5 transition-transform group-hover:scale-110"
+ />
)}
<span className="font-semibold">Manual Run</span>
</Button>
@@ -144,7 +148,10 @@ export const RunInputDialog = ({
onClick={() => setOpenCronSchedulerDialog(true)}
data-id="run-input-schedule-button"
>
- <ClockIcon className="size-5 transition-transform group-hover:scale-110" />
+ <Icon
+ icon={Clock01Icon}
+ className="size-5 transition-transform group-hover:scale-110"
+ />
<span className="font-semibold">Schedule Run</span>
</Button>
)}
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderActions/components/ScheduleGraph/ScheduleGraph.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderActions/components/ScheduleGraph/ScheduleGraph.tsx
index 854917154e..2de233a760 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderActions/components/ScheduleGraph/ScheduleGraph.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderActions/components/ScheduleGraph/ScheduleGraph.tsx
@@ -5,10 +5,11 @@ import {
TooltipProvider,
TooltipTrigger,
} from "@/components/atoms/Tooltip/BaseTooltip";
-import { ClockIcon } from "@phosphor-icons/react";
import { CronSchedulerDialog } from "../CronSchedulerDialog/CronSchedulerDialog";
import { RunInputDialog } from "../RunInputDialog/RunInputDialog";
import { useScheduleGraph } from "./useScheduleGraph";
+import { Clock01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export const ScheduleGraph = ({ flowID }: { flowID: string | null }) => {
const {
@@ -30,7 +31,7 @@ export const ScheduleGraph = ({ flowID }: { flowID: string | null }) => {
onClick={handleScheduleGraph}
disabled={!flowID}
>
- <ClockIcon className="size-4" />
+ <Icon icon={Clock01Icon} className="size-4" />
</Button>
</TooltipTrigger>
<TooltipContent>
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderChatPanel/BuilderChatPanel.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderChatPanel/BuilderChatPanel.tsx
index 4a26093f2b..17f915fee4 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderChatPanel/BuilderChatPanel.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderChatPanel/BuilderChatPanel.tsx
@@ -4,10 +4,11 @@ import { ChatInput } from "@/app/(platform)/copilot/components/ChatInput/ChatInp
import { ChatMessagesContainer } from "@/app/(platform)/copilot/components/ChatMessagesContainer/ChatMessagesContainer";
import { CopilotChatActionsProvider } from "@/app/(platform)/copilot/components/CopilotChatActionsProvider/CopilotChatActionsProvider";
import { cn } from "@/lib/utils";
-import { ChatCircle, X } from "@phosphor-icons/react";
import { useRef } from "react";
import { PanelHeader } from "./components/PanelHeader";
import { useBuilderChatPanel } from "./useBuilderChatPanel";
+import { BubbleChatIcon, Cancel01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
className?: string;
@@ -136,7 +137,11 @@ export function BuilderChatPanel({ className }: Props) {
: "border border-slate-200 bg-white text-slate-700 hover:bg-slate-50",
)}
>
- {isOpen ? <X size={20} /> : <ChatCircle size={22} weight="fill" />}
+ {isOpen ? (
+ <Icon icon={Cancel01Icon} size={20} />
+ ) : (
+ <Icon icon={BubbleChatIcon} size={22} />
+ )}
</button>
</div>
);
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderChatPanel/components/PanelHeader.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderChatPanel/components/PanelHeader.tsx
index 997b1cff0d..3911713a8f 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderChatPanel/components/PanelHeader.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/BuilderChatPanel/components/PanelHeader.tsx
@@ -1,5 +1,10 @@
import { Button } from "@/components/atoms/Button/Button";
-import { ArrowCounterClockwise, ChatCircle, X } from "@phosphor-icons/react";
+import {
+ BubbleChatIcon,
+ Cancel01Icon,
+ RefreshIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
onClose: () => void;
@@ -17,7 +22,7 @@ export function PanelHeader({
return (
<div className="flex items-center justify-between border-b border-slate-100 px-4 py-3">
<div className="flex items-center gap-2">
- <ChatCircle size={18} weight="fill" className="text-violet-600" />
+ <Icon icon={BubbleChatIcon} size={18} className="text-violet-600" />
<span className="text-sm font-semibold text-slate-800">
Chat with Builder
</span>
@@ -28,7 +33,7 @@ export function PanelHeader({
variant="ghost"
size="small"
onClick={onRevert}
- leftIcon={<ArrowCounterClockwise size={14} />}
+ leftIcon={<Icon icon={RefreshIcon} size={14} />}
aria-label={
revertTargetVersion != null
? `Revert to version ${revertTargetVersion}`
@@ -45,7 +50,7 @@ export function PanelHeader({
onClick={onClose}
aria-label="Close"
>
- <X size={16} />
+ <Icon icon={Cancel01Icon} size={16} />
</Button>
</div>
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/DraftRecoveryDialog/DraftRecoveryPopup.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/DraftRecoveryDialog/DraftRecoveryPopup.tsx
index 905d1d4680..e824e14ed2 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/DraftRecoveryDialog/DraftRecoveryPopup.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/DraftRecoveryDialog/DraftRecoveryPopup.tsx
@@ -1,7 +1,6 @@
"use client";
import { Button } from "@/components/atoms/Button/Button";
-import { ClockCounterClockwiseIcon, XIcon } from "@phosphor-icons/react";
import { cn } from "@/lib/utils";
import { formatTimeAgo } from "@/lib/utils/time";
import {
@@ -13,6 +12,8 @@ import { useDraftRecoveryPopup } from "./useDraftRecoveryPopup";
import { Text } from "@/components/atoms/Text/Text";
import { AnimatePresence, motion } from "framer-motion";
import { DraftDiff } from "@/lib/dexie/draft-utils";
+import { Cancel01Icon, HistoryIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface DraftRecoveryPopupProps {
isInitialLoadComplete: boolean;
@@ -101,7 +102,7 @@ export function DraftRecoveryPopup({
)}
>
<div className="flex items-center gap-2 text-amber-700 dark:text-amber-300">
- <ClockCounterClockwiseIcon className="h-5 w-5" weight="fill" />
+ <Icon icon={HistoryIcon} className="h-5 w-5" />
</div>
<div className="flex flex-col">
@@ -130,7 +131,7 @@ export function DraftRecoveryPopup({
onClick={onLoad}
className="aspect-square min-w-0 p-1.5"
>
- <ClockCounterClockwiseIcon size={20} weight="fill" />
+ <Icon icon={HistoryIcon} size={20} />
<span className="sr-only">Restore changes</span>
</Button>
</TooltipTrigger>
@@ -145,7 +146,7 @@ export function DraftRecoveryPopup({
aria-label="Discard changes"
className="aspect-square min-w-0 p-1.5"
>
- <XIcon size={20} />
+ <Icon icon={Cancel01Icon} size={20} />
<span className="sr-only">Discard changes</span>
</Button>
</TooltipTrigger>
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/FloatingSafeModeToogle.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/FloatingSafeModeToogle.tsx
index 227d892fff..05be6d1ad4 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/FloatingSafeModeToogle.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/FloatingSafeModeToogle.tsx
@@ -3,7 +3,6 @@ import { LibraryAgent } from "@/app/api/__generated__/models/libraryAgent";
import { Button } from "@/components/atoms/Button/Button";
import { Graph } from "@/lib/autogpt-server-api/types";
import { cn } from "@/lib/utils";
-import { ShieldCheckIcon, ShieldIcon } from "@phosphor-icons/react";
import { Text } from "@/components/atoms/Text/Text";
import { useAgentSafeMode } from "@/hooks/useAgentSafeMode";
import {
@@ -11,6 +10,8 @@ import {
TooltipContent,
TooltipTrigger,
} from "@/components/atoms/Tooltip/BaseTooltip";
+import { SecurityCheckIcon, Shield01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
graph: GraphModel | LibraryAgent | Graph;
@@ -49,14 +50,14 @@ function SafeModeButton({
>
{isEnabled ? (
<>
- <ShieldCheckIcon weight="bold" size={16} />
+ <Icon icon={SecurityCheckIcon} size={16} />
<Text variant="body" className="text-zinc-200">
{label}: ON
</Text>
</>
) : (
<>
- <ShieldIcon weight="bold" size={16} />
+ <Icon icon={Shield01Icon} size={16} />
<Text variant="body" className="text-zinc-600">
{label}: OFF
</Text>
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/Flow/components/CustomControl.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/Flow/components/CustomControl.tsx
index a3a4e7b9ac..4fc16fb29b 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/Flow/components/CustomControl.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/Flow/components/CustomControl.tsx
@@ -5,18 +5,19 @@ import {
TooltipContent,
TooltipTrigger,
} from "@/components/atoms/Tooltip/BaseTooltip";
-import {
- ChalkboardIcon,
- CircleNotchIcon,
- FrameCornersIcon,
- MinusIcon,
- PlusIcon,
-} from "@phosphor-icons/react/dist/ssr";
import { LockIcon, LockOpenIcon } from "lucide-react";
import { memo, useEffect, useState } from "react";
import { useSearchParams, useRouter } from "next/navigation";
import { useTutorialStore } from "@/app/(platform)/build/stores/tutorialStore";
import { startTutorial, setTutorialLoadingCallback } from "../../tutorial";
+import {
+ FullScreenIcon,
+ Loading03Icon,
+ MinusSignIcon,
+ PlusSignIcon,
+ Presentation01Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export const CustomControls = memo(
({
@@ -55,14 +56,14 @@ export const CustomControls = memo(
const controls = [
{
id: "zoom-in-button",
- icon: <PlusIcon className="size-3.5 text-zinc-600" />,
+ icon: <Icon icon={PlusSignIcon} className="size-3.5 text-zinc-600" />,
label: "Zoom In",
onClick: () => zoomIn(),
className: "h-10 w-10 border-none",
},
{
id: "zoom-out-button",
- icon: <MinusIcon className="size-3.5 text-zinc-600" />,
+ icon: <Icon icon={MinusSignIcon} className="size-3.5 text-zinc-600" />,
label: "Zoom Out",
onClick: () => zoomOut(),
className: "h-10 w-10 border-none",
@@ -70,9 +71,12 @@ export const CustomControls = memo(
{
id: "tutorial-button",
icon: isTutorialLoading ? (
- <CircleNotchIcon className="size-3.5 animate-spin text-zinc-600" />
+ <Icon
+ icon={Loading03Icon}
+ className="size-3.5 animate-spin text-zinc-600"
+ />
) : (
- <ChalkboardIcon className="size-3.5 text-zinc-600" />
+ <Icon icon={Presentation01Icon} className="size-3.5 text-zinc-600" />
),
label: isTutorialLoading ? "Loading Tutorial..." : "Start Tutorial",
onClick: handleTutorialClick,
@@ -81,7 +85,7 @@ export const CustomControls = memo(
},
{
id: "fit-view-button",
- icon: <FrameCornersIcon className="size-3.5 text-zinc-600" />,
+ icon: <Icon icon={FullScreenIcon} className="size-3.5 text-zinc-600" />,
label: "Fit View",
onClick: () => fitView({ padding: 0.2, duration: 800, maxZoom: 1 }),
className: "h-10 w-10 border-none",
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/edges/CustomEdge.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/edges/CustomEdge.tsx
index 3882d01598..3a48bb1cc6 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/edges/CustomEdge.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/edges/CustomEdge.tsx
@@ -9,10 +9,11 @@ import {
} from "@xyflow/react";
import { useEdgeStore } from "@/app/(platform)/build/stores/edgeStore";
import { useNodeStore } from "@/app/(platform)/build/stores/nodeStore";
-import { XIcon } from "@phosphor-icons/react";
import { cn } from "@/lib/utils";
import { NodeExecutionResult } from "@/lib/autogpt-server-api";
import { JSBeads } from "./components/JSBeads";
+import { Cancel01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export type CustomEdgeData = {
isStatic?: boolean;
@@ -113,7 +114,7 @@ const CustomEdge = ({
onMouseEnter={() => setIsHovered(true)}
onMouseLeave={() => setIsHovered(false)}
>
- <XIcon className="h-3 w-3" weight="bold" />
+ <Icon icon={Cancel01Icon} className="h-3 w-3" />
</Button>
</EdgeLabelRenderer>
</>
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/handlers/NodeHandle.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/handlers/NodeHandle.tsx
index fdec177788..13b1adc2bb 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/handlers/NodeHandle.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/handlers/NodeHandle.tsx
@@ -1,9 +1,10 @@
-import { CircleIcon } from "@phosphor-icons/react";
import { Handle, Position } from "@xyflow/react";
import { useEdgeStore } from "../../../stores/edgeStore";
import { cleanUpHandleId } from "@/components/renderers/InputRenderer/helpers";
import { cn } from "@/lib/utils";
import { useNodeStore } from "../../../stores/nodeStore";
+import { CircleIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
const InputNodeHandle = ({
handleId,
@@ -29,9 +30,10 @@ const InputNodeHandle = ({
data-tutorial-id={`input-handler-${nodeId}-${cleanedHandleId}`}
>
<div className="pointer-events-none">
- <CircleIcon
+ <Icon
+ icon={CircleIcon}
size={16}
- weight={isInputConnected ? "fill" : "duotone"}
+ fill={isInputConnected ? "currentColor" : "none"}
className={cn(
"text-gray-400 opacity-100",
isInputBroken && "text-red-500",
@@ -66,9 +68,9 @@ const OutputNodeHandle = ({
data-tutorial-id={`output-handler-${nodeId}-${field_name}`}
>
<div className="pointer-events-none">
- <CircleIcon
+ <Icon
+ icon={CircleIcon}
size={16}
- weight={"duotone"}
color={isOutputConnected ? hexColor : "gray"}
className={cn(
"text-gray-400 opacity-100",
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeAdvancedToggle.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeAdvancedToggle.tsx
index 65a9df04a9..5c8f173857 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeAdvancedToggle.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeAdvancedToggle.tsx
@@ -1,8 +1,9 @@
import { useNodeStore } from "@/app/(platform)/build/stores/nodeStore";
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
-import { CaretDownIcon } from "@phosphor-icons/react";
import { cn } from "@/lib/utils";
+import { ArrowDown01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type Props = {
nodeId: string;
@@ -41,9 +42,9 @@ export function NodeAdvancedToggle({
className="flex items-center gap-2 !font-semibold text-slate-700"
>
Advanced{" "}
- <CaretDownIcon
+ <Icon
+ icon={ArrowDown01Icon}
size={16}
- weight="bold"
className={`transition-transform ${showAdvanced ? "rotate-180" : ""}`}
aria-hidden
/>
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeContextMenu.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeContextMenu.tsx
index 1a0e23fead..a494c42f80 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeContextMenu.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeContextMenu.tsx
@@ -9,13 +9,14 @@ import {
SecondaryDropdownMenuItem,
SecondaryDropdownMenuSeparator,
} from "@/components/molecules/SecondaryMenu/SecondaryMenu";
-import {
- ArrowSquareOutIcon,
- CopyIcon,
- DotsThreeOutlineVerticalIcon,
- TrashIcon,
-} from "@phosphor-icons/react";
import { useReactFlow } from "@xyflow/react";
+import {
+ Copy01Icon,
+ Delete02Icon,
+ LinkSquare01Icon,
+ MoreVerticalIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type Props = {
nodeId: string;
@@ -44,11 +45,15 @@ export const NodeContextMenu = ({ nodeId, subGraphID }: Props) => {
return (
<DropdownMenu>
<DropdownMenuTrigger className="py-2">
- <DotsThreeOutlineVerticalIcon size={16} weight="fill" />
+ <Icon icon={MoreVerticalIcon} size={16} />
</DropdownMenuTrigger>
<SecondaryDropdownMenuContent side="right" align="start">
<SecondaryDropdownMenuItem onClick={handleCopy}>
- <CopyIcon size={20} className="mr-2 dark:text-gray-100" />
+ <Icon
+ icon={Copy01Icon}
+ size={20}
+ className="mr-2 dark:text-gray-100"
+ />
<span className="dark:text-gray-100">Copy</span>
</SecondaryDropdownMenuItem>
<SecondaryDropdownMenuSeparator />
@@ -58,7 +63,8 @@ export const NodeContextMenu = ({ nodeId, subGraphID }: Props) => {
<SecondaryDropdownMenuItem
onClick={() => window.open(`/build?flowID=${subGraphID}`)}
>
- <ArrowSquareOutIcon
+ <Icon
+ icon={LinkSquare01Icon}
size={20}
className="mr-2 dark:text-gray-100"
/>
@@ -69,7 +75,8 @@ export const NodeContextMenu = ({ nodeId, subGraphID }: Props) => {
)}
<SecondaryDropdownMenuItem variant="destructive" onClick={handleDelete}>
- <TrashIcon
+ <Icon
+ icon={Delete02Icon}
size={20}
className="mr-2 text-red-500 dark:text-red-400"
/>
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeCost.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeCost.tsx
index dff87b472f..b1905c9730 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeCost.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeCost.tsx
@@ -2,10 +2,11 @@ import { BlockCost } from "@/app/api/__generated__/models/blockCost";
import { BlockCostType } from "@/app/api/__generated__/models/blockCostType";
import { Text } from "@/components/atoms/Text/Text";
import useCredits from "@/hooks/useCredits";
-import { CoinIcon } from "@phosphor-icons/react";
import { isCostFilterMatch } from "../../../../helper";
import { useNodeStore } from "@/app/(platform)/build/stores/nodeStore";
import { useShallow } from "zustand/react/shallow";
+import { Coins02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type CostDisplay =
| { kind: "free" }
@@ -128,7 +129,7 @@ export const NodeCost = ({
if (display.kind === "free") {
return (
<div className="mr-3 flex items-center gap-1 text-base font-light">
- <CoinIcon className="h-3 w-3" />
+ <Icon icon={Coins02Icon} className="h-3 w-3" />
<Text variant="small" className="!font-medium">
Free
</Text>
@@ -142,7 +143,7 @@ export const NodeCost = ({
className="mr-3 flex items-center gap-1 text-base font-light"
title={tokenRateTooltip(display)}
>
- <CoinIcon className="h-3 w-3" />
+ <Icon icon={Coins02Icon} className="h-3 w-3" />
<Text variant="small" className="!font-medium">
{`${formatUsd(display.input)} in / ${formatUsd(display.output)} out`}
</Text>
@@ -157,7 +158,7 @@ export const NodeCost = ({
className="mr-3 flex items-center gap-1 text-base font-light"
title="Pay-as-you-go pricing. Final charge matches the provider's per-token rate plus a 1.5× margin."
>
- <CoinIcon className="h-3 w-3" />
+ <Icon icon={Coins02Icon} className="h-3 w-3" />
<Text variant="small">Pay-as-you-go</Text>
</div>
);
@@ -168,7 +169,7 @@ export const NodeCost = ({
className="mr-3 flex items-center gap-1 text-base font-light"
title={display.note}
>
- <CoinIcon className="h-3 w-3" />
+ <Icon icon={Coins02Icon} className="h-3 w-3" />
<Text variant="small" className="!font-medium">
{display.amountText}
</Text>
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeOutput/NodeOutput.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeOutput/NodeOutput.tsx
index 6d3d21955a..849ecec967 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeOutput/NodeOutput.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeOutput/NodeOutput.tsx
@@ -7,11 +7,12 @@ import {
AccordionTrigger,
} from "@/components/molecules/Accordion/Accordion";
import { beautifyString, cn } from "@/lib/utils";
-import { CopyIcon, CheckIcon } from "@phosphor-icons/react";
import { NodeDataViewer } from "./components/NodeDataViewer/NodeDataViewer";
import { ContentRenderer } from "./components/ContentRenderer";
import { useNodeOutput } from "./useNodeOutput";
import { ViewMoreData } from "./components/ViewMoreData";
+import { Copy01Icon, Tick02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export const NodeDataRenderer = ({ nodeId }: { nodeId: string }) => {
const {
@@ -66,9 +67,13 @@ export const NodeDataRenderer = ({ nodeId }: { nodeId: string }) => {
)}
>
{copiedKey === "input" ? (
- <CheckIcon size={12} className="text-green-600" />
+ <Icon
+ icon={Tick02Icon}
+ size={12}
+ className="text-green-600"
+ />
) : (
- <CopyIcon size={12} />
+ <Icon icon={Copy01Icon} size={12} />
)}
</Button>
</div>
@@ -124,12 +129,13 @@ export const NodeDataRenderer = ({ nodeId }: { nodeId: string }) => {
)}
>
{copiedKey === key ? (
- <CheckIcon
+ <Icon
+ icon={Tick02Icon}
size={12}
className="text-green-600"
/>
) : (
- <CopyIcon size={12} />
+ <Icon icon={Copy01Icon} size={12} />
)}
</Button>
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeOutput/components/NodeDataViewer/NodeDataViewer.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeOutput/components/NodeDataViewer/NodeDataViewer.tsx
index a79495a516..9b08782d24 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeOutput/components/NodeDataViewer/NodeDataViewer.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeOutput/components/NodeDataViewer/NodeDataViewer.tsx
@@ -12,17 +12,18 @@ import {
} from "@/components/contextual/OutputRenderers";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
import { beautifyString } from "@/lib/utils";
-import {
- ArrowsOutSimpleIcon,
- CheckIcon,
- CopyIcon,
- DownloadIcon,
-} from "@phosphor-icons/react";
import React, { FC } from "react";
import { useNodeDataViewer } from "./useNodeDataViewer";
import { useNodeStore } from "@/app/(platform)/build/stores/nodeStore";
import { useShallow } from "zustand/react/shallow";
import { NodeDataType } from "../../helpers";
+import {
+ ArrowExpand01Icon,
+ Copy01Icon,
+ Download04Icon,
+ Tick02Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export interface NodeDataViewerProps {
data?: any;
@@ -95,7 +96,10 @@ export const NodeDataViewer: FC<NodeDataViewerProps> = ({
size="small"
className="h-fit min-w-0 gap-1.5 border border-zinc-200 p-2 text-black hover:text-slate-900"
>
- <ArrowsOutSimpleIcon size={isViewMoreData ? 16 : 12} />
+ <Icon
+ icon={ArrowExpand01Icon}
+ size={isViewMoreData ? 16 : 12}
+ />
</Button>
</Dialog.Trigger>
</TooltipTrigger>
@@ -149,7 +153,7 @@ export const NodeDataViewer: FC<NodeDataViewerProps> = ({
onClick={copyExecutionId}
className="h-6 w-6 min-w-0 p-0"
>
- <CopyIcon size={14} />
+ <Icon icon={Copy01Icon} size={14} />
</Button>
</div>
<div className="mt-2">
@@ -208,9 +212,15 @@ export const NodeDataViewer: FC<NodeDataViewerProps> = ({
>
{copiedKey ===
`${execution.execId}-${index}` ? (
- <CheckIcon className="size-4 text-green-600" />
+ <Icon
+ icon={Tick02Icon}
+ className="size-4 text-green-600"
+ />
) : (
- <CopyIcon className="size-4 text-black" />
+ <Icon
+ icon={Copy01Icon}
+ className="size-4 text-black"
+ />
)}
</Button>
<Button
@@ -220,7 +230,10 @@ export const NodeDataViewer: FC<NodeDataViewerProps> = ({
onClick={() => handleDownloadGroupedItem(item)}
aria-label="Download item"
>
- <DownloadIcon className="size-4 text-black" />
+ <Icon
+ icon={Download04Icon}
+ className="size-4 text-black"
+ />
</Button>
</div>
</div>
@@ -252,9 +265,15 @@ export const NodeDataViewer: FC<NodeDataViewerProps> = ({
aria-label="Copy item"
>
{copiedIndex === index ? (
- <CheckIcon className="size-4 text-green-600" />
+ <Icon
+ icon={Tick02Icon}
+ className="size-4 text-green-600"
+ />
) : (
- <CopyIcon className="size-4 text-black" />
+ <Icon
+ icon={Copy01Icon}
+ className="size-4 text-black"
+ />
)}
</Button>
<Button
@@ -264,7 +283,10 @@ export const NodeDataViewer: FC<NodeDataViewerProps> = ({
onClick={() => handleDownloadItem(index)}
aria-label="Download item"
>
- <DownloadIcon className="size-4 text-black" />
+ <Icon
+ icon={Download04Icon}
+ className="size-4 text-black"
+ />
</Button>
</div>
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeOutput/components/ViewMoreData.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeOutput/components/ViewMoreData.tsx
index c46b937f1d..98ab8b597e 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeOutput/components/ViewMoreData.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeOutput/components/ViewMoreData.tsx
@@ -7,7 +7,6 @@ import { ScrollArea } from "@/components/__legacy__/ui/scroll-area";
import { useState } from "react";
import { NodeDataViewer } from "./NodeDataViewer/NodeDataViewer";
import { useToast } from "@/components/molecules/Toast/use-toast";
-import { CheckIcon, CopyIcon } from "@phosphor-icons/react";
import { useNodeStore } from "@/app/(platform)/build/stores/nodeStore";
import { useShallow } from "zustand/react/shallow";
import {
@@ -15,6 +14,8 @@ import {
getExecutionEntries,
normalizeToArray,
} from "../helpers";
+import { Copy01Icon, Tick02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export const ViewMoreData = ({
nodeId,
@@ -93,7 +94,7 @@ export const ViewMoreData = ({
onClick={() => copyExecutionId(result.node_exec_id)}
className="h-6 w-6 min-w-0 p-0"
>
- <CopyIcon size={14} />
+ <Icon icon={Copy01Icon} size={14} />
</Button>
</div>
@@ -160,12 +161,13 @@ export const ViewMoreData = ({
>
{copiedKey ===
`${result.node_exec_id}-${key}` ? (
- <CheckIcon
+ <Icon
+ icon={Tick02Icon}
size={16}
className="text-green-600"
/>
) : (
- <CopyIcon size={16} />
+ <Icon icon={Copy01Icon} size={16} />
)}
</Button>
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeRightClickMenu.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeRightClickMenu.tsx
index a56e42544f..4d6cd86f32 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeRightClickMenu.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/NodeRightClickMenu.tsx
@@ -5,11 +5,16 @@ import {
SecondaryMenuItem,
SecondaryMenuSeparator,
} from "@/components/molecules/SecondaryMenu/SecondaryMenu";
-import { ArrowSquareOutIcon, CopyIcon, TrashIcon } from "@phosphor-icons/react";
import * as ContextMenu from "@radix-ui/react-context-menu";
import { useReactFlow } from "@xyflow/react";
import { useEffect, useRef } from "react";
import { CustomNode } from "../CustomNode";
+import {
+ Copy01Icon,
+ Delete02Icon,
+ LinkSquare01Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type Props = {
nodeId: string;
@@ -71,7 +76,11 @@ export function NodeRightClickMenu({ nodeId, subGraphID, children }: Props) {
</ContextMenu.Trigger>
<SecondaryMenuContent>
<SecondaryMenuItem onSelect={copyNode}>
- <CopyIcon size={20} className="mr-2 dark:text-gray-100" />
+ <Icon
+ icon={Copy01Icon}
+ size={20}
+ className="mr-2 dark:text-gray-100"
+ />
<span className="dark:text-gray-100">Copy</span>
</SecondaryMenuItem>
<SecondaryMenuSeparator />
@@ -81,7 +90,8 @@ export function NodeRightClickMenu({ nodeId, subGraphID, children }: Props) {
<SecondaryMenuItem
onClick={() => window.open(`/build?flowID=${subGraphID}`)}
>
- <ArrowSquareOutIcon
+ <Icon
+ icon={LinkSquare01Icon}
size={20}
className="mr-2 dark:text-gray-100"
/>
@@ -92,7 +102,8 @@ export function NodeRightClickMenu({ nodeId, subGraphID, children }: Props) {
)}
<SecondaryMenuItem variant="destructive" onSelect={deleteNode}>
- <TrashIcon
+ <Icon
+ icon={Delete02Icon}
size={20}
className="mr-2 text-red-500 dark:text-red-400"
/>
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/SubAgentUpdate/SubAgentUpdateFeature.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/SubAgentUpdate/SubAgentUpdateFeature.tsx
index 388349b2e0..48f7d05102 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/SubAgentUpdate/SubAgentUpdateFeature.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/SubAgentUpdate/SubAgentUpdateFeature.tsx
@@ -1,5 +1,4 @@
import React from "react";
-import { ArrowUpIcon, WarningIcon } from "@phosphor-icons/react";
import { Button } from "@/components/atoms/Button/Button";
import {
Tooltip,
@@ -11,6 +10,8 @@ import { CustomNodeData } from "../../CustomNode";
import { useSubAgentUpdateState } from "./useSubAgentUpdateState";
import { IncompatibleUpdateDialog } from "./components/IncompatibleUpdateDialog";
import { ResolutionModeBar } from "./components/ResolutionModeBar";
+import { Alert01Icon, ArrowUp02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
/**
* Inline component for the update bar that can be placed after the header.
@@ -84,14 +85,17 @@ function SubAgentUpdateAvailableBar({
return (
<div className="flex items-center justify-between gap-2 rounded-t-xl bg-blue-50 px-3 py-2 dark:bg-blue-900/30">
<div className="flex items-center gap-2">
- <ArrowUpIcon className="h-4 w-4 text-blue-600 dark:text-blue-400" />
+ <Icon
+ icon={ArrowUp02Icon}
+ className="h-4 w-4 text-blue-600 dark:text-blue-400"
+ />
<span className="text-sm text-blue-700 dark:text-blue-300">
Update available (v{currentVersion} → v{latestVersion})
</span>
{!isCompatible && (
<Tooltip>
<TooltipTrigger asChild>
- <WarningIcon className="h-4 w-4 text-amber-500" />
+ <Icon icon={Alert01Icon} className="h-4 w-4 text-amber-500" />
</TooltipTrigger>
<TooltipContent className="max-w-xs">
<p className="font-medium">Incompatible changes detected</p>
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/SubAgentUpdate/components/IncompatibleUpdateDialog.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/SubAgentUpdate/components/IncompatibleUpdateDialog.tsx
index 67f20789ed..87e3a6ad9d 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/SubAgentUpdate/components/IncompatibleUpdateDialog.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/SubAgentUpdate/components/IncompatibleUpdateDialog.tsx
@@ -1,14 +1,15 @@
import React from "react";
-import {
- WarningIcon,
- XCircleIcon,
- PlusCircleIcon,
-} from "@phosphor-icons/react";
import { Button } from "@/components/atoms/Button/Button";
import { Alert, AlertDescription } from "@/components/molecules/Alert/Alert";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
import { beautifyString } from "@/lib/utils";
import { IncompatibilityInfo } from "@/app/(platform)/build/hooks/useSubAgentUpdate/types";
+import {
+ Alert01Icon,
+ CancelCircleIcon,
+ PlusSignCircleIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type IncompatibleUpdateDialogProps = {
isOpen: boolean;
@@ -43,7 +44,7 @@ export function IncompatibleUpdateDialog({
<Dialog
title={
<div className="flex items-center gap-2">
- <WarningIcon className="h-5 w-5 text-amber-500" weight="fill" />
+ <Icon icon={Alert01Icon} className="h-5 w-5 text-amber-500" />
Incompatible Update
</div>
}
@@ -68,14 +69,17 @@ export function IncompatibleUpdateDialog({
<TwoColumnSection
title="Input Changes"
leftIcon={
- <XCircleIcon className="h-4 w-4 text-red-500" weight="fill" />
+ <Icon
+ icon={CancelCircleIcon}
+ className="h-4 w-4 text-red-500"
+ />
}
leftTitle="Removed"
leftItems={incompatibilities.missingInputs}
rightIcon={
- <PlusCircleIcon
+ <Icon
+ icon={PlusSignCircleIcon}
className="h-4 w-4 text-green-500"
- weight="fill"
/>
}
rightTitle="Added"
@@ -88,14 +92,17 @@ export function IncompatibleUpdateDialog({
<TwoColumnSection
title="Output Changes"
leftIcon={
- <XCircleIcon className="h-4 w-4 text-red-500" weight="fill" />
+ <Icon
+ icon={CancelCircleIcon}
+ className="h-4 w-4 text-red-500"
+ />
}
leftTitle="Removed"
leftItems={incompatibilities.missingOutputs}
rightIcon={
- <PlusCircleIcon
+ <Icon
+ icon={PlusSignCircleIcon}
className="h-4 w-4 text-green-500"
- weight="fill"
/>
}
rightTitle="Added"
@@ -106,7 +113,10 @@ export function IncompatibleUpdateDialog({
{hasTypeMismatches && (
<SingleColumnSection
icon={
- <XCircleIcon className="h-4 w-4 text-red-500" weight="fill" />
+ <Icon
+ icon={CancelCircleIcon}
+ className="h-4 w-4 text-red-500"
+ />
}
title="Type Changed"
description="These connected inputs have a different type:"
@@ -119,9 +129,9 @@ export function IncompatibleUpdateDialog({
{hasNewRequired && (
<SingleColumnSection
icon={
- <PlusCircleIcon
+ <Icon
+ icon={PlusSignCircleIcon}
className="h-4 w-4 text-amber-500"
- weight="fill"
/>
}
title="New Required Inputs"
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/SubAgentUpdate/components/ResolutionModeBar.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/SubAgentUpdate/components/ResolutionModeBar.tsx
index f60bd60c52..8a5b7ae2be 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/SubAgentUpdate/components/ResolutionModeBar.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/CustomNode/components/SubAgentUpdate/components/ResolutionModeBar.tsx
@@ -1,11 +1,12 @@
import React from "react";
-import { InfoIcon, WarningIcon } from "@phosphor-icons/react";
import {
Tooltip,
TooltipContent,
TooltipTrigger,
} from "@/components/atoms/Tooltip/BaseTooltip";
import { IncompatibilityInfo } from "@/app/(platform)/build/hooks/useSubAgentUpdate/types";
+import { Alert01Icon, InformationCircleIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type ResolutionModeBarProps = {
incompatibilities: IncompatibilityInfo | null;
@@ -82,13 +83,19 @@ export function ResolutionModeBar({
return (
<div className="flex items-center justify-between gap-2 rounded-t-xl bg-amber-50 px-3 py-2 dark:bg-amber-900/30">
<div className="flex items-center gap-2">
- <WarningIcon className="h-4 w-4 text-amber-600 dark:text-amber-400" />
+ <Icon
+ icon={Alert01Icon}
+ className="h-4 w-4 text-amber-600 dark:text-amber-400"
+ />
<span className="text-sm text-amber-700 dark:text-amber-300">
Remove incompatible connections
</span>
<Tooltip>
<TooltipTrigger asChild>
- <InfoIcon className="h-4 w-4 cursor-help text-amber-500" />
+ <Icon
+ icon={InformationCircleIcon}
+ className="h-4 w-4 cursor-help text-amber-500"
+ />
</TooltipTrigger>
<TooltipContent className="max-w-sm">
<p className="mb-2 font-semibold">Incompatible changes:</p>
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/OutputHandler.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/OutputHandler.tsx
index 89045026d6..b6d8b8b850 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/OutputHandler.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/FlowEditor/nodes/OutputHandler.tsx
@@ -1,6 +1,5 @@
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
-import { CaretDownIcon, CaretRightIcon, InfoIcon } from "@phosphor-icons/react";
import { RJSFSchema } from "@rjsf/utils";
import { useState } from "react";
@@ -16,6 +15,12 @@ import { getTypeDisplayInfo } from "./helpers";
import { BlockUIType } from "../../types";
import { cn } from "@/lib/utils";
import { useBrokenOutputs } from "./useBrokenOutputs";
+import {
+ ArrowDown01Icon,
+ ArrowRight01Icon,
+ InformationCircleIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export const OutputHandler = ({
outputSchema,
@@ -104,9 +109,9 @@ export const OutputHandler = ({
aria-label={isExpanded ? "Collapse" : "Expand"}
>
{isExpanded ? (
- <CaretDownIcon size={12} weight="bold" />
+ <Icon icon={ArrowDown01Icon} size={12} />
) : (
- <CaretRightIcon size={12} weight="bold" />
+ <Icon icon={ArrowRight01Icon} size={12} />
)}
</button>
)}
@@ -119,7 +124,7 @@ export const OutputHandler = ({
aria-label="info"
tabIndex={0}
>
- <InfoIcon />
+ <Icon icon={InformationCircleIcon} />
</span>
</TooltipTrigger>
<TooltipContent>{fieldSchema?.description}</TooltipContent>
@@ -183,9 +188,9 @@ export const OutputHandler = ({
className="flex items-center gap-2 !font-semibold text-slate-700"
>
Output{" "}
- <CaretDownIcon
+ <Icon
+ icon={ArrowDown01Icon}
size={16}
- weight="bold"
className={`transition-transform ${isOutputVisible ? "rotate-180" : ""}`}
/>
</Text>
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/MCPToolDialog.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/MCPToolDialog.tsx
index e01fb3a4b8..3b17510495 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/MCPToolDialog.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/MCPToolDialog.tsx
@@ -28,9 +28,10 @@ import {
postV2InitiateOauthLoginForAnMcpServer,
postV2ExchangeOauthCodeForMcpTokens,
} from "@/app/api/__generated__/endpoints/mcp/mcp";
-import { CaretDown } from "@phosphor-icons/react";
import { openOAuthPopup } from "@/lib/oauth-popup";
import { CredentialsProvidersContext } from "@/providers/agent-credentials/credentials-provider";
+import { ArrowDown01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export type MCPToolDialogResult = {
serverUrl: string;
@@ -548,7 +549,8 @@ function MCPToolCard({
className="flex w-full items-center justify-center gap-1 border-t border-gray-100 py-1.5 text-[10px] text-gray-400 hover:text-gray-600 dark:border-slate-700 dark:text-gray-500 dark:hover:text-gray-300"
>
{expanded ? "Hide details" : "Show details"}
- <CaretDown
+ <Icon
+ icon={ArrowDown01Icon}
className={`h-3 w-3 transition-transform ${expanded ? "rotate-180" : ""}`}
/>
</button>
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/MobileWarning/MobileWarning.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/MobileWarning/MobileWarning.tsx
index ca5a5f06d9..f61abc78e4 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/MobileWarning/MobileWarning.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/MobileWarning/MobileWarning.tsx
@@ -3,8 +3,9 @@
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
-import { DeviceMobileIcon } from "@phosphor-icons/react";
import { useMobileWarning } from "./useMobileWarning";
+import { SmartPhone01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function MobileWarning() {
const { isOpen, dismiss, suppress } = useMobileWarning();
@@ -21,7 +22,7 @@ export function MobileWarning() {
>
<Dialog.Content>
<div className="flex flex-col items-center gap-4 px-1 py-2 text-center">
- <DeviceMobileIcon className="h-10 w-10 text-amber-600" />
+ <Icon icon={SmartPhone01Icon} className="h-10 w-10 text-amber-600" />
<Text variant="body" className="text-zinc-700">
The agent builder relies on canvas interactions that don&apos;t work
well on this screen size. For the best experience, switch to a
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/Block.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/Block.tsx
index 869af96aa9..727a17667a 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/Block.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/Block.tsx
@@ -3,7 +3,6 @@ import { Skeleton } from "@/components/__legacy__/ui/skeleton";
import { beautifyString, cn } from "@/lib/utils";
import React, { ButtonHTMLAttributes, useCallback, useState } from "react";
import { highlightText } from "./helpers";
-import { PlusIcon } from "@phosphor-icons/react";
import { BlockInfo } from "@/app/api/__generated__/models/blockInfo";
import { useControlPanelStore } from "../../../stores/controlPanelStore";
import { blockDragPreviewStyle } from "./style";
@@ -14,6 +13,8 @@ import {
MCPToolDialog,
type MCPToolDialogResult,
} from "@/app/(platform)/build/components/MCPToolDialog";
+import { PlusSignIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props extends ButtonHTMLAttributes<HTMLButtonElement> {
title?: string;
@@ -186,7 +187,7 @@ export const Block: BlockComponent = ({
"flex h-7 w-7 items-center justify-center rounded-[0.5rem] bg-zinc-700 group-disabled:bg-zinc-400",
)}
>
- <PlusIcon className="h-5 w-5 text-zinc-50" />
+ <Icon icon={PlusSignIcon} className="h-5 w-5 text-zinc-50" />
</div>
</Button>
{isMCPBlock && (
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/BlockMenu/BlockMenu.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/BlockMenu/BlockMenu.tsx
index 74b4485c80..1d4e95c1cc 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/BlockMenu/BlockMenu.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/BlockMenu/BlockMenu.tsx
@@ -9,9 +9,10 @@ import {
TooltipContent,
TooltipTrigger,
} from "@/components/atoms/Tooltip/BaseTooltip";
-import { LegoIcon } from "@phosphor-icons/react";
import { ControlPanelButton } from "../../ControlPanelButton";
import { BlockMenuContent } from "../BlockMenuContent/BlockMenuContent";
+import { ToyBrickIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export const BlockMenu = () => {
const { blockMenuOpen, setBlockMenuOpen, forceOpenBlockMenu } =
@@ -34,7 +35,7 @@ export const BlockMenu = () => {
selected={blockMenuOpen}
className="rounded-none"
>
- <LegoIcon className="size-5" />
+ <Icon icon={ToyBrickIcon} className="size-5" />
</ControlPanelButton>
</PopoverTrigger>
</TooltipTrigger>
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/BlockMenuSearchBar/BlockMenuSearchBar.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/BlockMenuSearchBar/BlockMenuSearchBar.tsx
index 57a7b711b0..703c3af85d 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/BlockMenuSearchBar/BlockMenuSearchBar.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/BlockMenuSearchBar/BlockMenuSearchBar.tsx
@@ -3,7 +3,8 @@ import React from "react";
import { Input } from "@/components/__legacy__/ui/input";
import { useBlockMenuSearchBar } from "./useBlockMenuSearchBar";
import { Button } from "@/components/__legacy__/ui/button";
-import { MagnifyingGlassIcon, XIcon } from "@phosphor-icons/react";
+import { Cancel01Icon, Search01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface BlockMenuSearchBarProps {
className?: string;
@@ -29,7 +30,8 @@ export const BlockMenuSearchBar: React.FC<BlockMenuSearchBarProps> = ({
)}
>
<div className="flex h-6 w-6 items-center justify-center">
- <MagnifyingGlassIcon
+ <Icon
+ icon={Search01Icon}
className="h-6 w-6 text-zinc-700"
strokeWidth={2}
/>
@@ -55,7 +57,11 @@ export const BlockMenuSearchBar: React.FC<BlockMenuSearchBarProps> = ({
onClick={handleClear}
className="p-0 hover:bg-transparent"
>
- <XIcon className="h-6 w-6 text-zinc-700" strokeWidth={2} />
+ <Icon
+ icon={Cancel01Icon}
+ className="h-6 w-6 text-zinc-700"
+ strokeWidth={2}
+ />
</Button>
)}
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/FilterChip.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/FilterChip.tsx
index 23197ab612..bf3c6b87c8 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/FilterChip.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/FilterChip.tsx
@@ -1,9 +1,10 @@
import { Button } from "@/components/__legacy__/ui/button";
import { cn } from "@/lib/utils";
-import { XIcon } from "@phosphor-icons/react";
import { AnimatePresence, motion } from "framer-motion";
import React, { ButtonHTMLAttributes, useState } from "react";
+import { Cancel01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props extends ButtonHTMLAttributes<HTMLButtonElement> {
selected?: boolean;
@@ -48,7 +49,7 @@ export const FilterChip: React.FC<Props> = ({
transition={{ duration: 0.3, type: "spring", bounce: 0.2 }}
className="flex h-4 w-4 items-center justify-center rounded-full bg-zinc-50"
>
- <XIcon size={12} weight="bold" className="text-violet-700" />
+ <Icon icon={Cancel01Icon} size={12} className="text-violet-700" />
</motion.span>
)}
{number !== undefined && isHovered && (
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/FilterSheet/FilterSheet.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/FilterSheet/FilterSheet.tsx
index dc7c428245..d1f880053f 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/FilterSheet/FilterSheet.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/FilterSheet/FilterSheet.tsx
@@ -2,13 +2,14 @@ import { FilterChip } from "../FilterChip";
import { cn } from "@/lib/utils";
import { CategoryKey } from "../BlockMenuFilters/types";
import { AnimatePresence, motion } from "framer-motion";
-import { XIcon } from "@phosphor-icons/react";
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
import { Separator } from "@/components/__legacy__/ui/separator";
import { Checkbox } from "@/components/__legacy__/ui/checkbox";
import { useFilterSheet } from "./useFilterSheet";
import { INITIAL_CREATORS_TO_SHOW } from "./constant";
+import { Cancel01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function FilterSheet({
categories,
@@ -60,7 +61,7 @@ export function FilterSheet({
size="icon"
onClick={handleCloseButton}
>
- <XIcon size={20} />
+ <Icon icon={Cancel01Icon} size={20} />
</Button>
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/HorizontalScroll.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/HorizontalScroll.tsx
index bee0b85721..48941b3f90 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/HorizontalScroll.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/HorizontalScroll.tsx
@@ -1,6 +1,7 @@
import React, { useEffect, useRef, useState } from "react";
-import { ArrowLeftIcon, ArrowRightIcon } from "@phosphor-icons/react";
import { cn } from "@/lib/utils";
+import { ArrowLeft02Icon, ArrowRight02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface HorizontalScrollAreaProps {
children: React.ReactNode;
@@ -82,10 +83,10 @@ export const HorizontalScroll: React.FC<HorizontalScrollAreaProps> = ({
className="pointer-events-none absolute left-2 top-5 -translate-y-1/2 opacity-0 transition-opacity duration-200 group-hover:pointer-events-auto group-hover:opacity-100"
onClick={() => scrollByDelta(-scrollAmount)}
>
- <ArrowLeftIcon
+ <Icon
+ icon={ArrowLeft02Icon}
size={28}
className="rounded-full bg-zinc-700 p-1 text-white drop-shadow"
- weight="light"
/>
</button>
)}
@@ -96,10 +97,10 @@ export const HorizontalScroll: React.FC<HorizontalScrollAreaProps> = ({
className="pointer-events-none absolute right-2 top-5 -translate-y-1/2 opacity-0 transition-opacity duration-200 group-hover:pointer-events-auto group-hover:opacity-100"
onClick={() => scrollByDelta(scrollAmount)}
>
- <ArrowRightIcon
+ <Icon
+ icon={ArrowRight02Icon}
size={28}
className="rounded-full bg-zinc-700 p-1 text-white drop-shadow"
- weight="light"
/>
</button>
)}
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/MarketplaceAgentBlock.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/MarketplaceAgentBlock.tsx
index 9d3671d4d2..4f4016737c 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/MarketplaceAgentBlock.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/MarketplaceAgentBlock.tsx
@@ -6,10 +6,11 @@ import React, { ButtonHTMLAttributes } from "react";
import Link from "next/link";
import { highlightText } from "./helpers";
import {
- ArrowSquareOutIcon,
- CircleNotchIcon,
- PlusIcon,
-} from "@phosphor-icons/react";
+ LinkSquare01Icon,
+ Loading03Icon,
+ PlusSignIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props extends ButtonHTMLAttributes<HTMLButtonElement> {
title?: string;
@@ -93,7 +94,8 @@ export const MarketplaceAgentBlock: MarketplaceAgentBlockComponent = ({
<span className="font-sans text-xs leading-5 text-blue-700 underline">
Agent page
</span>
- <ArrowSquareOutIcon
+ <Icon
+ icon={LinkSquare01Icon}
className="h-4 w-4 text-blue-700"
strokeWidth={1}
/>
@@ -106,9 +108,13 @@ export const MarketplaceAgentBlock: MarketplaceAgentBlockComponent = ({
)}
>
{!loading ? (
- <PlusIcon className="h-5 w-5 text-zinc-50" strokeWidth={2} />
+ <Icon
+ icon={PlusSignIcon}
+ className="h-5 w-5 text-zinc-50"
+ strokeWidth={2}
+ />
) : (
- <CircleNotchIcon className="h-5 w-5 animate-spin" />
+ <Icon icon={Loading03Icon} className="h-5 w-5 animate-spin" />
)}
</div>
</Button>
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/NoSearchResult.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/NoSearchResult.tsx
index ec69e89c20..7fe0ba26b8 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/NoSearchResult.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/NoSearchResult.tsx
@@ -1,9 +1,10 @@
-import { SmileySadIcon } from "@phosphor-icons/react";
+import { Sad01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export const NoSearchResult = () => {
return (
<div className="flex h-full w-full flex-col items-center justify-center text-center">
- <SmileySadIcon size={64} className="mb-10 text-zinc-400" />
+ <Icon icon={Sad01Icon} size={64} className="mb-10 text-zinc-400" />
<div className="space-y-1">
<p className="font-sans text-sm font-medium leading-[1.375rem] text-zinc-800">
No match found
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/UGCAgentBlock.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/UGCAgentBlock.tsx
index 320841980d..b8723a63da 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/UGCAgentBlock.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/UGCAgentBlock.tsx
@@ -5,8 +5,8 @@ import Image from "next/image";
import React, { ButtonHTMLAttributes } from "react";
import { highlightText } from "./helpers";
import { formatTimeAgo } from "@/lib/utils/time";
-import { CircleNotchIcon } from "@phosphor-icons/react";
-import { PlusIcon } from "@phosphor-icons/react/dist/ssr";
+import { Loading03Icon, PlusSignIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props extends ButtonHTMLAttributes<HTMLButtonElement> {
isLoading?: boolean;
@@ -97,9 +97,16 @@ export const UGCAgentBlock: UGCAgentBlockComponent = ({
)}
>
{isLoading ? (
- <CircleNotchIcon className="h-5 w-5 animate-spin text-zinc-50" />
+ <Icon
+ icon={Loading03Icon}
+ className="h-5 w-5 animate-spin text-zinc-50"
+ />
) : (
- <PlusIcon className="h-5 w-5 text-zinc-50" strokeWidth={2} />
+ <Icon
+ icon={PlusSignIcon}
+ className="h-5 w-5 text-zinc-50"
+ strokeWidth={2}
+ />
)}
</div>
</Button>
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewSaveControl/NewSaveControl.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewSaveControl/NewSaveControl.tsx
index 6769490ab3..1998be6498 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewSaveControl/NewSaveControl.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewSaveControl/NewSaveControl.tsx
@@ -12,10 +12,11 @@ import {
TooltipContent,
TooltipTrigger,
} from "@/components/atoms/Tooltip/BaseTooltip";
-import { FloppyDiskIcon } from "@phosphor-icons/react";
import { useControlPanelStore } from "../../../stores/controlPanelStore";
import { ControlPanelButton } from "../ControlPanelButton";
import { useNewSaveControl } from "./useNewSaveControl";
+import { FloppyDiskIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export const NewSaveControl = () => {
const { form, isSaving, graphVersion, handleSave } = useNewSaveControl();
@@ -40,7 +41,7 @@ export const NewSaveControl = () => {
selected={saveControlOpen}
className="rounded-none"
>
- <FloppyDiskIcon className="size-5" />
+ <Icon icon={FloppyDiskIcon} className="size-5" />
</ControlPanelButton>
</PopoverTrigger>
</TooltipTrigger>
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewSearchGraph/GraphMenu/GraphMenu.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewSearchGraph/GraphMenu/GraphMenu.tsx
index 3455d3081e..fdbab8dc4e 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewSearchGraph/GraphMenu/GraphMenu.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewSearchGraph/GraphMenu/GraphMenu.tsx
@@ -13,12 +13,13 @@ import {
TooltipTrigger,
} from "@/components/atoms/Tooltip/BaseTooltip";
import { isMacPlatform } from "@/lib/platform";
-import { MagnifyingGlass } from "@phosphor-icons/react";
import { useReactFlow } from "@xyflow/react";
import { useCallback, useMemo } from "react";
import { ControlPanelButton } from "../../ControlPanelButton";
import { GraphSearchContent } from "../GraphMenuContent/GraphContent";
import { useGraphMenu } from "./useGraphMenu";
+import { Search01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function GraphSearchMenu() {
const nodes = useNodeStore((state) => state.nodes);
@@ -64,7 +65,7 @@ export function GraphSearchMenu() {
selected={graphSearchOpen}
className="rounded-none"
>
- <MagnifyingGlass className="size-5" />
+ <Icon icon={Search01Icon} className="size-5" />
</ControlPanelButton>
</PopoverTrigger>
</TooltipTrigger>
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewSearchGraph/GraphMenuContent/GraphContent.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewSearchGraph/GraphMenuContent/GraphContent.tsx
index 849c0e1006..d628533a4e 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewSearchGraph/GraphMenuContent/GraphContent.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewSearchGraph/GraphMenuContent/GraphContent.tsx
@@ -3,10 +3,11 @@ import { Separator } from "@/components/ui/separator";
import { ScrollArea } from "@/components/ui/scroll-area";
import { beautifyString, cn } from "@/lib/utils";
import { SearchableNode } from "../GraphMenuSearchBar/useGraphMenuSearchBar";
-import { ArrowBendUpRight } from "@phosphor-icons/react";
import { GraphMenuSearchBar } from "../GraphMenuSearchBar/GraphMenuSearchBar";
import { getNodeInputOutputSummary } from "./helpers";
import { useGraphContent } from "./useGraphContent";
+import { CornerUpRightIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
searchQuery: string;
@@ -108,7 +109,10 @@ export function GraphSearchContent({
)}
</div>
<div className="flex h-7 w-7 shrink-0 items-center justify-center rounded-[0.5rem] bg-zinc-700">
- <ArrowBendUpRight className="h-4 w-4 text-zinc-50" />
+ <Icon
+ icon={CornerUpRightIcon}
+ className="h-4 w-4 text-zinc-50"
+ />
</div>
</div>
);
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewSearchGraph/GraphMenuSearchBar/GraphMenuSearchBar.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewSearchGraph/GraphMenuSearchBar/GraphMenuSearchBar.tsx
index 6f87a99e02..b9569a09b4 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewSearchGraph/GraphMenuSearchBar/GraphMenuSearchBar.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewSearchGraph/GraphMenuSearchBar/GraphMenuSearchBar.tsx
@@ -2,8 +2,9 @@ import { cn } from "@/lib/utils";
import React from "react";
import { Input } from "@/components/__legacy__/ui/input";
import { Button } from "@/components/__legacy__/ui/button";
-import { MagnifyingGlassIcon, XIcon } from "@phosphor-icons/react";
import { useGraphMenuSearchBarComponent } from "./useGraphMenuSearchBarComponent";
+import { Cancel01Icon, Search01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface GraphMenuSearchBarProps {
className?: string;
@@ -30,7 +31,8 @@ export const GraphMenuSearchBar: React.FC<GraphMenuSearchBarProps> = ({
)}
>
<div className="flex h-6 w-6 items-center justify-center">
- <MagnifyingGlassIcon
+ <Icon
+ icon={Search01Icon}
className="h-6 w-6 text-zinc-700"
strokeWidth={2}
/>
@@ -55,7 +57,11 @@ export const GraphMenuSearchBar: React.FC<GraphMenuSearchBarProps> = ({
onClick={handleClear}
className="p-0 hover:bg-transparent"
>
- <XIcon className="h-6 w-6 text-zinc-700" strokeWidth={2} />
+ <Icon
+ icon={Cancel01Icon}
+ className="h-6 w-6 text-zinc-700"
+ strokeWidth={2}
+ />
</Button>
)}
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/UndoRedoButtons.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/UndoRedoButtons.tsx
index 379f2743f8..e6452db15d 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/UndoRedoButtons.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/UndoRedoButtons.tsx
@@ -4,11 +4,15 @@ import {
TooltipContent,
TooltipTrigger,
} from "@/components/atoms/Tooltip/BaseTooltip";
-import { ArrowUUpLeftIcon, ArrowUUpRightIcon } from "@phosphor-icons/react";
import { useHistoryStore } from "../../stores/historyStore";
import { ControlPanelButton } from "./ControlPanelButton";
import { useEffect } from "react";
+import {
+ ArrowTurnBackwardIcon,
+ ArrowTurnForwardIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export const UndoRedoButtons = () => {
const { undo, redo, canUndo, canRedo } = useHistoryStore();
@@ -48,7 +52,7 @@ export const UndoRedoButtons = () => {
disabled={!canUndo()}
onClick={undo}
>
- <ArrowUUpLeftIcon className="size-5" />
+ <Icon icon={ArrowTurnBackwardIcon} className="size-5" />
</ControlPanelButton>
</TooltipTrigger>
<TooltipContent side="right">Undo</TooltipContent>
@@ -62,7 +66,7 @@ export const UndoRedoButtons = () => {
disabled={!canRedo()}
onClick={redo}
>
- <ArrowUUpRightIcon className="size-5" />
+ <Icon icon={ArrowTurnForwardIcon} className="size-5" />
</ControlPanelButton>
</TooltipTrigger>
<TooltipContent side="right">Redo</TooltipContent>
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/ReadOnlyBanner/ReadOnlyBanner.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/ReadOnlyBanner/ReadOnlyBanner.tsx
index f6ada4952c..83af10c5c2 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/ReadOnlyBanner/ReadOnlyBanner.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/ReadOnlyBanner/ReadOnlyBanner.tsx
@@ -1,8 +1,9 @@
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
-import { CopyIcon, XIcon } from "@phosphor-icons/react";
import { useState } from "react";
import { useDuplicateGraph } from "../../hooks/useDuplicateGraph";
+import { Cancel01Icon, Copy01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function ReadOnlyBanner() {
const { duplicate, isDuplicating, canDuplicate, isCheckingLibrary } =
@@ -36,7 +37,7 @@ export function ReadOnlyBanner() {
onClick={duplicate}
loading={isDuplicating}
disabled={!canDuplicate}
- leftIcon={<CopyIcon className="size-4" />}
+ leftIcon={<Icon icon={Copy01Icon} className="size-4" />}
>
Duplicate
</Button>
@@ -48,7 +49,7 @@ export function ReadOnlyBanner() {
aria-label="Dismiss"
title="Dismiss"
>
- <XIcon className="h-4 w-4" />
+ <Icon icon={Cancel01Icon} className="h-4 w-4" />
</Button>
</div>
);
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/agent-run-draft-view.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/agent-run-draft-view.tsx
index 372d479299..c4bf2a746e 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/agent-run-draft-view.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/agent-run-draft-view.tsx
@@ -49,7 +49,6 @@ import {
import { humanizeCronExpression } from "@/lib/cron-expression-utils";
import { cn, isEmpty } from "@/lib/utils";
import { CredentialsProvidersContext } from "@/providers/agent-credentials/credentials-provider";
-import { ClockIcon, CopyIcon, InfoIcon } from "@phosphor-icons/react";
import { CalendarClockIcon, Trash2Icon } from "lucide-react";
import { analytics } from "@/services/analytics";
@@ -57,6 +56,12 @@ import {
AgentStatus,
AgentStatusChip,
} from "@/app/(platform)/build/components/legacy-builder/agent-status-chip";
+import {
+ Clock01Icon,
+ Copy01Icon,
+ InformationCircleIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function AgentRunDraftView({
graph,
@@ -664,7 +669,7 @@ export function AgentRunDraftView({
}
title="Copy webhook URL"
>
- <CopyIcon className="size-4" />
+ <Icon icon={Copy01Icon} className="size-4" />
</Button>
</div>
</div>
@@ -689,7 +694,7 @@ export function AgentRunDraftView({
{/* Schedule recommendation tip */}
{recommendedScheduleCron && !graph.has_external_trigger && (
<div className="flex items-center gap-2 rounded-md border border-violet-200 bg-violet-50 p-3">
- <ClockIcon className="h-4 w-4 text-violet-600" />
+ <Icon icon={Clock01Icon} className="h-4 w-4 text-violet-600" />
<p className="text-sm text-violet-800">
<strong>Tip:</strong> For best results, run this agent{" "}
{humanizeCronExpression(
@@ -702,7 +707,10 @@ export function AgentRunDraftView({
{/* Setup Instructions */}
{graph.instructions && (
<div className="flex items-start gap-2 rounded-md border border-violet-200 bg-violet-50 p-3">
- <InfoIcon className="mt-0.5 h-4 w-4 flex-shrink-0 text-violet-600" />
+ <Icon
+ icon={InformationCircleIcon}
+ className="mt-0.5 h-4 w-4 flex-shrink-0 text-violet-600"
+ />
<div className="text-sm text-violet-800">
<strong>Setup Instructions:</strong>{" "}
<span className="whitespace-pre-wrap">
diff --git a/autogpt_platform/frontend/src/app/(platform)/components/GlobalSearchModal/actions.tsx b/autogpt_platform/frontend/src/app/(platform)/components/GlobalSearchModal/actions.tsx
index e07bd8fc94..1a6f5af871 100644
--- a/autogpt_platform/frontend/src/app/(platform)/components/GlobalSearchModal/actions.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/components/GlobalSearchModal/actions.tsx
@@ -1,6 +1,7 @@
+import { createIconComponent } from "@/components/atoms/Icon/Icon";
import type { SearchCommandBucket } from "@/components/organisms/SearchCommandModal/helpers";
-import { CopyIcon } from "@phosphor-icons/react";
import type { ComponentType } from "react";
+import { Copy01Icon } from "@hugeicons/core-free-icons";
export const ACTIONS_BUCKET_KEY = "actions";
export const ACTIONS_BUCKET_LABEL = "Actions";
@@ -22,7 +23,7 @@ const ACTION_TARGETS: ActionTarget[] = [
id: COPY_USER_ID_ACTION,
title: "Copy user ID",
keywords: ["copy", "user", "id", "uid", "account"],
- icon: CopyIcon,
+ icon: createIconComponent(Copy01Icon),
},
];
diff --git a/autogpt_platform/frontend/src/app/(platform)/components/GlobalSearchModal/helpers.tsx b/autogpt_platform/frontend/src/app/(platform)/components/GlobalSearchModal/helpers.tsx
index 61b7a890b9..d634733b27 100644
--- a/autogpt_platform/frontend/src/app/(platform)/components/GlobalSearchModal/helpers.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/components/GlobalSearchModal/helpers.tsx
@@ -5,19 +5,20 @@ import type {
SearchCommandBucket,
SearchCommandItem,
} from "@/components/organisms/SearchCommandModal/helpers";
+import { createIconComponent } from "@/components/atoms/Icon/Icon";
import { cn } from "@/lib/utils";
-import {
- ChatCircleIcon,
- FileIcon,
- StorefrontIcon,
- TreeStructureIcon,
-} from "@phosphor-icons/react";
import Image from "next/image";
import type { ComponentType } from "react";
import {
type PlatformLogo,
resolvePlatformLogo,
} from "@/app/(platform)/copilot/components/ChatOriginIcon/platformLogos";
+import {
+ BubbleChatIcon,
+ FileEmpty02Icon,
+ HierarchySquare01Icon,
+ Store01Icon,
+} from "@hugeicons/core-free-icons";
export type BucketKey = "agents" | "files" | "chats";
@@ -28,10 +29,10 @@ const ICON_BY_TYPE: Record<
// Workflow / node-graph cue maps better to "an agent" than a robot
// mascot — agents in this product are visual graphs of nodes, not
// anthropomorphic assistants.
- library_agent: TreeStructureIcon,
- store_agent: StorefrontIcon,
- workspace_file: FileIcon,
- chat_session: ChatCircleIcon,
+ library_agent: createIconComponent(HierarchySquare01Icon),
+ store_agent: createIconComponent(Store01Icon),
+ workspace_file: createIconComponent(FileEmpty02Icon),
+ chat_session: createIconComponent(BubbleChatIcon),
};
// Chat sessions opened from external platforms (Discord, Slack, …)
diff --git a/autogpt_platform/frontend/src/app/(platform)/components/GlobalSearchModal/navigation.tsx b/autogpt_platform/frontend/src/app/(platform)/components/GlobalSearchModal/navigation.tsx
index 55b6a80aa7..54d2cef306 100644
--- a/autogpt_platform/frontend/src/app/(platform)/components/GlobalSearchModal/navigation.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/components/GlobalSearchModal/navigation.tsx
@@ -1,14 +1,15 @@
+import { createIconComponent } from "@/components/atoms/Icon/Icon";
import type { SearchCommandBucket } from "@/components/organisms/SearchCommandModal/helpers";
+import type { ComponentType } from "react";
import {
- ChatCircleIcon,
+ BubbleChatIcon,
CreditCardIcon,
- GearIcon,
HammerIcon,
- StackIcon,
- StorefrontIcon,
+ Layers01Icon,
+ Settings01Icon,
+ Store01Icon,
UserIcon,
-} from "@phosphor-icons/react";
-import type { ComponentType } from "react";
+} from "@hugeicons/core-free-icons";
export const NAV_BUCKET_KEY = "navigation";
export const NAV_BUCKET_LABEL = "Navigate";
@@ -35,49 +36,49 @@ const NAV_TARGETS: NavTarget[] = [
title: "Builder",
href: "/build",
keywords: ["build", "editor", "graph", "workflow", "create"],
- icon: HammerIcon,
+ icon: createIconComponent(HammerIcon),
},
{
id: "nav:library",
title: "Library",
href: "/library",
keywords: ["agents", "my agents"],
- icon: StackIcon,
+ icon: createIconComponent(Layers01Icon),
},
{
id: "nav:marketplace",
title: "Marketplace",
href: "/marketplace",
keywords: ["store", "explore", "templates"],
- icon: StorefrontIcon,
+ icon: createIconComponent(Store01Icon),
},
{
id: "nav:chat",
title: "Chat",
href: "/copilot",
keywords: ["copilot", "home", "assistant"],
- icon: ChatCircleIcon,
+ icon: createIconComponent(BubbleChatIcon),
},
{
id: "nav:settings",
title: "Settings",
href: "/settings",
keywords: ["preferences", "account"],
- icon: GearIcon,
+ icon: createIconComponent(Settings01Icon),
},
{
id: "nav:billing",
title: "Billing",
href: "/settings/billing",
keywords: ["credits", "payment", "wallet", "subscription"],
- icon: CreditCardIcon,
+ icon: createIconComponent(CreditCardIcon),
},
{
id: "nav:profile",
title: "Profile",
href: "/settings/profile",
keywords: ["account", "me"],
- icon: UserIcon,
+ icon: createIconComponent(UserIcon),
},
];
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/CopilotChatHost.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/CopilotChatHost.tsx
index b1ddec72c2..ae19cdd418 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/CopilotChatHost.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/CopilotChatHost.tsx
@@ -1,9 +1,9 @@
"use client";
-
-import { Flask } from "@phosphor-icons/react";
import { ChatContainer } from "./components/ChatContainer/ChatContainer";
import { RateLimitGate } from "./components/RateLimitResetDialog/RateLimitGate";
import { useCopilotPage } from "./useCopilotPage";
+import { FlaskConicalIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
droppedFiles: File[];
@@ -57,7 +57,7 @@ export function CopilotChatHost({
(which only predicts future sessions). */}
{sessionId && sessionDryRun && (
<div className="flex items-center justify-center gap-1.5 bg-amber-50 px-3 py-1.5 text-xs font-medium text-amber-800">
- <Flask size={13} weight="bold" />
+ <Icon icon={FlaskConicalIcon} size={13} />
Test mode — this session runs agents as simulation
</div>
)}
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/AgentSavedCard/AgentSavedCard.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/AgentSavedCard/AgentSavedCard.tsx
index da8d85844f..550296cb41 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/AgentSavedCard/AgentSavedCard.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/AgentSavedCard/AgentSavedCard.tsx
@@ -2,10 +2,11 @@
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
-import { BookOpenIcon, PencilSimpleIcon } from "@phosphor-icons/react";
import Image from "next/image";
import sparklesImg from "./assets/sparkles.png";
import { useCopilotChatActions } from "../CopilotChatActionsProvider/useCopilotChatActions";
+import { BookOpen01Icon, PencilIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
agentName: string;
@@ -50,7 +51,7 @@ export function AgentSavedCard({
target="_blank"
rel="noopener noreferrer"
>
- <BookOpenIcon size={14} weight="regular" />
+ <Icon icon={BookOpen01Icon} size={14} />
Open in library
</Button>
<Button
@@ -61,7 +62,7 @@ export function AgentSavedCard({
target="_blank"
rel="noopener noreferrer"
>
- <PencilSimpleIcon size={14} weight="regular" />
+ <Icon icon={PencilIcon} size={14} />
Open in builder
</Button>
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ArtifactCard/ArtifactCard.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ArtifactCard/ArtifactCard.tsx
index 45286e590a..d7bacd3d52 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ArtifactCard/ArtifactCard.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ArtifactCard/ArtifactCard.tsx
@@ -2,12 +2,13 @@
import { toast } from "@/components/molecules/Toast/use-toast";
import { cn } from "@/lib/utils";
-import { CaretRight, DownloadSimple } from "@phosphor-icons/react";
import { useEffect } from "react";
import type { ArtifactRef } from "../../store";
import { useCopilotUIStore } from "../../store";
import { downloadArtifact } from "../ArtifactPanel/downloadArtifact";
import { classifyArtifact } from "../ArtifactPanel/helpers";
+import { ArrowRight01Icon, Download04Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
artifact: ArtifactRef;
@@ -56,7 +57,6 @@ export function ArtifactCard({ artifact, readOnly }: Props) {
artifact.title,
artifact.sizeBytes,
);
- const Icon = classification.icon;
function handleDownloadOnly() {
downloadArtifact(artifact).catch(() => {
@@ -75,7 +75,11 @@ export function ArtifactCard({ artifact, readOnly }: Props) {
onClick={handleDownloadOnly}
className="my-1 flex w-full items-center gap-3 rounded-lg border border-zinc-200 bg-white px-3 py-2.5 text-left transition-colors animate-in fade-in slide-in-from-bottom-2 fill-mode-both [animation-duration:500ms] hover:bg-zinc-50"
>
- <Icon size={20} className="shrink-0 text-zinc-400" />
+ <Icon
+ icon={classification.icon}
+ size={20}
+ className="shrink-0 text-zinc-400"
+ />
<div className="min-w-0 flex-1">
<p className="truncate text-sm font-medium text-zinc-900">
{artifact.title}
@@ -87,7 +91,11 @@ export function ArtifactCard({ artifact, readOnly }: Props) {
: ""}
</p>
</div>
- <DownloadSimple size={16} className="shrink-0 text-zinc-400" />
+ <Icon
+ icon={Download04Icon}
+ size={16}
+ className="shrink-0 text-zinc-400"
+ />
</button>
);
}
@@ -102,6 +110,7 @@ export function ArtifactCard({ artifact, readOnly }: Props) {
)}
>
<Icon
+ icon={classification.icon}
size={20}
className={cn(
"shrink-0",
@@ -128,7 +137,8 @@ export function ArtifactCard({ artifact, readOnly }: Props) {
: ""}
</p>
</div>
- <CaretRight
+ <Icon
+ icon={ArrowRight01Icon}
size={16}
className={cn(
"shrink-0",
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ArtifactPanel/components/ArtifactContent.stories.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ArtifactPanel/components/ArtifactContent.stories.tsx
index 6b9ef31631..c821e63461 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ArtifactPanel/components/ArtifactContent.stories.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ArtifactPanel/components/ArtifactContent.stories.tsx
@@ -4,13 +4,13 @@ import { ArtifactContent } from "./ArtifactContent";
import type { ArtifactRef } from "../../../store";
import type { ArtifactClassification } from "../helpers";
import {
- Code,
- File,
- FileHtml,
- FileText,
- Image,
- Table,
-} from "@phosphor-icons/react";
+ CodeIcon,
+ File02Icon,
+ FileEmpty02Icon,
+ HtmlFile01Icon,
+ Image01Icon,
+ TableIcon,
+} from "@hugeicons/core-free-icons";
const PROXY_BASE = "/api/proxy/api/workspace/files";
@@ -30,7 +30,7 @@ function makeClassification(
): ArtifactClassification {
return {
type: "text",
- icon: FileText,
+ icon: File02Icon,
label: "Text",
openable: true,
hasSourceToggle: false,
@@ -76,7 +76,7 @@ export const ImageArtifactPNG: Story = {
sourceUrl: `${PROXY_BASE}/img-png/download`,
}),
isSourceView: false,
- classification: makeClassification({ type: "image", icon: Image }),
+ classification: makeClassification({ type: "image", icon: Image01Icon }),
},
parameters: {
msw: {
@@ -108,7 +108,7 @@ export const ImageArtifactSVG: Story = {
sourceUrl: `${PROXY_BASE}/img-svg/download`,
}),
isSourceView: false,
- classification: makeClassification({ type: "image", icon: Image }),
+ classification: makeClassification({ type: "image", icon: Image01Icon }),
},
parameters: {
msw: {
@@ -136,7 +136,7 @@ export const HTMLArtifact: Story = {
isSourceView: false,
classification: makeClassification({
type: "html",
- icon: FileHtml,
+ icon: HtmlFile01Icon,
label: "HTML",
hasSourceToggle: true,
}),
@@ -177,7 +177,7 @@ export const CodeArtifact: Story = {
isSourceView: false,
classification: makeClassification({
type: "code",
- icon: Code,
+ icon: CodeIcon,
label: "Code",
}),
},
@@ -219,7 +219,7 @@ export const CSVArtifact: Story = {
isSourceView: false,
classification: makeClassification({
type: "csv",
- icon: Table,
+ icon: TableIcon,
label: "Spreadsheet",
hasSourceToggle: true,
}),
@@ -255,7 +255,7 @@ export const JSONArtifact: Story = {
isSourceView: false,
classification: makeClassification({
type: "json",
- icon: Code,
+ icon: CodeIcon,
label: "Data",
hasSourceToggle: true,
}),
@@ -295,7 +295,7 @@ export const MarkdownArtifact: Story = {
isSourceView: false,
classification: makeClassification({
type: "markdown",
- icon: FileText,
+ icon: File02Icon,
label: "Document",
hasSourceToggle: true,
}),
@@ -340,7 +340,7 @@ export const PDFArtifact: Story = {
isSourceView: false,
classification: makeClassification({
type: "pdf",
- icon: FileText,
+ icon: File02Icon,
label: "PDF",
}),
},
@@ -375,7 +375,7 @@ export const ErrorState: Story = {
isSourceView: false,
classification: makeClassification({
type: "html",
- icon: FileHtml,
+ icon: HtmlFile01Icon,
label: "HTML",
hasSourceToggle: true,
}),
@@ -409,7 +409,7 @@ export const LoadingSkeleton: Story = {
isSourceView: false,
classification: makeClassification({
type: "html",
- icon: FileHtml,
+ icon: HtmlFile01Icon,
label: "HTML",
}),
},
@@ -444,7 +444,7 @@ export const DownloadOnly: Story = {
isSourceView: false,
classification: makeClassification({
type: "download-only",
- icon: File,
+ icon: FileEmpty02Icon,
label: "File",
openable: false,
}),
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ArtifactPanel/components/ArtifactPanelHeader.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ArtifactPanel/components/ArtifactPanelHeader.tsx
index c234e3af08..c96fd211c7 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ArtifactPanel/components/ArtifactPanelHeader.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ArtifactPanel/components/ArtifactPanelHeader.tsx
@@ -6,16 +6,17 @@ import {
TooltipTrigger,
} from "@/components/atoms/Tooltip/BaseTooltip";
import { cn } from "@/lib/utils";
-import {
- ArrowLeftIcon,
- CopyIcon,
- DownloadSimpleIcon,
- FolderIcon,
- XIcon,
-} from "@phosphor-icons/react";
import type { ArtifactRef } from "../../../store";
import type { ArtifactClassification } from "../helpers";
import { SourceToggle } from "./SourceToggle";
+import {
+ ArrowLeft02Icon,
+ Cancel01Icon,
+ Copy01Icon,
+ Download04Icon,
+ Folder01Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
artifact: ArtifactRef;
@@ -72,18 +73,20 @@ export function ArtifactPanelHeader({
onOpenFiles,
onSourceToggle,
}: Props) {
- const Icon = classification.icon;
-
return (
<div className="sticky top-0 z-10 flex items-center gap-2 border-b border-b-[#80808017] bg-sidebar px-3 py-2">
{/* Left section */}
<div className="flex min-w-0 flex-1 items-center gap-2">
{canGoBack && (
<HeaderButton onClick={onBack} title="Back">
- <ArrowLeftIcon size={16} />
+ <Icon icon={ArrowLeft02Icon} size={16} />
</HeaderButton>
)}
- <Icon size={16} className="shrink-0 text-zinc-400" />
+ <Icon
+ icon={classification.icon}
+ size={16}
+ className="shrink-0 text-zinc-400"
+ />
<span className="truncate text-sm font-medium text-zinc-900">
{artifact.title}
</span>
@@ -106,17 +109,17 @@ export function ArtifactPanelHeader({
)}
{canCopy && (
<HeaderButton onClick={onCopy} title="Copy">
- <CopyIcon size={16} />
+ <Icon icon={Copy01Icon} size={16} />
</HeaderButton>
)}
<HeaderButton onClick={onDownload} title="Download">
- <DownloadSimpleIcon size={16} />
+ <Icon icon={Download04Icon} size={16} />
</HeaderButton>
<HeaderButton onClick={onOpenFiles} title="All files">
- <FolderIcon size={16} />
+ <Icon icon={Folder01Icon} size={16} />
</HeaderButton>
<HeaderButton onClick={onClose} title="Close">
- <XIcon size={16} />
+ <Icon icon={Cancel01Icon} size={16} />
</HeaderButton>
</div>
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ArtifactPanel/helpers.ts b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ArtifactPanel/helpers.ts
index 16a8e3fddb..eb636f2a26 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ArtifactPanel/helpers.ts
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ArtifactPanel/helpers.ts
@@ -1,13 +1,13 @@
import {
- Code,
- File,
- FileHtml,
- FileText,
- Image,
- Table,
- VideoCamera,
-} from "@phosphor-icons/react";
-import type { Icon } from "@phosphor-icons/react";
+ CodeIcon,
+ File02Icon,
+ FileEmpty02Icon,
+ HtmlFile01Icon,
+ Image01Icon,
+ TableIcon,
+ Video01Icon,
+} from "@hugeicons/core-free-icons";
+import type { IconSvgElement } from "@hugeicons/react";
export interface ArtifactClassification {
type:
@@ -22,7 +22,7 @@ export interface ArtifactClassification {
| "pdf"
| "text"
| "download-only";
- icon: Icon;
+ icon: IconSvgElement;
label: string;
openable: boolean;
hasSourceToggle: boolean;
@@ -35,77 +35,77 @@ const TEN_MB = 10 * 1024 * 1024;
const KIND: Record<string, ArtifactClassification> = {
image: {
type: "image",
- icon: Image,
+ icon: Image01Icon,
label: "Image",
openable: true,
hasSourceToggle: false,
},
video: {
type: "video",
- icon: VideoCamera,
+ icon: Video01Icon,
label: "Video",
openable: true,
hasSourceToggle: false,
},
pdf: {
type: "pdf",
- icon: FileText,
+ icon: File02Icon,
label: "PDF",
openable: true,
hasSourceToggle: false,
},
csv: {
type: "csv",
- icon: Table,
+ icon: TableIcon,
label: "Spreadsheet",
openable: true,
hasSourceToggle: true,
},
html: {
type: "html",
- icon: FileHtml,
+ icon: HtmlFile01Icon,
label: "HTML",
openable: true,
hasSourceToggle: true,
},
react: {
type: "react",
- icon: FileHtml,
+ icon: HtmlFile01Icon,
label: "React",
openable: true,
hasSourceToggle: true,
},
markdown: {
type: "markdown",
- icon: FileText,
+ icon: File02Icon,
label: "Document",
openable: true,
hasSourceToggle: true,
},
json: {
type: "json",
- icon: Code,
+ icon: CodeIcon,
label: "Data",
openable: true,
hasSourceToggle: true,
},
code: {
type: "code",
- icon: Code,
+ icon: CodeIcon,
label: "Code",
openable: true,
hasSourceToggle: false,
},
text: {
type: "text",
- icon: FileText,
+ icon: File02Icon,
label: "Text",
openable: true,
hasSourceToggle: false,
},
"download-only": {
type: "download-only",
- icon: File,
+ icon: FileEmpty02Icon,
label: "File",
openable: false,
hasSourceToggle: false,
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatContainer/components/SharedChatNotice.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatContainer/components/SharedChatNotice.tsx
index 27f223c3a6..6e95b5dd13 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatContainer/components/SharedChatNotice.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatContainer/components/SharedChatNotice.tsx
@@ -1,11 +1,12 @@
"use client";
import { useState } from "react";
-import { CheckIcon, CopyIcon } from "@phosphor-icons/react";
import { useGetV2GetChatShareState } from "@/app/api/__generated__/endpoints/chat/chat";
import { Button } from "@/components/atoms/Button/Button";
import { useToast } from "@/components/molecules/Toast/use-toast";
import { chatShareUrl } from "@/lib/share/routes";
+import { Copy01Icon, Tick02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
sessionId: string;
@@ -47,9 +48,9 @@ export function SharedChatNotice({ sessionId }: Props) {
onClick={copyShareUrl}
leftIcon={
copied ? (
- <CheckIcon size={14} weight="bold" />
+ <Icon icon={Tick02Icon} size={14} />
) : (
- <CopyIcon size={14} />
+ <Icon icon={Copy01Icon} size={14} />
)
}
>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/ChatInput.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/ChatInput.tsx
index 8b86194654..9d9afb1da6 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/ChatInput.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/ChatInput.tsx
@@ -16,7 +16,6 @@ import {
} from "@/components/ui/tooltip";
import { cn } from "@/lib/utils";
import { Flag, useGetFlag } from "@/services/feature-flags/use-get-flag";
-import { ArrowUpIcon } from "@phosphor-icons/react";
import {
ChangeEvent,
ClipboardEvent,
@@ -46,6 +45,8 @@ import { getFilesFromClipboard } from "./helpers";
import { useChatInput } from "./useChatInput";
import { useChatMentions } from "./useChatMentions";
import { useVoiceRecording } from "./useVoiceRecording";
+import { ArrowUp02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
onSend: (
@@ -399,7 +400,7 @@ export function ChatInput({
}}
className="size-[2.625rem] rounded-full border-zinc-800 bg-zinc-800 text-white hover:border-zinc-900 hover:bg-zinc-900 disabled:border-zinc-200 disabled:bg-zinc-200 disabled:text-white disabled:opacity-100"
>
- <ArrowUpIcon className="size-4" weight="bold" />
+ <Icon icon={ArrowUp02Icon} className="size-4" />
</PromptInputButton>
)}
{isStreaming ? (
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/ComposerPlusMenu.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/ComposerPlusMenu.tsx
index 3f43ace257..91c89bcbbb 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/ComposerPlusMenu.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/ComposerPlusMenu.tsx
@@ -8,15 +8,16 @@ import {
DropdownMenuTrigger,
} from "@/components/molecules/DropdownMenu/DropdownMenu";
import { cn } from "@/lib/utils";
+import { useComposerPlusMenu } from "./useComposerPlusMenu";
import {
- BookOpenIcon,
- CalendarDotsIcon,
+ Attachment01Icon,
+ BookOpen01Icon,
+ Calendar03Icon,
FolderOpenIcon,
- PaperclipIcon,
- PlugsConnectedIcon,
- PlusIcon,
-} from "@phosphor-icons/react";
-import { useComposerPlusMenu } from "./useComposerPlusMenu";
+ PlugSocketIcon,
+ PlusSignIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
onFilesSelected: (files: File[]) => void;
@@ -63,7 +64,7 @@ export function ComposerPlusMenu({
disabled && "opacity-40",
)}
>
- <PlusIcon className="h-4 w-4" weight="bold" />
+ <Icon icon={PlusSignIcon} className="h-4 w-4" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="start" className="min-w-[14rem]">
@@ -73,7 +74,7 @@ export function ComposerPlusMenu({
openFilePicker();
}}
>
- <PaperclipIcon className="mr-2 h-4 w-4" />
+ <Icon icon={Attachment01Icon} className="mr-2 h-4 w-4" />
Attach file
</DropdownMenuItem>
{showWorkspaceOption && (
@@ -83,7 +84,7 @@ export function ComposerPlusMenu({
onUseWorkspaceFile?.();
}}
>
- <FolderOpenIcon className="mr-2 h-4 w-4" />
+ <Icon icon={FolderOpenIcon} className="mr-2 h-4 w-4" />
Use File from Workspace
</DropdownMenuItem>
)}
@@ -93,15 +94,15 @@ export function ComposerPlusMenu({
openModal("integrations");
}}
>
- <PlugsConnectedIcon className="mr-2 h-4 w-4" />
+ <Icon icon={PlugSocketIcon} className="mr-2 h-4 w-4" />
Integrations
</DropdownMenuItem>
<DropdownMenuItem onSelect={() => openModal("skills")}>
- <BookOpenIcon className="mr-2 h-4 w-4" />
+ <Icon icon={BookOpen01Icon} className="mr-2 h-4 w-4" />
Skills
</DropdownMenuItem>
<DropdownMenuItem onSelect={() => openModal("scheduled")}>
- <CalendarDotsIcon className="mr-2 h-4 w-4" />
+ <Icon icon={Calendar03Icon} className="mr-2 h-4 w-4" />
Scheduled
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/DryRunToggleButton.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/DryRunToggleButton.tsx
index b6100a6454..da0625dabf 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/DryRunToggleButton.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/DryRunToggleButton.tsx
@@ -1,12 +1,13 @@
"use client";
import { cn } from "@/lib/utils";
-import { Flask } from "@phosphor-icons/react";
import {
Tooltip,
TooltipContent,
TooltipTrigger,
} from "@/components/ui/tooltip";
+import { FlaskConicalIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
// This button is only rendered on NEW chats (no active session).
// Once a session exists, it is hidden — the session's dry_run flag is
@@ -31,7 +32,7 @@ export function DryRunToggleButton({ isDryRun, onToggle }: Props) {
)}
aria-label={isDryRun ? "Test mode active" : "Enable Test mode"}
>
- <Flask size={14} />
+ <Icon icon={FlaskConicalIcon} size={14} />
<span className="hidden sm:inline">
{isDryRun ? "Test mode enabled" : "Enable test mode"}
</span>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/FileChips.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/FileChips.tsx
index db7ba99d31..d37c8968b5 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/FileChips.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/FileChips.tsx
@@ -1,15 +1,13 @@
"use client";
import { getFileTypeIcon } from "@/app/(platform)/artifacts/components/ArtifactsList/helpers";
-import {
- CircleNotch as CircleNotchIcon,
- X as XIcon,
-} from "@phosphor-icons/react";
import { AnimatePresence, motion, useReducedMotion } from "framer-motion";
import {
type Attachment,
attachmentName,
} from "../../../helpers/workspaceAttachments";
+import { Cancel01Icon, Loading03Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
function attachmentMimeType(attachment: Attachment): string {
return attachment.kind === "local"
@@ -55,7 +53,9 @@ export function FileChips({ attachments, onRemove, isUploading }: Props) {
<AnimatePresence initial={false} mode="popLayout">
{attachments.map((attachment, index) => {
const name = attachmentName(attachment);
- const Icon = getFileTypeIcon(attachmentMimeType(attachment));
+ const fileIcon = getFileTypeIcon(
+ attachmentMimeType(attachment),
+ );
// Workspace files are already stored — only local files show
// the upload spinner while a send is in flight.
const showSpinner = isUploading && attachment.kind === "local";
@@ -88,12 +88,15 @@ export function FileChips({ attachments, onRemove, isUploading }: Props) {
className="inline-flex items-center gap-1 rounded-full bg-zinc-100 px-3 py-1 text-sm text-zinc-700"
>
<Icon
- weight="regular"
+ icon={fileIcon}
className="h-3.5 w-3.5 shrink-0 text-zinc-900"
/>
<span className="max-w-[160px] truncate">{name}</span>
{showSpinner ? (
- <CircleNotchIcon className="ml-0.5 h-3 w-3 animate-spin text-zinc-400" />
+ <Icon
+ icon={Loading03Icon}
+ className="ml-0.5 h-3 w-3 animate-spin text-zinc-400"
+ />
) : (
<button
type="button"
@@ -101,7 +104,7 @@ export function FileChips({ attachments, onRemove, isUploading }: Props) {
onClick={() => onRemove(index)}
className="ml-0.5 rounded-full p-0.5 text-zinc-400 transition-colors hover:bg-zinc-200 hover:text-zinc-600"
>
- <XIcon className="h-3 w-3" weight="bold" />
+ <Icon icon={Cancel01Icon} className="h-3 w-3" />
</button>
)}
</motion.span>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/MentionDropdown.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/MentionDropdown.tsx
index 97652b182b..969ddc16aa 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/MentionDropdown.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/MentionDropdown.tsx
@@ -3,11 +3,9 @@
import { getFileTypeIcon } from "@/app/(platform)/artifacts/components/ArtifactsList/helpers";
import type { WorkspaceFileItem } from "@/app/api/__generated__/models/workspaceFileItem";
import { cn } from "@/lib/utils";
-import {
- CircleNotch as CircleNotchIcon,
- WarningCircle as WarningCircleIcon,
-} from "@phosphor-icons/react";
import type { MutableRefObject } from "react";
+import { AlertCircleIcon, Loading03Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
files: WorkspaceFileItem[];
@@ -42,12 +40,15 @@ export function MentionDropdown({
>
{isError ? (
<p className="flex items-center gap-2 px-3 py-2 text-sm text-red-600">
- <WarningCircleIcon className="h-4 w-4 shrink-0" />
+ <Icon icon={AlertCircleIcon} className="h-4 w-4 shrink-0" />
Couldn&apos;t load files. Try again.
</p>
) : isLoading ? (
<p className="flex items-center gap-2 px-3 py-2 text-sm text-zinc-500">
- <CircleNotchIcon className="h-4 w-4 shrink-0 animate-spin" />
+ <Icon
+ icon={Loading03Icon}
+ className="h-4 w-4 shrink-0 animate-spin"
+ />
Searching files…
</p>
) : null}
@@ -56,7 +57,7 @@ export function MentionDropdown({
)}
{files.map((file, index) => {
const isHighlighted = index === highlightedIndex;
- const Icon = getFileTypeIcon(file.mime_type);
+ const fileIcon = getFileTypeIcon(file.mime_type);
return (
<button
key={file.id}
@@ -76,7 +77,7 @@ export function MentionDropdown({
isHighlighted ? "bg-zinc-100 text-zinc-900" : "text-zinc-700",
)}
>
- <Icon weight="regular" className="h-4 w-4 shrink-0 text-zinc-900" />
+ <Icon icon={fileIcon} className="h-4 w-4 shrink-0 text-zinc-900" />
<span className="min-w-0 flex-1 truncate">{file.name}</span>
</button>
);
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/ModeToggleButton.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/ModeToggleButton.tsx
index 53f2e3f697..4aa51d0ca0 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/ModeToggleButton.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/ModeToggleButton.tsx
@@ -1,13 +1,14 @@
"use client";
import { cn } from "@/lib/utils";
-import { Brain, Lightning, Lock } from "@phosphor-icons/react";
import {
Tooltip,
TooltipContent,
TooltipTrigger,
} from "@/components/ui/tooltip";
import type { CopilotMode } from "../../../store";
+import { BrainIcon, FlashIcon, LockIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
mode: CopilotMode;
@@ -47,17 +48,17 @@ export function ModeToggleButton({ mode, onToggle, pinned = false }: Props) {
>
{pinned ? (
<>
- <Lock size={14} />
+ <Icon icon={LockIcon} size={14} />
Thinking
</>
) : isExtended ? (
<>
- <Brain size={14} />
+ <Icon icon={BrainIcon} size={14} />
Thinking
</>
) : (
<>
- <Lightning size={14} />
+ <Icon icon={FlashIcon} size={14} />
Fast
</>
)}
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/ModelToggleButton.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/ModelToggleButton.tsx
index 3db8f758b4..30fda8a85f 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/ModelToggleButton.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/ModelToggleButton.tsx
@@ -1,13 +1,14 @@
"use client";
import { cn } from "@/lib/utils";
-import { Cpu } from "@phosphor-icons/react";
import {
Tooltip,
TooltipContent,
TooltipTrigger,
} from "@/components/ui/tooltip";
import type { CopilotLlmModel } from "../../../store";
+import { CpuIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
model: CopilotLlmModel;
@@ -31,7 +32,7 @@ export function ModelToggleButton({ model, onToggle }: Props) {
isAdvanced ? "Switch to Balanced model" : "Switch to Advanced model"
}
>
- <Cpu size={14} />
+ <Icon icon={CpuIcon} size={14} />
<span className="hidden sm:inline">
{isAdvanced ? "Advanced" : "Balanced"}
</span>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/RecipientChip.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/RecipientChip.tsx
index f99bf5215f..071ae24132 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/RecipientChip.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/RecipientChip.tsx
@@ -13,7 +13,8 @@ import {
} from "@/components/molecules/DropdownMenu/DropdownMenu";
import { Skeleton } from "@/components/atoms/Skeleton/Skeleton";
import { cn } from "@/lib/utils";
-import { CaretDownIcon } from "@phosphor-icons/react";
+import { ArrowDown01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export interface RecipientOption {
id: string | null;
@@ -66,7 +67,7 @@ export function RecipientChip({
>
<RecipientAvatar option={recipient} />
{recipient.name}
- <CaretDownIcon className="size-3 text-zinc-400" weight="bold" />
+ <Icon icon={ArrowDown01Icon} className="size-3 text-zinc-400" />
</button>
</DropdownMenuTrigger>
<DropdownMenuContent align="start">
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/RecordingButton.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/RecordingButton.tsx
index f9b697e170..83f6df5a6e 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/RecordingButton.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/RecordingButton.tsx
@@ -2,7 +2,8 @@
import { Button } from "@/components/atoms/Button/Button";
import { cn } from "@/lib/utils";
-import { CircleNotchIcon, MicrophoneIcon } from "@phosphor-icons/react";
+import { Loading03Icon, Mic01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
isRecording: boolean;
@@ -36,9 +37,9 @@ export function RecordingButton({
)}
>
{isTranscribing ? (
- <CircleNotchIcon className="h-4 w-4 animate-spin" weight="bold" />
+ <Icon icon={Loading03Icon} className="h-4 w-4 animate-spin" />
) : (
- <MicrophoneIcon className="h-4 w-4" weight="bold" />
+ <Icon icon={Mic01Icon} className="h-4 w-4" />
)}
</Button>
);
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/WorkspaceFilePicker/WorkspaceFileList.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/WorkspaceFilePicker/WorkspaceFileList.tsx
index 3be844f83f..c9c4f5f05d 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/WorkspaceFilePicker/WorkspaceFileList.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/WorkspaceFilePicker/WorkspaceFileList.tsx
@@ -12,8 +12,9 @@ import { Skeleton } from "@/components/atoms/Skeleton/Skeleton";
import { Text } from "@/components/atoms/Text/Text";
import { ErrorCard } from "@/components/molecules/ErrorCard/ErrorCard";
import { cn } from "@/lib/utils";
-import { CheckCircle as CheckCircleIcon } from "@phosphor-icons/react";
import { useEffect, useRef, useState } from "react";
+import { CheckmarkCircle02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
files: WorkspaceFileItem[];
@@ -103,7 +104,7 @@ export function WorkspaceFileList({
<div className="grid grid-cols-2 gap-2">
{files.map((file) => {
const isSelected = selectedIds.has(file.id);
- const Icon = getFileTypeIcon(file.mime_type);
+ const fileIcon = getFileTypeIcon(file.mime_type);
return (
<button
key={file.id}
@@ -118,8 +119,8 @@ export function WorkspaceFileList({
)}
>
<Icon
+ icon={fileIcon}
size={20}
- weight="bold"
className="shrink-0 text-zinc-500"
/>
<div className="flex min-w-0 flex-1 flex-col">
@@ -137,8 +138,8 @@ export function WorkspaceFileList({
</Text>
</div>
{isSelected && (
- <CheckCircleIcon
- weight="fill"
+ <Icon
+ icon={CheckmarkCircle02Icon}
className="h-5 w-5 shrink-0 text-violet-600"
/>
)}
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/WorkspaceFilePicker/WorkspaceFilePicker.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/WorkspaceFilePicker/WorkspaceFilePicker.tsx
index cc248e7080..783c0f1291 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/WorkspaceFilePicker/WorkspaceFilePicker.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/WorkspaceFilePicker/WorkspaceFilePicker.tsx
@@ -4,9 +4,10 @@ import type { WorkspaceFileItem } from "@/app/api/__generated__/models/workspace
import { Button } from "@/components/atoms/Button/Button";
import { Input } from "@/components/atoms/Input/Input";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
-import { MagnifyingGlassIcon } from "@phosphor-icons/react";
import { useWorkspaceFilePicker } from "./useWorkspaceFilePicker";
import { WorkspaceFileList } from "./WorkspaceFileList";
+import { Search01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
isOpen: boolean;
@@ -41,7 +42,8 @@ export function WorkspaceFilePicker({ isOpen, onClose, onConfirm }: Props) {
<Dialog.Content>
<div className="flex flex-col gap-3">
<div className="relative flex items-center">
- <MagnifyingGlassIcon
+ <Icon
+ icon={Search01Icon}
width={18}
height={18}
className="absolute left-4 top-1/2 z-20 -translate-y-1/2 text-zinc-500"
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/ChatMessagesContainer.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/ChatMessagesContainer.tsx
index 6020e47716..af50be126d 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/ChatMessagesContainer.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/ChatMessagesContainer.tsx
@@ -12,7 +12,6 @@ import {
import { Button } from "@/components/atoms/Button/Button";
import { LoadingSpinner } from "@/components/atoms/LoadingSpinner/LoadingSpinner";
import { Flag, useGetFlag } from "@/services/feature-flags/use-get-flag";
-import { Clock } from "@phosphor-icons/react";
import { FileUIPart, UIDataTypes, UIMessage, UITools } from "ai";
import { useEffect, useLayoutEffect, useRef } from "react";
import { useStickToBottomContext } from "use-stick-to-bottom";
@@ -44,6 +43,8 @@ import { StepsCollapse } from "./components/StepsCollapse";
import { TaskListNotice } from "./components/TaskListNotice";
import { ThinkingIndicator } from "./components/ThinkingIndicator";
import { getLatestTaskList } from "../TaskProgressBar/helpers";
+import { Clock01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
messages: UIMessage<unknown, UIDataTypes, UITools>[];
@@ -782,7 +783,7 @@ export function ChatMessagesContainer({
<MessageContent className="flex flex-col gap-1 rounded-xl border border-dashed border-purple-400 bg-purple-100 px-3 py-2.5 text-[1rem] leading-relaxed text-slate-900 opacity-60 [border-bottom-right-radius:0]">
<span>{msg}</span>
<span className="flex items-center gap-1 text-xs text-slate-500">
- <Clock className="size-3" weight="bold" />
+ <Icon icon={Clock01Icon} className="size-3" />
Queued
</span>
</MessageContent>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/__tests__/ChatMessagesContainer.test.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/__tests__/ChatMessagesContainer.test.tsx
index 935cb04ec3..e1badf79dc 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/__tests__/ChatMessagesContainer.test.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/__tests__/ChatMessagesContainer.test.tsx
@@ -120,12 +120,6 @@ vi.mock("@/components/atoms/LoadingSpinner/LoadingSpinner", () => ({
LoadingSpinner: () => <div data-testid="loading-spinner" />,
}));
-vi.mock("@phosphor-icons/react", () => ({
- Clock: () => <span data-testid="clock-icon" />,
- ArrowDown: () => null,
- ArrowUp: () => null,
-}));
-
// ── helpers ───────────────────────────────────────────────────────────────
type ObserverCallback = (entries: { isIntersecting: boolean }[]) => void;
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/AssistantMessageActions.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/AssistantMessageActions.tsx
index b826a03350..6778df43e3 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/AssistantMessageActions.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/AssistantMessageActions.tsx
@@ -5,11 +5,16 @@ import {
MessageActions,
} from "@/components/ai-elements/message";
import { cn } from "@/lib/utils";
-import { CopySimple, ThumbsDown, ThumbsUp } from "@phosphor-icons/react";
import { UIDataTypes, UIMessage, UITools } from "ai";
import { useMessageFeedback } from "../useMessageFeedback";
import { FeedbackModal } from "./FeedbackModal";
import { TTSButton } from "./TTSButton";
+import {
+ Copy02Icon,
+ ThumbsDownIcon,
+ ThumbsUpIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
message: UIMessage<unknown, UIDataTypes, UITools>;
@@ -48,7 +53,7 @@ export function AssistantMessageActions({ message, sessionID }: Props) {
variant="ghost"
size="icon-sm"
>
- <CopySimple size={16} weight="regular" />
+ <Icon icon={Copy02Icon} size={16} />
</MessageAction>
<MessageAction
@@ -62,10 +67,7 @@ export function AssistantMessageActions({ message, sessionID }: Props) {
feedback === "downvote" && "!opacity-20",
)}
>
- <ThumbsUp
- size={16}
- weight={feedback === "upvote" ? "fill" : "regular"}
- />
+ <Icon icon={ThumbsUpIcon} size={16} />
</MessageAction>
<MessageAction
@@ -79,10 +81,7 @@ export function AssistantMessageActions({ message, sessionID }: Props) {
feedback === "upvote" && "!opacity-20",
)}
>
- <ThumbsDown
- size={16}
- weight={feedback === "downvote" ? "fill" : "regular"}
- />
+ <Icon icon={ThumbsDownIcon} size={16} />
</MessageAction>
<TTSButton text={text} />
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/CollapsedToolGroup.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/CollapsedToolGroup.tsx
index dfb5b57443..03f3653921 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/CollapsedToolGroup.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/CollapsedToolGroup.tsx
@@ -1,22 +1,6 @@
"use client";
import { useId, useState } from "react";
-import {
- ArrowsClockwiseIcon,
- CaretRightIcon,
- CheckCircleIcon,
- FileIcon,
- FilesIcon,
- GearIcon,
- GlobeIcon,
- ListChecksIcon,
- MagnifyingGlassIcon,
- MonitorIcon,
- PencilSimpleIcon,
- TerminalIcon,
- TrashIcon,
- WarningDiamondIcon,
-} from "@phosphor-icons/react";
import type { ToolUIPart } from "ai";
import {
type ToolCategory,
@@ -24,6 +8,23 @@ import {
getAnimationText,
getToolCategory,
} from "../../../tools/GenericTool/helpers";
+import {
+ AlertDiamondIcon,
+ ArrowRight01Icon,
+ CheckListIcon,
+ CheckmarkCircle02Icon,
+ ComputerIcon,
+ Delete02Icon,
+ FileEmpty02Icon,
+ Files01Icon,
+ Globe02Icon,
+ PencilIcon,
+ ReloadIcon,
+ Search01Icon,
+ Settings01Icon,
+ TerminalIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
parts: ToolUIPart[];
@@ -38,44 +39,34 @@ function EntryIcon({
isError: boolean;
}) {
if (isError) {
- return (
- <WarningDiamondIcon size={14} weight="regular" className="text-red-500" />
- );
+ return <Icon icon={AlertDiamondIcon} size={14} className="text-red-500" />;
}
const iconClass = "text-green-500";
switch (category) {
case "bash":
- return <TerminalIcon size={14} weight="regular" className={iconClass} />;
+ return <Icon icon={TerminalIcon} size={14} className={iconClass} />;
case "web":
- return <GlobeIcon size={14} weight="regular" className={iconClass} />;
+ return <Icon icon={Globe02Icon} size={14} className={iconClass} />;
case "browser":
- return <MonitorIcon size={14} weight="regular" className={iconClass} />;
+ return <Icon icon={ComputerIcon} size={14} className={iconClass} />;
case "file-read":
case "file-write":
- return <FileIcon size={14} weight="regular" className={iconClass} />;
+ return <Icon icon={FileEmpty02Icon} size={14} className={iconClass} />;
case "file-delete":
- return <TrashIcon size={14} weight="regular" className={iconClass} />;
+ return <Icon icon={Delete02Icon} size={14} className={iconClass} />;
case "file-list":
- return <FilesIcon size={14} weight="regular" className={iconClass} />;
+ return <Icon icon={Files01Icon} size={14} className={iconClass} />;
case "search":
- return (
- <MagnifyingGlassIcon size={14} weight="regular" className={iconClass} />
- );
+ return <Icon icon={Search01Icon} size={14} className={iconClass} />;
case "edit":
- return (
- <PencilSimpleIcon size={14} weight="regular" className={iconClass} />
- );
+ return <Icon icon={PencilIcon} size={14} className={iconClass} />;
case "todo":
- return (
- <ListChecksIcon size={14} weight="regular" className={iconClass} />
- );
+ return <Icon icon={CheckListIcon} size={14} className={iconClass} />;
case "compaction":
- return (
- <ArrowsClockwiseIcon size={14} weight="regular" className={iconClass} />
- );
+ return <Icon icon={ReloadIcon} size={14} className={iconClass} />;
default:
- return <GearIcon size={14} weight="regular" className={iconClass} />;
+ return <Icon icon={Settings01Icon} size={14} className={iconClass} />;
}
}
@@ -98,23 +89,19 @@ export function CollapsedToolGroup({ parts }: Props) {
aria-controls={panelId}
className="flex items-center gap-1.5 !text-xs text-muted-foreground transition-colors hover:text-foreground"
>
- <CaretRightIcon
+ <Icon
+ icon={ArrowRight01Icon}
size={12}
- weight="bold"
className={
"transition-transform duration-150 " + (expanded ? "rotate-90" : "")
}
/>
{errorCount > 0 ? (
- <WarningDiamondIcon
- size={14}
- weight="regular"
- className="text-red-500"
- />
+ <Icon icon={AlertDiamondIcon} size={14} className="text-red-500" />
) : (
- <CheckCircleIcon
+ <Icon
+ icon={CheckmarkCircle02Icon}
size={14}
- weight="regular"
className="text-green-500"
/>
)}
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/CopyButton.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/CopyButton.tsx
index 28d8664779..3389d7ec8d 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/CopyButton.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/CopyButton.tsx
@@ -2,8 +2,9 @@
import { MessageAction } from "@/components/ai-elements/message";
import { toast } from "@/components/molecules/Toast/use-toast";
-import { Check, CopySimple } from "@phosphor-icons/react";
import { useState } from "react";
+import { Copy02Icon, Tick02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
text: string;
@@ -36,7 +37,11 @@ export function CopyButton({ text }: Props) {
variant="ghost"
size="icon-sm"
>
- {copied ? <Check size={16} /> : <CopySimple size={16} weight="regular" />}
+ {copied ? (
+ <Icon icon={Tick02Icon} size={16} />
+ ) : (
+ <Icon icon={Copy02Icon} size={16} />
+ )}
</MessageAction>
);
}
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/MessageAttachments.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/MessageAttachments.tsx
index 3682a27dc3..b27b43aa5f 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/MessageAttachments.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/MessageAttachments.tsx
@@ -1,7 +1,3 @@
-import {
- FileText as FileTextIcon,
- DownloadSimple as DownloadIcon,
-} from "@phosphor-icons/react";
import { Flag, useGetFlag } from "@/services/feature-flags/use-get-flag";
import type { FileUIPart } from "ai";
import {
@@ -17,6 +13,8 @@ import {
} from "../../ToolAccordion/AccordionContent";
import { ArtifactCard } from "../../ArtifactCard/ArtifactCard";
import { filePartToArtifactRef } from "../helpers";
+import { Download04Icon, File02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
files: FileUIPart[];
@@ -107,7 +105,7 @@ export function MessageAttachments({
aria-label="Download file"
className="ml-auto shrink-0 opacity-50 hover:opacity-100"
>
- <DownloadIcon className="h-3.5 w-3.5" />
+ <Icon icon={Download04Icon} className="h-3.5 w-3.5" />
</a>
)}
</div>
@@ -119,7 +117,10 @@ export function MessageAttachments({
>
<div className="flex items-start justify-between gap-2">
<div className="flex min-w-0 items-center gap-2">
- <FileTextIcon className="h-5 w-5 shrink-0 text-neutral-400" />
+ <Icon
+ icon={File02Icon}
+ className="h-5 w-5 shrink-0 text-neutral-400"
+ />
<div className="min-w-0">
<p className="truncate text-sm font-medium text-zinc-800">
{file.filename || "file"}
@@ -136,7 +137,7 @@ export function MessageAttachments({
aria-label="Download file"
className="shrink-0 text-purple-400 hover:text-purple-600"
>
- <DownloadIcon className="h-5 w-5" />
+ <Icon icon={Download04Icon} className="h-5 w-5" />
</a>
)}
</div>
@@ -152,13 +153,16 @@ export function MessageAttachments({
aria-label="Download file"
className="shrink-0 text-neutral-400 hover:text-neutral-600"
>
- <DownloadIcon className="h-5 w-5" />
+ <Icon icon={Download04Icon} className="h-5 w-5" />
</a>
) : undefined
}
>
<div className="flex items-center gap-2">
- <FileTextIcon className="h-5 w-5 shrink-0 text-neutral-400" />
+ <Icon
+ icon={File02Icon}
+ className="h-5 w-5 shrink-0 text-neutral-400"
+ />
<div className="min-w-0">
<ContentCardTitle>{file.filename || "file"}</ContentCardTitle>
<ContentCardSubtitle>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/QueueBadge.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/QueueBadge.tsx
index 7fd7b83134..67279ef283 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/QueueBadge.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/QueueBadge.tsx
@@ -11,8 +11,9 @@ import {
} from "@/components/atoms/Tooltip/BaseTooltip";
import { toast } from "@/components/molecules/Toast/use-toast";
import * as Sentry from "@sentry/nextjs";
-import { HourglassIcon, XCircleIcon } from "@phosphor-icons/react";
import { useQueryClient } from "@tanstack/react-query";
+import { CancelCircleIcon, HourglassIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
sessionID: string | null;
@@ -69,7 +70,7 @@ export function QueueBadge({ sessionID }: Props) {
className="inline-flex items-center gap-1 rounded-full bg-purple-100 px-2 py-0.5 text-[11px] font-medium text-purple-800"
data-testid="queue-badge-queued"
>
- <HourglassIcon size={12} weight="bold" />
+ <Icon icon={HourglassIcon} size={12} />
Queued
</span>
</TooltipTrigger>
@@ -88,7 +89,7 @@ export function QueueBadge({ sessionID }: Props) {
data-testid="queue-cancel-button"
className="inline-flex h-4 w-4 items-center justify-center rounded-full text-neutral-500 transition-colors hover:text-red-600 disabled:opacity-50"
>
- <XCircleIcon size={14} weight="fill" />
+ <Icon icon={CancelCircleIcon} size={14} />
</button>
</TooltipTrigger>
<TooltipContent side="top">Cancel queued task</TooltipContent>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/ReasoningCollapse.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/ReasoningCollapse.tsx
index 4b2b8aa322..698c4d36c6 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/ReasoningCollapse.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/ReasoningCollapse.tsx
@@ -7,9 +7,10 @@ import {
AccordionItem,
} from "@/components/molecules/Accordion/Accordion";
import { cn } from "@/lib/utils";
-import { CaretRightIcon, LightbulbIcon } from "@phosphor-icons/react";
import * as AccordionPrimitive from "@radix-ui/react-accordion";
import { useState } from "react";
+import { ArrowRight01Icon, BulbIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
children: React.ReactNode;
@@ -42,13 +43,13 @@ export function ReasoningCollapse({ children, isActive = false }: Props) {
)}
>
{isActive ? (
- <LightbulbIcon size={14} weight="bold" className="shrink-0" />
+ <Icon icon={BulbIcon} size={14} className="shrink-0" />
) : (
// Once reasoning has finished streaming, swap the bulb for a
// caret that rotates to reflect the expanded/collapsed state.
- <CaretRightIcon
+ <Icon
+ icon={ArrowRight01Icon}
size={14}
- weight="bold"
className="shrink-0 transition-transform group-data-[state=open]:rotate-90"
/>
)}
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/StepsCollapse.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/StepsCollapse.tsx
index d937351a0a..a93442558b 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/StepsCollapse.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/StepsCollapse.tsx
@@ -1,7 +1,7 @@
"use client";
-
-import { ListBulletsIcon } from "@phosphor-icons/react";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
+import { LeftToRightListBulletIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
children: React.ReactNode;
@@ -15,7 +15,7 @@ export function StepsCollapse({ children }: Props) {
type="button"
className="flex items-center gap-1 !text-xs text-zinc-500 transition-colors hover:text-zinc-700"
>
- <ListBulletsIcon size={12} weight="bold" />
+ <Icon icon={LeftToRightListBulletIcon} size={12} />
<span>Show steps</span>
</button>
</Dialog.Trigger>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/StoppedTaskCard.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/StoppedTaskCard.tsx
index 1a8441f944..762d54f571 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/StoppedTaskCard.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/StoppedTaskCard.tsx
@@ -1,12 +1,12 @@
-import { LightbulbIcon, SquareIcon } from "@phosphor-icons/react";
-
import { Text } from "@/components/atoms/Text/Text";
+import { BulbIcon, SquareIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function StoppedTaskCard() {
return (
<div className="my-2 flex items-start gap-3 rounded-xl border border-zinc-200/70 bg-white p-4 shadow-sm duration-500 animate-in fade-in slide-in-from-bottom-2 fill-mode-both">
<div className="flex h-9 w-9 shrink-0 items-center justify-center rounded-small bg-purple-50">
- <SquareIcon size={16} weight="fill" className="text-purple-500" />
+ <Icon icon={SquareIcon} size={16} className="text-purple-500" />
</div>
<div className="min-w-0 flex-1">
<Text variant="body-medium" className="text-zinc-900">
@@ -17,7 +17,11 @@ export function StoppedTaskCard() {
something new.
</Text>
<div className="mt-2.5 flex items-center gap-1.5">
- <LightbulbIcon size={14} className="shrink-0 text-purple-300" />
+ <Icon
+ icon={BulbIcon}
+ size={14}
+ className="shrink-0 text-purple-300"
+ />
<Text variant="small" className="text-zinc-600">
Try &ldquo;continue&rdquo; or type something new.
</Text>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/TTSButton.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/TTSButton.tsx
index 6ac2eeb288..941ce7e985 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/TTSButton.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/TTSButton.tsx
@@ -1,9 +1,10 @@
"use client";
import { MessageAction } from "@/components/ai-elements/message";
-import { SpeakerHigh, Stop } from "@phosphor-icons/react";
import { useTextToSpeech } from "@/components/contextual/Chat/components/ChatMessage/useTextToSpeech";
import { useMemo } from "react";
+import { StopIcon, VolumeHighIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
// Unicode emoji pattern (covers most emoji ranges including modifiers and ZWJ sequences)
const EMOJI_RE =
@@ -62,7 +63,11 @@ export function TTSButton({ text }: Props) {
tooltip={isPlaying ? "Stop reading" : "Read aloud"}
onClick={toggle}
>
- {isPlaying ? <Stop size={16} /> : <SpeakerHigh size={16} />}
+ {isPlaying ? (
+ <Icon icon={StopIcon} size={16} />
+ ) : (
+ <Icon icon={VolumeHighIcon} size={16} />
+ )}
</MessageAction>
);
}
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/TaskListNotice.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/TaskListNotice.tsx
index 69fabb3fd3..a30948cf23 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/TaskListNotice.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/TaskListNotice.tsx
@@ -1,7 +1,7 @@
"use client";
-
-import { ArrowRightIcon, ListChecksIcon } from "@phosphor-icons/react";
import { useCopilotUIStore } from "../../../store";
+import { ArrowRight02Icon, CheckListIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function TaskListNotice() {
const openContextPanelForProgress = useCopilotUIStore(
@@ -14,9 +14,9 @@ export function TaskListNotice() {
onClick={openContextPanelForProgress}
className="inline-flex w-fit items-center gap-2 rounded-full border border-zinc-200 bg-white px-3 py-1.5 text-xs text-zinc-600 transition-colors hover:border-zinc-300 hover:bg-zinc-50"
>
- <ListChecksIcon size={14} className="text-blue-500" />
+ <Icon icon={CheckListIcon} size={14} className="text-blue-500" />
<span>Progress shown in the sidebar</span>
- <ArrowRightIcon size={12} className="text-zinc-400" />
+ <Icon icon={ArrowRight02Icon} size={12} className="text-zinc-400" />
</button>
);
}
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/__tests__/CollapsedToolGroup.test.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/__tests__/CollapsedToolGroup.test.tsx
new file mode 100644
index 0000000000..b05cc11dd5
--- /dev/null
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/__tests__/CollapsedToolGroup.test.tsx
@@ -0,0 +1,147 @@
+import { afterEach, describe, expect, it } from "vitest";
+import { cleanup, fireEvent, render, screen } from "@testing-library/react";
+import type { ToolUIPart } from "ai";
+import { CollapsedToolGroup } from "../CollapsedToolGroup";
+
+afterEach(cleanup);
+
+function makePart(toolName: string, overrides: Partial<ToolUIPart> = {}) {
+ return {
+ type: `tool-${toolName}`,
+ toolCallId: `call-${toolName}`,
+ state: "output-available",
+ input: {},
+ output: { message: "ok" },
+ ...overrides,
+ } as unknown as ToolUIPart;
+}
+
+// The entry glyph is chosen by a switch on the tool category. A wrong or
+// undefined icon import renders an empty <svg> instead of throwing, so assert
+// on the drawn geometry rather than on the element merely existing.
+function glyphs(root: HTMLElement) {
+ return Array.from(root.querySelectorAll("svg"))
+ .map((svg) =>
+ Array.from(svg.querySelectorAll("path,circle,rect,line,polyline"))
+ .map((n) => n.getAttribute("d") ?? n.outerHTML)
+ .join("|"),
+ )
+ .filter(Boolean);
+}
+
+describe("CollapsedToolGroup", () => {
+ it("summarises completed calls and stays collapsed until clicked", () => {
+ render(
+ <CollapsedToolGroup parts={[makePart("bash_exec"), makePart("grep")]} />,
+ );
+
+ const toggle = screen.getByRole("button");
+ expect(toggle.getAttribute("aria-expanded")).toBe("false");
+ expect(toggle.textContent).toContain("2 tool calls completed");
+ expect(screen.queryByText(/Ran command/i)).toBeNull();
+ });
+
+ it("counts failures in the summary label", () => {
+ render(
+ <CollapsedToolGroup
+ parts={[
+ makePart("bash_exec"),
+ makePart("grep", { state: "output-error" } as Partial<ToolUIPart>),
+ ]}
+ />,
+ );
+
+ expect(screen.getByRole("button").textContent).toContain(
+ "2 tool calls (1 failed)",
+ );
+ });
+
+ it("reveals one entry per tool call when expanded", () => {
+ const { container } = render(
+ <CollapsedToolGroup
+ parts={[makePart("bash_exec"), makePart("grep"), makePart("glob")]}
+ />,
+ );
+
+ const toggle = screen.getByRole("button");
+ fireEvent.click(toggle);
+
+ expect(toggle.getAttribute("aria-expanded")).toBe("true");
+ const panel = container.querySelector(
+ `#${CSS.escape(toggle.getAttribute("aria-controls") ?? "")}`,
+ );
+ expect(panel).not.toBeNull();
+ expect(panel?.children.length).toBe(3);
+ });
+
+ it("draws a distinct glyph for every tool category", () => {
+ const byCategory: [string, string][] = [
+ ["bash", "bash_exec"],
+ ["web", "web_search"],
+ ["browser", "browser_navigate"],
+ ["file-read", "read_file"],
+ ["file-delete", "delete_workspace_file"],
+ ["file-list", "glob"],
+ ["search", "grep"],
+ ["edit", "edit_file"],
+ ["todo", "TodoWrite"],
+ ["compaction", "context_compaction"],
+ ["other", "some_unknown_tool"],
+ ];
+
+ const seen: string[] = [];
+ for (const [, toolName] of byCategory) {
+ const { container, unmount } = render(
+ <CollapsedToolGroup parts={[makePart(toolName)]} />,
+ );
+ fireEvent.click(screen.getByRole("button"));
+ // [0] and [1] belong to the toggle (caret + status); the entry is last.
+ const drawn = glyphs(container);
+ expect(drawn.length).toBe(3);
+ seen.push(drawn[2]);
+ unmount();
+ }
+
+ expect(new Set(seen).size).toBe(seen.length);
+ });
+
+ it("swaps the entry glyph for the alert icon when a call errored", () => {
+ const { container: ok } = render(
+ <CollapsedToolGroup parts={[makePart("bash_exec")]} />,
+ );
+ fireEvent.click(screen.getByRole("button"));
+ const okGlyph = glyphs(ok)[2];
+ cleanup();
+
+ const { container: failed } = render(
+ <CollapsedToolGroup
+ parts={[
+ makePart("bash_exec", {
+ state: "output-error",
+ } as Partial<ToolUIPart>),
+ ]}
+ />,
+ );
+ fireEvent.click(screen.getByRole("button"));
+ const failedGlyph = glyphs(failed)[2];
+
+ expect(failedGlyph).toBeTruthy();
+ expect(failedGlyph).not.toBe(okGlyph);
+ });
+
+ it("shares the file glyph between reads and writes", () => {
+ const { container: read } = render(
+ <CollapsedToolGroup parts={[makePart("read_file")]} />,
+ );
+ fireEvent.click(screen.getByRole("button"));
+ const readGlyph = glyphs(read)[2];
+ cleanup();
+
+ const { container: write } = render(
+ <CollapsedToolGroup parts={[makePart("write_file")]} />,
+ );
+ fireEvent.click(screen.getByRole("button"));
+
+ expect(glyphs(write)[2]).toBe(readGlyph);
+ });
+});
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/__tests__/MessagePartRenderer.test.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/__tests__/MessagePartRenderer.test.tsx
index 150ef9666e..b8cfac0668 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/__tests__/MessagePartRenderer.test.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/__tests__/MessagePartRenderer.test.tsx
@@ -50,11 +50,6 @@ vi.mock("@/services/feature-flags/use-get-flag", () => ({
useGetFlag: () => false,
}));
-vi.mock("@phosphor-icons/react", async (importOriginal) => {
- const actual = (await importOriginal()) as Record<string, unknown>;
- return { ...actual, ExclamationMarkIcon: () => null };
-});
-
vi.mock("../StoppedTaskCard", () => ({
StoppedTaskCard: () => <div data-testid="stopped-task-card" />,
}));
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/__tests__/ReasoningCollapse.test.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/__tests__/ReasoningCollapse.test.tsx
index ab62663b72..236a8caecb 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/__tests__/ReasoningCollapse.test.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/__tests__/ReasoningCollapse.test.tsx
@@ -8,12 +8,14 @@ import {
import { afterEach, describe, expect, it, vi } from "vitest";
import { ReasoningCollapse } from "../ReasoningCollapse";
-vi.mock("@phosphor-icons/react", () => ({
- LightbulbIcon: ({ className }: { className?: string }) => (
- <span data-testid="reasoning-bulb-icon" className={className} />
- ),
- CaretRightIcon: ({ className }: { className?: string }) => (
- <span data-testid="reasoning-caret-icon" className={className} />
+vi.mock("@hugeicons/core-free-icons", () => ({
+ BulbIcon: "reasoning-bulb-icon",
+ ArrowRight01Icon: "reasoning-caret-icon",
+}));
+
+vi.mock("@/components/atoms/Icon/Icon", () => ({
+ Icon: ({ icon, className }: { icon: string; className?: string }) => (
+ <span data-testid={icon} className={className} />
),
}));
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/__tests__/StepsCollapse.test.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/__tests__/StepsCollapse.test.tsx
index a7e42c42e7..75b8138f73 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/__tests__/StepsCollapse.test.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatMessagesContainer/components/__tests__/StepsCollapse.test.tsx
@@ -2,8 +2,12 @@ import { afterEach, describe, expect, it, vi } from "vitest";
import { cleanup, fireEvent, render, screen } from "@testing-library/react";
import { StepsCollapse } from "../StepsCollapse";
-vi.mock("@phosphor-icons/react", () => ({
- ListBulletsIcon: () => <span data-testid="list-icon" />,
+vi.mock("@hugeicons/core-free-icons", () => ({
+ LeftToRightListBulletIcon: "list-icon",
+}));
+
+vi.mock("@/components/atoms/Icon/Icon", () => ({
+ Icon: ({ icon }: { icon: string }) => <span data-testid={icon} />,
}));
vi.mock("@/components/molecules/Dialog/Dialog", async () => {
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatSearchModal/ChatSearchResults.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatSearchModal/ChatSearchResults.tsx
index d64c65f06e..1c08465623 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatSearchModal/ChatSearchResults.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatSearchModal/ChatSearchResults.tsx
@@ -1,16 +1,17 @@
import { Button } from "@/components/ui/button";
import { cn } from "@/lib/utils";
-import {
- ChatCircleIcon,
- CheckCircleIcon,
- CircleNotchIcon,
- HourglassIcon,
-} from "@phosphor-icons/react";
import { AnimatePresence, motion, useReducedMotion } from "framer-motion";
import type { MutableRefObject } from "react";
import { shouldShowSessionProcessingIndicator } from "../../sessionActivity";
import { ChatOriginIcon } from "../ChatOriginIcon/ChatOriginIcon";
import { getSessionTitle, highlightMatch, type SearchSession } from "./helpers";
+import {
+ BubbleChatIcon,
+ CheckmarkCircle02Icon,
+ HourglassIcon,
+ Loading03Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
const indicatorTransition = {
type: "spring" as const,
@@ -85,7 +86,8 @@ export function ChatSearchResults({
</>
)}
<div className="relative z-10 flex min-w-0 flex-1 items-center gap-2.5">
- <ChatCircleIcon
+ <Icon
+ icon={BubbleChatIcon}
aria-hidden="true"
className={cn(
"h-4 w-4 shrink-0 transition-colors duration-150",
@@ -124,7 +126,7 @@ export function ChatSearchResults({
aria-label="Session queued"
className="inline-flex h-4 w-4 shrink-0 items-center justify-center text-purple-600"
>
- <HourglassIcon className="h-3.5 w-3.5" weight="bold" />
+ <Icon icon={HourglassIcon} className="h-3.5 w-3.5" />
</span>
)}
{session.chat_status !== "running" &&
@@ -136,18 +138,18 @@ export function ChatSearchResults({
hasCompletedIndicator: completedSessionIDs.has(session.id),
needsReload: !!sessionNeedsReload[session.id],
}) && (
- <CircleNotchIcon
+ <Icon
+ icon={Loading03Icon}
aria-label="Session processing"
className="h-4 w-4 shrink-0 animate-spin text-zinc-400"
- weight="bold"
/>
)}
{completedSessionIDs.has(session.id) &&
session.id !== currentSessionId && (
- <CheckCircleIcon
+ <Icon
+ icon={CheckmarkCircle02Icon}
aria-label="Session completed"
className="h-4 w-4 shrink-0 text-green-500"
- weight="fill"
/>
)}
<AnimatePresence initial={false}>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatSessionBlock/ChatSessionBlock.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatSessionBlock/ChatSessionBlock.tsx
index 08b16bd5cc..2fac6363d8 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatSessionBlock/ChatSessionBlock.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatSessionBlock/ChatSessionBlock.tsx
@@ -2,14 +2,15 @@
import { Text } from "@/components/atoms/Text/Text";
import { cn } from "@/lib/utils";
-import {
- CheckCircleIcon,
- CircleNotchIcon,
- HourglassIcon,
- PushPinIcon,
-} from "@phosphor-icons/react";
import type { ReactNode } from "react";
import { ChatOriginIcon } from "../ChatOriginIcon/ChatOriginIcon";
+import {
+ CheckmarkCircle02Icon,
+ HourglassIcon,
+ Loading03Icon,
+ PinIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
title?: string | null;
@@ -81,11 +82,11 @@ export function ChatSessionBlock({
</div>
<div className="flex items-center gap-1.5">
{showPinned ? (
- <PushPinIcon
+ <Icon
+ icon={PinIcon}
aria-label="Pinned"
data-testid="session-pinned-indicator"
className="h-3 w-3 shrink-0 text-neutral-400"
- weight="fill"
/>
) : null}
<Text variant="small" className="text-neutral-400">
@@ -111,19 +112,19 @@ export function ChatSessionBlock({
data-testid="session-status-queued"
className="inline-flex h-4 w-4 shrink-0 items-center justify-center text-purple-600"
>
- <HourglassIcon className="h-3.5 w-3.5" weight="bold" />
+ <Icon icon={HourglassIcon} className="h-3.5 w-3.5" />
</span>
) : null}
{chatStatus !== "running" && showProcessing ? (
- <CircleNotchIcon
+ <Icon
+ icon={Loading03Icon}
className="h-4 w-4 shrink-0 animate-spin text-zinc-400"
- weight="bold"
/>
) : null}
{showCompleted ? (
- <CheckCircleIcon
+ <Icon
+ icon={CheckmarkCircle02Icon}
className="h-4 w-4 shrink-0 text-green-500"
- weight="fill"
/>
) : null}
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatSidebar/ChatSidebar.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatSidebar/ChatSidebar.tsx
index d7f5642b02..05c259d0ce 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatSidebar/ChatSidebar.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatSidebar/ChatSidebar.tsx
@@ -20,12 +20,6 @@ import {
import { cn } from "@/lib/utils";
import { ApiError } from "@/lib/autogpt-server-api/helpers";
import { Flag, useGetFlag } from "@/services/feature-flags/use-get-flag";
-import {
- FilesIcon,
- MagnifyingGlassIcon,
- PlusCircleIcon,
- PlusIcon,
-} from "@phosphor-icons/react";
import { ShareChatDialog } from "../../sharing/ShareChatDialog";
import { useQueryClient } from "@tanstack/react-query";
import { motion } from "framer-motion";
@@ -49,6 +43,13 @@ import { ChatSessionRow } from "./components/ChatSessionRow/ChatSessionRow";
import { DeleteChatDialog } from "../DeleteChatDialog/DeleteChatDialog";
import { UsagePopover } from "../UsageLimits/UsagePopover/UsagePopover";
import { NotificationToggle } from "./components/NotificationToggle/NotificationToggle";
+import {
+ Files01Icon,
+ PlusSignCircleIcon,
+ PlusSignIcon,
+ Search01Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function ChatSidebar() {
const { state } = useSidebar();
@@ -365,7 +366,7 @@ export function ChatSidebar() {
onClick={handleNewChat}
style={{ minWidth: "auto", width: "auto" }}
>
- <PlusCircleIcon className="!size-5" />
+ <Icon icon={PlusSignCircleIcon} className="!size-5" />
<span className="sr-only">New Chat</span>
</Button>
) : null}
@@ -378,7 +379,7 @@ export function ChatSidebar() {
onClick={() => openSearch()}
className="rounded-full text-zinc-600 hover:bg-zinc-100"
>
- <MagnifyingGlassIcon className="!size-5" />
+ <Icon icon={Search01Icon} className="!size-5" />
</ShadcnButton>
) : null}
</div>
@@ -407,7 +408,7 @@ export function ChatSidebar() {
onClick={() => openSearch()}
className="rounded-full text-zinc-600 hover:bg-zinc-100"
>
- <MagnifyingGlassIcon className="!size-5" />
+ <Icon icon={Search01Icon} className="!size-5" />
</ShadcnButton>
) : null}
{isArtifactsEnabled ? (
@@ -419,7 +420,7 @@ export function ChatSidebar() {
onClick={() => router.push("/artifacts")}
className="rounded-full text-zinc-600 hover:bg-zinc-100"
>
- <FilesIcon className="!size-5" />
+ <Icon icon={Files01Icon} className="!size-5" />
</ShadcnButton>
) : null}
<UsagePopover />
@@ -433,7 +434,7 @@ export function ChatSidebar() {
size="small"
onClick={handleNewChat}
className="w-full"
- leftIcon={<PlusIcon className="h-4 w-4" weight="bold" />}
+ leftIcon={<Icon icon={PlusSignIcon} className="h-4 w-4" />}
>
New Chat
</Button>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatSidebar/components/ChatSessionRow/ChatSessionRow.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatSidebar/components/ChatSessionRow/ChatSessionRow.tsx
index 25584a1c1a..3bd1118438 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatSidebar/components/ChatSessionRow/ChatSessionRow.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatSidebar/components/ChatSessionRow/ChatSessionRow.tsx
@@ -8,19 +8,20 @@ import {
DropdownMenuTrigger,
} from "@/components/molecules/DropdownMenu/DropdownMenu";
import { cn } from "@/lib/utils";
-import {
- CircleNotch,
- DotsThree,
- DownloadSimpleIcon,
- PencilSimpleIcon,
- PushPinIcon,
- PushPinSlashIcon,
- ShareNetworkIcon,
- TrashIcon,
-} from "@phosphor-icons/react";
import { AnimatePresence, motion } from "framer-motion";
import type { MouseEvent, RefObject } from "react";
import { ChatSessionBlock } from "../../../ChatSessionBlock/ChatSessionBlock";
+import {
+ Delete02Icon,
+ Download04Icon,
+ Loading03Icon,
+ MoreHorizontalIcon,
+ PencilIcon,
+ PinIcon,
+ PinOffIcon,
+ Share03Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
session: SessionSummaryResponse;
@@ -143,7 +144,10 @@ export function ChatSessionRow({
>
<div className="relative h-7 w-7">
<div className="absolute inset-0 animate-spin rounded-full border-2 border-zinc-200 border-t-zinc-700" />
- <DownloadSimpleIcon className="absolute inset-0 m-auto h-3.5 w-3.5" />
+ <Icon
+ icon={Download04Icon}
+ className="absolute inset-0 m-auto h-3.5 w-3.5"
+ />
</div>
</div>
)}
@@ -155,7 +159,7 @@ export function ChatSessionRow({
className="absolute right-2 top-1/2 -translate-y-1/2 rounded-full p-1.5 text-zinc-600 transition-all hover:bg-neutral-100"
aria-label="More actions"
>
- <DotsThree className="h-4 w-4" />
+ <Icon icon={MoreHorizontalIcon} className="h-4 w-4" />
</button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
@@ -163,19 +167,19 @@ export function ChatSessionRow({
<DropdownMenuItem onClick={onPin}>
{session.is_pinned ? (
<>
- <PushPinSlashIcon className="mr-2 h-4 w-4" />
+ <Icon icon={PinOffIcon} className="mr-2 h-4 w-4" />
Unpin chat
</>
) : (
<>
- <PushPinIcon className="mr-2 h-4 w-4" />
+ <Icon icon={PinIcon} className="mr-2 h-4 w-4" />
Pin chat
</>
)}
</DropdownMenuItem>
)}
<DropdownMenuItem onClick={onRename}>
- <PencilSimpleIcon className="mr-2 h-4 w-4" />
+ <Icon icon={PencilIcon} className="mr-2 h-4 w-4" />
Rename
</DropdownMenuItem>
<DropdownMenuItem
@@ -186,18 +190,18 @@ export function ChatSessionRow({
disabled={isExporting}
>
{isExporting ? (
- <CircleNotch
+ <Icon
+ icon={Loading03Icon}
className="mr-2 h-4 w-4 animate-spin"
- weight="bold"
/>
) : (
- <DownloadSimpleIcon className="mr-2 h-4 w-4" />
+ <Icon icon={Download04Icon} className="mr-2 h-4 w-4" />
)}
{isExporting ? "Exporting…" : "Export chat"}
</DropdownMenuItem>
{isSharingEnabled && (
<DropdownMenuItem onClick={onShare}>
- <ShareNetworkIcon className="mr-2 h-4 w-4" />
+ <Icon icon={Share03Icon} className="mr-2 h-4 w-4" />
Share chat
</DropdownMenuItem>
)}
@@ -206,7 +210,7 @@ export function ChatSessionRow({
disabled={isDeleting}
className="text-red-600 focus:bg-red-50 focus:text-red-600"
>
- <TrashIcon className="mr-2 h-4 w-4" />
+ <Icon icon={Delete02Icon} className="mr-2 h-4 w-4" />
Delete chat
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatSidebar/components/NotificationToggle/NotificationToggle.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatSidebar/components/NotificationToggle/NotificationToggle.tsx
index e0a10cb220..d67c4f65b3 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatSidebar/components/NotificationToggle/NotificationToggle.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatSidebar/components/NotificationToggle/NotificationToggle.tsx
@@ -9,8 +9,13 @@ import {
import { toast } from "@/components/molecules/Toast/use-toast";
import { Button } from "@/components/ui/button";
import { cn } from "@/lib/utils";
-import { Bell, BellRinging, BellSlash } from "@phosphor-icons/react";
import { useCopilotUIStore } from "../../../../store";
+import {
+ BellIcon,
+ BellOffIcon,
+ BellRingIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function NotificationToggle() {
const {
@@ -51,11 +56,11 @@ export function NotificationToggle() {
<PopoverTrigger asChild>
<Button variant="ghost" size="icon" aria-label="Notification settings">
{!isNotificationsEnabled ? (
- <BellSlash className="!size-5" />
+ <Icon icon={BellOffIcon} className="!size-5" />
) : isSoundEnabled ? (
- <BellRinging className="!size-5" />
+ <Icon icon={BellRingIcon} className="!size-5" />
) : (
- <Bell className="!size-5" />
+ <Icon icon={BellIcon} className="!size-5" />
)}
</Button>
</PopoverTrigger>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ClarificationQuestionsCard/ClarificationQuestionsCard.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ClarificationQuestionsCard/ClarificationQuestionsCard.tsx
index 2ba46ca704..65976f50df 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ClarificationQuestionsCard/ClarificationQuestionsCard.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ClarificationQuestionsCard/ClarificationQuestionsCard.tsx
@@ -5,9 +5,13 @@ import { Card } from "@/components/atoms/Card/Card";
import { Input } from "@/components/atoms/Input/Input";
import { Text } from "@/components/atoms/Text/Text";
import { cn } from "@/lib/utils";
-import { ChatTeardropDotsIcon, CheckCircleIcon } from "@phosphor-icons/react";
import { useEffect, useRef, useState } from "react";
import type { ClarifyingQuestion } from "../../tools/clarifying-questions";
+import {
+ Chatting01Icon,
+ CheckmarkCircle02Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
questions: ClarifyingQuestion[];
@@ -107,7 +111,10 @@ export function ClarificationQuestionsCard({
<div className="flex w-full max-w-3xl gap-3">
<div className="flex-shrink-0">
<div className="flex h-7 w-7 items-center justify-center rounded-lg bg-green-500">
- <CheckCircleIcon className="h-4 w-4 text-white" weight="bold" />
+ <Icon
+ icon={CheckmarkCircle02Icon}
+ className="h-4 w-4 text-white"
+ />
</div>
</div>
<div className="flex min-w-0 flex-1 flex-col">
@@ -137,7 +144,7 @@ export function ClarificationQuestionsCard({
<Card className="space-y-6 p-8">
<div>
<div className="flex gap-3">
- <ChatTeardropDotsIcon className="size-6" />
+ <Icon icon={Chatting01Icon} className="size-6" />
<Text variant="h4" className="mb-1 text-slate-900">
I need more information
</Text>
@@ -163,10 +170,10 @@ export function ClarificationQuestionsCard({
>
<div className="mb-2 flex items-start gap-2">
{hasAnswer ? (
- <CheckCircleIcon
+ <Icon
+ icon={CheckmarkCircle02Icon}
size={20}
className="mt-0.5 text-green-500"
- weight="bold"
/>
) : (
<div className="mt-0 flex h-6 w-6 items-center justify-center rounded-full border border-slate-300 font-mono">
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ContextPanel/ContextPanel.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ContextPanel/ContextPanel.tsx
index 315c771099..4a9f1d1512 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ContextPanel/ContextPanel.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ContextPanel/ContextPanel.tsx
@@ -8,7 +8,6 @@ import {
} from "@/components/ui/sheet";
import { cn } from "@/lib/utils";
import { Flag, useGetFlag } from "@/services/feature-flags/use-get-flag";
-import { XIcon } from "@phosphor-icons/react";
import { MAX_CONTEXT_PANEL_WIDTH, MIN_CONTEXT_PANEL_WIDTH } from "../../store";
import { PanelResizeHandle } from "../PanelResizeHandle";
import { FilesTab } from "./components/FilesTab/FilesTab";
@@ -16,6 +15,8 @@ import { useSessionFiles } from "./components/FilesTab/useSessionFiles";
import { ProgressTab } from "./components/ProgressTab/ProgressTab";
import { TabSwitcher } from "./components/TabSwitcher";
import { useContextPanel } from "./useContextPanel";
+import { Cancel01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
sessionId: string | null;
@@ -63,7 +64,7 @@ export function ContextPanel({ sessionId, mobile }: Props) {
aria-label="Close workspace panel"
className="rounded p-1.5 text-zinc-500 transition-colors hover:bg-zinc-100 hover:text-zinc-700"
>
- <XIcon size={16} />
+ <Icon icon={Cancel01Icon} size={16} />
</button>
)}
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ContextPanel/ContextPanelToggle.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ContextPanel/ContextPanelToggle.tsx
index 3aec234e34..853cd8f962 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ContextPanel/ContextPanelToggle.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ContextPanel/ContextPanelToggle.tsx
@@ -1,8 +1,9 @@
"use client";
import { Button } from "@/components/ui/button";
-import { FolderIcon } from "@phosphor-icons/react";
import { useCopilotUIStore } from "../../store";
+import { Folder01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function ContextPanelToggle() {
const isOpen = useCopilotUIStore((s) => s.artifactPanel.isOpen);
@@ -23,7 +24,7 @@ export function ContextPanelToggle() {
aria-label="Open workspace panel"
aria-pressed={false}
>
- <FolderIcon className="!size-5" />
+ <Icon icon={Folder01Icon} className="!size-5" />
</Button>
</div>
);
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ContextPanel/components/FilesTab/FilesTab.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ContextPanel/components/FilesTab/FilesTab.tsx
index 35c0b7d3b5..442886b06b 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ContextPanel/components/FilesTab/FilesTab.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ContextPanel/components/FilesTab/FilesTab.tsx
@@ -15,13 +15,14 @@ import {
import { ErrorCard } from "@/components/molecules/ErrorCard/ErrorCard";
import { toast } from "@/components/molecules/Toast/use-toast";
import { Skeleton } from "@/components/ui/skeleton";
-import { DownloadSimpleIcon } from "@phosphor-icons/react";
import { useCopilotUIStore } from "../../../../store";
import { downloadArtifact } from "../../../ArtifactPanel/downloadArtifact";
import { DeleteFileDialog } from "./components/DeleteFileDialog";
import { FileRow } from "./components/FileRow";
import { downloadFilesAsZip, fileItemToArtifactRef } from "./helpers";
import { useSessionFiles, type SessionFile } from "./useSessionFiles";
+import { Download04Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
sessionId: string | null;
@@ -132,7 +133,7 @@ export function FilesTab({ sessionId }: Props) {
aria-label="Download all"
className="h-7 !min-w-0 !p-1"
>
- <DownloadSimpleIcon size={16} />
+ <Icon icon={Download04Icon} size={16} />
</Button>
</TooltipTrigger>
<TooltipContent>Download all</TooltipContent>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ContextPanel/components/FilesTab/components/FileRow.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ContextPanel/components/FilesTab/components/FileRow.tsx
index ab13d18860..5e18812ba7 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ContextPanel/components/FilesTab/components/FileRow.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ContextPanel/components/FilesTab/components/FileRow.tsx
@@ -5,7 +5,6 @@ import {
TooltipContent,
TooltipTrigger,
} from "@/components/atoms/Tooltip/BaseTooltip";
-import { DownloadSimpleIcon, TrashIcon } from "@phosphor-icons/react";
import { classifyArtifact } from "../../../../ArtifactPanel/helpers";
import {
formatFileSize,
@@ -13,6 +12,8 @@ import {
isUploadedFile,
} from "../helpers";
import type { SessionFile } from "../useSessionFiles";
+import { Delete02Icon, Download04Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
file: SessionFile;
@@ -23,7 +24,7 @@ interface Props {
export function FileRow({ file, onOpen, onDownload, onRequestDelete }: Props) {
const { item } = file;
- const Icon = classifyArtifact(item.mime_type ?? null, item.name).icon;
+ const fileIcon = classifyArtifact(item.mime_type ?? null, item.name).icon;
const canDelete = !isUploadedFile(item);
return (
@@ -35,7 +36,7 @@ export function FileRow({ file, onOpen, onDownload, onRequestDelete }: Props) {
title={item.name}
>
<span className="flex min-w-0 items-center gap-2">
- <Icon size={16} className="shrink-0 text-black" />
+ <Icon icon={fileIcon} size={16} className="shrink-0 text-black" />
<OverflowText
variant="body"
value={item.name}
@@ -56,7 +57,7 @@ export function FileRow({ file, onOpen, onDownload, onRequestDelete }: Props) {
onClick={() => onDownload(file)}
aria-label={`Download ${item.name}`}
>
- <DownloadSimpleIcon size={16} />
+ <Icon icon={Download04Icon} size={16} />
</Button>
</TooltipTrigger>
<TooltipContent>Download</TooltipContent>
@@ -70,7 +71,7 @@ export function FileRow({ file, onOpen, onDownload, onRequestDelete }: Props) {
onClick={() => onRequestDelete(file)}
aria-label={`Delete ${item.name}`}
>
- <TrashIcon size={16} />
+ <Icon icon={Delete02Icon} size={16} />
</Button>
</TooltipTrigger>
<TooltipContent>Delete</TooltipContent>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ContextPanel/components/ProgressTab/ProgressTab.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ContextPanel/components/ProgressTab/ProgressTab.tsx
index a8d1275d36..89cb81865c 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ContextPanel/components/ProgressTab/ProgressTab.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ContextPanel/components/ProgressTab/ProgressTab.tsx
@@ -1,10 +1,4 @@
"use client";
-
-import {
- CheckCircleIcon,
- CircleDashedIcon,
- CircleIcon,
-} from "@phosphor-icons/react";
import { motion } from "framer-motion";
import { useCopilotStreamStore } from "../../../../copilotStreamStore";
import {
@@ -12,6 +6,12 @@ import {
getLatestTaskList,
type TodoItem,
} from "../../../TaskProgressBar/helpers";
+import {
+ CheckmarkCircle02Icon,
+ CircleDashedIcon,
+ CircleIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
sessionId: string | null;
@@ -101,9 +101,9 @@ function TaskRow({ todo }: { todo: TodoItem }) {
function StatusIcon({ status }: { status: TodoItem["status"] }) {
if (status === "completed") {
return (
- <CheckCircleIcon
+ <Icon
+ icon={CheckmarkCircle02Icon}
size={14}
- weight="fill"
className="text-green-500"
aria-label="completed"
/>
@@ -111,18 +111,18 @@ function StatusIcon({ status }: { status: TodoItem["status"] }) {
}
if (status === "in_progress") {
return (
- <CircleDashedIcon
+ <Icon
+ icon={CircleDashedIcon}
size={14}
- weight="bold"
className="text-blue-500"
aria-label="in progress"
/>
);
}
return (
- <CircleIcon
+ <Icon
+ icon={CircleIcon}
size={14}
- weight="regular"
className="text-neutral-400"
aria-label="pending"
/>
@@ -143,9 +143,9 @@ function AllTasksComplete({ total }: { total: number }) {
animate={{ scale: [0, 1.15, 1] }}
transition={{ duration: 0.5, delay: 0.15, ease: "easeOut" }}
>
- <CheckCircleIcon
+ <Icon
+ icon={CheckmarkCircle02Icon}
size={32}
- weight="fill"
className="text-emerald-500"
/>
</motion.div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/EmptySession/components/EditNameDialog/EditNameDialog.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/EmptySession/components/EditNameDialog/EditNameDialog.tsx
index 9556d1e859..5c2ecafae9 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/EmptySession/components/EditNameDialog/EditNameDialog.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/EmptySession/components/EditNameDialog/EditNameDialog.tsx
@@ -5,8 +5,9 @@ import { Input } from "@/components/atoms/Input/Input";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
import { useToast } from "@/components/molecules/Toast/use-toast";
import { useAuth } from "@/lib/auth/hooks/useAuth";
-import { PencilSimpleIcon } from "@phosphor-icons/react";
import { useState } from "react";
+import { PencilIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
currentName: string;
@@ -75,7 +76,7 @@ export function EditNameDialog({ currentName }: Props) {
type="button"
className="ml-1 inline-flex items-center text-violet-500 transition-colors hover:text-violet-700"
>
- <PencilSimpleIcon size={16} />
+ <Icon icon={PencilIcon} size={16} />
</button>
</Dialog.Trigger>
<Dialog.Content>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/EmptySession/components/SuggestionThemes/SuggestionThemes.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/EmptySession/components/SuggestionThemes/SuggestionThemes.tsx
index ce111d6afd..064f272950 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/EmptySession/components/SuggestionThemes/SuggestionThemes.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/EmptySession/components/SuggestionThemes/SuggestionThemes.tsx
@@ -6,21 +6,23 @@ import {
PopoverTrigger,
} from "@/components/molecules/Popover/Popover";
import { Button } from "@/components/atoms/Button/Button";
-import {
- BookOpenIcon,
- PaintBrushIcon,
- LightningIcon,
- ListChecksIcon,
- SpinnerGapIcon,
-} from "@phosphor-icons/react";
import { useState } from "react";
import type { SuggestionTheme } from "../../helpers";
+import {
+ BookOpen01Icon,
+ CheckListIcon,
+ FlashIcon,
+ Loading03Icon,
+ PaintBrush01Icon,
+} from "@hugeicons/core-free-icons";
+import type { IconSvgElement } from "@hugeicons/react";
+import { Icon } from "@/components/atoms/Icon/Icon";
-const THEME_ICONS: Record<string, typeof BookOpenIcon> = {
- Learn: BookOpenIcon,
- Create: PaintBrushIcon,
- Automate: LightningIcon,
- Organize: ListChecksIcon,
+const THEME_ICONS: Record<string, IconSvgElement> = {
+ Learn: BookOpen01Icon,
+ Create: PaintBrush01Icon,
+ Automate: FlashIcon,
+ Organize: CheckListIcon,
};
interface Props {
@@ -47,7 +49,7 @@ export function SuggestionThemes({ themes, onSend, disabled }: Props) {
return (
<div className="flex flex-wrap items-center justify-center gap-3">
{themes.map((theme) => {
- const Icon = THEME_ICONS[theme.name];
+ const themeIcon = THEME_ICONS[theme.name];
return (
<Popover
key={theme.name}
@@ -62,7 +64,7 @@ export function SuggestionThemes({ themes, onSend, disabled }: Props) {
disabled={disabled || loadingPrompt !== null}
className="shrink-0 gap-2 !border-neutral-200 !bg-white px-3 py-2 text-[.9rem]"
>
- {Icon && <Icon size={16} weight="regular" />}
+ {themeIcon && <Icon icon={themeIcon} size={16} />}
{theme.name}
</Button>
</PopoverTrigger>
@@ -78,9 +80,9 @@ export function SuggestionThemes({ themes, onSend, disabled }: Props) {
>
{loadingPrompt === `${theme.name}:${prompt}` ? (
<span className="flex items-center gap-2">
- <SpinnerGapIcon
+ <Icon
+ icon={Loading03Icon}
className="h-4 w-4 animate-spin"
- weight="bold"
/>
{prompt}
</span>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/FileDropZone/FileDropZone.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/FileDropZone/FileDropZone.tsx
index cf8b132518..495d88b72f 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/FileDropZone/FileDropZone.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/FileDropZone/FileDropZone.tsx
@@ -1,8 +1,9 @@
"use client";
import { cn } from "@/lib/utils";
-import { UploadSimple } from "@phosphor-icons/react";
import { useRef, useState } from "react";
+import { Upload03Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
children: React.ReactNode;
@@ -67,7 +68,7 @@ export function FileDropZone({ children, onFilesDropped, className }: Props) {
isDragging ? "opacity-100" : "opacity-0",
)}
>
- <UploadSimple className="h-10 w-10 text-violet-500" weight="bold" />
+ <Icon icon={Upload03Icon} className="h-10 w-10 text-violet-500" />
<span className="text-lg font-medium text-violet-600">
Drop files here
</span>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/MobileDrawer/MobileDrawer.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/MobileDrawer/MobileDrawer.tsx
index 209e10fa1a..923ecc5059 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/MobileDrawer/MobileDrawer.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/MobileDrawer/MobileDrawer.tsx
@@ -6,12 +6,6 @@ import { Separator } from "@/components/ui/separator";
import { useAuth } from "@/lib/auth/hooks/useAuth";
import { cn } from "@/lib/utils";
import { Flag, useGetFlag } from "@/services/feature-flags/use-get-flag";
-import {
- MagnifyingGlass,
- PlusIcon,
- SpinnerGapIcon,
- X,
-} from "@phosphor-icons/react";
import { parseAsString, useQueryState } from "nuqs";
import { useEffect, useRef } from "react";
import { Drawer } from "vaul";
@@ -26,6 +20,13 @@ import { ChatSessionBlock } from "../ChatSessionBlock/ChatSessionBlock";
import { NotificationToggle } from "../ChatSidebar/components/NotificationToggle/NotificationToggle";
import { DeleteChatDialog } from "../DeleteChatDialog/DeleteChatDialog";
import { UsagePopover } from "../UsageLimits/UsagePopover/UsagePopover";
+import {
+ Cancel01Icon,
+ Loading03Icon,
+ PlusSignIcon,
+ Search01Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function MobileDrawer() {
const { isUserLoading, isLoggedIn } = useAuth();
@@ -119,9 +120,9 @@ export function MobileDrawer() {
className="rounded-full text-zinc-600 hover:bg-zinc-100"
>
{isSearchOpen ? (
- <X className="h-4 w-4" />
+ <Icon icon={Cancel01Icon} className="h-4 w-4" />
) : (
- <MagnifyingGlass className="h-4 w-4" />
+ <Icon icon={Search01Icon} className="h-4 w-4" />
)}
</ShadcnButton>
) : null}
@@ -132,7 +133,7 @@ export function MobileDrawer() {
onClick={closeDrawer}
className="ml-3"
>
- <X width="1rem" height="1rem" />
+ <Icon icon={Cancel01Icon} width="1rem" height="1rem" />
</Button>
</div>
</div>
@@ -143,7 +144,9 @@ export function MobileDrawer() {
size="small"
onClick={handleNewChat}
className="w-full"
- leftIcon={<PlusIcon width="1rem" height="1rem" />}
+ leftIcon={
+ <Icon icon={PlusSignIcon} width="1rem" height="1rem" />
+ }
>
New Chat
</Button>
@@ -160,7 +163,10 @@ export function MobileDrawer() {
<div className="flex min-h-0 flex-1 flex-col">
<div className="px-1 pb-3">
<div className="relative">
- <MagnifyingGlass className="pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-zinc-400" />
+ <Icon
+ icon={Search01Icon}
+ className="pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-zinc-400"
+ />
<Input
ref={searchInputRef}
value={query}
@@ -201,7 +207,10 @@ export function MobileDrawer() {
</div>
) : isLoading ? (
<div className="flex items-center justify-center py-4">
- <SpinnerGapIcon className="h-5 w-5 animate-spin text-neutral-400" />
+ <Icon
+ icon={Loading03Icon}
+ className="h-5 w-5 animate-spin text-neutral-400"
+ />
</div>
) : sessions.length === 0 ? (
<p className="py-4 text-center text-sm text-neutral-500">
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/MobileHeader/MobileHeader.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/MobileHeader/MobileHeader.tsx
index c5d85001e0..44b4768de6 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/MobileHeader/MobileHeader.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/MobileHeader/MobileHeader.tsx
@@ -1,8 +1,9 @@
import { Button } from "@/components/atoms/Button/Button";
import { NAVBAR_HEIGHT_PX } from "@/lib/constants";
import { Flag, useGetFlag } from "@/services/feature-flags/use-get-flag";
-import { FolderIcon, ListIcon } from "@phosphor-icons/react";
import { useCopilotUIStore } from "../../store";
+import { Folder01Icon, Menu01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function MobileHeader() {
const setDrawerOpen = useCopilotUIStore((s) => s.setDrawerOpen);
@@ -20,7 +21,7 @@ export function MobileHeader() {
onClick={() => setDrawerOpen(true)}
className="bg-white shadow-md"
>
- <ListIcon width="1.25rem" height="1.25rem" />
+ <Icon icon={Menu01Icon} width="1.25rem" height="1.25rem" />
</Button>
{isContextPanelEnabled && (
<Button
@@ -30,7 +31,7 @@ export function MobileHeader() {
onClick={toggleContextPanel}
className="bg-white shadow-md"
>
- <FolderIcon width="1.25rem" height="1.25rem" />
+ <Icon icon={Folder01Icon} width="1.25rem" height="1.25rem" />
</Button>
)}
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/NotificationBanner/NotificationBanner.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/NotificationBanner/NotificationBanner.tsx
index b5153066b0..2885b72519 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/NotificationBanner/NotificationBanner.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/NotificationBanner/NotificationBanner.tsx
@@ -3,9 +3,13 @@
import { Button } from "@/components/atoms/Button/Button";
import { Alert, AlertDescription } from "@/components/molecules/Alert/Alert";
import { Key, storage } from "@/services/storage/local-storage";
-import { BellRingingIcon, XIcon } from "@phosphor-icons/react";
import { useEffect, useState } from "react";
import { useCopilotUIStore } from "../../store";
+import { BellRingIcon, Cancel01Icon } from "@hugeicons/core-free-icons";
+import { createIconComponent, Icon } from "@/components/atoms/Icon/Icon";
+
+// Alert's `icon` prop takes a component (its defaults come from lucide).
+const BellRing = createIconComponent(BellRingIcon);
export function NotificationBanner() {
const { setNotificationsEnabled, isNotificationsEnabled } =
@@ -53,7 +57,7 @@ export function NotificationBanner() {
}
return (
- <Alert variant="warning" icon={BellRingingIcon} aria-live="polite">
+ <Alert variant="warning" icon={BellRing} aria-live="polite">
<div className="flex flex-wrap items-center gap-3">
<AlertDescription className="min-w-[12rem] flex-1">
Enable browser notifications to know when AutoPilot finishes working,
@@ -70,7 +74,7 @@ export function NotificationBanner() {
title="Dismiss"
className="hover:border-[#FFE4BF] hover:bg-[#FFE4BF]"
>
- <XIcon className="h-4 w-4" />
+ <Icon icon={Cancel01Icon} className="h-4 w-4" />
</Button>
</div>
</Alert>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/NotificationDialog/NotificationDialog.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/NotificationDialog/NotificationDialog.tsx
index 23478e7f3a..f021e8811c 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/NotificationDialog/NotificationDialog.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/NotificationDialog/NotificationDialog.tsx
@@ -4,9 +4,10 @@ import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
import { Key, storage } from "@/services/storage/local-storage";
-import { BellRinging } from "@phosphor-icons/react";
import { useEffect, useState } from "react";
import { useCopilotUIStore } from "../../store";
+import { BellRingIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function NotificationDialog() {
const {
@@ -74,7 +75,7 @@ export function NotificationDialog() {
<Dialog.Content>
<div className="flex flex-col items-center gap-4 py-2">
<div className="flex h-12 w-12 items-center justify-center rounded-full bg-violet-100">
- <BellRinging className="h-6 w-6 text-violet-600" weight="fill" />
+ <Icon icon={BellRingIcon} className="h-6 w-6 text-violet-600" />
</div>
<Text variant="body" className="text-center text-neutral-600">
AutoPilot can notify you when a response is ready, even if you
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/PulseChips/PulseChips.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/PulseChips/PulseChips.tsx
index f369ad0c05..128a59a8da 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/PulseChips/PulseChips.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/PulseChips/PulseChips.tsx
@@ -1,15 +1,16 @@
"use client";
import { Text } from "@/components/atoms/Text/Text";
-import {
- ArrowRightIcon,
- EyeIcon,
- ChatCircleDotsIcon,
-} from "@phosphor-icons/react";
import NextLink from "next/link";
import { StatusBadge } from "@/app/(platform)/library/components/StatusBadge/StatusBadge";
import styles from "./PulseChips.module.css";
import type { PulseChipData } from "./types";
+import {
+ ArrowRight02Icon,
+ Chatting01Icon,
+ EyeIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
chips: PulseChipData[];
@@ -31,7 +32,7 @@ export function PulseChips({ chips, onChipClick }: Props) {
href="/library"
className="flex items-center gap-1 text-xs text-zinc-500 hover:text-zinc-700"
>
- View all <ArrowRightIcon size={12} />
+ View all <Icon icon={ArrowRight02Icon} size={12} />
</NextLink>
</div>
<div className="flex gap-2 overflow-x-auto pb-1 scrollbar-thin scrollbar-track-transparent scrollbar-thumb-zinc-300">
@@ -83,7 +84,7 @@ function PulseChip({ chip, onAsk }: ChipProps) {
href={`/library/agents/${chip.agentID}`}
className="flex items-center gap-1 rounded-md px-2 py-1 text-xs text-zinc-500 transition-colors hover:bg-zinc-100 hover:text-zinc-700"
>
- <EyeIcon size={14} />
+ <Icon icon={EyeIcon} size={14} />
See
</NextLink>
<button
@@ -91,7 +92,7 @@ function PulseChip({ chip, onAsk }: ChipProps) {
onClick={handleAsk}
className="flex items-center gap-1 rounded-md px-2 py-1 text-xs text-zinc-500 transition-colors hover:bg-zinc-100 hover:text-zinc-700"
>
- <ChatCircleDotsIcon size={14} />
+ <Icon icon={Chatting01Icon} size={14} />
Ask
</button>
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/TaskProgressBar/TaskProgressBar.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/TaskProgressBar/TaskProgressBar.tsx
index bf2fe456eb..e16c2e6433 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/TaskProgressBar/TaskProgressBar.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/TaskProgressBar/TaskProgressBar.tsx
@@ -1,11 +1,6 @@
"use client";
import { Text } from "@/components/atoms/Text/Text";
-import {
- CaretDownIcon,
- ListChecksIcon,
- SealCheckIcon,
-} from "@phosphor-icons/react";
import { AnimatePresence, motion, useReducedMotion } from "framer-motion";
import { useState } from "react";
import { EASE_OUT } from "./animations";
@@ -18,6 +13,12 @@ import {
toDisplayStatus,
type TodoItem,
} from "./helpers";
+import {
+ ArrowDown01Icon,
+ CheckListIcon,
+ CheckmarkBadge01Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
// BlurText-style swap for the collapsed header's cycling current task only.
const BLUR_SWAP = {
@@ -77,9 +78,9 @@ export function TaskProgressBar({
<div className="flex min-w-0 flex-1 items-center gap-2">
{allDone ? (
<>
- <SealCheckIcon
+ <Icon
+ icon={CheckmarkBadge01Icon}
size={22}
- weight="fill"
className="flex-shrink-0 text-[#00a656]"
/>
<Text
@@ -111,9 +112,9 @@ export function TaskProgressBar({
</AnimatePresence>
) : (
<>
- <ListChecksIcon
+ <Icon
+ icon={CheckListIcon}
size={16}
- weight="bold"
className="flex-shrink-0 text-zinc-500"
/>
<Text
@@ -136,7 +137,7 @@ export function TaskProgressBar({
}
className="flex-shrink-0 text-zinc-400"
>
- <CaretDownIcon size={14} weight="bold" />
+ <Icon icon={ArrowDown01Icon} size={14} />
</motion.span>
</button>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/TaskProgressBar/components/StatusIcon/StatusIcon.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/TaskProgressBar/components/StatusIcon/StatusIcon.tsx
index 4537a4ef63..6f32e3f0b9 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/TaskProgressBar/components/StatusIcon/StatusIcon.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/TaskProgressBar/components/StatusIcon/StatusIcon.tsx
@@ -1,6 +1,11 @@
import { LoadingSpinner } from "@/components/atoms/LoadingSpinner/LoadingSpinner";
-import { CheckIcon, CircleIcon, PauseCircleIcon } from "@phosphor-icons/react";
import type { DisplayStatus } from "../../helpers";
+import {
+ CircleIcon,
+ PauseCircleIcon,
+ Tick02Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
status: DisplayStatus;
@@ -9,9 +14,9 @@ interface Props {
export function StatusIcon({ status }: Props) {
if (status === "completed") {
return (
- <CheckIcon
+ <Icon
+ icon={Tick02Icon}
size={14}
- weight="bold"
className="text-emerald-500"
aria-label="completed"
/>
@@ -28,18 +33,18 @@ export function StatusIcon({ status }: Props) {
}
if (status === "stopped") {
return (
- <PauseCircleIcon
+ <Icon
+ icon={PauseCircleIcon}
size={15}
- weight="fill"
className="text-amber-500"
aria-label="stopped"
/>
);
}
return (
- <CircleIcon
+ <Icon
+ icon={CircleIcon}
size={14}
- weight="regular"
className="text-zinc-400"
aria-label="pending"
/>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ToolAccordion/ToolAccordion.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ToolAccordion/ToolAccordion.tsx
index 8bdae5722d..442be18254 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ToolAccordion/ToolAccordion.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ToolAccordion/ToolAccordion.tsx
@@ -1,10 +1,11 @@
"use client";
import { cn } from "@/lib/utils";
-import { CaretDownIcon } from "@phosphor-icons/react";
import { AnimatePresence, motion, useReducedMotion } from "framer-motion";
import { useId } from "react";
import { useToolAccordion } from "./useToolAccordion";
+import { ArrowDown01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
icon: React.ReactNode;
@@ -70,12 +71,12 @@ export function ToolAccordion({
)}
</div>
</div>
- <CaretDownIcon
+ <Icon
+ icon={ArrowDown01Icon}
className={cn(
"h-4 w-4 shrink-0 text-slate-500 transition-transform",
isExpanded && "rotate-180",
)}
- weight="bold"
/>
</button>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ToolErrorCard/ToolErrorCard.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ToolErrorCard/ToolErrorCard.tsx
index 7c6942f909..6578070015 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ToolErrorCard/ToolErrorCard.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ToolErrorCard/ToolErrorCard.tsx
@@ -2,7 +2,8 @@
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
-import { WarningDiamondIcon } from "@phosphor-icons/react";
+import { AlertDiamondIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
message?: string;
@@ -26,9 +27,9 @@ export function ToolErrorCard({
return (
<div className="space-y-3 rounded-lg bg-red-50 p-4">
<div className="flex items-start gap-2">
- <WarningDiamondIcon
+ <Icon
+ icon={AlertDiamondIcon}
size={20}
- weight="regular"
className="mt-0.5 shrink-0 text-red-500"
/>
<div className="flex-1 space-y-2">
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/UsageLimits/UsageLimitReachedCard/UsageLimitReachedCard.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/UsageLimits/UsageLimitReachedCard/UsageLimitReachedCard.tsx
index 989338e82d..5f0f2f011d 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/UsageLimits/UsageLimitReachedCard/UsageLimitReachedCard.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/UsageLimits/UsageLimitReachedCard/UsageLimitReachedCard.tsx
@@ -3,7 +3,6 @@
import { Badge } from "@/components/atoms/Badge/Badge";
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
-import { WarningIcon } from "@phosphor-icons/react";
import {
formatTierLabel,
isUsageExhausted,
@@ -12,6 +11,8 @@ import {
import { StorageBar } from "../StorageBar";
import { UsageBar } from "../UsageBar";
import { useUsageLimitReachedCard } from "./useUsageLimitReachedCard";
+import { Alert01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function UsageLimitReachedCard() {
const { usage, isSuccess, isBillingEnabled } = useUsageLimitReachedCard();
@@ -27,7 +28,7 @@ export function UsageLimitReachedCard() {
className="mx-auto flex w-full max-w-[30rem] flex-col gap-4 rounded-2xl border border-orange-100 bg-white/70 p-4 shadow-[0_8px_32px_rgba(0,0,0,0.04)] backdrop-blur-md"
>
<div className="flex items-center gap-2">
- <WarningIcon className="size-5 text-orange-500" weight="fill" />
+ <Icon icon={Alert01Icon} className="size-5 text-orange-500" />
<Text variant="body-medium" className="text-neutral-900">
Usage limit reached
</Text>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/UsageLimits/UsagePopover/UsagePopover.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/UsageLimits/UsagePopover/UsagePopover.tsx
index c00956a333..a055d25c55 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/UsageLimits/UsagePopover/UsagePopover.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/UsageLimits/UsagePopover/UsagePopover.tsx
@@ -8,13 +8,14 @@ import {
PopoverContent,
PopoverTrigger,
} from "@/components/molecules/Popover/Popover";
-import { ChartBarIcon } from "@phosphor-icons/react";
import Link from "next/link";
import type { ReactNode } from "react";
import { formatTierLabel, TIER_BADGE_CLASS_NAME } from "../../usageHelpers";
import { StorageBar } from "../StorageBar";
import { UsageBar } from "../UsageBar";
import { useUsagePopover } from "./useUsagePopover";
+import { Chart01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
trigger?: ReactNode;
@@ -34,7 +35,7 @@ export function UsagePopover({ trigger, align = "start" }: Props) {
<PopoverTrigger asChild>
{trigger ?? (
<Button variant="ghost" size="icon" aria-label="Usage limits">
- <ChartBarIcon className="!size-5" weight="light" />
+ <Icon icon={Chart01Icon} className="!size-5" />
</Button>
)}
</PopoverTrigger>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/sharing/ShareChatDialog.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/sharing/ShareChatDialog.tsx
index ce12bc9843..34a3e1a71e 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/sharing/ShareChatDialog.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/sharing/ShareChatDialog.tsx
@@ -1,11 +1,15 @@
"use client";
-
-import { CheckIcon, CopyIcon, ShareNetworkIcon } from "@phosphor-icons/react";
import { Button } from "@/components/atoms/Button/Button";
import { Switch } from "@/components/atoms/Switch/Switch";
import { Text } from "@/components/atoms/Text/Text";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
import { useShareChatDialog } from "./useShareChatDialog";
+import {
+ Copy01Icon,
+ Share03Icon,
+ Tick02Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type Props = {
sessionId: string;
@@ -104,9 +108,9 @@ export function ShareChatDialog({ sessionId, open, onOpenChange }: Props) {
onClick={state.copyShareUrl}
leftIcon={
state.copied ? (
- <CheckIcon size={14} weight="bold" />
+ <Icon icon={Tick02Icon} size={14} />
) : (
- <CopyIcon size={14} />
+ <Icon icon={Copy01Icon} size={14} />
)
}
>
@@ -142,7 +146,7 @@ export function ShareChatDialog({ sessionId, open, onOpenChange }: Props) {
onClick={state.enable}
loading={state.isEnabling}
disabled={state.isLoadingState}
- leftIcon={<ShareNetworkIcon size={14} />}
+ leftIcon={<Icon icon={Share03Icon} size={14} />}
>
Enable sharing
</Button>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/AskQuestion/AskQuestion.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/AskQuestion/AskQuestion.tsx
index d6beb4c272..e0fe5013f3 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/AskQuestion/AskQuestion.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/AskQuestion/AskQuestion.tsx
@@ -1,6 +1,4 @@
"use client";
-
-import { ChatTeardropDotsIcon, WarningCircleIcon } from "@phosphor-icons/react";
import type { ToolUIPart } from "ai";
import { ClarificationQuestionsCard } from "../../components/ClarificationQuestionsCard/ClarificationQuestionsCard";
import { useCopilotChatActions } from "../../components/CopilotChatActionsProvider/useCopilotChatActions";
@@ -12,6 +10,8 @@ import {
isClarificationOutput,
isErrorOutput,
} from "./helpers";
+import { AlertCircleIcon, Chatting01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
part: ToolUIPart;
@@ -53,11 +53,11 @@ export function AskQuestionTool({ part }: Props) {
return (
<div className="flex items-center gap-2 py-2 text-sm text-muted-foreground">
{isError || (output && isErrorOutput(output)) ? (
- <WarningCircleIcon size={16} className="text-red-500" />
+ <Icon icon={AlertCircleIcon} size={16} className="text-red-500" />
) : isStreaming ? (
- <ChatTeardropDotsIcon size={16} className="animate-pulse" />
+ <Icon icon={Chatting01Icon} size={16} className="animate-pulse" />
) : (
- <ChatTeardropDotsIcon size={16} />
+ <Icon icon={Chatting01Icon} size={16} />
)}
<MorphingTextAnimation
text={text}
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/CreateAgent/components/SuggestedGoalCard.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/CreateAgent/components/SuggestedGoalCard.tsx
index 9de4240881..39e49db6a2 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/CreateAgent/components/SuggestedGoalCard.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/CreateAgent/components/SuggestedGoalCard.tsx
@@ -2,7 +2,8 @@
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
-import { ArrowRightIcon, LightbulbIcon } from "@phosphor-icons/react";
+import { ArrowRight02Icon, BulbIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
message: string;
@@ -22,11 +23,7 @@ export function SuggestedGoalCard({
return (
<div className="rounded-xl border border-amber-200 bg-amber-50/50 p-4">
<div className="flex items-start gap-3">
- <LightbulbIcon
- size={20}
- weight="fill"
- className="mt-0.5 text-amber-600"
- />
+ <Icon icon={BulbIcon} size={20} className="mt-0.5 text-amber-600" />
<div className="flex-1 space-y-3">
<div>
<Text variant="body-medium" className="font-medium text-slate-900">
@@ -53,7 +50,7 @@ export function SuggestedGoalCard({
variant="primary"
>
<span className="inline-flex items-center gap-1.5">
- Use this goal <ArrowRightIcon size={14} weight="bold" />
+ Use this goal <Icon icon={ArrowRight02Icon} size={14} />
</span>
</Button>
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/CreateAgent/helpers.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/CreateAgent/helpers.tsx
index 553bfcbc6c..552c06766a 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/CreateAgent/helpers.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/CreateAgent/helpers.tsx
@@ -3,13 +3,14 @@ import type { AgentSavedResponse } from "@/app/api/__generated__/models/agentSav
import type { ErrorResponse } from "@/app/api/__generated__/models/errorResponse";
import { ResponseType } from "@/app/api/__generated__/models/responseType";
import type { SuggestedGoalResponse } from "@/app/api/__generated__/models/suggestedGoalResponse";
-import {
- PlusCircleIcon,
- PlusIcon,
- WarningDiamondIcon,
-} from "@phosphor-icons/react";
import type { ToolUIPart } from "ai";
import { ScaleLoader } from "../../components/ScaleLoader/ScaleLoader";
+import {
+ AlertDiamondIcon,
+ PlusSignCircleIcon,
+ PlusSignIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export type CreateAgentToolOutput =
| AgentPreviewResponse
@@ -119,18 +120,16 @@ export function ToolIcon({
isError?: boolean;
}) {
if (isError) {
- return (
- <WarningDiamondIcon size={14} weight="regular" className="text-red-500" />
- );
+ return <Icon icon={AlertDiamondIcon} size={14} className="text-red-500" />;
}
if (isStreaming) {
return <ScaleLoader size={14} />;
}
- return <PlusIcon size={14} weight="regular" className="text-neutral-400" />;
+ return <Icon icon={PlusSignIcon} size={14} className="text-neutral-400" />;
}
export function AccordionIcon() {
- return <PlusCircleIcon size={32} weight="light" />;
+ return <Icon icon={PlusSignCircleIcon} size={32} />;
}
export function formatMaybeJson(value: unknown): string {
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/DecomposeGoal/components/StepItem.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/DecomposeGoal/components/StepItem.tsx
index cb4f9810a3..d450fb6d4c 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/DecomposeGoal/components/StepItem.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/DecomposeGoal/components/StepItem.tsx
@@ -1,8 +1,9 @@
"use client";
import { Text } from "@/components/atoms/Text/Text";
-import { CubeIcon } from "@phosphor-icons/react";
import { StepStatusIcon } from "../helpers";
+import { CubeIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
index: number;
@@ -23,7 +24,7 @@ export function StepItem({ index, description, blockName, status }: Props) {
</Text>
{blockName && (
<div className="mt-0.5 flex items-center gap-1">
- <CubeIcon size={12} className="text-muted-foreground" />
+ <Icon icon={CubeIcon} size={12} className="text-muted-foreground" />
<Text
variant="small"
className="font-mono text-xs text-muted-foreground"
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/DecomposeGoal/helpers.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/DecomposeGoal/helpers.tsx
index fca9c5b1b2..4e5f813cc0 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/DecomposeGoal/helpers.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/DecomposeGoal/helpers.tsx
@@ -1,16 +1,17 @@
"use client";
import type { DecompositionStepModel } from "@/app/api/__generated__/models/decompositionStepModel";
-import {
- CheckCircleIcon,
- CircleDashedIcon,
- ListChecksIcon,
- SpinnerGapIcon,
- WarningDiamondIcon,
- XCircleIcon,
-} from "@phosphor-icons/react";
import type { ToolUIPart } from "ai";
import { ScaleLoader } from "../../components/ScaleLoader/ScaleLoader";
+import {
+ AlertDiamondIcon,
+ CancelCircleIcon,
+ CheckListIcon,
+ CheckmarkCircle02Icon,
+ CircleDashedIcon,
+ Loading03Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
// Re-export generated step type for consumers that need it.
export type DecompositionStep = DecompositionStepModel;
@@ -118,56 +119,52 @@ export function ToolIcon({
isError?: boolean;
}) {
if (isError) {
- return (
- <WarningDiamondIcon size={14} weight="regular" className="text-red-500" />
- );
+ return <Icon icon={AlertDiamondIcon} size={14} className="text-red-500" />;
}
if (isStreaming) {
return <ScaleLoader size={14} />;
}
- return (
- <ListChecksIcon size={14} weight="regular" className="text-neutral-400" />
- );
+ return <Icon icon={CheckListIcon} size={14} className="text-neutral-400" />;
}
export function AccordionIcon() {
- return <ListChecksIcon size={32} weight="light" />;
+ return <Icon icon={CheckListIcon} size={32} />;
}
export function StepStatusIcon({ status }: { status: string }) {
switch (status) {
case "completed":
return (
- <CheckCircleIcon
+ <Icon
+ icon={CheckmarkCircle02Icon}
size={18}
- weight="fill"
className="text-emerald-500"
aria-label="completed"
/>
);
case "in_progress":
return (
- <SpinnerGapIcon
+ <Icon
+ icon={Loading03Icon}
size={18}
- weight="bold"
className="animate-spin text-blue-500"
aria-label="in progress"
/>
);
case "failed":
return (
- <XCircleIcon
+ <Icon
+ icon={CancelCircleIcon}
size={18}
- weight="fill"
className="text-red-500"
aria-label="failed"
/>
);
default:
return (
- <CircleDashedIcon
+ <Icon
+ icon={CircleDashedIcon}
size={18}
- weight="regular"
className="text-neutral-400"
aria-label="pending"
/>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/EditAgent/helpers.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/EditAgent/helpers.tsx
index a555cd5baf..224b610b6a 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/EditAgent/helpers.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/EditAgent/helpers.tsx
@@ -2,13 +2,14 @@ import type { AgentPreviewResponse } from "@/app/api/__generated__/models/agentP
import type { AgentSavedResponse } from "@/app/api/__generated__/models/agentSavedResponse";
import type { ErrorResponse } from "@/app/api/__generated__/models/errorResponse";
import { ResponseType } from "@/app/api/__generated__/models/responseType";
-import {
- NotePencilIcon,
- PencilLineIcon,
- WarningDiamondIcon,
-} from "@phosphor-icons/react";
import type { ToolUIPart } from "ai";
import { ScaleLoader } from "../../components/ScaleLoader/ScaleLoader";
+import {
+ AlertDiamondIcon,
+ NoteEditIcon,
+ PencilEdit01Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export type EditAgentToolOutput =
| AgentPreviewResponse
@@ -106,20 +107,18 @@ export function ToolIcon({
isError?: boolean;
}) {
if (isError) {
- return (
- <WarningDiamondIcon size={14} weight="regular" className="text-red-500" />
- );
+ return <Icon icon={AlertDiamondIcon} size={14} className="text-red-500" />;
}
if (isStreaming) {
return <ScaleLoader size={14} />;
}
return (
- <PencilLineIcon size={14} weight="regular" className="text-neutral-400" />
+ <Icon icon={PencilEdit01Icon} size={14} className="text-neutral-400" />
);
}
export function AccordionIcon() {
- return <NotePencilIcon size={32} weight="light" />;
+ return <Icon icon={NoteEditIcon} size={32} />;
}
export function formatMaybeJson(value: unknown): string {
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/FeatureRequests/helpers.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/FeatureRequests/helpers.tsx
index 75133905b1..268b263215 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/FeatureRequests/helpers.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/FeatureRequests/helpers.tsx
@@ -1,10 +1,11 @@
-import {
- CheckCircleIcon,
- LightbulbIcon,
- MagnifyingGlassIcon,
- PlusCircleIcon,
-} from "@phosphor-icons/react";
import type { ToolUIPart } from "ai";
+import {
+ BulbIcon,
+ CheckmarkCircle02Icon,
+ PlusSignCircleIcon,
+ Search01Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
/* ------------------------------------------------------------------ */
/* Types (local until API client is regenerated) */
@@ -238,15 +239,15 @@ export function ToolIcon({
isStreaming?: boolean;
isError?: boolean;
}) {
- const IconComponent =
+ const icon =
toolType === "tool-create_feature_request"
- ? PlusCircleIcon
- : MagnifyingGlassIcon;
+ ? PlusSignCircleIcon
+ : Search01Icon;
return (
- <IconComponent
+ <Icon
+ icon={icon}
size={14}
- weight="regular"
className={
isError
? "text-red-500"
@@ -263,9 +264,9 @@ export function AccordionIcon({
}: {
toolType: FeatureRequestToolType;
}) {
- const IconComponent =
+ const icon =
toolType === "tool-create_feature_request"
- ? CheckCircleIcon
- : LightbulbIcon;
- return <IconComponent size={32} weight="light" />;
+ ? CheckmarkCircle02Icon
+ : BulbIcon;
+ return <Icon icon={icon} size={32} />;
}
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/FindAgents/helpers.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/FindAgents/helpers.tsx
index f253947953..16341a60d1 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/FindAgents/helpers.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/FindAgents/helpers.tsx
@@ -3,13 +3,14 @@ import type { AgentsFoundResponse } from "@/app/api/__generated__/models/agentsF
import type { ErrorResponse } from "@/app/api/__generated__/models/errorResponse";
import type { NoResultsResponse } from "@/app/api/__generated__/models/noResultsResponse";
import { ResponseType } from "@/app/api/__generated__/models/responseType";
+import { ToolUIPart } from "ai";
import {
FolderOpenIcon,
- MagnifyingGlassIcon,
- SquaresFourIcon,
- StorefrontIcon,
-} from "@phosphor-icons/react";
-import { ToolUIPart } from "ai";
+ GridViewIcon,
+ Search01Icon,
+ Store01Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export interface FindAgentInput {
query: string;
@@ -162,13 +163,12 @@ export function ToolIcon({
isError?: boolean;
}) {
const { source } = getSourceLabelFromToolType(toolType);
- const IconComponent =
- source === "library" ? MagnifyingGlassIcon : SquaresFourIcon;
+ const icon = source === "library" ? Search01Icon : GridViewIcon;
return (
- <IconComponent
+ <Icon
+ icon={icon}
size={14}
- weight="regular"
className={
isError
? "text-red-500"
@@ -182,6 +182,6 @@ export function ToolIcon({
export function AccordionIcon({ toolType }: { toolType?: FindAgentsToolType }) {
const { source } = getSourceLabelFromToolType(toolType);
- const IconComponent = source === "library" ? FolderOpenIcon : StorefrontIcon;
- return <IconComponent size={32} weight="light" />;
+ const icon = source === "library" ? FolderOpenIcon : Store01Icon;
+ return <Icon icon={icon} size={32} />;
}
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/FindBlocks/helpers.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/FindBlocks/helpers.tsx
index dd56389856..6c834c0d0f 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/FindBlocks/helpers.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/FindBlocks/helpers.tsx
@@ -1,7 +1,8 @@
import type { BlockListResponse } from "@/app/api/__generated__/models/blockListResponse";
import { ResponseType } from "@/app/api/__generated__/models/responseType";
-import { CubeIcon, PackageIcon } from "@phosphor-icons/react";
import { FindBlockInput, FindBlockToolPart } from "./FindBlocks";
+import { CubeIcon, Package01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function parseOutput(output: unknown): BlockListResponse | null {
if (!output) return null;
@@ -56,9 +57,9 @@ export function ToolIcon({
isError?: boolean;
}) {
return (
- <PackageIcon
+ <Icon
+ icon={Package01Icon}
size={14}
- weight="regular"
className={
isError
? "text-red-500"
@@ -71,5 +72,5 @@ export function ToolIcon({
}
export function AccordionIcon() {
- return <CubeIcon size={32} weight="light" />;
+ return <Icon icon={CubeIcon} size={32} />;
}
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/FolderTool/FolderTool.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/FolderTool/FolderTool.tsx
index a7d5d9d790..615f0ff444 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/FolderTool/FolderTool.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/FolderTool/FolderTool.tsx
@@ -1,14 +1,6 @@
"use client";
import type { ToolUIPart } from "ai";
-import {
- FileIcon,
- FolderIcon,
- FolderPlusIcon,
- FoldersIcon,
- TrashIcon,
- WarningDiamondIcon,
-} from "@phosphor-icons/react";
import {
File as TreeFile,
Folder as TreeFolder,
@@ -40,6 +32,16 @@ import {
type FolderToolOutput,
type FolderTreeInfo,
} from "./helpers";
+import {
+ AlertDiamondIcon,
+ Delete02Icon,
+ FileEmpty02Icon,
+ Folder01Icon,
+ FolderAddIcon,
+ FolderLibraryIcon,
+ FolderOpenIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
part: ToolUIPart;
@@ -57,14 +59,12 @@ function ToolStatusIcon({
isError: boolean;
}) {
if (isError) {
- return (
- <WarningDiamondIcon size={14} weight="regular" className="text-red-500" />
- );
+ return <Icon icon={AlertDiamondIcon} size={14} className="text-red-500" />;
}
if (isStreaming) {
return <OrbitLoader size={14} />;
}
- return <FolderIcon size={14} weight="regular" className="text-neutral-400" />;
+ return <Icon icon={Folder01Icon} size={14} className="text-neutral-400" />;
}
/* ------------------------------------------------------------------ */
@@ -82,7 +82,7 @@ function FolderCard({ folder }: { folder: FolderInfo }) {
style={{ backgroundColor: folder.color }}
/>
) : (
- <FolderIcon size={14} weight="fill" className="text-neutral-600" />
+ <Icon icon={Folder01Icon} size={14} className="text-neutral-600" />
)}
<ContentCardTitle>{folder.name}</ContentCardTitle>
</div>
@@ -96,9 +96,9 @@ function FolderCard({ folder }: { folder: FolderInfo }) {
<div className="mt-2 space-y-1 border-t border-neutral-200 pt-2">
{folder.agents.map((a) => (
<div key={a.id} className="flex items-center gap-1.5">
- <FileIcon
+ <Icon
+ icon={FileEmpty02Icon}
size={12}
- weight="duotone"
className="text-neutral-600"
/>
<span className="text-xs text-zinc-600">{a.name}</span>
@@ -147,10 +147,10 @@ function FolderTreeView({ tree }: { tree: FolderTreeInfo[] }) {
initialExpandedItems={allIDs}
elements={elements}
openIcon={
- <FolderIcon size={16} weight="fill" className="text-neutral-600" />
+ <Icon icon={FolderOpenIcon} size={16} className="text-neutral-600" />
}
closeIcon={
- <FolderIcon size={16} weight="duotone" className="text-neutral-600" />
+ <Icon icon={Folder01Icon} size={16} className="text-neutral-600" />
}
className="max-h-64"
>
@@ -167,7 +167,7 @@ function FolderTreeNodes({ element }: { element: TreeNode }) {
<TreeFile
value={element.id}
fileIcon={
- <FileIcon size={14} weight="duotone" className="text-neutral-600" />
+ <Icon icon={FileEmpty02Icon} size={14} className="text-neutral-600" />
}
>
<span className="text-sm text-zinc-700">{element.name}</span>
@@ -253,11 +253,10 @@ function getAccordionTitle(output: FolderToolOutput): string {
}
function getAccordionIcon(output: FolderToolOutput) {
- if (isFolderCreated(output))
- return <FolderPlusIcon size={32} weight="light" />;
- if (isFolderList(output)) return <FoldersIcon size={32} weight="light" />;
- if (isFolderDeleted(output)) return <TrashIcon size={32} weight="light" />;
- return <FolderIcon size={32} weight="light" />;
+ if (isFolderCreated(output)) return <Icon icon={FolderAddIcon} size={32} />;
+ if (isFolderList(output)) return <Icon icon={FolderLibraryIcon} size={32} />;
+ if (isFolderDeleted(output)) return <Icon icon={Delete02Icon} size={32} />;
+ return <Icon icon={Folder01Icon} size={32} />;
}
export function FolderTool({ part }: Props) {
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/FolderTool/__tests__/FolderTool.test.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/FolderTool/__tests__/FolderTool.test.tsx
new file mode 100644
index 0000000000..78d5e0c88f
--- /dev/null
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/FolderTool/__tests__/FolderTool.test.tsx
@@ -0,0 +1,172 @@
+import { afterEach, describe, expect, it } from "vitest";
+import { cleanup, fireEvent, render, screen } from "@testing-library/react";
+import type { ToolUIPart } from "ai";
+import { FolderTool } from "../FolderTool";
+
+afterEach(cleanup);
+
+const FOLDER = {
+ id: "f1",
+ name: "Research",
+ agent_count: 2,
+ subfolder_count: 0,
+};
+
+function makePart(output: unknown, state = "output-available") {
+ return {
+ type: "tool-folder_tool",
+ toolCallId: "call-folder",
+ state,
+ input: {},
+ output,
+ } as unknown as ToolUIPart;
+}
+
+// The status and accordion glyphs are picked by branching on the output type.
+// A wrong or undefined icon import renders an empty <svg> instead of throwing,
+// so compare the drawn geometry rather than asserting the element exists.
+function glyphs(root: HTMLElement) {
+ return Array.from(root.querySelectorAll("svg"))
+ .map((svg) =>
+ Array.from(svg.querySelectorAll("path,circle,rect,line,polyline"))
+ .map((n) => n.getAttribute("d") ?? n.outerHTML)
+ .join("|"),
+ )
+ .filter(Boolean);
+}
+
+function renderTool(output: unknown, state?: string) {
+ return render(<FolderTool part={makePart(output, state)} />);
+}
+
+function statusGlyph(output: unknown, state?: string) {
+ const { container, unmount } = renderTool(output, state);
+ const g = glyphs(container)[0];
+ unmount();
+ return g;
+}
+
+describe("FolderTool status icon", () => {
+ it("shows the folder glyph once the call has settled", () => {
+ const glyph = statusGlyph({
+ type: "folder_created",
+ message: "Created",
+ folder: FOLDER,
+ });
+ expect(glyph).toBeTruthy();
+ });
+
+ it("swaps in the alert glyph when the part itself errored", () => {
+ const ok = statusGlyph({
+ type: "folder_created",
+ message: "Created",
+ folder: FOLDER,
+ });
+ const failed = statusGlyph(
+ { type: "folder_created", message: "Created", folder: FOLDER },
+ "output-error",
+ );
+
+ expect(failed).toBeTruthy();
+ expect(failed).not.toBe(ok);
+ });
+
+ it("treats an error-shaped output as an error even when the part succeeded", () => {
+ const failed = statusGlyph({ type: "error", message: "nope" });
+ const errored = statusGlyph(
+ { type: "folder_created", message: "Created", folder: FOLDER },
+ "output-error",
+ );
+
+ expect(failed).toBe(errored);
+ });
+
+ it("renders no accordion for an error output", () => {
+ renderTool({ type: "error", message: "nope" });
+ expect(screen.queryByRole("button")).toBeNull();
+ });
+});
+
+describe("FolderTool accordion icon", () => {
+ function accordionGlyph(output: unknown) {
+ const { container, unmount } = renderTool(output);
+ const drawn = glyphs(container);
+ // [0] is the status row; the accordion header glyph follows it.
+ expect(drawn.length).toBeGreaterThanOrEqual(2);
+ const g = drawn[1];
+ unmount();
+ return g;
+ }
+
+ it("gives create, list, delete and move their own glyphs", () => {
+ const created = accordionGlyph({
+ type: "folder_created",
+ message: "Created",
+ folder: FOLDER,
+ });
+ const listed = accordionGlyph({
+ type: "folder_list",
+ message: "Listed",
+ folders: [FOLDER],
+ count: 1,
+ });
+ const deleted = accordionGlyph({
+ type: "folder_deleted",
+ message: "Deleted",
+ folder_id: "f1",
+ });
+ const moved = accordionGlyph({
+ type: "folder_moved",
+ message: "Moved",
+ folder: FOLDER,
+ });
+
+ const all = [created, listed, deleted, moved];
+ all.forEach((g) => expect(g).toBeTruthy());
+ expect(new Set(all).size).toBe(all.length);
+ });
+
+ it("falls back to the plain folder glyph for updates", () => {
+ const updated = accordionGlyph({
+ type: "folder_updated",
+ message: "Renamed",
+ folder: FOLDER,
+ });
+ const moved = accordionGlyph({
+ type: "folder_moved",
+ message: "Moved",
+ folder: FOLDER,
+ });
+
+ expect(updated).toBe(moved);
+ });
+});
+
+describe("FolderTool tree icons", () => {
+ it("uses different glyphs for expanded and collapsed folders", () => {
+ renderTool({
+ type: "folder_list",
+ message: "Listed",
+ folders: [],
+ tree: [
+ {
+ ...FOLDER,
+ children: [],
+ agents: [{ id: "a1", name: "Agent" }],
+ },
+ ],
+ count: 1,
+ });
+ const folderButton = screen.getByRole("button", {
+ name: /Research \(2 agents\)/,
+ });
+ const expandedGlyph = glyphs(folderButton)[0];
+
+ fireEvent.click(folderButton);
+
+ const collapsedGlyph = glyphs(folderButton)[0];
+ expect(expandedGlyph).toBeTruthy();
+ expect(collapsedGlyph).toBeTruthy();
+ expect(collapsedGlyph).not.toBe(expandedGlyph);
+ });
+});
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/GenericTool/GenericTool.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/GenericTool/GenericTool.tsx
index 7af6896912..b884192d3a 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/GenericTool/GenericTool.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/GenericTool/GenericTool.tsx
@@ -2,24 +2,6 @@
import React from "react";
import { ToolUIPart } from "ai";
-import {
- ArrowsClockwiseIcon,
- CheckCircleIcon,
- CircleDashedIcon,
- CircleIcon,
- FileIcon,
- FilesIcon,
- GearIcon,
- GlobeIcon,
- ListChecksIcon,
- MagnifyingGlassIcon,
- MonitorIcon,
- PencilSimpleIcon,
- RobotIcon,
- TerminalIcon,
- TrashIcon,
- WarningDiamondIcon,
-} from "@phosphor-icons/react";
import { cn } from "@/lib/utils";
import { MorphingTextAnimation } from "../../components/MorphingTextAnimation/MorphingTextAnimation";
import { ToolAccordion } from "../../components/ToolAccordion/ToolAccordion";
@@ -41,6 +23,25 @@ import {
getToolCategory,
truncate,
} from "./helpers";
+import {
+ AlertDiamondIcon,
+ CheckListIcon,
+ CheckmarkCircle02Icon,
+ CircleDashedIcon,
+ CircleIcon,
+ ComputerIcon,
+ Delete02Icon,
+ FileEmpty02Icon,
+ Files01Icon,
+ Globe02Icon,
+ PencilIcon,
+ ReloadIcon,
+ Robot01Icon,
+ Search01Icon,
+ Settings01Icon,
+ TerminalIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
part: ToolUIPart;
@@ -72,9 +73,7 @@ function ToolIcon({
isError: boolean;
}) {
if (isError) {
- return (
- <WarningDiamondIcon size={14} weight="regular" className="text-red-500" />
- );
+ return <Icon icon={AlertDiamondIcon} size={14} className="text-red-500" />;
}
if (isStreaming) {
return <OrbitLoader size={14} />;
@@ -83,39 +82,31 @@ function ToolIcon({
const iconClass = "text-green-500";
switch (category) {
case "bash":
- return <TerminalIcon size={14} weight="regular" className={iconClass} />;
+ return <Icon icon={TerminalIcon} size={14} className={iconClass} />;
case "web":
- return <GlobeIcon size={14} weight="regular" className={iconClass} />;
+ return <Icon icon={Globe02Icon} size={14} className={iconClass} />;
case "browser":
- return <MonitorIcon size={14} weight="regular" className={iconClass} />;
+ return <Icon icon={ComputerIcon} size={14} className={iconClass} />;
case "file-read":
- return <FileIcon size={14} weight="regular" className={iconClass} />;
+ return <Icon icon={FileEmpty02Icon} size={14} className={iconClass} />;
case "file-write":
- return <FileIcon size={14} weight="regular" className={iconClass} />;
+ return <Icon icon={FileEmpty02Icon} size={14} className={iconClass} />;
case "file-delete":
- return <TrashIcon size={14} weight="regular" className={iconClass} />;
+ return <Icon icon={Delete02Icon} size={14} className={iconClass} />;
case "file-list":
- return <FilesIcon size={14} weight="regular" className={iconClass} />;
+ return <Icon icon={Files01Icon} size={14} className={iconClass} />;
case "search":
- return (
- <MagnifyingGlassIcon size={14} weight="regular" className={iconClass} />
- );
+ return <Icon icon={Search01Icon} size={14} className={iconClass} />;
case "edit":
- return (
- <PencilSimpleIcon size={14} weight="regular" className={iconClass} />
- );
+ return <Icon icon={PencilIcon} size={14} className={iconClass} />;
case "todo":
- return (
- <ListChecksIcon size={14} weight="regular" className={iconClass} />
- );
+ return <Icon icon={CheckListIcon} size={14} className={iconClass} />;
case "compaction":
- return (
- <ArrowsClockwiseIcon size={14} weight="regular" className={iconClass} />
- );
+ return <Icon icon={ReloadIcon} size={14} className={iconClass} />;
case "agent":
- return <RobotIcon size={14} weight="regular" className={iconClass} />;
+ return <Icon icon={Robot01Icon} size={14} className={iconClass} />;
default:
- return <GearIcon size={14} weight="regular" className={iconClass} />;
+ return <Icon icon={Settings01Icon} size={14} className={iconClass} />;
}
}
@@ -126,30 +117,30 @@ function ToolIcon({
function AccordionIcon({ category }: { category: ToolCategory }) {
switch (category) {
case "bash":
- return <TerminalIcon size={32} weight="light" />;
+ return <Icon icon={TerminalIcon} size={32} />;
case "web":
- return <GlobeIcon size={32} weight="light" />;
+ return <Icon icon={Globe02Icon} size={32} />;
case "browser":
- return <MonitorIcon size={32} weight="light" />;
+ return <Icon icon={ComputerIcon} size={32} />;
case "file-read":
case "file-write":
- return <FileIcon size={32} weight="light" />;
+ return <Icon icon={FileEmpty02Icon} size={32} />;
case "file-delete":
- return <TrashIcon size={32} weight="light" />;
+ return <Icon icon={Delete02Icon} size={32} />;
case "file-list":
- return <FilesIcon size={32} weight="light" />;
+ return <Icon icon={Files01Icon} size={32} />;
case "search":
- return <MagnifyingGlassIcon size={32} weight="light" />;
+ return <Icon icon={Search01Icon} size={32} />;
case "edit":
- return <PencilSimpleIcon size={32} weight="light" />;
+ return <Icon icon={PencilIcon} size={32} />;
case "todo":
- return <ListChecksIcon size={32} weight="light" />;
+ return <Icon icon={CheckListIcon} size={32} />;
case "compaction":
- return <ArrowsClockwiseIcon size={32} weight="light" />;
+ return <Icon icon={ReloadIcon} size={32} />;
case "agent":
- return <RobotIcon size={32} weight="light" />;
+ return <Icon icon={Robot01Icon} size={32} />;
default:
- return <GearIcon size={32} weight="light" />;
+ return <Icon icon={Settings01Icon} size={32} />;
}
}
@@ -604,21 +595,21 @@ function getTodoAccordionData(input: unknown): AccordionData {
<div key={i} className="flex items-start gap-2 text-xs">
<span className="mt-0.5 flex-shrink-0">
{todo.status === "completed" ? (
- <CheckCircleIcon
+ <Icon
+ icon={CheckmarkCircle02Icon}
size={14}
- weight="fill"
className="text-green-500"
/>
) : todo.status === "in_progress" ? (
- <CircleDashedIcon
+ <Icon
+ icon={CircleDashedIcon}
size={14}
- weight="bold"
className="text-blue-500"
/>
) : (
- <CircleIcon
+ <Icon
+ icon={CircleIcon}
size={14}
- weight="regular"
className="text-neutral-400"
/>
)}
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/GenericTool/__tests__/GenericTool.test.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/GenericTool/__tests__/GenericTool.test.tsx
index 61339eeac2..8543d5b581 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/GenericTool/__tests__/GenericTool.test.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/GenericTool/__tests__/GenericTool.test.tsx
@@ -335,3 +335,104 @@ describe("GenericTool", () => {
});
});
});
+
+// Every tool category maps to its own Hugeicons glyph in both the status row
+// (ToolIcon) and the accordion header (AccordionIcon). The icon is picked by a
+// switch on the category, so a mis-mapped or undefined import silently renders
+// nothing rather than failing loudly — assert on the glyph geometry.
+describe("GenericTool icons", () => {
+ const CATEGORY_TOOLS: [string, string][] = [
+ ["bash", "bash_exec"],
+ ["web", "web_search"],
+ ["browser", "browser_navigate"],
+ ["file-read", "read_file"],
+ ["file-write", "write_file"],
+ ["file-delete", "delete_workspace_file"],
+ ["file-list", "glob"],
+ ["search", "grep"],
+ ["edit", "edit_file"],
+ ["todo", "TodoWrite"],
+ ["agent", "Agent"],
+ ["other", "some_unknown_tool"],
+ ];
+
+ function iconShapes(root: HTMLElement) {
+ return Array.from(root.querySelectorAll("svg")).map((svg) =>
+ Array.from(svg.querySelectorAll("path,circle,rect,line,polyline"))
+ .map((n) => n.getAttribute("d") ?? n.outerHTML)
+ .join("|"),
+ );
+ }
+
+ function renderCategory(toolName: string) {
+ return render(
+ <GenericTool
+ part={
+ {
+ type: `tool-${toolName}`,
+ toolCallId: "call-icons",
+ state: "output-available",
+ input: { command: "x", todos: [], path: "a.txt", query: "q" },
+ output: { message: "done" },
+ } as unknown as ToolUIPart
+ }
+ />,
+ );
+ }
+
+ it.each(CATEGORY_TOOLS)(
+ "renders a status icon and an accordion icon for the %s category",
+ (_category, toolName) => {
+ const { container } = renderCategory(toolName);
+ const shapes = iconShapes(container).filter(Boolean);
+ // One for the status row, one for the accordion header.
+ expect(shapes.length).toBeGreaterThanOrEqual(2);
+ },
+ );
+
+ it("gives each tool category a distinct glyph", () => {
+ const seen = new Map<string, string>();
+ for (const [category, toolName] of CATEGORY_TOOLS) {
+ const { container, unmount } = renderCategory(toolName);
+ const shape = iconShapes(container).filter(Boolean)[0];
+ expect(shape).toBeTruthy();
+ seen.set(category, shape);
+ unmount();
+ }
+ // file-read and file-write intentionally share the "file" glyph; every
+ // other category must be visually distinguishable from the rest.
+ const shapes = [...seen.entries()]
+ .filter(([c]) => c !== "file-write")
+ .map(([, s]) => s);
+ expect(new Set(shapes).size).toBe(shapes.length);
+ });
+
+ it("renders the compaction icon without an accordion", () => {
+ const { container } = renderCategory("context_compaction");
+ expect(iconShapes(container).filter(Boolean).length).toBe(1);
+ expect(screen.queryByRole("button")).toBeNull();
+ });
+
+ it("swaps in the alert glyph when the tool errored", () => {
+ const { container: ok } = renderCategory("bash_exec");
+ const okShape = iconShapes(ok).filter(Boolean)[0];
+
+ const { container: bad } = render(
+ <GenericTool
+ part={
+ {
+ type: "tool-bash_exec",
+ toolCallId: "call-err",
+ state: "output-error",
+ input: { command: "x" },
+ output: { message: "boom" },
+ } as unknown as ToolUIPart
+ }
+ />,
+ );
+ const badShape = iconShapes(bad).filter(Boolean)[0];
+
+ expect(badShape).toBeTruthy();
+ expect(badShape).not.toBe(okShape);
+ });
+});
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/RunAgent/helpers.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/RunAgent/helpers.tsx
index 46dac24081..c4b3a5cd86 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/RunAgent/helpers.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/RunAgent/helpers.tsx
@@ -5,13 +5,14 @@ import type { ExecutionStartedResponse } from "@/app/api/__generated__/models/ex
import type { NeedLoginResponse } from "@/app/api/__generated__/models/needLoginResponse";
import { ResponseType } from "@/app/api/__generated__/models/responseType";
import type { SetupRequirementsResponse } from "@/app/api/__generated__/models/setupRequirementsResponse";
-import {
- PlayIcon,
- RocketLaunchIcon,
- WarningDiamondIcon,
-} from "@phosphor-icons/react";
import type { ToolUIPart } from "ai";
import { ScaleLoader } from "../../components/ScaleLoader/ScaleLoader";
+import {
+ AlertDiamondIcon,
+ PlayIcon,
+ Rocket01Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export interface RunAgentInput {
username_agent_slug?: string;
@@ -188,18 +189,16 @@ export function ToolIcon({
isError?: boolean;
}) {
if (isError) {
- return (
- <WarningDiamondIcon size={14} weight="regular" className="text-red-500" />
- );
+ return <Icon icon={AlertDiamondIcon} size={14} className="text-red-500" />;
}
if (isStreaming) {
return <ScaleLoader size={14} />;
}
- return <PlayIcon size={14} weight="regular" className="text-neutral-400" />;
+ return <Icon icon={PlayIcon} size={14} className="text-neutral-400" />;
}
export function AccordionIcon() {
- return <RocketLaunchIcon size={28} weight="light" />;
+ return <Icon icon={Rocket01Icon} size={28} />;
}
export function formatMaybeJson(value: unknown): string {
@@ -271,9 +270,7 @@ export function getAccordionMeta(output: RunAgentToolOutput): {
}
return {
- icon: (
- <WarningDiamondIcon size={28} weight="light" className="text-red-500" />
- ),
+ icon: <Icon icon={AlertDiamondIcon} size={28} className="text-red-500" />,
title: "Error",
titleClassName: "text-red-500",
};
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/RunBlock/helpers.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/RunBlock/helpers.tsx
index a64de193dd..1588b6e0f9 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/RunBlock/helpers.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/RunBlock/helpers.tsx
@@ -4,13 +4,14 @@ import type { ErrorResponse } from "@/app/api/__generated__/models/errorResponse
import { ResponseType } from "@/app/api/__generated__/models/responseType";
import type { SetupRequirementsResponse } from "@/app/api/__generated__/models/setupRequirementsResponse";
import { beautifyString } from "@/lib/utils";
+import type { ToolUIPart } from "ai";
+import { ScaleLoader } from "../../components/ScaleLoader/ScaleLoader";
import {
+ AlertDiamondIcon,
PlayCircleIcon,
PlayIcon,
- WarningDiamondIcon,
-} from "@phosphor-icons/react";
-import type { ToolUIPart } from "ai";
-import { ScaleLoader } from "../../components/ScaleLoader/ScaleLoader";
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
/** Block details returned on first run_block attempt (before input_data provided). */
export interface BlockDetailsResponse {
@@ -226,18 +227,16 @@ export function ToolIcon({
isError?: boolean;
}) {
if (isError) {
- return (
- <WarningDiamondIcon size={14} weight="regular" className="text-red-500" />
- );
+ return <Icon icon={AlertDiamondIcon} size={14} className="text-red-500" />;
}
if (isStreaming) {
return <ScaleLoader size={14} />;
}
- return <PlayIcon size={14} weight="regular" className="text-neutral-400" />;
+ return <Icon icon={PlayIcon} size={14} className="text-neutral-400" />;
}
export function AccordionIcon() {
- return <PlayCircleIcon size={32} weight="light" />;
+ return <Icon icon={PlayCircleIcon} size={32} />;
}
export function formatMaybeJson(value: unknown): string {
@@ -313,9 +312,7 @@ export function getAccordionMeta(output: RunBlockToolOutput): {
}
return {
- icon: (
- <WarningDiamondIcon size={32} weight="light" className="text-red-500" />
- ),
+ icon: <Icon icon={AlertDiamondIcon} size={32} className="text-red-500" />,
title: "Error",
titleClassName: "text-red-500",
};
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/RunMCPTool/RunMCPTool.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/RunMCPTool/RunMCPTool.tsx
index d0bc98b2d8..62d26f4217 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/RunMCPTool/RunMCPTool.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/RunMCPTool/RunMCPTool.tsx
@@ -1,6 +1,4 @@
"use client";
-
-import { PlugsConnectedIcon } from "@phosphor-icons/react";
import type { ToolUIPart } from "ai";
import { MorphingTextAnimation } from "../../components/MorphingTextAnimation/MorphingTextAnimation";
import { ToolAccordion } from "../../components/ToolAccordion/ToolAccordion";
@@ -20,6 +18,8 @@ import {
isUnparseableJsonOutput,
reportCorruptedToolOutput,
} from "../../helpers/toolOutput";
+import { PlugSocketIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export interface RunMCPToolPart {
type: string;
@@ -106,7 +106,7 @@ export function RunMCPToolComponent({ part }: Props) {
{/* Tool execution result */}
{mcpToolOutput && (
<ToolAccordion
- icon={<PlugsConnectedIcon size={32} weight="light" />}
+ icon={<Icon icon={PlugSocketIcon} size={32} />}
title={mcpToolOutput.tool_name}
description={`from ${serverHost(mcpToolOutput.server_url)}`}
>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/RunMCPTool/helpers.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/RunMCPTool/helpers.tsx
index b291ee585a..a6aaa83222 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/RunMCPTool/helpers.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/RunMCPTool/helpers.tsx
@@ -4,9 +4,10 @@ import type { MCPToolOutputResponse } from "@/app/api/__generated__/models/mCPTo
import type { MCPToolsDiscoveredResponse } from "@/app/api/__generated__/models/mCPToolsDiscoveredResponse";
import { ResponseType } from "@/app/api/__generated__/models/responseType";
import type { SetupRequirementsResponse } from "@/app/api/__generated__/models/setupRequirementsResponse";
-import { WarningDiamondIcon, PlugsConnectedIcon } from "@phosphor-icons/react";
import type { ToolUIPart } from "ai";
import { ScaleLoader } from "../../components/ScaleLoader/ScaleLoader";
+import { AlertDiamondIcon, PlugSocketIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
// ------------------------------------------------------------------ //
// Re-export generated types for use by RunMCPTool components
@@ -214,18 +215,10 @@ export function ToolIcon({
isError?: boolean;
}) {
if (isError) {
- return (
- <WarningDiamondIcon size={14} weight="regular" className="text-red-500" />
- );
+ return <Icon icon={AlertDiamondIcon} size={14} className="text-red-500" />;
}
if (isStreaming) {
return <ScaleLoader size={14} />;
}
- return (
- <PlugsConnectedIcon
- size={14}
- weight="regular"
- className="text-neutral-400"
- />
- );
+ return <Icon icon={PlugSocketIcon} size={14} className="text-neutral-400" />;
}
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/SearchDocs/helpers.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/SearchDocs/helpers.tsx
index eb59e1cefc..135c9031ea 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/SearchDocs/helpers.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/SearchDocs/helpers.tsx
@@ -3,12 +3,13 @@ import type { DocSearchResultsResponse } from "@/app/api/__generated__/models/do
import type { ErrorResponse } from "@/app/api/__generated__/models/errorResponse";
import type { NoResultsResponse } from "@/app/api/__generated__/models/noResultsResponse";
import { ResponseType } from "@/app/api/__generated__/models/responseType";
-import {
- ArticleIcon,
- FileMagnifyingGlassIcon,
- FileTextIcon,
-} from "@phosphor-icons/react";
import { ToolUIPart } from "ai";
+import {
+ File02Icon,
+ FileSearchIcon,
+ NewsIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export interface SearchDocsInput {
query: string;
@@ -183,13 +184,10 @@ export function ToolIcon({
isStreaming?: boolean;
isError?: boolean;
}) {
- const IconComponent =
- toolType === "tool-get_doc_page" ? FileTextIcon : FileMagnifyingGlassIcon;
-
return (
- <IconComponent
+ <Icon
+ icon={toolType === "tool-get_doc_page" ? File02Icon : FileSearchIcon}
size={14}
- weight="regular"
className={
isError
? "text-red-500"
@@ -202,9 +200,12 @@ export function ToolIcon({
}
export function AccordionIcon({ toolType }: { toolType: DocsToolType }) {
- const IconComponent =
- toolType === "tool-get_doc_page" ? ArticleIcon : FileTextIcon;
- return <IconComponent size={32} weight="light" />;
+ return (
+ <Icon
+ icon={toolType === "tool-get_doc_page" ? NewsIcon : File02Icon}
+ size={32}
+ />
+ );
}
export function toDocsUrl(path: string): string {
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/SetupTrigger/SetupTrigger.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/SetupTrigger/SetupTrigger.tsx
index f8207d23ee..24fc6875fe 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/SetupTrigger/SetupTrigger.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/SetupTrigger/SetupTrigger.tsx
@@ -1,7 +1,6 @@
"use client";
import { Button } from "@/components/atoms/Button/Button";
-import { CheckIcon, CopyIcon } from "@phosphor-icons/react";
import type { ToolUIPart } from "ai";
import { useState } from "react";
import { MorphingTextAnimation } from "../../components/MorphingTextAnimation/MorphingTextAnimation";
@@ -18,6 +17,8 @@ import {
ToolIcon,
type TriggerSetupOutput,
} from "./helpers";
+import { Copy01Icon, Tick02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
part: {
@@ -129,7 +130,11 @@ function TriggerSetupSuccessCard({ output }: { output: TriggerSetupOutput }) {
onClick={handleCopy}
aria-label={copied ? "Copied" : "Copy webhook URL"}
>
- {copied ? <CheckIcon size={14} /> : <CopyIcon size={14} />}
+ {copied ? (
+ <Icon icon={Tick02Icon} size={14} />
+ ) : (
+ <Icon icon={Copy01Icon} size={14} />
+ )}
</Button>
</div>
)}
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/SetupTrigger/helpers.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/SetupTrigger/helpers.tsx
index eb60069df2..88b96f7053 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/SetupTrigger/helpers.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/SetupTrigger/helpers.tsx
@@ -2,9 +2,10 @@ import type { ErrorResponse } from "@/app/api/__generated__/models/errorResponse
import type { NeedLoginResponse } from "@/app/api/__generated__/models/needLoginResponse";
import { ResponseType } from "@/app/api/__generated__/models/responseType";
import type { SetupRequirementsResponse } from "@/app/api/__generated__/models/setupRequirementsResponse";
-import { WarningDiamondIcon, WebhooksLogoIcon } from "@phosphor-icons/react";
import type { ToolUIPart } from "ai";
import { ScaleLoader } from "../../components/ScaleLoader/ScaleLoader";
+import { AlertDiamondIcon, WebhookIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
/** Success output of the `setup_agent_webhook_trigger` tool. Duck-typed: it's a
* copilot tool result, not a REST response model. */
@@ -144,14 +145,10 @@ export function ToolIcon({
isError?: boolean;
}) {
if (isError) {
- return (
- <WarningDiamondIcon size={14} weight="regular" className="text-red-500" />
- );
+ return <Icon icon={AlertDiamondIcon} size={14} className="text-red-500" />;
}
if (isStreaming) {
return <ScaleLoader size={14} />;
}
- return (
- <WebhooksLogoIcon size={14} weight="regular" className="text-neutral-400" />
- );
+ return <Icon icon={WebhookIcon} size={14} className="text-neutral-400" />;
}
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/ViewAgentOutput/helpers.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/ViewAgentOutput/helpers.tsx
index 1ff2e64ec7..713b218d97 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/tools/ViewAgentOutput/helpers.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/tools/ViewAgentOutput/helpers.tsx
@@ -2,8 +2,9 @@ import type { AgentOutputResponse } from "@/app/api/__generated__/models/agentOu
import type { ErrorResponse } from "@/app/api/__generated__/models/errorResponse";
import type { NoResultsResponse } from "@/app/api/__generated__/models/noResultsResponse";
import { ResponseType } from "@/app/api/__generated__/models/responseType";
-import { EyeIcon, MonitorIcon } from "@phosphor-icons/react";
import type { ToolUIPart } from "ai";
+import { ComputerIcon, EyeIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export interface ViewAgentOutputInput {
agent_name?: string;
@@ -130,9 +131,9 @@ export function ToolIcon({
isError?: boolean;
}) {
return (
- <EyeIcon
+ <Icon
+ icon={EyeIcon}
size={14}
- weight="regular"
className={
isError
? "text-red-500"
@@ -145,7 +146,7 @@ export function ToolIcon({
}
export function AccordionIcon() {
- return <MonitorIcon size={32} weight="light" />;
+ return <Icon icon={ComputerIcon} size={32} />;
}
export function formatMaybeJson(value: unknown): string {
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/NewAgentLibraryView.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/NewAgentLibraryView.tsx
index 85587bccdc..39acdfc6ee 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/NewAgentLibraryView.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/NewAgentLibraryView.tsx
@@ -5,7 +5,6 @@ import { PublishAgentModal } from "@/components/contextual/PublishAgentModal/Pub
import { Breadcrumbs } from "@/components/molecules/Breadcrumbs/Breadcrumbs";
import { ErrorCard } from "@/components/molecules/ErrorCard/ErrorCard";
import { cn } from "@/lib/utils";
-import { PlusIcon } from "@phosphor-icons/react";
import { useEffect, useState } from "react";
import { AgentVersionChangelog } from "./components/AgentVersionChangelog";
import { AgentSettingsModal } from "./components/modals/AgentSettingsModal/AgentSettingsModal";
@@ -29,6 +28,8 @@ import { SidebarRunsList } from "./components/sidebar/SidebarRunsList/SidebarRun
import { AGENT_LIBRARY_SECTION_PADDING_X } from "./helpers";
import { useMarketplaceUpdate } from "./hooks/useMarketplaceUpdate";
import { useNewAgentLibraryView } from "./useNewAgentLibraryView";
+import { PlusSignIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function NewAgentLibraryView() {
const {
@@ -240,7 +241,7 @@ export function NewAgentLibraryView() {
className="w-full"
disabled={isTemplateLoading && activeTab === "templates"}
>
- <PlusIcon size={16} /> New agent task
+ <Icon icon={PlusSignIcon} size={16} /> New agent task
</Button>
}
agent={agent}
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/AgentSettingsModal/AgentSettingsModal.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/AgentSettingsModal/AgentSettingsModal.tsx
index de912c5fc3..b2bd28ccc5 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/AgentSettingsModal/AgentSettingsModal.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/AgentSettingsModal/AgentSettingsModal.tsx
@@ -6,8 +6,9 @@ import { Switch } from "@/components/atoms/Switch/Switch";
import { Text } from "@/components/atoms/Text/Text";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
import { useAgentSafeMode } from "@/hooks/useAgentSafeMode";
-import { GearIcon } from "@phosphor-icons/react";
import { useState } from "react";
+import { Settings01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
agent: LibraryAgent;
@@ -58,7 +59,7 @@ export function AgentSettingsModal({
className="m-0 min-w-0 rounded-full p-0 px-1"
aria-label="Agent Settings"
>
- <GearIcon size={18} className="text-zinc-600" />
+ <Icon icon={Settings01Icon} size={18} className="text-zinc-600" />
<Text variant="small">Agent Settings</Text>
</Button>
</Dialog.Trigger>
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/RunAgentInputs/RunAgentInputs.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/RunAgentInputs/RunAgentInputs.tsx
index 72d04d634b..46f79eea39 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/RunAgentInputs/RunAgentInputs.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/RunAgentInputs/RunAgentInputs.tsx
@@ -19,8 +19,9 @@ import {
determineDataType,
TableRow,
} from "@/lib/autogpt-server-api/types";
-import { PlusIcon, XIcon } from "@phosphor-icons/react";
import { useRunAgentInputs } from "./useRunAgentInputs";
+import { Cancel01Icon, PlusSignIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
/**
* A generic prop structure for the TypeBasedInput.
@@ -328,7 +329,7 @@ export function RunAgentInputs({
onClick={() => removeRow(rowIndex)}
className="h-8 w-8 p-0"
>
- <XIcon className="h-4 w-4" weight="bold" />
+ <Icon icon={Cancel01Icon} className="h-4 w-4" />
</Button>
</td>
</tr>
@@ -343,7 +344,7 @@ export function RunAgentInputs({
onClick={addRow}
className="w-full"
>
- <PlusIcon className="mr-2 h-4 w-4" weight="bold" />
+ <Icon icon={PlusSignIcon} className="mr-2 h-4 w-4" />
Add Row
</Button>
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/RunAgentModal/components/AIAgentSafetyPopup/AIAgentSafetyPopup.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/RunAgentModal/components/AIAgentSafetyPopup/AIAgentSafetyPopup.tsx
index 6c198cd1a5..442948a87f 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/RunAgentModal/components/AIAgentSafetyPopup/AIAgentSafetyPopup.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/RunAgentModal/components/AIAgentSafetyPopup/AIAgentSafetyPopup.tsx
@@ -4,8 +4,9 @@ import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
import { Key, storage } from "@/services/storage/local-storage";
-import { ShieldCheckIcon } from "@phosphor-icons/react";
import { useCallback, useEffect, useState } from "react";
+import { SecurityCheckIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
agentId: string;
@@ -40,8 +41,8 @@ export function AIAgentSafetyPopup({ agentId, onAcknowledge, isOpen }: Props) {
<Dialog.Content>
<div className="flex flex-col items-center p-6 text-center">
<div className="mb-6 flex h-16 w-16 items-center justify-center rounded-full bg-blue-50">
- <ShieldCheckIcon
- weight="fill"
+ <Icon
+ icon={SecurityCheckIcon}
size={32}
className="text-blue-600"
/>
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/RunAgentModal/components/RunActions/RunActions.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/RunAgentModal/components/RunActions/RunActions.tsx
index d53516b9d3..b5f81026c4 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/RunAgentModal/components/RunActions/RunActions.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/RunAgentModal/components/RunActions/RunActions.tsx
@@ -1,7 +1,8 @@
import React from "react";
import { Button } from "@/components/atoms/Button/Button";
-import { FlaskIcon } from "@phosphor-icons/react";
import { RunVariant } from "../../useAgentRunModal";
+import { FlaskConicalIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
defaultRunType: RunVariant;
@@ -36,7 +37,7 @@ export function RunActions({
loading={isExecuting}
className="gap-1.5 text-amber-600 hover:bg-amber-50 hover:text-amber-700"
>
- <FlaskIcon size={16} weight="fill" />
+ <Icon icon={FlaskConicalIcon} size={16} />
Simulate
</Button>
)}
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/ScheduleAgentModal/components/TimezoneNotice/TimezoneNotice.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/ScheduleAgentModal/components/TimezoneNotice/TimezoneNotice.tsx
index cd3e803905..f1134540ef 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/ScheduleAgentModal/components/TimezoneNotice/TimezoneNotice.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/modals/ScheduleAgentModal/components/TimezoneNotice/TimezoneNotice.tsx
@@ -1,6 +1,7 @@
import { useUserTimezone } from "@/lib/hooks/useUserTimezone";
import { getTimezoneDisplayName } from "@/lib/timezone-utils";
-import { InfoIcon } from "@phosphor-icons/react";
+import { InformationCircleIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function TimezoneNotice() {
const userTimezone = useUserTimezone();
@@ -12,7 +13,7 @@ export function TimezoneNotice() {
if (userTimezone === "not-set") {
return (
<div className="mt-1 flex items-center gap-2 rounded-md border border-amber-200 bg-amber-50 p-3">
- <InfoIcon className="h-4 w-4 text-amber-600" />
+ <Icon icon={InformationCircleIcon} className="h-4 w-4 text-amber-600" />
<p className="text-sm text-amber-800">
No timezone set. Schedule will run in UTC.
<a href="/settings/account" className="ml-1 underline">
@@ -27,7 +28,10 @@ export function TimezoneNotice() {
return (
<div className="mt-1 flex items-center gap-2 rounded-md bg-muted/50 p-3">
- <InfoIcon className="h-4 w-4 text-muted-foreground" />
+ <Icon
+ icon={InformationCircleIcon}
+ className="h-4 w-4 text-muted-foreground"
+ />
<p className="text-sm text-muted-foreground">
Schedule will run in your timezone:{" "}
<span className="font-medium">{tzName}</span>
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/other/AgentSettingsButton.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/other/AgentSettingsButton.tsx
index 95fdf826a2..79860f2e1b 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/other/AgentSettingsButton.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/other/AgentSettingsButton.tsx
@@ -1,6 +1,7 @@
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
-import { GearIcon } from "@phosphor-icons/react";
+import { Settings01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function AgentSettingsButton() {
return (
@@ -10,7 +11,7 @@ export function AgentSettingsButton() {
className="m-0 min-w-0 rounded-full p-0 px-1"
aria-label="Agent Settings"
>
- <GearIcon size={18} className="text-zinc-600" />
+ <Icon icon={Settings01Icon} size={18} className="text-zinc-600" />
<Text variant="small">Agent Settings</Text>
</Button>
);
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/AgentActionsDropdown.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/AgentActionsDropdown.tsx
index 834173cba4..e08dd22c68 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/AgentActionsDropdown.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/AgentActionsDropdown.tsx
@@ -27,11 +27,12 @@ import {
} from "@/components/molecules/DropdownMenu/DropdownMenu";
import { useToast } from "@/components/molecules/Toast/use-toast";
import { exportAsJSONFile } from "@/lib/utils";
-import { DotsThreeIcon } from "@phosphor-icons/react";
import { useQueryClient } from "@tanstack/react-query";
import Link from "next/link";
import { useRouter } from "next/navigation";
import { useState } from "react";
+import { MoreHorizontalIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
agent: LibraryAgent;
@@ -182,7 +183,7 @@ export function AgentActionsDropdown({
aria-label="More actions"
className="min-w-fit"
>
- <DotsThreeIcon size={18} />
+ <Icon icon={MoreHorizontalIcon} size={18} />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/OutputRenderers/components/OutputActions.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/OutputRenderers/components/OutputActions.tsx
index cfe69e8709..2bc50f5306 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/OutputRenderers/components/OutputActions.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/OutputRenderers/components/OutputActions.tsx
@@ -1,11 +1,16 @@
"use client";
import React, { useState } from "react";
-import { CheckIcon, CopyIcon, DownloadIcon } from "@phosphor-icons/react";
import { Button } from "@/components/atoms/Button/Button";
import { OutputRenderer, OutputMetadata } from "../types";
import { downloadOutputs } from "../utils/download";
import { cn } from "@/lib/utils";
+import {
+ Copy01Icon,
+ Download04Icon,
+ Tick02Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface OutputActionsProps {
items: Array<{
@@ -74,9 +79,10 @@ export function OutputActions({
className={cn(isPrimary ? "min-w-0" : "")}
>
{copied ? (
- <CheckIcon className="size-4 text-green-600" />
+ <Icon icon={Tick02Icon} className="size-4 text-green-600" />
) : (
- <CopyIcon
+ <Icon
+ icon={Copy01Icon}
className={cn(
"size-4",
isPrimary ? "text-white" : "text-neutral-500",
@@ -93,7 +99,8 @@ export function OutputActions({
aria-label="Download outputs"
className={cn(isPrimary ? "min-w-0" : "")}
>
- <DownloadIcon
+ <Icon
+ icon={Download04Icon}
className={cn(
"size-4",
isPrimary ? "text-white" : "text-neutral-500",
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/OutputRenderers/renderers/JSONRenderer.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/OutputRenderers/renderers/JSONRenderer.tsx
index 668f9179c3..d325726c7e 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/OutputRenderers/renderers/JSONRenderer.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/OutputRenderers/renderers/JSONRenderer.tsx
@@ -1,13 +1,14 @@
"use client";
import React, { useState } from "react";
-import { CaretDown, CaretRight } from "@phosphor-icons/react";
import {
OutputRenderer,
OutputMetadata,
DownloadContent,
CopyContent,
} from "../types";
+import { ArrowDown01Icon, ArrowRight01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
function canRenderJSON(value: unknown, _metadata?: OutputMetadata): boolean {
if (_metadata?.type === "json") {
@@ -134,9 +135,9 @@ function JSONViewer({ data }: { data: any }) {
className="inline-flex items-center rounded px-1 hover:bg-muted"
>
{isCollapsed ? (
- <CaretRight className="size-3" />
+ <Icon icon={ArrowRight01Icon} className="size-3" />
) : (
- <CaretDown className="size-3" />
+ <Icon icon={ArrowDown01Icon} className="size-3" />
)}
<span className="ml-1 text-muted-foreground">
Array({itemCount})
@@ -171,9 +172,9 @@ function JSONViewer({ data }: { data: any }) {
className="inline-flex items-center rounded px-1 hover:bg-muted"
>
{isCollapsed ? (
- <CaretRight className="size-3" />
+ <Icon icon={ArrowRight01Icon} className="size-3" />
) : (
- <CaretDown className="size-3" />
+ <Icon icon={ArrowDown01Icon} className="size-3" />
)}
<span className="ml-1 text-muted-foreground">Object</span>
</button>
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/RunDetailHeader/RunDetailHeader.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/RunDetailHeader/RunDetailHeader.tsx
index f93ac00d4e..0d7a298d8c 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/RunDetailHeader/RunDetailHeader.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/RunDetailHeader/RunDetailHeader.tsx
@@ -1,10 +1,11 @@
import { GraphExecution } from "@/app/api/__generated__/models/graphExecution";
import { LibraryAgent } from "@/app/api/__generated__/models/libraryAgent";
import { Text } from "@/components/atoms/Text/Text";
-import { ClockClockwiseIcon, FlaskIcon } from "@phosphor-icons/react";
import { formatDistanceToNow, formatDistanceStrict } from "date-fns";
import { AGENT_LIBRARY_SECTION_PADDING_X } from "../../../helpers";
import { RunStatusBadge } from "../SelectedRunView/components/RunStatusBadge";
+import { FlaskConicalIcon, TimeScheduleIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type Props = {
agent: LibraryAgent;
@@ -26,10 +27,10 @@ export function RunDetailHeader({ agent, run, scheduleRecurrence }: Props) {
<RunStatusBadge status={run.status} />
{run.is_dry_run && (
<div className="inline-flex items-center gap-1 rounded-md bg-amber-50 p-1">
- <FlaskIcon
+ <Icon
+ icon={FlaskConicalIcon}
size={16}
className="text-amber-700"
- weight="fill"
/>
<Text variant="small-medium" className="!text-amber-700">
Simulated
@@ -39,10 +40,10 @@ export function RunDetailHeader({ agent, run, scheduleRecurrence }: Props) {
</div>
) : scheduleRecurrence ? (
<div className="inline-flex items-center gap-1 rounded-md bg-yellow-50 p-1">
- <ClockClockwiseIcon
+ <Icon
+ icon={TimeScheduleIcon}
size={16}
className="text-yellow-700"
- weight="bold"
/>
<Text variant="small-medium" className="text-yellow-700">
Scheduled
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedRunView/components/RunStatusBadge.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedRunView/components/RunStatusBadge.tsx
index 3781e724ad..75c1264864 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedRunView/components/RunStatusBadge.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedRunView/components/RunStatusBadge.tsx
@@ -1,15 +1,16 @@
import { AgentExecutionStatus } from "@/app/api/__generated__/models/agentExecutionStatus";
+import { Text } from "@/components/atoms/Text/Text";
+import { cn } from "@/lib/utils";
import {
- CheckCircleIcon,
- ClockIcon,
+ Alert01Icon,
+ AlertCircleIcon,
+ CancelCircleIcon,
+ CheckmarkCircle02Icon,
+ Clock01Icon,
PauseCircleIcon,
StopCircleIcon,
- WarningCircleIcon,
- WarningIcon,
- XCircleIcon,
-} from "@phosphor-icons/react";
-import { Text } from "@/components/atoms/Text/Text";
-import { cn } from "@/lib/utils";
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type StatusIconMap = {
icon: React.ReactNode;
@@ -19,43 +20,39 @@ type StatusIconMap = {
const statusIconMap: Record<AgentExecutionStatus, StatusIconMap> = {
INCOMPLETE: {
- icon: (
- <WarningCircleIcon size={16} className="text-red-700" weight="bold" />
- ),
+ icon: <Icon icon={AlertCircleIcon} size={16} className="text-red-700" />,
bgColor: "bg-red-50",
textColor: "!text-red-700",
},
QUEUED: {
- icon: <ClockIcon size={16} className="text-yellow-700" weight="bold" />,
+ icon: <Icon icon={Clock01Icon} size={16} className="text-yellow-700" />,
bgColor: "bg-yellow-50",
textColor: "!text-yellow-700",
},
RUNNING: {
- icon: (
- <PauseCircleIcon size={16} className="text-yellow-700" weight="bold" />
- ),
+ icon: <Icon icon={PauseCircleIcon} size={16} className="text-yellow-700" />,
bgColor: "bg-yellow-50",
textColor: "!text-yellow-700",
},
REVIEW: {
- icon: <WarningIcon size={16} className="text-yellow-700" weight="bold" />,
+ icon: <Icon icon={Alert01Icon} size={16} className="text-yellow-700" />,
bgColor: "bg-yellow-50",
textColor: "!text-yellow-700",
},
COMPLETED: {
icon: (
- <CheckCircleIcon size={16} className="text-green-700" weight="bold" />
+ <Icon icon={CheckmarkCircle02Icon} size={16} className="text-green-700" />
),
bgColor: "bg-green-50",
textColor: "!text-green-700",
},
TERMINATED: {
- icon: <StopCircleIcon size={16} className="text-slate-700" weight="bold" />,
+ icon: <Icon icon={StopCircleIcon} size={16} className="text-slate-700" />,
bgColor: "bg-slate-50",
textColor: "!text-slate-700",
},
FAILED: {
- icon: <XCircleIcon size={16} className="text-red-700" weight="bold" />,
+ icon: <Icon icon={CancelCircleIcon} size={16} className="text-red-700" />,
bgColor: "bg-red-50",
textColor: "!text-red-700",
},
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedRunView/components/SafeModeToggle.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedRunView/components/SafeModeToggle.tsx
index 0fafa67414..b5f6449e7d 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedRunView/components/SafeModeToggle.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedRunView/components/SafeModeToggle.tsx
@@ -3,13 +3,14 @@ import { LibraryAgent } from "@/app/api/__generated__/models/libraryAgent";
import { Button } from "@/components/atoms/Button/Button";
import { Graph } from "@/lib/autogpt-server-api/types";
import { cn } from "@/lib/utils";
-import { ShieldCheckIcon, ShieldIcon } from "@phosphor-icons/react";
import { useAgentSafeMode } from "@/hooks/useAgentSafeMode";
import {
Tooltip,
TooltipContent,
TooltipTrigger,
} from "@/components/atoms/Tooltip/BaseTooltip";
+import { SecurityCheckIcon, Shield01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
graph: GraphModel | LibraryAgent | Graph;
@@ -45,9 +46,9 @@ function SafeModeIconButton({
className={cn(isPending ? "opacity-0" : "opacity-100")}
>
{isEnabled ? (
- <ShieldCheckIcon weight="bold" size={16} />
+ <Icon icon={SecurityCheckIcon} size={16} />
) : (
- <ShieldIcon weight="bold" size={16} />
+ <Icon icon={Shield01Icon} size={16} />
)}
</Button>
</TooltipTrigger>
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedRunView/components/SelectedRunActions/SelectedRunActions.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedRunView/components/SelectedRunActions/SelectedRunActions.tsx
index ef1103a5a0..f1fc2dc401 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedRunView/components/SelectedRunActions/SelectedRunActions.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedRunView/components/SelectedRunActions/SelectedRunActions.tsx
@@ -2,18 +2,19 @@ import { GraphExecution } from "@/app/api/__generated__/models/graphExecution";
import { LibraryAgent } from "@/app/api/__generated__/models/libraryAgent";
import { Button } from "@/components/atoms/Button/Button";
import { LoadingSpinner } from "@/components/atoms/LoadingSpinner/LoadingSpinner";
-import {
- ArrowBendLeftUpIcon,
- ArrowBendRightDownIcon,
- CardsThreeIcon,
- EyeIcon,
- StopIcon,
-} from "@phosphor-icons/react";
import { AgentActionsDropdown } from "../../../AgentActionsDropdown";
import { SelectedActionsWrap } from "../../../SelectedActionsWrap";
import { ShareRunButton } from "../../../ShareRunButton/ShareRunButton";
import { CreateTemplateModal } from "../CreateTemplateModal/CreateTemplateModal";
import { useSelectedRunActions } from "./useSelectedRunActions";
+import {
+ Album01Icon,
+ CornerLeftUpIcon,
+ CornerRightDownIcon,
+ EyeIcon,
+ StopIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type Props = {
agent: LibraryAgent;
@@ -64,13 +65,13 @@ export function SelectedRunActions({
<LoadingSpinner size="small" />
) : (
<div className="gap- relative flex flex-col items-center justify-center">
- <ArrowBendLeftUpIcon
- weight="bold"
+ <Icon
+ icon={CornerLeftUpIcon}
size={16}
className="relative bottom-[4px] z-0 rotate-90 text-zinc-700"
/>
- <ArrowBendRightDownIcon
- weight="bold"
+ <Icon
+ icon={CornerRightDownIcon}
size={16}
className="absolute bottom-[-5px] z-10 rotate-90 text-zinc-700"
/>
@@ -87,7 +88,7 @@ export function SelectedRunActions({
disabled={isStopping}
className="border-red-600 bg-red-600 text-white hover:border-red-800 hover:bg-red-800"
>
- <StopIcon weight="bold" size={18} />
+ <Icon icon={StopIcon} size={18} />
</Button>
) : null}
{openInBuilderHref ? (
@@ -99,7 +100,7 @@ export function SelectedRunActions({
target="_blank"
aria-label="View task details"
>
- <EyeIcon weight="bold" size={18} className="text-zinc-700" />
+ <Icon icon={EyeIcon} size={18} className="text-zinc-700" />
</Button>
) : null}
<ShareRunButton
@@ -117,7 +118,7 @@ export function SelectedRunActions({
onClick={() => setIsCreateTemplateModalOpen(true)}
title="Create template"
>
- <CardsThreeIcon weight="bold" size={18} className="text-zinc-700" />
+ <Icon icon={Album01Icon} size={18} className="text-zinc-700" />
</Button>
<CreateTemplateModal
isOpen={isCreateTemplateModalOpen}
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedRunView/components/WebhookTriggerSection.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedRunView/components/WebhookTriggerSection.tsx
index 0b24f38731..acbfefb4fc 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedRunView/components/WebhookTriggerSection.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedRunView/components/WebhookTriggerSection.tsx
@@ -4,8 +4,9 @@ import { GraphTriggerInfo } from "@/app/api/__generated__/models/graphTriggerInf
import { LibraryAgentPreset } from "@/app/api/__generated__/models/libraryAgentPreset";
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
-import { CopyIcon } from "@phosphor-icons/react";
import { RunDetailCard } from "../../RunDetailCard/RunDetailCard";
+import { Copy01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
preset: LibraryAgentPreset;
@@ -73,7 +74,7 @@ export function WebhookTriggerSection({ preset, triggerSetupInfo }: Props) {
onClick={handleCopyWebhookUrl}
title="Copy webhook URL"
>
- <CopyIcon className="size-4" />
+ <Icon icon={Copy01Icon} className="size-4" />
</Button>
</div>
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedScheduleView/components/DeleteScheduleButton/DeleteScheduleButton.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedScheduleView/components/DeleteScheduleButton/DeleteScheduleButton.tsx
index ce97e48283..7ebcb026b8 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedScheduleView/components/DeleteScheduleButton/DeleteScheduleButton.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedScheduleView/components/DeleteScheduleButton/DeleteScheduleButton.tsx
@@ -1,9 +1,10 @@
"use client";
import { Button } from "@/components/atoms/Button/Button";
-import { TrashIcon } from "@phosphor-icons/react";
import type { LibraryAgent } from "@/app/api/__generated__/models/libraryAgent";
import { useScheduleDetailHeader } from "../../../RunDetailHeader/useScheduleDetailHeader";
+import { Delete02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type Props = {
agent: LibraryAgent;
@@ -28,7 +29,7 @@ export function DeleteScheduleButton({ agent, scheduleId, onDeleted }: Props) {
}}
loading={isDeleting}
>
- <TrashIcon size={16} /> Delete schedule
+ <Icon icon={Delete02Icon} size={16} /> Delete schedule
</Button>
);
}
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedScheduleView/components/EditScheduleModal/EditScheduleModal.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedScheduleView/components/EditScheduleModal/EditScheduleModal.tsx
index 5ffff55b76..2e7cac21b7 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedScheduleView/components/EditScheduleModal/EditScheduleModal.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedScheduleView/components/EditScheduleModal/EditScheduleModal.tsx
@@ -8,7 +8,8 @@ import { MultiToggle } from "@/components/molecules/MultiToggle/MultiToggle";
import { Select } from "@/components/atoms/Select/Select";
import { GraphExecutionJobInfo } from "@/app/api/__generated__/models/graphExecutionJobInfo";
import { useEditScheduleModal } from "./useEditScheduleModal";
-import { PencilSimpleIcon } from "@phosphor-icons/react";
+import { PencilIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type Props = {
graphId: string;
@@ -46,7 +47,7 @@ export function EditScheduleModal({ graphId, schedule }: Props) {
size="small"
className="absolute -right-2 -top-2"
>
- <PencilSimpleIcon className="size-4" /> Edit schedule
+ <Icon icon={PencilIcon} className="size-4" /> Edit schedule
</Button>
</Dialog.Trigger>
<Dialog.Content>
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedScheduleView/components/SelectedScheduleActions/SelectedScheduleActions.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedScheduleView/components/SelectedScheduleActions/SelectedScheduleActions.tsx
index 41cf20a1e9..4d0cea77c5 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedScheduleView/components/SelectedScheduleActions/SelectedScheduleActions.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedScheduleView/components/SelectedScheduleActions/SelectedScheduleActions.tsx
@@ -6,10 +6,11 @@ import { Button } from "@/components/atoms/Button/Button";
import { LoadingSpinner } from "@/components/atoms/LoadingSpinner/LoadingSpinner";
import { Text } from "@/components/atoms/Text/Text";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
-import { EyeIcon, Play, TrashIcon } from "@phosphor-icons/react";
import { AgentActionsDropdown } from "../../../AgentActionsDropdown";
import { SelectedActionsWrap } from "../../../SelectedActionsWrap";
import { useSelectedScheduleActions } from "./useSelectedScheduleActions";
+import { Delete02Icon, EyeIcon, PlayIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type Props = {
agent: LibraryAgent;
@@ -55,7 +56,7 @@ export function SelectedScheduleActions({
{isRunning ? (
<LoadingSpinner size="small" />
) : (
- <Play weight="bold" size={18} className="text-zinc-700" />
+ <Icon icon={PlayIcon} size={18} className="text-zinc-700" />
)}
</Button>
{openInBuilderHref && (
@@ -67,7 +68,7 @@ export function SelectedScheduleActions({
target="_blank"
aria-label="View scheduled task details"
>
- <EyeIcon weight="bold" size={18} className="text-zinc-700" />
+ <Icon icon={EyeIcon} size={18} className="text-zinc-700" />
</Button>
)}
<Button
@@ -80,7 +81,7 @@ export function SelectedScheduleActions({
{isDeleting ? (
<LoadingSpinner size="small" />
) : (
- <TrashIcon weight="bold" size={18} />
+ <Icon icon={Delete02Icon} size={18} />
)}
</Button>
<AgentActionsDropdown agent={agent} scheduleId={scheduleId} />
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedSettingsView/SelectedSettingsView.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedSettingsView/SelectedSettingsView.tsx
index 530d24529f..c9481a128a 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedSettingsView/SelectedSettingsView.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedSettingsView/SelectedSettingsView.tsx
@@ -3,9 +3,10 @@ import { Button } from "@/components/atoms/Button/Button";
import { Switch } from "@/components/atoms/Switch/Switch";
import { Text } from "@/components/atoms/Text/Text";
import { useAgentSafeMode } from "@/hooks/useAgentSafeMode";
-import { ArrowLeftIcon } from "@phosphor-icons/react";
import { AGENT_LIBRARY_SECTION_PADDING_X } from "../../../helpers";
import { SelectedViewLayout } from "../SelectedViewLayout";
+import { ArrowLeft02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
agent: LibraryAgent;
@@ -36,7 +37,7 @@ export function SelectedSettingsView({ agent, onClearSelectedRun }: Props) {
onClick={onClearSelectedRun}
className="w-[2.375rem]"
>
- <ArrowLeftIcon />
+ <Icon icon={ArrowLeft02Icon} />
</Button>
<Text variant="h2">Agent Settings</Text>
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedTemplateView/components/SelectedTemplateActions.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedTemplateView/components/SelectedTemplateActions.tsx
index 008d2cc379..7cceed8b3f 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedTemplateView/components/SelectedTemplateActions.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedTemplateView/components/SelectedTemplateActions.tsx
@@ -12,10 +12,15 @@ import { LoadingSpinner } from "@/components/atoms/LoadingSpinner/LoadingSpinner
import { Text } from "@/components/atoms/Text/Text";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
import { useToast } from "@/components/molecules/Toast/use-toast";
-import { FloppyDiskIcon, PlayIcon, TrashIcon } from "@phosphor-icons/react";
import { useQueryClient } from "@tanstack/react-query";
import { useState } from "react";
import { AgentActionsDropdown } from "../../AgentActionsDropdown";
+import {
+ Delete02Icon,
+ FloppyDiskIcon,
+ PlayIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
agent: LibraryAgent;
@@ -98,7 +103,7 @@ export function SelectedTemplateActions({
{isSaving ? (
<LoadingSpinner size="small" />
) : (
- <FloppyDiskIcon weight="bold" size={18} className="text-zinc-700" />
+ <Icon icon={FloppyDiskIcon} size={18} className="text-zinc-700" />
)}
</Button>
{onStartTask && (
@@ -115,7 +120,7 @@ export function SelectedTemplateActions({
</>
) : (
<>
- <PlayIcon weight="bold" size={16} />
+ <Icon icon={PlayIcon} size={16} />
</>
)}
</Button>
@@ -130,7 +135,7 @@ export function SelectedTemplateActions({
{deleteMutation.isPending ? (
<LoadingSpinner size="small" />
) : (
- <TrashIcon weight="bold" size={18} />
+ <Icon icon={Delete02Icon} size={18} />
)}
</Button>
<AgentActionsDropdown agent={agent} />
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedTemplateView/components/WebhookTriggerCard.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedTemplateView/components/WebhookTriggerCard.tsx
index d8a54f0474..4cfa0393e2 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedTemplateView/components/WebhookTriggerCard.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedTemplateView/components/WebhookTriggerCard.tsx
@@ -4,8 +4,9 @@ import { GraphTriggerInfo } from "@/app/api/__generated__/models/graphTriggerInf
import { LibraryAgentPreset } from "@/app/api/__generated__/models/libraryAgentPreset";
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
-import { CopyIcon } from "@phosphor-icons/react";
import { RunDetailCard } from "../../RunDetailCard/RunDetailCard";
+import { Copy01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
template: LibraryAgentPreset;
@@ -73,7 +74,7 @@ export function WebhookTriggerCard({ template, triggerSetupInfo }: Props) {
onClick={handleCopyWebhookUrl}
title="Copy webhook URL"
>
- <CopyIcon className="size-4" />
+ <Icon icon={Copy01Icon} className="size-4" />
</Button>
</div>
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedTriggerAgentView/SelectedTriggerAgentActions.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedTriggerAgentView/SelectedTriggerAgentActions.tsx
index 0cc318b8ae..382863fe21 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedTriggerAgentView/SelectedTriggerAgentActions.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedTriggerAgentView/SelectedTriggerAgentActions.tsx
@@ -3,13 +3,14 @@
import type { LibraryAgent } from "@/app/api/__generated__/models/libraryAgent";
import { Button } from "@/components/atoms/Button/Button";
import { LoadingSpinner } from "@/components/atoms/LoadingSpinner/LoadingSpinner";
-import {
- ArrowSquareOutIcon,
- PencilSimpleIcon,
- TrashIcon,
-} from "@phosphor-icons/react";
import Link from "next/link";
import { useRemoveTriggerAgent } from "../../../hooks/useRemoveTriggerAgent";
+import {
+ Delete02Icon,
+ LinkSquare01Icon,
+ PencilIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
parentAgent: LibraryAgent;
@@ -36,11 +37,7 @@ export function SelectedTriggerAgentActions({
aria-label="View in library"
>
<Button variant="icon" size="icon" aria-label="View in library">
- <ArrowSquareOutIcon
- weight="bold"
- size={18}
- className="text-zinc-700"
- />
+ <Icon icon={LinkSquare01Icon} size={18} className="text-zinc-700" />
</Button>
</Link>
<Link
@@ -48,11 +45,7 @@ export function SelectedTriggerAgentActions({
aria-label="Open in builder"
>
<Button variant="icon" size="icon" aria-label="Open in builder">
- <PencilSimpleIcon
- weight="bold"
- size={18}
- className="text-zinc-700"
- />
+ <Icon icon={PencilIcon} size={18} className="text-zinc-700" />
</Button>
</Link>
<Button
@@ -65,7 +58,7 @@ export function SelectedTriggerAgentActions({
{isDeleting ? (
<LoadingSpinner size="small" />
) : (
- <TrashIcon weight="bold" size={18} />
+ <Icon icon={Delete02Icon} size={18} />
)}
</Button>
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedTriggerView/components/SelectedTriggerActions.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedTriggerView/components/SelectedTriggerActions.tsx
index a5b895c3fa..a91f65e74c 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedTriggerView/components/SelectedTriggerActions.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/SelectedTriggerView/components/SelectedTriggerActions.tsx
@@ -12,10 +12,11 @@ import { LoadingSpinner } from "@/components/atoms/LoadingSpinner/LoadingSpinner
import { Text } from "@/components/atoms/Text/Text";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
import { useToast } from "@/components/molecules/Toast/use-toast";
-import { FloppyDiskIcon, TrashIcon } from "@phosphor-icons/react";
import { useQueryClient } from "@tanstack/react-query";
import { useState } from "react";
import { AgentActionsDropdown } from "../../AgentActionsDropdown";
+import { Delete02Icon, FloppyDiskIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
agent: LibraryAgent;
@@ -94,7 +95,7 @@ export function SelectedTriggerActions({
{isSaving ? (
<LoadingSpinner size="small" />
) : (
- <FloppyDiskIcon weight="bold" size={18} className="text-zinc-700" />
+ <Icon icon={FloppyDiskIcon} size={18} className="text-zinc-700" />
)}
</Button>
<Button
@@ -107,7 +108,7 @@ export function SelectedTriggerActions({
{deleteMutation.isPending ? (
<LoadingSpinner size="small" />
) : (
- <TrashIcon weight="bold" size={18} />
+ <Icon icon={Delete02Icon} size={18} />
)}
</Button>
<AgentActionsDropdown agent={agent} />
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/ShareRunButton/ShareRunButton.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/ShareRunButton/ShareRunButton.tsx
index 8756d2f4bd..f704aa8dff 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/ShareRunButton/ShareRunButton.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/selected-views/ShareRunButton/ShareRunButton.tsx
@@ -5,13 +5,14 @@ import { Input } from "@/components/atoms/Input/Input";
import { Text } from "@/components/atoms/Text/Text";
import { Alert, AlertDescription } from "@/components/molecules/Alert/Alert";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
-import {
- CheckIcon,
- CopyIcon,
- ShareFatIcon,
- WarningIcon,
-} from "@phosphor-icons/react";
import { useShareRunButton } from "./useShareRunButton";
+import {
+ Alert01Icon,
+ Copy01Icon,
+ Share08Icon,
+ Tick02Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
graphId: string;
@@ -53,7 +54,7 @@ export function ShareRunButton({
aria-label="Share results"
className={isShared ? "relative" : ""}
>
- <ShareFatIcon weight="bold" size={18} className="text-zinc-700" />
+ <Icon icon={Share08Icon} size={18} className="text-zinc-700" />
</Button>
</Dialog.Trigger>
@@ -69,7 +70,7 @@ export function ShareRunButton({
<>
<div className="!mb-4">
<Alert>
- <WarningIcon className="h-4 w-4" />
+ <Icon icon={Alert01Icon} className="h-4 w-4" />
<Text variant="body">
When you enable sharing, the output of this agent run will
be publicly accessible to anyone with the link. The page
@@ -105,11 +106,15 @@ export function ShareRunButton({
size="small"
className="mt-0.5 !min-w-0"
>
- {copied ? <CheckIcon size={16} /> : <CopyIcon size={16} />}
+ {copied ? (
+ <Icon icon={Tick02Icon} size={16} />
+ ) : (
+ <Icon icon={Copy01Icon} size={16} />
+ )}
</Button>
</div>
<Alert>
- <WarningIcon className="h-4 w-4" />
+ <Icon icon={Alert01Icon} className="h-4 w-4" />
<AlertDescription>
This link is publicly accessible. Only share it with people
you trust. The shared page includes noindex directives to
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/ScheduleActionsDropdown.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/ScheduleActionsDropdown.tsx
index 1a42575d1d..14915fa782 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/ScheduleActionsDropdown.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/ScheduleActionsDropdown.tsx
@@ -20,9 +20,10 @@ import {
} from "@/components/molecules/DropdownMenu/DropdownMenu";
import { useToast } from "@/components/molecules/Toast/use-toast";
import { invalidateAllScheduleQueries } from "@/services/schedules/invalidate-schedules";
-import { DotsThreeVertical } from "@phosphor-icons/react";
import { useQueryClient } from "@tanstack/react-query";
import { useState } from "react";
+import { MoreVerticalIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
agent: LibraryAgent;
@@ -115,7 +116,7 @@ export function ScheduleActionsDropdown({
onClick={(e) => e.stopPropagation()}
aria-label="More actions"
>
- <DotsThreeVertical className="h-5 w-5 text-gray-400" />
+ <Icon icon={MoreVerticalIcon} className="h-5 w-5 text-gray-400" />
</button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/ScheduleListItem.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/ScheduleListItem.tsx
index bde6874120..17363f8a07 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/ScheduleListItem.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/ScheduleListItem.tsx
@@ -2,11 +2,12 @@
import { GraphExecutionJobInfo } from "@/app/api/__generated__/models/graphExecutionJobInfo";
import { LibraryAgent } from "@/app/api/__generated__/models/libraryAgent";
-import { ClockClockwiseIcon } from "@phosphor-icons/react";
import { formatDistanceToNow } from "date-fns";
import { IconWrapper } from "./IconWrapper";
import { ScheduleActionsDropdown } from "./ScheduleActionsDropdown";
import { SidebarItemCard } from "./SidebarItemCard";
+import { TimeScheduleIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
schedule: GraphExecutionJobInfo;
@@ -36,11 +37,7 @@ export function ScheduleListItem({
selected={selected}
icon={
<IconWrapper className="border-slate-50 bg-yellow-50">
- <ClockClockwiseIcon
- size={16}
- className="text-yellow-700"
- weight="bold"
- />
+ <Icon icon={TimeScheduleIcon} size={16} className="text-yellow-700" />
</IconWrapper>
}
actions={
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TaskActionsDropdown.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TaskActionsDropdown.tsx
index ba923bca68..6af2ab93f4 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TaskActionsDropdown.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TaskActionsDropdown.tsx
@@ -21,10 +21,11 @@ import {
DropdownMenuTrigger,
} from "@/components/molecules/DropdownMenu/DropdownMenu";
import { useToast } from "@/components/molecules/Toast/use-toast";
-import { DotsThreeVertical } from "@phosphor-icons/react";
import { useQueryClient } from "@tanstack/react-query";
import { useState } from "react";
import { CreateTemplateModal } from "../../../selected-views/SelectedRunView/components/CreateTemplateModal/CreateTemplateModal";
+import { MoreVerticalIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
agent: LibraryAgent;
@@ -112,7 +113,7 @@ export function TaskActionsDropdown({ agent, run, onDeleted }: Props) {
onClick={(e) => e.stopPropagation()}
aria-label="More actions"
>
- <DotsThreeVertical className="h-5 w-5 text-gray-400" />
+ <Icon icon={MoreVerticalIcon} className="h-5 w-5 text-gray-400" />
</button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TaskListItem.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TaskListItem.tsx
index d44e5fb5e0..14999ad342 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TaskListItem.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TaskListItem.tsx
@@ -3,55 +3,56 @@
import { AgentExecutionStatus } from "@/app/api/__generated__/models/agentExecutionStatus";
import { GraphExecutionMeta } from "@/app/api/__generated__/models/graphExecutionMeta";
import { LibraryAgent } from "@/app/api/__generated__/models/libraryAgent";
-import {
- CheckCircleIcon,
- ClockIcon,
- FlaskIcon,
- PauseCircleIcon,
- StopCircleIcon,
- WarningCircleIcon,
- XCircleIcon,
-} from "@phosphor-icons/react";
import { formatDistanceToNow } from "date-fns";
import React from "react";
import { IconWrapper } from "./IconWrapper";
import { SidebarItemCard } from "./SidebarItemCard";
import { TaskActionsDropdown } from "./TaskActionsDropdown";
+import {
+ AlertCircleIcon,
+ CancelCircleIcon,
+ CheckmarkCircle02Icon,
+ Clock01Icon,
+ FlaskConicalIcon,
+ PauseCircleIcon,
+ StopCircleIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
const statusIconMap: Record<AgentExecutionStatus, React.ReactNode> = {
INCOMPLETE: (
<IconWrapper className="border-red-50 bg-red-50">
- <WarningCircleIcon size={16} className="text-red-700" weight="bold" />
+ <Icon icon={AlertCircleIcon} size={16} className="text-red-700" />
</IconWrapper>
),
QUEUED: (
<IconWrapper className="border-yellow-50 bg-yellow-50">
- <ClockIcon size={16} className="text-yellow-700" weight="bold" />
+ <Icon icon={Clock01Icon} size={16} className="text-yellow-700" />
</IconWrapper>
),
RUNNING: (
<IconWrapper className="border-yellow-50 bg-yellow-50">
- <PauseCircleIcon size={16} className="text-yellow-700" weight="bold" />
+ <Icon icon={PauseCircleIcon} size={16} className="text-yellow-700" />
</IconWrapper>
),
REVIEW: (
<IconWrapper className="border-yellow-50 bg-yellow-50">
- <PauseCircleIcon size={16} className="text-yellow-700" weight="bold" />
+ <Icon icon={PauseCircleIcon} size={16} className="text-yellow-700" />
</IconWrapper>
),
COMPLETED: (
<IconWrapper className="border-green-50 bg-green-50">
- <CheckCircleIcon size={16} className="text-green-700" weight="bold" />
+ <Icon icon={CheckmarkCircle02Icon} size={16} className="text-green-700" />
</IconWrapper>
),
TERMINATED: (
<IconWrapper className="border-slate-50 bg-slate-50">
- <StopCircleIcon size={16} className="text-slate-700" weight="bold" />
+ <Icon icon={StopCircleIcon} size={16} className="text-slate-700" />
</IconWrapper>
),
FAILED: (
<IconWrapper className="border-red-50 bg-red-50">
- <XCircleIcon size={16} className="text-red-700" weight="bold" />
+ <Icon icon={CancelCircleIcon} size={16} className="text-red-700" />
</IconWrapper>
),
};
@@ -75,7 +76,7 @@ export function TaskListItem({
}: Props) {
const icon = run.is_dry_run ? (
<IconWrapper className="border-amber-50 bg-amber-50">
- <FlaskIcon size={16} className="text-amber-700" weight="fill" />
+ <Icon icon={FlaskConicalIcon} size={16} className="text-amber-700" />
</IconWrapper>
) : (
statusIconMap[run.status]
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TemplateActionsDropdown.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TemplateActionsDropdown.tsx
index b65e0fd44a..7dc8c9d323 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TemplateActionsDropdown.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TemplateActionsDropdown.tsx
@@ -16,9 +16,10 @@ import {
DropdownMenuTrigger,
} from "@/components/molecules/DropdownMenu/DropdownMenu";
import { useToast } from "@/components/molecules/Toast/use-toast";
-import { DotsThreeVertical } from "@phosphor-icons/react";
import { useQueryClient } from "@tanstack/react-query";
import { useState } from "react";
+import { MoreVerticalIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
agent: LibraryAgent;
@@ -71,7 +72,7 @@ export function TemplateActionsDropdown({ agent, template, onDeleted }: Props) {
onClick={(e) => e.stopPropagation()}
aria-label="More actions"
>
- <DotsThreeVertical className="h-5 w-5 text-gray-400" />
+ <Icon icon={MoreVerticalIcon} className="h-5 w-5 text-gray-400" />
</button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TemplateListItem.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TemplateListItem.tsx
index 2cc3cbe203..d35221d13c 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TemplateListItem.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TemplateListItem.tsx
@@ -2,11 +2,12 @@
import { LibraryAgent } from "@/app/api/__generated__/models/libraryAgent";
import { LibraryAgentPreset } from "@/app/api/__generated__/models/libraryAgentPreset";
-import { FileTextIcon } from "@phosphor-icons/react";
import { formatDistanceToNow } from "date-fns";
import { IconWrapper } from "./IconWrapper";
import { SidebarItemCard } from "./SidebarItemCard";
import { TemplateActionsDropdown } from "./TemplateActionsDropdown";
+import { File02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
template: LibraryAgentPreset;
@@ -27,7 +28,7 @@ export function TemplateListItem({
<SidebarItemCard
icon={
<IconWrapper className="border-blue-50 bg-blue-50">
- <FileTextIcon size={16} className="text-zinc-700" weight="bold" />
+ <Icon icon={File02Icon} size={16} className="text-zinc-700" />
</IconWrapper>
}
title={template.name}
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TriggerActionsDropdown.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TriggerActionsDropdown.tsx
index 35296948c1..d9de1799b6 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TriggerActionsDropdown.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TriggerActionsDropdown.tsx
@@ -16,9 +16,10 @@ import {
DropdownMenuTrigger,
} from "@/components/molecules/DropdownMenu/DropdownMenu";
import { useToast } from "@/components/molecules/Toast/use-toast";
-import { DotsThreeVertical } from "@phosphor-icons/react";
import { useQueryClient } from "@tanstack/react-query";
import { useState } from "react";
+import { MoreVerticalIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
agent: LibraryAgent;
@@ -71,7 +72,7 @@ export function TriggerActionsDropdown({ agent, trigger, onDeleted }: Props) {
onClick={(e) => e.stopPropagation()}
aria-label="More actions"
>
- <DotsThreeVertical className="h-5 w-5 text-gray-400" />
+ <Icon icon={MoreVerticalIcon} className="h-5 w-5 text-gray-400" />
</button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TriggerAgentActionsDropdown.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TriggerAgentActionsDropdown.tsx
index 47878aba55..ed3d3258b7 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TriggerAgentActionsDropdown.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TriggerAgentActionsDropdown.tsx
@@ -8,9 +8,10 @@ import {
DropdownMenuItem,
DropdownMenuTrigger,
} from "@/components/molecules/DropdownMenu/DropdownMenu";
-import { DotsThreeVerticalIcon } from "@phosphor-icons/react";
import Link from "next/link";
import { useRemoveTriggerAgent } from "../../../../hooks/useRemoveTriggerAgent";
+import { MoreVerticalIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
parentAgent: LibraryAgent;
@@ -40,7 +41,7 @@ export function TriggerAgentActionsDropdown({
aria-label="More actions"
className="ml-auto min-w-fit shrink-0"
>
- <DotsThreeVerticalIcon size={18} />
+ <Icon icon={MoreVerticalIcon} size={18} />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TriggerAgentListItem.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TriggerAgentListItem.tsx
index bcbf4539bf..5c7cbbc85b 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TriggerAgentListItem.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TriggerAgentListItem.tsx
@@ -1,11 +1,12 @@
"use client";
import type { LibraryAgent } from "@/app/api/__generated__/models/libraryAgent";
-import { RobotIcon } from "@phosphor-icons/react";
import { formatDistanceToNow } from "date-fns";
import { IconWrapper } from "./IconWrapper";
import { SidebarItemCard } from "./SidebarItemCard";
import { TriggerAgentActionsDropdown } from "./TriggerAgentActionsDropdown";
+import { Robot01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
triggerAgent: LibraryAgent;
@@ -26,7 +27,7 @@ export function TriggerAgentListItem({
<SidebarItemCard
icon={
<IconWrapper className="border-blue-50 bg-blue-50">
- <RobotIcon size={16} className="text-zinc-700" weight="bold" />
+ <Icon icon={Robot01Icon} size={16} className="text-zinc-700" />
</IconWrapper>
}
title={triggerAgent.name}
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TriggerListItem.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TriggerListItem.tsx
index c7b0473a9b..980d1aa8ba 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TriggerListItem.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TriggerListItem.tsx
@@ -2,11 +2,12 @@
import { LibraryAgent } from "@/app/api/__generated__/models/libraryAgent";
import { LibraryAgentPreset } from "@/app/api/__generated__/models/libraryAgentPreset";
-import { LightningIcon } from "@phosphor-icons/react";
import { formatDistanceToNow } from "date-fns";
import { IconWrapper } from "./IconWrapper";
import { SidebarItemCard } from "./SidebarItemCard";
import { TriggerActionsDropdown } from "./TriggerActionsDropdown";
+import { FlashIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
trigger: LibraryAgentPreset;
@@ -27,7 +28,7 @@ export function TriggerListItem({
<SidebarItemCard
icon={
<IconWrapper className="border-purple-50 bg-purple-50">
- <LightningIcon size={16} className="text-zinc-700" weight="bold" />
+ <Icon icon={FlashIcon} size={16} className="text-zinc-700" />
</IconWrapper>
}
title={trigger.name}
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/components/AgentBriefingPanel/components/CostsBreakdown/CostsBreakdown.tsx b/autogpt_platform/frontend/src/app/(platform)/library/components/AgentBriefingPanel/components/CostsBreakdown/CostsBreakdown.tsx
index 03f558aa02..36e86d34e4 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/components/AgentBriefingPanel/components/CostsBreakdown/CostsBreakdown.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/components/AgentBriefingPanel/components/CostsBreakdown/CostsBreakdown.tsx
@@ -5,11 +5,12 @@ import { Button } from "@/components/atoms/Button/Button";
import { Skeleton } from "@/components/atoms/Skeleton/Skeleton";
import { Text } from "@/components/atoms/Text/Text";
import { formatCents } from "@/app/(platform)/copilot/components/usageHelpers";
-import { CaretDownIcon } from "@phosphor-icons/react";
import { useState } from "react";
import { SpendByAgentList } from "./components/SpendByAgentList";
import { TopRunsList } from "./components/TopRunsList";
import { useCostsBreakdown } from "./useCostsBreakdown";
+import { ArrowDown01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
agents: LibraryAgent[];
@@ -30,7 +31,8 @@ export function CostsBreakdown({ agents }: Props) {
className="w-fit gap-1 px-0 text-neutral-800 hover:bg-transparent"
>
{isExpanded ? "Hide costs breakdown" : "See costs breakdown"}
- <CaretDownIcon
+ <Icon
+ icon={ArrowDown01Icon}
size={14}
className={`transition-transform ${isExpanded ? "rotate-180" : ""}`}
/>
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/components/AgentFilterMenu/AgentFilterMenu.tsx b/autogpt_platform/frontend/src/app/(platform)/library/components/AgentFilterMenu/AgentFilterMenu.tsx
index b247c0dcf3..ba52797d4f 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/components/AgentFilterMenu/AgentFilterMenu.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/components/AgentFilterMenu/AgentFilterMenu.tsx
@@ -2,8 +2,9 @@
import type { SelectOption } from "@/components/atoms/Select/Select";
import { Select } from "@/components/atoms/Select/Select";
-import { FunnelIcon } from "@phosphor-icons/react";
import type { AgentStatusFilter, FleetSummary } from "../../types";
+import { FunnelIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
value: AgentStatusFilter;
@@ -35,7 +36,7 @@ export function AgentFilterMenu({ value, onChange, summary }: Props) {
<span className="hidden whitespace-nowrap text-sm text-zinc-500 sm:inline">
filter
</span>
- <FunnelIcon className="ml-1 h-4 w-4 sm:hidden" />
+ <Icon icon={FunnelIcon} className="ml-1 h-4 w-4 sm:hidden" />
<Select
id="agent-status-filter"
label="Filter agents"
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/components/ContextualActionButton/ContextualActionButton.tsx b/autogpt_platform/frontend/src/app/(platform)/library/components/ContextualActionButton/ContextualActionButton.tsx
index f72e34c982..c8b3bf02d3 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/components/ContextualActionButton/ContextualActionButton.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/components/ContextualActionButton/ContextualActionButton.tsx
@@ -1,13 +1,14 @@
"use client";
-
-import {
- EyeIcon,
- ArrowsClockwiseIcon,
- MonitorPlayIcon,
-} from "@phosphor-icons/react";
import { cn } from "@/lib/utils";
import { useRouter } from "next/navigation";
import type { AgentStatus } from "../../types";
+import {
+ ComputerVideoIcon,
+ EyeIcon,
+ ReloadIcon,
+} from "@hugeicons/core-free-icons";
+import type { IconSvgElement } from "@hugeicons/react";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
status: AgentStatus;
@@ -27,8 +28,6 @@ export function ContextualActionButton({
const config = ACTION_CONFIG[status];
if (!config) return null;
- const Icon = config.icon;
-
function handleClick(e: React.MouseEvent) {
e.preventDefault();
e.stopPropagation();
@@ -48,7 +47,7 @@ export function ContextualActionButton({
className,
)}
>
- <Icon size={12} className="shrink-0" />
+ <Icon icon={config.icon} size={12} className="shrink-0" />
{config.label}
</button>
);
@@ -56,11 +55,11 @@ export function ContextualActionButton({
const ACTION_CONFIG: Record<
AgentStatus,
- { label: string; icon: typeof EyeIcon }
+ { label: string; icon: IconSvgElement }
> = {
error: { label: "View error", icon: EyeIcon },
- listening: { label: "Reconnect", icon: ArrowsClockwiseIcon },
- running: { label: "Watch live", icon: MonitorPlayIcon },
+ listening: { label: "Reconnect", icon: ReloadIcon },
+ running: { label: "Watch live", icon: ComputerVideoIcon },
idle: { label: "View", icon: EyeIcon },
scheduled: { label: "View", icon: EyeIcon },
};
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/components/FlyingHeart/FlyingHeart.tsx b/autogpt_platform/frontend/src/app/(platform)/library/components/FlyingHeart/FlyingHeart.tsx
index 19c2e4328a..e44db30166 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/components/FlyingHeart/FlyingHeart.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/components/FlyingHeart/FlyingHeart.tsx
@@ -1,8 +1,9 @@
"use client";
import { motion, AnimatePresence, useReducedMotion } from "framer-motion";
-import { HeartIcon } from "@phosphor-icons/react";
import { useEffect, useState } from "react";
+import { FavouriteIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface FlyingHeartProps {
startPosition: { x: number; y: number } | null;
@@ -59,9 +60,9 @@ export function FlyingHeart({
onAnimationComplete();
}}
>
- <HeartIcon
+ <Icon
+ icon={FavouriteIcon}
size={24}
- weight="fill"
className="text-red-500 drop-shadow-md"
/>
</motion.div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryAgentCard/LibraryAgentCard.tsx b/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryAgentCard/LibraryAgentCard.tsx
index 0328815dba..65a1259956 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryAgentCard/LibraryAgentCard.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryAgentCard/LibraryAgentCard.tsx
@@ -1,7 +1,6 @@
"use client";
import { Text } from "@/components/atoms/Text/Text";
-import { EyeIcon, ChatCircleDotsIcon } from "@phosphor-icons/react";
import Image from "next/image";
import NextLink from "next/link";
import { useRouter } from "next/navigation";
@@ -21,6 +20,8 @@ import {
TooltipContent,
TooltipTrigger,
} from "@/components/ui/tooltip";
+import { Chatting01Icon, EyeIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
agent: LibraryAgent;
@@ -132,7 +133,7 @@ export function LibraryAgentCard({
data-testid="library-agent-card-see-runs-link"
className="inline-flex items-center gap-1 whitespace-nowrap rounded-md px-2 py-1.5 text-[13px] font-medium text-zinc-600 transition-colors hover:bg-zinc-50 hover:text-zinc-800"
>
- <EyeIcon size={14} className="shrink-0" />
+ <Icon icon={EyeIcon} size={14} className="shrink-0" />
See tasks
</button>
<ContextualActionButton
@@ -150,7 +151,7 @@ export function LibraryAgentCard({
}}
className="inline-flex items-center gap-1 whitespace-nowrap rounded-md px-2 py-1.5 text-[13px] font-medium text-zinc-600 transition-colors hover:bg-zinc-50 hover:text-zinc-800"
>
- <ChatCircleDotsIcon size={14} className="shrink-0" />
+ <Icon icon={Chatting01Icon} size={14} className="shrink-0" />
Chat
</button>
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryAgentCard/components/AgentCardMenu.tsx b/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryAgentCard/components/AgentCardMenu.tsx
index a473234b9a..831e811f0f 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryAgentCard/components/AgentCardMenu.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryAgentCard/components/AgentCardMenu.tsx
@@ -21,12 +21,13 @@ import {
DropdownMenuTrigger,
} from "@/components/molecules/DropdownMenu/DropdownMenu";
import { useToast } from "@/components/molecules/Toast/use-toast";
-import { DotsThree } from "@phosphor-icons/react";
import { useQueryClient } from "@tanstack/react-query";
import Link from "next/link";
import { useRouter } from "next/navigation";
import { useState } from "react";
import { MoveToFolderDialog } from "../../MoveToFolderDialog/MoveToFolderDialog";
+import { MoreHorizontalIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface AgentCardMenuProps {
agent: LibraryAgent;
@@ -158,7 +159,10 @@ export function AgentCardMenu({ agent }: AgentCardMenuProps) {
onClick={(e) => e.stopPropagation()}
aria-label="More actions"
>
- <DotsThree className="h-5 w-5 text-neutral-600" />
+ <Icon
+ icon={MoreHorizontalIcon}
+ className="h-5 w-5 text-neutral-600"
+ />
</button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryAgentCard/components/FavoriteButton.tsx b/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryAgentCard/components/FavoriteButton.tsx
index 2289ab918b..f34cabd833 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryAgentCard/components/FavoriteButton.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryAgentCard/components/FavoriteButton.tsx
@@ -1,10 +1,11 @@
"use client";
import { cn } from "@/lib/utils";
-import { HeartIcon } from "@phosphor-icons/react";
import type { MouseEvent } from "react";
import { useRef } from "react";
import { motion, AnimatePresence } from "framer-motion";
+import { FavouriteIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface FavoriteButtonProps {
isFavorite: boolean;
@@ -53,9 +54,9 @@ export function FavoriteButton({
exit={{ scale: 0.5, opacity: 0 }}
transition={{ type: "spring", damping: 15, stiffness: 300 }}
>
- <HeartIcon
+ <Icon
+ icon={FavouriteIcon}
size={20}
- weight={isFavorite ? "fill" : "regular"}
className={cn(
"transition-colors duration-200",
isFavorite ? "text-red-500" : "text-gray-600 hover:text-red-500",
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryAgentList/LibraryAgentList.tsx b/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryAgentList/LibraryAgentList.tsx
index 8820571298..cf783b237d 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryAgentList/LibraryAgentList.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryAgentList/LibraryAgentList.tsx
@@ -7,7 +7,6 @@ import { InfiniteScroll } from "@/components/contextual/InfiniteScroll/InfiniteS
import { LibraryAgentCard } from "../LibraryAgentCard/LibraryAgentCard";
import { LibraryFolder } from "../LibraryFolder/LibraryFolder";
import { LibrarySubSection } from "../LibrarySubSection/LibrarySubSection";
-import { ArrowLeftIcon, HeartIcon } from "@phosphor-icons/react";
import { Text } from "@/components/atoms/Text/Text";
import {
AnimatePresence,
@@ -24,6 +23,8 @@ import { AgentBriefingPanel } from "../AgentBriefingPanel/AgentBriefingPanel";
import { LowCreditBanner } from "@/components/layout/TopUpPrompt/LowCreditBanner/LowCreditBanner";
import { Flag, useGetFlag } from "@/services/feature-flags/use-get-flag";
import { useAgentStatusMap, getAgentStatus } from "../../hooks/useAgentStatus";
+import { ArrowLeft02Icon, FavouriteIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
// cancels the current spring and starts a new one from current state.
const containerVariants = {
@@ -189,7 +190,7 @@ export function LibraryAgentList({
onClick={() => onFolderSelect(null)}
className="inline-flex items-center gap-1 text-sm text-zinc-500 hover:text-zinc-900"
>
- <ArrowLeftIcon className="h-4 w-4" />
+ <Icon icon={ArrowLeft02Icon} className="h-4 w-4" />
My Library
</button>
{currentFolder && (
@@ -210,7 +211,7 @@ export function LibraryAgentList({
</div>
) : isFavoritesTab && agents.length === 0 ? (
<div className="flex h-[200px] flex-col items-center justify-center gap-2 text-zinc-500">
- <HeartIcon className="h-10 w-10" />
+ <Icon icon={FavouriteIcon} className="h-10 w-10" />
<Text variant="body">No favorite agents yet</Text>
</div>
) : isPristineEmpty ? (
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryEmptyState/LibraryEmptyState.tsx b/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryEmptyState/LibraryEmptyState.tsx
index 811d81a1e4..6a0453266f 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryEmptyState/LibraryEmptyState.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryEmptyState/LibraryEmptyState.tsx
@@ -2,8 +2,9 @@
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
-import { PlusIcon, StorefrontIcon } from "@phosphor-icons/react";
import { motion, useReducedMotion } from "framer-motion";
+import { PlusSignIcon, Store01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
const EASE_OUT_QUINT = [0.22, 1, 0.36, 1] as const;
@@ -52,7 +53,7 @@ export function LibraryEmptyState() {
href="/build"
variant="primary"
size="large"
- leftIcon={<PlusIcon className="h-4 w-4" weight="bold" />}
+ leftIcon={<Icon icon={PlusSignIcon} className="h-4 w-4" />}
>
Build an agent
</Button>
@@ -63,7 +64,7 @@ export function LibraryEmptyState() {
href="/marketplace"
variant="secondary"
size="large"
- leftIcon={<StorefrontIcon className="h-4 w-4" weight="bold" />}
+ leftIcon={<Icon icon={Store01Icon} className="h-4 w-4" />}
>
Browse marketplace
</Button>
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryFolder/LibraryFolder.tsx b/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryFolder/LibraryFolder.tsx
index 5c93ebc878..eeb39af64d 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryFolder/LibraryFolder.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryFolder/LibraryFolder.tsx
@@ -4,9 +4,10 @@ import { Text } from "@/components/atoms/Text/Text";
import { Button } from "@/components/atoms/Button/Button";
import { FolderIcon, FolderColor } from "./FolderIcon";
import { useState } from "react";
-import { PencilSimpleIcon, TrashIcon } from "@phosphor-icons/react";
import type { AgentStatus } from "../../types";
import { StatusBadge } from "../StatusBadge/StatusBadge";
+import { Delete02Icon, PencilIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
id: string;
@@ -119,7 +120,7 @@ export function LibraryFolder({
}}
className="h-8 w-8 border border-neutral-200 bg-white/80 p-2 text-neutral-500 hover:bg-white hover:text-neutral-700"
>
- <PencilSimpleIcon className="h-4 w-4" />
+ <Icon icon={PencilIcon} className="h-4 w-4" />
</Button>
<Button
variant="icon"
@@ -131,7 +132,7 @@ export function LibraryFolder({
}}
className="h-8 w-8 border border-neutral-200 bg-white/80 p-2 text-neutral-500 hover:bg-white hover:text-neutral-700"
>
- <TrashIcon className="h-4 w-4" />
+ <Icon icon={Delete02Icon} className="h-4 w-4" />
</Button>
</div>
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryFolderCreationDialog/LibraryFolderCreationDialog.tsx b/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryFolderCreationDialog/LibraryFolderCreationDialog.tsx
index 383ea97a3c..f88d74b38d 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryFolderCreationDialog/LibraryFolderCreationDialog.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryFolderCreationDialog/LibraryFolderCreationDialog.tsx
@@ -12,7 +12,6 @@ import {
FormMessage,
} from "@/components/molecules/Form/Form";
import { zodResolver } from "@hookform/resolvers/zod";
-import { FolderSimpleIcon } from "@phosphor-icons/react";
import { useState } from "react";
import { useForm } from "react-hook-form";
import { z } from "zod";
@@ -24,6 +23,8 @@ import {
import { useToast } from "@/components/molecules/Toast/use-toast";
import { useQueryClient } from "@tanstack/react-query";
import { FOLDER_COLORS } from "../folder-constants";
+import { Folder01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
const LazyEmojiPicker = dynamic(
() =>
@@ -108,7 +109,7 @@ export default function LibraryFolderCreationDialog() {
className="h-fit w-fit"
size="small"
>
- <FolderSimpleIcon width={18} height={18} />
+ <Icon icon={Folder01Icon} width={18} height={18} />
<span className="create-folder">Create folder</span>
</Button>
</Dialog.Trigger>
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryImportDialog/LibraryImportDialog.tsx b/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryImportDialog/LibraryImportDialog.tsx
index a27b2c8cc3..0fe3cd7955 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryImportDialog/LibraryImportDialog.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryImportDialog/LibraryImportDialog.tsx
@@ -6,12 +6,13 @@ import {
TabsLineList,
TabsLineTrigger,
} from "@/components/molecules/TabsLine/TabsLine";
-import { UploadSimpleIcon } from "@phosphor-icons/react";
import { useState } from "react";
import { useLibraryUploadAgentDialog } from "../LibraryUploadAgentDialog/useLibraryUploadAgentDialog";
import AgentUploadTab from "./components/AgentUploadTab/AgentUploadTab";
import ExternalWorkflowTab from "./components/ExternalWorkflowTab/ExternalWorkflowTab";
import { useExternalWorkflowTab } from "./components/ExternalWorkflowTab/useExternalWorkflowTab";
+import { Upload03Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export default function LibraryImportDialog() {
const [isOpen, setIsOpen] = useState(false);
@@ -43,7 +44,7 @@ export default function LibraryImportDialog() {
className="h-[2.78rem] w-full md:w-[10rem]"
size="small"
>
- <UploadSimpleIcon width={18} height={18} />
+ <Icon icon={Upload03Icon} width={18} height={18} />
<span>Import</span>
</Button>
</Dialog.Trigger>
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/components/LibrarySearchBar/LibrarySearchBar.tsx b/autogpt_platform/frontend/src/app/(platform)/library/components/LibrarySearchBar/LibrarySearchBar.tsx
index cf63c300d6..3aa9a5f2bd 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/components/LibrarySearchBar/LibrarySearchBar.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/components/LibrarySearchBar/LibrarySearchBar.tsx
@@ -1,8 +1,9 @@
"use client";
import { Input } from "@/components/atoms/Input/Input";
-import { MagnifyingGlassIcon } from "@phosphor-icons/react";
import { useLibrarySearchbar } from "./useLibrarySearchbar";
+import { Search01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
setSearchTerm: (value: string) => void;
@@ -16,7 +17,8 @@ export function LibrarySearchBar({ setSearchTerm }: Props) {
data-testid="search-bar"
className="relative z-[21] -mb-6 flex w-full items-center md:w-auto"
>
- <MagnifyingGlassIcon
+ <Icon
+ icon={Search01Icon}
width={18}
height={18}
className="absolute left-4 top-[34%] z-20 -translate-y-1/2 text-zinc-800"
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/components/LibrarySubSection/LibrarySubSection.tsx b/autogpt_platform/frontend/src/app/(platform)/library/components/LibrarySubSection/LibrarySubSection.tsx
index 3a4475d55d..073bfc35e7 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/components/LibrarySubSection/LibrarySubSection.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/components/LibrarySubSection/LibrarySubSection.tsx
@@ -10,6 +10,7 @@ import type { LibraryTab, AgentStatusFilter, FleetSummary } from "../../types";
import LibraryFolderCreationDialog from "../LibraryFolderCreationDialog/LibraryFolderCreationDialog";
import { LibrarySortMenu } from "../LibrarySortMenu/LibrarySortMenu";
import { AgentFilterMenu } from "../AgentFilterMenu/AgentFilterMenu";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
tabs: LibraryTab[];
@@ -69,7 +70,7 @@ export function LibrarySubSection({
className="inline-flex items-center gap-1.5"
disabled={tab.id === "favorites" && favoritesCount === 0}
>
- <tab.icon size={16} />
+ <Icon icon={tab.icon} size={16} />
{getTabLabel(tab)}
</TabsLineTrigger>
))}
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryUploadAgentDialog/LibraryUploadAgentDialog.tsx b/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryUploadAgentDialog/LibraryUploadAgentDialog.tsx
index 436be6f15a..04447bbcf3 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryUploadAgentDialog/LibraryUploadAgentDialog.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryUploadAgentDialog/LibraryUploadAgentDialog.tsx
@@ -11,9 +11,10 @@ import {
FormItem,
FormMessage,
} from "@/components/molecules/Form/Form";
-import { UploadSimpleIcon } from "@phosphor-icons/react";
import { z } from "zod";
import { useLibraryUploadAgentDialog } from "./useLibraryUploadAgentDialog";
+import { Upload03Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export const uploadAgentFormSchema = z.object({
agentFile: z.string().min(1, "Agent file is required"),
@@ -44,7 +45,7 @@ export default function LibraryUploadAgentDialog() {
className="h-[2.78rem] w-full md:w-[12rem]"
size="small"
>
- <UploadSimpleIcon width={18} height={18} />
+ <Icon icon={Upload03Icon} width={18} height={18} />
<span className="">Upload agent</span>
</Button>
</Dialog.Trigger>
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/components/SitrepItem/SitrepItem.tsx b/autogpt_platform/frontend/src/app/(platform)/library/components/SitrepItem/SitrepItem.tsx
index 23acdb5bd7..1bb4333d19 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/components/SitrepItem/SitrepItem.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/components/SitrepItem/SitrepItem.tsx
@@ -2,16 +2,6 @@
import { OverflowText } from "@/components/atoms/OverflowText/OverflowText";
import { Text } from "@/components/atoms/Text/Text";
-import {
- WarningCircleIcon,
- ClockCountdownIcon,
- CheckCircleIcon,
- ChatCircleDotsIcon,
- EarIcon,
- CalendarDotsIcon,
- MoonIcon,
- EyeIcon,
-} from "@phosphor-icons/react";
import NextLink from "next/link";
import { cn } from "@/lib/utils";
import { useRouter } from "next/navigation";
@@ -19,6 +9,18 @@ import type { SitrepItemData, SitrepPriority } from "../../types";
import { ContextualActionButton } from "../ContextualActionButton/ContextualActionButton";
import styles from "./SitrepItem.module.css";
import { buildAutoPilotPrompt } from "./helpers";
+import {
+ AlertCircleIcon,
+ Calendar03Icon,
+ Chatting01Icon,
+ CheckmarkCircle02Icon,
+ ClockFadingIcon,
+ EarIcon,
+ EyeIcon,
+ MoonIcon,
+} from "@hugeicons/core-free-icons";
+import type { IconSvgElement } from "@hugeicons/react";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
item: SitrepItemData;
@@ -27,14 +29,14 @@ interface Props {
const PRIORITY_CONFIG: Record<
SitrepPriority,
{
- icon?: typeof WarningCircleIcon;
+ icon?: IconSvgElement;
color: string;
bg: string;
cssSpinner?: boolean;
}
> = {
error: {
- icon: WarningCircleIcon,
+ icon: AlertCircleIcon,
color: "text-red-500",
bg: "bg-red-50",
},
@@ -44,12 +46,12 @@ const PRIORITY_CONFIG: Record<
cssSpinner: true,
},
stale: {
- icon: ClockCountdownIcon,
+ icon: ClockFadingIcon,
color: "text-yellow-600",
bg: "bg-yellow-50",
},
success: {
- icon: CheckCircleIcon,
+ icon: CheckmarkCircle02Icon,
color: "text-green-600",
bg: "bg-green-50",
},
@@ -59,7 +61,7 @@ const PRIORITY_CONFIG: Record<
bg: "bg-purple-50",
},
scheduled: {
- icon: CalendarDotsIcon,
+ icon: Calendar03Icon,
color: "text-yellow-600",
bg: "bg-yellow-50",
},
@@ -109,7 +111,7 @@ export function SitrepItem({ item }: Props) {
/>
) : (
config.icon && (
- <config.icon size={14} className={config.color} weight="fill" />
+ <Icon icon={config.icon} size={14} className={config.color} />
)
)}
</div>
@@ -133,7 +135,7 @@ export function SitrepItem({ item }: Props) {
href={`/library/agents/${item.agentID}${item.executionID ? `?activeItem=${item.executionID}` : ""}`}
className="inline-flex items-center gap-1 rounded-md px-2 py-1.5 text-[13px] font-medium text-zinc-600 transition-colors hover:bg-zinc-50 hover:text-zinc-800"
>
- <EyeIcon size={14} className="shrink-0" />
+ <Icon icon={EyeIcon} size={14} className="shrink-0" />
See task
</NextLink>
) : (
@@ -148,7 +150,7 @@ export function SitrepItem({ item }: Props) {
onClick={handleAskAutoPilot}
className="inline-flex items-center gap-1 rounded-md px-2 py-1.5 text-[13px] font-medium text-zinc-600 transition-colors hover:bg-zinc-50 hover:text-zinc-800"
>
- <ChatCircleDotsIcon size={14} className="shrink-0" />
+ <Icon icon={Chatting01Icon} size={14} className="shrink-0" />
Ask AutoPilot
</button>
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/followups/page.tsx b/autogpt_platform/frontend/src/app/(platform)/library/followups/page.tsx
index 7584449912..4a4cd7717e 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/followups/page.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/followups/page.tsx
@@ -3,8 +3,9 @@
import { useEffect } from "react";
import Link from "next/link";
import { useRouter } from "next/navigation";
-import { ArrowLeftIcon } from "@phosphor-icons/react";
import { SchedulesPanel } from "@/components/contextual/SchedulesPanel/SchedulesPanel";
+import { ArrowLeft02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export default function FollowupsPage() {
const router = useRouter();
@@ -24,7 +25,7 @@ export default function FollowupsPage() {
className="inline-flex items-center gap-1 text-sm text-zinc-500 hover:text-zinc-800"
data-testid="followups-back-to-library"
>
- <ArrowLeftIcon size={14} weight="bold" />
+ <Icon icon={ArrowLeft02Icon} size={14} />
Back to Library
</Link>
<SchedulesPanel onGuidedPrompt={handleGuidedPrompt} />
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/page.tsx b/autogpt_platform/frontend/src/app/(platform)/library/page.tsx
index b660999520..8fa5b106bd 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/page.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/page.tsx
@@ -1,7 +1,6 @@
"use client";
import { useEffect, useState, useCallback } from "react";
-import { HeartIcon, ListIcon } from "@phosphor-icons/react";
import { LibraryActionHeader } from "./components/LibraryActionHeader/LibraryActionHeader";
import { LibraryAgentList } from "./components/LibraryAgentList/LibraryAgentList";
import { useLibraryListPage } from "./components/useLibraryListPage";
@@ -10,10 +9,11 @@ import type { LibraryTab, AgentStatusFilter } from "./types";
import { useLibraryFleetSummary } from "./hooks/useLibraryFleetSummary";
import { Flag, useGetFlag } from "@/services/feature-flags/use-get-flag";
import { useLibraryAgents } from "@/hooks/useLibraryAgents/useLibraryAgents";
+import { FavouriteIcon, Menu01Icon } from "@hugeicons/core-free-icons";
const LIBRARY_TABS: LibraryTab[] = [
- { id: "all", title: "All", icon: ListIcon },
- { id: "favorites", title: "Favorites", icon: HeartIcon },
+ { id: "all", title: "All", icon: Menu01Icon },
+ { id: "favorites", title: "Favorites", icon: FavouriteIcon },
];
export default function LibraryPage() {
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/skills/page.tsx b/autogpt_platform/frontend/src/app/(platform)/library/skills/page.tsx
index 2adff48cf8..b0d8613ac7 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/skills/page.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/skills/page.tsx
@@ -3,8 +3,9 @@
import { useEffect } from "react";
import Link from "next/link";
import { useRouter } from "next/navigation";
-import { ArrowLeftIcon } from "@phosphor-icons/react";
import { SkillsPanel } from "@/components/contextual/SkillsPanel/SkillsPanel";
+import { ArrowLeft02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export default function SkillsPage() {
const router = useRouter();
@@ -24,7 +25,7 @@ export default function SkillsPage() {
className="inline-flex items-center gap-1 text-sm text-zinc-500 hover:text-zinc-800"
data-testid="skills-back-to-library"
>
- <ArrowLeftIcon size={14} weight="bold" />
+ <Icon icon={ArrowLeft02Icon} size={14} />
Back to Library
</Link>
<SkillsPanel onGuidedPrompt={handleGuidedPrompt} />
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/types.ts b/autogpt_platform/frontend/src/app/(platform)/library/types.ts
index 3050f7d4f7..c19b89077c 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/types.ts
+++ b/autogpt_platform/frontend/src/app/(platform)/library/types.ts
@@ -1,9 +1,9 @@
-import type { Icon } from "@phosphor-icons/react";
+import type { IconSvgElement } from "@hugeicons/react";
export interface LibraryTab {
id: string;
title: string;
- icon: Icon;
+ icon: IconSvgElement;
}
/** Agent execution status — drives StatusBadge visuals & filtering. */
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/AddToLibraryButton/AddToLibraryButton.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/AddToLibraryButton/AddToLibraryButton.tsx
index 4ea585c91a..075f1066c3 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/AddToLibraryButton/AddToLibraryButton.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/AddToLibraryButton/AddToLibraryButton.tsx
@@ -13,10 +13,11 @@ import { Button } from "@/components/atoms/Button/Button";
import { useToast } from "@/components/molecules/Toast/use-toast";
import { useAuth } from "@/lib/auth/hooks/useAuth";
import { analytics } from "@/services/analytics";
-import { PlusIcon } from "@phosphor-icons/react";
import * as Sentry from "@sentry/nextjs";
import { useQueryClient } from "@tanstack/react-query";
import { useState } from "react";
+import { PlusSignIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
function UndoActions({
libraryAgentID,
@@ -186,7 +187,7 @@ export function AddToLibraryButton({
variant="secondary"
size="small"
loading={isPending}
- leftIcon={<PlusIcon size={14} weight="bold" />}
+ leftIcon={<Icon icon={PlusSignIcon} size={14} />}
onClick={handleClick}
className={`z-10 ${className ?? ""}`}
aria-label={`Add ${agentName} to library`}
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/AgentImageItem/AgentImageItem.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/AgentImageItem/AgentImageItem.tsx
index ce28db0bc9..3ca880ca48 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/AgentImageItem/AgentImageItem.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/AgentImageItem/AgentImageItem.tsx
@@ -1,6 +1,5 @@
import { Button } from "@/components/atoms/Button/Button";
import { Skeleton } from "@/components/atoms/Skeleton/Skeleton";
-import { Play } from "@phosphor-icons/react";
import Image from "next/image";
import { useEffect, useState } from "react";
import {
@@ -9,6 +8,8 @@ import {
isValidVideoUrl,
} from "./helpers";
import { useAgentImageItem } from "./useAgentImageItem";
+import { PlayIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface AgentImageItemProps {
image: string;
@@ -93,9 +94,9 @@ export function AgentImageItem({
}
}}
rightIcon={
- <Play
+ <Icon
+ icon={PlayIcon}
size={20}
- weight="fill"
className="text-black dark:text-neutral-200 sm:h-6 sm:w-6 md:h-7 md:w-7"
/>
}
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/AgentInfo/AgentInfo.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/AgentInfo/AgentInfo.tsx
index c1e74736af..d12402d52e 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/AgentInfo/AgentInfo.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/AgentInfo/AgentInfo.tsx
@@ -14,11 +14,12 @@ import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
import { formatTimeAgo } from "@/lib/utils/time";
-import { PlusIcon } from "@phosphor-icons/react";
import type { User } from "@/lib/auth/types";
import Link from "next/link";
import { InstallOnExpertButton } from "../InstallOnExpertButton/InstallOnExpertButton";
import { useAgentInfo } from "./useAgentInfo";
+import { PlusSignIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface AgentInfoProps {
user: User | null;
@@ -192,9 +193,9 @@ export const AgentInfo = ({
loading={isAddingAgentToLibrary}
leftIcon={
!isAddingAgentToLibrary && !isAgentAddedToLibrary ? (
- <PlusIcon
+ <Icon
+ icon={PlusSignIcon}
size={16}
- weight="bold"
className="transition-transform duration-300 group-hover/add:rotate-90 group-hover/add:scale-125"
/>
) : undefined
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CreatorLinks/CreatorLinks.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CreatorLinks/CreatorLinks.tsx
index 466db8ae25..add151e284 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CreatorLinks/CreatorLinks.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CreatorLinks/CreatorLinks.tsx
@@ -1,15 +1,16 @@
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
import {
- FacebookLogo,
- GithubLogo,
- Globe,
- InstagramLogo,
- LinkedinLogo,
- TiktokLogo,
- XLogo,
- YoutubeLogo,
-} from "@phosphor-icons/react";
+ Facebook02Icon,
+ GithubIcon,
+ Globe02Icon,
+ InstagramIcon,
+ Linkedin01Icon,
+ NewTwitterIcon,
+ TiktokIcon,
+ YoutubeIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface CreatorLinksProps {
links: string[];
@@ -36,30 +37,30 @@ function getSocialIcon(url: string) {
try {
host = new URL(normalizeURL(url)).hostname.toLowerCase();
} catch {
- return <Globe className="h-4 w-4" />;
+ return <Icon icon={Globe02Icon} className="h-4 w-4" />;
}
if (host === "facebook.com" || host.endsWith(".facebook.com")) {
- return <FacebookLogo className="h-4 w-4" />;
+ return <Icon icon={Facebook02Icon} className="h-4 w-4" />;
} else if (
host === "twitter.com" ||
host.endsWith(".twitter.com") ||
host === "x.com" ||
host.endsWith(".x.com")
) {
- return <XLogo className="h-4 w-4" />;
+ return <Icon icon={NewTwitterIcon} className="h-4 w-4" />;
} else if (host === "instagram.com" || host.endsWith(".instagram.com")) {
- return <InstagramLogo className="h-4 w-4" />;
+ return <Icon icon={InstagramIcon} className="h-4 w-4" />;
} else if (host === "linkedin.com" || host.endsWith(".linkedin.com")) {
- return <LinkedinLogo className="h-4 w-4" />;
+ return <Icon icon={Linkedin01Icon} className="h-4 w-4" />;
} else if (host === "github.com" || host.endsWith(".github.com")) {
- return <GithubLogo className="h-4 w-4" />;
+ return <Icon icon={GithubIcon} className="h-4 w-4" />;
} else if (host === "youtube.com" || host.endsWith(".youtube.com")) {
- return <YoutubeLogo className="h-4 w-4" />;
+ return <Icon icon={YoutubeIcon} className="h-4 w-4" />;
} else if (host === "tiktok.com" || host.endsWith(".tiktok.com")) {
- return <TiktokLogo className="h-4 w-4" />;
+ return <Icon icon={TiktokIcon} className="h-4 w-4" />;
}
- return <Globe className="h-4 w-4" />;
+ return <Icon icon={Globe02Icon} className="h-4 w-4" />;
}
export function CreatorLinks({ links }: CreatorLinksProps) {
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CreatorLinks/__tests__/CreatorLinks.test.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CreatorLinks/__tests__/CreatorLinks.test.tsx
new file mode 100644
index 0000000000..9ad3ff8e78
--- /dev/null
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CreatorLinks/__tests__/CreatorLinks.test.tsx
@@ -0,0 +1,85 @@
+import { afterEach, describe, expect, it } from "vitest";
+import { cleanup, render, screen } from "@testing-library/react";
+import { CreatorLinks } from "../CreatorLinks";
+
+afterEach(cleanup);
+
+// Each social host maps to its own brand glyph. A wrong or undefined icon
+// import renders an empty <svg> rather than throwing, so compare the drawn
+// geometry instead of asserting the element exists.
+function glyph(root: HTMLElement) {
+ const svg = root.querySelector("svg");
+ if (!svg) return "";
+ return Array.from(
+ svg.querySelectorAll("path,circle,rect,line,polyline,ellipse"),
+ )
+ .map((n) => n.getAttribute("d") ?? n.outerHTML)
+ .join("|");
+}
+
+function renderLink(url: string) {
+ const { container, unmount } = render(<CreatorLinks links={[url]} />);
+ const g = glyph(container);
+ unmount();
+ return g;
+}
+
+describe("CreatorLinks", () => {
+ it("renders nothing when there are no links", () => {
+ const { container } = render(<CreatorLinks links={[]} />);
+ expect(container.innerHTML).toBe("");
+ });
+
+ it("labels each link with its hostname, stripped of scheme and www", () => {
+ render(
+ <CreatorLinks
+ links={["https://www.github.com/acme", "example.com/page"]}
+ />,
+ );
+
+ expect(screen.getByText("github.com")).toBeDefined();
+ expect(screen.getByText("example.com")).toBeDefined();
+ });
+
+ it("gives each recognised social host its own brand glyph", () => {
+ const hosts = [
+ "https://facebook.com/acme",
+ "https://x.com/acme",
+ "https://instagram.com/acme",
+ "https://linkedin.com/in/acme",
+ "https://github.com/acme",
+ "https://youtube.com/@acme",
+ "https://tiktok.com/@acme",
+ ];
+
+ const drawn = hosts.map(renderLink);
+ drawn.forEach((g) => expect(g).toBeTruthy());
+ expect(new Set(drawn).size).toBe(drawn.length);
+ });
+
+ it("treats twitter.com and x.com as the same brand", () => {
+ expect(renderLink("https://twitter.com/acme")).toBe(
+ renderLink("https://x.com/acme"),
+ );
+ });
+
+ it("matches subdomains of a known host", () => {
+ expect(renderLink("https://www.youtube.com/@acme")).toBe(
+ renderLink("https://youtube.com/@acme"),
+ );
+ });
+
+ it("falls back to the globe glyph for unknown hosts", () => {
+ const globe = renderLink("https://example.com");
+ expect(globe).toBeTruthy();
+ expect(renderLink("https://some-blog.dev")).toBe(globe);
+ // A host that merely contains a brand name must not borrow its glyph.
+ expect(renderLink("https://notgithub.com")).toBe(globe);
+ });
+
+ it("falls back to the globe glyph when the URL cannot be parsed", () => {
+ const unparseable = renderLink("http://");
+ expect(unparseable).toBeTruthy();
+ expect(unparseable).toBe(renderLink("https://example.com"));
+ });
+});
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/components/ExpertCard.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/components/ExpertCard.tsx
index 2b3da66faa..52f93af360 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/components/ExpertCard.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/components/ExpertCard.tsx
@@ -5,12 +5,13 @@ import {
AvatarImage,
} from "@/components/atoms/Avatar/Avatar";
import { cn } from "@/lib/utils";
-import {
- ArrowRightIcon,
- CheckCircleIcon,
- LightningIcon,
-} from "@phosphor-icons/react";
import { getExpertAccent } from "../helpers";
+import {
+ ArrowRight02Icon,
+ CheckmarkCircle02Icon,
+ FlashIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
expert: Expert;
@@ -47,7 +48,7 @@ export function ExpertCard({ expert, isHired, onClick }: Props) {
accent.pill,
)}
>
- <accent.roleIcon size={14} weight="bold" />
+ <Icon icon={accent.roleIcon} size={14} />
{expert.role}
</span>
</div>
@@ -88,21 +89,21 @@ export function ExpertCard({ expert, isHired, onClick }: Props) {
<div className="mt-auto flex items-center justify-between pt-2">
<span className="flex items-center gap-2 text-base text-zinc-500">
- <LightningIcon size={18} weight="fill" className={accent.icon} />
+ <Icon icon={FlashIcon} size={18} className={accent.icon} />
{expert.workflows.length}{" "}
{expert.workflows.length === 1 ? "workflow" : "workflows"}
</span>
{isHired ? (
<span className="flex items-center gap-1.5 text-base font-medium text-emerald-600">
- <CheckCircleIcon size={18} weight="fill" />
+ <Icon icon={CheckmarkCircle02Icon} size={18} />
Hired
</span>
) : (
<span className="flex items-center gap-1.5 text-base font-medium text-zinc-400 transition-colors duration-200 group-hover:text-zinc-900">
Hire
- <ArrowRightIcon
+ <Icon
+ icon={ArrowRight02Icon}
size={16}
- weight="bold"
className="transition-transform duration-200 group-hover:translate-x-0.5"
/>
</span>
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/components/ExpertProfileSheet/ExpertProfileContent.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/components/ExpertProfileSheet/ExpertProfileContent.tsx
index bcd8076456..f848cc0341 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/components/ExpertProfileSheet/ExpertProfileContent.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/components/ExpertProfileSheet/ExpertProfileContent.tsx
@@ -8,13 +8,14 @@ import {
} from "@/components/atoms/Avatar/Avatar";
import { Button } from "@/components/atoms/Button/Button";
import { cn } from "@/lib/utils";
-import {
- CaretDownIcon,
- CheckCircleIcon,
- LightningIcon,
-} from "@phosphor-icons/react";
import { useState } from "react";
import { ExpertAccent } from "../../helpers";
+import {
+ ArrowDown01Icon,
+ CheckmarkCircle02Icon,
+ FlashIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
expert: Expert;
@@ -56,7 +57,7 @@ export function ExpertProfileContent({
accent.pill,
)}
>
- <accent.roleIcon size={14} weight="bold" />
+ <Icon icon={accent.roleIcon} size={14} />
{expert.role}
</span>
</div>
@@ -100,9 +101,9 @@ export function ExpertProfileContent({
key={workflow.id}
className="flex items-center gap-3 px-4 py-3"
>
- <LightningIcon
+ <Icon
+ icon={FlashIcon}
size={18}
- weight="fill"
className={cn("shrink-0", accent.icon)}
/>
<div className="min-w-0">
@@ -124,7 +125,7 @@ export function ExpertProfileContent({
<div className="relative mt-8">
{isHired ? (
<div className="flex h-12 w-full items-center justify-center gap-2 rounded-full border border-emerald-200 bg-emerald-50 text-base font-medium text-emerald-700">
- <CheckCircleIcon size={20} weight="fill" />
+ <Icon icon={CheckmarkCircle02Icon} size={20} />
On your team
</div>
) : (
@@ -169,9 +170,9 @@ function PersonalitySection({ text }: { text: string }) {
className="mt-2 flex items-center gap-1 text-sm font-medium text-zinc-500 transition-colors hover:text-zinc-900"
>
{isExpanded ? "Show less" : "Read more"}
- <CaretDownIcon
+ <Icon
+ icon={ArrowDown01Icon}
size={14}
- weight="bold"
className={cn(
"transition-transform duration-200",
isExpanded && "rotate-180",
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/helpers.ts b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/helpers.ts
index ecaf95d6c2..6a0937e35d 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/helpers.ts
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/helpers.ts
@@ -1,16 +1,16 @@
import {
- BriefcaseIcon,
- GearIcon,
- Icon,
- MegaphoneIcon,
- TrendUpIcon,
-} from "@phosphor-icons/react";
+ Briefcase01Icon,
+ ChartIncreaseIcon,
+ Megaphone01Icon,
+ Settings01Icon,
+} from "@hugeicons/core-free-icons";
+import type { IconSvgElement } from "@hugeicons/react";
export interface ExpertAccent {
wash: string;
pill: string;
icon: string;
- roleIcon: Icon;
+ roleIcon: IconSvgElement;
}
const ACCENTS: Record<string, ExpertAccent> = {
@@ -18,25 +18,25 @@ const ACCENTS: Record<string, ExpertAccent> = {
wash: "bg-[radial-gradient(120%_100%_at_50%_0%,rgba(139,92,246,0.10),transparent_70%)]",
pill: "bg-violet-50 text-violet-700 ring-1 ring-inset ring-violet-600/10",
icon: "text-violet-500",
- roleIcon: MegaphoneIcon,
+ roleIcon: Megaphone01Icon,
},
amber: {
wash: "bg-[radial-gradient(120%_100%_at_50%_0%,rgba(245,158,11,0.10),transparent_70%)]",
pill: "bg-amber-50 text-amber-700 ring-1 ring-inset ring-amber-600/10",
icon: "text-amber-500",
- roleIcon: TrendUpIcon,
+ roleIcon: ChartIncreaseIcon,
},
sky: {
wash: "bg-[radial-gradient(120%_100%_at_50%_0%,rgba(14,165,233,0.10),transparent_70%)]",
pill: "bg-sky-50 text-sky-700 ring-1 ring-inset ring-sky-600/10",
icon: "text-sky-500",
- roleIcon: GearIcon,
+ roleIcon: Settings01Icon,
},
zinc: {
wash: "bg-[radial-gradient(120%_100%_at_50%_0%,rgba(113,113,122,0.08),transparent_70%)]",
pill: "bg-zinc-100 text-zinc-600 ring-1 ring-inset ring-zinc-500/10",
icon: "text-zinc-500",
- roleIcon: BriefcaseIcon,
+ roleIcon: Briefcase01Icon,
},
};
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/FeaturedCreators/FeaturedCreators.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/FeaturedCreators/FeaturedCreators.tsx
index 84c5862489..58f534515a 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/FeaturedCreators/FeaturedCreators.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/FeaturedCreators/FeaturedCreators.tsx
@@ -1,10 +1,11 @@
"use client";
import { CreatorDetails } from "@/app/api/__generated__/models/creatorDetails";
-import { UserCircleDashedIcon } from "@phosphor-icons/react";
import { CreatorCard } from "../CreatorCard/CreatorCard";
import { SectionHeader } from "../SectionHeader";
import { useFeaturedCreators } from "./useFeaturedCreators";
+import { UserCircle02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface FeaturedCreatorsProps {
title?: string;
@@ -23,7 +24,7 @@ export const FeaturedCreators = ({
<div className="w-full max-w-[1360px]">
<SectionHeader
eyebrow="The community"
- eyebrowIcon={<UserCircleDashedIcon size={16} weight="bold" />}
+ eyebrowIcon={<Icon icon={UserCircle02Icon} size={16} />}
title={title}
subtitle="The people behind the workflows you install."
/>
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/FeaturedSection/FeaturedSection.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/FeaturedSection/FeaturedSection.tsx
index 5f9d6e796e..182cc10ef3 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/FeaturedSection/FeaturedSection.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/FeaturedSection/FeaturedSection.tsx
@@ -8,9 +8,10 @@ import {
CarouselNext,
CarouselPrevious,
} from "@/components/__legacy__/ui/carousel";
-import { SparkleIcon } from "@phosphor-icons/react";
import Link from "next/link";
import { FeaturedAgentCard } from "../FeaturedAgentCard/FeaturedAgentCard";
+import { SparklesIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
const FEATURED_COLORS = [
"bg-violet-50 border-violet-100/70",
@@ -33,7 +34,7 @@ export const FeaturedSection = ({ featuredAgents }: FeaturedSectionProps) => {
>
<div className="mb-4 flex items-center justify-between">
<div className="flex items-center gap-2 text-xs font-medium uppercase tracking-[0.14em] text-violet-600">
- <SparkleIcon size={16} weight="bold" />
+ <Icon icon={SparklesIcon} size={16} />
Hand-picked
</div>
<div className="flex items-center gap-2">
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainAgentPage/MainAgentPage.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainAgentPage/MainAgentPage.tsx
index e41a9974ba..b9705e7234 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainAgentPage/MainAgentPage.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainAgentPage/MainAgentPage.tsx
@@ -4,7 +4,6 @@ import { Separator } from "@/components/__legacy__/ui/separator";
import { Button } from "@/components/atoms/Button/Button";
import { Breadcrumbs } from "@/components/molecules/Breadcrumbs/Breadcrumbs";
import { ErrorCard } from "@/components/molecules/ErrorCard/ErrorCard";
-import { ArrowLeftIcon } from "@phosphor-icons/react";
import { MarketplaceAgentPageParams } from "../../agent/[creator]/[slug]/page";
import { AgentImages } from "../AgentImages/AgentImage";
import { AgentInfo } from "../AgentInfo/AgentInfo";
@@ -12,6 +11,8 @@ import { AgentPageLoading } from "../AgentPageLoading";
import { AgentsSection } from "../AgentsSection/AgentsSection";
import { BecomeACreator } from "../BecomeACreator/BecomeACreator";
import { useMainAgentPage } from "./useMainAgentPage";
+import { ArrowLeft02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
params: MarketplaceAgentPageParams;
@@ -86,7 +87,7 @@ export function MainAgentPage({ params }: Props) {
as="NextLink"
href="/marketplace"
className="relative -left-2 lg:!-left-4"
- leftIcon={<ArrowLeftIcon size={16} />}
+ leftIcon={<Icon icon={ArrowLeft02Icon} size={16} />}
>
Go back
</Button>
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SearchBar/SearchBar.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SearchBar/SearchBar.tsx
index b454da3635..d20f9e79ff 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SearchBar/SearchBar.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SearchBar/SearchBar.tsx
@@ -1,7 +1,7 @@
"use client";
-
-import { MagnifyingGlass } from "@phosphor-icons/react";
import { useSearchbar } from "./useSearchBar";
+import { Search01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface SearchBarProps {
placeholder?: string;
@@ -22,7 +22,8 @@ export function SearchBar({
data-testid="store-search-bar"
className={`${width} ${height} flex items-center gap-3 rounded-full border border-zinc-200 bg-white px-4 shadow-none focus-within:border-zinc-400 focus-within:ring-1 focus-within:ring-zinc-400 focus-within:ring-offset-0`}
>
- <MagnifyingGlass
+ <Icon
+ icon={Search01Icon}
size={20}
className="text-zinc-400 md:h-6 md:w-6"
aria-hidden="true"
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SectionHeader.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SectionHeader.tsx
index e17fa9df17..754b938f8c 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SectionHeader.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SectionHeader.tsx
@@ -1,6 +1,7 @@
-import { ArrowRightIcon } from "@phosphor-icons/react";
import Link from "next/link";
import { ReactNode } from "react";
+import { ArrowRight02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
eyebrow?: string;
@@ -42,9 +43,9 @@ export function SectionHeader({
className="group hidden shrink-0 items-center gap-1 pb-1 text-sm font-medium text-zinc-500 transition-colors hover:text-zinc-900 sm:flex"
>
{action.label}
- <ArrowRightIcon
+ <Icon
+ icon={ArrowRight02Icon}
size={14}
- weight="bold"
className="transition-transform duration-200 group-hover:translate-x-0.5"
/>
</Link>
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/creator/[creator]/components/MainCreatorPage/MainCreatorPage.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/creator/[creator]/components/MainCreatorPage/MainCreatorPage.tsx
index 99ae03212c..a035f5f577 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/creator/[creator]/components/MainCreatorPage/MainCreatorPage.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/creator/[creator]/components/MainCreatorPage/MainCreatorPage.tsx
@@ -14,8 +14,9 @@ import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
import { Breadcrumbs } from "@/components/molecules/Breadcrumbs/Breadcrumbs";
import { ErrorCard } from "@/components/molecules/ErrorCard/ErrorCard";
-import { ArrowLeftIcon } from "@phosphor-icons/react";
import { useMainCreatorPage } from "./useMainCreatorPage";
+import { ArrowLeft02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
params: MarketplaceCreatorPageParams;
@@ -61,7 +62,7 @@ export function MainCreatorPage({ params }: Props) {
as="NextLink"
href="/marketplace"
className="relative -left-2 lg:!-left-4"
- leftIcon={<ArrowLeftIcon size={16} />}
+ leftIcon={<Icon icon={ArrowLeft02Icon} size={16} />}
>
Go back
</Button>
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/search/components/MainSearchResultPage/MainSearchResultPage.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/search/components/MainSearchResultPage/MainSearchResultPage.tsx
index 2dabc0d723..854b1cc837 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/search/components/MainSearchResultPage/MainSearchResultPage.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/search/components/MainSearchResultPage/MainSearchResultPage.tsx
@@ -3,12 +3,13 @@ import { SearchFilterChips } from "@/components/__legacy__/SearchFilterChips";
import { SortDropdown } from "@/components/__legacy__/SortDropdown";
import { Button } from "@/components/atoms/Button/Button";
import { ErrorCard } from "@/components/molecules/ErrorCard/ErrorCard";
-import { ArrowLeftIcon } from "@phosphor-icons/react";
import { AgentsSection } from "../../../components/AgentsSection/AgentsSection";
import { FeaturedCreators } from "../../../components/FeaturedCreators/FeaturedCreators";
import { MainSearchResultPageLoading } from "../../../components/MainSearchResultPageLoading";
import { SearchBar } from "../../../components/SearchBar/SearchBar";
import { useMainSearchResultPage } from "./useMainSearchResultPage";
+import { ArrowLeft02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type MarketplaceSearchSort = GetV2ListStoreAgentsParams["sorted_by"];
@@ -63,7 +64,7 @@ export const MainSearchResultPage = ({
size="small"
as="NextLink"
href="/marketplace"
- leftIcon={<ArrowLeftIcon size={16} />}
+ leftIcon={<Icon icon={ArrowLeft02Icon} size={16} />}
>
Go back
</Button>
diff --git a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/dashboard/components/AgentTableRow/AgentTableRow.tsx b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/dashboard/components/AgentTableRow/AgentTableRow.tsx
index 414da27bda..830d581649 100644
--- a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/dashboard/components/AgentTableRow/AgentTableRow.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/dashboard/components/AgentTableRow/AgentTableRow.tsx
@@ -7,16 +7,17 @@ import * as DropdownMenu from "@radix-ui/react-dropdown-menu";
import { Status } from "@/components/__legacy__/Status";
import { useAgentTableRow } from "./useAgentTableRow";
import { StoreSubmission } from "@/app/api/__generated__/models/storeSubmission";
+import { SubmissionStatus } from "@/app/api/__generated__/models/submissionStatus";
+import { StoreSubmissionEditRequest } from "@/app/api/__generated__/models/storeSubmissionEditRequest";
import {
- DotsThreeVerticalIcon,
+ Delete02Icon,
EyeIcon,
- ImageBroken,
- StarIcon,
- TrashIcon,
+ ImageNotFound01Icon,
+ MoreVerticalIcon,
PencilIcon,
-} from "@phosphor-icons/react/dist/ssr";
-import { SubmissionStatus } from "@/app/api/__generated__/models/submissionStatus";
-import { StoreSubmissionEditRequest } from "@/app/api/__generated__/models/storeSubmissionEditRequest";
+ StarIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export type AgentTableRowProps = {
storeAgentSubmission: StoreSubmission;
@@ -79,7 +80,10 @@ export const AgentTableRow = ({
</div>
) : (
<div className="flex aspect-video w-32 shrink-0 items-center justify-center overflow-hidden rounded-[10px] bg-zinc-100">
- <ImageBroken className="h-8 w-8 text-zinc-800" />
+ <Icon
+ icon={ImageNotFound01Icon}
+ className="h-8 w-8 text-zinc-800"
+ />
</div>
)}
<div className="flex flex-col">
@@ -130,7 +134,7 @@ export const AgentTableRow = ({
<span className="text-sm font-medium">
{review_avg_rating.toFixed(1)}
</span>
- <StarIcon weight="fill" className="h-2 w-2" />
+ <Icon icon={StarIcon} className="h-2 w-2" />
</div>
) : (
<span className="text-sm text-neutral-600 dark:text-neutral-400">
@@ -143,7 +147,10 @@ export const AgentTableRow = ({
<div className="flex justify-end">
<DropdownMenu.Root>
<DropdownMenu.Trigger data-testid="agent-table-row-actions">
- <DotsThreeVerticalIcon className="h-5 w-5 text-neutral-800" />
+ <Icon
+ icon={MoreVerticalIcon}
+ className="h-5 w-5 text-neutral-800"
+ />
</DropdownMenu.Trigger>
<DropdownMenu.Content className="z-10 rounded-xl border bg-white p-1 shadow-md dark:bg-gray-800">
{canModify ? (
@@ -151,7 +158,10 @@ export const AgentTableRow = ({
onSelect={handleEdit}
className="flex cursor-pointer items-center rounded-md px-3 py-2 hover:bg-gray-100 dark:hover:bg-gray-700"
>
- <PencilIcon className="mr-2 h-4 w-4 dark:text-gray-100" />
+ <Icon
+ icon={PencilIcon}
+ className="mr-2 h-4 w-4 dark:text-gray-100"
+ />
<span className="dark:text-gray-100">Edit</span>
</DropdownMenu.Item>
) : (
@@ -159,7 +169,10 @@ export const AgentTableRow = ({
onSelect={handleView}
className="flex cursor-pointer items-center rounded-md px-3 py-2 hover:bg-gray-100 dark:hover:bg-gray-700"
>
- <EyeIcon className="mr-2 h-4 w-4 dark:text-gray-100" />
+ <Icon
+ icon={EyeIcon}
+ className="mr-2 h-4 w-4 dark:text-gray-100"
+ />
<span className="dark:text-gray-100">View</span>
</DropdownMenu.Item>
)}
@@ -170,7 +183,10 @@ export const AgentTableRow = ({
onSelect={handleDelete}
className="flex cursor-pointer items-center rounded-md px-3 py-2 text-red-500 hover:bg-gray-100 dark:hover:bg-gray-700"
>
- <TrashIcon className="mr-2 h-4 w-4 text-red-500 dark:text-red-400" />
+ <Icon
+ icon={Delete02Icon}
+ className="mr-2 h-4 w-4 text-red-500 dark:text-red-400"
+ />
<span className="dark:text-red-400">Delete</span>
</DropdownMenu.Item>
</>
diff --git a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/dashboard/components/MainDashboardPage/components/EmptySubmissions.tsx b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/dashboard/components/MainDashboardPage/components/EmptySubmissions.tsx
index d0841f0138..a9684da99c 100644
--- a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/dashboard/components/MainDashboardPage/components/EmptySubmissions.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/dashboard/components/MainDashboardPage/components/EmptySubmissions.tsx
@@ -1,12 +1,16 @@
-import { Tray } from "@phosphor-icons/react/dist/ssr";
import { Text } from "@/components/atoms/Text/Text";
+import { InboxIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function EmptySubmissions() {
return (
<div className="flex min-h-[400px] flex-col items-center justify-center rounded-lg border border-neutral-200 bg-neutral-50 dark:border-neutral-700 dark:bg-neutral-800/50">
<div className="flex flex-col items-center gap-4 text-center">
<div className="rounded-full bg-neutral-100 p-3 dark:bg-neutral-700">
- <Tray className="h-8 w-8 text-neutral-500 dark:text-neutral-400" />
+ <Icon
+ icon={InboxIcon}
+ className="h-8 w-8 text-neutral-500 dark:text-neutral-400"
+ />
</div>
<div className="space-y-2">
<Text
diff --git a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/dashboard/components/MainDashboardPage/components/SumbmissionLoadError.tsx b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/dashboard/components/MainDashboardPage/components/SumbmissionLoadError.tsx
index 70184b7c5a..3f62dc8f5f 100644
--- a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/dashboard/components/MainDashboardPage/components/SumbmissionLoadError.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/dashboard/components/MainDashboardPage/components/SumbmissionLoadError.tsx
@@ -1,13 +1,17 @@
-import { Tray } from "@phosphor-icons/react";
import { Text } from "@/components/atoms/Text/Text";
import { Button } from "@/components/atoms/Button/Button";
+import { InboxIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function SubmissionLoadError() {
return (
<div className="flex min-h-[400px] flex-col items-center justify-center rounded-lg border border-neutral-200 bg-neutral-50 dark:border-neutral-700 dark:bg-neutral-800/50">
<div className="flex flex-col items-center gap-4 text-center">
<div className="rounded-full bg-red-100 p-3 dark:bg-red-900/20">
- <Tray className="h-8 w-8 text-red-600 dark:text-red-400" />
+ <Icon
+ icon={InboxIcon}
+ className="h-8 w-8 text-red-600 dark:text-red-400"
+ />
</div>
<div className="space-y-2">
<Text
diff --git a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/integrations/page.tsx b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/integrations/page.tsx
index 938dc75456..b6566145b6 100644
--- a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/integrations/page.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/integrations/page.tsx
@@ -17,10 +17,11 @@ import { providerIcons } from "@/components/renderers/InputRenderer/custom/Crede
import { CredentialsProviderName } from "@/lib/autogpt-server-api";
import { useAuth } from "@/lib/auth/hooks/useAuth";
import { CredentialsProvidersContext } from "@/providers/agent-credentials/credentials-provider";
-import { KeyIcon } from "@phosphor-icons/react/dist/ssr";
import { Trash2Icon } from "lucide-react";
import { useRouter } from "next/navigation";
import { useCallback, useContext, useEffect, useMemo, useState } from "react";
+import { Key01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export default function UserIntegrationsPage() {
const { user, isUserLoading } = useAuth();
@@ -148,7 +149,7 @@ export default function UserIntegrationsPage() {
...credentials,
provider: provider.provider,
providerName: provider.providerName,
- ProviderIcon: providerIcons[provider.provider] || KeyIcon,
+ providerIcon: providerIcons[provider.provider] || Key01Icon,
TypeIcon: {
oauth2: IconUser,
api_key: IconKey,
@@ -175,7 +176,7 @@ export default function UserIntegrationsPage() {
<TableRow key={cred.id}>
<TableCell>
<div className="flex items-center space-x-1.5">
- <cred.ProviderIcon className="h-4 w-4" />
+ <Icon icon={cred.providerIcon} className="h-4 w-4" />
<strong>{cred.providerName}</strong>
</div>
</TableCell>
diff --git a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/layout.tsx b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/layout.tsx
index c7b19cfe49..870c3e9674 100644
--- a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/layout.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/layout.tsx
@@ -2,16 +2,17 @@
import * as React from "react";
import { Sidebar } from "@/components/__legacy__/Sidebar";
+import { useGetFlag, Flag } from "@/services/feature-flags/use-get-flag";
import {
AppWindowIcon,
- CoinsIcon,
- KeyIcon,
- PlugsIcon,
+ Coins01Icon,
+ ElectricPlugsIcon,
+ Key01Icon,
SlidersHorizontalIcon,
- StorefrontIcon,
+ Store01Icon,
UserCircleIcon,
-} from "@phosphor-icons/react";
-import { useGetFlag, Flag } from "@/services/feature-flags/use-get-flag";
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export default function Layout({ children }: { children: React.ReactNode }) {
const isPaymentEnabled = useGetFlag(Flag.ENABLE_PLATFORM_PAYMENT);
@@ -22,41 +23,41 @@ export default function Layout({ children }: { children: React.ReactNode }) {
{
text: "Profile",
href: "/profile",
- icon: <UserCircleIcon className="size-5" />,
+ icon: <Icon icon={UserCircleIcon} className="size-5" />,
},
{
text: "Creator Dashboard",
href: "/profile/dashboard",
- icon: <StorefrontIcon className="size-5" />,
+ icon: <Icon icon={Store01Icon} className="size-5" />,
},
...(isPaymentEnabled
? [
{
text: "Billing",
href: "/profile/credits",
- icon: <CoinsIcon className="size-5" />,
+ icon: <Icon icon={Coins01Icon} className="size-5" />,
},
]
: []),
{
text: "Integrations",
href: "/profile/integrations",
- icon: <PlugsIcon className="size-5" />,
+ icon: <Icon icon={ElectricPlugsIcon} className="size-5" />,
},
{
text: "Settings",
href: "/profile/settings",
- icon: <SlidersHorizontalIcon className="size-5" />,
+ icon: <Icon icon={SlidersHorizontalIcon} className="size-5" />,
},
{
text: "API Keys",
href: "/profile/api-keys",
- icon: <KeyIcon className="size-5" />,
+ icon: <Icon icon={Key01Icon} className="size-5" />,
},
{
text: "OAuth Apps",
href: "/profile/oauth-apps",
- icon: <AppWindowIcon className="size-5" />,
+ icon: <Icon icon={AppWindowIcon} className="size-5" />,
},
],
},
diff --git a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/oauth-apps/components/OAuthAppsSection.tsx b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/oauth-apps/components/OAuthAppsSection.tsx
index a864199348..4bddfe3055 100644
--- a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/oauth-apps/components/OAuthAppsSection.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/oauth-apps/components/OAuthAppsSection.tsx
@@ -1,11 +1,16 @@
"use client";
import { useRef } from "react";
-import { UploadIcon, ImageIcon, PowerIcon } from "@phosphor-icons/react";
import { Button } from "@/components/atoms/Button/Button";
import { Badge } from "@/components/atoms/Badge/Badge";
import { useOAuthApps } from "./useOAuthApps";
import { LoadingSpinner } from "@/components/atoms/LoadingSpinner/LoadingSpinner";
+import {
+ Image01Icon,
+ PowerIcon,
+ Upload01Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function OAuthAppsSection() {
const {
@@ -71,7 +76,10 @@ export function OAuthAppsSection() {
className="h-full w-full object-cover"
/>
) : (
- <ImageIcon className="h-7 w-7 text-muted-foreground" />
+ <Icon
+ icon={Image01Icon}
+ className="h-7 w-7 text-muted-foreground"
+ />
)}
</div>
<div className="min-w-0 flex-1">
@@ -116,7 +124,7 @@ export function OAuthAppsSection() {
size="small"
onClick={() => handleToggleStatus(app.id, app.is_active)}
loading={updatingAppId === app.id}
- leftIcon={<PowerIcon className="h-4 w-4" />}
+ leftIcon={<Icon icon={PowerIcon} className="h-4 w-4" />}
>
{app.is_active ? "Disable" : "Enable"}
</Button>
@@ -134,7 +142,7 @@ export function OAuthAppsSection() {
size="small"
onClick={() => fileInputRefs.current[app.id]?.click()}
loading={uploadingAppId === app.id}
- leftIcon={<UploadIcon className="h-4 w-4" />}
+ leftIcon={<Icon icon={Upload01Icon} className="h-4 w-4" />}
>
{app.logo_url ? "Change " : "Upload "}Logo
</Button>
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/account/components/AccountCard/AccountCard.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/account/components/AccountCard/AccountCard.tsx
index c7c8612012..a644673e61 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/account/components/AccountCard/AccountCard.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/account/components/AccountCard/AccountCard.tsx
@@ -1,7 +1,6 @@
"use client";
import type { User } from "@/lib/auth/types";
-import { PencilSimpleIcon } from "@phosphor-icons/react";
import { motion, useReducedMotion } from "framer-motion";
import { useState } from "react";
@@ -18,6 +17,8 @@ import {
import { EASE_OUT } from "../../helpers";
import { useAccountCard } from "./useAccountCard";
+import { PencilIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
user: User;
@@ -91,7 +92,7 @@ export function AccountCard({ user, index = 0 }: Props) {
aria-label="Edit email"
className="h-7 min-w-0 px-1.5 py-0.5"
>
- <PencilSimpleIcon size={14} weight="duotone" />
+ <Icon icon={PencilIcon} size={14} />
</Button>
</Dialog.Trigger>
<Dialog.Content>
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/account/components/TimezoneCard/TimezoneCard.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/account/components/TimezoneCard/TimezoneCard.tsx
index 7ef1b95b18..3cc2f6a768 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/account/components/TimezoneCard/TimezoneCard.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/account/components/TimezoneCard/TimezoneCard.tsx
@@ -1,6 +1,4 @@
"use client";
-
-import { InfoIcon } from "@phosphor-icons/react";
import { motion, useReducedMotion } from "framer-motion";
import { Select } from "@/components/atoms/Select/Select";
@@ -12,6 +10,8 @@ import {
} from "@/components/atoms/Tooltip/BaseTooltip";
import { EASE_OUT, TIMEZONES, findTimezoneLabel } from "../../helpers";
+import { InformationCircleIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
value: string;
@@ -54,7 +54,7 @@ export function TimezoneCard({ value, onChange, index = 0 }: Props) {
aria-label="Time zone info"
className="flex items-center text-zinc-400 transition-colors hover:text-zinc-600 focus-visible:text-zinc-600 focus-visible:outline-none"
>
- <InfoIcon size={16} weight="duotone" />
+ <Icon icon={InformationCircleIcon} size={16} />
</button>
</TooltipTrigger>
<TooltipContent>
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/account/helpers.ts b/autogpt_platform/frontend/src/app/(platform)/settings/account/helpers.ts
index ab13e4c90a..376558c7be 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/account/helpers.ts
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/account/helpers.ts
@@ -1,13 +1,12 @@
-import {
- BellSimpleRingingIcon,
- ChartLineUpIcon,
- CoinsIcon,
- RobotIcon,
- StorefrontIcon,
-} from "@phosphor-icons/react";
-import type { Icon } from "@phosphor-icons/react";
-
import type { NotificationPreference } from "@/app/api/__generated__/models/notificationPreference";
+import {
+ ChartIncreaseIcon,
+ Coins01Icon,
+ Notification03Icon,
+ Robot01Icon,
+ Store01Icon,
+} from "@hugeicons/core-free-icons";
+import type { IconSvgElement } from "@hugeicons/react";
export const EASE_OUT = [0.16, 1, 0.3, 1] as const;
export const EASE_IOS = [0.32, 0.72, 0, 1] as const;
@@ -42,7 +41,7 @@ export interface NotificationGroup {
id: "agents" | "store" | "balance" | "summary";
title: string;
caption: string;
- icon: Icon;
+ icon: IconSvgElement;
accent: string;
items: NotificationItem[];
}
@@ -52,7 +51,7 @@ export const NOTIFICATION_GROUPS: NotificationGroup[] = [
id: "agents",
title: "Agent activity",
caption: "Heads-up when your agents do something — or stop doing it.",
- icon: RobotIcon,
+ icon: Robot01Icon,
accent: "from-violet-500/15 to-violet-500/0 text-violet-700",
items: [
{
@@ -77,7 +76,7 @@ export const NOTIFICATION_GROUPS: NotificationGroup[] = [
id: "store",
title: "Marketplace",
caption: "Updates on agents you've published to the store.",
- icon: StorefrontIcon,
+ icon: Store01Icon,
accent: "from-amber-400/15 to-amber-500/0 text-amber-700",
items: [
{
@@ -96,7 +95,7 @@ export const NOTIFICATION_GROUPS: NotificationGroup[] = [
id: "balance",
title: "Credits & balance",
caption: "Stay ahead of an empty tank.",
- icon: CoinsIcon,
+ icon: Coins01Icon,
accent: "from-emerald-400/15 to-emerald-500/0 text-emerald-700",
items: [
{
@@ -115,7 +114,7 @@ export const NOTIFICATION_GROUPS: NotificationGroup[] = [
id: "summary",
title: "Summaries",
caption: "Recap emails to keep tabs on your account at a glance.",
- icon: ChartLineUpIcon,
+ icon: ChartIncreaseIcon,
accent: "from-sky-400/15 to-sky-500/0 text-sky-700",
items: [
{
@@ -137,7 +136,7 @@ export const NOTIFICATION_GROUPS: NotificationGroup[] = [
},
];
-export const NOTIFICATIONS_FALLBACK_ICON = BellSimpleRingingIcon;
+export const NOTIFICATIONS_FALLBACK_ICON = Notification03Icon;
const PREFERENCE_API_KEYS: Record<NotificationKey, string> = {
notifyOnAgentRun: "AGENT_RUN",
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/api-keys/components/APIKeyListEmpty/components/APIKeyMarquee.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/api-keys/components/APIKeyListEmpty/components/APIKeyMarquee.tsx
index 09e9291516..14ef904fac 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/api-keys/components/APIKeyListEmpty/components/APIKeyMarquee.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/api-keys/components/APIKeyListEmpty/components/APIKeyMarquee.tsx
@@ -1,7 +1,8 @@
"use client";
import { motion, useReducedMotion } from "framer-motion";
-import { KeyIcon } from "@phosphor-icons/react";
+import { Key01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
const GHOST_CARDS = Array.from({ length: 4 }, (_, i) => i);
@@ -39,7 +40,7 @@ export function APIKeyMarquee() {
function GhostCard() {
return (
<div className="flex h-[64px] w-[320px] items-center gap-4 rounded-xl border border-zinc-200/80 bg-white px-5 shadow-[0_1px_2px_rgba(0,0,0,0.04)]">
- <KeyIcon size={18} className="shrink-0 text-zinc-400" />
+ <Icon icon={Key01Icon} size={18} className="shrink-0 text-zinc-400" />
<div className="h-2.5 flex-1 rounded-full bg-zinc-100" />
</div>
);
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/api-keys/components/APIKeyRow/APIKeyRow.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/api-keys/components/APIKeyRow/APIKeyRow.tsx
index 7f2c0a52aa..054d4aabe0 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/api-keys/components/APIKeyRow/APIKeyRow.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/api-keys/components/APIKeyRow/APIKeyRow.tsx
@@ -1,13 +1,6 @@
"use client";
import { useState } from "react";
-import {
- CheckSquareIcon,
- InfoIcon,
- SquareIcon,
- TrashIcon,
-} from "@phosphor-icons/react";
-
import type { APIKeyInfo } from "@/app/api/__generated__/models/aPIKeyInfo";
import { Text } from "@/components/atoms/Text/Text";
import {
@@ -19,6 +12,13 @@ import {
import { APIKeyInfoDialog } from "../APIKeyInfoDialog/APIKeyInfoDialog";
import { formatLastUsed, maskAPIKey } from "../APIKeyList/helpers";
+import {
+ CheckmarkSquare02Icon,
+ Delete02Icon,
+ InformationCircleIcon,
+ SquareIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
apiKey: APIKeyInfo;
@@ -56,9 +56,9 @@ export function APIKeyRow({
}`}
>
{selected ? (
- <CheckSquareIcon size={20} weight="fill" />
+ <Icon icon={CheckmarkSquare02Icon} size={20} />
) : (
- <SquareIcon size={20} />
+ <Icon icon={SquareIcon} size={20} />
)}
</button>
<div className="flex flex-col gap-1">
@@ -75,7 +75,7 @@ export function APIKeyRow({
onClick={() => setInfoOpen(true)}
className="shrink-0 rounded text-zinc-500 transition-colors hover:text-zinc-700 focus:outline-none focus-visible:ring-2 focus-visible:ring-zinc-800"
>
- <InfoIcon size={16} />
+ <Icon icon={InformationCircleIcon} size={16} />
</button>
</TooltipTrigger>
<TooltipContent side="top">View key details</TooltipContent>
@@ -103,7 +103,7 @@ export function APIKeyRow({
onClick={onDelete}
className="shrink-0 rounded text-zinc-500 transition-colors hover:text-zinc-700 focus:outline-none focus-visible:ring-2 focus-visible:ring-zinc-800"
>
- <TrashIcon size={20} />
+ <Icon icon={Delete02Icon} size={20} />
</button>
<APIKeyInfoDialog
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/api-keys/components/APIKeySelectionBar/APIKeySelectionBar.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/api-keys/components/APIKeySelectionBar/APIKeySelectionBar.tsx
index 90006c4bba..4b879f63e5 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/api-keys/components/APIKeySelectionBar/APIKeySelectionBar.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/api-keys/components/APIKeySelectionBar/APIKeySelectionBar.tsx
@@ -1,6 +1,7 @@
-import { TrashIcon } from "@phosphor-icons/react";
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
+import { Delete02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
selectedCount: number;
@@ -35,7 +36,7 @@ export function APIKeySelectionBar({
<Button
variant="destructive"
size="small"
- leftIcon={<TrashIcon size={16} />}
+ leftIcon={<Icon icon={Delete02Icon} size={16} />}
onClick={onDeleteSelected}
>
Delete selected
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/api-keys/components/APIKeysHeader/APIKeysHeader.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/api-keys/components/APIKeysHeader/APIKeysHeader.tsx
index 0778839401..05fcb65329 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/api-keys/components/APIKeysHeader/APIKeysHeader.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/api-keys/components/APIKeysHeader/APIKeysHeader.tsx
@@ -1,8 +1,8 @@
"use client";
-
-import { PlusIcon } from "@phosphor-icons/react";
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
+import { PlusSignIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
onCreate: () => void;
@@ -23,7 +23,7 @@ export function APIKeysHeader({ onCreate }: Props) {
<Button
variant="primary"
size="small"
- leftIcon={<PlusIcon size={16} />}
+ leftIcon={<Icon icon={PlusSignIcon} size={16} />}
onClick={onCreate}
className="sm:hidden"
>
@@ -32,7 +32,7 @@ export function APIKeysHeader({ onCreate }: Props) {
<Button
variant="primary"
size="large"
- leftIcon={<PlusIcon size={20} />}
+ leftIcon={<Icon icon={PlusSignIcon} size={20} />}
onClick={onCreate}
className="hidden sm:inline-flex"
>
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/api-keys/components/CreateAPIKeyDialog/components/CreateAPIKeySuccess.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/api-keys/components/CreateAPIKeyDialog/components/CreateAPIKeySuccess.tsx
index 5ac209f798..12b78c8c72 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/api-keys/components/CreateAPIKeyDialog/components/CreateAPIKeySuccess.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/api-keys/components/CreateAPIKeyDialog/components/CreateAPIKeySuccess.tsx
@@ -1,10 +1,9 @@
"use client";
-
-import { CopyIcon } from "@phosphor-icons/react";
-
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
import { toast } from "@/components/molecules/Toast/use-toast";
+import { Copy01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
plainTextKey: string;
@@ -38,7 +37,7 @@ export function CreateAPIKeySuccess({ plainTextKey, onClose }: Props) {
<Button
variant="secondary"
size="small"
- leftIcon={<CopyIcon size={16} />}
+ leftIcon={<Icon icon={Copy01Icon} size={16} />}
onClick={handleCopy}
>
Copy
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/api-keys/components/CreateAPIKeyDialog/components/PermissionsCheckboxGroup.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/api-keys/components/CreateAPIKeyDialog/components/PermissionsCheckboxGroup.tsx
index 2eaf8be2c9..e66ad6befb 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/api-keys/components/CreateAPIKeyDialog/components/PermissionsCheckboxGroup.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/api-keys/components/CreateAPIKeyDialog/components/PermissionsCheckboxGroup.tsx
@@ -1,11 +1,10 @@
"use client";
-
-import { CheckSquareIcon, SquareIcon } from "@phosphor-icons/react";
-
import type { APIKeyPermission } from "@/app/api/__generated__/models/aPIKeyPermission";
import { Text } from "@/components/atoms/Text/Text";
import { PERMISSION_OPTIONS } from "../schema";
+import { CheckmarkSquare02Icon, SquareIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
value: APIKeyPermission[];
@@ -48,9 +47,9 @@ export function PermissionsCheckboxGroup({ value, onChange }: Props) {
className="flex items-center gap-2 rounded text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-zinc-800"
>
{checked ? (
- <CheckSquareIcon size={18} weight="fill" />
+ <Icon icon={CheckmarkSquare02Icon} size={18} />
) : (
- <SquareIcon size={18} />
+ <Icon icon={SquareIcon} size={18} />
)}
<Text variant="body" as="span" className="text-zinc-700">
{option.label}
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/AutomationCreditsTab/AutoRefillCard/AutoRefillCard.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/AutomationCreditsTab/AutoRefillCard/AutoRefillCard.tsx
index 4861fecee7..81e602e124 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/AutomationCreditsTab/AutoRefillCard/AutoRefillCard.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/AutomationCreditsTab/AutoRefillCard/AutoRefillCard.tsx
@@ -1,6 +1,4 @@
"use client";
-
-import { ArrowsClockwiseIcon } from "@phosphor-icons/react";
import { motion, useReducedMotion } from "framer-motion";
import { Button } from "@/components/atoms/Button/Button";
@@ -9,6 +7,8 @@ import { Text } from "@/components/atoms/Text/Text";
import { getSectionMotionProps } from "../../../helpers";
import { AutoRefillDialog } from "./AutoRefillDialog";
import { useAutoRefillCard } from "./useAutoRefillCard";
+import { ReloadIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
index?: number;
@@ -39,7 +39,7 @@ export function AutoRefillCard({ index = 0 }: Props) {
>
<div className="flex min-w-0 items-center gap-3">
<div className="flex h-10 w-10 shrink-0 items-center justify-center rounded-[10px] bg-violet-100 text-violet-700">
- <ArrowsClockwiseIcon size={20} />
+ <Icon icon={ReloadIcon} size={20} />
</div>
<div className="flex min-w-0 flex-col gap-1">
<Text variant="body-medium" as="span" className="text-textBlack">
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/AutomationCreditsTab/AutoRefillCard/AutoRefillDialog.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/AutomationCreditsTab/AutoRefillCard/AutoRefillDialog.tsx
index 0a2deb0140..255c85f1b7 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/AutomationCreditsTab/AutoRefillCard/AutoRefillDialog.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/AutomationCreditsTab/AutoRefillCard/AutoRefillDialog.tsx
@@ -1,11 +1,10 @@
"use client";
-
-import { WarningIcon } from "@phosphor-icons/react";
-
import { Button } from "@/components/atoms/Button/Button";
import { Input } from "@/components/atoms/Input/Input";
import { Text } from "@/components/atoms/Text/Text";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
+import { Alert01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
isOpen: boolean;
@@ -61,7 +60,11 @@ export function AutoRefillDialog({
/>
<div className="flex items-start gap-2 rounded-[12px] bg-amber-50 px-3 py-2">
- <WarningIcon size={18} className="mt-0.5 shrink-0 text-amber-600" />
+ <Icon
+ icon={Alert01Icon}
+ size={18}
+ className="mt-0.5 shrink-0 text-amber-600"
+ />
<Text variant="small" as="span" className="text-amber-700">
As a safety mechanism, auto-refill will only trigger once per
task. Keep this in mind when budgeting to ensure your balance does
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/SubscriptionTab/InvoicesCard/InvoicesCard.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/SubscriptionTab/InvoicesCard/InvoicesCard.tsx
index c2537a9378..6805ee718e 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/SubscriptionTab/InvoicesCard/InvoicesCard.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/SubscriptionTab/InvoicesCard/InvoicesCard.tsx
@@ -1,6 +1,4 @@
"use client";
-
-import { DownloadSimpleIcon } from "@phosphor-icons/react";
import { motion, useReducedMotion } from "framer-motion";
import { Badge } from "@/components/atoms/Badge/Badge";
@@ -15,6 +13,8 @@ import {
rowsContainerVariants,
} from "../../../helpers";
import { useInvoicesCard } from "./useInvoicesCard";
+import { Download04Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
index?: number;
@@ -149,7 +149,7 @@ export function InvoicesCard({ index = 0 }: Props) {
}
}}
>
- <DownloadSimpleIcon size={14} />
+ <Icon icon={Download04Icon} size={14} />
</Button>
</td>
</motion.tr>
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/SubscriptionTab/PaymentMethodCard/PaymentMethodCard.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/SubscriptionTab/PaymentMethodCard/PaymentMethodCard.tsx
index e5c510d8f9..e3672f68ed 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/SubscriptionTab/PaymentMethodCard/PaymentMethodCard.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/SubscriptionTab/PaymentMethodCard/PaymentMethodCard.tsx
@@ -1,6 +1,4 @@
"use client";
-
-import { ArrowSquareOutIcon, CreditCardIcon } from "@phosphor-icons/react";
import { motion, useReducedMotion } from "framer-motion";
import { Button } from "@/components/atoms/Button/Button";
@@ -8,6 +6,8 @@ import { Text } from "@/components/atoms/Text/Text";
import { getSectionMotionProps } from "../../../helpers";
import { usePaymentMethodCard } from "./usePaymentMethodCard";
+import { CreditCardIcon, LinkSquare01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
index?: number;
@@ -31,7 +31,7 @@ export function PaymentMethodCard({ index = 0 }: Props) {
<div className="flex flex-wrap items-center justify-between gap-4 rounded-[18px] border border-zinc-200 bg-white p-5 shadow-[0_1px_2px_rgba(15,15,20,0.04)]">
<div className="flex min-w-0 items-center gap-3">
<div className="flex h-10 w-10 shrink-0 items-center justify-center rounded-[10px] bg-zinc-100 text-zinc-700">
- <CreditCardIcon size={20} />
+ <Icon icon={CreditCardIcon} size={20} />
</div>
<div className="flex min-w-0 flex-col">
<Text variant="body-medium" as="span" className="text-textBlack">
@@ -51,7 +51,7 @@ export function PaymentMethodCard({ index = 0 }: Props) {
loading={isOpening}
>
Open portal
- <ArrowSquareOutIcon size={14} />
+ <Icon icon={LinkSquare01Icon} size={14} />
</Button>
</div>
</motion.section>
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/SubscriptionTab/YourPlanCard/YourPlanCard.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/SubscriptionTab/YourPlanCard/YourPlanCard.tsx
index 14a959d7f1..6f3e9a330c 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/SubscriptionTab/YourPlanCard/YourPlanCard.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/SubscriptionTab/YourPlanCard/YourPlanCard.tsx
@@ -1,8 +1,6 @@
"use client";
import { motion, useReducedMotion } from "framer-motion";
-import { ArrowSquareOutIcon } from "@phosphor-icons/react";
-
import { Badge } from "@/components/atoms/Badge/Badge";
import { Button } from "@/components/atoms/Button/Button";
import { Skeleton } from "@/components/atoms/Skeleton/Skeleton";
@@ -17,6 +15,8 @@ import { CycleToggle } from "./CycleToggle";
import { SwitchCycleDialog } from "./SwitchCycleDialog";
import { SwitchTierDialog } from "./SwitchTierDialog";
import { useYourPlanCard } from "./useYourPlanCard";
+import { LinkSquare01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
index?: number;
@@ -185,7 +185,7 @@ export function YourPlanCard({ index = 0 }: Props) {
loading={isUpdatingTier && !plan.nextTierIsTeamLink}
rightIcon={
plan.nextTierIsTeamLink ? (
- <ArrowSquareOutIcon size={14} aria-hidden="true" />
+ <Icon icon={LinkSquare01Icon} size={14} aria-hidden="true" />
) : undefined
}
>
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/bots/components/BotCard/BotCard.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/bots/components/BotCard/BotCard.tsx
index 7cc204cd53..aabf8be671 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/bots/components/BotCard/BotCard.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/bots/components/BotCard/BotCard.tsx
@@ -1,8 +1,6 @@
"use client";
import Image from "next/image";
-import { PlusIcon } from "@phosphor-icons/react";
-
import { Button } from "@/components/atoms/Button/Button";
import { Card } from "@/components/atoms/Card/Card";
import { Text } from "@/components/atoms/Text/Text";
@@ -11,6 +9,8 @@ import type { BotPlatformInfo } from "@/app/api/__generated__/models/botPlatform
import { BotCardDmTile } from "./BotCardDmTile";
import { BotCardServerList } from "./BotCardServerList";
import { useBotCard } from "./useBotCard";
+import { PlusSignIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type Props = {
platform: BotPlatformInfo;
@@ -43,7 +43,7 @@ export function BotCard({ platform }: Props) {
rel="noopener noreferrer"
variant="primary"
size="small"
- leftIcon={<PlusIcon size={16} />}
+ leftIcon={<Icon icon={PlusSignIcon} size={16} />}
>
Add bot to {platform.display_name}
</Button>
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/bots/components/BotCard/BotCardDmTile.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/bots/components/BotCard/BotCardDmTile.tsx
index f5568f1ecd..bacff50a19 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/bots/components/BotCard/BotCardDmTile.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/bots/components/BotCard/BotCardDmTile.tsx
@@ -1,8 +1,12 @@
-import { ChatCircleDotsIcon, LinkIcon, TrashIcon } from "@phosphor-icons/react";
-
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
import type { PlatformUserLinkInfo } from "@/app/api/__generated__/models/platformUserLinkInfo";
+import {
+ Chatting01Icon,
+ Delete02Icon,
+ Link01Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type Props = {
platformName: string;
@@ -27,7 +31,11 @@ export function BotCardDmTile({
return (
<div className="flex items-center justify-between gap-3 rounded-large border border-zinc-200 px-4 py-3">
<div className="flex min-w-0 items-center gap-3">
- <ChatCircleDotsIcon size={20} className="shrink-0 text-zinc-500" />
+ <Icon
+ icon={Chatting01Icon}
+ size={20}
+ className="shrink-0 text-zinc-500"
+ />
<div className="flex min-w-0 flex-col">
<Text variant="body-medium" as="span" className="text-textBlack">
{title}
@@ -41,7 +49,7 @@ export function BotCardDmTile({
<Button
variant="outline"
size="small"
- leftIcon={<TrashIcon size={16} />}
+ leftIcon={<Icon icon={Delete02Icon} size={16} />}
loading={isPending(dmLink.id)}
onClick={() => onUnlink(dmLink.id)}
aria-label={`Unlink DM on ${platformName}`}
@@ -50,7 +58,7 @@ export function BotCardDmTile({
</Button>
) : (
<span className="inline-flex items-center gap-1 text-xs text-zinc-500">
- <LinkIcon size={14} /> Not linked
+ <Icon icon={Link01Icon} size={14} /> Not linked
</span>
)}
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/bots/components/BotCard/BotCardServerList.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/bots/components/BotCard/BotCardServerList.tsx
index f7a0faba21..55eb86df76 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/bots/components/BotCard/BotCardServerList.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/bots/components/BotCard/BotCardServerList.tsx
@@ -1,5 +1,3 @@
-import { TrashIcon, UsersIcon, WarningCircleIcon } from "@phosphor-icons/react";
-
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
import {
@@ -8,6 +6,12 @@ import {
TooltipTrigger,
} from "@/components/atoms/Tooltip/BaseTooltip";
import type { PlatformLinkInfo } from "@/app/api/__generated__/models/platformLinkInfo";
+import {
+ AlertCircleIcon,
+ Delete02Icon,
+ UserMultipleIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type Props = {
platformName: string;
@@ -68,7 +72,11 @@ function BotCardServerRow({
return (
<li className="flex items-center justify-between gap-3 rounded-large border border-zinc-200 px-4 py-3">
<div className="flex min-w-0 items-center gap-3">
- <UsersIcon size={20} className="shrink-0 text-zinc-500" />
+ <Icon
+ icon={UserMultipleIcon}
+ size={20}
+ className="shrink-0 text-zinc-500"
+ />
<div className="flex min-w-0 flex-col">
<Text
variant="body-medium"
@@ -81,8 +89,7 @@ function BotCardServerRow({
<Tooltip>
<TooltipTrigger asChild>
<span className="inline-flex items-center gap-1 text-xs text-amber-600">
- <WarningCircleIcon size={14} weight="fill" /> Bot not in
- server
+ <Icon icon={AlertCircleIcon} size={14} /> Bot not in server
</span>
</TooltipTrigger>
<TooltipContent>
@@ -101,7 +108,7 @@ function BotCardServerRow({
<Button
variant="outline"
size="small"
- leftIcon={<TrashIcon size={16} />}
+ leftIcon={<Icon icon={Delete02Icon} size={16} />}
loading={isPending}
onClick={onUnlink}
aria-label={`Unlink ${displayLabel}`}
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/components/SettingsMobileNav/SettingsMobileNav.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/components/SettingsMobileNav/SettingsMobileNav.tsx
index 61a595ee3b..c933112855 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/components/SettingsMobileNav/SettingsMobileNav.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/components/SettingsMobileNav/SettingsMobileNav.tsx
@@ -2,7 +2,6 @@
import { useState } from "react";
import Link from "next/link";
-import { CaretDownIcon } from "@phosphor-icons/react";
import {
Popover,
PopoverContent,
@@ -11,6 +10,8 @@ import {
import { Text } from "@/components/atoms/Text/Text";
import { cn } from "@/lib/utils";
import { useSettingsSidebar } from "../SettingsSidebar/useSettingsSidebar";
+import { ArrowDown01Icon } from "@hugeicons/core-free-icons";
+import { Icon as UIIcon } from "@/components/atoms/Icon/Icon";
export function SettingsMobileNav() {
const { items } = useSettingsSidebar();
@@ -27,7 +28,7 @@ export function SettingsMobileNav() {
aria-label={`Settings navigation, current: ${current.label}`}
>
<span className="flex items-center gap-2">
- <current.Icon size={16} weight="regular" className="text-black" />
+ <UIIcon icon={current.Icon} size={16} className="text-black" />
<Text
variant="body"
as="span"
@@ -36,9 +37,9 @@ export function SettingsMobileNav() {
{current.label}
</Text>
</span>
- <CaretDownIcon
+ <UIIcon
+ icon={ArrowDown01Icon}
size={16}
- weight="regular"
className={cn(
"text-[#505057] transition-transform",
open && "rotate-180",
@@ -63,9 +64,9 @@ export function SettingsMobileNav() {
isActive ? "bg-[#EFEFF0]" : "hover:bg-[#F5F5F6]",
)}
>
- <Icon
+ <UIIcon
+ icon={Icon}
size={16}
- weight={isActive ? "regular" : "light"}
className={isActive ? "text-black" : "text-[#1F1F20]"}
/>
<Text
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/components/SettingsSidebar/SettingsNavItem.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/components/SettingsSidebar/SettingsNavItem.tsx
index 13e3084ae7..d27b72c291 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/components/SettingsSidebar/SettingsNavItem.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/components/SettingsSidebar/SettingsNavItem.tsx
@@ -5,6 +5,7 @@ import { motion, useReducedMotion, type Variants } from "framer-motion";
import { cn } from "@/lib/utils";
import { Text } from "@/components/atoms/Text/Text";
import { LoadingSpinner } from "@/components/atoms/LoadingSpinner/LoadingSpinner";
+import { Icon as UIIcon } from "@/components/atoms/Icon/Icon";
import type { SettingsNavItem as SettingsNavItemType } from "./helpers";
type Props = {
@@ -25,9 +26,9 @@ function NavItemContent({
return (
<>
- <Icon
+ <UIIcon
+ icon={Icon}
size={16}
- weight={isActive ? "regular" : "light"}
className={isActive ? "text-black" : "text-[#1F1F20]"}
/>
<Text
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/components/SettingsSidebar/SettingsSidebar.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/components/SettingsSidebar/SettingsSidebar.tsx
index d110c5dac5..cf3c84f639 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/components/SettingsSidebar/SettingsSidebar.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/components/SettingsSidebar/SettingsSidebar.tsx
@@ -2,10 +2,11 @@
import { motion, useReducedMotion } from "framer-motion";
import Link from "next/link";
-import { ArrowLeftIcon } from "@phosphor-icons/react";
import { Text } from "@/components/atoms/Text/Text";
import { useSettingsSidebar } from "./useSettingsSidebar";
import { SettingsNavItem } from "./SettingsNavItem";
+import { ArrowLeft02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function SettingsSidebar() {
const { items } = useSettingsSidebar();
@@ -33,7 +34,7 @@ export function SettingsSidebar() {
aria-label="Back to home"
className="mb-[16px] flex w-fit items-center gap-2 rounded-[8px] px-4 py-1 text-[#505057] transition-colors hover:text-[#1F1F20]"
>
- <ArrowLeftIcon size={16} weight="bold" />
+ <Icon icon={ArrowLeft02Icon} size={16} />
<Text variant="body" as="span" className="font-medium">
Back
</Text>
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/components/SettingsSidebar/helpers.ts b/autogpt_platform/frontend/src/app/(platform)/settings/components/SettingsSidebar/helpers.ts
index 4d48e4e032..db0a249ef0 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/components/SettingsSidebar/helpers.ts
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/components/SettingsSidebar/helpers.ts
@@ -1,18 +1,18 @@
import {
- ChartLineUpIcon,
- ChatsCircleIcon,
+ ChartIncreaseIcon,
CreditCardIcon,
- KeyIcon,
- PlugsConnectedIcon,
+ Key01Icon,
+ MessageMultiple01Icon,
+ PlugSocketIcon,
SlidersHorizontalIcon,
UserIcon,
- type Icon as PhosphorIcon,
-} from "@phosphor-icons/react";
+} from "@hugeicons/core-free-icons";
+import type { IconSvgElement } from "@hugeicons/react";
export interface SettingsNavItem {
label: string;
href: string;
- Icon: PhosphorIcon;
+ Icon: IconSvgElement;
}
export const settingsNavItems: SettingsNavItem[] = [
@@ -26,13 +26,13 @@ export const settingsNavItems: SettingsNavItem[] = [
{
label: "Integrations",
href: "/settings/integrations",
- Icon: PlugsConnectedIcon,
+ Icon: PlugSocketIcon,
},
- { label: "Bots", href: "/settings/bots", Icon: ChatsCircleIcon },
- { label: "AutoGPT API Keys", href: "/settings/api-keys", Icon: KeyIcon },
+ { label: "Bots", href: "/settings/bots", Icon: MessageMultiple01Icon },
+ { label: "AutoGPT API Keys", href: "/settings/api-keys", Icon: Key01Icon },
{
label: "Creator Dashboard",
href: "/settings/creator-dashboard",
- Icon: ChartLineUpIcon,
+ Icon: ChartIncreaseIcon,
},
];
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/ColumnFilter/ColumnFilter.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/ColumnFilter/ColumnFilter.tsx
index acb521999c..4ae009b35e 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/ColumnFilter/ColumnFilter.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/ColumnFilter/ColumnFilter.tsx
@@ -1,6 +1,4 @@
"use client";
-
-import { FunnelIcon } from "@phosphor-icons/react";
import type { ReactNode } from "react";
import { cn } from "@/lib/utils";
@@ -9,6 +7,8 @@ import {
PopoverContent,
PopoverTrigger,
} from "@/components/molecules/Popover/Popover";
+import { FunnelIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
active: boolean;
@@ -38,7 +38,7 @@ export function ColumnFilter({
: "text-zinc-400 hover:bg-zinc-100 hover:text-zinc-700",
)}
>
- <FunnelIcon size={12} weight={active ? "fill" : "bold"} />
+ <Icon icon={FunnelIcon} size={12} />
</button>
</PopoverTrigger>
<PopoverContent
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/DashboardHeader/DashboardHeader.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/DashboardHeader/DashboardHeader.tsx
index 0c2b16c049..70de3744fe 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/DashboardHeader/DashboardHeader.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/DashboardHeader/DashboardHeader.tsx
@@ -1,6 +1,4 @@
"use client";
-
-import { PlusIcon } from "@phosphor-icons/react";
import { motion, useReducedMotion } from "framer-motion";
import { Button } from "@/components/atoms/Button/Button";
@@ -10,6 +8,8 @@ import type { PublishState } from "@/components/contextual/PublishAgentModal/use
import type { StoreSubmission } from "@/app/api/__generated__/models/storeSubmission";
import { EASE_OUT } from "../../helpers";
+import { PlusSignIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
publishState: PublishState;
@@ -52,7 +52,7 @@ export function DashboardHeader({
data-testid="submit-agent-button"
size="large"
onClick={onOpenSubmit}
- leftIcon={<PlusIcon size={18} weight="bold" />}
+ leftIcon={<Icon icon={PlusSignIcon} size={18} />}
>
Submit agent
</Button>
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/EmptyState/EmptyState.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/EmptyState/EmptyState.tsx
index 7c812f5474..4b9602ed74 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/EmptyState/EmptyState.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/EmptyState/EmptyState.tsx
@@ -1,11 +1,11 @@
"use client";
-
-import { RocketLaunchIcon } from "@phosphor-icons/react";
import { motion, useReducedMotion } from "framer-motion";
import { Text } from "@/components/atoms/Text/Text";
import { EASE_OUT } from "../../helpers";
+import { Rocket01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function EmptyState() {
const reduceMotion = useReducedMotion();
@@ -17,7 +17,7 @@ export function EmptyState() {
transition={reduceMotion ? undefined : { duration: 0.28, ease: EASE_OUT }}
className="flex flex-col items-center justify-center gap-3 px-6 py-12 text-center"
>
- <RocketLaunchIcon size={28} weight="duotone" className="text-zinc-400" />
+ <Icon icon={Rocket01Icon} size={28} className="text-zinc-400" />
<Text variant="body-medium" className="text-textBlack">
No submissions yet
</Text>
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/MobileSubmissionItem/MobileSubmissionItem.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/MobileSubmissionItem/MobileSubmissionItem.tsx
index 282dbf8f88..1b728dd32b 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/MobileSubmissionItem/MobileSubmissionItem.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/MobileSubmissionItem/MobileSubmissionItem.tsx
@@ -3,16 +3,6 @@
import Image from "next/image";
import Link from "next/link";
import { motion, useReducedMotion } from "framer-motion";
-import {
- ArrowSquareOutIcon,
- DotsThreeVerticalIcon,
- EyeIcon,
- ImageBrokenIcon,
- PencilSimpleIcon,
- StarIcon,
- TrashIcon,
-} from "@phosphor-icons/react";
-
import type { StoreSubmission } from "@/app/api/__generated__/models/storeSubmission";
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
@@ -28,6 +18,16 @@ import {
import type { EditPayload } from "../../helpers";
import { formatRuns, formatSubmittedAt, getStatusVisual } from "../../helpers";
import { useSubmissionItem } from "../SubmissionItem/useSubmissionItem";
+import {
+ Delete02Icon,
+ EyeIcon,
+ ImageNotFound01Icon,
+ LinkSquare01Icon,
+ MoreVerticalIcon,
+ PencilIcon,
+ StarIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon as UIIcon } from "@/components/atoms/Icon/Icon";
interface Props {
submission: StoreSubmission;
@@ -70,7 +70,6 @@ export function MobileSubmissionItem({
});
const visual = getStatusVisual(submission.status);
- const StatusIcon = visual.Icon;
const thumbnail = submission.image_urls?.[0];
const hasRating =
!!submission.review_avg_rating && submission.review_avg_rating > 0;
@@ -107,7 +106,8 @@ export function MobileSubmissionItem({
/>
) : (
<div className="flex h-full w-full items-center justify-center">
- <ImageBrokenIcon
+ <UIIcon
+ icon={ImageNotFound01Icon}
size={18}
className="pointer-events-none text-zinc-400"
/>
@@ -132,7 +132,8 @@ export function MobileSubmissionItem({
>
{submission.name}
</Text>
- <ArrowSquareOutIcon
+ <UIIcon
+ icon={LinkSquare01Icon}
size={14}
className="shrink-0 text-zinc-500"
aria-hidden
@@ -170,7 +171,7 @@ export function MobileSubmissionItem({
data-testid="submission-actions"
className="-mr-1 inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-zinc-500 transition-colors hover:bg-zinc-100 hover:text-zinc-900 active:scale-[0.92] motion-reduce:active:scale-100"
>
- <DotsThreeVerticalIcon size={18} weight="bold" />
+ <UIIcon icon={MoreVerticalIcon} size={18} />
</button>
</DropdownMenuTrigger>
<DropdownMenuContent
@@ -183,7 +184,7 @@ export function MobileSubmissionItem({
onSelect={handleEdit}
className="flex cursor-pointer items-center gap-2"
>
- <PencilSimpleIcon size={14} />
+ <UIIcon icon={PencilIcon} size={14} />
Edit details
</DropdownMenuItem>
) : (
@@ -191,7 +192,7 @@ export function MobileSubmissionItem({
onSelect={handleView}
className="flex cursor-pointer items-center gap-2"
>
- <EyeIcon size={14} />
+ <UIIcon icon={EyeIcon} size={14} />
View submission
</DropdownMenuItem>
)}
@@ -204,7 +205,7 @@ export function MobileSubmissionItem({
className="flex cursor-pointer items-center gap-2"
data-testid="submission-marketplace-menu-link"
>
- <ArrowSquareOutIcon size={14} />
+ <UIIcon icon={LinkSquare01Icon} size={14} />
View on marketplace
</Link>
</DropdownMenuItem>
@@ -216,7 +217,7 @@ export function MobileSubmissionItem({
onSelect={() => setConfirmDeleteOpen(true)}
className="flex cursor-pointer items-center gap-2 text-rose-600 focus:text-rose-700"
>
- <TrashIcon size={14} />
+ <UIIcon icon={Delete02Icon} size={14} />
Delete
</DropdownMenuItem>
</>
@@ -229,7 +230,7 @@ export function MobileSubmissionItem({
<span
className={`inline-flex items-center gap-1 whitespace-nowrap rounded-full px-2 py-0.5 text-[11px] font-medium ${visual.pillClass}`}
>
- <StatusIcon size={10} weight="fill" />
+ <UIIcon icon={visual.Icon} size={10} />
{visual.label}
</span>
<span className="whitespace-nowrap text-xs text-zinc-500">
@@ -248,7 +249,7 @@ export function MobileSubmissionItem({
</span>
<span className="inline-flex items-center gap-1 whitespace-nowrap text-xs tabular-nums text-zinc-500">
{submission.review_avg_rating!.toFixed(1)}
- <StarIcon size={10} weight="fill" className="text-amber-500" />
+ <UIIcon icon={StarIcon} size={10} className="text-amber-500" />
</span>
</>
) : null}
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/Pagination/Pagination.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/Pagination/Pagination.tsx
index 564b9b78f1..cb5297da13 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/Pagination/Pagination.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/Pagination/Pagination.tsx
@@ -1,11 +1,10 @@
"use client";
-
-import { CaretLeftIcon, CaretRightIcon } from "@phosphor-icons/react";
-
import type { Pagination as PaginationModel } from "@/app/api/__generated__/models/pagination";
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
import { cn } from "@/lib/utils";
+import { ArrowLeft01Icon, ArrowRight01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
pagination: PaginationModel;
@@ -49,7 +48,7 @@ export function Pagination({ pagination, onPageChange, disabled }: Props) {
<Button
variant="secondary"
size="small"
- leftIcon={<CaretLeftIcon size={14} />}
+ leftIcon={<Icon icon={ArrowLeft01Icon} size={14} />}
disabled={disabled || current_page <= 1}
onClick={() => onPageChange(current_page - 1)}
aria-label="Previous page"
@@ -82,7 +81,7 @@ export function Pagination({ pagination, onPageChange, disabled }: Props) {
<Button
variant="secondary"
size="small"
- rightIcon={<CaretRightIcon size={14} />}
+ rightIcon={<Icon icon={ArrowRight01Icon} size={14} />}
disabled={disabled || current_page >= total_pages}
onClick={() => onPageChange(current_page + 1)}
aria-label="Next page"
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/StatsOverview/StatsOverview.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/StatsOverview/StatsOverview.tsx
index dc278086c0..99b06442e1 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/StatsOverview/StatsOverview.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/StatsOverview/StatsOverview.tsx
@@ -1,18 +1,18 @@
"use client";
-
-import {
- CheckCircleIcon,
- ClockIcon,
- PlayIcon,
- StarIcon,
- StackIcon,
- type Icon as PhosphorIcon,
-} from "@phosphor-icons/react";
import { motion, useReducedMotion } from "framer-motion";
import { Text } from "@/components/atoms/Text/Text";
import { EASE_OUT, formatRuns, type DashboardStats } from "../../helpers";
+import {
+ CheckmarkCircle02Icon,
+ Clock01Icon,
+ Layers01Icon,
+ PlayIcon,
+ StarIcon,
+} from "@hugeicons/core-free-icons";
+import type { IconSvgElement } from "@hugeicons/react";
+import { Icon as UIIcon } from "@/components/atoms/Icon/Icon";
interface Props {
stats: DashboardStats;
@@ -22,7 +22,7 @@ interface Props {
interface StatTile {
label: string;
value: string;
- Icon: PhosphorIcon;
+ Icon: IconSvgElement;
iconClass: string;
}
@@ -33,19 +33,19 @@ export function StatsOverview({ stats, index = 0 }: Props) {
{
label: "Total submissions",
value: stats.total.toLocaleString(),
- Icon: StackIcon,
+ Icon: Layers01Icon,
iconClass: "bg-violet-50 text-violet-700 ring-violet-200",
},
{
label: "Approved",
value: stats.approved.toLocaleString(),
- Icon: CheckCircleIcon,
+ Icon: CheckmarkCircle02Icon,
iconClass: "bg-emerald-50 text-emerald-700 ring-emerald-200",
},
{
label: "In review",
value: stats.pending.toLocaleString(),
- Icon: ClockIcon,
+ Icon: Clock01Icon,
iconClass: "bg-amber-50 text-amber-700 ring-amber-200",
},
{
@@ -80,7 +80,7 @@ export function StatsOverview({ stats, index = 0 }: Props) {
<div className="col-span-2 flex items-center justify-between gap-3 rounded-[18px] border border-zinc-200 bg-gradient-to-br from-amber-50/60 to-white px-4 py-4 shadow-[0_1px_2px_rgba(15,15,20,0.04)] lg:col-span-4">
<div className="flex items-center gap-3">
<div className="flex h-9 w-9 items-center justify-center rounded-full bg-amber-100 text-amber-700 ring-1 ring-inset ring-amber-200">
- <StarIcon size={18} weight="fill" />
+ <UIIcon icon={StarIcon} size={18} />
</div>
<div className="flex flex-col">
<Text variant="body-medium" as="span" className="text-textBlack">
@@ -107,13 +107,13 @@ export function StatsOverview({ stats, index = 0 }: Props) {
}
function StatTileCard({ tile }: { tile: StatTile }) {
- const { label, value, Icon, iconClass } = tile;
+ const { label, value, iconClass } = tile;
return (
<div className="relative flex min-h-[120px] flex-col justify-between gap-2 rounded-[18px] border border-zinc-200 bg-white px-4 py-5 shadow-[0_1px_2px_rgba(15,15,20,0.04)]">
<div
className={`absolute right-3 top-3 flex h-7 w-7 items-center justify-center rounded-full ring-1 ring-inset ${iconClass}`}
>
- <Icon size={14} weight="bold" />
+ <UIIcon icon={tile.Icon} size={14} />
</div>
<Text variant="body" as="span" className="pr-10 text-zinc-800">
{label}
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/SubmissionItem/SubmissionItem.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/SubmissionItem/SubmissionItem.tsx
index 67eaf2775e..cca9cd867e 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/SubmissionItem/SubmissionItem.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/SubmissionItem/SubmissionItem.tsx
@@ -3,15 +3,6 @@
import Image from "next/image";
import Link from "next/link";
import { motion, useReducedMotion } from "framer-motion";
-import {
- ArrowSquareOutIcon,
- DotsThreeVerticalIcon,
- EyeIcon,
- ImageBrokenIcon,
- PencilSimpleIcon,
- TrashIcon,
-} from "@phosphor-icons/react";
-
import type { StoreSubmission } from "@/app/api/__generated__/models/storeSubmission";
import type { StoreSubmissionEditRequest } from "@/app/api/__generated__/models/storeSubmissionEditRequest";
import { Button } from "@/components/atoms/Button/Button";
@@ -27,6 +18,15 @@ import {
import { formatRuns, formatSubmittedAt, getStatusVisual } from "../../helpers";
import { useSubmissionItem } from "./useSubmissionItem";
+import {
+ Delete02Icon,
+ EyeIcon,
+ ImageNotFound01Icon,
+ LinkSquare01Icon,
+ MoreVerticalIcon,
+ PencilIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon as UIIcon } from "@/components/atoms/Icon/Icon";
interface EditPayload extends StoreSubmissionEditRequest {
store_listing_version_id: string;
@@ -74,7 +74,6 @@ export function SubmissionItem({
});
const visual = getStatusVisual(submission.status);
- const StatusIcon = visual.Icon;
const thumbnail = submission.image_urls?.[0];
return (
@@ -110,7 +109,8 @@ export function SubmissionItem({
/>
) : (
<div className="flex h-full w-full items-center justify-center">
- <ImageBrokenIcon
+ <UIIcon
+ icon={ImageNotFound01Icon}
size={20}
className="pointer-events-none text-zinc-400"
/>
@@ -134,7 +134,8 @@ export function SubmissionItem({
>
{submission.name}
</Text>
- <ArrowSquareOutIcon
+ <UIIcon
+ icon={LinkSquare01Icon}
size={14}
className="shrink-0 text-zinc-500"
aria-hidden
@@ -172,7 +173,7 @@ export function SubmissionItem({
<span
className={`inline-flex items-center gap-1.5 whitespace-nowrap rounded-full px-2.5 py-1 text-xs font-medium ${visual.pillClass}`}
>
- <StatusIcon size={12} weight="fill" />
+ <UIIcon icon={visual.Icon} size={12} />
{visual.label}
</span>
</td>
@@ -194,7 +195,7 @@ export function SubmissionItem({
data-testid="submission-actions"
className="ease-[cubic-bezier(0.16,1,0.3,1)] inline-flex h-8 w-8 items-center justify-center rounded-full text-zinc-500 transition-[background-color,color,transform] duration-150 hover:bg-zinc-100 hover:text-zinc-900 active:scale-[0.92] motion-reduce:transition-none motion-reduce:active:scale-100"
>
- <DotsThreeVerticalIcon size={18} weight="bold" />
+ <UIIcon icon={MoreVerticalIcon} size={18} />
</button>
</DropdownMenuTrigger>
<DropdownMenuContent
@@ -207,7 +208,7 @@ export function SubmissionItem({
onSelect={handleEdit}
className="flex cursor-pointer items-center gap-2"
>
- <PencilSimpleIcon size={14} />
+ <UIIcon icon={PencilIcon} size={14} />
Edit details
</DropdownMenuItem>
) : (
@@ -215,7 +216,7 @@ export function SubmissionItem({
onSelect={handleView}
className="flex cursor-pointer items-center gap-2"
>
- <EyeIcon size={14} />
+ <UIIcon icon={EyeIcon} size={14} />
View submission
</DropdownMenuItem>
)}
@@ -228,7 +229,7 @@ export function SubmissionItem({
className="flex cursor-pointer items-center gap-2"
data-testid="submission-marketplace-menu-link"
>
- <ArrowSquareOutIcon size={14} />
+ <UIIcon icon={LinkSquare01Icon} size={14} />
View on marketplace
</Link>
</DropdownMenuItem>
@@ -240,7 +241,7 @@ export function SubmissionItem({
onSelect={() => setConfirmDeleteOpen(true)}
className="flex cursor-pointer items-center gap-2 text-rose-600 focus:text-rose-700"
>
- <TrashIcon size={14} />
+ <UIIcon icon={Delete02Icon} size={14} />
Delete
</DropdownMenuItem>
</>
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/SubmissionsList/columns/SortColumnFilter.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/SubmissionsList/columns/SortColumnFilter.tsx
index 10f5427be4..b6a4002655 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/SubmissionsList/columns/SortColumnFilter.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/SubmissionsList/columns/SortColumnFilter.tsx
@@ -1,13 +1,12 @@
"use client";
-
-import { ArrowDownIcon, ArrowUpIcon } from "@phosphor-icons/react";
-
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
import { cn } from "@/lib/utils";
import { type SortDir, type SortKey } from "../../../helpers";
import { ColumnFilter } from "../../ColumnFilter/ColumnFilter";
+import { ArrowDown02Icon, ArrowUp02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
sortKey: SortKey;
@@ -43,13 +42,13 @@ export function SortColumnFilter({
Sort
</Text>
<SortOption
- icon={<ArrowDownIcon size={14} weight="bold" />}
+ icon={<Icon icon={ArrowDown02Icon} size={14} />}
label={descLabel}
active={isActive && activeDir === "desc"}
onClick={() => pick("desc")}
/>
<SortOption
- icon={<ArrowUpIcon size={14} weight="bold" />}
+ icon={<Icon icon={ArrowUp02Icon} size={14} />}
label={ascLabel}
active={isActive && activeDir === "asc"}
onClick={() => pick("asc")}
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/SubmissionsList/columns/StatusColumnFilter.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/SubmissionsList/columns/StatusColumnFilter.tsx
index 9796876005..9250afd35b 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/SubmissionsList/columns/StatusColumnFilter.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/components/SubmissionsList/columns/StatusColumnFilter.tsx
@@ -1,7 +1,4 @@
"use client";
-
-import { CheckIcon } from "@phosphor-icons/react";
-
import type { SubmissionStatus } from "@/app/api/__generated__/models/submissionStatus";
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
@@ -9,6 +6,8 @@ import { cn } from "@/lib/utils";
import { STATUS_OPTIONS, STATUS_VISUAL } from "../../../helpers";
import { ColumnFilter } from "../../ColumnFilter/ColumnFilter";
+import { Tick02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
value: SubmissionStatus[];
@@ -61,7 +60,7 @@ export function StatusColumnFilter({ value, onChange }: Props) {
: "scale-95 border-zinc-300 bg-white text-transparent",
)}
>
- <CheckIcon size={10} weight="bold" />
+ <Icon icon={Tick02Icon} size={10} />
</span>
</button>
</li>
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/helpers.ts b/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/helpers.ts
index aae7bc6034..0801d2edb2 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/helpers.ts
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/creator-dashboard/helpers.ts
@@ -1,15 +1,14 @@
-import {
- CheckCircleIcon,
- ClockIcon,
- ProhibitIcon,
- WarningCircleIcon,
- type Icon as PhosphorIcon,
-} from "@phosphor-icons/react";
-
import { SubmissionStatus } from "@/app/api/__generated__/models/submissionStatus";
import type { StoreSubmission } from "@/app/api/__generated__/models/storeSubmission";
import type { StoreSubmissionEditRequest } from "@/app/api/__generated__/models/storeSubmissionEditRequest";
import type { SubmissionStats } from "@/app/api/__generated__/models/submissionStats";
+import {
+ AlertCircleIcon,
+ CheckmarkCircle02Icon,
+ Clock01Icon,
+ UnavailableIcon,
+} from "@hugeicons/core-free-icons";
+import type { IconSvgElement } from "@hugeicons/react";
export interface EditPayload extends StoreSubmissionEditRequest {
store_listing_version_id: string;
@@ -97,7 +96,7 @@ export function isFiltered(state: FilterState): boolean {
export interface StatusVisual {
label: string;
- Icon: PhosphorIcon;
+ Icon: IconSvgElement;
pillClass: string;
dotClass: string;
}
@@ -109,26 +108,26 @@ export function getStatusVisual(status: SubmissionStatus): StatusVisual {
export const STATUS_VISUAL: Record<SubmissionStatus, StatusVisual> = {
[SubmissionStatus.DRAFT]: {
label: "Draft",
- Icon: ClockIcon,
+ Icon: Clock01Icon,
pillClass: "bg-zinc-100 text-zinc-700 ring-1 ring-inset ring-zinc-200",
dotClass: "bg-zinc-400",
},
[SubmissionStatus.PENDING]: {
label: "In review",
- Icon: ClockIcon,
+ Icon: Clock01Icon,
pillClass: "bg-amber-50 text-amber-800 ring-1 ring-inset ring-amber-200",
dotClass: "bg-amber-500",
},
[SubmissionStatus.APPROVED]: {
label: "Approved",
- Icon: CheckCircleIcon,
+ Icon: CheckmarkCircle02Icon,
pillClass:
"bg-emerald-50 text-emerald-800 ring-1 ring-inset ring-emerald-200",
dotClass: "bg-emerald-500",
},
[SubmissionStatus.REJECTED]: {
label: "Needs changes",
- Icon: ProhibitIcon,
+ Icon: UnavailableIcon,
pillClass: "bg-rose-50 text-rose-800 ring-1 ring-inset ring-rose-200",
dotClass: "bg-rose-500",
},
@@ -197,4 +196,4 @@ export function formatSubmittedAt(value: Date | null | undefined): string {
});
}
-export const FILTER_EMPTY_ICON: PhosphorIcon = WarningCircleIcon;
+export const FILTER_EMPTY_ICON: IconSvgElement = AlertCircleIcon;
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/profile/components/LinksSection/LinksSection.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/profile/components/LinksSection/LinksSection.tsx
index 64647a31c0..429ef91ffa 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/profile/components/LinksSection/LinksSection.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/profile/components/LinksSection/LinksSection.tsx
@@ -1,12 +1,16 @@
"use client";
import { AnimatePresence, motion, useReducedMotion } from "framer-motion";
-import { LinkSimpleIcon, PlusIcon, TrashIcon } from "@phosphor-icons/react";
-
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
import { type LinkRow, MAX_LINKS } from "../../helpers";
+import {
+ Delete02Icon,
+ Link02Icon,
+ PlusSignIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
links: LinkRow[];
@@ -56,9 +60,9 @@ export function LinksSection({ links, onChange, onAdd, onRemove }: Props) {
>
<div className="flex items-center gap-2">
<div className="flex flex-1 items-center gap-2 rounded-3xl border border-zinc-200 bg-white px-4 transition-colors duration-150 focus-within:border-purple-400 focus-within:ring-1 focus-within:ring-purple-400">
- <LinkSimpleIcon
+ <Icon
+ icon={Link02Icon}
size={16}
- weight="regular"
className="text-zinc-400"
/>
<input
@@ -76,7 +80,7 @@ export function LinksSection({ links, onChange, onAdd, onRemove }: Props) {
aria-label={`Remove link ${index + 1}`}
onClick={() => onRemove(index)}
>
- <TrashIcon size={16} />
+ <Icon icon={Delete02Icon} size={16} />
</Button>
</div>
</motion.div>
@@ -94,7 +98,7 @@ export function LinksSection({ links, onChange, onAdd, onRemove }: Props) {
<Button
variant="ghost"
size="small"
- leftIcon={<PlusIcon size={16} />}
+ leftIcon={<Icon icon={PlusSignIcon} size={16} />}
onClick={onAdd}
disabled={!canAdd}
>
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/profile/components/ProfileForm/ProfileForm.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/profile/components/ProfileForm/ProfileForm.tsx
index e629a330ad..65a43558d0 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/profile/components/ProfileForm/ProfileForm.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/profile/components/ProfileForm/ProfileForm.tsx
@@ -1,15 +1,6 @@
"use client";
import { motion, useReducedMotion } from "framer-motion";
-import {
- EyeClosedIcon,
- EyeIcon,
- LinkIcon,
- ListBulletsIcon,
- TextBIcon,
- TextItalicIcon,
- TextStrikethroughIcon,
-} from "@phosphor-icons/react";
import { type ReactNode, useRef, useState } from "react";
import ReactMarkdown from "react-markdown";
import remarkGfm from "remark-gfm";
@@ -23,6 +14,16 @@ import {
type ProfileFormState,
validateForm,
} from "../../helpers";
+import {
+ EyeClosedIcon,
+ EyeIcon,
+ LeftToRightListBulletIcon,
+ Link01Icon,
+ TextBoldIcon,
+ TextItalicIcon,
+ TextStrikethroughIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
formState: ProfileFormState;
@@ -47,35 +48,35 @@ interface MarkdownAction {
const ACTIONS: ReadonlyArray<MarkdownAction> = [
{
label: "Bold",
- icon: <TextBIcon size={16} weight="bold" />,
+ icon: <Icon icon={TextBoldIcon} size={16} />,
before: "**",
after: "**",
placeholder: "bold text",
},
{
label: "Italic",
- icon: <TextItalicIcon size={16} />,
+ icon: <Icon icon={TextItalicIcon} size={16} />,
before: "*",
after: "*",
placeholder: "italic text",
},
{
label: "Strikethrough",
- icon: <TextStrikethroughIcon size={16} />,
+ icon: <Icon icon={TextStrikethroughIcon} size={16} />,
before: "~~",
after: "~~",
placeholder: "strikethrough",
},
{
label: "Link",
- icon: <LinkIcon size={16} />,
+ icon: <Icon icon={Link01Icon} size={16} />,
before: "[",
after: "](https://)",
placeholder: "link text",
},
{
label: "Bulleted list",
- icon: <ListBulletsIcon size={16} />,
+ icon: <Icon icon={LeftToRightListBulletIcon} size={16} />,
before: "- ",
after: "",
placeholder: "list item",
@@ -202,7 +203,11 @@ export function ProfileForm({ formState, errors, onChange }: Props) {
onClick={() => setIsPreview((v) => !v)}
className="ml-auto inline-flex h-8 items-center gap-1.5 rounded-full px-3 text-xs font-medium text-zinc-700 transition-colors hover:bg-zinc-100 hover:text-black"
>
- {isPreview ? <EyeClosedIcon size={14} /> : <EyeIcon size={14} />}
+ {isPreview ? (
+ <Icon icon={EyeClosedIcon} size={14} />
+ ) : (
+ <Icon icon={EyeIcon} size={14} />
+ )}
{isPreview ? "Edit" : "Preview"}
</button>
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/profile/components/ProfileHeader/ProfileHeader.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/profile/components/ProfileHeader/ProfileHeader.tsx
index 774ff286d7..e5ee9eb27c 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/profile/components/ProfileHeader/ProfileHeader.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/profile/components/ProfileHeader/ProfileHeader.tsx
@@ -2,9 +2,6 @@
import { useRef, useState } from "react";
import { motion, useReducedMotion } from "framer-motion";
-import { CameraIcon, PencilSimpleIcon, UserIcon } from "@phosphor-icons/react";
-import { CircleNotchIcon } from "@phosphor-icons/react/dist/ssr";
-
import {
Avatar,
AvatarFallback,
@@ -14,6 +11,13 @@ import { Input } from "@/components/atoms/Input/Input";
import { Text } from "@/components/atoms/Text/Text";
import { type ProfileFormState, validateForm } from "../../helpers";
+import {
+ Camera01Icon,
+ Loading03Icon,
+ PencilIcon,
+ UserIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
avatarUrl: string;
@@ -83,7 +87,7 @@ export function ProfileHeader({
height={224}
/>
<AvatarFallback className="bg-gradient-to-br from-zinc-100 to-zinc-200 text-zinc-500">
- <UserIcon size={48} weight="regular" />
+ <Icon icon={UserIcon} size={48} />
</AvatarFallback>
</Avatar>
@@ -96,9 +100,9 @@ export function ProfileHeader({
className="pointer-events-none absolute inset-0 flex items-center justify-center rounded-full bg-black/45 text-white backdrop-blur-[2px]"
>
{isUploading ? (
- <CircleNotchIcon size={26} weight="bold" className="animate-spin" />
+ <Icon icon={Loading03Icon} size={26} className="animate-spin" />
) : (
- <CameraIcon size={26} weight="regular" />
+ <Icon icon={Camera01Icon} size={26} />
)}
</motion.div>
@@ -123,7 +127,7 @@ export function ProfileHeader({
className="absolute bottom-1 right-1 flex h-9 w-9 items-center justify-center rounded-full border-2 border-white bg-white text-black shadow-[0_3px_10px_-2px_rgba(15,15,20,0.25)]"
style={{ transformOrigin: "center" }}
>
- <PencilSimpleIcon size={16} weight="bold" />
+ <Icon icon={PencilIcon} size={16} />
</motion.span>
</motion.span>
diff --git a/autogpt_platform/frontend/src/app/(platform)/team/components/AutopilotCard.tsx b/autogpt_platform/frontend/src/app/(platform)/team/components/AutopilotCard.tsx
index d2baa2fad6..e5581ba1dd 100644
--- a/autogpt_platform/frontend/src/app/(platform)/team/components/AutopilotCard.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/team/components/AutopilotCard.tsx
@@ -1,7 +1,8 @@
import { Avatar, AvatarFallback } from "@/components/atoms/Avatar/Avatar";
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
-import { RobotIcon } from "@phosphor-icons/react";
+import { Robot01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function AutopilotCard() {
return (
@@ -9,7 +10,7 @@ export function AutopilotCard() {
<div className="flex items-center gap-3">
<Avatar className="h-12 w-12">
<AvatarFallback>
- <RobotIcon size={24} />
+ <Icon icon={Robot01Icon} size={24} />
</AvatarFallback>
</Avatar>
<div className="min-w-0 flex-1">
diff --git a/autogpt_platform/frontend/src/app/(platform)/team/components/EmptyTeamState.tsx b/autogpt_platform/frontend/src/app/(platform)/team/components/EmptyTeamState.tsx
index ecacd501ab..939bc64b9c 100644
--- a/autogpt_platform/frontend/src/app/(platform)/team/components/EmptyTeamState.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/team/components/EmptyTeamState.tsx
@@ -1,11 +1,12 @@
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
-import { UsersThreeIcon } from "@phosphor-icons/react";
+import { UserGroupIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function EmptyTeamState() {
return (
<div className="flex flex-col items-center gap-3 rounded-2xl border border-dashed border-zinc-300 bg-white p-10 text-center">
- <UsersThreeIcon size={32} className="text-zinc-400" />
+ <Icon icon={UserGroupIcon} size={32} className="text-zinc-400" />
<Text variant="large-medium">No hired experts yet</Text>
<Text variant="body" className="max-w-prose text-zinc-600">
Hire an expert from the marketplace and they will show up here, ready to
diff --git a/autogpt_platform/frontend/src/app/(platform)/team/components/ExpertTeamCard/ExpertTeamCard.tsx b/autogpt_platform/frontend/src/app/(platform)/team/components/ExpertTeamCard/ExpertTeamCard.tsx
index c1a5308818..d10efa8b78 100644
--- a/autogpt_platform/frontend/src/app/(platform)/team/components/ExpertTeamCard/ExpertTeamCard.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/team/components/ExpertTeamCard/ExpertTeamCard.tsx
@@ -6,8 +6,9 @@ import {
} from "@/components/atoms/Avatar/Avatar";
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
-import { PlusIcon } from "@phosphor-icons/react";
import { MouseEvent } from "react";
+import { PlusSignIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
expert: Expert;
@@ -108,7 +109,7 @@ export function ExpertTeamCard({
<Button
variant="ghost"
size="small"
- leftIcon={<PlusIcon size={16} />}
+ leftIcon={<Icon icon={PlusSignIcon} size={16} />}
onClick={handleInstallClick}
>
Install workflow
diff --git a/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourAgentCard/TourAgentCard.tsx b/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourAgentCard/TourAgentCard.tsx
index 0a5b1eaff5..98e2e6ab64 100644
--- a/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourAgentCard/TourAgentCard.tsx
+++ b/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourAgentCard/TourAgentCard.tsx
@@ -1,12 +1,13 @@
import { Text } from "@/components/atoms/Text/Text";
import { cn } from "@/lib/utils";
-import {
- ArrowRightIcon,
- CheckCircleIcon,
- ClockIcon,
-} from "@phosphor-icons/react";
import { Fragment } from "react";
import type { TourAgent } from "../../script/types";
+import {
+ ArrowRight02Icon,
+ CheckmarkCircle02Icon,
+ Clock01Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
agent: TourAgent;
@@ -30,7 +31,7 @@ export function TourAgentCard({ agent, runCompleted }: Props) {
>
{runCompleted ? (
<>
- <CheckCircleIcon className="size-4 shrink-0" weight="fill" />
+ <Icon icon={CheckmarkCircle02Icon} className="size-4 shrink-0" />
Run completed
</>
) : (
@@ -51,7 +52,7 @@ export function TourAgentCard({ agent, runCompleted }: Props) {
</div>
<div className="flex items-center gap-1.5 text-sm text-zinc-600">
- <ClockIcon className="size-4 shrink-0" />
+ <Icon icon={Clock01Icon} className="size-4 shrink-0" />
<span>{agent.schedule} · created from your sentence</span>
</div>
@@ -59,7 +60,10 @@ export function TourAgentCard({ agent, runCompleted }: Props) {
{agent.blocks.map((block, index) => (
<Fragment key={`${block}-${index}`}>
{index > 0 && (
- <ArrowRightIcon className="size-3.5 shrink-0 text-zinc-400" />
+ <Icon
+ icon={ArrowRight02Icon}
+ className="size-3.5 shrink-0 text-zinc-400"
+ />
)}
<span className="rounded-md bg-zinc-100 px-2.5 py-1 font-mono text-xs text-zinc-700">
{block}
diff --git a/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourArtifactCard/TourArtifactCard.tsx b/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourArtifactCard/TourArtifactCard.tsx
index 60951ca99a..fb0cc8e310 100644
--- a/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourArtifactCard/TourArtifactCard.tsx
+++ b/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourArtifactCard/TourArtifactCard.tsx
@@ -1,6 +1,7 @@
import { Text } from "@/components/atoms/Text/Text";
-import { ArrowRightIcon, EnvelopeSimpleIcon } from "@phosphor-icons/react";
import type { TourArtifact } from "../../script/types";
+import { ArrowRight02Icon, Mail02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
artifact: TourArtifact;
@@ -10,7 +11,7 @@ export function TourArtifactCard({ artifact }: Props) {
return (
<div className="flex flex-col gap-2.5 rounded-xl border border-zinc-200/70 bg-white p-4 shadow-sm">
<div className="flex items-center gap-1.5 text-sm text-zinc-500">
- <EnvelopeSimpleIcon className="size-4 shrink-0" />
+ <Icon icon={Mail02Icon} className="size-4 shrink-0" />
<span>Artifact · {artifact.caption}</span>
</div>
@@ -38,7 +39,10 @@ export function TourArtifactCard({ artifact }: Props) {
<span className="text-red-700 line-through decoration-red-700/70">
{artifact.diff.from}
</span>
- <ArrowRightIcon className="size-4 shrink-0 text-zinc-500" />
+ <Icon
+ icon={ArrowRight02Icon}
+ className="size-4 shrink-0 text-zinc-500"
+ />
<span className="text-emerald-700">{artifact.diff.to}</span>
</div>
<span className="text-sm text-zinc-500">{artifact.diff.delta}</span>
diff --git a/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourChatContainer/TourChatContainer.tsx b/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourChatContainer/TourChatContainer.tsx
index 47f5124620..f5bb8fac25 100644
--- a/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourChatContainer/TourChatContainer.tsx
+++ b/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourChatContainer/TourChatContainer.tsx
@@ -1,11 +1,11 @@
"use client";
-
-import { LightningIcon } from "@phosphor-icons/react";
import { useTourStore } from "../../tourStore";
import type { useTourCopilot } from "../../useTourCopilot";
import { TourEndCard } from "../TourEndCard/TourEndCard";
import { TourMessageList } from "../TourMessageList/TourMessageList";
import { TourPromptBar } from "../TourPromptBar/TourPromptBar";
+import { FlashIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
chat: ReturnType<typeof useTourCopilot>;
@@ -33,7 +33,7 @@ export function TourChatContainer({ chat }: Props) {
}
/>
<p className="mt-2 flex items-center justify-center gap-1 text-sm text-zinc-400">
- <LightningIcon className="size-3.5 shrink-0" weight="fill" />
+ <Icon icon={FlashIcon} className="size-3.5 shrink-0" />
Simulated demo — pick a scenario above to watch Autopilot build a
different agent
</p>
diff --git a/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourChatHeader/TourChatHeader.tsx b/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourChatHeader/TourChatHeader.tsx
index 0ea90926bf..bfbe085a4c 100644
--- a/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourChatHeader/TourChatHeader.tsx
+++ b/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourChatHeader/TourChatHeader.tsx
@@ -3,19 +3,17 @@
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
import { SidebarTrigger } from "@/components/ui/sidebar";
-import type { Icon } from "@phosphor-icons/react";
-import { CheckIcon, LinkSimpleIcon } from "@phosphor-icons/react";
import { useTourChatHeader } from "./useTourChatHeader";
+import { Link02Icon, Tick02Icon } from "@hugeicons/core-free-icons";
+import type { IconSvgElement } from "@hugeicons/react";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
scenarioLabel: string;
- scenarioIcon: Icon;
+ scenarioIcon: IconSvgElement;
}
-export function TourChatHeader({
- scenarioLabel,
- scenarioIcon: ScenarioIcon,
-}: Props) {
+export function TourChatHeader({ scenarioLabel, scenarioIcon }: Props) {
const { isCopied, handleShare } = useTourChatHeader();
return (
@@ -26,7 +24,7 @@ export function TourChatHeader({
<div className="md:hidden">
<SidebarTrigger />
</div>
- <ScenarioIcon className="size-4 shrink-0 text-violet-600" />
+ <Icon icon={scenarioIcon} className="size-4 shrink-0 text-violet-600" />
<Text
variant="body-medium"
className="truncate bg-gradient-to-r from-violet-600 to-indigo-500 bg-clip-text text-transparent"
@@ -40,9 +38,9 @@ export function TourChatHeader({
onClick={handleShare}
leftIcon={
isCopied ? (
- <CheckIcon className="size-4 text-emerald-600" weight="bold" />
+ <Icon icon={Tick02Icon} className="size-4 text-emerald-600" />
) : (
- <LinkSimpleIcon className="size-4" />
+ <Icon icon={Link02Icon} className="size-4" />
)
}
className="shrink-0"
diff --git a/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourEndCard/TourEndCard.tsx b/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourEndCard/TourEndCard.tsx
index 60583906ca..cfacfff831 100644
--- a/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourEndCard/TourEndCard.tsx
+++ b/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourEndCard/TourEndCard.tsx
@@ -2,13 +2,14 @@
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
-import { CheckIcon, PlayIcon } from "@phosphor-icons/react";
import {
buildTourPricingUrl,
TOUR_DEMO_CLAIM_SECONDS,
TOUR_GITHUB_URL,
} from "../../constants";
import { useTourEndCard } from "./useTourEndCard";
+import { PlayIcon, Tick02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function TourEndCard() {
const { handlePricingClick, handleSelfHostClick, handleWatchAnother } =
@@ -18,7 +19,7 @@ export function TourEndCard() {
<div className="mx-auto w-full max-w-md rounded-2xl border border-zinc-200/70 bg-white p-5 shadow-sm duration-500 animate-in fade-in slide-in-from-bottom-2 sm:p-6">
<div className="flex flex-col items-center gap-2 text-center">
<span className="inline-flex items-center gap-1.5 rounded-full bg-emerald-50 px-3 py-1">
- <CheckIcon className="size-3.5 text-emerald-700" weight="bold" />
+ <Icon icon={Tick02Icon} className="size-3.5 text-emerald-700" />
<Text variant="small-medium" className="!text-emerald-700">
Agent built &amp; first run complete — {TOUR_DEMO_CLAIM_SECONDS}{" "}
seconds
@@ -52,7 +53,7 @@ export function TourEndCard() {
<Button
variant="secondary"
onClick={handleWatchAnother}
- leftIcon={<PlayIcon className="size-4" weight="fill" />}
+ leftIcon={<Icon icon={PlayIcon} className="size-4" />}
className="w-full"
>
Watch another scenario
diff --git a/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourNextScenarioChip/TourNextScenarioChip.tsx b/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourNextScenarioChip/TourNextScenarioChip.tsx
index e07bd7c0bd..6d6183df97 100644
--- a/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourNextScenarioChip/TourNextScenarioChip.tsx
+++ b/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourNextScenarioChip/TourNextScenarioChip.tsx
@@ -1,11 +1,11 @@
"use client";
-
-import { PlayIcon } from "@phosphor-icons/react";
import { TOUR_NEXT_SCENARIO_SECONDS } from "../../constants";
import { getNextTourScenario } from "../../script/tourScenarios";
import { useTourStore } from "../../tourStore";
import { trackTourCtaClick } from "../../tracking";
import { useTourScenarioSelection } from "../../useTourScenarioSelection";
+import { PlayIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function TourNextScenarioChip() {
const activeScenarioId = useTourStore((s) => s.activeScenarioId);
@@ -29,7 +29,7 @@ export function TourNextScenarioChip() {
onClick={handleClick}
className="inline-flex items-center gap-1.5 rounded-full border border-dashed border-violet-400 bg-violet-50/80 px-3.5 py-1.5 text-sm font-medium text-violet-700 transition-colors duration-300 animate-in fade-in slide-in-from-bottom-1 hover:bg-violet-100"
>
- <PlayIcon className="size-3.5 shrink-0" weight="fill" />
+ <Icon icon={PlayIcon} className="size-3.5 shrink-0" />
<span className="truncate">
Next: {nextScenario.label} — watch it in {TOUR_NEXT_SCENARIO_SECONDS}s
</span>
diff --git a/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourPlanCard/TourPlanCard.tsx b/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourPlanCard/TourPlanCard.tsx
index 0d9aae4567..c7e10ae20d 100644
--- a/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourPlanCard/TourPlanCard.tsx
+++ b/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourPlanCard/TourPlanCard.tsx
@@ -6,12 +6,13 @@ import {
} from "@/app/(platform)/copilot/components/ToolAccordion/AccordionContent";
import { ToolAccordion } from "@/app/(platform)/copilot/components/ToolAccordion/ToolAccordion";
import { Text } from "@/components/atoms/Text/Text";
+import type { TourPlan, TourPlanStep } from "../../script/types";
import {
- CheckCircleIcon,
+ CheckmarkCircle02Icon,
CubeIcon,
- PlusCircleIcon,
-} from "@phosphor-icons/react";
-import type { TourPlan, TourPlanStep } from "../../script/types";
+ PlusSignCircleIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
const STEP_STAGGER_MS = 200;
@@ -21,7 +22,7 @@ const STEP_STAGGER_MS = 200;
export function TourPlanCard({ plan }: { plan: TourPlan }) {
return (
<ToolAccordion
- icon={<PlusCircleIcon size={32} weight="light" />}
+ icon={<Icon icon={PlusSignCircleIcon} size={32} />}
title={`Build Plan — ${plan.steps.length} steps`}
description={plan.goal}
defaultExpanded
@@ -59,9 +60,9 @@ function TourPlanStepItem({
className="flex items-start gap-3 py-1.5 duration-500 animate-in fade-in slide-in-from-bottom-2 fill-mode-both"
style={{ animationDelay: `${index * STEP_STAGGER_MS}ms` }}
>
- <CheckCircleIcon
+ <Icon
+ icon={CheckmarkCircle02Icon}
size={18}
- weight="fill"
aria-label="completed"
className="mt-0.5 shrink-0 text-emerald-500 duration-300 animate-in fade-in zoom-in-50 fill-mode-both"
style={{ animationDelay: `${index * STEP_STAGGER_MS + 200}ms` }}
@@ -71,7 +72,7 @@ function TourPlanStepItem({
{index + 1}. {step.description}
</Text>
<div className="mt-0.5 flex items-center gap-1">
- <CubeIcon size={12} className="text-muted-foreground" />
+ <Icon icon={CubeIcon} size={12} className="text-muted-foreground" />
<Text
variant="small"
className="font-mono text-xs text-muted-foreground"
diff --git a/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourPromptBar/TourPromptBar.tsx b/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourPromptBar/TourPromptBar.tsx
index 2a9a3a7c56..82b80a770a 100644
--- a/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourPromptBar/TourPromptBar.tsx
+++ b/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourPromptBar/TourPromptBar.tsx
@@ -2,9 +2,10 @@
import { useMountEffect } from "@/hooks/useMountEffect";
import { cn } from "@/lib/utils";
-import { ArrowUpIcon } from "@phosphor-icons/react";
import { useRef } from "react";
import { useTextReveal } from "../../useTextReveal";
+import { ArrowUp02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
prompt: string | null;
@@ -75,7 +76,7 @@ export function TourPromptBar({ prompt, isStreaming, onSend }: Props) {
isDisabled ? "bg-zinc-200" : "bg-zinc-800",
)}
>
- <ArrowUpIcon className="size-4" weight="bold" />
+ <Icon icon={ArrowUp02Icon} className="size-4" />
</span>
</div>
);
diff --git a/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourSidebar/TourSidebar.tsx b/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourSidebar/TourSidebar.tsx
index 30366088ed..4a45e33ac5 100644
--- a/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourSidebar/TourSidebar.tsx
+++ b/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourSidebar/TourSidebar.tsx
@@ -22,17 +22,6 @@ import {
SidebarRail,
} from "@/components/ui/sidebar";
import { cn } from "@/lib/utils";
-import {
- CaretDownIcon,
- CheckIcon,
- FlowArrowIcon,
- FolderIcon,
- type Icon,
- MagnifyingGlassIcon,
- SparkleIcon,
- SquaresFourIcon,
- StorefrontIcon,
-} from "@phosphor-icons/react";
import { motion, useReducedMotion } from "framer-motion";
import Link from "next/link";
import { useRouter } from "next/navigation";
@@ -41,6 +30,18 @@ import { useTourStore } from "../../tourStore";
import { useTourScenarioSelection } from "../../useTourScenarioSelection";
import { TourSidebarHeader } from "./components/TourSidebarHeader";
import { TourUpsellCard } from "./components/TourUpsellCard";
+import {
+ ArrowDown01Icon,
+ FlowIcon,
+ Folder01Icon,
+ GridViewIcon,
+ Search01Icon,
+ SparklesIcon,
+ Store01Icon,
+ Tick02Icon,
+} from "@hugeicons/core-free-icons";
+import type { IconSvgElement } from "@hugeicons/react";
+import { Icon } from "@/components/atoms/Icon/Icon";
// Visual clone of the logged-in AppSidebar for the public tour demo. Only
// Marketplace navigates; every other destination needs an account, so those
@@ -48,10 +49,10 @@ import { TourUpsellCard } from "./components/TourUpsellCard";
// as if they were chat sessions.
function DisabledMenuItem({
- icon: ItemIcon,
+ icon,
label,
}: {
- icon: Icon;
+ icon: IconSvgElement;
label: string;
}) {
return (
@@ -61,7 +62,7 @@ function DisabledMenuItem({
tooltip={label}
className="cursor-not-allowed font-normal opacity-50 group-data-[collapsible=icon]:!p-1.5 hover:!bg-transparent [&>svg]:size-5"
>
- <ItemIcon className="size-5" />
+ <Icon icon={icon} className="size-5" />
<span className="truncate">{label}</span>
</SidebarMenuButton>
</SidebarMenuItem>
@@ -103,11 +104,11 @@ function TourSessionsMenu({ variant }: { variant: TourSidebarVariant }) {
"animate-pulse bg-violet-50 outline-dashed outline-1 outline-violet-400",
)}
>
- <scenario.icon className="size-4 shrink-0" />
+ <Icon icon={scenario.icon} className="size-4 shrink-0" />
<span className="truncate">{scenario.label}</span>
{variant === "tour" && watchedScenarioIds.includes(scenario.id) && (
<span className="ml-auto flex shrink-0 items-center gap-0.5 text-xs text-emerald-600">
- <CheckIcon className="size-3" weight="bold" />
+ <Icon icon={Tick02Icon} className="size-3" />
watched
</span>
)}
@@ -158,7 +159,7 @@ export function TourSidebar({ variant = "tour" }: Props) {
tooltip="New Task"
className="cursor-not-allowed justify-center rounded-lg bg-zinc-800 font-medium text-white opacity-50 group-data-[collapsible=icon]:justify-start hover:!bg-zinc-800 hover:!text-white"
>
- <SparkleIcon className="size-4" />
+ <Icon icon={SparklesIcon} className="size-4" />
<span className="truncate">New Task</span>
</SidebarMenuButton>
</SidebarMenuItem>
@@ -171,8 +172,8 @@ export function TourSidebar({ variant = "tour" }: Props) {
<SidebarGroup className="mt-2 py-1 group-data-[collapsible=icon]:mt-0">
<SidebarGroupContent>
<SidebarMenu className="group-data-[collapsible=icon]:gap-1">
- <DisabledMenuItem icon={MagnifyingGlassIcon} label="Search" />
- <DisabledMenuItem icon={SquaresFourIcon} label="Agents" />
+ <DisabledMenuItem icon={Search01Icon} label="Search" />
+ <DisabledMenuItem icon={GridViewIcon} label="Agents" />
<SidebarMenuItem>
<SidebarMenuButton
asChild
@@ -180,12 +181,12 @@ export function TourSidebar({ variant = "tour" }: Props) {
className="font-normal group-data-[collapsible=icon]:!p-1.5 hover:!bg-zinc-200 [&>svg]:size-5"
>
<Link href="/marketplace">
- <StorefrontIcon className="size-5" />
+ <Icon icon={Store01Icon} className="size-5" />
<span className="truncate">Marketplace</span>
</Link>
</SidebarMenuButton>
</SidebarMenuItem>
- <DisabledMenuItem icon={FlowArrowIcon} label="Build" />
+ <DisabledMenuItem icon={FlowIcon} label="Build" />
</SidebarMenu>
</SidebarGroupContent>
</SidebarGroup>
@@ -197,8 +198,8 @@ export function TourSidebar({ variant = "tour" }: Props) {
<SidebarGroupLabel asChild className="text-[13px] font-medium">
<CollapsibleTrigger>
Workspace
- <CaretDownIcon
- weight="bold"
+ <Icon
+ icon={ArrowDown01Icon}
className="ease-[cubic-bezier(0.33,1,0.68,1)] ml-auto size-4 transition-transform duration-200 group-data-[state=open]/collapsible:rotate-180 motion-reduce:transition-none"
/>
</CollapsibleTrigger>
@@ -206,7 +207,7 @@ export function TourSidebar({ variant = "tour" }: Props) {
<CollapsibleContent className="overflow-hidden data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down motion-reduce:animate-none">
<SidebarGroupContent>
<SidebarMenu className="group-data-[collapsible=icon]:gap-1">
- <DisabledMenuItem icon={FolderIcon} label="Files" />
+ <DisabledMenuItem icon={Folder01Icon} label="Files" />
</SidebarMenu>
</SidebarGroupContent>
</CollapsibleContent>
diff --git a/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourSidebar/components/TourSidebarHeader.tsx b/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourSidebar/components/TourSidebarHeader.tsx
index 956743435f..c9bb415731 100644
--- a/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourSidebar/components/TourSidebarHeader.tsx
+++ b/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourSidebar/components/TourSidebarHeader.tsx
@@ -3,8 +3,9 @@
import { AutoGPTLogo } from "@/components/atoms/AutoGPTLogo/AutoGPTLogo";
import { SidebarHeader, useSidebar } from "@/components/ui/sidebar";
import { cn } from "@/lib/utils";
-import { SidebarSimpleIcon } from "@phosphor-icons/react";
import Link from "next/link";
+import { SidebarLeftIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
// Mirror of AppSidebarHeader, with the logo pointing back at the tour
// instead of the (auth-gated) copilot home.
@@ -40,7 +41,10 @@ export function TourSidebarHeader() {
: "flex",
)}
>
- <SidebarSimpleIcon className="size-5 text-sidebar-foreground" />
+ <Icon
+ icon={SidebarLeftIcon}
+ className="size-5 text-sidebar-foreground"
+ />
</button>
</SidebarHeader>
);
diff --git a/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourSidebar/components/TourUpsellCard.tsx b/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourSidebar/components/TourUpsellCard.tsx
index 13a2b685a7..17e4d8e693 100644
--- a/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourSidebar/components/TourUpsellCard.tsx
+++ b/autogpt_platform/frontend/src/app/(public)/tour/chat/components/TourSidebar/components/TourUpsellCard.tsx
@@ -2,9 +2,10 @@
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
-import { GithubLogoIcon, SparkleIcon } from "@phosphor-icons/react";
import { buildTourPricingUrl, TOUR_GITHUB_URL } from "../../../constants";
import { trackTourCtaClick } from "../../../tracking";
+import { GithubIcon, SparklesIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
// Only rendered while the demo is still playing — once it completes the
// sidebar hides this card and the end card in the chat carries the upsell.
@@ -12,9 +13,9 @@ export function TourUpsellCard() {
return (
<div className="relative flex flex-col rounded-xl border border-zinc-200/80 bg-white p-4 shadow-sm">
<div className="flex items-center gap-1.5">
- <SparkleIcon
+ <Icon
+ icon={SparklesIcon}
size={14}
- weight="fill"
className="shrink-0 text-violet-600"
/>
<Text variant="body-medium" className="text-zinc-900">
@@ -50,7 +51,7 @@ export function TourUpsellCard() {
trackTourCtaClick("self-host", { placement: "sidebar-card" })
}
className="mt-1.5 w-full text-zinc-600"
- leftIcon={<GithubLogoIcon className="h-4 w-4" />}
+ leftIcon={<Icon icon={GithubIcon} className="h-4 w-4" />}
>
Self-host free
</Button>
diff --git a/autogpt_platform/frontend/src/app/(public)/tour/chat/script/tourScenarios.ts b/autogpt_platform/frontend/src/app/(public)/tour/chat/script/tourScenarios.ts
index 3d0a2737d3..77895f0a04 100644
--- a/autogpt_platform/frontend/src/app/(public)/tour/chat/script/tourScenarios.ts
+++ b/autogpt_platform/frontend/src/app/(public)/tour/chat/script/tourScenarios.ts
@@ -1,9 +1,3 @@
-import {
- HeadsetIcon,
- MagnifyingGlassIcon,
- PhoneCallIcon,
- SunIcon,
-} from "@phosphor-icons/react";
import { callPrepScript } from "./callPrepScript";
import {
callPrepArtifact,
@@ -15,26 +9,32 @@ import { competitorWatchScript } from "./competitorWatchScript";
import { dailyBriefScript } from "./dailyBriefScript";
import { supportQueueScript } from "./supportQueueScript";
import type { TourScenario } from "./types";
+import {
+ CallRinging01Icon,
+ HeadsetIcon,
+ Search01Icon,
+ Sun01Icon,
+} from "@hugeicons/core-free-icons";
export const tourScenarios: TourScenario[] = [
{
id: "daily-brief",
label: "Daily brief",
- icon: SunIcon,
+ icon: Sun01Icon,
script: dailyBriefScript,
completionArtifact: dailyBriefArtifact,
},
{
id: "call-prep",
label: "Call prep",
- icon: PhoneCallIcon,
+ icon: CallRinging01Icon,
script: callPrepScript,
completionArtifact: callPrepArtifact,
},
{
id: "competitor-watch",
label: "Competitor watch",
- icon: MagnifyingGlassIcon,
+ icon: Search01Icon,
script: competitorWatchScript,
completionArtifact: competitorWatchArtifact,
},
diff --git a/autogpt_platform/frontend/src/app/(public)/tour/chat/script/types.ts b/autogpt_platform/frontend/src/app/(public)/tour/chat/script/types.ts
index f5fd950797..358d25243d 100644
--- a/autogpt_platform/frontend/src/app/(public)/tour/chat/script/types.ts
+++ b/autogpt_platform/frontend/src/app/(public)/tour/chat/script/types.ts
@@ -1,4 +1,4 @@
-import type { Icon } from "@phosphor-icons/react";
+import type { IconSvgElement } from "@hugeicons/react";
export interface TourPlanStep {
description: string;
@@ -63,7 +63,7 @@ export interface TourScenario {
id: string;
/** Chip label — kept in sync with the product page's scenario chips. */
label: string;
- icon: Icon;
+ icon: IconSvgElement;
script: TourScript;
completionArtifact: TourCompletionArtifact;
}
diff --git a/autogpt_platform/frontend/src/app/(public)/tour/components/TourHero/TourHero.tsx b/autogpt_platform/frontend/src/app/(public)/tour/components/TourHero/TourHero.tsx
index 2b348ace19..f8e89fbaa2 100644
--- a/autogpt_platform/frontend/src/app/(public)/tour/components/TourHero/TourHero.tsx
+++ b/autogpt_platform/frontend/src/app/(public)/tour/components/TourHero/TourHero.tsx
@@ -1,8 +1,9 @@
import { AutoGPTLogo } from "@/components/atoms/AutoGPTLogo/AutoGPTLogo";
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
-import { ArrowRightIcon, SparkleIcon } from "@phosphor-icons/react/dist/ssr";
import { TourBackground } from "./TourBackground";
+import { ArrowRight02Icon, SparklesIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function TourHero() {
return (
@@ -13,7 +14,7 @@ export function TourHero() {
<span className="relative mb-6 inline-flex overflow-hidden rounded-full bg-[linear-gradient(135deg,rgba(99,102,241,0.6),rgba(59,130,246,0.35),rgba(165,180,252,0.6))] p-px shadow-[0_6px_20px_-6px_rgba(59,130,246,0.35)]">
<span className="relative inline-flex items-center gap-2 rounded-full bg-white/50 px-4 py-1.5 shadow-[inset_0_1px_0_rgba(255,255,255,0.75)] backdrop-blur-xl">
- <SparkleIcon className="h-4 w-4 text-violet-600" weight="fill" />
+ <Icon icon={SparklesIcon} className="h-4 w-4 text-violet-600" />
<Text variant="small-medium" className="text-sm text-zinc-700">
Live demo, no signup required
</Text>
@@ -42,9 +43,9 @@ export function TourHero() {
href="/tour/chat"
size="large"
rightIcon={
- <ArrowRightIcon
+ <Icon
+ icon={ArrowRight02Icon}
className="h-4 w-4 transition-transform duration-200 ease-out group-hover:translate-x-1"
- weight="bold"
/>
}
className="group w-full sm:w-auto sm:px-8"
diff --git a/autogpt_platform/frontend/src/components/ai-elements/prompt-input.tsx b/autogpt_platform/frontend/src/components/ai-elements/prompt-input.tsx
index 023db306df..8d71335a89 100644
--- a/autogpt_platform/frontend/src/components/ai-elements/prompt-input.tsx
+++ b/autogpt_platform/frontend/src/components/ai-elements/prompt-input.tsx
@@ -32,11 +32,9 @@ import {
TooltipTrigger,
} from "@/components/ui/tooltip";
import { cn } from "@/lib/utils";
-import {
- ArrowUp as ArrowUpIcon,
- Stop as StopIcon,
-} from "@phosphor-icons/react";
import { Children, useCallback, useEffect, useRef, useState } from "react";
+import { ArrowUp02Icon, StopIcon } from "@hugeicons/core-free-icons";
+import { Icon as UIIcon } from "@/components/atoms/Icon/Icon";
// ============================================================================
// PromptInput — form wrapper
@@ -295,12 +293,12 @@ export function PromptInputSubmit({
const canStop = isGenerating && Boolean(onStop);
const isDisabled = Boolean(disabled) || (isGenerating && !canStop);
- let Icon = <ArrowUpIcon className="size-4" weight="bold" />;
+ let Icon = <UIIcon icon={ArrowUp02Icon} className="size-4" />;
if (status === "submitted") {
Icon = <Spinner />;
} else if (status === "streaming") {
- Icon = <StopIcon className="size-4" weight="bold" />;
+ Icon = <UIIcon icon={StopIcon} className="size-4" />;
}
const handleClick = useCallback(
diff --git a/autogpt_platform/frontend/src/components/atoms/Button/Button.tsx b/autogpt_platform/frontend/src/components/atoms/Button/Button.tsx
index 573521be92..5e4bc953a3 100644
--- a/autogpt_platform/frontend/src/components/atoms/Button/Button.tsx
+++ b/autogpt_platform/frontend/src/components/atoms/Button/Button.tsx
@@ -4,10 +4,11 @@ import {
TooltipTrigger,
} from "@/components/atoms/Tooltip/BaseTooltip";
import { cn } from "@/lib/utils";
-import { CircleNotchIcon } from "@phosphor-icons/react/dist/ssr";
import NextLink, { type LinkProps } from "next/link";
import React from "react";
import { ButtonProps, extendedButtonVariants } from "./helpers";
+import { Loading03Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function Button(props: ButtonProps) {
const {
@@ -54,7 +55,7 @@ export function Button(props: ButtonProps) {
const buttonContent = (
<>
{loading && (
- <CircleNotchIcon className="h-4 w-4 animate-spin" weight="bold" />
+ <Icon icon={Loading03Icon} className="h-4 w-4 animate-spin" />
)}
{!loading && leftIcon}
{children}
@@ -105,7 +106,7 @@ export function Button(props: ButtonProps) {
className={loadingClassName}
aria-disabled="true"
>
- <CircleNotchIcon className="h-4 w-4 animate-spin" weight="bold" />
+ <Icon icon={Loading03Icon} className="h-4 w-4 animate-spin" />
{children}
</NextLink>
);
@@ -113,7 +114,7 @@ export function Button(props: ButtonProps) {
const loadingButton = (
<button className={loadingClassName} disabled>
- <CircleNotchIcon className="h-4 w-4 animate-spin" weight="bold" />
+ <Icon icon={Loading03Icon} className="h-4 w-4 animate-spin" />
{children}
</button>
);
diff --git a/autogpt_platform/frontend/src/components/atoms/FileInput/FileInput.tsx b/autogpt_platform/frontend/src/components/atoms/FileInput/FileInput.tsx
index 67e8b7e845..31e9397055 100644
--- a/autogpt_platform/frontend/src/components/atoms/FileInput/FileInput.tsx
+++ b/autogpt_platform/frontend/src/components/atoms/FileInput/FileInput.tsx
@@ -1,10 +1,3 @@
-import {
- FileTextIcon,
- Eye,
- TrashIcon,
- UploadIcon,
- X,
-} from "@phosphor-icons/react";
import { useRef, useState } from "react";
import { Button } from "../Button/Button";
import { formatFileSize, getFileLabel } from "./helpers";
@@ -13,6 +6,14 @@ import { parseWorkspaceURI } from "@/lib/workspace-uri";
import { Text } from "../Text/Text";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
import { globalRegistry } from "@/components/contextual/OutputRenderers";
+import {
+ Cancel01Icon,
+ Delete02Icon,
+ EyeIcon,
+ File02Icon,
+ Upload01Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
function PreviewButton({
value,
@@ -37,7 +38,7 @@ function PreviewButton({
type="button"
aria-label="Preview file"
>
- <Eye size={14} />
+ <Icon icon={EyeIcon} size={14} />
</Button>
</Dialog.Trigger>
<Dialog.Content>
@@ -339,7 +340,10 @@ export function FileInput(props: Props) {
) : value ? (
<div className="flex items-center gap-2">
<div className="flex flex-1 items-center gap-2 rounded-xlarge border border-gray-300 bg-gray-50 p-2 dark:border-gray-600 dark:bg-gray-800">
- <FileTextIcon className="h-4 w-4 flex-shrink-0 text-gray-600 dark:text-gray-400" />
+ <Icon
+ icon={File02Icon}
+ className="h-4 w-4 flex-shrink-0 text-gray-600 dark:text-gray-400"
+ />
<Text
variant="small-medium"
@@ -377,7 +381,7 @@ export function FileInput(props: Props) {
type="button"
aria-label="Clear file"
>
- <X size={14} />
+ <Icon icon={Cancel01Icon} size={14} />
</Button>
</div>
) : (
@@ -390,7 +394,7 @@ export function FileInput(props: Props) {
disabled={isUploading}
type="button"
>
- <UploadIcon className="mr-1.5 h-3.5 w-3.5" />
+ <Icon icon={Upload01Icon} className="mr-1.5 h-3.5 w-3.5" />
{`Upload ${displayName}`}
</Button>
</div>
@@ -431,7 +435,7 @@ export function FileInput(props: Props) {
<div className="flex min-h-14 items-center gap-4">
<div className="agpt-border-input flex min-h-14 w-full items-center justify-between rounded-xl bg-zinc-50 p-4 text-sm text-gray-500">
<div className="flex items-center gap-2">
- <FileTextIcon className="h-7 w-7 text-black" />
+ <Icon icon={File02Icon} className="h-7 w-7 text-black" />
<div className="flex flex-col gap-0.5">
<span className="font-normal text-black">
{fileInfo
@@ -461,7 +465,7 @@ export function FileInput(props: Props) {
aria-label="Clear file"
className="h-7 w-7 min-w-0 flex-shrink-0 border-zinc-300 p-0 text-gray-500 hover:text-red-600 dark:text-gray-400 dark:hover:text-red-500"
>
- <TrashIcon className="h-5 w-5" />
+ <Icon icon={Delete02Icon} className="h-5 w-5" />
</Button>
</div>
</div>
diff --git a/autogpt_platform/frontend/src/components/atoms/Icon/Icon.tsx b/autogpt_platform/frontend/src/components/atoms/Icon/Icon.tsx
new file mode 100644
index 0000000000..2c138bcea3
--- /dev/null
+++ b/autogpt_platform/frontend/src/components/atoms/Icon/Icon.tsx
@@ -0,0 +1,30 @@
+"use client";
+
+import { HugeiconsIcon, type IconSvgElement } from "@hugeicons/react";
+import type { ComponentPropsWithoutRef } from "react";
+
+export const ICON_STROKE_WIDTH = 2;
+
+type IconProps = Omit<ComponentPropsWithoutRef<typeof HugeiconsIcon>, "icon">;
+
+interface Props extends IconProps {
+ icon: IconSvgElement;
+}
+
+export function Icon({
+ size = "1em",
+ strokeWidth = ICON_STROKE_WIDTH,
+ ...props
+}: Props) {
+ return <HugeiconsIcon size={size} strokeWidth={strokeWidth} {...props} />;
+}
+
+/**
+ * Wraps icon data in a component, for maps that also hold icons from other
+ * libraries (react-icons, radix) and therefore need a uniform component type.
+ */
+export function createIconComponent(icon: IconSvgElement) {
+ return function IconComponent(props: IconProps) {
+ return <Icon icon={icon} {...props} />;
+ };
+}
diff --git a/autogpt_platform/frontend/src/components/atoms/Input/Input.tsx b/autogpt_platform/frontend/src/components/atoms/Input/Input.tsx
index 8f1f98c5aa..81607ad184 100644
--- a/autogpt_platform/frontend/src/components/atoms/Input/Input.tsx
+++ b/autogpt_platform/frontend/src/components/atoms/Input/Input.tsx
@@ -3,13 +3,14 @@ import {
type InputProps,
} from "@/components/__legacy__/ui/input";
import { cn } from "@/lib/utils";
-import { Eye, EyeSlash } from "@phosphor-icons/react";
import { forwardRef, ReactNode, useState } from "react";
import CurrencyInput from "react-currency-input-field";
import { Text } from "../Text/Text";
import type { Variant } from "../Text/helpers";
import { InformationTooltip } from "@/components/molecules/InformationTooltip/InformationTooltip";
import { useInput } from "./useInput";
+import { EyeIcon, EyeOffIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type InputElement = HTMLInputElement | HTMLTextAreaElement;
@@ -214,7 +215,11 @@ export const Input = forwardRef<InputElement, TextFieldProps>(function Input(
className="absolute right-4 top-1/2 -translate-y-1/2 text-zinc-400 transition-colors hover:text-zinc-600"
aria-label="Press and hold to show password"
>
- {showPassword ? <Eye size={16} /> : <EyeSlash size={16} />}
+ {showPassword ? (
+ <Icon icon={EyeIcon} size={16} />
+ ) : (
+ <Icon icon={EyeOffIcon} size={16} />
+ )}
</button>
)}
</div>
diff --git a/autogpt_platform/frontend/src/components/atoms/LoadingSpinner/LoadingSpinner.stories.tsx b/autogpt_platform/frontend/src/components/atoms/LoadingSpinner/LoadingSpinner.stories.tsx
index 141ffdd428..91c8170ece 100644
--- a/autogpt_platform/frontend/src/components/atoms/LoadingSpinner/LoadingSpinner.stories.tsx
+++ b/autogpt_platform/frontend/src/components/atoms/LoadingSpinner/LoadingSpinner.stories.tsx
@@ -10,7 +10,7 @@ const meta: Meta<typeof LoadingSpinner> = {
docs: {
description: {
component:
- "Animated loading indicator using the Phosphor CircleNotch icon. Provide a `size` prop or custom classes to fit different contexts.",
+ "Animated loading indicator using the Hugeicons Loading03 icon. Provide a `size` prop or custom classes to fit different contexts.",
},
},
},
diff --git a/autogpt_platform/frontend/src/components/atoms/LoadingSpinner/LoadingSpinner.tsx b/autogpt_platform/frontend/src/components/atoms/LoadingSpinner/LoadingSpinner.tsx
index 9d7c6a270c..e2d8387fde 100644
--- a/autogpt_platform/frontend/src/components/atoms/LoadingSpinner/LoadingSpinner.tsx
+++ b/autogpt_platform/frontend/src/components/atoms/LoadingSpinner/LoadingSpinner.tsx
@@ -1,6 +1,7 @@
import { cn } from "@/lib/utils";
-import { CircleNotchIcon } from "@phosphor-icons/react/dist/ssr";
import React from "react";
+import { Loading03Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
const sizeClassNameMap = {
small: "h-4 w-4",
@@ -14,19 +15,19 @@ type LoadingSpinnerProps = {
size?: SpinnerSize;
className?: string;
cover?: boolean;
-} & React.ComponentPropsWithoutRef<typeof CircleNotchIcon>;
+} & Omit<React.ComponentPropsWithoutRef<typeof Icon>, "icon" | "size">;
export function LoadingSpinner(props: LoadingSpinnerProps) {
const { size = "medium", className, cover = false, ...restProps } = props;
const spinner = (
- <CircleNotchIcon
+ <Icon
+ icon={Loading03Icon}
className={cn(
"animate-spin text-inherit",
sizeClassNameMap[size],
className,
)}
- weight="bold"
{...restProps}
/>
);
diff --git a/autogpt_platform/frontend/src/components/auth/MobileWarningBanner.tsx b/autogpt_platform/frontend/src/components/auth/MobileWarningBanner.tsx
index 1395506e7f..73d47d665c 100644
--- a/autogpt_platform/frontend/src/components/auth/MobileWarningBanner.tsx
+++ b/autogpt_platform/frontend/src/components/auth/MobileWarningBanner.tsx
@@ -1,8 +1,9 @@
"use client";
import { useBreakpoint } from "@/lib/hooks/useBreakpoint";
-import { DeviceMobile } from "@phosphor-icons/react";
import { Text } from "../atoms/Text/Text";
+import { SmartPhone01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function MobileWarningBanner() {
const breakpoint = useBreakpoint();
@@ -15,7 +16,10 @@ export function MobileWarningBanner() {
return (
<div className="mx-auto mt-6 w-full max-w-[32rem] rounded-lg border border-amber-200 bg-amber-50 p-4">
<div className="flex items-start gap-3">
- <DeviceMobile className="mt-0.5 h-5 w-5 flex-shrink-0 text-amber-600" />
+ <Icon
+ icon={SmartPhone01Icon}
+ className="mt-0.5 h-5 w-5 flex-shrink-0 text-amber-600"
+ />
<div className="flex flex-col gap-1">
<Text variant="body-medium" className="text-amber-900">
Heads up: AutoGPT works best on desktop
diff --git a/autogpt_platform/frontend/src/components/contextual/CredentialsInput/components/CredentialRow/CredentialRow.tsx b/autogpt_platform/frontend/src/components/contextual/CredentialsInput/components/CredentialRow/CredentialRow.tsx
index fbf3e4c10c..a4d83abd90 100644
--- a/autogpt_platform/frontend/src/components/contextual/CredentialsInput/components/CredentialRow/CredentialRow.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/CredentialsInput/components/CredentialRow/CredentialRow.tsx
@@ -6,7 +6,6 @@ import {
DropdownMenuTrigger,
} from "@/components/molecules/DropdownMenu/DropdownMenu";
import { cn } from "@/lib/utils";
-import { CaretDownIcon, DotsThreeVertical } from "@phosphor-icons/react";
import { useEffect, useRef, useState } from "react";
import { CredentialsType } from "@/lib/autogpt-server-api/types";
import {
@@ -17,6 +16,8 @@ import {
MASKED_KEY_LENGTH,
providerIcons,
} from "../../helpers";
+import { ArrowDown01Icon, MoreVerticalIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type CredentialRowProps = {
credential: {
@@ -140,7 +141,10 @@ export function CredentialRow({
)}
</div>
{(showCaret || (asSelectTrigger && !readOnly)) && (
- <CaretDownIcon className="h-4 w-4 shrink-0 text-gray-400" />
+ <Icon
+ icon={ArrowDown01Icon}
+ className="h-4 w-4 shrink-0 text-gray-400"
+ />
)}
{!readOnly && !showCaret && !asSelectTrigger && onDelete && (
<DropdownMenu>
@@ -149,7 +153,7 @@ export function CredentialRow({
className="ml-auto shrink-0 rounded p-1 hover:bg-gray-100"
onClick={(e) => e.stopPropagation()}
>
- <DotsThreeVertical className="h-5 w-5 text-gray-400" />
+ <Icon icon={MoreVerticalIcon} className="h-5 w-5 text-gray-400" />
</button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
diff --git a/autogpt_platform/frontend/src/components/contextual/CredentialsInput/components/CredentialsGroupedView/CredentialsGroupedView.tsx b/autogpt_platform/frontend/src/components/contextual/CredentialsInput/components/CredentialsGroupedView/CredentialsGroupedView.tsx
index 22d0a318a9..4d570ad788 100644
--- a/autogpt_platform/frontend/src/components/contextual/CredentialsInput/components/CredentialsGroupedView/CredentialsGroupedView.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/CredentialsInput/components/CredentialsGroupedView/CredentialsGroupedView.tsx
@@ -10,7 +10,6 @@ import {
CredentialsType,
} from "@/lib/autogpt-server-api/types";
import { CredentialsProvidersContext } from "@/providers/agent-credentials/credentials-provider";
-import { SlidersHorizontalIcon } from "@phosphor-icons/react";
import { useContext, useEffect, useMemo, useRef } from "react";
import {
areSystemCredentialProvidersLoading,
@@ -19,6 +18,8 @@ import {
hasMissingRequiredSystemCredentials,
splitCredentialFieldsBySystem,
} from "./helpers";
+import { SlidersHorizontalIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type Props = {
credentialFields: CredentialField[];
@@ -147,7 +148,7 @@ export function CredentialsGroupedView({
<AccordionItem value="system-credentials" className="border-none">
<AccordionTrigger className="py-2 text-sm text-muted-foreground hover:no-underline">
<div className="flex items-center gap-1">
- <SlidersHorizontalIcon size={16} weight="bold" /> System
+ <Icon icon={SlidersHorizontalIcon} size={16} /> System
credentials
{hasMissingSystemCredentials && (
<span className="text-destructive">(missing)</span>
diff --git a/autogpt_platform/frontend/src/components/contextual/CredentialsInput/components/HotScopedCredentialsModal/HotScopedCredentialsModal.tsx b/autogpt_platform/frontend/src/components/contextual/CredentialsInput/components/HotScopedCredentialsModal/HotScopedCredentialsModal.tsx
index b1339220e5..feac3c10b5 100644
--- a/autogpt_platform/frontend/src/components/contextual/CredentialsInput/components/HotScopedCredentialsModal/HotScopedCredentialsModal.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/CredentialsInput/components/HotScopedCredentialsModal/HotScopedCredentialsModal.tsx
@@ -18,7 +18,6 @@ import {
} from "@/lib/autogpt-server-api/types";
import { CredentialsProvidersContext } from "@/providers/agent-credentials/credentials-provider";
import { getHostFromUrl } from "@/lib/utils/url";
-import { PlusIcon, TrashIcon } from "@phosphor-icons/react";
import { toast } from "@/components/molecules/Toast/use-toast";
import {
addHeaderPairToList,
@@ -29,6 +28,8 @@ import {
updateHeaderPairInList,
type HeaderPair,
} from "../../helpers";
+import { Delete02Icon, PlusSignIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type Props = {
schema: BlockIOCredentialsSubSchema;
@@ -265,7 +266,7 @@ export function HostScopedCredentialsModal({
onClick={() => removeHeaderPair(index)}
disabled={headerPairs.length === 1}
>
- <TrashIcon className="size-4" /> Remove
+ <Icon icon={Delete02Icon} className="size-4" /> Remove
</Button>
</div>
))}
@@ -276,7 +277,8 @@ export function HostScopedCredentialsModal({
size="small"
onClick={addHeaderPair}
>
- <PlusIcon className="size-4" /> Add Another Header
+ <Icon icon={PlusSignIcon} className="size-4" /> Add Another
+ Header
</Button>
</div>
diff --git a/autogpt_platform/frontend/src/components/contextual/CredentialsInput/helpers.ts b/autogpt_platform/frontend/src/components/contextual/CredentialsInput/helpers.ts
index 9950d0803f..9542be4166 100644
--- a/autogpt_platform/frontend/src/components/contextual/CredentialsInput/helpers.ts
+++ b/autogpt_platform/frontend/src/components/contextual/CredentialsInput/helpers.ts
@@ -1,4 +1,3 @@
-import { GlobeSimple, KeyIcon, Lock, Password } from "@phosphor-icons/react";
import { NotionLogoIcon } from "@radix-ui/react-icons";
import {
FaDiscord,
@@ -9,8 +8,18 @@ import {
FaTwitter,
} from "react-icons/fa";
import { CredentialsType } from "@/lib/autogpt-server-api/types";
-
-export const fallbackIcon = KeyIcon;
+import {
+ Globe02Icon,
+ Key01Icon,
+ LockIcon,
+ LockPasswordIcon,
+} from "@hugeicons/core-free-icons";
+import { createIconComponent } from "@/components/atoms/Icon/Icon";
+
+export const fallbackIcon = createIconComponent(Key01Icon);
+const globeIcon = createIconComponent(Globe02Icon);
+const lockIcon = createIconComponent(LockIcon);
+const lockPasswordIcon = createIconComponent(LockPasswordIcon);
export const providerIcons: Partial<
Record<string, React.FC<{ className?: string }>>
@@ -116,14 +125,11 @@ export function getCredentialTypeIcon(
provider?: string,
): CredentialIcon {
if (type === "oauth2" && provider) {
- const icon = providerIcons[provider];
- if (icon) return icon as CredentialIcon;
- return GlobeSimple as CredentialIcon;
+ return providerIcons[provider] ?? globeIcon;
}
- if (type === "api_key") return KeyIcon as CredentialIcon;
- if (type === "user_password") return Password as CredentialIcon;
- if (type === "host_scoped") return Lock as CredentialIcon;
- return KeyIcon as CredentialIcon;
+ if (type === "user_password") return lockPasswordIcon;
+ if (type === "host_scoped") return lockIcon;
+ return fallbackIcon;
}
export function getActionButtonText(
diff --git a/autogpt_platform/frontend/src/components/contextual/EditAgentModal/components/EditAgentForm.tsx b/autogpt_platform/frontend/src/components/contextual/EditAgentModal/components/EditAgentForm.tsx
index 9a66d297e6..2c18046077 100644
--- a/autogpt_platform/frontend/src/components/contextual/EditAgentModal/components/EditAgentForm.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/EditAgentModal/components/EditAgentForm.tsx
@@ -1,15 +1,6 @@
"use client";
import * as React from "react";
-import {
- CheckCircleIcon,
- ImagesIcon,
- InfoIcon,
- SparkleIcon,
- StorefrontIcon,
- WarningCircleIcon,
-} from "@phosphor-icons/react";
-
import { StoreSubmission } from "@/app/api/__generated__/models/storeSubmission";
import { StoreSubmissionEditRequest } from "@/app/api/__generated__/models/storeSubmissionEditRequest";
import { Form, FormField } from "@/components/__legacy__/ui/form";
@@ -28,6 +19,15 @@ import { CharCountedTextarea } from "../../PublishAgentModal/components/AgentInf
import { ThumbnailImages } from "../../PublishAgentModal/components/AgentInfoStep/components/ThumbnailImages";
import { useEditAgentForm } from "./useEditAgentForm";
+import {
+ Album01Icon,
+ AlertCircleIcon,
+ CheckmarkCircle02Icon,
+ InformationCircleIcon,
+ SparklesIcon,
+ Store01Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
const DESCRIPTION_MAX = 1000;
const CHANGES_SUMMARY_MAX = 500;
@@ -93,7 +93,7 @@ export function EditAgentForm({
<section className="rounded-[18px] border border-amber-200 bg-amber-50 p-4">
<div className="mb-4 flex items-start gap-3">
<div className="flex size-9 shrink-0 items-center justify-center rounded-full bg-white text-amber-700 shadow-[0_1px_2px_rgba(15,15,20,0.04)]">
- <InfoIcon size={18} weight="duotone" />
+ <Icon icon={InformationCircleIcon} size={18} />
</div>
<div className="flex min-w-0 flex-col gap-1">
<Text variant="body-medium" as="h3" className="text-amber-950">
@@ -141,22 +141,22 @@ export function EditAgentForm({
<AccordionItem value="basics" className="border-0 px-4">
<AccordionTrigger className="hover:no-underline">
<span className="flex items-center gap-2 text-sm font-medium text-textBlack">
- <StorefrontIcon
+ <Icon
+ icon={Store01Icon}
size={18}
- weight="duotone"
className="text-zinc-500"
/>
Listing basics
{basicsHasError ? (
- <WarningCircleIcon
+ <Icon
+ icon={AlertCircleIcon}
size={16}
- weight="fill"
className="text-rose-500"
/>
) : basicsComplete ? (
- <CheckCircleIcon
+ <Icon
+ icon={CheckmarkCircle02Icon}
size={16}
- weight="fill"
className="text-purple-500"
/>
) : null}
@@ -222,22 +222,22 @@ export function EditAgentForm({
<AccordionItem value="thumbnails" className="border-0 px-4">
<AccordionTrigger className="hover:no-underline">
<span className="flex items-center gap-2 text-sm font-medium text-textBlack">
- <ImagesIcon
+ <Icon
+ icon={Album01Icon}
size={18}
- weight="duotone"
className="text-zinc-500"
/>
Thumbnails
{thumbnailsHasError ? (
- <WarningCircleIcon
+ <Icon
+ icon={AlertCircleIcon}
size={16}
- weight="fill"
className="text-rose-500"
/>
) : thumbnailsComplete ? (
- <CheckCircleIcon
+ <Icon
+ icon={CheckmarkCircle02Icon}
size={16}
- weight="fill"
className="text-purple-500"
/>
) : null}
@@ -259,22 +259,22 @@ export function EditAgentForm({
<AccordionItem value="experience" className="border-0 px-4">
<AccordionTrigger className="hover:no-underline">
<span className="flex items-center gap-2 text-sm font-medium text-textBlack">
- <SparkleIcon
+ <Icon
+ icon={SparklesIcon}
size={18}
- weight="duotone"
className="text-zinc-500"
/>
Experience details
{experienceHasError ? (
- <WarningCircleIcon
+ <Icon
+ icon={AlertCircleIcon}
size={16}
- weight="fill"
className="text-rose-500"
/>
) : experienceComplete ? (
- <CheckCircleIcon
+ <Icon
+ icon={CheckmarkCircle02Icon}
size={16}
- weight="fill"
className="text-purple-500"
/>
) : null}
diff --git a/autogpt_platform/frontend/src/components/contextual/GoogleDrivePicker/GoogleDrivePicker.tsx b/autogpt_platform/frontend/src/components/contextual/GoogleDrivePicker/GoogleDrivePicker.tsx
index b05bab8a9a..633e0f083d 100644
--- a/autogpt_platform/frontend/src/components/contextual/GoogleDrivePicker/GoogleDrivePicker.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/GoogleDrivePicker/GoogleDrivePicker.tsx
@@ -2,11 +2,12 @@
import { Button } from "@/components/atoms/Button/Button";
import { CredentialsInput } from "@/components/contextual/CredentialsInput/CredentialsInput";
-import { CircleNotchIcon, FolderOpenIcon } from "@phosphor-icons/react";
import {
Props as BaseProps,
useGoogleDrivePicker,
} from "./useGoogleDrivePicker";
+import { FolderOpenIcon, Loading03Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export type Props = BaseProps;
@@ -22,7 +23,7 @@ export function GoogleDrivePicker(props: Props) {
} = useGoogleDrivePicker(props);
if (!credentials || credentials.isLoading) {
- return <CircleNotchIcon className="size-6 animate-spin" />;
+ return <Icon icon={Loading03Icon} className="size-6 animate-spin" />;
}
if (!hasGoogleOAuth) {
@@ -53,7 +54,7 @@ export function GoogleDrivePicker(props: Props) {
onClick={handleOpenPicker}
disabled={props.disabled || isLoading || isAuthInProgress}
>
- <FolderOpenIcon className="size-4" />
+ <Icon icon={FolderOpenIcon} className="size-4" />
{props.buttonText || "Choose file(s) from Google Drive"}
</Button>
</div>
diff --git a/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/ConnectServiceDialog/components/DetailView/DetailView.tsx b/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/ConnectServiceDialog/components/DetailView/DetailView.tsx
index f5abf22b4c..e3c98d220c 100644
--- a/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/ConnectServiceDialog/components/DetailView/DetailView.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/ConnectServiceDialog/components/DetailView/DetailView.tsx
@@ -1,6 +1,4 @@
"use client";
-
-import { ArrowLeftIcon } from "@phosphor-icons/react";
import { motion, useReducedMotion } from "framer-motion";
import { Button } from "@/components/atoms/Button/Button";
@@ -17,6 +15,8 @@ import { McpConnectPanel } from "./McpConnectPanel";
import { MethodPanel, TAB_LABEL } from "./MethodPanel";
import { ProviderAvatar } from "./ProviderAvatar";
import { UnsupportedNotice } from "./UnsupportedNotice";
+import { ArrowLeft02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
const MCP_PROVIDER_ID = "mcp";
@@ -62,7 +62,7 @@ export function DetailView({ provider, onBack, onSuccess }: Props) {
className="size-9"
withTooltip={false}
>
- <ArrowLeftIcon size={18} />
+ <Icon icon={ArrowLeft02Icon} size={18} />
</Button>
<ProviderAvatar id={provider.id} name={provider.name} />
<div className="flex min-w-0 flex-col gap-1">
diff --git a/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/ConnectServiceDialog/components/DetailView/OAuthConnectButton.tsx b/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/ConnectServiceDialog/components/DetailView/OAuthConnectButton.tsx
index 946547ac34..1e73a87d19 100644
--- a/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/ConnectServiceDialog/components/DetailView/OAuthConnectButton.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/ConnectServiceDialog/components/DetailView/OAuthConnectButton.tsx
@@ -1,11 +1,10 @@
"use client";
-
-import { ArrowSquareOutIcon } from "@phosphor-icons/react";
-
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
import { useOAuthConnect } from "./useOAuthConnect";
+import { LinkSquare01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
provider: string;
@@ -32,7 +31,7 @@ export function OAuthConnectButton({
size="large"
onClick={connect}
loading={isPending}
- rightIcon={<ArrowSquareOutIcon size={18} />}
+ rightIcon={<Icon icon={LinkSquare01Icon} size={18} />}
>
Continue with {providerName}
</Button>
diff --git a/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/ConnectServiceDialog/components/DetailView/UnsupportedNotice.tsx b/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/ConnectServiceDialog/components/DetailView/UnsupportedNotice.tsx
index 12af9cfab9..a6b0a1fbb0 100644
--- a/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/ConnectServiceDialog/components/DetailView/UnsupportedNotice.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/ConnectServiceDialog/components/DetailView/UnsupportedNotice.tsx
@@ -1,8 +1,7 @@
"use client";
-
-import { PlugIcon } from "@phosphor-icons/react";
-
import { Text } from "@/components/atoms/Text/Text";
+import { Plug01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
providerName: string;
@@ -12,7 +11,7 @@ interface Props {
export function UnsupportedNotice({ providerName, detail }: Props) {
return (
<div className="flex flex-col items-center gap-3 rounded-2xl border border-dashed border-[#DADADC] px-6 py-10 text-center">
- <PlugIcon size={28} className="text-[#83838C]" />
+ <Icon icon={Plug01Icon} size={28} className="text-[#83838C]" />
<Text variant="body" className="text-[#1F1F20]">
No connection method available
</Text>
diff --git a/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/ConnectServiceDialog/components/ListView.tsx b/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/ConnectServiceDialog/components/ListView.tsx
index f28e28bc7f..4aa4ce442b 100644
--- a/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/ConnectServiceDialog/components/ListView.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/ConnectServiceDialog/components/ListView.tsx
@@ -1,13 +1,12 @@
"use client";
-
-import { MagnifyingGlassIcon, PlugIcon } from "@phosphor-icons/react";
-
import { Text } from "@/components/atoms/Text/Text";
import { Skeleton } from "@/components/atoms/Skeleton/Skeleton";
import { ScrollArea } from "@/components/ui/scroll-area";
import type { ConnectableProvider } from "../helpers";
import { ProviderRow } from "./ProviderRow";
+import { Plug01Icon, Search01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
query: string;
@@ -24,7 +23,8 @@ export function ListView({ query, setQuery, providers, onSelect }: Props) {
</Text>
<div className="relative w-full">
- <MagnifyingGlassIcon
+ <Icon
+ icon={Search01Icon}
size={20}
className="pointer-events-none absolute left-4 top-1/2 -translate-y-1/2 text-[#83838C]"
/>
@@ -40,7 +40,7 @@ export function ListView({ query, setQuery, providers, onSelect }: Props) {
{providers.length === 0 ? (
<div className="flex flex-col items-center justify-center gap-2 rounded-2xl border border-dashed border-[#DADADC] py-10 text-center">
- <PlugIcon size={24} className="text-[#83838C]" />
+ <Icon icon={Plug01Icon} size={24} className="text-[#83838C]" />
<Text variant="body" className="text-[#505057]">
{query.trim()
? `No services match "${query.trim()}"`
diff --git a/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/ConnectServiceDialog/components/ProviderRow.tsx b/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/ConnectServiceDialog/components/ProviderRow.tsx
index d6c81ec183..99fa1de3e0 100644
--- a/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/ConnectServiceDialog/components/ProviderRow.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/ConnectServiceDialog/components/ProviderRow.tsx
@@ -2,9 +2,9 @@
import Image from "next/image";
import { useState } from "react";
-import { PlusIcon } from "@phosphor-icons/react";
-
import type { ConnectableProvider } from "../helpers";
+import { PlusSignIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
provider: ConnectableProvider;
@@ -52,7 +52,7 @@ export function ProviderRow({ provider, onSelect }: Props) {
aria-hidden
className="flex size-7 shrink-0 items-center justify-center rounded-lg bg-zinc-700 text-white transition-transform group-hover:bg-zinc-800 group-active:scale-[0.96]"
>
- <PlusIcon size={18} weight="bold" />
+ <Icon icon={PlusSignIcon} size={18} />
</span>
</button>
);
diff --git a/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/CredentialRow/CredentialRow.tsx b/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/CredentialRow/CredentialRow.tsx
index f5df31d2f4..3570d55c2e 100644
--- a/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/CredentialRow/CredentialRow.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/CredentialRow/CredentialRow.tsx
@@ -1,12 +1,4 @@
"use client";
-
-import {
- CheckSquareIcon,
- SpinnerIcon,
- SquareIcon,
- TrashIcon,
-} from "@phosphor-icons/react";
-
import {
Tooltip,
TooltipContent,
@@ -19,6 +11,13 @@ import {
typeBadgeLabel,
type CredentialView,
} from "../../helpers";
+import {
+ CheckmarkSquare02Icon,
+ Delete02Icon,
+ Loading03Icon,
+ SquareIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
credential: CredentialView;
@@ -57,9 +56,9 @@ export function CredentialRow({
}`}
>
{selected ? (
- <CheckSquareIcon size={20} weight="fill" />
+ <Icon icon={CheckmarkSquare02Icon} size={20} />
) : (
- <SquareIcon size={20} />
+ <Icon icon={SquareIcon} size={20} />
)}
</button>
)}
@@ -107,9 +106,9 @@ export function CredentialRow({
className="inline-flex size-5 items-center justify-center text-[#1F1F20] transition-colors hover:text-red-500 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-purple-400 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:text-[#1F1F20]"
>
{isDeleting ? (
- <SpinnerIcon size={20} className="animate-spin" />
+ <Icon icon={Loading03Icon} size={20} className="animate-spin" />
) : (
- <TrashIcon size={20} />
+ <Icon icon={Delete02Icon} size={20} />
)}
</button>
)}
diff --git a/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/IntegrationsHeader/IntegrationsHeader.tsx b/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/IntegrationsHeader/IntegrationsHeader.tsx
index dfbac932b6..85ce1abf5e 100644
--- a/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/IntegrationsHeader/IntegrationsHeader.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/IntegrationsHeader/IntegrationsHeader.tsx
@@ -1,8 +1,8 @@
"use client";
-
-import { PlusIcon } from "@phosphor-icons/react";
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
+import { PlusSignIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
onConnect: () => void;
@@ -28,7 +28,7 @@ export function IntegrationsHeader({ onConnect, withTitle = true }: Props) {
<Button
variant="primary"
size="small"
- leftIcon={<PlusIcon size={16} />}
+ leftIcon={<Icon icon={PlusSignIcon} size={16} />}
onClick={onConnect}
className="sm:hidden"
>
@@ -37,7 +37,7 @@ export function IntegrationsHeader({ onConnect, withTitle = true }: Props) {
<Button
variant="primary"
size="large"
- leftIcon={<PlusIcon size={20} />}
+ leftIcon={<Icon icon={PlusSignIcon} size={20} />}
onClick={onConnect}
className="hidden sm:inline-flex"
>
diff --git a/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/IntegrationsSearch/IntegrationsSearch.tsx b/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/IntegrationsSearch/IntegrationsSearch.tsx
index aa415a81f4..efe8fbf8d3 100644
--- a/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/IntegrationsSearch/IntegrationsSearch.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/IntegrationsSearch/IntegrationsSearch.tsx
@@ -1,6 +1,7 @@
"use client";
-import { MagnifyingGlassIcon } from "@phosphor-icons/react";
+import { Search01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
value: string;
@@ -11,7 +12,8 @@ interface Props {
export function IntegrationsSearch({ value, onChange, disabled }: Props) {
return (
<div className="relative w-full">
- <MagnifyingGlassIcon
+ <Icon
+ icon={Search01Icon}
size={20}
className="pointer-events-none absolute left-4 top-1/2 -translate-y-1/2 text-[#83838C]"
/>
diff --git a/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/IntegrationsSelectionBar/IntegrationsSelectionBar.tsx b/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/IntegrationsSelectionBar/IntegrationsSelectionBar.tsx
index 41960a1c40..fb62435377 100644
--- a/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/IntegrationsSelectionBar/IntegrationsSelectionBar.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/IntegrationsPanel/components/IntegrationsSelectionBar/IntegrationsSelectionBar.tsx
@@ -1,8 +1,8 @@
"use client";
-
-import { TrashIcon } from "@phosphor-icons/react";
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
+import { Delete02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
selectedCount: number;
@@ -51,7 +51,7 @@ export function IntegrationsSelectionBar({
<Button
variant="destructive"
size="small"
- leftIcon={<TrashIcon size={16} />}
+ leftIcon={<Icon icon={Delete02Icon} size={16} />}
onClick={onDeleteSelected}
loading={isDeleting}
disabled={isDeleting}
diff --git a/autogpt_platform/frontend/src/components/contextual/OutputRenderers/components/OutputActions.tsx b/autogpt_platform/frontend/src/components/contextual/OutputRenderers/components/OutputActions.tsx
index cfe69e8709..2bc50f5306 100644
--- a/autogpt_platform/frontend/src/components/contextual/OutputRenderers/components/OutputActions.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/OutputRenderers/components/OutputActions.tsx
@@ -1,11 +1,16 @@
"use client";
import React, { useState } from "react";
-import { CheckIcon, CopyIcon, DownloadIcon } from "@phosphor-icons/react";
import { Button } from "@/components/atoms/Button/Button";
import { OutputRenderer, OutputMetadata } from "../types";
import { downloadOutputs } from "../utils/download";
import { cn } from "@/lib/utils";
+import {
+ Copy01Icon,
+ Download04Icon,
+ Tick02Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface OutputActionsProps {
items: Array<{
@@ -74,9 +79,10 @@ export function OutputActions({
className={cn(isPrimary ? "min-w-0" : "")}
>
{copied ? (
- <CheckIcon className="size-4 text-green-600" />
+ <Icon icon={Tick02Icon} className="size-4 text-green-600" />
) : (
- <CopyIcon
+ <Icon
+ icon={Copy01Icon}
className={cn(
"size-4",
isPrimary ? "text-white" : "text-neutral-500",
@@ -93,7 +99,8 @@ export function OutputActions({
aria-label="Download outputs"
className={cn(isPrimary ? "min-w-0" : "")}
>
- <DownloadIcon
+ <Icon
+ icon={Download04Icon}
className={cn(
"size-4",
isPrimary ? "text-white" : "text-neutral-500",
diff --git a/autogpt_platform/frontend/src/components/contextual/OutputRenderers/renderers/JSONRenderer.tsx b/autogpt_platform/frontend/src/components/contextual/OutputRenderers/renderers/JSONRenderer.tsx
index 668f9179c3..d325726c7e 100644
--- a/autogpt_platform/frontend/src/components/contextual/OutputRenderers/renderers/JSONRenderer.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/OutputRenderers/renderers/JSONRenderer.tsx
@@ -1,13 +1,14 @@
"use client";
import React, { useState } from "react";
-import { CaretDown, CaretRight } from "@phosphor-icons/react";
import {
OutputRenderer,
OutputMetadata,
DownloadContent,
CopyContent,
} from "../types";
+import { ArrowDown01Icon, ArrowRight01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
function canRenderJSON(value: unknown, _metadata?: OutputMetadata): boolean {
if (_metadata?.type === "json") {
@@ -134,9 +135,9 @@ function JSONViewer({ data }: { data: any }) {
className="inline-flex items-center rounded px-1 hover:bg-muted"
>
{isCollapsed ? (
- <CaretRight className="size-3" />
+ <Icon icon={ArrowRight01Icon} className="size-3" />
) : (
- <CaretDown className="size-3" />
+ <Icon icon={ArrowDown01Icon} className="size-3" />
)}
<span className="ml-1 text-muted-foreground">
Array({itemCount})
@@ -171,9 +172,9 @@ function JSONViewer({ data }: { data: any }) {
className="inline-flex items-center rounded px-1 hover:bg-muted"
>
{isCollapsed ? (
- <CaretRight className="size-3" />
+ <Icon icon={ArrowRight01Icon} className="size-3" />
) : (
- <CaretDown className="size-3" />
+ <Icon icon={ArrowDown01Icon} className="size-3" />
)}
<span className="ml-1 text-muted-foreground">Object</span>
</button>
diff --git a/autogpt_platform/frontend/src/components/contextual/OutputRenderers/renderers/LinkRenderer.tsx b/autogpt_platform/frontend/src/components/contextual/OutputRenderers/renderers/LinkRenderer.tsx
index d1009b74c1..ea6a45ca66 100644
--- a/autogpt_platform/frontend/src/components/contextual/OutputRenderers/renderers/LinkRenderer.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/OutputRenderers/renderers/LinkRenderer.tsx
@@ -1,11 +1,12 @@
import React from "react";
-import { ArrowSquareOut } from "@phosphor-icons/react";
import {
OutputRenderer,
OutputMetadata,
DownloadContent,
CopyContent,
} from "../types";
+import { LinkSquare01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
function canRenderLink(value: unknown, _metadata?: OutputMetadata): boolean {
if (typeof value !== "string") return false;
@@ -39,7 +40,7 @@ function renderLink(
className="inline-flex items-center gap-1.5 rounded-md text-sm text-blue-600 underline decoration-blue-300 underline-offset-2 transition-colors hover:text-blue-800 hover:decoration-blue-500"
>
<span className="break-all">{displayText}</span>
- <ArrowSquareOut size={14} className="flex-shrink-0" />
+ <Icon icon={LinkSquare01Icon} size={14} className="flex-shrink-0" />
</a>
);
}
diff --git a/autogpt_platform/frontend/src/components/contextual/OutputRenderers/renderers/WorkspaceFileRenderer.tsx b/autogpt_platform/frontend/src/components/contextual/OutputRenderers/renderers/WorkspaceFileRenderer.tsx
index 26fe75f54a..9dad0299a4 100644
--- a/autogpt_platform/frontend/src/components/contextual/OutputRenderers/renderers/WorkspaceFileRenderer.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/OutputRenderers/renderers/WorkspaceFileRenderer.tsx
@@ -1,4 +1,3 @@
-import { DownloadSimple, FileText } from "@phosphor-icons/react";
import { type ReactNode, useState } from "react";
import {
OutputRenderer,
@@ -8,6 +7,8 @@ import {
} from "../types";
import { parseWorkspaceURI, isWorkspaceURI } from "@/lib/workspace-uri";
import { Skeleton } from "@/components/atoms/Skeleton/Skeleton";
+import { Download04Icon, File02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
const imageMimeTypes = [
"image/jpeg",
@@ -148,7 +149,11 @@ function renderWorkspaceFile(
const label = getFileTypeLabel(mimeType);
return (
<div className="flex items-center gap-3 rounded-lg border border-gray-200 bg-gray-50 p-3 dark:border-gray-700 dark:bg-gray-800">
- <FileText size={28} className="flex-shrink-0 text-gray-500" />
+ <Icon
+ icon={File02Icon}
+ size={28}
+ className="flex-shrink-0 text-gray-500"
+ />
<div className="flex min-w-0 flex-1 flex-col">
<span className="truncate text-sm font-medium text-gray-900 dark:text-gray-100">
{metadata?.filename || label}
@@ -164,7 +169,7 @@ function renderWorkspaceFile(
download
className="flex-shrink-0 rounded-md p-1.5 text-gray-500 transition-colors hover:bg-gray-200 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-gray-300"
>
- <DownloadSimple size={18} />
+ <Icon icon={Download04Icon} size={18} />
</a>
</div>
);
diff --git a/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/AgentInfoStep/AgentInfoStep.tsx b/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/AgentInfoStep/AgentInfoStep.tsx
index 7b97862bd7..e4428e2037 100644
--- a/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/AgentInfoStep/AgentInfoStep.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/AgentInfoStep/AgentInfoStep.tsx
@@ -15,21 +15,22 @@ import { Text } from "@/components/atoms/Text/Text";
import { humanizeCronExpression } from "@/lib/cron-expression-utils";
import { cn } from "@/lib/utils";
import { InformationTooltip } from "@/components/molecules/InformationTooltip/InformationTooltip";
-import {
- CalendarDotsIcon,
- CheckCircleIcon,
- ImagesIcon,
- InfoIcon,
- SparkleIcon,
- StorefrontIcon,
- WarningCircleIcon,
-} from "@phosphor-icons/react";
import * as React from "react";
import { StepHeader } from "../StepHeader";
import { StepFooter } from "../StepFooter";
import { ThumbnailImages } from "./components/ThumbnailImages";
import { CharCountedTextarea } from "./components/CharCountedTextarea";
import { Props, useAgentInfoStep } from "./useAgentInfoStep";
+import {
+ Album01Icon,
+ AlertCircleIcon,
+ Calendar03Icon,
+ CheckmarkCircle02Icon,
+ InformationCircleIcon,
+ SparklesIcon,
+ Store01Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
const DESCRIPTION_MAX = 1000;
const INSTRUCTIONS_MAX = 2000;
@@ -135,7 +136,7 @@ export function AgentInfoStep({
<section className="rounded-[18px] border border-amber-200 bg-amber-50 p-4">
<div className="mb-4 flex items-start gap-3">
<div className="flex size-9 shrink-0 items-center justify-center rounded-full bg-white text-amber-700 shadow-[0_1px_2px_rgba(15,15,20,0.04)]">
- <InfoIcon size={18} weight="duotone" />
+ <Icon icon={InformationCircleIcon} size={18} />
</div>
<div className="flex min-w-0 flex-col gap-1">
<Text
@@ -183,22 +184,22 @@ export function AgentInfoStep({
<AccordionItem value="basics" className="border-0 px-4">
<AccordionTrigger className="hover:no-underline">
<span className="flex items-center gap-2 text-sm font-medium text-textBlack">
- <StorefrontIcon
+ <Icon
+ icon={Store01Icon}
size={18}
- weight="duotone"
className="text-zinc-500"
/>
Listing basics
{basicsHasError ? (
- <WarningCircleIcon
+ <Icon
+ icon={AlertCircleIcon}
size={16}
- weight="fill"
className="text-rose-500"
/>
) : basicsComplete ? (
- <CheckCircleIcon
+ <Icon
+ icon={CheckmarkCircle02Icon}
size={16}
- weight="fill"
className="text-purple-500"
/>
) : null}
@@ -281,22 +282,22 @@ export function AgentInfoStep({
<AccordionItem value="thumbnails" className="border-0 px-4">
<AccordionTrigger className="hover:no-underline">
<span className="flex items-center gap-2 text-sm font-medium text-textBlack">
- <ImagesIcon
+ <Icon
+ icon={Album01Icon}
size={18}
- weight="duotone"
className="text-zinc-500"
/>
Thumbnails
{thumbnailsHasError ? (
- <WarningCircleIcon
+ <Icon
+ icon={AlertCircleIcon}
size={16}
- weight="fill"
className="text-rose-500"
/>
) : thumbnailsComplete ? (
- <CheckCircleIcon
+ <Icon
+ icon={CheckmarkCircle02Icon}
size={16}
- weight="fill"
className="text-purple-500"
/>
) : null}
@@ -316,22 +317,22 @@ export function AgentInfoStep({
<AccordionItem value="experience" className="border-0 px-4">
<AccordionTrigger className="hover:no-underline">
<span className="flex items-center gap-2 text-sm font-medium text-textBlack">
- <SparkleIcon
+ <Icon
+ icon={SparklesIcon}
size={18}
- weight="duotone"
className="text-zinc-500"
/>
Experience details
{experienceHasError ? (
- <WarningCircleIcon
+ <Icon
+ icon={AlertCircleIcon}
size={16}
- weight="fill"
className="text-rose-500"
/>
) : experienceComplete ? (
- <CheckCircleIcon
+ <Icon
+ icon={CheckmarkCircle02Icon}
size={16}
- weight="fill"
className="text-purple-500"
/>
) : null}
@@ -441,9 +442,9 @@ export function AgentInfoStep({
onClick={() => setCronScheduleDialogOpen(true)}
className="flex h-[2.875rem] w-full items-center gap-2 rounded-xl border border-zinc-200 bg-white px-4 py-2.5 text-left text-sm font-normal text-black shadow-none transition-colors hover:border-zinc-300 focus:border-purple-400 focus:outline-none focus:ring-1 focus:ring-purple-400"
>
- <CalendarDotsIcon
+ <Icon
+ icon={Calendar03Icon}
size={16}
- weight="duotone"
className="shrink-0 text-zinc-500"
/>
<span
diff --git a/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/AgentInfoStep/components/ThumbnailImages.tsx b/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/AgentInfoStep/components/ThumbnailImages.tsx
index 50e444b2be..044671d595 100644
--- a/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/AgentInfoStep/components/ThumbnailImages.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/AgentInfoStep/components/ThumbnailImages.tsx
@@ -2,15 +2,16 @@
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
-import {
- CircleNotchIcon,
- MagicWandIcon,
- PlusIcon,
- XIcon,
-} from "@phosphor-icons/react";
import Image from "next/image";
import { useThumbnailImages } from "./useThumbnailImages";
import { cn } from "@/lib/utils";
+import {
+ Cancel01Icon,
+ Loading03Icon,
+ MagicWand01Icon,
+ PlusSignIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface ThumbnailImagesProps {
agentId: string | null;
@@ -87,13 +88,9 @@ export function ThumbnailImages({
className="hidden"
/>
{isUploading ? (
- <CircleNotchIcon
- size={16}
- weight="bold"
- className="animate-spin"
- />
+ <Icon icon={Loading03Icon} size={16} className="animate-spin" />
) : (
- <PlusIcon size={16} weight="bold" />
+ <Icon icon={PlusSignIcon} size={16} />
)}
<span>{isUploading ? "Uploading" : "Add image"}</span>
</label>
@@ -104,7 +101,7 @@ export function ThumbnailImages({
onClick={handleGenerateImage}
disabled={isGenerating || isUploading || images.length >= 5}
loading={isGenerating}
- leftIcon={<MagicWandIcon className="h-4 w-4" />}
+ leftIcon={<Icon icon={MagicWand01Icon} className="h-4 w-4" />}
>
{isGenerating ? "Generating" : "Generate"}
</Button>
@@ -144,7 +141,7 @@ export function ThumbnailImages({
aria-label={`Remove image ${index + 1}`}
data-testid={`thumbnail-remove-${index}`}
>
- <XIcon size={14} weight="bold" />
+ <Icon icon={Cancel01Icon} size={14} />
</button>
{index === 0 ? (
<span className="mt-1 block text-center text-[11px] font-medium text-zinc-500">
@@ -166,7 +163,7 @@ export function ThumbnailImages({
loading={isUploading}
leftIcon={
isUploading ? undefined : (
- <PlusIcon size={16} weight="bold" />
+ <Icon icon={PlusSignIcon} size={16} />
)
}
data-testid="thumbnail-add-image"
@@ -181,7 +178,7 @@ export function ThumbnailImages({
onClick={handleGenerateImage}
disabled={isGenerating || isUploading || images.length >= 5}
loading={isGenerating}
- leftIcon={<MagicWandIcon className="h-4 w-4" />}
+ leftIcon={<Icon icon={MagicWand01Icon} className="h-4 w-4" />}
>
{isGenerating
? "Generating"
diff --git a/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/AgentSelectStep/AgentSelectStep.tsx b/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/AgentSelectStep/AgentSelectStep.tsx
index 073c4d7e4c..9202336eb1 100644
--- a/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/AgentSelectStep/AgentSelectStep.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/AgentSelectStep/AgentSelectStep.tsx
@@ -1,14 +1,6 @@
"use client";
import { AnimatePresence, motion, useReducedMotion } from "framer-motion";
-import {
- CaretLeftIcon,
- CaretRightIcon,
- CheckCircleIcon,
- PlusIcon,
- WarningCircleIcon,
-} from "@phosphor-icons/react";
-
import { Text } from "../../../../atoms/Text/Text";
import { Button } from "../../../../atoms/Button/Button";
import { Select } from "../../../../atoms/Select/Select";
@@ -20,6 +12,14 @@ import { useAgentSelectStep } from "./useAgentSelectStep";
import { scrollbarStyles } from "@/components/styles/scrollbars";
import { cn } from "@/lib/utils";
import { MyAgentsSortBy } from "@/app/api/__generated__/models/myAgentsSortBy";
+import {
+ AlertCircleIcon,
+ ArrowLeft01Icon,
+ ArrowRight01Icon,
+ CheckmarkCircle02Icon,
+ PlusSignIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
onSelect: (agentId: string, agentVersion: number) => void;
@@ -82,11 +82,7 @@ export function AgentSelectStep({
currentStep="select"
/>
<div className="mt-5 flex min-h-[320px] flex-col items-center justify-center gap-4 rounded-[18px] border border-rose-100 bg-rose-50 px-6 py-8 text-center">
- <WarningCircleIcon
- size={32}
- weight="duotone"
- className="text-rose-600"
- />
+ <Icon icon={AlertCircleIcon} size={32} className="text-rose-600" />
<Text variant="large-medium" className="text-rose-900">
We could not load your agents
</Text>
@@ -122,7 +118,7 @@ export function AgentSelectStep({
{showLibraryEmpty ? (
<div className="mt-5 flex min-h-[320px] flex-col items-center justify-center gap-4 rounded-[18px] border border-dashed border-zinc-300 bg-zinc-50 px-6 py-8 text-center">
<div className="flex size-11 items-center justify-center rounded-full bg-white text-zinc-700 shadow-[0_1px_2px_rgba(15,15,20,0.06)]">
- <PlusIcon size={20} weight="bold" />
+ <Icon icon={PlusSignIcon} size={20} />
</div>
<Text variant="large-medium" className="text-textBlack">
No publishable agents yet
@@ -294,7 +290,7 @@ export function AgentSelectStep({
</div>
{isSelected ? (
<span className="flex size-6 shrink-0 items-center justify-center rounded-full bg-purple-500 text-white">
- <CheckCircleIcon size={14} weight="fill" />
+ <Icon icon={CheckmarkCircle02Icon} size={14} />
</span>
) : (
<span
@@ -381,7 +377,7 @@ function PaginationBar({
onClick={() => onChange(page - 1)}
className="flex size-9 items-center justify-center rounded-full border border-zinc-200 text-zinc-500 transition hover:border-zinc-300 hover:text-zinc-700 disabled:cursor-not-allowed disabled:opacity-40"
>
- <CaretLeftIcon size={14} weight="bold" />
+ <Icon icon={ArrowLeft01Icon} size={14} />
</button>
{pages.map((entry, idx) =>
entry === "…" ? (
@@ -424,7 +420,7 @@ function PaginationBar({
onClick={() => onChange(page + 1)}
className="flex size-9 items-center justify-center rounded-full border border-zinc-200 text-zinc-500 transition hover:border-zinc-300 hover:text-zinc-700 disabled:cursor-not-allowed disabled:opacity-40"
>
- <CaretRightIcon size={14} weight="bold" />
+ <Icon icon={ArrowRight01Icon} size={14} />
</button>
</div>
</div>
diff --git a/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/RejectionFeedback.tsx b/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/RejectionFeedback.tsx
index a25d77cd11..f2ed03f0fe 100644
--- a/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/RejectionFeedback.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/RejectionFeedback.tsx
@@ -1,8 +1,7 @@
"use client";
-
-import { WarningCircleIcon } from "@phosphor-icons/react";
-
import { Text } from "@/components/atoms/Text/Text";
+import { AlertCircleIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
comments: string;
@@ -12,7 +11,7 @@ export function RejectionFeedback({ comments }: Props) {
return (
<div className="mt-4 w-full max-w-md rounded-[14px] border border-rose-200 bg-rose-50 p-3">
<div className="mb-1 flex items-center gap-2 text-rose-700">
- <WarningCircleIcon size={16} weight="duotone" />
+ <Icon icon={AlertCircleIcon} size={16} />
<Text variant="small-medium" as="span" className="!text-current">
Review feedback
</Text>
diff --git a/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/ReviewHero.tsx b/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/ReviewHero.tsx
index 21fa5eb4f1..1dbcc986d9 100644
--- a/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/ReviewHero.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/ReviewHero.tsx
@@ -1,16 +1,16 @@
"use client";
import { motion } from "framer-motion";
-import { type Icon as PhosphorIcon } from "@phosphor-icons/react";
-
+import { Icon } from "@/components/atoms/Icon/Icon";
import { Text } from "@/components/atoms/Text/Text";
import { Confetti } from "@/components/molecules/Confetti/Confetti";
import { cn } from "@/lib/utils";
+import type { IconSvgElement } from "@hugeicons/react";
interface Hero {
title: string;
description: string;
- Icon: PhosphorIcon;
+ Icon: IconSvgElement;
pulse: string;
gradient: string;
}
@@ -28,8 +28,6 @@ export function ReviewHero({
showConfetti,
shouldReduceMotion,
}: Props) {
- const HeroIcon = hero.Icon;
-
return (
<>
{showConfetti && !shouldReduceMotion ? (
@@ -116,7 +114,7 @@ export function ReviewHero({
}
className="text-white"
>
- <HeroIcon size={36} weight="bold" />
+ <Icon icon={hero.Icon} size={36} />
</motion.span>
</motion.div>
</div>
diff --git a/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/ReviewStepFooter.tsx b/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/ReviewStepFooter.tsx
index 7789160e07..5e063bb646 100644
--- a/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/ReviewStepFooter.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/ReviewStepFooter.tsx
@@ -1,13 +1,12 @@
"use client";
-
-import {
- ArrowRightIcon,
- NotePencilIcon,
- StorefrontIcon,
-} from "@phosphor-icons/react";
-
import { Button } from "@/components/atoms/Button/Button";
import { StepFooter } from "./StepFooter";
+import {
+ ArrowRight02Icon,
+ NoteEditIcon,
+ Store01Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
onDone: () => void;
@@ -43,7 +42,7 @@ export function ReviewStepFooter({
size="small"
onClick={onEdit}
className="w-full sm:w-auto"
- leftIcon={<NotePencilIcon size={14} weight="bold" />}
+ leftIcon={<Icon icon={NoteEditIcon} size={14} />}
data-testid="edit-submission-button"
>
Edit details
@@ -66,7 +65,7 @@ export function ReviewStepFooter({
href={marketplaceUrl}
size="small"
className="w-full sm:w-auto"
- rightIcon={<StorefrontIcon size={14} weight="bold" />}
+ rightIcon={<Icon icon={Store01Icon} size={14} />}
data-testid="view-marketplace-button"
>
View on marketplace
@@ -76,7 +75,7 @@ export function ReviewStepFooter({
size="small"
onClick={onViewProgress}
className="w-full sm:w-auto"
- rightIcon={<ArrowRightIcon size={14} weight="bold" />}
+ rightIcon={<Icon icon={ArrowRight02Icon} size={14} />}
data-testid="view-progress-button"
>
Go to Creator Dashboard
diff --git a/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/ReviewStepper.tsx b/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/ReviewStepper.tsx
index 04920ebb37..b4ec1964b3 100644
--- a/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/ReviewStepper.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/ReviewStepper.tsx
@@ -1,13 +1,13 @@
import { motion } from "framer-motion";
-import {
- CheckIcon,
- ClockIcon,
- RocketLaunchIcon,
- type Icon as PhosphorIcon,
-} from "@phosphor-icons/react";
-
+import { Icon } from "@/components/atoms/Icon/Icon";
import { Text } from "@/components/atoms/Text/Text";
import { cn } from "@/lib/utils";
+import {
+ Clock01Icon,
+ Rocket01Icon,
+ Tick02Icon,
+} from "@hugeicons/core-free-icons";
+import type { IconSvgElement } from "@hugeicons/react";
type StepState = "done" | "current" | "upcoming";
@@ -16,7 +16,7 @@ interface Step {
description: string;
note?: string;
state: StepState;
- Icon: PhosphorIcon;
+ Icon: IconSvgElement;
}
const STEPS: Step[] = [
@@ -24,7 +24,7 @@ const STEPS: Step[] = [
title: "Submitted for review",
description: "Your listing is queued in the marketplace review pipeline.",
state: "done",
- Icon: CheckIcon,
+ Icon: Tick02Icon,
},
{
title: "In review",
@@ -32,14 +32,14 @@ const STEPS: Step[] = [
"Our team checks the details, media, and safety of your agent.",
note: "Typically reviewed within 2–3 days.",
state: "current",
- Icon: ClockIcon,
+ Icon: Clock01Icon,
},
{
title: "Goes live",
description:
"You'll get an email once it's approved. Rejected listings come back with feedback.",
state: "upcoming",
- Icon: RocketLaunchIcon,
+ Icon: Rocket01Icon,
},
];
@@ -67,7 +67,6 @@ export function ReviewStepper({ shouldReduceMotion }: Props) {
<ol className="flex flex-col">
{STEPS.map((step, index) => {
const isLast = index === STEPS.length - 1;
- const StepIcon = step.Icon;
return (
<li key={step.title} className="flex gap-3">
<div className="flex flex-col items-center">
@@ -77,7 +76,7 @@ export function ReviewStepper({ shouldReduceMotion }: Props) {
NODE_CLASS[step.state],
)}
>
- <StepIcon size={14} weight="bold" />
+ <Icon icon={step.Icon} size={14} />
</span>
{!isLast ? (
<span
diff --git a/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/ShareLinkButton.tsx b/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/ShareLinkButton.tsx
index 1ba611b633..d84c57e9cd 100644
--- a/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/ShareLinkButton.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/ShareLinkButton.tsx
@@ -1,10 +1,10 @@
"use client";
import { useState } from "react";
-import { CheckIcon, LinkIcon } from "@phosphor-icons/react";
-
import { Button } from "@/components/atoms/Button/Button";
import { toast } from "@/components/molecules/Toast/use-toast";
+import { Link01Icon, Tick02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
url: string;
@@ -36,9 +36,9 @@ export function ShareLinkButton({ url }: Props) {
onClick={handleCopy}
leftIcon={
copied ? (
- <CheckIcon size={14} weight="bold" />
+ <Icon icon={Tick02Icon} size={14} />
) : (
- <LinkIcon size={14} weight="bold" />
+ <Icon icon={Link01Icon} size={14} />
)
}
className="w-full sm:w-auto"
diff --git a/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/StepStrip.tsx b/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/StepStrip.tsx
index 1c95afefb1..6147ef8713 100644
--- a/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/StepStrip.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/StepStrip.tsx
@@ -1,8 +1,9 @@
import { Fragment } from "react";
import { AnimatePresence, motion, useReducedMotion } from "framer-motion";
-import { CheckIcon } from "@phosphor-icons/react";
import { Text } from "@/components/atoms/Text/Text";
import { cn } from "@/lib/utils";
+import { Tick02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type Props = {
currentStep: "select" | "info" | "review";
@@ -83,7 +84,7 @@ export function StepStrip({ currentStep }: Props) {
transition={{ duration: 0.2, ease: "easeOut" }}
className="flex items-center justify-center"
>
- <CheckIcon size={12} weight="bold" />
+ <Icon icon={Tick02Icon} size={12} />
</motion.span>
) : (
<motion.span
diff --git a/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/SubmissionSummaryCard.tsx b/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/SubmissionSummaryCard.tsx
index cf5486330f..109eb8a76d 100644
--- a/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/SubmissionSummaryCard.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/SubmissionSummaryCard.tsx
@@ -2,9 +2,9 @@
import Image from "next/image";
import { motion } from "framer-motion";
-import { ClockIcon, ImageBrokenIcon } from "@phosphor-icons/react";
-
import { Text } from "@/components/atoms/Text/Text";
+import { Clock01Icon, ImageNotFound01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
agentName: string;
@@ -39,7 +39,7 @@ export function SubmissionSummaryCard({
/>
) : (
<div className="flex h-full w-full items-center justify-center text-zinc-400">
- <ImageBrokenIcon size={20} weight="duotone" />
+ <Icon icon={ImageNotFound01Icon} size={20} />
</div>
)}
</div>
@@ -59,7 +59,7 @@ export function SubmissionSummaryCard({
</div>
{isPending ? (
<span className="inline-flex items-center gap-1.5 rounded-full bg-amber-50 px-2.5 py-1 text-[11px] font-medium text-amber-800">
- <ClockIcon size={12} weight="duotone" />
+ <Icon icon={Clock01Icon} size={12} />
In review
</span>
) : null}
diff --git a/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/useAgentReviewStep.ts b/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/useAgentReviewStep.ts
index 9891c2ee21..013e92b9a7 100644
--- a/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/useAgentReviewStep.ts
+++ b/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/useAgentReviewStep.ts
@@ -2,20 +2,19 @@
import { usePathname } from "next/navigation";
import { useReducedMotion } from "framer-motion";
-import {
- CheckIcon,
- NotePencilIcon,
- XIcon,
- type Icon as PhosphorIcon,
-} from "@phosphor-icons/react";
-
import { SubmissionStatus } from "@/app/api/__generated__/models/submissionStatus";
import { getSubmissionMeta } from "../helpers";
+import {
+ Cancel01Icon,
+ NoteEditIcon,
+ Tick02Icon,
+} from "@hugeicons/core-free-icons";
+import type { IconSvgElement } from "@hugeicons/react";
interface HeroContent {
title: string;
description: string;
- Icon: PhosphorIcon;
+ Icon: IconSvgElement;
pulse: string;
gradient: string;
}
@@ -30,7 +29,7 @@ function getHeroContent(
title: "Agent approved",
description:
"Your agent has been approved and is now live on the AutoGPT marketplace.",
- Icon: CheckIcon,
+ Icon: Tick02Icon,
pulse: "bg-emerald-400/40",
gradient: "from-emerald-400 to-emerald-600",
};
@@ -39,7 +38,7 @@ function getHeroContent(
title: "Agent needs changes",
description:
"Your submission was not approved. Review the feedback and resubmit.",
- Icon: XIcon,
+ Icon: Cancel01Icon,
pulse: "bg-rose-400/40",
gradient: "from-rose-400 to-rose-600",
};
@@ -48,7 +47,7 @@ function getHeroContent(
title: "Draft saved",
description:
"This agent isn't submitted yet. Finish the details and submit it for review.",
- Icon: NotePencilIcon,
+ Icon: NoteEditIcon,
pulse: "bg-zinc-400/40",
gradient: "from-zinc-400 to-zinc-600",
};
@@ -58,7 +57,7 @@ function getHeroContent(
description: isDashboardPage
? "We'll notify you once review is complete. Approved agents go live on the marketplace."
: "We'll notify you once review is complete. Track progress from the Creator Dashboard.",
- Icon: CheckIcon,
+ Icon: Tick02Icon,
pulse: "bg-purple-400/40",
gradient: "from-purple-400 to-purple-600",
};
diff --git a/autogpt_platform/frontend/src/components/contextual/RunAgentInputs/RunAgentInputs.tsx b/autogpt_platform/frontend/src/components/contextual/RunAgentInputs/RunAgentInputs.tsx
index bc054e42b8..74d53ac328 100644
--- a/autogpt_platform/frontend/src/components/contextual/RunAgentInputs/RunAgentInputs.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/RunAgentInputs/RunAgentInputs.tsx
@@ -19,8 +19,9 @@ import {
determineDataType,
TableRow,
} from "@/lib/autogpt-server-api/types";
-import { PlusIcon, XIcon } from "@phosphor-icons/react";
import { useRunAgentInputs } from "./useRunAgentInputs";
+import { Cancel01Icon, PlusSignIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
/**
* A generic prop structure for the TypeBasedInput.
@@ -329,7 +330,7 @@ export function RunAgentInputs({
onClick={() => removeRow(rowIndex)}
className="h-8 w-8 p-0"
>
- <XIcon className="h-4 w-4" weight="bold" />
+ <Icon icon={Cancel01Icon} className="h-4 w-4" />
</Button>
</td>
</tr>
@@ -344,7 +345,7 @@ export function RunAgentInputs({
onClick={addRow}
className="w-full"
>
- <PlusIcon className="mr-2 h-4 w-4" weight="bold" />
+ <Icon icon={PlusSignIcon} className="mr-2 h-4 w-4" />
Add Row
</Button>
</div>
diff --git a/autogpt_platform/frontend/src/components/contextual/SchedulesPanel/SchedulesPanel.tsx b/autogpt_platform/frontend/src/components/contextual/SchedulesPanel/SchedulesPanel.tsx
index 0a475d83f9..fba1f75e42 100644
--- a/autogpt_platform/frontend/src/components/contextual/SchedulesPanel/SchedulesPanel.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/SchedulesPanel/SchedulesPanel.tsx
@@ -4,12 +4,13 @@ import { Button } from "@/components/atoms/Button/Button";
import { LoadingSpinner } from "@/components/atoms/LoadingSpinner/LoadingSpinner";
import { Text } from "@/components/atoms/Text/Text";
import { ErrorCard } from "@/components/molecules/ErrorCard/ErrorCard";
-import { PlusIcon } from "@phosphor-icons/react";
import { NEW_SCHEDULED_TASK_PROMPT } from "../guidedPrompts";
import { EmptyFollowups } from "./components/EmptyFollowups/EmptyFollowups";
import { FollowupListItem } from "./components/FollowupListItem/FollowupListItem";
import { GraphScheduleListItem } from "./components/GraphScheduleListItem/GraphScheduleListItem";
import { useSchedulesPanel } from "./useSchedulesPanel";
+import { PlusSignIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
onGuidedPrompt: (prompt: string) => void;
@@ -38,7 +39,7 @@ export function SchedulesPanel({ onGuidedPrompt, withHeading = true }: Props) {
onClick={() => onGuidedPrompt(NEW_SCHEDULED_TASK_PROMPT)}
data-testid="schedule-new-button"
>
- <PlusIcon className="mr-1 h-4 w-4" />
+ <Icon icon={PlusSignIcon} className="mr-1 h-4 w-4" />
New scheduled task
</Button>
</div>
diff --git a/autogpt_platform/frontend/src/components/contextual/SchedulesPanel/components/EmptyFollowups/EmptyFollowups.tsx b/autogpt_platform/frontend/src/components/contextual/SchedulesPanel/components/EmptyFollowups/EmptyFollowups.tsx
index 40380eed50..4e90795e8a 100644
--- a/autogpt_platform/frontend/src/components/contextual/SchedulesPanel/components/EmptyFollowups/EmptyFollowups.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/SchedulesPanel/components/EmptyFollowups/EmptyFollowups.tsx
@@ -1,5 +1,6 @@
import { Text } from "@/components/atoms/Text/Text";
-import { CalendarDotsIcon } from "@phosphor-icons/react";
+import { Calendar03Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function EmptyFollowups() {
return (
@@ -8,7 +9,7 @@ export function EmptyFollowups() {
data-testid="followups-empty"
>
<div className="flex h-12 w-12 items-center justify-center rounded-full bg-yellow-50">
- <CalendarDotsIcon size={24} className="text-yellow-700" />
+ <Icon icon={Calendar03Icon} size={24} className="text-yellow-700" />
</div>
<Text variant="h4" className="text-zinc-900">
Nothing scheduled yet
diff --git a/autogpt_platform/frontend/src/components/contextual/SchedulesPanel/components/FollowupListItem/FollowupListItem.tsx b/autogpt_platform/frontend/src/components/contextual/SchedulesPanel/components/FollowupListItem/FollowupListItem.tsx
index d6e2b8fb7f..433563c060 100644
--- a/autogpt_platform/frontend/src/components/contextual/SchedulesPanel/components/FollowupListItem/FollowupListItem.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/SchedulesPanel/components/FollowupListItem/FollowupListItem.tsx
@@ -4,9 +4,14 @@ import type { CopilotTurnJobInfo } from "@/app/api/__generated__/models/copilotT
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
-import { ChatCircleTextIcon, EyeIcon, TrashIcon } from "@phosphor-icons/react";
import Link from "next/link";
import { useFollowupListItem } from "./useFollowupListItem";
+import {
+ Comment01Icon,
+ Delete02Icon,
+ EyeIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
followup: CopilotTurnJobInfo;
@@ -43,11 +48,7 @@ export function FollowupListItem({ followup }: Props) {
const detailContent = (
<>
<div className="flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-large border border-slate-50 bg-yellow-50">
- <ChatCircleTextIcon
- size={18}
- className="text-yellow-700"
- weight="bold"
- />
+ <Icon icon={Comment01Icon} size={18} className="text-yellow-700" />
</div>
<div className="flex min-w-0 flex-col gap-1">
<Text
@@ -102,7 +103,7 @@ export function FollowupListItem({ followup }: Props) {
data-testid="followup-view-button"
aria-label="View follow-up"
>
- <EyeIcon className="mr-1 h-4 w-4" />
+ <Icon icon={EyeIcon} className="mr-1 h-4 w-4" />
View
</Button>
<Button
@@ -112,7 +113,7 @@ export function FollowupListItem({ followup }: Props) {
data-testid="followup-delete-button"
aria-label="Delete follow-up"
>
- <TrashIcon className="mr-1 h-4 w-4" />
+ <Icon icon={Delete02Icon} className="mr-1 h-4 w-4" />
Delete
</Button>
</div>
diff --git a/autogpt_platform/frontend/src/components/contextual/SchedulesPanel/components/GraphScheduleListItem/GraphScheduleListItem.tsx b/autogpt_platform/frontend/src/components/contextual/SchedulesPanel/components/GraphScheduleListItem/GraphScheduleListItem.tsx
index 87432d8498..c07b96ba26 100644
--- a/autogpt_platform/frontend/src/components/contextual/SchedulesPanel/components/GraphScheduleListItem/GraphScheduleListItem.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/SchedulesPanel/components/GraphScheduleListItem/GraphScheduleListItem.tsx
@@ -4,9 +4,14 @@ import type { GraphExecutionJobInfo } from "@/app/api/__generated__/models/graph
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
-import { CalendarDotsIcon, EyeIcon, TrashIcon } from "@phosphor-icons/react";
import Link from "next/link";
import { useGraphScheduleListItem } from "./useGraphScheduleListItem";
+import {
+ Calendar03Icon,
+ Delete02Icon,
+ EyeIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
schedule: GraphExecutionJobInfo;
@@ -42,11 +47,7 @@ export function GraphScheduleListItem({ schedule }: Props) {
data-testid="schedule-open-agent"
>
<div className="flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-large border border-slate-50 bg-emerald-50">
- <CalendarDotsIcon
- size={18}
- className="text-emerald-700"
- weight="bold"
- />
+ <Icon icon={Calendar03Icon} size={18} className="text-emerald-700" />
</div>
<div className="flex min-w-0 flex-col gap-1">
<Text
@@ -86,7 +87,7 @@ export function GraphScheduleListItem({ schedule }: Props) {
data-testid="schedule-view-button"
aria-label="View schedule"
>
- <EyeIcon className="mr-1 h-4 w-4" />
+ <Icon icon={EyeIcon} className="mr-1 h-4 w-4" />
View
</Button>
<Button
@@ -96,7 +97,7 @@ export function GraphScheduleListItem({ schedule }: Props) {
data-testid="schedule-delete-button"
aria-label="Delete schedule"
>
- <TrashIcon className="mr-1 h-4 w-4" />
+ <Icon icon={Delete02Icon} className="mr-1 h-4 w-4" />
Delete
</Button>
</div>
diff --git a/autogpt_platform/frontend/src/components/contextual/SkillsPanel/SkillsPanel.tsx b/autogpt_platform/frontend/src/components/contextual/SkillsPanel/SkillsPanel.tsx
index fbc62471b9..bca7049de8 100644
--- a/autogpt_platform/frontend/src/components/contextual/SkillsPanel/SkillsPanel.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/SkillsPanel/SkillsPanel.tsx
@@ -9,12 +9,13 @@ import {
TooltipTrigger,
} from "@/components/atoms/Tooltip/BaseTooltip";
import { ErrorCard } from "@/components/molecules/ErrorCard/ErrorCard";
-import { PlusIcon } from "@phosphor-icons/react";
import { NEW_SKILL_PROMPT } from "../guidedPrompts";
import { EmptySkills } from "./components/EmptySkills/EmptySkills";
import { SkillListItem } from "./components/SkillListItem/SkillListItem";
import { UploadSkillButton } from "./components/UploadSkillButton/UploadSkillButton";
import { useSkillsPanel } from "./useSkillsPanel";
+import { PlusSignIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
onGuidedPrompt: (prompt: string) => void;
@@ -46,7 +47,7 @@ export function SkillsPanel({ onGuidedPrompt, withHeading = true }: Props) {
onClick={() => onGuidedPrompt(NEW_SKILL_PROMPT)}
data-testid="skill-new-button"
>
- <PlusIcon className="mr-1 h-4 w-4" />
+ <Icon icon={PlusSignIcon} className="mr-1 h-4 w-4" />
New skill
</Button>
</TooltipTrigger>
diff --git a/autogpt_platform/frontend/src/components/contextual/SkillsPanel/components/EmptySkills/EmptySkills.tsx b/autogpt_platform/frontend/src/components/contextual/SkillsPanel/components/EmptySkills/EmptySkills.tsx
index ddc7f3ed8b..0c6d6154d7 100644
--- a/autogpt_platform/frontend/src/components/contextual/SkillsPanel/components/EmptySkills/EmptySkills.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/SkillsPanel/components/EmptySkills/EmptySkills.tsx
@@ -1,5 +1,6 @@
import { Text } from "@/components/atoms/Text/Text";
-import { BookOpenIcon } from "@phosphor-icons/react";
+import { BookOpen01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function EmptySkills() {
return (
@@ -8,7 +9,7 @@ export function EmptySkills() {
data-testid="skills-empty"
>
<div className="flex h-12 w-12 items-center justify-center rounded-full bg-violet-50">
- <BookOpenIcon size={24} className="text-violet-700" />
+ <Icon icon={BookOpen01Icon} size={24} className="text-violet-700" />
</div>
<Text variant="h4" className="text-zinc-900">
No skills yet
diff --git a/autogpt_platform/frontend/src/components/contextual/SkillsPanel/components/SkillListItem/SkillListItem.tsx b/autogpt_platform/frontend/src/components/contextual/SkillsPanel/components/SkillListItem/SkillListItem.tsx
index 249ffa3cb5..7e9e97bc6e 100644
--- a/autogpt_platform/frontend/src/components/contextual/SkillsPanel/components/SkillListItem/SkillListItem.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/SkillsPanel/components/SkillListItem/SkillListItem.tsx
@@ -5,15 +5,16 @@ import { Badge } from "@/components/atoms/Badge/Badge";
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
-import {
- BookOpenIcon,
- DownloadSimpleIcon,
- EyeIcon,
- TrashIcon,
-} from "@phosphor-icons/react";
import { LoadingSpinner } from "@/components/atoms/LoadingSpinner/LoadingSpinner";
import { ErrorCard } from "@/components/molecules/ErrorCard/ErrorCard";
import { useSkillListItem } from "./useSkillListItem";
+import {
+ BookOpen01Icon,
+ Delete02Icon,
+ Download04Icon,
+ EyeIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
skill: CopilotSkillInfo;
@@ -47,7 +48,7 @@ export function SkillListItem({ skill, isNew = false }: Props) {
>
<div className="flex min-w-0 flex-1 items-start gap-3">
<div className="flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-large border border-slate-50 bg-violet-50">
- <BookOpenIcon size={18} className="text-violet-700" weight="bold" />
+ <Icon icon={BookOpen01Icon} size={18} className="text-violet-700" />
</div>
<div className="flex min-w-0 flex-col gap-1">
<div className="flex items-center gap-2">
@@ -91,7 +92,7 @@ export function SkillListItem({ skill, isNew = false }: Props) {
data-testid="skill-view-button"
aria-label="View skill"
>
- <EyeIcon className="h-4 w-4" />
+ <Icon icon={EyeIcon} className="h-4 w-4" />
</Button>
<Button
variant="icon"
@@ -101,7 +102,7 @@ export function SkillListItem({ skill, isNew = false }: Props) {
data-testid="skill-download-button"
aria-label="Download skill"
>
- <DownloadSimpleIcon className="h-4 w-4" />
+ <Icon icon={Download04Icon} className="h-4 w-4" />
</Button>
<Button
variant="icon"
@@ -110,7 +111,7 @@ export function SkillListItem({ skill, isNew = false }: Props) {
data-testid="skill-delete-button"
aria-label="Delete skill"
>
- <TrashIcon className="h-4 w-4" />
+ <Icon icon={Delete02Icon} className="h-4 w-4" />
</Button>
</div>
diff --git a/autogpt_platform/frontend/src/components/contextual/SkillsPanel/components/UploadSkillButton/UploadSkillButton.tsx b/autogpt_platform/frontend/src/components/contextual/SkillsPanel/components/UploadSkillButton/UploadSkillButton.tsx
index fb08dc6b52..03bde6a052 100644
--- a/autogpt_platform/frontend/src/components/contextual/SkillsPanel/components/UploadSkillButton/UploadSkillButton.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/SkillsPanel/components/UploadSkillButton/UploadSkillButton.tsx
@@ -6,8 +6,9 @@ import {
TooltipContent,
TooltipTrigger,
} from "@/components/atoms/Tooltip/BaseTooltip";
-import { UploadSimpleIcon } from "@phosphor-icons/react";
import { useUploadSkillButton } from "./useUploadSkillButton";
+import { Upload03Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
onUploaded?: (name: string) => void;
@@ -36,7 +37,7 @@ export function UploadSkillButton({ onUploaded }: Props) {
loading={isUploading}
data-testid="skill-upload-button"
>
- <UploadSimpleIcon className="mr-1 h-4 w-4" />
+ <Icon icon={Upload03Icon} className="mr-1 h-4 w-4" />
Upload skill
</Button>
</TooltipTrigger>
diff --git a/autogpt_platform/frontend/src/components/layout/AppSidebar/AppSidebar.tsx b/autogpt_platform/frontend/src/components/layout/AppSidebar/AppSidebar.tsx
index d812a8ccd8..cfdc3a1ed6 100644
--- a/autogpt_platform/frontend/src/components/layout/AppSidebar/AppSidebar.tsx
+++ b/autogpt_platform/frontend/src/components/layout/AppSidebar/AppSidebar.tsx
@@ -16,16 +16,6 @@ import {
SidebarMenuItem,
SidebarRail,
} from "@/components/ui/sidebar";
-import {
- CaretDownIcon,
- FlowArrowIcon,
- FolderIcon,
- type Icon,
- NotePencilIcon,
- SquaresFourIcon,
- StorefrontIcon,
- UsersThreeIcon,
-} from "@phosphor-icons/react";
import { Flag, useGetFlag } from "@/services/feature-flags/use-get-flag";
import { LoadingSpinner } from "@/components/atoms/LoadingSpinner/LoadingSpinner";
import { isEditableElement } from "@/lib/platform";
@@ -40,21 +30,32 @@ import { RecentChats } from "./components/RecentChats/RecentChats";
import { ShortcutHint } from "./components/ShortcutHint/ShortcutHint";
import { SidebarSearch } from "./components/SidebarSearch/SidebarSearch";
import { SidebarUserActions } from "./components/SidebarUserActions/SidebarUserActions";
+import {
+ ArrowDown01Icon,
+ FlowIcon,
+ Folder01Icon,
+ GridViewIcon,
+ NoteEditIcon,
+ Store01Icon,
+ UserGroupIcon,
+} from "@hugeicons/core-free-icons";
+import type { IconSvgElement } from "@hugeicons/react";
+import { Icon } from "@/components/atoms/Icon/Icon";
type NavLink = {
name: string;
href: string;
- icon: Icon;
+ icon: IconSvgElement;
};
const MAIN_LINKS: NavLink[] = [
- { name: "Agents", href: "/library", icon: SquaresFourIcon },
- { name: "Marketplace", href: "/marketplace", icon: StorefrontIcon },
- { name: "Build", href: "/build", icon: FlowArrowIcon },
+ { name: "Agents", href: "/library", icon: GridViewIcon },
+ { name: "Marketplace", href: "/marketplace", icon: Store01Icon },
+ { name: "Build", href: "/build", icon: FlowIcon },
];
const WORKSPACE_LINKS: NavLink[] = [
- { name: "Files", href: "/artifacts", icon: FolderIcon },
+ { name: "Files", href: "/artifacts", icon: Folder01Icon },
];
function isLinkActive(pathname: string | null, href: string) {
@@ -72,7 +73,7 @@ function NavLinkLoader() {
return (
<LoadingSpinner
size="small"
- className="ml-auto !size-4 shrink-0 text-zinc-500"
+ className="ml-auto !size-4 shrink-0 text-sidebar-foreground/90 group-data-[collapsible=icon]:!size-4.5"
/>
);
}
@@ -83,10 +84,20 @@ function NewTaskIcon() {
const { pending } = useLinkStatus();
if (pending) {
- return <LoadingSpinner size="small" className="shrink-0" />;
+ return (
+ <LoadingSpinner
+ size="small"
+ className="!size-4 shrink-0 text-sidebar-foreground/90 group-data-[collapsible=icon]:!size-4.5"
+ />
+ );
}
- return <NotePencilIcon className="size-5" />;
+ return (
+ <Icon
+ icon={NoteEditIcon}
+ className="size-4 text-sidebar-foreground/90 group-data-[collapsible=icon]:size-4.5"
+ />
+ );
}
// New Task shares the nav-item styling with the main links so it sits in the
@@ -100,7 +111,7 @@ function NewTaskItem() {
asChild
tooltip="New Task"
isActive={isLinkActive(pathname, "/copilot")}
- className="h-auto rounded-xl p-2 pl-3 font-normal data-[active=true]:!bg-zinc-100 data-[active=true]:font-normal group-data-[collapsible=icon]:!p-1.5 hover:!bg-zinc-100 [&>svg]:size-5"
+ className="h-auto rounded-xl p-2 pl-3 font-normal data-[active=true]:!bg-zinc-100 data-[active=true]:font-normal group-data-[collapsible=icon]:!p-1.5 hover:!bg-zinc-100 [&>svg]:size-4 group-data-[collapsible=icon]:[&>svg]:size-4.5"
>
<Link href="/copilot">
<NewTaskIcon />
@@ -130,10 +141,13 @@ function NavMenu({
asChild
tooltip={link.name}
isActive={isLinkActive(pathname, link.href)}
- className="h-auto rounded-xl p-2 pl-3 font-normal data-[active=true]:!bg-zinc-100 data-[active=true]:font-normal group-data-[collapsible=icon]:!p-1.5 hover:!bg-zinc-100 [&>svg]:size-5"
+ className="h-auto rounded-xl p-2 pl-3 font-normal data-[active=true]:!bg-zinc-100 data-[active=true]:font-normal group-data-[collapsible=icon]:!p-1.5 hover:!bg-zinc-100 [&>svg]:size-4 group-data-[collapsible=icon]:[&>svg]:size-4.5"
>
<Link href={link.href}>
- <link.icon className="size-5" />
+ <Icon
+ icon={link.icon}
+ className="size-4 text-sidebar-foreground/90 group-data-[collapsible=icon]:size-4.5"
+ />
<span className="truncate">{link.name}</span>
<NavLinkLoader />
</Link>
@@ -170,9 +184,9 @@ function CollapsibleNavGroup({
>
<CollapsibleTrigger>
{label}
- <CaretDownIcon
- weight="bold"
- className="ease-[cubic-bezier(0.33,1,0.68,1)] ml-auto size-4 transition-transform duration-200 group-data-[state=open]/collapsible:rotate-180 motion-reduce:transition-none"
+ <Icon
+ icon={ArrowDown01Icon}
+ className="ease-[cubic-bezier(0.33,1,0.68,1)] ml-auto size-4 text-sidebar-foreground/90 transition-transform duration-200 group-data-[collapsible=icon]:size-4.5 group-data-[state=open]/collapsible:rotate-180 motion-reduce:transition-none"
/>
</CollapsibleTrigger>
</SidebarGroupLabel>
@@ -208,10 +222,7 @@ export function AppSidebar(props: Props) {
? MAIN_LINKS.filter((link) => link.href !== "/library")
: MAIN_LINKS;
const workspaceLinks = isHireExpertsEnabled
- ? [
- { name: "Team", href: "/team", icon: UsersThreeIcon },
- ...WORKSPACE_LINKS,
- ]
+ ? [{ name: "Team", href: "/team", icon: UserGroupIcon }, ...WORKSPACE_LINKS]
: WORKSPACE_LINKS;
// New Task shortcut: Cmd/Ctrl+Shift+O opens a fresh chat on /copilot.
diff --git a/autogpt_platform/frontend/src/components/layout/AppSidebar/components/AppSidebarHeader/AppSidebarHeader.tsx b/autogpt_platform/frontend/src/components/layout/AppSidebar/components/AppSidebarHeader/AppSidebarHeader.tsx
index 2894c76eeb..a09eb34284 100644
--- a/autogpt_platform/frontend/src/components/layout/AppSidebar/components/AppSidebarHeader/AppSidebarHeader.tsx
+++ b/autogpt_platform/frontend/src/components/layout/AppSidebar/components/AppSidebarHeader/AppSidebarHeader.tsx
@@ -8,8 +8,9 @@ import {
TooltipTrigger,
} from "@/components/ui/tooltip";
import { cn } from "@/lib/utils";
-import { SidebarSimpleIcon } from "@phosphor-icons/react";
import Link from "next/link";
+import { SidebarLeftIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function AppSidebarHeader() {
const { state, toggleSidebar } = useSidebar();
@@ -45,7 +46,10 @@ export function AppSidebarHeader() {
: "flex",
)}
>
- <SidebarSimpleIcon className="size-5 text-sidebar-foreground" />
+ <Icon
+ icon={SidebarLeftIcon}
+ className="size-4 text-sidebar-foreground/90 group-data-[collapsible=icon]:size-4.5"
+ />
</button>
</TooltipTrigger>
<TooltipContent side="right">
diff --git a/autogpt_platform/frontend/src/components/layout/AppSidebar/components/RecentChats/components/RecentChatItem/RecentChatItem.tsx b/autogpt_platform/frontend/src/components/layout/AppSidebar/components/RecentChats/components/RecentChatItem/RecentChatItem.tsx
index f863f09ea7..3f055f1cae 100644
--- a/autogpt_platform/frontend/src/components/layout/AppSidebar/components/RecentChats/components/RecentChatItem/RecentChatItem.tsx
+++ b/autogpt_platform/frontend/src/components/layout/AppSidebar/components/RecentChats/components/RecentChatItem/RecentChatItem.tsx
@@ -14,16 +14,17 @@ import {
SidebarMenuButton,
SidebarMenuItem,
} from "@/components/ui/sidebar";
-import {
- CircleNotchIcon,
- DotsThreeIcon,
- DownloadSimpleIcon,
- PencilSimpleIcon,
- ShareNetworkIcon,
- TrashIcon,
-} from "@phosphor-icons/react";
import Link from "next/link";
import { useRef } from "react";
+import {
+ Delete02Icon,
+ Download04Icon,
+ Loading03Icon,
+ MoreHorizontalIcon,
+ PencilIcon,
+ Share03Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Session {
id: string;
@@ -136,12 +137,15 @@ export function RecentChatItem({
aria-label="Chat actions"
className="border border-zinc-200 bg-white"
>
- <DotsThreeIcon weight="bold" />
+ <Icon
+ icon={MoreHorizontalIcon}
+ className="text-sidebar-foreground/90"
+ />
</SidebarMenuAction>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
<DropdownMenuItem onClick={() => onRename(session.id, session.title)}>
- <PencilSimpleIcon className="mr-2 h-4 w-4" />
+ <Icon icon={PencilIcon} className="mr-2 h-4 w-4" />
Rename
</DropdownMenuItem>
<DropdownMenuItem
@@ -152,15 +156,18 @@ export function RecentChatItem({
disabled={isExporting}
>
{isExporting ? (
- <CircleNotchIcon className="mr-2 h-4 w-4 animate-spin" />
+ <Icon
+ icon={Loading03Icon}
+ className="mr-2 h-4 w-4 animate-spin"
+ />
) : (
- <DownloadSimpleIcon className="mr-2 h-4 w-4" />
+ <Icon icon={Download04Icon} className="mr-2 h-4 w-4" />
)}
{isExporting ? "Exporting…" : "Export chat"}
</DropdownMenuItem>
{chatSharingEnabled && (
<DropdownMenuItem onClick={() => onShare(session.id)}>
- <ShareNetworkIcon className="mr-2 h-4 w-4" />
+ <Icon icon={Share03Icon} className="mr-2 h-4 w-4" />
Share chat
</DropdownMenuItem>
)}
@@ -169,7 +176,7 @@ export function RecentChatItem({
disabled={isDeleting}
className="text-red-600 focus:bg-red-50 focus:text-red-600"
>
- <TrashIcon className="mr-2 h-4 w-4" />
+ <Icon icon={Delete02Icon} className="mr-2 h-4 w-4" />
Delete chat
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/autogpt_platform/frontend/src/components/layout/AppSidebar/components/SidebarSearch/SidebarSearch.tsx b/autogpt_platform/frontend/src/components/layout/AppSidebar/components/SidebarSearch/SidebarSearch.tsx
index 1c8225467b..f230410538 100644
--- a/autogpt_platform/frontend/src/components/layout/AppSidebar/components/SidebarSearch/SidebarSearch.tsx
+++ b/autogpt_platform/frontend/src/components/layout/AppSidebar/components/SidebarSearch/SidebarSearch.tsx
@@ -2,8 +2,9 @@
import { useGlobalSearchStore } from "@/app/(platform)/components/GlobalSearchModal/useGlobalSearchStore";
import { SidebarMenuButton, SidebarMenuItem } from "@/components/ui/sidebar";
-import { MagnifyingGlassIcon } from "@phosphor-icons/react";
import { ShortcutHint } from "../ShortcutHint/ShortcutHint";
+import { Search01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function SidebarSearch() {
const openSearch = useGlobalSearchStore((state) => state.openSearch);
@@ -13,9 +14,12 @@ export function SidebarSearch() {
<SidebarMenuButton
tooltip="Search"
onClick={openSearch}
- className="h-auto rounded-xl p-2 pl-3 font-normal group-data-[collapsible=icon]:!p-1.5 hover:!bg-zinc-100 [&>svg]:size-5"
+ className="h-auto rounded-xl p-2 pl-3 font-normal group-data-[collapsible=icon]:!p-1.5 hover:!bg-zinc-100 [&>svg]:size-4 group-data-[collapsible=icon]:[&>svg]:size-4.5"
>
- <MagnifyingGlassIcon className="size-5" />
+ <Icon
+ icon={Search01Icon}
+ className="size-4 text-sidebar-foreground/90 group-data-[collapsible=icon]:size-4.5"
+ />
<span className="truncate">Search</span>
<ShortcutHint letter="K" />
</SidebarMenuButton>
diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/AccountMenu.tsx b/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/AccountMenu.tsx
index 8bee172ba7..c595b1a4a6 100644
--- a/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/AccountMenu.tsx
+++ b/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/AccountMenu.tsx
@@ -10,7 +10,7 @@ import { AccountMenuNewLayout } from "./AccountMenuNewLayout";
import { AccountLogoutOption } from "./components/AccountLogoutOption";
import { AccountMenuRow } from "./components/AccountMenuRow";
import { InitialAvatar } from "./components/InitialAvatar";
-import { getAccountMenuPhosphorIcon } from "./helpers";
+import { getAccountMenuIcon } from "./helpers";
interface Props {
userName?: string;
@@ -104,7 +104,7 @@ export function AccountMenu({
{menuItemGroups.map((group, groupIndex) =>
group.items.map((item, itemIndex) => {
const key = `${groupIndex}-${itemIndex}-${item.text}`;
- const icon = getAccountMenuPhosphorIcon(item.icon);
+ const icon = getAccountMenuIcon(item.icon);
if (item.text === "Log out") {
return (
diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/AccountMenuNewLayout.tsx b/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/AccountMenuNewLayout.tsx
index da1e2498f5..1089e75800 100644
--- a/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/AccountMenuNewLayout.tsx
+++ b/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/AccountMenuNewLayout.tsx
@@ -10,7 +10,7 @@ import { AccountMenuActivityRow } from "./components/AccountMenuActivityRow";
import { AccountMenuHeader } from "./components/AccountMenuHeader";
import { AccountMenuRow } from "./components/AccountMenuRow";
import { InitialAvatar } from "./components/InitialAvatar";
-import { getAccountMenuPhosphorIcon } from "./helpers";
+import { getAccountMenuIcon } from "./helpers";
interface Props {
userName?: string;
@@ -78,10 +78,7 @@ export function AccountMenuNewLayout({
<ul className="flex flex-col gap-0.5">
{group.items.map((item, itemIndex) => {
const key = `${groupIndex}-${itemIndex}-${item.text}`;
- const icon = getAccountMenuPhosphorIcon(
- item.icon,
- "regular",
- );
+ const icon = getAccountMenuIcon(item.icon);
if (item.text === "Log out") {
return (
diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/__tests__/helpers.test.tsx b/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/__tests__/helpers.test.tsx
index a49867d756..d9ed78f741 100644
--- a/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/__tests__/helpers.test.tsx
+++ b/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/__tests__/helpers.test.tsx
@@ -1,6 +1,6 @@
import { IconType } from "@/components/__legacy__/ui/icons";
import { describe, expect, test } from "vitest";
-import { getAccountMenuPhosphorIcon } from "../helpers";
+import { getAccountMenuIcon } from "../helpers";
import {
getAccountMenuItems,
getAccountMenuOptionIcon,
@@ -10,7 +10,7 @@ function flattenTexts(groups: ReturnType<typeof getAccountMenuItems>) {
return groups.flatMap((group) => group.items.map((item) => item.text));
}
-describe("getAccountMenuPhosphorIcon", () => {
+describe("getAccountMenuIcon", () => {
test.each([
IconType.Edit,
IconType.LayoutDashboard,
@@ -22,12 +22,12 @@ describe("getAccountMenuPhosphorIcon", () => {
IconType.WhatsNew,
IconType.LogOut,
])("returns a Phosphor icon element for %s", (icon) => {
- const result = getAccountMenuPhosphorIcon(icon);
+ const result = getAccountMenuIcon(icon);
expect(result).not.toBeNull();
});
test("returns null for unmapped icon types", () => {
- const result = getAccountMenuPhosphorIcon(IconType.Chat);
+ const result = getAccountMenuIcon(IconType.Chat);
expect(result).toBeNull();
});
});
diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/components/AccountLogoutOption.tsx b/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/components/AccountLogoutOption.tsx
index 9a92ebdb12..494b7caf16 100644
--- a/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/components/AccountLogoutOption.tsx
+++ b/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/components/AccountLogoutOption.tsx
@@ -1,7 +1,8 @@
"use client";
-import { SignOutIcon } from "@phosphor-icons/react";
import { useRouter } from "next/navigation";
import { AccountMenuRow } from "./AccountMenuRow";
+import { Logout03Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
weight?: "bold" | "regular";
@@ -20,9 +21,7 @@ export function AccountLogoutOption({ weight = "bold" }: Props) {
destructive
label="Log out"
newLayout={weight === "regular"}
- icon={
- <SignOutIcon className="h-[18px] w-[18px] shrink-0" weight={weight} />
- }
+ icon={<Icon icon={Logout03Icon} className="h-[18px] w-[18px] shrink-0" />}
onClick={handleLogout}
/>
);
diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/components/AccountMenuActivityRow.tsx b/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/components/AccountMenuActivityRow.tsx
index e6842e779a..f765331d98 100644
--- a/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/components/AccountMenuActivityRow.tsx
+++ b/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/components/AccountMenuActivityRow.tsx
@@ -5,11 +5,12 @@ import {
PopoverContent,
PopoverTrigger,
} from "@/components/molecules/Popover/Popover";
-import { CaretRightIcon, PulseIcon } from "@phosphor-icons/react";
import * as React from "react";
import { ActivityDropdown } from "../../AgentActivityDropdown/components/ActivityDropdown/ActivityDropdown";
import { formatNotificationCount } from "../../AgentActivityDropdown/helpers";
import { useAgentActivityDropdown } from "../../AgentActivityDropdown/useAgentActivityDropdown";
+import { ArrowRight01Icon, Pulse01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
const rowClasses =
"group relative flex w-full items-center gap-3 rounded-lg py-2 pl-3 pr-2 text-left text-sm font-normal text-neutral-700 outline-none transition-colors duration-200 ease-out hover:bg-neutral-100 focus-visible:bg-neutral-100 focus-visible:outline-none data-[state=open]:bg-neutral-100";
@@ -38,10 +39,7 @@ export function AccountMenuActivityRow() {
aria-hidden="true"
/>
<span className="relative z-10 flex shrink-0 items-center">
- <PulseIcon
- className="h-[18px] w-[18px] shrink-0"
- weight="regular"
- />
+ <Icon icon={Pulse01Icon} className="h-[18px] w-[18px] shrink-0" />
</span>
<span className="relative z-10 truncate">Activity</span>
{totalCount > 0 && (
@@ -53,10 +51,10 @@ export function AccountMenuActivityRow() {
</span>
)}
<span className="flex-1" aria-hidden="true" />
- <CaretRightIcon
+ <Icon
+ icon={ArrowRight01Icon}
className="relative z-10 shrink-0 text-neutral-700"
size={16}
- weight="regular"
aria-hidden="true"
/>
</button>
diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/components/AccountMenuHeader.tsx b/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/components/AccountMenuHeader.tsx
index 635158aea6..065d3accec 100644
--- a/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/components/AccountMenuHeader.tsx
+++ b/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/components/AccountMenuHeader.tsx
@@ -6,10 +6,11 @@ import {
PopoverContent,
PopoverTrigger,
} from "@/components/molecules/Popover/Popover";
-import { CaretRightIcon } from "@phosphor-icons/react";
import * as React from "react";
import { AccountMenuOrgList } from "./AccountMenuOrgList";
import { InitialAvatar } from "./InitialAvatar";
+import { ArrowRight01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
userName?: string;
@@ -57,10 +58,10 @@ export function AccountMenuHeader({
</>
)}
</div>
- <CaretRightIcon
+ <Icon
+ icon={ArrowRight01Icon}
className="shrink-0 text-neutral-700"
size={16}
- weight="regular"
aria-hidden="true"
/>
</button>
diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/components/AccountMenuOrgList.tsx b/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/components/AccountMenuOrgList.tsx
index 3190219070..f1087371fe 100644
--- a/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/components/AccountMenuOrgList.tsx
+++ b/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/components/AccountMenuOrgList.tsx
@@ -4,9 +4,14 @@ import Avatar, {
AvatarFallback,
AvatarImage,
} from "@/components/atoms/Avatar/Avatar";
-import { CheckIcon, GearSixIcon, PlusIcon } from "@phosphor-icons/react";
import Link from "next/link";
import { useOrgTeamSwitcher } from "../../OrgTeamSwitcher/useOrgTeamSwitcher";
+import {
+ PlusSignIcon,
+ Settings02Icon,
+ Tick02Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function AccountMenuOrgList() {
const { orgs, teams, activeOrg, activeTeam, switchOrg, switchTeam } =
@@ -29,7 +34,7 @@ export function AccountMenuOrgList() {
data-testid="create-organization-button"
>
<span className="flex h-5 w-5 items-center justify-center">
- <PlusIcon size={14} />
+ <Icon icon={PlusSignIcon} size={14} />
</span>
<span className="flex-1 truncate text-left">Create organization</span>
</button>
@@ -70,7 +75,7 @@ export function AccountMenuOrgList() {
<span className="text-xs text-neutral-400">Personal</span>
)}
{org.id === activeOrg?.id && (
- <CheckIcon size={14} className="text-green-600" />
+ <Icon icon={Tick02Icon} size={14} className="text-green-600" />
)}
</button>
))}
@@ -96,7 +101,11 @@ export function AccountMenuOrgList() {
<span className="text-xs text-neutral-400">Private</span>
)}
{team.id === activeTeam?.id && (
- <CheckIcon size={14} className="text-green-600" />
+ <Icon
+ icon={Tick02Icon}
+ size={14}
+ className="text-green-600"
+ />
)}
</button>
))}
@@ -104,7 +113,7 @@ export function AccountMenuOrgList() {
href="/org/teams"
className="flex items-center gap-2 rounded-lg px-2 py-1.5 text-sm text-neutral-500 hover:bg-neutral-100"
>
- <GearSixIcon size={14} />
+ <Icon icon={Settings02Icon} size={14} />
<span>Manage teams</span>
</Link>
</div>
diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/components/AccountMenuRow.tsx b/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/components/AccountMenuRow.tsx
index 265f36edb3..1532977c48 100644
--- a/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/components/AccountMenuRow.tsx
+++ b/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/components/AccountMenuRow.tsx
@@ -1,8 +1,9 @@
import { LoadingSpinner } from "@/components/atoms/LoadingSpinner/LoadingSpinner";
import { cn } from "@/lib/utils";
-import { ArrowSquareOutIcon } from "@phosphor-icons/react";
import Link, { useLinkStatus } from "next/link";
import * as React from "react";
+import { LinkSquare01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
icon: React.ReactNode;
@@ -48,7 +49,8 @@ function RowBody({
aria-hidden="true"
/>
) : external ? (
- <ArrowSquareOutIcon
+ <Icon
+ icon={LinkSquare01Icon}
className="relative z-10 shrink-0 text-neutral-700"
size={16}
aria-hidden="true"
diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/helpers.tsx b/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/helpers.tsx
index 8ccd21219d..c0b22e994a 100644
--- a/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/helpers.tsx
+++ b/autogpt_platform/frontend/src/components/layout/Navbar/components/AccountMenu/helpers.tsx
@@ -1,40 +1,38 @@
import { IconType } from "@/components/__legacy__/ui/icons";
import {
- ChartLineUpIcon,
+ ChartIncreaseIcon,
CreditCardIcon,
- GearIcon,
- NewspaperIcon,
+ Logout03Icon,
+ NewsIcon,
QuestionIcon,
- SignOutIcon,
+ Settings01Icon,
SlidersHorizontalIcon,
- UploadSimpleIcon,
+ Upload03Icon,
UserIcon,
-} from "@phosphor-icons/react";
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
-export function getAccountMenuPhosphorIcon(
- icon: IconType,
- weight: "bold" | "regular" = "bold",
-) {
+export function getAccountMenuIcon(icon: IconType) {
const className = "h-[18px] w-[18px] shrink-0";
switch (icon) {
case IconType.Edit:
- return <UserIcon className={className} weight={weight} />;
+ return <Icon icon={UserIcon} className={className} />;
case IconType.LayoutDashboard:
- return <ChartLineUpIcon className={className} weight={weight} />;
+ return <Icon icon={ChartIncreaseIcon} className={className} />;
case IconType.UploadCloud:
- return <UploadSimpleIcon className={className} weight={weight} />;
+ return <Icon icon={Upload03Icon} className={className} />;
case IconType.Sliders:
- return <SlidersHorizontalIcon className={className} weight={weight} />;
+ return <Icon icon={SlidersHorizontalIcon} className={className} />;
case IconType.Settings:
- return <GearIcon className={className} weight={weight} />;
+ return <Icon icon={Settings01Icon} className={className} />;
case IconType.Billing:
- return <CreditCardIcon className={className} weight={weight} />;
+ return <Icon icon={CreditCardIcon} className={className} />;
case IconType.Help:
- return <QuestionIcon className={className} weight={weight} />;
+ return <Icon icon={QuestionIcon} className={className} />;
case IconType.WhatsNew:
- return <NewspaperIcon className={className} weight={weight} />;
+ return <Icon icon={NewsIcon} className={className} />;
case IconType.LogOut:
- return <SignOutIcon className={className} weight={weight} />;
+ return <Icon icon={Logout03Icon} className={className} />;
default:
return null;
}
diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/components/AgentActivityDropdown/AgentActivityDropdown.tsx b/autogpt_platform/frontend/src/components/layout/Navbar/components/AgentActivityDropdown/AgentActivityDropdown.tsx
index 3c792d3239..8bed2bb86e 100644
--- a/autogpt_platform/frontend/src/components/layout/Navbar/components/AgentActivityDropdown/AgentActivityDropdown.tsx
+++ b/autogpt_platform/frontend/src/components/layout/Navbar/components/AgentActivityDropdown/AgentActivityDropdown.tsx
@@ -6,10 +6,11 @@ import {
PopoverContent,
PopoverTrigger,
} from "@/components/__legacy__/ui/popover";
-import { Pulse } from "@phosphor-icons/react";
import { ActivityDropdown } from "./components/ActivityDropdown/ActivityDropdown";
import { formatNotificationCount } from "./helpers";
import { useAgentActivityDropdown } from "./useAgentActivityDropdown";
+import { Pulse01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function AgentActivityDropdown() {
const {
@@ -30,7 +31,7 @@ export function AgentActivityDropdown() {
data-testid="agent-activity-button"
aria-label="View Agent Activity"
>
- <Pulse size={22} className="text-black" />
+ <Icon icon={Pulse01Icon} size={22} className="text-black" />
{activeCount > 0 && (
<>
diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/components/AgentActivityDropdown/components/ActivityDropdown/ActivityDropdown.tsx b/autogpt_platform/frontend/src/components/layout/Navbar/components/AgentActivityDropdown/components/ActivityDropdown/ActivityDropdown.tsx
index 701ada418d..527ffc6726 100644
--- a/autogpt_platform/frontend/src/components/layout/Navbar/components/AgentActivityDropdown/components/ActivityDropdown/ActivityDropdown.tsx
+++ b/autogpt_platform/frontend/src/components/layout/Navbar/components/AgentActivityDropdown/components/ActivityDropdown/ActivityDropdown.tsx
@@ -4,7 +4,6 @@ import { Button } from "@/components/atoms/Button/Button";
import { Input } from "@/components/atoms/Input/Input";
import { Text } from "@/components/atoms/Text/Text";
import { cn } from "@/lib/utils";
-import { Bell, MagnifyingGlass, X } from "@phosphor-icons/react";
import { List, type RowComponentProps } from "react-window";
import { AgentExecutionWithInfo } from "../../helpers";
import { ActivityItem } from "../ActivityItem";
@@ -13,6 +12,12 @@ import {
EXECUTION_DISPLAY_WITH_SEARCH,
useActivityDropdown,
} from "./useActivityDropdown";
+import {
+ BellIcon,
+ Cancel01Icon,
+ Search01Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
activeExecutions: AgentExecutionWithInfo[];
@@ -107,7 +112,11 @@ export function ActivityDropdown({
className="absolute right-1 top-1/2 flex h-6 w-6 -translate-y-1/2 items-center justify-center"
aria-label="Clear search"
>
- <X size={16} className="text-gray-500" />
+ <Icon
+ icon={Cancel01Icon}
+ size={16}
+ className="text-gray-500"
+ />
</button>
</div>
</div>
@@ -135,7 +144,8 @@ export function ActivityDropdown({
: "relative left-3",
)}
>
- <MagnifyingGlass
+ <Icon
+ icon={Search01Icon}
size={16}
className="h-4 w-4 text-gray-600"
/>
@@ -163,7 +173,7 @@ export function ActivityDropdown({
) : (
<div className="flex h-full flex-col items-center justify-center gap-5 pb-8 pt-6">
<div className="mx-auto inline-flex flex-col items-center justify-center rounded-full bg-bgLightGrey p-6">
- <Bell className="h-6 w-6 text-zinc-300" />
+ <Icon icon={BellIcon} className="h-6 w-6 text-zinc-300" />
</div>
<div className="flex flex-col items-center justify-center">
<Text variant="body-medium" className="!text-black">
diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/components/AgentActivityDropdown/components/ActivityItem.tsx b/autogpt_platform/frontend/src/components/layout/Navbar/components/AgentActivityDropdown/components/ActivityItem.tsx
index d5d58bf902..ca0b46d1d6 100644
--- a/autogpt_platform/frontend/src/components/layout/Navbar/components/AgentActivityDropdown/components/ActivityItem.tsx
+++ b/autogpt_platform/frontend/src/components/layout/Navbar/components/AgentActivityDropdown/components/ActivityItem.tsx
@@ -4,19 +4,20 @@ import { AgentExecutionStatus } from "@/app/api/__generated__/models/agentExecut
import { LoadingSpinner } from "@/components/atoms/LoadingSpinner/LoadingSpinner";
import { Text } from "@/components/atoms/Text/Text";
import { formatTimeAgo } from "@/lib/utils/time";
-import {
- ArrowUpRightIcon,
- CheckCircleIcon,
- ClockIcon,
- StopCircleIcon,
- WarningIcon,
- SpinnerIcon,
- MinusCircleIcon,
-} from "@phosphor-icons/react";
import { cn } from "@/lib/utils";
import Link, { useLinkStatus } from "next/link";
import type { AgentExecutionWithInfo } from "../helpers";
import { getExecutionDuration } from "../helpers";
+import {
+ Alert01Icon,
+ ArrowUpRight01Icon,
+ CheckmarkCircle02Icon,
+ Clock01Icon,
+ Loading03Icon,
+ MinusSignCircleIcon,
+ StopCircleIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
function ActivityNavIndicator() {
const { pending } = useLinkStatus();
@@ -30,7 +31,8 @@ function ActivityNavIndicator() {
);
}
return (
- <ArrowUpRightIcon
+ <Icon
+ icon={ArrowUpRight01Icon}
size={16}
className="shrink-0 text-neutral-400"
aria-hidden="true"
@@ -48,21 +50,45 @@ export function ActivityItem({ execution, newLayout = false }: Props) {
function getStatusIcon() {
switch (execution.status) {
case AgentExecutionStatus.QUEUED:
- return <ClockIcon size={18} className="text-purple-500" />;
+ return (
+ <Icon icon={Clock01Icon} size={18} className="text-purple-500" />
+ );
case AgentExecutionStatus.RUNNING:
return (
- <SpinnerIcon size={18} className="animate-spin text-purple-500" />
+ <Icon
+ icon={Loading03Icon}
+ size={18}
+ className="animate-spin text-purple-500"
+ />
);
case AgentExecutionStatus.COMPLETED:
- return <CheckCircleIcon size={18} className="text-purple-500" />;
+ return (
+ <Icon
+ icon={CheckmarkCircle02Icon}
+ size={18}
+ className="text-purple-500"
+ />
+ );
case AgentExecutionStatus.FAILED:
- return <WarningIcon size={18} className="text-purple-500" />;
+ return (
+ <Icon icon={Alert01Icon} size={18} className="text-purple-500" />
+ );
case AgentExecutionStatus.TERMINATED:
- return <StopCircleIcon size={18} className="text-purple-500" />;
+ return (
+ <Icon icon={StopCircleIcon} size={18} className="text-purple-500" />
+ );
case AgentExecutionStatus.INCOMPLETE:
- return <MinusCircleIcon size={18} className="text-purple-500" />;
+ return (
+ <Icon
+ icon={MinusSignCircleIcon}
+ size={18}
+ className="text-purple-500"
+ />
+ );
case AgentExecutionStatus.REVIEW:
- return <WarningIcon size={18} className="text-yellow-600" />;
+ return (
+ <Icon icon={Alert01Icon} size={18} className="text-yellow-600" />
+ );
default:
return null;
}
diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/components/FeedbackButton.tsx b/autogpt_platform/frontend/src/components/layout/Navbar/components/FeedbackButton.tsx
index c9cc27e742..e2fd4b91f8 100644
--- a/autogpt_platform/frontend/src/components/layout/Navbar/components/FeedbackButton.tsx
+++ b/autogpt_platform/frontend/src/components/layout/Navbar/components/FeedbackButton.tsx
@@ -1,7 +1,8 @@
"use client";
import { useTallyPopup } from "@/components/molecules/TallyPoup/useTallyPopup";
-import { ChatCircleDotsIcon } from "@phosphor-icons/react";
+import { Chatting01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function FeedbackButton() {
const { state } = useTallyPopup();
@@ -29,7 +30,7 @@ export function FeedbackButton() {
<div className="rounded-full bg-gradient-to-r from-indigo-100 to-indigo-300 to-zinc-400 p-[1px]">
<div className="flex items-center gap-1.5 whitespace-nowrap rounded-full bg-[#FAFAFA]/80 px-3 py-1.5 text-sm font-medium text-neutral-700 backdrop-blur-xl transition-colors duration-150 ease-out group-hover:bg-zinc-100/90">
<span className="hidden xl:inline">Give Feedback</span>
- <ChatCircleDotsIcon size={16} />
+ <Icon icon={Chatting01Icon} size={16} />
</div>
</div>
</button>
diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/components/LoginButton.tsx b/autogpt_platform/frontend/src/components/layout/Navbar/components/LoginButton.tsx
index f430d721b2..c8e826d642 100644
--- a/autogpt_platform/frontend/src/components/layout/Navbar/components/LoginButton.tsx
+++ b/autogpt_platform/frontend/src/components/layout/Navbar/components/LoginButton.tsx
@@ -1,8 +1,9 @@
"use client";
import { Button } from "@/components/atoms/Button/Button";
-import { SignInIcon } from "@phosphor-icons/react/dist/ssr";
import { usePathname, useRouter } from "next/navigation";
+import { Login03Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function LoginButton() {
const router = useRouter();
@@ -19,7 +20,7 @@ export function LoginButton() {
<Button
onClick={handleLogin}
size="small"
- leftIcon={<SignInIcon className="size-4" />}
+ leftIcon={<Icon icon={Login03Icon} className="size-4" />}
variant="secondary"
>
Log In
diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/components/MobileNavbar/MobileNavBar.tsx b/autogpt_platform/frontend/src/components/layout/Navbar/components/MobileNavbar/MobileNavBar.tsx
index b3de9a6a21..ae48ffc111 100644
--- a/autogpt_platform/frontend/src/components/layout/Navbar/components/MobileNavbar/MobileNavBar.tsx
+++ b/autogpt_platform/frontend/src/components/layout/Navbar/components/MobileNavbar/MobileNavBar.tsx
@@ -12,13 +12,14 @@ import Avatar, {
AvatarImage,
} from "@/components/atoms/Avatar/Avatar";
import { Button } from "@/components/atoms/Button/Button";
-import { CaretUpIcon, ListIcon } from "@phosphor-icons/react";
import { AnimatePresence, motion } from "framer-motion";
import { usePathname } from "next/navigation";
import * as React from "react";
import { MenuItemGroup } from "../../helpers";
import { MobileNavbarLogoutItem } from "./components/MobileNavbarLogoutItem";
import { MobileNavbarMenuItem } from "./components/MobileNavbarMenuItem";
+import { ArrowUp01Icon, Menu01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface MobileNavBarProps {
userName?: string;
@@ -58,9 +59,9 @@ export function MobileNavBar({
data-testid="mobile-nav-bar-trigger"
>
{isOpen ? (
- <CaretUpIcon className="size-6 stroke-slate-800" />
+ <Icon icon={ArrowUp01Icon} className="size-6 stroke-slate-800" />
) : (
- <ListIcon className="size-6 stroke-slate-800" />
+ <Icon icon={Menu01Icon} className="size-6 stroke-slate-800" />
)}
<span className="sr-only">Open menu</span>
</Button>
diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/components/NavbarLink.tsx b/autogpt_platform/frontend/src/components/layout/Navbar/components/NavbarLink.tsx
index 59913cdd75..c1ff494507 100644
--- a/autogpt_platform/frontend/src/components/layout/Navbar/components/NavbarLink.tsx
+++ b/autogpt_platform/frontend/src/components/layout/Navbar/components/NavbarLink.tsx
@@ -1,10 +1,6 @@
"use client";
import { cn } from "@/lib/utils";
-import {
- Laptop as LaptopIcon,
- ListChecksIcon,
-} from "@phosphor-icons/react/dist/ssr";
import Link from "next/link";
import { usePathname } from "next/navigation";
import { Text } from "../../../atoms/Text/Text";
@@ -13,6 +9,8 @@ import {
HomepageIcon,
MarketplaceIcon,
} from "./MenuIcon/MenuIcon";
+import { CheckListIcon, LaptopIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
const iconBaseClass = "h-4 w-4 shrink-0";
const iconNudgedClass = "relative bottom-[2px] h-4 w-4 shrink-0";
@@ -60,7 +58,8 @@ export function NavbarLink({ name, href }: Props) {
</div>
)}
{href === "/monitor" && (
- <LaptopIcon
+ <Icon
+ icon={LaptopIcon}
className={cn(
iconBaseClass,
isActive && "text-white dark:text-black",
@@ -78,7 +77,8 @@ export function NavbarLink({ name, href }: Props) {
</div>
)}
{href === "/library" && (
- <ListChecksIcon
+ <Icon
+ icon={CheckListIcon}
className={cn(
"h-5 w-5 shrink-0",
isActive && "text-white dark:text-black",
diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/components/OrgTeamSwitcher/OrgTeamSwitcher.tsx b/autogpt_platform/frontend/src/components/layout/Navbar/components/OrgTeamSwitcher/OrgTeamSwitcher.tsx
index 7907ceb345..7fb19f428c 100644
--- a/autogpt_platform/frontend/src/components/layout/Navbar/components/OrgTeamSwitcher/OrgTeamSwitcher.tsx
+++ b/autogpt_platform/frontend/src/components/layout/Navbar/components/OrgTeamSwitcher/OrgTeamSwitcher.tsx
@@ -8,8 +8,13 @@ import Avatar, {
AvatarImage,
} from "@/components/atoms/Avatar/Avatar";
import { useOrgTeamSwitcher } from "./useOrgTeamSwitcher";
-import { CaretDown, Check, GearSix } from "@phosphor-icons/react";
import Link from "next/link";
+import {
+ ArrowDown01Icon,
+ Settings02Icon,
+ Tick02Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function OrgTeamSwitcher() {
const {
@@ -46,7 +51,7 @@ export function OrgTeamSwitcher() {
</AvatarFallback>
</Avatar>
<span className="max-w-[8rem] truncate">{activeOrg?.name}</span>
- <CaretDown size={12} />
+ <Icon icon={ArrowDown01Icon} size={12} />
</button>
</PopoverTrigger>
@@ -78,7 +83,7 @@ export function OrgTeamSwitcher() {
<span className="text-xs text-neutral-400">Personal</span>
)}
{org.id === activeOrg?.id && (
- <Check size={14} className="text-green-600" />
+ <Icon icon={Tick02Icon} size={14} className="text-green-600" />
)}
</button>
))}
@@ -107,7 +112,11 @@ export function OrgTeamSwitcher() {
<span className="text-xs text-neutral-400">Private</span>
)}
{ws.id === activeTeam?.id && (
- <Check size={14} className="text-green-600" />
+ <Icon
+ icon={Tick02Icon}
+ size={14}
+ className="text-green-600"
+ />
)}
</button>
))}
@@ -115,7 +124,7 @@ export function OrgTeamSwitcher() {
href="/org/teams"
className="flex items-center gap-2 rounded-lg px-2 py-1.5 text-sm text-neutral-500 hover:bg-neutral-100"
>
- <GearSix size={14} />
+ <Icon icon={Settings02Icon} size={14} />
<span>Manage teams</span>
</Link>
</div>
diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/components/Wallet/Wallet.tsx b/autogpt_platform/frontend/src/components/layout/Navbar/components/Wallet/Wallet.tsx
index 4160fd9cc2..1f672a6077 100644
--- a/autogpt_platform/frontend/src/components/layout/Navbar/components/Wallet/Wallet.tsx
+++ b/autogpt_platform/frontend/src/components/layout/Navbar/components/Wallet/Wallet.tsx
@@ -8,11 +8,11 @@ import {
import { Text } from "@/components/atoms/Text/Text";
import { TopUpDialog } from "@/components/layout/TopUpPrompt/TopUpDialog/TopUpDialog";
import { cn } from "@/lib/utils";
-import { WalletIcon } from "@phosphor-icons/react";
-
import { WalletCompactPanel } from "./components/WalletCompactPanel";
import { WalletFullPanel } from "./components/WalletFullPanel";
import { useWallet } from "./useWallet";
+import { Wallet01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
compact?: boolean;
@@ -54,7 +54,8 @@ export function Wallet({ compact = false }: Props) {
)}
onClick={onWalletOpen}
>
- <WalletIcon
+ <Icon
+ icon={Wallet01Icon}
size={20}
className={cn("inline-block", !compact && "xl:hidden")}
/>
diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/components/Wallet/__tests__/Wallet.test.tsx b/autogpt_platform/frontend/src/components/layout/Navbar/components/Wallet/__tests__/Wallet.test.tsx
index 1471de3074..3dc0dc028e 100644
--- a/autogpt_platform/frontend/src/components/layout/Navbar/components/Wallet/__tests__/Wallet.test.tsx
+++ b/autogpt_platform/frontend/src/components/layout/Navbar/components/Wallet/__tests__/Wallet.test.tsx
@@ -191,6 +191,11 @@ describe("Wallet", () => {
});
describe("Wallet onboarding notifications", () => {
+ // Mounting <Wallet /> also mounts <TaskGroups />, whose celebration effect
+ // schedules its own confetti burst on a 300ms timer. That timer outlives the
+ // test that armed it and lands in a later one, so every assertion on
+ // confettiMock has to start from a clean slate after the render — otherwise
+ // the count depends on how fast the machine runs the suite.
function emit(notification: WebSocketNotification) {
const handler = onWebSocketMessageMock.mock.calls.at(-1)?.[1] as (
n: WebSocketNotification,
@@ -220,6 +225,7 @@ describe("Wallet onboarding notifications", () => {
it("refreshes credits and fires confetti when a tracked step completes", () => {
render(<Wallet />);
fetchCreditsMock.mockClear();
+ confettiMock.mockClear();
emit({ type: "onboarding", event: "step_completed", step: "RUN_3_DAYS" });
@@ -230,6 +236,7 @@ describe("Wallet onboarding notifications", () => {
it("ignores notifications that are not completed onboarding steps", () => {
render(<Wallet />);
fetchCreditsMock.mockClear();
+ confettiMock.mockClear();
emit({ type: "onboarding", event: "increment_runs", step: null });
emit({ type: "execution", event: "step_completed" });
@@ -241,6 +248,7 @@ describe("Wallet onboarding notifications", () => {
it("refreshes credits without confetti for steps outside the task groups", () => {
render(<Wallet />);
fetchCreditsMock.mockClear();
+ confettiMock.mockClear();
emit({
type: "onboarding",
diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/components/Wallet/components/WalletCompactPanel.tsx b/autogpt_platform/frontend/src/components/layout/Navbar/components/Wallet/components/WalletCompactPanel.tsx
index d3fda6ca6d..cb613aff1d 100644
--- a/autogpt_platform/frontend/src/components/layout/Navbar/components/Wallet/components/WalletCompactPanel.tsx
+++ b/autogpt_platform/frontend/src/components/layout/Navbar/components/Wallet/components/WalletCompactPanel.tsx
@@ -4,13 +4,13 @@ import { Text } from "@/components/atoms/Text/Text";
import { Collapsible } from "@/components/molecules/Collapsible/Collapsible";
import { OnboardingStep } from "@/lib/autogpt-server-api";
import { Flag, useGetFlag } from "@/services/feature-flags/use-get-flag";
+import { getEarnRows, TaskGroup } from "../helpers";
import {
+ CheckmarkBadge01Icon,
CircleIcon,
CreditCardIcon,
- SealCheckIcon,
-} from "@phosphor-icons/react";
-
-import { getEarnRows, TaskGroup } from "../helpers";
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
groups: TaskGroup[];
@@ -43,7 +43,7 @@ export function WalletCompactPanel({
onClick={onAddCredits}
className="flex items-center justify-center gap-3 rounded-large bg-zinc-100 px-3 py-2.5 text-center transition-colors hover:bg-zinc-200"
>
- <CreditCardIcon size={20} className="text-zinc-700" />
+ <Icon icon={CreditCardIcon} size={20} className="text-zinc-700" />
<Text variant="body-medium">Add credits</Text>
</button>
)}
@@ -62,16 +62,16 @@ export function WalletCompactPanel({
<div className="flex min-w-0 items-start gap-2.5">
<span className="mt-0.5 shrink-0">
{row.done ? (
- <SealCheckIcon
+ <Icon
+ icon={CheckmarkBadge01Icon}
size={18}
- weight="fill"
className="text-[#00a656]"
aria-label="completed"
/>
) : (
- <CircleIcon
+ <Icon
+ icon={CircleIcon}
size={16}
- weight="regular"
className="text-zinc-400"
aria-label="pending"
/>
diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/components/Wallet/components/WalletFullPanel.tsx b/autogpt_platform/frontend/src/components/layout/Navbar/components/Wallet/components/WalletFullPanel.tsx
index 2f91189a27..554e008ef9 100644
--- a/autogpt_platform/frontend/src/components/layout/Navbar/components/Wallet/components/WalletFullPanel.tsx
+++ b/autogpt_platform/frontend/src/components/layout/Navbar/components/Wallet/components/WalletFullPanel.tsx
@@ -2,12 +2,13 @@
import { ScrollArea } from "@/components/ui/scroll-area";
import { Flag, useGetFlag } from "@/services/feature-flags/use-get-flag";
-import { XIcon } from "@phosphor-icons/react";
import { PopoverClose } from "@radix-ui/react-popover";
import { TaskGroup } from "../helpers";
import { WalletRefill } from "./WalletRefill";
import { TaskGroups } from "./WalletTaskGroups";
+import { Cancel01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
groups: TaskGroup[];
@@ -36,7 +37,10 @@ export function WalletFullPanel({ groups, formattedCredits }: Props) {
<span className="font-semibold">{formattedCredits}</span>
</div>
<PopoverClose aria-label="Close wallet">
- <XIcon className="ml-2 h-5 w-5 text-zinc-800 hover:text-foreground" />
+ <Icon
+ icon={Cancel01Icon}
+ className="ml-2 h-5 w-5 text-zinc-800 hover:text-foreground"
+ />
</PopoverClose>
</div>
</div>
diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/helpers.tsx b/autogpt_platform/frontend/src/components/layout/Navbar/helpers.tsx
index fe176fc82d..bd61da6f87 100644
--- a/autogpt_platform/frontend/src/components/layout/Navbar/helpers.tsx
+++ b/autogpt_platform/frontend/src/components/layout/Navbar/helpers.tsx
@@ -11,12 +11,13 @@ import {
IconUploadCloud,
} from "@/components/__legacy__/ui/icons";
import {
- ChatsIcon,
CreditCardIcon,
- NewspaperIcon,
+ MessageMultiple02Icon,
+ NewsIcon,
QuestionIcon,
- StorefrontIcon,
-} from "@phosphor-icons/react";
+ Store01Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type Link = {
name: string;
@@ -222,7 +223,7 @@ export function getAccountMenuOptionIcon(icon: IconType) {
const iconClass = "size-4";
switch (icon) {
case IconType.LayoutDashboard:
- return <StorefrontIcon className={iconClass} />;
+ return <Icon icon={Store01Icon} className={iconClass} />;
case IconType.UploadCloud:
return <IconUploadCloud className={iconClass} />;
case IconType.Edit:
@@ -240,13 +241,13 @@ export function getAccountMenuOptionIcon(icon: IconType) {
case IconType.Sliders:
return <IconSliders className={iconClass} />;
case IconType.Chat:
- return <ChatsIcon className={iconClass} />;
+ return <Icon icon={MessageMultiple02Icon} className={iconClass} />;
case IconType.Billing:
- return <CreditCardIcon className={iconClass} />;
+ return <Icon icon={CreditCardIcon} className={iconClass} />;
case IconType.Help:
- return <QuestionIcon className={iconClass} />;
+ return <Icon icon={QuestionIcon} className={iconClass} />;
case IconType.WhatsNew:
- return <NewspaperIcon className={iconClass} />;
+ return <Icon icon={NewsIcon} className={iconClass} />;
default:
return <IconRefresh className={iconClass} />;
}
diff --git a/autogpt_platform/frontend/src/components/layout/TopUpPrompt/LowCreditBanner/LowCreditBanner.tsx b/autogpt_platform/frontend/src/components/layout/TopUpPrompt/LowCreditBanner/LowCreditBanner.tsx
index e67ce73c5d..cae373801e 100644
--- a/autogpt_platform/frontend/src/components/layout/TopUpPrompt/LowCreditBanner/LowCreditBanner.tsx
+++ b/autogpt_platform/frontend/src/components/layout/TopUpPrompt/LowCreditBanner/LowCreditBanner.tsx
@@ -1,11 +1,10 @@
"use client";
-
-import { XIcon } from "@phosphor-icons/react";
-
import { Button } from "@/components/atoms/Button/Button";
import { Alert, AlertDescription } from "@/components/molecules/Alert/Alert";
import { useLowCreditBanner } from "./useLowCreditBanner";
+import { Cancel01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
className?: string;
@@ -34,7 +33,7 @@ export function LowCreditBanner({ className }: Props) {
title="Dismiss"
className="hover:border-[#FFE4BF] hover:bg-[#FFE4BF]"
>
- <XIcon className="h-4 w-4" />
+ <Icon icon={Cancel01Icon} className="h-4 w-4" />
</Button>
</div>
</Alert>
diff --git a/autogpt_platform/frontend/src/components/molecules/Collapsible/Collapsible.tsx b/autogpt_platform/frontend/src/components/molecules/Collapsible/Collapsible.tsx
index 6ae073295e..acd89425c4 100644
--- a/autogpt_platform/frontend/src/components/molecules/Collapsible/Collapsible.tsx
+++ b/autogpt_platform/frontend/src/components/molecules/Collapsible/Collapsible.tsx
@@ -7,7 +7,8 @@ import {
CollapsibleTrigger as BaseCollapsibleTrigger,
CollapsibleContent as BaseCollapsibleContent,
} from "@/components/__legacy__/ui/collapsible";
-import { CaretDownIcon } from "@phosphor-icons/react";
+import { ArrowDown01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
trigger: React.ReactNode;
@@ -55,7 +56,8 @@ export function Collapsible({
>
<div className="flex-end flex flex-wrap items-center gap-2">
{trigger}
- <CaretDownIcon
+ <Icon
+ icon={ArrowDown01Icon}
className={cn(
"inline-flex h-4 w-4 transition-transform duration-200",
openState && "rotate-180",
diff --git a/autogpt_platform/frontend/src/components/molecules/CookieConsentBanner/CookieConsentBanner.tsx b/autogpt_platform/frontend/src/components/molecules/CookieConsentBanner/CookieConsentBanner.tsx
index dd467261e9..56e875038f 100644
--- a/autogpt_platform/frontend/src/components/molecules/CookieConsentBanner/CookieConsentBanner.tsx
+++ b/autogpt_platform/frontend/src/components/molecules/CookieConsentBanner/CookieConsentBanner.tsx
@@ -2,9 +2,10 @@
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
-import { CookieIcon } from "@phosphor-icons/react/dist/ssr";
import { useCookieConsentBanner } from "./useCookieConsentBanner";
import { CookieSettingsModal } from "./components/CookieSettingsModal/CookieSettingsModal";
+import { CookieIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function CookieConsentBanner() {
const {
@@ -30,7 +31,10 @@ export function CookieConsentBanner() {
>
<div className="flex flex-col items-start gap-4 md:flex-row md:items-center md:justify-between">
<div className="flex flex-1 items-start gap-3">
- <CookieIcon className="mt-0.5 h-5 w-5 shrink-0 text-neutral-700 dark:text-neutral-300" />
+ <Icon
+ icon={CookieIcon}
+ className="mt-0.5 h-5 w-5 shrink-0 text-neutral-700 dark:text-neutral-300"
+ />
<div className="flex-1">
<Text
variant="body-medium"
diff --git a/autogpt_platform/frontend/src/components/molecules/CookieConsentBanner/components/CookieSettingsModal/CookieSettingsModal.tsx b/autogpt_platform/frontend/src/components/molecules/CookieConsentBanner/components/CookieSettingsModal/CookieSettingsModal.tsx
index ec75b4d3a5..88dd9f0d7a 100644
--- a/autogpt_platform/frontend/src/components/molecules/CookieConsentBanner/components/CookieSettingsModal/CookieSettingsModal.tsx
+++ b/autogpt_platform/frontend/src/components/molecules/CookieConsentBanner/components/CookieSettingsModal/CookieSettingsModal.tsx
@@ -5,8 +5,9 @@ import { Switch } from "@/components/atoms/Switch/Switch";
import { Text } from "@/components/atoms/Text/Text";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
import { COOKIE_CATEGORIES } from "@/services/consent/cookies";
-import { CheckIcon } from "@phosphor-icons/react/dist/ssr";
import { useCookieSettingsModal } from "./useCookieSettingsModal";
+import { Tick02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
isOpen: boolean;
@@ -58,7 +59,7 @@ export function CookieSettingsModal({ isOpen, onClose }: Props) {
</Text>
</div>
<div className="flex items-center">
- <CheckIcon className="h-5 w-5 text-green-600" weight="bold" />
+ <Icon icon={Tick02Icon} className="h-5 w-5 text-green-600" />
</div>
</div>
</div>
diff --git a/autogpt_platform/frontend/src/components/molecules/Dialog/components/DialogWrap.tsx b/autogpt_platform/frontend/src/components/molecules/Dialog/components/DialogWrap.tsx
index 5b52b214b3..bbae32192d 100644
--- a/autogpt_platform/frontend/src/components/molecules/Dialog/components/DialogWrap.tsx
+++ b/autogpt_platform/frontend/src/components/molecules/Dialog/components/DialogWrap.tsx
@@ -1,7 +1,6 @@
import { Button } from "@/components/atoms/Button/Button";
import { scrollbarStyles } from "@/components/styles/scrollbars";
import { cn } from "@/lib/utils";
-import { X } from "@phosphor-icons/react";
import * as RXDialog from "@radix-ui/react-dialog";
import {
CSSProperties,
@@ -13,6 +12,8 @@ import {
} from "react";
import { DialogCtx } from "../useDialogCtx";
import { modalStyles } from "./styles";
+import { Cancel01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type BaseProps = DialogCtx & PropsWithChildren;
@@ -123,7 +124,7 @@ export function DialogWrap({
className="absolute right-4 top-4 z-50 size-[2.5rem] bg-white"
withTooltip={false}
>
- <X width="1rem" />
+ <Icon icon={Cancel01Icon} width="1rem" />
</Button>
)}
</div>
diff --git a/autogpt_platform/frontend/src/components/molecules/Dialog/components/DrawerWrap.tsx b/autogpt_platform/frontend/src/components/molecules/Dialog/components/DrawerWrap.tsx
index fec004567e..4714981edb 100644
--- a/autogpt_platform/frontend/src/components/molecules/Dialog/components/DrawerWrap.tsx
+++ b/autogpt_platform/frontend/src/components/molecules/Dialog/components/DrawerWrap.tsx
@@ -1,11 +1,12 @@
import { Button } from "@/components/__legacy__/ui/button";
import { scrollbarStyles } from "@/components/styles/scrollbars";
import { cn } from "@/lib/utils";
-import { X } from "@phosphor-icons/react";
import { PropsWithChildren } from "react";
import { Drawer } from "vaul";
import { DialogCtx } from "../useDialogCtx";
import { drawerStyles, modalStyles } from "./styles";
+import { Cancel01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type BaseProps = DialogCtx & PropsWithChildren;
@@ -32,7 +33,7 @@ export function DrawerWrap({
onClick={handleClose}
className="!focus-visible:ring-0 p-0"
>
- <X width="1.5rem" />
+ <Icon icon={Cancel01Icon} width="1.5rem" />
</Button>
);
diff --git a/autogpt_platform/frontend/src/components/molecules/ErrorCard/ErrorCard.stories.tsx b/autogpt_platform/frontend/src/components/molecules/ErrorCard/ErrorCard.stories.tsx
index baf15455ea..8e9ab818ec 100644
--- a/autogpt_platform/frontend/src/components/molecules/ErrorCard/ErrorCard.stories.tsx
+++ b/autogpt_platform/frontend/src/components/molecules/ErrorCard/ErrorCard.stories.tsx
@@ -20,7 +20,7 @@ A reusable error card component that handles API query responses gracefully with
- **User-friendly messages** - Non-technical, funny error messages for HTTP errors
- **Loading state** - Supports custom loading slot or default spinner
- **Action buttons** - Sentry error reporting with toast notifications and Discord help link
-- **Phosphor icons** - Uses phosphor icons throughout
+- **Hugeicons** - Uses Hugeicons via the Icon atom throughout
- **TypeScript support** - Full TypeScript interface support
### 🎯 Magic Usage Pattern
@@ -176,7 +176,7 @@ export const HttpError403: Story = {
};
/**
- * Default loading state shows a spinning phosphor icon.
+ * Default loading state shows a spinning icon.
*/
export const LoadingState: Story = {
args: {
diff --git a/autogpt_platform/frontend/src/components/molecules/ErrorCard/components/ActionButtons.tsx b/autogpt_platform/frontend/src/components/molecules/ErrorCard/components/ActionButtons.tsx
index c4f05b1320..20063333d0 100644
--- a/autogpt_platform/frontend/src/components/molecules/ErrorCard/components/ActionButtons.tsx
+++ b/autogpt_platform/frontend/src/components/molecules/ErrorCard/components/ActionButtons.tsx
@@ -1,8 +1,13 @@
import React from "react";
-import { ArrowClockwise, Bug, DiscordLogo } from "@phosphor-icons/react";
import { handleReportError } from "../helpers";
import { ErrorCardProps } from "../ErrorCard";
import { Button } from "@/components/atoms/Button/Button";
+import {
+ Bug01Icon,
+ DiscordIcon,
+ Refresh01Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface ActionButtonsProps {
onRetry?: () => void;
@@ -21,7 +26,7 @@ export function ActionButtons({
<div className="flex flex-col flex-wrap gap-3 pt-2 sm:flex-row">
{onRetry && (
<Button onClick={onRetry} variant="outline" size="small">
- <ArrowClockwise size={16} weight="bold" />
+ <Icon icon={Refresh01Icon} size={16} />
Try Again
</Button>
)}
@@ -31,7 +36,7 @@ export function ActionButtons({
variant="ghost"
size="small"
>
- <Bug size={16} weight="bold" />
+ <Icon icon={Bug01Icon} size={16} />
Report Error
</Button>
@@ -43,7 +48,7 @@ export function ActionButtons({
target="_blank"
rel="noopener noreferrer"
>
- <DiscordLogo size={16} weight="fill" />
+ <Icon icon={DiscordIcon} size={16} />
Get Help
</Button>
</div>
diff --git a/autogpt_platform/frontend/src/components/molecules/ErrorCard/components/ErrorHeader.tsx b/autogpt_platform/frontend/src/components/molecules/ErrorCard/components/ErrorHeader.tsx
index fe1eb11938..7367be193a 100644
--- a/autogpt_platform/frontend/src/components/molecules/ErrorCard/components/ErrorHeader.tsx
+++ b/autogpt_platform/frontend/src/components/molecules/ErrorCard/components/ErrorHeader.tsx
@@ -1,12 +1,13 @@
import React from "react";
import { Text } from "@/components/atoms/Text/Text";
-import { Warning } from "@phosphor-icons/react";
+import { Alert01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export function ErrorHeader() {
return (
<div className="flex items-center gap-3">
<div className="flex-shrink-0">
- <Warning size={24} weight="fill" className="text-red-400" />
+ <Icon icon={Alert01Icon} size={24} className="text-red-400" />
</div>
<div>
<Text variant="large-semibold" className="text-zinc-800">
diff --git a/autogpt_platform/frontend/src/components/molecules/ErrorCard/components/LoadingState.tsx b/autogpt_platform/frontend/src/components/molecules/ErrorCard/components/LoadingState.tsx
index 697a14b10f..7a276847c1 100644
--- a/autogpt_platform/frontend/src/components/molecules/ErrorCard/components/LoadingState.tsx
+++ b/autogpt_platform/frontend/src/components/molecules/ErrorCard/components/LoadingState.tsx
@@ -1,6 +1,7 @@
import React from "react";
import { Text } from "@/components/atoms/Text/Text";
-import { ArrowClockwise } from "@phosphor-icons/react";
+import { Refresh01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface LoadingStateProps {
loadingSlot?: React.ReactNode;
@@ -11,9 +12,9 @@ export function LoadingState({ loadingSlot }: LoadingStateProps) {
<div className="relative flex items-center justify-center gap-3 p-6">
{loadingSlot || (
<>
- <ArrowClockwise
+ <Icon
+ icon={Refresh01Icon}
size={20}
- weight="bold"
className="animate-spin text-purple-500"
/>
<Text variant="body" className="text-zinc-600">
diff --git a/autogpt_platform/frontend/src/components/molecules/PlanCard/PlanCard.tsx b/autogpt_platform/frontend/src/components/molecules/PlanCard/PlanCard.tsx
index c318063d2c..13fc19f674 100644
--- a/autogpt_platform/frontend/src/components/molecules/PlanCard/PlanCard.tsx
+++ b/autogpt_platform/frontend/src/components/molecules/PlanCard/PlanCard.tsx
@@ -6,10 +6,11 @@ import { motion, useReducedMotion } from "framer-motion";
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
import { cn } from "@/lib/utils";
-import { CheckIcon, StarIcon } from "@phosphor-icons/react";
import { type Country } from "./countries";
import { PLAN_KEYS, type PlanDef, type PlanKey } from "./plans";
import { computePlanPricing } from "./computePricing";
+import { StarIcon, Tick02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
const ZERO_DECIMAL_CODES = new Set(["JPY", "KRW", "HUF", "CLP"]);
@@ -102,9 +103,9 @@ export function PlanCard({
}
}
>
- <StarIcon
+ <Icon
+ icon={StarIcon}
size={10}
- weight="fill"
aria-hidden="true"
className="text-yellow-300"
/>
@@ -219,9 +220,9 @@ export function PlanCard({
isTeam ? "bg-stone-100" : "bg-purple-50",
)}
>
- <CheckIcon
+ <Icon
+ icon={Tick02Icon}
size={10}
- weight="bold"
className={isTeam ? "text-stone-500" : "text-purple-500"}
/>
</span>
diff --git a/autogpt_platform/frontend/src/components/molecules/SearchInput/SearchInput.tsx b/autogpt_platform/frontend/src/components/molecules/SearchInput/SearchInput.tsx
index b8ad7c3322..cafe6ee1cb 100644
--- a/autogpt_platform/frontend/src/components/molecules/SearchInput/SearchInput.tsx
+++ b/autogpt_platform/frontend/src/components/molecules/SearchInput/SearchInput.tsx
@@ -1,13 +1,13 @@
"use client";
import { forwardRef } from "react";
-import {
- CircleNotchIcon,
- MagnifyingGlassIcon,
- XIcon,
-} from "@phosphor-icons/react";
-
import { cn } from "@/lib/utils";
+import {
+ Cancel01Icon,
+ Loading03Icon,
+ Search01Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
value: string;
@@ -49,7 +49,8 @@ export const SearchInput = forwardRef<HTMLInputElement, Props>(
const hasValue = value.length > 0;
return (
<div className={cn("relative w-full", className)}>
- <MagnifyingGlassIcon
+ <Icon
+ icon={Search01Icon}
size={size === "small" ? 16 : 20}
className={cn(
"pointer-events-none absolute top-1/2 -translate-y-1/2 text-muted-foreground",
@@ -80,9 +81,9 @@ export const SearchInput = forwardRef<HTMLInputElement, Props>(
iconOffset[size].right,
)}
>
- <CircleNotchIcon
+ <Icon
+ icon={Loading03Icon}
size={size === "small" ? 14 : 16}
- weight="bold"
className="animate-spin"
/>
</span>
@@ -96,7 +97,7 @@ export const SearchInput = forwardRef<HTMLInputElement, Props>(
iconOffset[size].right,
)}
>
- <XIcon size={size === "small" ? 12 : 14} weight="bold" />
+ <Icon icon={Cancel01Icon} size={size === "small" ? 12 : 14} />
</button>
) : null}
</div>
diff --git a/autogpt_platform/frontend/src/components/molecules/SecondaryMenu/SecondaryMenu.stories.tsx b/autogpt_platform/frontend/src/components/molecules/SecondaryMenu/SecondaryMenu.stories.tsx
index 907a552056..2f666b68a6 100644
--- a/autogpt_platform/frontend/src/components/molecules/SecondaryMenu/SecondaryMenu.stories.tsx
+++ b/autogpt_platform/frontend/src/components/molecules/SecondaryMenu/SecondaryMenu.stories.tsx
@@ -3,12 +3,6 @@ import {
DropdownMenu,
DropdownMenuTrigger,
} from "@/components/molecules/DropdownMenu/DropdownMenu";
-import {
- ArrowSquareOutIcon,
- CopyIcon,
- DotsThreeOutlineVerticalIcon,
- TrashIcon,
-} from "@phosphor-icons/react";
import * as ContextMenu from "@radix-ui/react-context-menu";
import type { Meta, StoryObj } from "@storybook/nextjs";
import {
@@ -19,6 +13,13 @@ import {
SecondaryMenuItem,
SecondaryMenuSeparator,
} from "./SecondaryMenu";
+import {
+ Copy01Icon,
+ Delete02Icon,
+ LinkSquare01Icon,
+ MoreVerticalIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
const meta: Meta = {
title: "Molecules/SecondaryMenu",
@@ -39,11 +40,19 @@ export const ContextMenuExample: Story = {
</ContextMenu.Trigger>
<SecondaryMenuContent>
<SecondaryMenuItem onSelect={() => alert("Copy")}>
- <CopyIcon size={20} className="mr-2 dark:text-gray-100" />
+ <Icon
+ icon={Copy01Icon}
+ size={20}
+ className="mr-2 dark:text-gray-100"
+ />
<span className="dark:text-gray-100">Copy</span>
</SecondaryMenuItem>
<SecondaryMenuItem onSelect={() => alert("Open agent")}>
- <ArrowSquareOutIcon size={20} className="mr-2 dark:text-gray-100" />
+ <Icon
+ icon={LinkSquare01Icon}
+ size={20}
+ className="mr-2 dark:text-gray-100"
+ />
<span className="dark:text-gray-100">Open agent</span>
</SecondaryMenuItem>
<SecondaryMenuSeparator />
@@ -51,7 +60,8 @@ export const ContextMenuExample: Story = {
variant="destructive"
onSelect={() => alert("Delete")}
>
- <TrashIcon
+ <Icon
+ icon={Delete02Icon}
size={20}
className="mr-2 text-red-500 dark:text-red-400"
/>
@@ -69,16 +79,24 @@ export const DropdownMenuExample: Story = {
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="secondary" size="small">
- <DotsThreeOutlineVerticalIcon size={16} weight="fill" />
+ <Icon icon={MoreVerticalIcon} size={16} />
</Button>
</DropdownMenuTrigger>
<SecondaryDropdownMenuContent side="right" align="start">
<SecondaryDropdownMenuItem onClick={() => alert("Copy")}>
- <CopyIcon size={20} className="mr-2 dark:text-gray-100" />
+ <Icon
+ icon={Copy01Icon}
+ size={20}
+ className="mr-2 dark:text-gray-100"
+ />
<span className="dark:text-gray-100">Copy</span>
</SecondaryDropdownMenuItem>
<SecondaryDropdownMenuItem onClick={() => alert("Open agent")}>
- <ArrowSquareOutIcon size={20} className="mr-2 dark:text-gray-100" />
+ <Icon
+ icon={LinkSquare01Icon}
+ size={20}
+ className="mr-2 dark:text-gray-100"
+ />
<span className="dark:text-gray-100">Open agent</span>
</SecondaryDropdownMenuItem>
<SecondaryDropdownMenuSeparator />
@@ -86,7 +104,8 @@ export const DropdownMenuExample: Story = {
variant="destructive"
onClick={() => alert("Delete")}
>
- <TrashIcon
+ <Icon
+ icon={Delete02Icon}
size={20}
className="mr-2 text-red-500 dark:text-red-400"
/>
diff --git a/autogpt_platform/frontend/src/components/molecules/ShowMore/ShowMore.tsx b/autogpt_platform/frontend/src/components/molecules/ShowMore/ShowMore.tsx
index ab6fdde6b2..f89fde63ea 100644
--- a/autogpt_platform/frontend/src/components/molecules/ShowMore/ShowMore.tsx
+++ b/autogpt_platform/frontend/src/components/molecules/ShowMore/ShowMore.tsx
@@ -2,9 +2,10 @@
import React from "react";
import { cn } from "@/lib/utils";
-import { CaretDownIcon, CaretUpIcon } from "@phosphor-icons/react";
import { Text } from "@/components/atoms/Text/Text";
import { getIconSize, ShowMoreTextVariant } from "./helpers";
+import { ArrowDown01Icon, ArrowUp01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface ShowMoreProps {
children: string;
@@ -62,12 +63,12 @@ export function ShowMore({
>
{isExpanded ? (
<>
- <CaretUpIcon size={iconSize} weight="bold" />
+ <Icon icon={ArrowUp01Icon} size={iconSize} />
<span>less</span>
</>
) : (
<>
- <CaretDownIcon size={iconSize} weight="bold" />
+ <Icon icon={ArrowDown01Icon} size={iconSize} />
<span>more</span>
</>
)}
diff --git a/autogpt_platform/frontend/src/components/molecules/file-tree.tsx b/autogpt_platform/frontend/src/components/molecules/file-tree.tsx
index 49d7209b5e..aa4044bd4f 100644
--- a/autogpt_platform/frontend/src/components/molecules/file-tree.tsx
+++ b/autogpt_platform/frontend/src/components/molecules/file-tree.tsx
@@ -9,15 +9,15 @@ import React, {
useState,
} from "react";
import * as AccordionPrimitive from "@radix-ui/react-accordion";
-import {
- File as PhFileIcon,
- Folder as PhFolderIcon,
- FolderOpen as PhFolderOpenIcon,
-} from "@phosphor-icons/react";
-
import { cn } from "@/lib/utils";
import { Button } from "@/components/ui/button";
import { ScrollArea } from "@/components/ui/scroll-area";
+import {
+ FileEmpty02Icon,
+ Folder01Icon,
+ FolderOpenIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type TreeViewElement = {
id: string;
@@ -257,8 +257,8 @@ const Folder = forwardRef<
onClick={() => handleExpand(value)}
>
{expandedItems?.includes(value)
- ? (openIcon ?? <PhFolderOpenIcon className="size-4" />)
- : (closeIcon ?? <PhFolderIcon className="size-4" />)}
+ ? (openIcon ?? <Icon icon={FolderOpenIcon} className="size-4" />)
+ : (closeIcon ?? <Icon icon={Folder01Icon} className="size-4" />)}
<span>{element}</span>
</AccordionPrimitive.Trigger>
<AccordionPrimitive.Content className="relative h-full overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down">
@@ -325,7 +325,7 @@ const File = forwardRef<
onClick={() => selectItem(value)}
{...props}
>
- {fileIcon ?? <PhFileIcon className="size-4" />}
+ {fileIcon ?? <Icon icon={FileEmpty02Icon} className="size-4" />}
{children}
</button>
);
diff --git a/autogpt_platform/frontend/src/components/organisms/FloatingReviewsPanel/FloatingReviewsPanel.tsx b/autogpt_platform/frontend/src/components/organisms/FloatingReviewsPanel/FloatingReviewsPanel.tsx
index 4805508054..b21007625b 100644
--- a/autogpt_platform/frontend/src/components/organisms/FloatingReviewsPanel/FloatingReviewsPanel.tsx
+++ b/autogpt_platform/frontend/src/components/organisms/FloatingReviewsPanel/FloatingReviewsPanel.tsx
@@ -2,7 +2,6 @@ import { useState, useEffect } from "react";
import { PendingReviewsList } from "@/components/organisms/PendingReviewsList/PendingReviewsList";
import { usePendingReviewsForExecution } from "@/hooks/usePendingReviews";
import { Button } from "@/components/atoms/Button/Button";
-import { ClockIcon, XIcon } from "@phosphor-icons/react";
import { cn } from "@/lib/utils";
import { Text } from "@/components/atoms/Text/Text";
import { useGetV1GetExecutionDetails } from "@/app/api/__generated__/endpoints/graphs/graphs";
@@ -10,6 +9,8 @@ import { AgentExecutionStatus } from "@/app/api/__generated__/models/agentExecut
import { okData } from "@/app/api/helpers";
import { useGraphStore } from "@/app/(platform)/build/stores/graphStore";
import { useShallow } from "zustand/react/shallow";
+import { Cancel01Icon, Clock01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface FloatingReviewsPanelProps {
executionId?: string;
@@ -120,7 +121,7 @@ export function FloatingReviewsPanel({
onClick={() => setIsOpen(true)}
size="large"
variant="primary"
- leftIcon={<ClockIcon size={20} />}
+ leftIcon={<Icon icon={Clock01Icon} size={20} />}
>
{pendingReviews.length} Review
{pendingReviews.length !== 1 ? "s" : ""} Pending
@@ -135,7 +136,7 @@ export function FloatingReviewsPanel({
size="icon"
className="absolute right-4 top-4 z-10"
>
- <XIcon size={16} />
+ <Icon icon={Cancel01Icon} size={16} />
</Button>
<div className="flex-1 overflow-y-auto">
diff --git a/autogpt_platform/frontend/src/components/organisms/PendingReviewsList/PendingReviewsList.tsx b/autogpt_platform/frontend/src/components/organisms/PendingReviewsList/PendingReviewsList.tsx
index 5adb3919b6..9b6c6a0860 100644
--- a/autogpt_platform/frontend/src/components/organisms/PendingReviewsList/PendingReviewsList.tsx
+++ b/autogpt_platform/frontend/src/components/organisms/PendingReviewsList/PendingReviewsList.tsx
@@ -5,13 +5,14 @@ import { Text } from "@/components/atoms/Text/Text";
import { Button } from "@/components/atoms/Button/Button";
import { Switch } from "@/components/atoms/Switch/Switch";
import { useToast } from "@/components/molecules/Toast/use-toast";
-import {
- ClockIcon,
- WarningIcon,
- CaretDownIcon,
- CaretRightIcon,
-} from "@phosphor-icons/react";
import { usePostV2ProcessReviewAction } from "@/app/api/__generated__/endpoints/executions/executions";
+import {
+ Alert01Icon,
+ ArrowDown01Icon,
+ ArrowRight01Icon,
+ Clock01Icon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface PendingReviewsListProps {
reviews: PendingHumanReviewModel[];
@@ -196,7 +197,11 @@ export function PendingReviewsList({
if (reviews.length === 0) {
return (
<div className="flex flex-col items-center justify-center py-12 text-center">
- <ClockIcon size={48} className="mb-4 text-muted-foreground" />
+ <Icon
+ icon={Clock01Icon}
+ size={48}
+ className="mb-4 text-muted-foreground"
+ />
<Text variant="h4" className="text-muted-foreground">
{emptyMessage}
</Text>
@@ -212,10 +217,10 @@ export function PendingReviewsList({
<div className="space-y-7 rounded-xl border border-yellow-150 bg-yellow-25 p-6">
<div className="space-y-6">
<div className="flex items-start gap-2">
- <WarningIcon
+ <Icon
+ icon={Alert01Icon}
size={28}
className="fill-yellow-600 text-white"
- weight="fill"
/>
<Text
variant="large-semibold"
@@ -251,9 +256,17 @@ export function PendingReviewsList({
className="flex w-full items-center gap-2 text-left"
>
{isCollapsed ? (
- <CaretRightIcon size={20} className="text-gray-600" />
+ <Icon
+ icon={ArrowRight01Icon}
+ size={20}
+ className="text-gray-600"
+ />
) : (
- <CaretDownIcon size={20} className="text-gray-600" />
+ <Icon
+ icon={ArrowDown01Icon}
+ size={20}
+ className="text-gray-600"
+ />
)}
<div className="flex-1">
<Text variant="body" className="font-semibold text-gray-900">
diff --git a/autogpt_platform/frontend/src/components/organisms/SearchCommandModal/SearchCommandModal.stories.tsx b/autogpt_platform/frontend/src/components/organisms/SearchCommandModal/SearchCommandModal.stories.tsx
index f38391bfa7..3ba44c2904 100644
--- a/autogpt_platform/frontend/src/components/organisms/SearchCommandModal/SearchCommandModal.stories.tsx
+++ b/autogpt_platform/frontend/src/components/organisms/SearchCommandModal/SearchCommandModal.stories.tsx
@@ -1,13 +1,14 @@
import type { Meta, StoryObj } from "@storybook/nextjs";
-import {
- BookOpenIcon,
- ChatCircleIcon,
- FileIcon,
- StorefrontIcon,
-} from "@phosphor-icons/react";
import { useState } from "react";
import { SearchCommandModal } from "./SearchCommandModal";
import type { SearchCommandBucket } from "./helpers";
+import {
+ BookOpen01Icon,
+ BubbleChatIcon,
+ FileEmpty02Icon,
+ Store01Icon,
+} from "@hugeicons/core-free-icons";
+import { createIconComponent } from "@/components/atoms/Icon/Icon";
const FIXTURE_BUCKETS: SearchCommandBucket[] = [
{
@@ -17,12 +18,12 @@ const FIXTURE_BUCKETS: SearchCommandBucket[] = [
{
id: "chat-1",
title: "Debugging the YouTube agent failures",
- icon: ChatCircleIcon,
+ icon: createIconComponent(BubbleChatIcon),
},
{
id: "chat-2",
title: "Planning the launch announcement",
- icon: ChatCircleIcon,
+ icon: createIconComponent(BubbleChatIcon),
},
],
},
@@ -34,19 +35,19 @@ const FIXTURE_BUCKETS: SearchCommandBucket[] = [
id: "agent-1",
title: "YouTube Video Summarizer",
subtitle: "Summarize any YouTube video into bullet points",
- icon: BookOpenIcon,
+ icon: createIconComponent(BookOpen01Icon),
},
{
id: "agent-2",
title: "Email Triage Bot",
subtitle: "by hackergrrl",
- icon: StorefrontIcon,
+ icon: createIconComponent(Store01Icon),
},
{
id: "agent-3",
title: "PDF Question Answerer",
subtitle: "Ask questions about uploaded PDFs",
- icon: BookOpenIcon,
+ icon: createIconComponent(BookOpen01Icon),
},
],
},
@@ -58,13 +59,13 @@ const FIXTURE_BUCKETS: SearchCommandBucket[] = [
id: "file-1",
title: "Q4-roadmap.pdf",
subtitle: "/projects/planning",
- icon: FileIcon,
+ icon: createIconComponent(FileEmpty02Icon),
},
{
id: "file-2",
title: "competitor-analysis.md",
subtitle: "/research",
- icon: FileIcon,
+ icon: createIconComponent(FileEmpty02Icon),
},
],
},
diff --git a/autogpt_platform/frontend/src/components/organisms/SearchCommandModal/SearchCommandModal.tsx b/autogpt_platform/frontend/src/components/organisms/SearchCommandModal/SearchCommandModal.tsx
index 5a0a70991d..592bba3b10 100644
--- a/autogpt_platform/frontend/src/components/organisms/SearchCommandModal/SearchCommandModal.tsx
+++ b/autogpt_platform/frontend/src/components/organisms/SearchCommandModal/SearchCommandModal.tsx
@@ -3,7 +3,6 @@ import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { Separator } from "@/components/ui/separator";
import { cn } from "@/lib/utils";
-import { MagnifyingGlassIcon, XIcon } from "@phosphor-icons/react";
import * as RXDialog from "@radix-ui/react-dialog";
import { useId, useRef, type KeyboardEvent, type ReactNode } from "react";
import {
@@ -15,6 +14,8 @@ import {
import { SearchCommandResults } from "./SearchCommandResults";
import { SearchCommandSkeleton } from "./SearchCommandSkeleton";
import { useKeyboardNav } from "./useKeyboardNav";
+import { Cancel01Icon, Search01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface Props {
isOpen: boolean;
@@ -126,7 +127,10 @@ export function SearchCommandModal({
Search commands and results.
</RXDialog.Description>
<div className="flex items-center gap-3 bg-zinc-50 p-3">
- <MagnifyingGlassIcon className="h-5 w-5 shrink-0 text-zinc-800" />
+ <Icon
+ icon={Search01Icon}
+ className="h-5 w-5 shrink-0 text-zinc-800"
+ />
<Input
ref={inputRef}
value={query}
@@ -158,7 +162,7 @@ export function SearchCommandModal({
onClick={() => onQueryChange("")}
className="shrink-0"
>
- <XIcon className="h-4 w-4" />
+ <Icon icon={Cancel01Icon} className="h-4 w-4" />
</Button>
) : null}
</div>
diff --git a/autogpt_platform/frontend/src/components/organisms/SearchCommandModal/__tests__/SearchCommandModal.test.tsx b/autogpt_platform/frontend/src/components/organisms/SearchCommandModal/__tests__/SearchCommandModal.test.tsx
index 0326ec1a62..e3cdff80f5 100644
--- a/autogpt_platform/frontend/src/components/organisms/SearchCommandModal/__tests__/SearchCommandModal.test.tsx
+++ b/autogpt_platform/frontend/src/components/organisms/SearchCommandModal/__tests__/SearchCommandModal.test.tsx
@@ -1,10 +1,11 @@
-import { BookOpenIcon, ChatCircleIcon } from "@phosphor-icons/react";
import { fireEvent, render, screen } from "@/tests/integrations/test-utils";
import userEvent from "@testing-library/user-event";
import { useState } from "react";
import { describe, expect, it, vi } from "vitest";
import type { SearchCommandBucket } from "../helpers";
import { SearchCommandModal } from "../SearchCommandModal";
+import { BookOpen01Icon, BubbleChatIcon } from "@hugeicons/core-free-icons";
+import { createIconComponent } from "@/components/atoms/Icon/Icon";
const BASE_BUCKETS: SearchCommandBucket[] = [
{
@@ -15,13 +16,13 @@ const BASE_BUCKETS: SearchCommandBucket[] = [
id: "a1",
title: "Alpha agent",
subtitle: "library row",
- icon: BookOpenIcon,
+ icon: createIconComponent(BookOpen01Icon),
},
{
id: "a2",
title: "Bravo store",
subtitle: "by acme",
- icon: BookOpenIcon,
+ icon: createIconComponent(BookOpen01Icon),
},
],
},
@@ -33,7 +34,7 @@ const BASE_BUCKETS: SearchCommandBucket[] = [
id: "f1",
title: "notes.md",
subtitle: "/docs",
- icon: BookOpenIcon,
+ icon: createIconComponent(BookOpen01Icon),
},
],
},
@@ -44,7 +45,7 @@ const BASE_BUCKETS: SearchCommandBucket[] = [
{
id: "c1",
title: "Charlie chat",
- icon: ChatCircleIcon,
+ icon: createIconComponent(BubbleChatIcon),
},
],
},
diff --git a/autogpt_platform/frontend/src/components/renderers/InputRenderer/base/standard/DescriptionField.tsx b/autogpt_platform/frontend/src/components/renderers/InputRenderer/base/standard/DescriptionField.tsx
index 65b5e4be43..455d6304db 100644
--- a/autogpt_platform/frontend/src/components/renderers/InputRenderer/base/standard/DescriptionField.tsx
+++ b/autogpt_platform/frontend/src/components/renderers/InputRenderer/base/standard/DescriptionField.tsx
@@ -1,11 +1,12 @@
import { DescriptionFieldProps } from "@rjsf/utils";
import { RichDescription } from "@rjsf/core";
-import { InfoIcon } from "@phosphor-icons/react";
import {
Tooltip,
TooltipContent,
TooltipTrigger,
} from "@/components/atoms/Tooltip/BaseTooltip";
+import { InformationCircleIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export default function DescriptionField(props: DescriptionFieldProps) {
const { id, description, registry, uiSchema } = props;
@@ -17,7 +18,11 @@ export default function DescriptionField(props: DescriptionFieldProps) {
<div id={id} className="0 inline w-fit">
<Tooltip>
<TooltipTrigger asChild>
- <InfoIcon size={16} className="cursor-pointer" />
+ <Icon
+ icon={InformationCircleIcon}
+ size={16}
+ className="cursor-pointer"
+ />
</TooltipTrigger>
<TooltipContent>
<RichDescription
diff --git a/autogpt_platform/frontend/src/components/renderers/InputRenderer/base/standard/buttons/AddButton.tsx b/autogpt_platform/frontend/src/components/renderers/InputRenderer/base/standard/buttons/AddButton.tsx
index 901716f56a..38078b9922 100644
--- a/autogpt_platform/frontend/src/components/renderers/InputRenderer/base/standard/buttons/AddButton.tsx
+++ b/autogpt_platform/frontend/src/components/renderers/InputRenderer/base/standard/buttons/AddButton.tsx
@@ -1,7 +1,8 @@
import { IconButtonProps, TranslatableString } from "@rjsf/utils";
import { cn } from "@/lib/utils";
import { Button } from "@/components/atoms/Button/Button";
-import { PlusIcon } from "@phosphor-icons/react";
+import { PlusSignIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export default function AddButton({
registry,
@@ -19,7 +20,7 @@ export default function AddButton({
variant="secondary"
type="button"
>
- <PlusIcon size={16} weight="bold" />
+ <Icon icon={PlusSignIcon} size={16} />
{translateString(TranslatableString.AddItemButton)}
</Button>
</div>
diff --git a/autogpt_platform/frontend/src/components/renderers/InputRenderer/base/standard/buttons/IconButton.tsx b/autogpt_platform/frontend/src/components/renderers/InputRenderer/base/standard/buttons/IconButton.tsx
index 4a7f011b82..4f05e8e8bf 100644
--- a/autogpt_platform/frontend/src/components/renderers/InputRenderer/base/standard/buttons/IconButton.tsx
+++ b/autogpt_platform/frontend/src/components/renderers/InputRenderer/base/standard/buttons/IconButton.tsx
@@ -10,9 +10,10 @@ import type { VariantProps } from "class-variance-authority";
import { Button } from "@/components/atoms/Button/Button";
import { extendedButtonVariants } from "@/components/atoms/Button/helpers";
-import { TrashIcon } from "@phosphor-icons/react";
import { cn } from "@/lib/utils";
import { Text } from "@/components/atoms/Text/Text";
+import { Delete02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export type AutogptIconButtonProps<
T = any,
@@ -95,7 +96,7 @@ export function RemoveButton(props: AutogptIconButtonProps) {
title={translateString(TranslatableString.RemoveButton)}
{...props}
className={"border-destructive"}
- icon={<TrashIcon size={16} className="!text-zinc-800" />}
+ icon={<Icon icon={Delete02Icon} size={16} className="!text-zinc-800" />}
/>
);
}
diff --git a/autogpt_platform/frontend/src/components/renderers/InputRenderer/base/standard/widgets/TextInput/TextInputExpanderModal.tsx b/autogpt_platform/frontend/src/components/renderers/InputRenderer/base/standard/widgets/TextInput/TextInputExpanderModal.tsx
index 9ad181710f..ab4f224194 100644
--- a/autogpt_platform/frontend/src/components/renderers/InputRenderer/base/standard/widgets/TextInput/TextInputExpanderModal.tsx
+++ b/autogpt_platform/frontend/src/components/renderers/InputRenderer/base/standard/widgets/TextInput/TextInputExpanderModal.tsx
@@ -4,10 +4,11 @@ import React, { FC, useEffect, useState } from "react";
import { Button } from "@/components/atoms/Button/Button";
import { Text } from "@/components/atoms/Text/Text";
import { useToast } from "@/components/molecules/Toast/use-toast";
-import { CheckIcon, CopyIcon } from "@phosphor-icons/react";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
import { cn } from "@/lib/utils";
import { Input } from "@/components/atoms/Input/Input";
+import { Copy01Icon, Tick02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface InputExpanderModalProps {
isOpen: boolean;
@@ -99,9 +100,9 @@ export const InputExpanderModal: FC<InputExpanderModalProps> = ({
)}
>
{isCopied ? (
- <CheckIcon size={16} className="text-green-600" />
+ <Icon icon={Tick02Icon} size={16} className="text-green-600" />
) : (
- <CopyIcon size={16} />
+ <Icon icon={Copy01Icon} size={16} />
)}
</Button>
</div>
diff --git a/autogpt_platform/frontend/src/components/renderers/InputRenderer/base/standard/widgets/TextInput/TextWidget.tsx b/autogpt_platform/frontend/src/components/renderers/InputRenderer/base/standard/widgets/TextInput/TextWidget.tsx
index 34b0103114..80df5f6ad5 100644
--- a/autogpt_platform/frontend/src/components/renderers/InputRenderer/base/standard/widgets/TextInput/TextWidget.tsx
+++ b/autogpt_platform/frontend/src/components/renderers/InputRenderer/base/standard/widgets/TextInput/TextWidget.tsx
@@ -14,8 +14,9 @@ import {
TooltipTrigger,
} from "@/components/atoms/Tooltip/BaseTooltip";
import { BlockUIType } from "@/lib/autogpt-server-api/types";
-import { ArrowsOutIcon } from "@phosphor-icons/react";
import { InputExpanderModal } from "./TextInputExpanderModal";
+import { ArrowExpandIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export default function TextWidget(props: WidgetProps) {
const { schema, placeholder, registry } = props;
@@ -147,7 +148,7 @@ export default function TextWidget(props: WidgetProps) {
type="button"
className="p-1"
>
- <ArrowsOutIcon className="size-4" />
+ <Icon icon={ArrowExpandIcon} className="size-4" />
</Button>
</TooltipTrigger>
<TooltipContent>Expand input</TooltipContent>
diff --git a/autogpt_platform/frontend/src/components/renderers/InputRenderer/custom/CredentialField/helpers.ts b/autogpt_platform/frontend/src/components/renderers/InputRenderer/custom/CredentialField/helpers.ts
index e2b1a05d54..fd5c07443b 100644
--- a/autogpt_platform/frontend/src/components/renderers/InputRenderer/custom/CredentialField/helpers.ts
+++ b/autogpt_platform/frontend/src/components/renderers/InputRenderer/custom/CredentialField/helpers.ts
@@ -2,15 +2,15 @@ import { CredentialsMetaResponse } from "@/app/api/__generated__/models/credenti
import { BlockIOCredentialsSubSchema } from "@/lib/autogpt-server-api";
import { getHostFromUrl } from "@/lib/utils/url";
import {
- GoogleLogoIcon,
- KeyholeIcon,
- NotionLogoIcon,
- DiscordLogoIcon,
- MediumLogoIcon,
- GithubLogoIcon,
- TwitterLogoIcon,
- Icon,
-} from "@phosphor-icons/react";
+ DiscordIcon,
+ GithubIcon,
+ GoogleIcon,
+ LockKeyIcon,
+ MediumIcon,
+ Notion01Icon,
+ TwitterIcon,
+} from "@hugeicons/core-free-icons";
+import type { IconSvgElement } from "@hugeicons/react";
export const filterCredentialsByProvider = (
credentials: CredentialsMetaResponse[] | undefined,
@@ -90,46 +90,46 @@ export function isCredentialFieldSchema(schema: any): boolean {
);
}
-export const providerIcons: Partial<Record<string, Icon>> = {
- aiml_api: KeyholeIcon,
- anthropic: KeyholeIcon,
- apollo: KeyholeIcon,
- e2b: KeyholeIcon,
- github: GithubLogoIcon,
- google: GoogleLogoIcon,
- groq: KeyholeIcon,
- http: KeyholeIcon,
- notion: NotionLogoIcon,
- nvidia: KeyholeIcon,
- discord: DiscordLogoIcon,
- d_id: KeyholeIcon,
- google_maps: GoogleLogoIcon,
- jina: KeyholeIcon,
- ideogram: KeyholeIcon,
- linear: KeyholeIcon,
- medium: MediumLogoIcon,
- mem0: KeyholeIcon,
- ollama: KeyholeIcon,
- openai: KeyholeIcon,
- openweathermap: KeyholeIcon,
- open_router: KeyholeIcon,
- llama_api: KeyholeIcon,
- pinecone: KeyholeIcon,
- enrichlayer: KeyholeIcon,
- slant3d: KeyholeIcon,
- screenshotone: KeyholeIcon,
- smtp: KeyholeIcon,
- replicate: KeyholeIcon,
- reddit: KeyholeIcon,
- fal: KeyholeIcon,
- revid: KeyholeIcon,
- twitter: TwitterLogoIcon,
- unreal_speech: KeyholeIcon,
- exa: KeyholeIcon,
- hubspot: KeyholeIcon,
- smartlead: KeyholeIcon,
- todoist: KeyholeIcon,
- zerobounce: KeyholeIcon,
+export const providerIcons: Partial<Record<string, IconSvgElement>> = {
+ aiml_api: LockKeyIcon,
+ anthropic: LockKeyIcon,
+ apollo: LockKeyIcon,
+ e2b: LockKeyIcon,
+ github: GithubIcon,
+ google: GoogleIcon,
+ groq: LockKeyIcon,
+ http: LockKeyIcon,
+ notion: Notion01Icon,
+ nvidia: LockKeyIcon,
+ discord: DiscordIcon,
+ d_id: LockKeyIcon,
+ google_maps: GoogleIcon,
+ jina: LockKeyIcon,
+ ideogram: LockKeyIcon,
+ linear: LockKeyIcon,
+ medium: MediumIcon,
+ mem0: LockKeyIcon,
+ ollama: LockKeyIcon,
+ openai: LockKeyIcon,
+ openweathermap: LockKeyIcon,
+ open_router: LockKeyIcon,
+ llama_api: LockKeyIcon,
+ pinecone: LockKeyIcon,
+ enrichlayer: LockKeyIcon,
+ slant3d: LockKeyIcon,
+ screenshotone: LockKeyIcon,
+ smtp: LockKeyIcon,
+ replicate: LockKeyIcon,
+ reddit: LockKeyIcon,
+ fal: LockKeyIcon,
+ revid: LockKeyIcon,
+ twitter: TwitterIcon,
+ unreal_speech: LockKeyIcon,
+ exa: LockKeyIcon,
+ hubspot: LockKeyIcon,
+ smartlead: LockKeyIcon,
+ todoist: LockKeyIcon,
+ zerobounce: LockKeyIcon,
};
export const getDiscriminatorValue = (
diff --git a/autogpt_platform/frontend/src/components/renderers/InputRenderer/custom/JsonTextField/JsonTextField.tsx b/autogpt_platform/frontend/src/components/renderers/InputRenderer/custom/JsonTextField/JsonTextField.tsx
index dc7738320a..5dca779156 100644
--- a/autogpt_platform/frontend/src/components/renderers/InputRenderer/custom/JsonTextField/JsonTextField.tsx
+++ b/autogpt_platform/frontend/src/components/renderers/InputRenderer/custom/JsonTextField/JsonTextField.tsx
@@ -8,11 +8,12 @@ import {
TooltipContent,
TooltipTrigger,
} from "@/components/atoms/Tooltip/BaseTooltip";
-import { ArrowsOutIcon } from "@phosphor-icons/react";
import { InputExpanderModal } from "../../base/standard/widgets/TextInput/TextInputExpanderModal";
import { getHandleId, updateUiOption } from "../../helpers";
import { useJsonTextField } from "./useJsonTextField";
import { getPlaceholder } from "./helpers";
+import { ArrowExpandIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
export const JsonTextField = (props: FieldProps) => {
const {
@@ -97,7 +98,7 @@ export const JsonTextField = (props: FieldProps) => {
type="button"
className="p-1"
>
- <ArrowsOutIcon className="size-4" />
+ <Icon icon={ArrowExpandIcon} className="size-4" />
</Button>
</TooltipTrigger>
<TooltipContent>Expand input</TooltipContent>
diff --git a/autogpt_platform/frontend/src/components/renderers/InputRenderer/custom/LlmModelField/components/LlmMenuHeader.tsx b/autogpt_platform/frontend/src/components/renderers/InputRenderer/custom/LlmModelField/components/LlmMenuHeader.tsx
index 40bce8dafc..cabc6dbe22 100644
--- a/autogpt_platform/frontend/src/components/renderers/InputRenderer/custom/LlmModelField/components/LlmMenuHeader.tsx
+++ b/autogpt_platform/frontend/src/components/renderers/InputRenderer/custom/LlmModelField/components/LlmMenuHeader.tsx
@@ -1,7 +1,7 @@
"use client";
-
-import { ArrowLeftIcon } from "@phosphor-icons/react";
import { Text } from "@/components/atoms/Text/Text";
+import { ArrowLeft02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type Props = {
label: string;
@@ -15,7 +15,7 @@ export function LlmMenuHeader({ label, onBack }: Props) {
onClick={onBack}
className="flex w-full items-center gap-2 px-2 py-2 text-left hover:bg-zinc-100"
>
- <ArrowLeftIcon className="h-4 w-4 text-zinc-800" weight="bold" />
+ <Icon icon={ArrowLeft02Icon} className="h-4 w-4 text-zinc-800" />
<Text variant="body" className="text-zinc-900">
{label}
</Text>
diff --git a/autogpt_platform/frontend/src/components/renderers/InputRenderer/custom/LlmModelField/components/LlmMenuItem.tsx b/autogpt_platform/frontend/src/components/renderers/InputRenderer/custom/LlmModelField/components/LlmMenuItem.tsx
index 02f8eb968d..1c1fa8a0e2 100644
--- a/autogpt_platform/frontend/src/components/renderers/InputRenderer/custom/LlmModelField/components/LlmMenuItem.tsx
+++ b/autogpt_platform/frontend/src/components/renderers/InputRenderer/custom/LlmModelField/components/LlmMenuItem.tsx
@@ -1,8 +1,8 @@
"use client";
-
-import { CaretRightIcon, CheckIcon } from "@phosphor-icons/react";
import { Text } from "@/components/atoms/Text/Text";
import { cn } from "@/lib/utils";
+import { ArrowRight01Icon, Tick02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type Props = {
title: string;
@@ -40,11 +40,11 @@ export function LlmMenuItem({
</div>
<div className="flex items-center gap-2">
{isActive && (
- <CheckIcon className="h-4 w-4 text-emerald-600" weight="bold" />
+ <Icon icon={Tick02Icon} className="h-4 w-4 text-emerald-600" />
)}
{rightSlot}
{showChevron && (
- <CaretRightIcon className="h-4 w-4 text-zinc-900" weight="bold" />
+ <Icon icon={ArrowRight01Icon} className="h-4 w-4 text-zinc-900" />
)}
</div>
</div>
diff --git a/autogpt_platform/frontend/src/components/renderers/InputRenderer/custom/LlmModelField/components/LlmModelPicker.tsx b/autogpt_platform/frontend/src/components/renderers/InputRenderer/custom/LlmModelField/components/LlmModelPicker.tsx
index d385183dfc..7286d85c63 100644
--- a/autogpt_platform/frontend/src/components/renderers/InputRenderer/custom/LlmModelField/components/LlmModelPicker.tsx
+++ b/autogpt_platform/frontend/src/components/renderers/InputRenderer/custom/LlmModelField/components/LlmModelPicker.tsx
@@ -1,7 +1,6 @@
"use client";
import { useCallback, useEffect, useMemo, useState } from "react";
-import { CaretDownIcon } from "@phosphor-icons/react";
import {
Popover,
PopoverContent,
@@ -21,6 +20,8 @@ import { LlmIcon } from "./LlmIcon";
import { LlmMenuHeader } from "./LlmMenuHeader";
import { LlmMenuItem } from "./LlmMenuItem";
import { LlmPriceTier } from "./LlmPriceTier";
+import { ArrowDown01Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type MenuView = "creator" | "model" | "provider";
@@ -149,7 +150,7 @@ export function LlmModelPicker({
<Text variant="body" className="ml-1 flex-1 text-zinc-900">
{triggerTitle}
</Text>
- <CaretDownIcon className="h-3 w-3 text-zinc-900" weight="bold" />
+ <Icon icon={ArrowDown01Icon} className="h-3 w-3 text-zinc-900" />
</button>
</PopoverTrigger>
<PopoverContent
diff --git a/autogpt_platform/frontend/src/components/renderers/InputRenderer/custom/LlmModelField/components/LlmPriceTier.tsx b/autogpt_platform/frontend/src/components/renderers/InputRenderer/custom/LlmModelField/components/LlmPriceTier.tsx
index 2913c5dff0..fa42b9e58a 100644
--- a/autogpt_platform/frontend/src/components/renderers/InputRenderer/custom/LlmModelField/components/LlmPriceTier.tsx
+++ b/autogpt_platform/frontend/src/components/renderers/InputRenderer/custom/LlmModelField/components/LlmPriceTier.tsx
@@ -1,6 +1,7 @@
"use client";
-import { CurrencyDollarSimpleIcon } from "@phosphor-icons/react";
+import { DollarSignIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
type Props = {
tier?: number;
@@ -14,10 +15,10 @@ export function LlmPriceTier({ tier }: Props) {
return (
<div className="flex items-center text-zinc-900">
{Array.from({ length: clamped }).map((_, index) => (
- <CurrencyDollarSimpleIcon
+ <Icon
+ icon={DollarSignIcon}
key={`price-${index}`}
className="-mr-0.5 h-3 w-3"
- weight="bold"
/>
))}
</div>
diff --git a/autogpt_platform/frontend/src/components/tokens/icons.stories.tsx b/autogpt_platform/frontend/src/components/tokens/icons.stories.tsx
index a6b53bc21d..c546443873 100644
--- a/autogpt_platform/frontend/src/components/tokens/icons.stories.tsx
+++ b/autogpt_platform/frontend/src/components/tokens/icons.stories.tsx
@@ -1,45 +1,46 @@
import { Text } from "@/components/atoms/Text/Text";
-import {
- Alien,
- ArrowClockwise,
- ArrowCounterClockwise,
- ArrowLeft,
- ArrowRight,
- Bell,
- Books,
- Check,
- CloudArrowUp,
- Copy,
- Cube,
- Download,
- FacebookLogo,
- FloppyDisk,
- FlowArrow,
- Gear,
- GithubLogo,
- Info,
- InstagramLogo,
- Key,
- LinkedinLogo,
- List,
- Package,
- PencilSimple,
- Play,
- ArrowClockwise as Redo,
- SignOut,
- SquaresFour,
- Trash,
- User,
- UserCircle,
- UserPlus,
- Warning,
- X,
- XLogo,
- YoutubeLogo,
-} from "@phosphor-icons/react";
import type { Meta } from "@storybook/nextjs";
import { SquareArrowOutUpRight } from "lucide-react";
import { StoryCode } from "./helpers/StoryCode";
+import {
+ Alert01Icon,
+ Alien01Icon,
+ ArrowLeft02Icon,
+ ArrowRight02Icon,
+ BellIcon,
+ Cancel01Icon,
+ CloudUploadIcon,
+ Copy01Icon,
+ CubeIcon,
+ Delete02Icon,
+ Download04Icon,
+ Facebook02Icon,
+ FloppyDiskIcon,
+ FlowIcon,
+ GithubIcon,
+ GridViewIcon,
+ InformationCircleIcon,
+ InstagramIcon,
+ Key01Icon,
+ LibraryIcon,
+ Linkedin01Icon,
+ Logout03Icon,
+ Menu01Icon,
+ NewTwitterIcon,
+ Package01Icon,
+ PencilIcon,
+ PlayIcon,
+ Refresh01Icon,
+ RefreshIcon,
+ Settings01Icon,
+ Tick02Icon,
+ UserAdd01Icon,
+ UserCircleIcon,
+ UserIcon,
+ YoutubeIcon,
+} from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
+import type { IconSvgElement } from "@hugeicons/react";
const meta: Meta = {
title: "Tokens /Icons",
@@ -51,101 +52,134 @@ const meta: Meta = {
export default meta;
-// Icon categories with examples
-const iconCategories = [
+interface CatalogEntry {
+ icon: IconSvgElement;
+ /** Role the icon plays in the product. */
+ name: string;
+ /** Export name to import from ``@hugeicons/core-free-icons``. */
+ hugeiconsName: string;
+}
+
+interface CatalogCategory {
+ name: string;
+ description: string;
+ icons: CatalogEntry[];
+}
+
+const iconCategories: CatalogCategory[] = [
{
name: "User & Authentication",
description: "Icons for user-related actions and authentication flows",
icons: [
- { component: User, name: "User", phosphorName: "User" },
- { component: UserPlus, name: "UserPlus", phosphorName: "UserPlus" },
- { component: UserCircle, name: "UserCircle", phosphorName: "UserCircle" },
- { component: Key, name: "Key", phosphorName: "Key" },
- { component: SignOut, name: "SignOut", phosphorName: "SignOut" },
+ { icon: UserIcon, name: "User", hugeiconsName: "UserIcon" },
+ { icon: UserAdd01Icon, name: "UserPlus", hugeiconsName: "UserAdd01Icon" },
+ {
+ icon: UserCircleIcon,
+ name: "UserCircle",
+ hugeiconsName: "UserCircleIcon",
+ },
+ { icon: Key01Icon, name: "Key", hugeiconsName: "Key01Icon" },
+ { icon: Logout03Icon, name: "SignOut", hugeiconsName: "Logout03Icon" },
],
},
{
name: "Actions & Controls",
description: "Icons for common user actions and interface controls",
icons: [
- { component: Play, name: "Play", phosphorName: "Play" },
- {
- component: ArrowClockwise,
- name: "Refresh",
- phosphorName: "ArrowClockwise",
- },
- { component: FloppyDisk, name: "Save", phosphorName: "FloppyDisk" },
- {
- component: ArrowCounterClockwise,
- name: "Undo",
- phosphorName: "ArrowCounterClockwise",
- },
- { component: Redo, name: "Redo", phosphorName: "ArrowClockwise" },
- { component: PencilSimple, name: "Edit", phosphorName: "PencilSimple" },
- { component: Copy, name: "Copy", phosphorName: "Copy" },
- { component: Trash, name: "Delete", phosphorName: "Trash" },
+ { icon: PlayIcon, name: "Play", hugeiconsName: "PlayIcon" },
+ { icon: Refresh01Icon, name: "Refresh", hugeiconsName: "Refresh01Icon" },
+ { icon: FloppyDiskIcon, name: "Save", hugeiconsName: "FloppyDiskIcon" },
+ { icon: RefreshIcon, name: "Undo", hugeiconsName: "RefreshIcon" },
+ { icon: Refresh01Icon, name: "Redo", hugeiconsName: "Refresh01Icon" },
+ { icon: PencilIcon, name: "Edit", hugeiconsName: "PencilIcon" },
+ { icon: Copy01Icon, name: "Copy", hugeiconsName: "Copy01Icon" },
+ { icon: Delete02Icon, name: "Delete", hugeiconsName: "Delete02Icon" },
],
},
{
name: "Navigation & Layout",
description: "Icons for navigation, layout, and organizational elements",
icons: [
- { component: List, name: "Menu", phosphorName: "List" },
+ { icon: Menu01Icon, name: "Menu", hugeiconsName: "Menu01Icon" },
+ { icon: GridViewIcon, name: "Dashboard", hugeiconsName: "GridViewIcon" },
+ {
+ icon: ArrowLeft02Icon,
+ name: "ArrowLeft",
+ hugeiconsName: "ArrowLeft02Icon",
+ },
+ {
+ icon: ArrowRight02Icon,
+ name: "ArrowRight",
+ hugeiconsName: "ArrowRight02Icon",
+ },
{
- component: SquaresFour,
- name: "Dashboard",
- phosphorName: "SquaresFour",
+ icon: Settings01Icon,
+ name: "Settings",
+ hugeiconsName: "Settings01Icon",
},
- { component: ArrowLeft, name: "ArrowLeft", phosphorName: "ArrowLeft" },
- { component: ArrowRight, name: "ArrowRight", phosphorName: "ArrowRight" },
- { component: Gear, name: "Settings", phosphorName: "Gear" },
- { component: Books, name: "Library", phosphorName: "Books" },
+ { icon: LibraryIcon, name: "Library", hugeiconsName: "LibraryIcon" },
],
},
{
name: "Content & Media",
description: "Icons for content types, media, and file operations",
icons: [
- { component: CloudArrowUp, name: "Upload", phosphorName: "CloudArrowUp" },
- { component: Download, name: "Download", phosphorName: "Download" },
- { component: Package, name: "Package", phosphorName: "Package" },
- { component: Cube, name: "Block", phosphorName: "Cube" },
- { component: FlowArrow, name: "Workflow", phosphorName: "FlowArrow" },
+ {
+ icon: CloudUploadIcon,
+ name: "Upload",
+ hugeiconsName: "CloudUploadIcon",
+ },
+ {
+ icon: Download04Icon,
+ name: "Download",
+ hugeiconsName: "Download04Icon",
+ },
+ { icon: Package01Icon, name: "Package", hugeiconsName: "Package01Icon" },
+ { icon: CubeIcon, name: "Block", hugeiconsName: "CubeIcon" },
+ { icon: FlowIcon, name: "Workflow", hugeiconsName: "FlowIcon" },
],
},
{
name: "Feedback & Status",
description: "Icons for alerts, notifications, and status indicators",
icons: [
- { component: Warning, name: "Warning", phosphorName: "Warning" },
- { component: Info, name: "Info", phosphorName: "Info" },
- { component: Check, name: "Success", phosphorName: "Check" },
- { component: X, name: "Close", phosphorName: "X" },
- { component: Bell, name: "Notification", phosphorName: "Bell" },
+ { icon: Alert01Icon, name: "Warning", hugeiconsName: "Alert01Icon" },
+ {
+ icon: InformationCircleIcon,
+ name: "Info",
+ hugeiconsName: "InformationCircleIcon",
+ },
+ { icon: Tick02Icon, name: "Success", hugeiconsName: "Tick02Icon" },
+ { icon: Cancel01Icon, name: "Close", hugeiconsName: "Cancel01Icon" },
+ { icon: BellIcon, name: "Notification", hugeiconsName: "BellIcon" },
],
},
{
name: "Social & External",
description: "Icons for social media platforms and external links",
icons: [
- { component: GithubLogo, name: "GitHub", phosphorName: "GithubLogo" },
+ { icon: GithubIcon, name: "GitHub", hugeiconsName: "GithubIcon" },
{
- component: LinkedinLogo,
+ icon: Linkedin01Icon,
name: "LinkedIn",
- phosphorName: "LinkedinLogo",
+ hugeiconsName: "Linkedin01Icon",
},
- { component: XLogo, name: "X (Twitter)", phosphorName: "XLogo" },
{
- component: FacebookLogo,
+ icon: NewTwitterIcon,
+ name: "X (Twitter)",
+ hugeiconsName: "NewTwitterIcon",
+ },
+ {
+ icon: Facebook02Icon,
name: "Facebook",
- phosphorName: "FacebookLogo",
+ hugeiconsName: "Facebook02Icon",
},
{
- component: InstagramLogo,
+ icon: InstagramIcon,
name: "Instagram",
- phosphorName: "InstagramLogo",
+ hugeiconsName: "InstagramIcon",
},
- { component: YoutubeLogo, name: "YouTube", phosphorName: "YoutubeLogo" },
+ { icon: YoutubeIcon, name: "YouTube", hugeiconsName: "YoutubeIcon" },
],
},
];
@@ -160,10 +194,10 @@ export function AllVariants() {
Icons System
</Text>
<Text variant="large" className="text-zinc-600">
- Our icon system uses Phosphor Icons to provide a consistent, modern,
- and comprehensive set of icons across all components. Phosphor
- offers multiple weights and a cohesive design language that aligns
- with our design principles.
+ Our icon system uses Hugeicons to provide a consistent, modern, and
+ comprehensive set of icons across all components. Icons ship as data
+ and are rendered through the Icon atom, which applies the
+ design-system stroke width for a cohesive visual language.
</Text>
</div>
@@ -173,24 +207,24 @@ export function AllVariants() {
variant="h2"
className="mb-2 text-xl font-semibold text-zinc-800"
>
- Phosphor Icons
+ Hugeicons
</Text>
<div className="space-y-4">
<div className="rounded-lg border border-gray-200 p-4">
<a
- href="https://phosphoricons.com/"
+ href="https://hugeicons.com/icons/stroke-rounded"
target="_blank"
rel="noopener noreferrer"
className="mb-2 inline-flex flex-row items-center gap-1 text-base font-semibold text-blue-600 hover:underline"
>
- Phosphor Icons Library{" "}
+ Hugeicons Library{" "}
<SquareArrowOutUpRight className="inline-block h-3 w-3" />
</a>
<Text variant="body" className="mb-2 text-zinc-600">
- A flexible icon family with multiple weights and styles
+ A comprehensive icon family; we use the stroke-rounded variant
</Text>
<div className="font-mono text-sm text-zinc-800">
- @phosphor-icons/react → React components
+ @hugeicons/core-free-icons → icon data
</div>
</div>
<div className="rounded-lg border border-gray-200 p-4">
@@ -198,14 +232,14 @@ export function AllVariants() {
variant="body-medium"
className="mb-2 font-semibold text-zinc-800"
>
- Available Weights
+ Stroke Width
</Text>
<Text variant="body" className="mb-2 text-zinc-600">
- Phosphor icons offer multiple weights - use the one specified
- in your designs
+ There is a single stroke width, owned by the Icon atom - never
+ override it per call site
</Text>
<div className="space-y-1 font-mono text-sm text-zinc-800">
- <div>regular (default), light, bold, fill, thin, duotone</div>
+ <div>2px</div>
</div>
</div>
</div>
@@ -224,14 +258,17 @@ export function AllVariants() {
variant="body-medium"
className="mb-2 font-semibold text-blue-800"
>
- ✅ Always Use Phosphor Icons
+ ✅ Always Use Hugeicons
</Text>
<div className="space-y-2 text-blue-700">
<Text variant="body">
- • Import from @phosphor-icons/react
+ • Import icon data from @hugeicons/core-free-icons
+ </Text>
+ <Text variant="body">
+ • Render it with the Icon atom, never HugeiconsIcon directly
</Text>
<Text variant="body">
- • Always match size and weight from Figma designs
+ • Always match the size from Figma designs
</Text>
<Text variant="body">
• Ensure icons have proper semantic meaning
@@ -293,8 +330,8 @@ export function AllVariants() {
etc.)
</Text>
<Text variant="body">
- • Match the icon weight specified in designs (regular, bold, fill,
- etc.)
+ • Pick the icon whose semantics match the design, not just its
+ shape
</Text>
<Text variant="body">
• Ensure color and opacity match the design specifications
@@ -307,25 +344,25 @@ export function AllVariants() {
<div className="flex items-center gap-8 rounded-lg border border-gray-200 p-6">
<div className="flex items-center gap-4">
- <Alien size={16} className="text-zinc-600" />
+ <Icon icon={Alien01Icon} size={16} className="text-zinc-600" />
<Text variant="small" className="font-mono text-zinc-500">
16px
</Text>
</div>
<div className="flex items-center gap-4">
- <Alien size={20} className="text-zinc-600" />
+ <Icon icon={Alien01Icon} size={20} className="text-zinc-600" />
<Text variant="small" className="font-mono text-zinc-500">
20px
</Text>
</div>
<div className="flex items-center gap-4">
- <Alien size={24} className="text-zinc-600" />
+ <Icon icon={Alien01Icon} size={24} className="text-zinc-600" />
<Text variant="small" className="font-mono text-zinc-500">
24px
</Text>
</div>
<div className="flex items-center gap-4">
- <Alien size={32} className="text-zinc-600" />
+ <Icon icon={Alien01Icon} size={32} className="text-zinc-600" />
<Text variant="small" className="font-mono text-zinc-500">
32px
</Text>
@@ -362,17 +399,17 @@ export function AllVariants() {
</Text>
</div>
<div className="grid grid-cols-2 gap-4 rounded-lg border border-gray-200 p-4 md:grid-cols-3 lg:grid-cols-6">
- {category.icons.map((icon) => (
+ {category.icons.map((entry) => (
<div
- key={icon.name}
+ key={entry.name}
className="flex flex-col items-center space-y-2 rounded-lg p-3 hover:bg-gray-50"
>
- <icon.component size={24} className="text-zinc-600" />
+ <Icon icon={entry.icon} size={24} className="text-zinc-600" />
<Text
variant="small"
className="text-center font-mono text-zinc-500"
>
- {icon.phosphorName}
+ {entry.hugeiconsName}
</Text>
</div>
))}
@@ -391,51 +428,51 @@ export function AllVariants() {
Usage Examples
</Text>
<Text variant="body" className="mb-6 text-zinc-600">
- How to properly implement Phosphor icons in your React components.
+ How to properly implement Hugeicons in your React components.
</Text>
</div>
<StoryCode
- code={`// Import icons from Phosphor
-import { User, Heart, Star, Bell } from "@phosphor-icons/react";
+ code={`// Import icon data from Hugeicons and the Icon atom
+import { UserIcon, FavouriteIcon, StarIcon, BellIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
-// Basic usage with default size (24px)
-<User />
-<Heart />
+// Basic usage - size defaults to 1em, so it scales with the text
+<Icon icon={UserIcon} />
+<Icon icon={FavouriteIcon} />
// Custom sizes
-<User size={16} /> // Small
-<User size={20} /> // Default
-<User size={24} /> // Large
-<User size={32} /> // Extra large
+<Icon icon={UserIcon} size={16} /> // Small
+<Icon icon={UserIcon} size={20} /> // Default
+<Icon icon={UserIcon} size={24} /> // Large
+<Icon icon={UserIcon} size={32} /> // Extra large
// With custom colors
-<Heart className="text-red-500" />
-<Star className="text-yellow-500" />
-
-// Different weights
-<User weight="thin" /> // 1px stroke
-<User weight="light" /> // 1.5px stroke
-<User weight="regular" /> // 2px stroke (default)
-<User weight="bold" /> // 2.5px stroke
-<User weight="fill" /> // Filled version
-<User weight="duotone" /> // Two-tone style
+<Icon icon={FavouriteIcon} className="text-red-500" />
+<Icon icon={StarIcon} className="text-yellow-500" />
// Interactive states
-<Bell
+<Icon
+ icon={BellIcon}
size={20}
- weight={hasNotifications ? "fill" : "regular"}
className={hasNotifications ? "text-blue-500" : "text-gray-400"}
/>
// In buttons
<button className="flex items-center gap-2">
- <User size={16} />
+ <Icon icon={UserIcon} size={16} />
Profile
</button>
// Responsive sizing with Tailwind
-<User className="size-4 md:size-5 lg:size-6" />`}
+<Icon icon={UserIcon} className="size-4 md:size-5 lg:size-6" />
+
+// To type a prop or config entry that carries an icon
+import type { IconSvgElement } from "@hugeicons/react";
+
+interface Props {
+ icon: IconSvgElement;
+}`}
/>
</div>
</div>
diff --git a/autogpt_platform/frontend/src/components/ui/scroll-area.tsx b/autogpt_platform/frontend/src/components/ui/scroll-area.tsx
index d5acd4e4de..e59ea1b603 100644
--- a/autogpt_platform/frontend/src/components/ui/scroll-area.tsx
+++ b/autogpt_platform/frontend/src/components/ui/scroll-area.tsx
@@ -3,9 +3,9 @@
import * as React from "react";
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
import { AnimatePresence, motion, useReducedMotion } from "framer-motion";
-import { ArrowUpIcon } from "@phosphor-icons/react";
-
import { cn } from "@/lib/utils";
+import { ArrowUp02Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
interface ScrollAreaProps
extends React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root> {
@@ -144,7 +144,7 @@ function ScrollToTopFab({ visible, onClick }: ScrollToTopFabProps) {
}
transition={{ duration: 0.15, ease: [0, 0, 0.2, 1] }}
>
- <ArrowUpIcon size={20} weight="bold" />
+ <Icon icon={ArrowUp02Icon} size={20} />
</motion.button>
)}
</AnimatePresence>
diff --git a/autogpt_platform/frontend/src/components/ui/sidebar.tsx b/autogpt_platform/frontend/src/components/ui/sidebar.tsx
index c2e65d810c..2ed417b932 100644
--- a/autogpt_platform/frontend/src/components/ui/sidebar.tsx
+++ b/autogpt_platform/frontend/src/components/ui/sidebar.tsx
@@ -23,7 +23,8 @@ import {
} from "@/components/ui/tooltip";
import { useIsMobile } from "@/hooks/use-mobile";
import { cn } from "@/lib/utils";
-import { SidebarSimpleIcon } from "@phosphor-icons/react";
+import { SidebarLeftIcon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
const SIDEBAR_COOKIE_NAME = "sidebar_state";
const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
@@ -294,7 +295,7 @@ const SidebarTrigger = React.forwardRef<
toggleSidebar();
}}
>
- <SidebarSimpleIcon className="!size-5" />
+ <Icon icon={SidebarLeftIcon} className="!size-5" />
<span className="sr-only">Toggle Sidebar</span>
</Button>
);
diff --git a/autogpt_platform/frontend/src/components/ui/spinner.tsx b/autogpt_platform/frontend/src/components/ui/spinner.tsx
index 0bedd33069..97fbf1faee 100644
--- a/autogpt_platform/frontend/src/components/ui/spinner.tsx
+++ b/autogpt_platform/frontend/src/components/ui/spinner.tsx
@@ -1,10 +1,11 @@
-import { CircleNotch as CircleNotchIcon } from "@phosphor-icons/react";
-
import { cn } from "@/lib/utils";
+import { Loading03Icon } from "@hugeicons/core-free-icons";
+import { Icon } from "@/components/atoms/Icon/Icon";
function Spinner({ className, ...props }: React.ComponentProps<"svg">) {
return (
- <CircleNotchIcon
+ <Icon
+ icon={Loading03Icon}
role="status"
aria-label="Loading"
className={cn("size-4 animate-spin", className)}
diff --git a/autogpt_platform/frontend/tailwind.config.ts b/autogpt_platform/frontend/tailwind.config.ts
index 2211d03856..7c46e9578b 100644
--- a/autogpt_platform/frontend/tailwind.config.ts
+++ b/autogpt_platform/frontend/tailwind.config.ts
@@ -116,6 +116,7 @@ const config = {
"1.5": "0.375rem",
"2.5": "0.625rem",
"3.5": "0.875rem",
+ "4.5": "1.125rem",
"7.5": "1.875rem",
"8.5": "2.125rem",
},