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): move old components to `__legacy__` (#10953)

Ubbee5d870a3487c
diff --git a/autogpt_platform/frontend/.storybook/main.ts b/autogpt_platform/frontend/.storybook/main.ts
index abc97a1516..eb153ac920 100644
--- a/autogpt_platform/frontend/.storybook/main.ts
+++ b/autogpt_platform/frontend/.storybook/main.ts
@@ -6,7 +6,6 @@ const config: StorybookConfig = {
"../src/components/tokens/**/*.stories.@(js|jsx|mjs|ts|tsx)",
"../src/components/atoms/**/*.stories.@(js|jsx|mjs|ts|tsx)",
"../src/components/molecules/**/*.stories.@(js|jsx|mjs|ts|tsx)",
- "../src/components/agptui/**/*.stories.@(js|jsx|mjs|ts|tsx)",
],
addons: [
"@storybook/addon-a11y",
diff --git a/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/5-run/page.tsx b/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/5-run/page.tsx
index 7b76de3361..4fba9c8d62 100644
--- a/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/5-run/page.tsx
+++ b/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/5-run/page.tsx
@@ -1,11 +1,16 @@
"use client";
-import SmartImage from "@/components/agptui/SmartImage";
+import SmartImage from "@/components/__legacy__/SmartImage";
import { useOnboarding } from "../../../../providers/onboarding/onboarding-provider";
import OnboardingButton from "../components/OnboardingButton";
import { OnboardingHeader, OnboardingStep } from "../components/OnboardingStep";
import { OnboardingText } from "../components/OnboardingText";
import StarRating from "../components/StarRating";
-import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
+import {
+ Card,
+ CardContent,
+ CardHeader,
+ CardTitle,
+} from "@/components/__legacy__/ui/card";
import { useToast } from "@/components/molecules/Toast/use-toast";
import { GraphMeta, StoreAgentDetails } from "@/lib/autogpt-server-api";
import { useBackendAPI } from "@/lib/autogpt-server-api/context";
diff --git a/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/components/OnboardingAgentCard.tsx b/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/components/OnboardingAgentCard.tsx
index 610f9d1a8a..8d8bf6b7ce 100644
--- a/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/components/OnboardingAgentCard.tsx
+++ b/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/components/OnboardingAgentCard.tsx
@@ -1,7 +1,7 @@
import { cn } from "@/lib/utils";
import StarRating from "./StarRating";
import { StoreAgentDetails } from "@/lib/autogpt-server-api";
-import SmartImage from "@/components/agptui/SmartImage";
+import SmartImage from "@/components/__legacy__/SmartImage";
type OnboardingAgentCardProps = {
agent?: StoreAgentDetails;
diff --git a/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/components/OnboardingButton.tsx b/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/components/OnboardingButton.tsx
index 9c6d746ffc..ab245e4695 100644
--- a/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/components/OnboardingButton.tsx
+++ b/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/components/OnboardingButton.tsx
@@ -1,5 +1,5 @@
import { useCallback, useMemo, useState } from "react";
-import { LoadingSpinner } from "@/components/ui/loading";
+import { LoadingSpinner } from "@/components/__legacy__/ui/loading";
import { cn } from "@/lib/utils";
import Link from "next/link";
diff --git a/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/components/OnboardingGrid.tsx b/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/components/OnboardingGrid.tsx
index ff088da6fd..3987b6fb3d 100644
--- a/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/components/OnboardingGrid.tsx
+++ b/autogpt_platform/frontend/src/app/(no-navbar)/onboarding/components/OnboardingGrid.tsx
@@ -1,5 +1,5 @@
import { cn } from "@/lib/utils";
-import SmartImage from "@/components/agptui/SmartImage";
+import SmartImage from "@/components/__legacy__/SmartImage";
type OnboardingGridElementProps = {
name: string;
diff --git a/autogpt_platform/frontend/src/app/(no-navbar)/share/[token]/page.tsx b/autogpt_platform/frontend/src/app/(no-navbar)/share/[token]/page.tsx
index 61ecb85c59..a8fd85eeb0 100644
--- a/autogpt_platform/frontend/src/app/(no-navbar)/share/[token]/page.tsx
+++ b/autogpt_platform/frontend/src/app/(no-navbar)/share/[token]/page.tsx
@@ -3,8 +3,13 @@
import React from "react";
import { useParams } from "next/navigation";
import { RunOutputs } from "@/app/(platform)/library/agents/[id]/components/AgentRunsView/components/SelectedRunView/components/RunOutputs";
-import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
-import { Alert, AlertDescription } from "@/components/ui/alert";
+import {
+ Card,
+ CardContent,
+ CardHeader,
+ CardTitle,
+} from "@/components/__legacy__/ui/card";
+import { Alert, AlertDescription } from "@/components/molecules/Alert/Alert";
import { InfoIcon } from "lucide-react";
import { useGetV1GetSharedExecution } from "@/app/api/__generated__/endpoints/default/default";
diff --git a/autogpt_platform/frontend/src/app/(platform)/admin/layout.tsx b/autogpt_platform/frontend/src/app/(platform)/admin/layout.tsx
index bfb2b2695d..55893c95e1 100644
--- a/autogpt_platform/frontend/src/app/(platform)/admin/layout.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/admin/layout.tsx
@@ -1,7 +1,7 @@
-import { Sidebar } from "@/components/agptui/Sidebar";
+import { Sidebar } from "@/components/__legacy__/Sidebar";
import { Users, DollarSign } from "lucide-react";
-import { IconSliders } from "@/components/ui/icons";
+import { IconSliders } from "@/components/__legacy__/ui/icons";
const sidebarLinkGroups = [
{
diff --git a/autogpt_platform/frontend/src/app/(platform)/admin/marketplace/components/AdminAgentsDataTable.tsx b/autogpt_platform/frontend/src/app/(platform)/admin/marketplace/components/AdminAgentsDataTable.tsx
index f08c807c90..727cf42813 100644
--- a/autogpt_platform/frontend/src/app/(platform)/admin/marketplace/components/AdminAgentsDataTable.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/admin/marketplace/components/AdminAgentsDataTable.tsx
@@ -5,12 +5,12 @@ import {
TableHead,
TableHeader,
TableRow,
-} from "@/components/ui/table";
+} from "@/components/__legacy__/ui/table";
import {
StoreSubmission,
SubmissionStatus,
} from "@/lib/autogpt-server-api/types";
-import { PaginationControls } from "../../../../../components/ui/pagination-controls";
+import { PaginationControls } from "../../../../../components/__legacy__/ui/pagination-controls";
import { getAdminListingsWithVersions } from "@/app/(platform)/admin/marketplace/actions";
import { ExpandableRow } from "./ExpandleRow";
import { SearchAndFilterAdminMarketplace } from "./SearchFilterForm";
diff --git a/autogpt_platform/frontend/src/app/(platform)/admin/marketplace/components/ApproveRejectButton.tsx b/autogpt_platform/frontend/src/app/(platform)/admin/marketplace/components/ApproveRejectButton.tsx
index a2ac8deb94..a2f954d572 100644
--- a/autogpt_platform/frontend/src/app/(platform)/admin/marketplace/components/ApproveRejectButton.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/admin/marketplace/components/ApproveRejectButton.tsx
@@ -1,7 +1,7 @@
"use client";
import { useState } from "react";
-import { Button } from "@/components/ui/button";
+import { Button } from "@/components/__legacy__/ui/button";
import { CheckCircle, XCircle } from "lucide-react";
import {
Dialog,
@@ -10,9 +10,9 @@ import {
DialogHeader,
DialogTitle,
DialogFooter,
-} from "@/components/ui/dialog";
-import { Label } from "@/components/ui/label";
-import { Textarea } from "@/components/ui/textarea";
+} from "@/components/__legacy__/ui/dialog";
+import { Label } from "@/components/__legacy__/ui/label";
+import { Textarea } from "@/components/__legacy__/ui/textarea";
import type { StoreSubmission } from "@/lib/autogpt-server-api/types";
import { useRouter } from "next/navigation";
import {
diff --git a/autogpt_platform/frontend/src/app/(platform)/admin/marketplace/components/DownloadAgentButton.tsx b/autogpt_platform/frontend/src/app/(platform)/admin/marketplace/components/DownloadAgentButton.tsx
index bb1dfac958..e18c46b126 100644
--- a/autogpt_platform/frontend/src/app/(platform)/admin/marketplace/components/DownloadAgentButton.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/admin/marketplace/components/DownloadAgentButton.tsx
@@ -1,7 +1,7 @@
"use client";
import { downloadAsAdmin } from "@/app/(platform)/admin/marketplace/actions";
-import { Button } from "@/components/ui/button";
+import { Button } from "@/components/__legacy__/ui/button";
import { ExternalLink } from "lucide-react";
import { useState } from "react";
diff --git a/autogpt_platform/frontend/src/app/(platform)/admin/marketplace/components/ExpandleRow.tsx b/autogpt_platform/frontend/src/app/(platform)/admin/marketplace/components/ExpandleRow.tsx
index 10d6a0b7b0..cf0f2389aa 100644
--- a/autogpt_platform/frontend/src/app/(platform)/admin/marketplace/components/ExpandleRow.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/admin/marketplace/components/ExpandleRow.tsx
@@ -8,8 +8,8 @@ import {
TableHeader,
TableHead,
TableBody,
-} from "@/components/ui/table";
-import { Badge } from "@/components/ui/badge";
+} from "@/components/__legacy__/ui/table";
+import { Badge } from "@/components/__legacy__/ui/badge";
import { ChevronDown, ChevronRight } from "lucide-react";
import { formatDistanceToNow } from "date-fns";
import {
diff --git a/autogpt_platform/frontend/src/app/(platform)/admin/marketplace/components/SearchFilterForm.tsx b/autogpt_platform/frontend/src/app/(platform)/admin/marketplace/components/SearchFilterForm.tsx
index 73da6da431..ac67867eaf 100644
--- a/autogpt_platform/frontend/src/app/(platform)/admin/marketplace/components/SearchFilterForm.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/admin/marketplace/components/SearchFilterForm.tsx
@@ -2,8 +2,8 @@
import { useState, useEffect } from "react";
import { useRouter, usePathname, useSearchParams } from "next/navigation";
-import { Input } from "@/components/ui/input";
-import { Button } from "@/components/ui/button";
+import { Input } from "@/components/__legacy__/ui/input";
+import { Button } from "@/components/__legacy__/ui/button";
import { Search } from "lucide-react";
import {
Select,
@@ -11,7 +11,7 @@ import {
SelectItem,
SelectTrigger,
SelectValue,
-} from "@/components/ui/select";
+} from "@/components/__legacy__/ui/select";
import { SubmissionStatus } from "@/lib/autogpt-server-api/types";
export function SearchAndFilterAdminMarketplace({
diff --git a/autogpt_platform/frontend/src/app/(platform)/admin/spending/components/AddMoneyButton.tsx b/autogpt_platform/frontend/src/app/(platform)/admin/spending/components/AddMoneyButton.tsx
index 64b5860d27..3606a33707 100644
--- a/autogpt_platform/frontend/src/app/(platform)/admin/spending/components/AddMoneyButton.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/admin/spending/components/AddMoneyButton.tsx
@@ -1,7 +1,7 @@
"use client";
import { useState } from "react";
-import { Button } from "@/components/ui/button";
+import { Button } from "@/components/__legacy__/ui/button";
import {
Dialog,
DialogContent,
@@ -9,10 +9,10 @@ import {
DialogHeader,
DialogTitle,
DialogFooter,
-} from "@/components/ui/dialog";
-import { Label } from "@/components/ui/label";
-import { Textarea } from "@/components/ui/textarea";
-import { Input } from "@/components/ui/input";
+} from "@/components/__legacy__/ui/dialog";
+import { Label } from "@/components/__legacy__/ui/label";
+import { Textarea } from "@/components/__legacy__/ui/textarea";
+import { Input } from "@/components/__legacy__/ui/input";
import { useRouter } from "next/navigation";
import { addDollars } from "@/app/(platform)/admin/spending/actions";
import { useToast } from "@/components/molecules/Toast/use-toast";
diff --git a/autogpt_platform/frontend/src/app/(platform)/admin/spending/components/AdminUserGrantHistory.tsx b/autogpt_platform/frontend/src/app/(platform)/admin/spending/components/AdminUserGrantHistory.tsx
index 6137345070..b3622a6bd0 100644
--- a/autogpt_platform/frontend/src/app/(platform)/admin/spending/components/AdminUserGrantHistory.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/admin/spending/components/AdminUserGrantHistory.tsx
@@ -5,9 +5,9 @@ import {
TableHead,
TableHeader,
TableRow,
-} from "@/components/ui/table";
+} from "@/components/__legacy__/ui/table";
-import { PaginationControls } from "../../../../../components/ui/pagination-controls";
+import { PaginationControls } from "../../../../../components/__legacy__/ui/pagination-controls";
import { SearchAndFilterAdminSpending } from "./SearchAndFilterAdminSpending";
import { getUsersTransactionHistory } from "@/app/(platform)/admin/spending/actions";
import { AdminAddMoneyButton } from "./AddMoneyButton";
diff --git a/autogpt_platform/frontend/src/app/(platform)/admin/spending/components/SearchAndFilterAdminSpending.tsx b/autogpt_platform/frontend/src/app/(platform)/admin/spending/components/SearchAndFilterAdminSpending.tsx
index f301461071..4b2205f411 100644
--- a/autogpt_platform/frontend/src/app/(platform)/admin/spending/components/SearchAndFilterAdminSpending.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/admin/spending/components/SearchAndFilterAdminSpending.tsx
@@ -2,8 +2,8 @@
import { useState, useEffect } from "react";
import { useRouter, usePathname, useSearchParams } from "next/navigation";
-import { Input } from "@/components/ui/input";
-import { Button } from "@/components/ui/button";
+import { Input } from "@/components/__legacy__/ui/input";
+import { Button } from "@/components/__legacy__/ui/button";
import { Search } from "lucide-react";
import { CreditTransactionType } from "@/lib/autogpt-server-api";
import {
@@ -12,7 +12,7 @@ import {
SelectItem,
SelectTrigger,
SelectValue,
-} from "@/components/ui/select";
+} from "@/components/__legacy__/ui/select";
export function SearchAndFilterAdminSpending({
initialSearch,
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/AiBlock.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/AiBlock.tsx
index 8b43f28306..52322eb094 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/AiBlock.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/AiBlock.tsx
@@ -1,4 +1,4 @@
-import { Button } from "@/components/ui/button";
+import { Button } from "@/components/__legacy__/ui/button";
import { cn } from "@/lib/utils";
import { Plus } from "lucide-react";
import { ButtonHTMLAttributes } from "react";
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/AllBlocksContent/AllBlocksContent.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/AllBlocksContent/AllBlocksContent.tsx
index 9951b0b608..b6055d7498 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/AllBlocksContent/AllBlocksContent.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/AllBlocksContent/AllBlocksContent.tsx
@@ -1,7 +1,7 @@
import React, { Fragment } from "react";
import { Block } from "../Block";
-import { Button } from "@/components/ui/button";
-import { Separator } from "@/components/ui/separator";
+import { Button } from "@/components/__legacy__/ui/button";
+import { Separator } from "@/components/__legacy__/ui/separator";
import { beautifyString } from "@/lib/utils";
import { useAllBlockContent } from "./useAllBlockContent";
import { ErrorCard } from "@/components/molecules/ErrorCard/ErrorCard";
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/Block.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/Block.tsx
index ad401cb9b7..3b9a922d07 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/Block.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/Block.tsx
@@ -1,5 +1,5 @@
-import { Button } from "@/components/ui/button";
-import { Skeleton } from "@/components/ui/skeleton";
+import { Button } from "@/components/__legacy__/ui/button";
+import { Skeleton } from "@/components/__legacy__/ui/skeleton";
import { beautifyString, cn } from "@/lib/utils";
import React, { ButtonHTMLAttributes } from "react";
import { highlightText } from "./helpers";
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/BlockMenu/BlockMenu.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/BlockMenu/BlockMenu.tsx
index 5059a45bea..4de2e3f806 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/BlockMenu/BlockMenu.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/BlockMenu/BlockMenu.tsx
@@ -3,7 +3,7 @@ import {
Popover,
PopoverContent,
PopoverTrigger,
-} from "@/components/ui/popover";
+} from "@/components/__legacy__/ui/popover";
import { BlockMenuContent } from "../BlockMenuContent/BlockMenuContent";
import { ControlPanelButton } from "../ControlPanelButton";
import { useBlockMenu } from "./useBlockMenu";
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/BlockMenuContent/BlockMenuContent.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/BlockMenuContent/BlockMenuContent.tsx
index 0c81e62281..2bb5f589f9 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/BlockMenuContent/BlockMenuContent.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/BlockMenuContent/BlockMenuContent.tsx
@@ -2,7 +2,7 @@
import React from "react";
import { useBlockMenuContext } from "../block-menu-provider";
import { BlockMenuSearchBar } from "../BlockMenuSearchBar/BlockMenuSearchBar";
-import { Separator } from "@/components/ui/separator";
+import { Separator } from "@/components/__legacy__/ui/separator";
import { BlockMenuDefault } from "../BlockMenuDefault/BlockMenuDefault";
import { BlockMenuSearch } from "../BlockMenuSearch/BlockMenuSearch";
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/BlockMenuDefault/BlockMenuDefault.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/BlockMenuDefault/BlockMenuDefault.tsx
index 570e125c23..29d2d0c9e1 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/BlockMenuDefault/BlockMenuDefault.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/BlockMenuDefault/BlockMenuDefault.tsx
@@ -1,6 +1,6 @@
import React from "react";
-import { Separator } from "@/components/ui/separator";
+import { Separator } from "@/components/__legacy__/ui/separator";
import { BlockMenuDefaultContent } from "../BlockMenuDefaultContent/BlockMenuDefaultContent";
import { BlockMenuSidebar } from "../BlockMenuSidebar/BlockMenuSidebar";
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/BlockMenuSearchBar/BlockMenuSearchBar.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/BlockMenuSearchBar/BlockMenuSearchBar.tsx
index f98b41d521..165a3f05ea 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/BlockMenuSearchBar/BlockMenuSearchBar.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/BlockMenuSearchBar/BlockMenuSearchBar.tsx
@@ -1,8 +1,8 @@
import { cn } from "@/lib/utils";
import React from "react";
-import { Input } from "@/components/ui/input";
+import { Input } from "@/components/__legacy__/ui/input";
import { useBlockMenuSearchBar } from "./useBlockMenuSearchBar";
-import { Button } from "@/components/ui/button";
+import { Button } from "@/components/__legacy__/ui/button";
import { MagnifyingGlassIcon, XIcon } from "@phosphor-icons/react";
interface BlockMenuSearchBarProps {
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/BlockMenuSidebar/BlockMenuSidebar.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/BlockMenuSidebar/BlockMenuSidebar.tsx
index 58ae44c501..e3fa2fa0c2 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/BlockMenuSidebar/BlockMenuSidebar.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/BlockMenuSidebar/BlockMenuSidebar.tsx
@@ -2,7 +2,7 @@ import React from "react";
import { MenuItem } from "../MenuItem";
import { DefaultStateType, useBlockMenuContext } from "../block-menu-provider";
import { useBlockMenuSidebar } from "./useBlockMenuSidebar";
-import { Skeleton } from "@/components/ui/skeleton";
+import { Skeleton } from "@/components/__legacy__/ui/skeleton";
import { ErrorCard } from "@/components/molecules/ErrorCard/ErrorCard";
export const BlockMenuSidebar = () => {
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/FilterChip.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/FilterChip.tsx
index 214e5e8b25..69931958b3 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/FilterChip.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/FilterChip.tsx
@@ -1,4 +1,4 @@
-import { Button } from "@/components/ui/button";
+import { Button } from "@/components/__legacy__/ui/button";
import { cn } from "@/lib/utils";
import { X } from "lucide-react";
import React, { ButtonHTMLAttributes } from "react";
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/GraphMenu/GraphMenu.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/GraphMenu/GraphMenu.tsx
index 4675cbef69..f2fe50d855 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/GraphMenu/GraphMenu.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/GraphMenu/GraphMenu.tsx
@@ -3,7 +3,7 @@ import {
Popover,
PopoverContent,
PopoverTrigger,
-} from "@/components/ui/popover";
+} from "@/components/__legacy__/ui/popover";
import { MagnifyingGlassIcon } from "@phosphor-icons/react";
import { GraphSearchContent } from "../GraphMenuContent/GraphContent";
import { ControlPanelButton } from "../ControlPanelButton";
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/GraphMenuContent/GraphContent.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/GraphMenuContent/GraphContent.tsx
index 898d3b7b30..882e18ca66 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/GraphMenuContent/GraphContent.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/GraphMenuContent/GraphContent.tsx
@@ -1,9 +1,9 @@
import React from "react";
-import { Separator } from "@/components/ui/separator";
-import { ScrollArea } from "@/components/ui/scroll-area";
+import { Separator } from "@/components/__legacy__/ui/separator";
+import { ScrollArea } from "@/components/__legacy__/ui/scroll-area";
import { beautifyString, getPrimaryCategoryColor } from "@/lib/utils";
import { SearchableNode } from "../GraphMenuSearchBar/useGraphMenuSearchBar";
-import { TextRenderer } from "@/components/ui/render";
+import { TextRenderer } from "@/components/__legacy__/ui/render";
import {
Tooltip,
TooltipContent,
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/GraphMenuSearchBar/GraphMenuSearchBar.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/GraphMenuSearchBar/GraphMenuSearchBar.tsx
index 2124faccdb..6f87a99e02 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/GraphMenuSearchBar/GraphMenuSearchBar.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/GraphMenuSearchBar/GraphMenuSearchBar.tsx
@@ -1,7 +1,7 @@
import { cn } from "@/lib/utils";
import React from "react";
-import { Input } from "@/components/ui/input";
-import { Button } from "@/components/ui/button";
+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";
@@ -30,7 +30,10 @@ export const GraphMenuSearchBar: React.FC<GraphMenuSearchBarProps> = ({
)}
>
<div className="flex h-6 w-6 items-center justify-center">
- <MagnifyingGlassIcon className="h-6 w-6 text-zinc-700" strokeWidth={2} />
+ <MagnifyingGlassIcon
+ className="h-6 w-6 text-zinc-700"
+ strokeWidth={2}
+ />
</div>
<Input
ref={inputRef}
@@ -57,4 +60,4 @@ export const GraphMenuSearchBar: React.FC<GraphMenuSearchBarProps> = ({
)}
</div>
);
-};
\ No newline at end of file
+};
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/Integration.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/Integration.tsx
index 6082df97c8..32e63b8183 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/Integration.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/Integration.tsx
@@ -1,5 +1,5 @@
-import { Button } from "@/components/ui/button";
-import { Skeleton } from "@/components/ui/skeleton";
+import { Button } from "@/components/__legacy__/ui/button";
+import { Skeleton } from "@/components/__legacy__/ui/skeleton";
import { beautifyString, cn } from "@/lib/utils";
import Image from "next/image";
import React, { ButtonHTMLAttributes } from "react";
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/IntegrationBlocks/IntegrationBlocks.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/IntegrationBlocks/IntegrationBlocks.tsx
index efa07df63f..54fd3f9769 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/IntegrationBlocks/IntegrationBlocks.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/IntegrationBlocks/IntegrationBlocks.tsx
@@ -1,8 +1,8 @@
-import { Button } from "@/components/ui/button";
+import { Button } from "@/components/__legacy__/ui/button";
import React, { Fragment } from "react";
import { IntegrationBlock } from "../IntergrationBlock";
import { useBlockMenuContext } from "../block-menu-provider";
-import { Skeleton } from "@/components/ui/skeleton";
+import { Skeleton } from "@/components/__legacy__/ui/skeleton";
import { useIntegrationBlocks } from "./useIntegrationBlocks";
import { ErrorCard } from "@/components/molecules/ErrorCard/ErrorCard";
import { InfiniteScroll } from "@/components/contextual/InfiniteScroll/InfiniteScroll";
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/IntegrationChip.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/IntegrationChip.tsx
index 611e283bdb..b3230a5a56 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/IntegrationChip.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/IntegrationChip.tsx
@@ -1,5 +1,5 @@
-import { Button } from "@/components/ui/button";
-import { Skeleton } from "@/components/ui/skeleton";
+import { Button } from "@/components/__legacy__/ui/button";
+import { Skeleton } from "@/components/__legacy__/ui/skeleton";
import { beautifyString, cn } from "@/lib/utils";
import Image from "next/image";
import React, { ButtonHTMLAttributes } from "react";
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/IntergrationBlock.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/IntergrationBlock.tsx
index 6071f65eff..6eef471bee 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/IntergrationBlock.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/IntergrationBlock.tsx
@@ -1,4 +1,4 @@
-import { Skeleton } from "@/components/ui/skeleton";
+import { Skeleton } from "@/components/__legacy__/ui/skeleton";
import { beautifyString, cn } from "@/lib/utils";
import { Plus } from "lucide-react";
import Image from "next/image";
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/MarketplaceAgentBlock.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/MarketplaceAgentBlock.tsx
index 23ec4bb28d..9d3671d4d2 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/MarketplaceAgentBlock.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/MarketplaceAgentBlock.tsx
@@ -1,5 +1,5 @@
-import { Button } from "@/components/ui/button";
-import { Skeleton } from "@/components/ui/skeleton";
+import { Button } from "@/components/__legacy__/ui/button";
+import { Skeleton } from "@/components/__legacy__/ui/skeleton";
import { cn } from "@/lib/utils";
import Image from "next/image";
import React, { ButtonHTMLAttributes } from "react";
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/MenuItem.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/MenuItem.tsx
index 5b088239fd..a1dbbb4c6a 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/MenuItem.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/MenuItem.tsx
@@ -1,6 +1,6 @@
// BLOCK MENU TODO: We need to add a better hover state to it; currently it's not in the design either.
-import { Button } from "@/components/ui/button";
+import { Button } from "@/components/__legacy__/ui/button";
import { cn } from "@/lib/utils";
import React, { ButtonHTMLAttributes } from "react";
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/NewControlPanel/NewControlPanel.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/NewControlPanel/NewControlPanel.tsx
index 0541fd5b0d..1ef85a1d20 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/NewControlPanel/NewControlPanel.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/NewControlPanel/NewControlPanel.tsx
@@ -1,4 +1,4 @@
-import { Separator } from "@/components/ui/separator";
+import { Separator } from "@/components/__legacy__/ui/separator";
import { cn } from "@/lib/utils";
import React, { useMemo } from "react";
import { BlockMenu } from "../BlockMenu/BlockMenu";
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/SaveControl/NewSaveControl.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/SaveControl/NewSaveControl.tsx
index 17eef8f0e2..f6d232e46f 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/SaveControl/NewSaveControl.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/SaveControl/NewSaveControl.tsx
@@ -3,13 +3,13 @@ import {
Popover,
PopoverContent,
PopoverTrigger,
-} from "@/components/ui/popover";
-import { Card, CardContent, CardFooter } from "@/components/ui/card";
-import { Input } from "@/components/ui/input";
-import { Button } from "@/components/ui/button";
+} from "@/components/__legacy__/ui/popover";
+import { Card, CardContent, CardFooter } from "@/components/__legacy__/ui/card";
+import { Input } from "@/components/__legacy__/ui/input";
+import { Button } from "@/components/__legacy__/ui/button";
import { GraphMeta } from "@/lib/autogpt-server-api";
-import { Label } from "@/components/ui/label";
-import { IconSave } from "@/components/ui/icons";
+import { Label } from "@/components/__legacy__/ui/label";
+import { IconSave } from "@/components/__legacy__/ui/icons";
import { useToast } from "@/components/molecules/Toast/use-toast";
import { ControlPanelButton } from "../ControlPanelButton";
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/SearchHistoryChip.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/SearchHistoryChip.tsx
index 77cad6443a..4e998b4965 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/SearchHistoryChip.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/SearchHistoryChip.tsx
@@ -1,5 +1,5 @@
-import { Button } from "@/components/ui/button";
-import { Skeleton } from "@/components/ui/skeleton";
+import { Button } from "@/components/__legacy__/ui/button";
+import { Skeleton } from "@/components/__legacy__/ui/skeleton";
import { cn } from "@/lib/utils";
import { ArrowUpRight } from "lucide-react";
import React, { ButtonHTMLAttributes } from "react";
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/UGCAgentBlock.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/UGCAgentBlock.tsx
index 96f6519a1e..e1cca44ab0 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/UGCAgentBlock.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewBlockMenu/UGCAgentBlock.tsx
@@ -1,5 +1,5 @@
-import { Button } from "@/components/ui/button";
-import { Skeleton } from "@/components/ui/skeleton";
+import { Button } from "@/components/__legacy__/ui/button";
+import { Skeleton } from "@/components/__legacy__/ui/skeleton";
import { cn } from "@/lib/utils";
import { Plus } from "lucide-react";
import Image from "next/image";
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/BlocksControl.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/BlocksControl.tsx
index 0a8360f437..d3383cdc4f 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/BlocksControl.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/BlocksControl.tsx
@@ -1,20 +1,20 @@
import React, { useCallback, useMemo, useState, useDeferredValue } from "react";
-import { Card, CardContent, CardHeader } from "@/components/ui/card";
-import { Label } from "@/components/ui/label";
-import { Button } from "@/components/ui/button";
-import { Input } from "@/components/ui/input";
-import { TextRenderer } from "@/components/ui/render";
-import { ScrollArea } from "@/components/ui/scroll-area";
+import { Card, CardContent, CardHeader } from "@/components/__legacy__/ui/card";
+import { Label } from "@/components/__legacy__/ui/label";
+import { Button } from "@/components/__legacy__/ui/button";
+import { Input } from "@/components/__legacy__/ui/input";
+import { TextRenderer } from "@/components/__legacy__/ui/render";
+import { ScrollArea } from "@/components/__legacy__/ui/scroll-area";
import { CustomNode } from "@/app/(platform)/build/components/legacy-builder/CustomNode/CustomNode";
import { beautifyString } from "@/lib/utils";
import {
Popover,
PopoverContent,
PopoverTrigger,
-} from "@/components/ui/popover";
+} from "@/components/__legacy__/ui/popover";
import { Block, BlockUIType, SpecialBlockID } from "@/lib/autogpt-server-api";
import { MagnifyingGlassIcon, PlusIcon } from "@radix-ui/react-icons";
-import { IconToyBrick } from "@/components/ui/icons";
+import { IconToyBrick } from "@/components/__legacy__/ui/icons";
import { getPrimaryCategoryColor } from "@/lib/utils";
import {
Tooltip,
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/BuildActionBar.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/BuildActionBar.tsx
index 09100ce2d7..9671109422 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/BuildActionBar.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/BuildActionBar.tsx
@@ -1,9 +1,9 @@
import React from "react";
import { cn } from "@/lib/utils";
-import { Button } from "@/components/ui/button";
+import { Button } from "@/components/__legacy__/ui/button";
import { LogOut } from "lucide-react";
import { ClockIcon } from "@phosphor-icons/react";
-import { IconPlay, IconSquare } from "@/components/ui/icons";
+import { IconPlay, IconSquare } from "@/components/__legacy__/ui/icons";
interface Props {
onClickAgentOutputs?: () => void;
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/ControlPanel.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/ControlPanel.tsx
index 2c48f76d5b..ecf4f443d5 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/ControlPanel.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/ControlPanel.tsx
@@ -1,11 +1,11 @@
-import { Card, CardContent } from "@/components/ui/card";
+import { Card, CardContent } from "@/components/__legacy__/ui/card";
import {
Tooltip,
TooltipContent,
TooltipTrigger,
} from "@/components/atoms/Tooltip/BaseTooltip";
-import { Button } from "@/components/ui/button";
-import { Separator } from "@/components/ui/separator";
+import { Button } from "@/components/__legacy__/ui/button";
+import { Separator } from "@/components/__legacy__/ui/separator";
import { cn } from "@/lib/utils";
import React from "react";
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/CustomNode/CustomNode.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/CustomNode/CustomNode.tsx
index dcc3cf5b26..68ce5db6b5 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/CustomNode/CustomNode.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/CustomNode/CustomNode.tsx
@@ -30,18 +30,21 @@ import {
setNestedProperty,
} from "@/lib/utils";
import { Button } from "@/components/atoms/Button/Button";
-import { TextRenderer } from "@/components/ui/render";
+import { TextRenderer } from "@/components/__legacy__/ui/render";
import { history } from "../history";
import NodeHandle from "../NodeHandle";
import { NodeGenericInputField, NodeTextBoxInput } from "../NodeInputs";
import { getPrimaryCategoryColor } from "@/lib/utils";
import { BuilderContext } from "../Flow/Flow";
-import { Badge } from "../../../../../../components/ui/badge";
+import { Badge } from "../../../../../../components/__legacy__/ui/badge";
import NodeOutputs from "../NodeOutputs";
-import { IconCoin } from "../../../../../../components/ui/icons";
+import { IconCoin } from "../../../../../../components/__legacy__/ui/icons";
import * as Separator from "@radix-ui/react-separator";
import * as ContextMenu from "@radix-ui/react-context-menu";
-import { Alert, AlertDescription } from "../../../../../../components/ui/alert";
+import {
+ Alert,
+ AlertDescription,
+} from "../../../../../../components/molecules/Alert/Alert";
import {
DotsVerticalIcon,
TrashIcon,
@@ -53,7 +56,7 @@ import { InfoIcon, Key } from "@phosphor-icons/react";
import useCredits from "@/hooks/useCredits";
import { getV1GetAyrshareSsoUrl } from "@/app/api/__generated__/endpoints/integrations/integrations";
import { toast } from "@/components/molecules/Toast/use-toast";
-import { Input } from "@/components/ui/input";
+import { Input } from "@/components/__legacy__/ui/input";
import {
Tooltip,
TooltipContent,
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/DataTable.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/DataTable.tsx
index 1eca2b4c54..4213711447 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/DataTable.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/DataTable.tsx
@@ -1,8 +1,8 @@
import { beautifyString } from "@/lib/utils";
import { Clipboard, Maximize2 } from "lucide-react";
import React, { useState } from "react";
-import { Button } from "../../../../../components/ui/button";
-import { ContentRenderer } from "../../../../../components/ui/render";
+import { Button } from "../../../../../components/__legacy__/ui/button";
+import { ContentRenderer } from "../../../../../components/__legacy__/ui/render";
import {
Table,
TableBody,
@@ -10,7 +10,7 @@ import {
TableHead,
TableHeader,
TableRow,
-} from "../../../../../components/ui/table";
+} from "../../../../../components/__legacy__/ui/table";
import { useToast } from "../../../../../components/molecules/Toast/use-toast";
import ExpandableOutputDialog from "./ExpandableOutputDialog";
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/ExpandableOutputDialog.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/ExpandableOutputDialog.tsx
index ef209f09a6..0edb37ec6a 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/ExpandableOutputDialog.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/ExpandableOutputDialog.tsx
@@ -1,6 +1,6 @@
import React, { FC, useMemo, useState } from "react";
-import { Button } from "../../../../../components/ui/button";
-import { ContentRenderer } from "../../../../../components/ui/render";
+import { Button } from "../../../../../components/__legacy__/ui/button";
+import { ContentRenderer } from "../../../../../components/__legacy__/ui/render";
import { beautifyString } from "@/lib/utils";
import { Clipboard, Maximize2 } from "lucide-react";
import { useToast } from "../../../../../components/molecules/Toast/use-toast";
@@ -12,9 +12,9 @@ import {
DialogTitle,
DialogDescription,
DialogFooter,
-} from "../../../../../components/ui/dialog";
-import { ScrollArea } from "../../../../../components/ui/scroll-area";
-import { Separator } from "../../../../../components/ui/separator";
+} from "../../../../../components/__legacy__/ui/dialog";
+import { ScrollArea } from "../../../../../components/__legacy__/ui/scroll-area";
+import { Separator } from "../../../../../components/__legacy__/ui/separator";
import { Flag, useGetFlag } from "@/services/feature-flags/use-get-flag";
import {
globalRegistry,
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/Flow/Flow.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/Flow/Flow.tsx
index 32dc3cb578..54d830bd85 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/Flow/Flow.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/Flow/Flow.tsx
@@ -51,8 +51,12 @@ import {
import { SaveControl } from "@/app/(platform)/build/components/legacy-builder/SaveControl";
import { BlocksControl } from "@/app/(platform)/build/components/legacy-builder/BlocksControl";
import { GraphSearchControl } from "@/app/(platform)/build/components/legacy-builder/GraphSearchControl";
-import { IconUndo2, IconRedo2 } from "@/components/ui/icons";
-import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
+import { IconUndo2, IconRedo2 } from "@/components/__legacy__/ui/icons";
+import {
+ Alert,
+ AlertDescription,
+ AlertTitle,
+} from "@/components/molecules/Alert/Alert";
import { startTutorial } from "../tutorial";
import useAgentGraph from "@/hooks/useAgentGraph";
import { v4 as uuidv4 } from "uuid";
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/GraphSearchControl.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/GraphSearchControl.tsx
index 6f2904475f..09deff4443 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/GraphSearchControl.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/GraphSearchControl.tsx
@@ -3,7 +3,7 @@ import {
Popover,
PopoverContent,
PopoverTrigger,
-} from "@/components/ui/popover";
+} from "@/components/__legacy__/ui/popover";
import { Button } from "@/components/atoms/Button/Button";
import { MagnifyingGlassIcon } from "@radix-ui/react-icons";
import { CustomNode } from "@/app/(platform)/build/components/legacy-builder/CustomNode/CustomNode";
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/InputModalComponent.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/InputModalComponent.tsx
index 79c673dad5..2af9ab332e 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/InputModalComponent.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/InputModalComponent.tsx
@@ -1,6 +1,6 @@
import React, { FC, useEffect, useState } from "react";
-import { Button } from "../../../../../components/ui/button";
-import { Textarea } from "../../../../../components/ui/textarea";
+import { Button } from "../../../../../components/__legacy__/ui/button";
+import { Textarea } from "../../../../../components/__legacy__/ui/textarea";
import { Maximize2, Minimize2, Clipboard } from "lucide-react";
import { createPortal } from "react-dom";
import { toast } from "../../../../../components/molecules/Toast/use-toast";
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/NodeInputs.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/NodeInputs.tsx
index afadabf641..a87d45e498 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/NodeInputs.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/NodeInputs.tsx
@@ -1,9 +1,9 @@
-import { Calendar } from "@/components/ui/calendar";
+import { Calendar } from "@/components/__legacy__/ui/calendar";
import {
Popover,
PopoverContent,
PopoverTrigger,
-} from "@/components/ui/popover";
+} from "@/components/__legacy__/ui/popover";
import { format } from "date-fns";
import { CalendarIcon } from "lucide-react";
import { beautifyString, cn } from "@/lib/utils";
@@ -36,14 +36,14 @@ import React, {
useState,
useRef,
} from "react";
-import { Button } from "../../../../../components/ui/button";
+import { Button } from "../../../../../components/__legacy__/ui/button";
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
-} from "../../../../../components/ui/select";
+} from "../../../../../components/__legacy__/ui/select";
import {
MultiSelector,
MultiSelectorContent,
@@ -51,8 +51,8 @@ import {
MultiSelectorItem,
MultiSelectorList,
MultiSelectorTrigger,
-} from "../../../../../components/ui/multiselect";
-import { LocalValuedInput } from "../../../../../components/ui/input";
+} from "../../../../../components/__legacy__/ui/multiselect";
+import { LocalValuedInput } from "../../../../../components/__legacy__/ui/input";
import NodeHandle from "./NodeHandle";
import { CredentialsInput } from "@/app/(platform)/library/agents/[id]/components/AgentRunsView/components/CredentialsInputs/CredentialsInputs";
import { Switch } from "../../../../../components/atoms/Switch/Switch";
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/NodeOutputs.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/NodeOutputs.tsx
index 5c57990ba7..2e76597eba 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/NodeOutputs.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/NodeOutputs.tsx
@@ -1,8 +1,8 @@
import React, { useState } from "react";
-import { ContentRenderer } from "../../../../../components/ui/render";
+import { ContentRenderer } from "../../../../../components/__legacy__/ui/render";
import { beautifyString } from "@/lib/utils";
import { Maximize2 } from "lucide-react";
-import { Button } from "../../../../../components/ui/button";
+import { Button } from "../../../../../components/__legacy__/ui/button";
import * as Separator from "@radix-ui/react-separator";
import ExpandableOutputDialog from "./ExpandableOutputDialog";
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/OutputModalComponent.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/OutputModalComponent.tsx
index 6311115262..5273ff850a 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/OutputModalComponent.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/OutputModalComponent.tsx
@@ -1,8 +1,8 @@
import React, { FC } from "react";
-import { Button } from "../../../../../components/ui/button";
+import { Button } from "../../../../../components/__legacy__/ui/button";
import { NodeExecutionResult } from "@/lib/autogpt-server-api/types";
import DataTable from "./DataTable";
-import { Separator } from "@/components/ui/separator";
+import { Separator } from "@/components/__legacy__/ui/separator";
interface OutputModalProps {
isOpen: boolean;
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/RunnerInputUI.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/RunnerInputUI.tsx
index 441a4ffb89..bff21c46f2 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/RunnerInputUI.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/RunnerInputUI.tsx
@@ -10,7 +10,7 @@ import {
DialogHeader,
DialogTitle,
DialogDescription,
-} from "@/components/ui/dialog";
+} from "@/components/__legacy__/ui/dialog";
import { AgentRunDraftView } from "@/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-run-draft-view";
interface RunInputDialogProps {
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/RunnerOutputUI.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/RunnerOutputUI.tsx
index b8f03cdc64..a9758da780 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/RunnerOutputUI.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/RunnerOutputUI.tsx
@@ -5,11 +5,11 @@ import {
SheetHeader,
SheetTitle,
SheetDescription,
-} from "@/components/ui/sheet";
-import { ScrollArea } from "@/components/ui/scroll-area";
-import { Label } from "@/components/ui/label";
-import { Textarea } from "@/components/ui/textarea";
-import { Button } from "@/components/ui/button";
+} from "@/components/__legacy__/ui/sheet";
+import { ScrollArea } from "@/components/__legacy__/ui/scroll-area";
+import { Label } from "@/components/__legacy__/ui/label";
+import { Textarea } from "@/components/__legacy__/ui/textarea";
+import { Button } from "@/components/__legacy__/ui/button";
import { Clipboard } from "lucide-react";
import { useToast } from "@/components/molecules/Toast/use-toast";
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/SaveControl.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/SaveControl.tsx
index b645f852b3..dcaa0f6264 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/SaveControl.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/components/legacy-builder/SaveControl.tsx
@@ -3,13 +3,13 @@ import {
Popover,
PopoverContent,
PopoverTrigger,
-} from "@/components/ui/popover";
-import { Card, CardContent, CardFooter } from "@/components/ui/card";
-import { Input } from "@/components/ui/input";
-import { Button } from "@/components/ui/button";
+} from "@/components/__legacy__/ui/popover";
+import { Card, CardContent, CardFooter } from "@/components/__legacy__/ui/card";
+import { Input } from "@/components/__legacy__/ui/input";
+import { Button } from "@/components/__legacy__/ui/button";
import { GraphMeta } from "@/lib/autogpt-server-api";
-import { Label } from "@/components/ui/label";
-import { IconSave } from "@/components/ui/icons";
+import { Label } from "@/components/__legacy__/ui/label";
+import { IconSave } from "@/components/__legacy__/ui/icons";
import {
Tooltip,
TooltipContent,
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/page.tsx b/autogpt_platform/frontend/src/app/(platform)/build/page.tsx
index 6c0e89218f..832b56d772 100644
--- a/autogpt_platform/frontend/src/app/(platform)/build/page.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/build/page.tsx
@@ -2,7 +2,7 @@
import { useOnboarding } from "@/providers/onboarding/onboarding-provider";
import FlowEditor from "@/app/(platform)/build/components/legacy-builder/Flow/Flow";
-import LoadingBox from "@/components/ui/loading";
+import LoadingBox from "@/components/__legacy__/ui/loading";
import { GraphID } from "@/lib/autogpt-server-api/types";
import { useSearchParams } from "next/navigation";
import { Suspense, useEffect } from "react";
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/APIKeyCredentialsModal/APIKeyCredentialsModal.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/APIKeyCredentialsModal/APIKeyCredentialsModal.tsx
index 4a6ca3beb7..0180c4ebf9 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/APIKeyCredentialsModal/APIKeyCredentialsModal.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/APIKeyCredentialsModal/APIKeyCredentialsModal.tsx
@@ -1,7 +1,11 @@
import { Input } from "@/components/atoms/Input/Input";
import { Button } from "@/components/atoms/Button/Button";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
-import { Form, FormDescription, FormField } from "@/components/ui/form";
+import {
+ Form,
+ FormDescription,
+ FormField,
+} from "@/components/__legacy__/ui/form";
import {
BlockIOCredentialsSubSchema,
CredentialsMetaInput,
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/AgentRunsLoading.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/AgentRunsLoading.tsx
index 45f75342ca..f12993d562 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/AgentRunsLoading.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/AgentRunsLoading.tsx
@@ -1,5 +1,5 @@
import React from "react";
-import { Skeleton } from "@/components/ui/skeleton";
+import { Skeleton } from "@/components/__legacy__/ui/skeleton";
export function AgentRunsLoading() {
return (
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/CredentialsInputs/CredentialsInputs.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/CredentialsInputs/CredentialsInputs.tsx
index d4d699404a..272570afe8 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/CredentialsInputs/CredentialsInputs.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/CredentialsInputs/CredentialsInputs.tsx
@@ -1,5 +1,9 @@
import { Button } from "@/components/atoms/Button/Button";
-import { IconKey, IconKeyPlus, IconUserPlus } from "@/components/ui/icons";
+import {
+ IconKey,
+ IconKeyPlus,
+ IconUserPlus,
+} from "@/components/__legacy__/ui/icons";
import {
Select,
SelectContent,
@@ -7,7 +11,7 @@ import {
SelectSeparator,
SelectTrigger,
SelectValue,
-} from "@/components/ui/select";
+} from "@/components/__legacy__/ui/select";
import useCredentials from "@/hooks/useCredentials";
import { useBackendAPI } from "@/lib/autogpt-server-api/context";
import {
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/HotScopedCredentialsModal/HotScopedCredentialsModal.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/HotScopedCredentialsModal/HotScopedCredentialsModal.tsx
index ba16a76d85..547952841b 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/HotScopedCredentialsModal/HotScopedCredentialsModal.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/HotScopedCredentialsModal/HotScopedCredentialsModal.tsx
@@ -10,7 +10,7 @@ import {
FormDescription,
FormField,
FormLabel,
-} from "@/components/ui/form";
+} from "@/components/__legacy__/ui/form";
import useCredentials from "@/hooks/useCredentials";
import {
BlockIOCredentialsSubSchema,
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/OutputRenderers/components/OutputActions.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/OutputRenderers/components/OutputActions.tsx
index bde1944413..4cbaf669af 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/OutputRenderers/components/OutputActions.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/OutputRenderers/components/OutputActions.tsx
@@ -2,7 +2,7 @@
import React, { useState } from "react";
import { CheckIcon, CopyIcon, DownloadIcon } from "@phosphor-icons/react";
-import { Button } from "@/components/ui/button";
+import { Button } from "@/components/__legacy__/ui/button";
import { OutputRenderer, OutputMetadata } from "../types";
import { downloadOutputs } from "../utils/download";
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/PasswordCredentialsModal/PasswordCredentialsModal.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/PasswordCredentialsModal/PasswordCredentialsModal.tsx
index 7052da9f3c..5fbea007cc 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/PasswordCredentialsModal/PasswordCredentialsModal.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/PasswordCredentialsModal/PasswordCredentialsModal.tsx
@@ -4,7 +4,7 @@ import { zodResolver } from "@hookform/resolvers/zod";
import { Input } from "@/components/atoms/Input/Input";
import { Button } from "@/components/atoms/Button/Button";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
-import { Form, FormField } from "@/components/ui/form";
+import { Form, FormField } from "@/components/__legacy__/ui/form";
import useCredentials from "@/hooks/useCredentials";
import {
BlockIOCredentialsSubSchema,
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/RunsSidebar/RunsSidebar.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/RunsSidebar/RunsSidebar.tsx
index 40ee814ee6..9d2ba2f0b3 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/RunsSidebar/RunsSidebar.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/RunsSidebar/RunsSidebar.tsx
@@ -14,7 +14,7 @@ import { ScheduleListItem } from "./components/ScheduleListItem";
import type { GraphExecutionJobInfo } from "@/app/api/__generated__/models/graphExecutionJobInfo";
import { InfiniteList } from "@/components/molecules/InfiniteList/InfiniteList";
import { ErrorCard } from "@/components/molecules/ErrorCard/ErrorCard";
-import { Skeleton } from "@/components/ui/skeleton";
+import { Skeleton } from "@/components/__legacy__/ui/skeleton";
interface RunsSidebarProps {
agent: LibraryAgent;
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/SelectedRunView/SelectedRunView.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/SelectedRunView/SelectedRunView.tsx
index 05b9f93f2d..0ab027d99f 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/SelectedRunView/SelectedRunView.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/SelectedRunView/SelectedRunView.tsx
@@ -11,7 +11,7 @@ import { useSelectedRunView } from "./useSelectedRunView";
import type { LibraryAgent } from "@/app/api/__generated__/models/libraryAgent";
import { RunDetailHeader } from "../RunDetailHeader/RunDetailHeader";
import { ErrorCard } from "@/components/molecules/ErrorCard/ErrorCard";
-import { Skeleton } from "@/components/ui/skeleton";
+import { Skeleton } from "@/components/__legacy__/ui/skeleton";
import { AgentInputsReadOnly } from "../AgentInputsReadOnly/AgentInputsReadOnly";
import { RunDetailCard } from "../RunDetailCard/RunDetailCard";
import { RunOutputs } from "./components/RunOutputs";
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/SelectedScheduleView/SelectedScheduleView.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/SelectedScheduleView/SelectedScheduleView.tsx
index 605774489e..558b3d573a 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/SelectedScheduleView/SelectedScheduleView.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/SelectedScheduleView/SelectedScheduleView.tsx
@@ -16,7 +16,7 @@ import { RunDetailHeader } from "../RunDetailHeader/RunDetailHeader";
import { humanizeCronExpression } from "@/lib/cron-expression-utils";
import { useGetV1GetUserTimezone } from "@/app/api/__generated__/endpoints/auth/auth";
import { formatInTimezone, getTimezoneDisplayName } from "@/lib/timezone-utils";
-import { Skeleton } from "@/components/ui/skeleton";
+import { Skeleton } from "@/components/__legacy__/ui/skeleton";
import { AgentInputsReadOnly } from "../AgentInputsReadOnly/AgentInputsReadOnly";
import { ScheduleActions } from "./components/ScheduleActions";
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/ShareRunButton/ShareRunButton.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/ShareRunButton/ShareRunButton.tsx
index d813b713c0..be356424bd 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/ShareRunButton/ShareRunButton.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/AgentRunsView/components/ShareRunButton/ShareRunButton.tsx
@@ -3,7 +3,7 @@
import React from "react";
import { Button } from "@/components/atoms/Button/Button";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
-import { Alert, AlertDescription } from "@/components/ui/alert";
+import { Alert, AlertDescription } from "@/components/molecules/Alert/Alert";
import {
ShareFatIcon,
CopyIcon,
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/OldAgentLibraryView.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/OldAgentLibraryView.tsx
index 47f5128f3b..52ffeb4130 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/OldAgentLibraryView.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/OldAgentLibraryView.tsx
@@ -25,9 +25,9 @@ import {
import { useBackendAPI } from "@/lib/autogpt-server-api/context";
import { exportAsJSONFile } from "@/lib/utils";
-import DeleteConfirmDialog from "@/components/agptui/delete-confirm-dialog";
-import type { ButtonAction } from "@/components/agptui/types";
-import { Button } from "@/components/ui/button";
+import DeleteConfirmDialog from "@/components/__legacy__/delete-confirm-dialog";
+import type { ButtonAction } from "@/components/__legacy__/types";
+import { Button } from "@/components/__legacy__/ui/button";
import {
Dialog,
DialogContent,
@@ -35,8 +35,8 @@ import {
DialogFooter,
DialogHeader,
DialogTitle,
-} from "@/components/ui/dialog";
-import LoadingBox, { LoadingSpinner } from "@/components/ui/loading";
+} from "@/components/__legacy__/ui/dialog";
+import LoadingBox, { LoadingSpinner } from "@/components/__legacy__/ui/loading";
import {
useToast,
useToastOnFail,
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-run-details-view.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-run-details-view.tsx
index eae2057874..a5aebad54c 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-run-details-view.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-run-details-view.tsx
@@ -11,16 +11,21 @@ import {
} from "@/lib/autogpt-server-api";
import { useBackendAPI } from "@/lib/autogpt-server-api/context";
-import ActionButtonGroup from "@/components/agptui/action-button-group";
-import type { ButtonAction } from "@/components/agptui/types";
-import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
+import ActionButtonGroup from "@/components/__legacy__/action-button-group";
+import type { ButtonAction } from "@/components/__legacy__/types";
+import {
+ Card,
+ CardContent,
+ CardHeader,
+ CardTitle,
+} from "@/components/__legacy__/ui/card";
import {
IconRefresh,
IconSquare,
IconCircleAlert,
-} from "@/components/ui/icons";
-import { Input } from "@/components/ui/input";
-import LoadingBox from "@/components/ui/loading";
+} from "@/components/__legacy__/ui/icons";
+import { Input } from "@/components/__legacy__/ui/input";
+import LoadingBox from "@/components/__legacy__/ui/loading";
import {
Tooltip,
TooltipContent,
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-run-draft-view.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-run-draft-view.tsx
index 6019b2f515..b4c1a87605 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-run-draft-view.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-run-draft-view.tsx
@@ -12,10 +12,19 @@ import {
} from "@/lib/autogpt-server-api";
import { useBackendAPI } from "@/lib/autogpt-server-api/context";
-import ActionButtonGroup from "@/components/agptui/action-button-group";
-import type { ButtonAction } from "@/components/agptui/types";
-import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
-import { IconCross, IconPlay, IconSave } from "@/components/ui/icons";
+import ActionButtonGroup from "@/components/__legacy__/action-button-group";
+import type { ButtonAction } from "@/components/__legacy__/types";
+import {
+ Card,
+ CardContent,
+ CardHeader,
+ CardTitle,
+} from "@/components/__legacy__/ui/card";
+import {
+ IconCross,
+ IconPlay,
+ IconSave,
+} from "@/components/__legacy__/ui/icons";
import { CalendarClockIcon, Trash2Icon } from "lucide-react";
import { ClockIcon, InfoIcon } from "@phosphor-icons/react";
import { humanizeCronExpression } from "@/lib/cron-expression-utils";
@@ -26,7 +35,7 @@ import { cn, isEmpty } from "@/lib/utils";
import { InformationTooltip } from "@/components/molecules/InformationTooltip/InformationTooltip";
import { CopyIcon } from "@phosphor-icons/react";
import { Button } from "@/components/atoms/Button/Button";
-import { Input } from "@/components/ui/input";
+import { Input } from "@/components/__legacy__/ui/input";
import {
useToast,
useToastOnFail,
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-run-output-view.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-run-output-view.tsx
index 1f13498f0a..520917e1d7 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-run-output-view.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-run-output-view.tsx
@@ -3,9 +3,14 @@
import React, { useMemo } from "react";
import { Flag, useGetFlag } from "@/services/feature-flags/use-get-flag";
-import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
+import {
+ Card,
+ CardContent,
+ CardHeader,
+ CardTitle,
+} from "@/components/__legacy__/ui/card";
-import LoadingBox from "@/components/ui/loading";
+import LoadingBox from "@/components/__legacy__/ui/loading";
import {
globalRegistry,
OutputItem,
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-run-status-chip.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-run-status-chip.tsx
index a4b07ddec3..46bd50d26c 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-run-status-chip.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-run-status-chip.tsx
@@ -1,6 +1,6 @@
import React from "react";
-import { Badge } from "@/components/ui/badge";
+import { Badge } from "@/components/__legacy__/ui/badge";
import { GraphExecutionMeta } from "@/lib/autogpt-server-api/types";
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-run-summary-card.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-run-summary-card.tsx
index d7275ec053..423495878b 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-run-summary-card.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-run-summary-card.tsx
@@ -4,14 +4,14 @@ import moment from "moment";
import { cn } from "@/lib/utils";
import { Link2Icon, Link2OffIcon, MoreVertical } from "lucide-react";
-import { Card, CardContent } from "@/components/ui/card";
-import { Button } from "@/components/ui/button";
+import { Card, CardContent } from "@/components/__legacy__/ui/card";
+import { Button } from "@/components/__legacy__/ui/button";
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
-} from "@/components/ui/dropdown-menu";
+} from "@/components/__legacy__/ui/dropdown-menu";
import { AgentStatus, AgentStatusChip } from "./agent-status-chip";
import { AgentRunStatus, AgentRunStatusChip } from "./agent-run-status-chip";
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-runs-selector-list.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-runs-selector-list.tsx
index 6401097154..5931404846 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-runs-selector-list.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-runs-selector-list.tsx
@@ -13,11 +13,11 @@ import {
} from "@/lib/autogpt-server-api";
import { cn } from "@/lib/utils";
-import { Badge } from "@/components/ui/badge";
+import { Badge } from "@/components/__legacy__/ui/badge";
import { Button } from "@/components/atoms/Button/Button";
-import LoadingBox, { LoadingSpinner } from "@/components/ui/loading";
-import { Separator } from "@/components/ui/separator";
-import { ScrollArea } from "@/components/ui/scroll-area";
+import LoadingBox, { LoadingSpinner } from "@/components/__legacy__/ui/loading";
+import { Separator } from "@/components/__legacy__/ui/separator";
+import { ScrollArea } from "@/components/__legacy__/ui/scroll-area";
import { InfiniteScroll } from "@/components/contextual/InfiniteScroll/InfiniteScroll";
import { AgentRunsQuery } from "../use-agent-runs";
import { agentRunStatusMap } from "./agent-run-status-chip";
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-schedule-details-view.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-schedule-details-view.tsx
index dddc870823..b90a4f24d6 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-schedule-details-view.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-schedule-details-view.tsx
@@ -9,12 +9,17 @@ import {
} from "@/lib/autogpt-server-api";
import { useBackendAPI } from "@/lib/autogpt-server-api/context";
-import ActionButtonGroup from "@/components/agptui/action-button-group";
-import type { ButtonAction } from "@/components/agptui/types";
-import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
-import { IconCross } from "@/components/ui/icons";
-import { Input } from "@/components/ui/input";
-import LoadingBox from "@/components/ui/loading";
+import ActionButtonGroup from "@/components/__legacy__/action-button-group";
+import type { ButtonAction } from "@/components/__legacy__/types";
+import {
+ Card,
+ CardContent,
+ CardHeader,
+ CardTitle,
+} from "@/components/__legacy__/ui/card";
+import { IconCross } from "@/components/__legacy__/ui/icons";
+import { Input } from "@/components/__legacy__/ui/input";
+import LoadingBox from "@/components/__legacy__/ui/loading";
import { useToastOnFail } from "@/components/molecules/Toast/use-toast";
import { humanizeCronExpression } from "@/lib/cron-expression-utils";
import { formatScheduleTime } from "@/lib/timezone-utils";
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-status-chip.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-status-chip.tsx
index 011fa7c56f..60c4a5a944 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-status-chip.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/agent-status-chip.tsx
@@ -1,6 +1,6 @@
import React from "react";
-import { Badge } from "@/components/ui/badge";
+import { Badge } from "@/components/__legacy__/ui/badge";
export type AgentStatus = "active" | "inactive" | "error" | "broken";
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/create-preset-dialog.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/create-preset-dialog.tsx
index 778443464d..2ca64d5ec5 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/create-preset-dialog.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/create-preset-dialog.tsx
@@ -1,7 +1,7 @@
"use client";
import React, { useState } from "react";
-import { Button } from "@/components/ui/button";
+import { Button } from "@/components/__legacy__/ui/button";
import {
Dialog,
DialogContent,
@@ -9,9 +9,9 @@ import {
DialogFooter,
DialogHeader,
DialogTitle,
-} from "@/components/ui/dialog";
-import { Input } from "@/components/ui/input";
-import { Textarea } from "@/components/ui/textarea";
+} from "@/components/__legacy__/ui/dialog";
+import { Input } from "@/components/__legacy__/ui/input";
+import { Textarea } from "@/components/__legacy__/ui/textarea";
interface CreatePresetDialogProps {
open: boolean;
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/cron-scheduler-dialog.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/cron-scheduler-dialog.tsx
index 3aa1381495..e998823a89 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/cron-scheduler-dialog.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/cron-scheduler-dialog.tsx
@@ -1,6 +1,6 @@
import { useEffect, useState } from "react";
-import { Input } from "@/components/ui/input";
-import { Button } from "@/components/ui/button";
+import { Input } from "@/components/__legacy__/ui/input";
+import { Button } from "@/components/__legacy__/ui/button";
import { useToast } from "@/components/molecules/Toast/use-toast";
import { CronScheduler } from "@/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/cron-scheduler";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/cron-scheduler.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/cron-scheduler.tsx
index 612c667f76..a0e1b9f1b3 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/cron-scheduler.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/cron-scheduler.tsx
@@ -5,10 +5,10 @@ import {
SelectItem,
SelectTrigger,
SelectValue,
-} from "@/components/ui/select";
-import { Label } from "@/components/ui/label";
-import { Input } from "@/components/ui/input";
-import { Button } from "@/components/ui/button";
+} from "@/components/__legacy__/ui/select";
+import { Label } from "@/components/__legacy__/ui/label";
+import { Input } from "@/components/__legacy__/ui/input";
+import { Button } from "@/components/__legacy__/ui/button";
import { CronFrequency, makeCronExpression } from "@/lib/cron-expression-utils";
const weekDays = [
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/components/FavoritesSection/FavoritesSection.tsx b/autogpt_platform/frontend/src/app/(platform)/library/components/FavoritesSection/FavoritesSection.tsx
index becc274490..7ed372f296 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/components/FavoritesSection/FavoritesSection.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/components/FavoritesSection/FavoritesSection.tsx
@@ -5,7 +5,7 @@ import { useFavoriteAgents } from "../../hooks/useFavoriteAgents";
import LibraryAgentCard from "../LibraryAgentCard/LibraryAgentCard";
import { useGetFlag, Flag } from "@/services/feature-flags/use-get-flag";
import { Heart } from "lucide-react";
-import { Skeleton } from "@/components/ui/skeleton";
+import { Skeleton } from "@/components/__legacy__/ui/skeleton";
import { InfiniteScroll } from "@/components/contextual/InfiniteScroll/InfiniteScroll";
import { LibraryAgent } from "@/app/api/__generated__/models/libraryAgent";
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryNotificationCard/LibraryNotificationCard.tsx b/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryNotificationCard/LibraryNotificationCard.tsx
index 03df815f31..51520e4445 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryNotificationCard/LibraryNotificationCard.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryNotificationCard/LibraryNotificationCard.tsx
@@ -1,6 +1,6 @@
import Image from "next/image";
-import { Button } from "@/components/ui/button";
-import { Separator } from "@/components/ui/separator";
+import { Button } from "@/components/__legacy__/ui/button";
+import { Separator } from "@/components/__legacy__/ui/separator";
import {
CirclePlayIcon,
ClipboardCopy,
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryNotificationDropdown/LibraryNotificationDropdown.tsx b/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryNotificationDropdown/LibraryNotificationDropdown.tsx
index f38ade2359..cd863a21af 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryNotificationDropdown/LibraryNotificationDropdown.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryNotificationDropdown/LibraryNotificationDropdown.tsx
@@ -3,14 +3,14 @@ import React, { useState, useEffect, useMemo } from "react";
import { motion, useAnimationControls } from "framer-motion";
import { BellIcon, X } from "lucide-react";
-import { Button } from "@/components/agptui/Button";
+import { Button } from "@/components/__legacy__/Button";
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuLabel,
DropdownMenuTrigger,
-} from "@/components/ui/dropdown-menu";
+} from "@/components/__legacy__/ui/dropdown-menu";
import NotificationCard, {
NotificationCardData,
} from "../LibraryNotificationCard/LibraryNotificationCard";
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 4a1422b5ea..ee36347874 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,5 +1,5 @@
"use client";
-import { Input } from "@/components/ui/input";
+import { Input } from "@/components/__legacy__/ui/input";
import { Search, X } from "lucide-react";
import { useLibrarySearchbar } from "./useLibrarySearchbar";
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/components/LibrarySortMenu/LibrarySortMenu.tsx b/autogpt_platform/frontend/src/app/(platform)/library/components/LibrarySortMenu/LibrarySortMenu.tsx
index f86b26f5f5..ac4ed060f2 100644
--- a/autogpt_platform/frontend/src/app/(platform)/library/components/LibrarySortMenu/LibrarySortMenu.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/library/components/LibrarySortMenu/LibrarySortMenu.tsx
@@ -7,7 +7,7 @@ import {
SelectItem,
SelectTrigger,
SelectValue,
-} from "@/components/ui/select";
+} from "@/components/__legacy__/ui/select";
import { LibraryAgentSort } from "@/app/api/__generated__/models/libraryAgentSort";
import { useLibrarySortMenu } from "./useLibrarySortMenu";
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 9bc5223a5e..3fbe0035f8 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
@@ -1,13 +1,13 @@
"use client";
import { Upload, X } from "lucide-react";
-import { Button } from "@/components/agptui/Button";
+import { Button } from "@/components/__legacy__/Button";
import {
Dialog,
DialogContent,
DialogHeader,
DialogTitle,
DialogTrigger,
-} from "@/components/ui/dialog";
+} from "@/components/__legacy__/ui/dialog";
import { z } from "zod";
import { FileUploader } from "react-drag-drop-files";
import {
@@ -17,9 +17,9 @@ import {
FormItem,
FormLabel,
FormMessage,
-} from "@/components/ui/form";
-import { Input } from "@/components/ui/input";
-import { Textarea } from "@/components/ui/textarea";
+} from "@/components/__legacy__/ui/form";
+import { Input } from "@/components/__legacy__/ui/input";
+import { Textarea } from "@/components/__legacy__/ui/textarea";
import { useLibraryUploadAgentDialog } from "./useLibraryUploadAgentDialog";
const fileTypes = ["JSON"];
diff --git a/autogpt_platform/frontend/src/app/(platform)/login/components/LoadingLogin.tsx b/autogpt_platform/frontend/src/app/(platform)/login/components/LoadingLogin.tsx
index 16ab084c2c..e1dfd7ef73 100644
--- a/autogpt_platform/frontend/src/app/(platform)/login/components/LoadingLogin.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/login/components/LoadingLogin.tsx
@@ -1,5 +1,5 @@
import { AuthCard } from "@/components/auth/AuthCard";
-import { Skeleton } from "@/components/ui/skeleton";
+import { Skeleton } from "@/components/__legacy__/ui/skeleton";
export function LoadingLogin() {
return (
diff --git a/autogpt_platform/frontend/src/app/(platform)/login/page.tsx b/autogpt_platform/frontend/src/app/(platform)/login/page.tsx
index b051065d75..eaa5d2dd50 100644
--- a/autogpt_platform/frontend/src/app/(platform)/login/page.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/login/page.tsx
@@ -7,7 +7,7 @@ import AuthFeedback from "@/components/auth/AuthFeedback";
import { EmailNotAllowedModal } from "@/components/auth/EmailNotAllowedModal";
import { GoogleOAuthButton } from "@/components/auth/GoogleOAuthButton";
import Turnstile from "@/components/auth/Turnstile";
-import { Form, FormField } from "@/components/ui/form";
+import { Form, FormField } from "@/components/__legacy__/ui/form";
import { getBehaveAs } from "@/lib/utils";
import { LoadingLogin } from "./components/LoadingLogin";
import { useLoginPage } from "./useLoginPage";
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 c4752022e0..d938e8de7a 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,6 @@
import Image from "next/image";
import { PlayIcon } from "@radix-ui/react-icons";
-import { Button } from "@/components/ui/button";
+import { Button } from "@/components/__legacy__/ui/button";
import {
getYouTubeVideoId,
isValidVideoFile,
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 4e5cb6289f..cd0572e836 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
@@ -1,7 +1,7 @@
"use client";
-import { StarRatingIcons } from "@/components/ui/icons";
-import { Separator } from "@/components/ui/separator";
+import { StarRatingIcons } from "@/components/__legacy__/ui/icons";
+import { Separator } from "@/components/__legacy__/ui/separator";
import Link from "next/link";
import { User } from "@supabase/supabase-js";
import { cn } from "@/lib/utils";
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/AgentPageLoading.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/AgentPageLoading.tsx
index be115641b0..247b2816c8 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/AgentPageLoading.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/AgentPageLoading.tsx
@@ -1,4 +1,4 @@
-import { Skeleton } from "@/components/ui/skeleton";
+import { Skeleton } from "@/components/__legacy__/ui/skeleton";
export const AgentPageLoading = () => {
return (
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/AgentsSection/AgentsSection.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/AgentsSection/AgentsSection.tsx
index 48c6a7510f..2d1497be62 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/AgentsSection/AgentsSection.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/AgentsSection/AgentsSection.tsx
@@ -4,7 +4,7 @@ import {
Carousel,
CarouselContent,
CarouselItem,
-} from "@/components/ui/carousel";
+} from "@/components/__legacy__/ui/carousel";
import { useAgentsSection } from "./useAgentsSection";
import { StoreAgent } from "@/app/api/__generated__/models/storeAgent";
import { StoreCard } from "../StoreCard/StoreCard";
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CreatorInfoCard/CreatorInfoCard.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CreatorInfoCard/CreatorInfoCard.tsx
index 099743415e..86868186d1 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CreatorInfoCard/CreatorInfoCard.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CreatorInfoCard/CreatorInfoCard.tsx
@@ -2,7 +2,7 @@ import Avatar, {
AvatarFallback,
AvatarImage,
} from "@/components/atoms/Avatar/Avatar";
-import { StarRatingIcons } from "@/components/ui/icons";
+import { StarRatingIcons } from "@/components/__legacy__/ui/icons";
interface CreatorInfoCardProps {
username: string;
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 896592fc69..5bbfa9a939 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,4 +1,4 @@
-import { getIconForSocial } from "@/components/ui/icons";
+import { getIconForSocial } from "@/components/__legacy__/ui/icons";
import { Fragment } from "react";
interface CreatorLinksProps {
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CreatorPageLoading.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CreatorPageLoading.tsx
index 7aee9e7b0d..cb700b55d5 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CreatorPageLoading.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CreatorPageLoading.tsx
@@ -1,4 +1,4 @@
-import { Skeleton } from "@/components/ui/skeleton";
+import { Skeleton } from "@/components/__legacy__/ui/skeleton";
export const CreatorPageLoading = () => {
return (
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/FeaturedAgentCard/FeaturedAgentCard.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/FeaturedAgentCard/FeaturedAgentCard.tsx
index cef53dfdd9..3108ba2f06 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/FeaturedAgentCard/FeaturedAgentCard.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/FeaturedAgentCard/FeaturedAgentCard.tsx
@@ -1,5 +1,5 @@
import Image from "next/image";
-import { StarRatingIcons } from "@/components/ui/icons";
+import { StarRatingIcons } from "@/components/__legacy__/ui/icons";
import {
Card,
CardContent,
@@ -7,7 +7,7 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from "@/components/ui/card";
+} from "@/components/__legacy__/ui/card";
import { useState } from "react";
import { StoreAgent } from "@/app/api/__generated__/models/storeAgent";
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 13ab762d4a..309148c02b 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
@@ -7,7 +7,7 @@ import {
CarouselPrevious,
CarouselNext,
CarouselIndicator,
-} from "@/components/ui/carousel";
+} from "@/components/__legacy__/ui/carousel";
import Link from "next/link";
import { useFeaturedSection } from "./useFeaturedSection";
import { StoreAgent } from "@/app/api/__generated__/models/storeAgent";
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/FilterChips/FilterChips.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/FilterChips/FilterChips.tsx
index c4363a1fc1..5266c7383a 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/FilterChips/FilterChips.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/FilterChips/FilterChips.tsx
@@ -1,6 +1,6 @@
"use client";
-import { Badge } from "@/components/ui/badge";
+import { Badge } from "@/components/__legacy__/ui/badge";
import { useFilterChips } from "./useFilterChips";
interface FilterChipsProps {
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 09141fd7d6..d48b18105d 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
@@ -2,7 +2,7 @@
import { Breadcrumbs } from "@/components/molecules/Breadcrumbs/Breadcrumbs";
import { useMainAgentPage } from "./useMainAgentPage";
import { MarketplaceAgentPageParams } from "../../agent/[creator]/[slug]/page";
-import { Separator } from "@/components/ui/separator";
+import { Separator } from "@/components/__legacy__/ui/separator";
import { AgentsSection } from "../AgentsSection/AgentsSection";
import { BecomeACreator } from "../BecomeACreator/BecomeACreator";
import { AgentPageLoading } from "../AgentPageLoading";
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainCreatorPage/MainCreatorPage.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainCreatorPage/MainCreatorPage.tsx
index ae1b4dd11e..b53e8c304d 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainCreatorPage/MainCreatorPage.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainCreatorPage/MainCreatorPage.tsx
@@ -1,6 +1,6 @@
"use client";
-import { Separator } from "@/components/ui/separator";
+import { Separator } from "@/components/__legacy__/ui/separator";
import { AgentsSection } from "../AgentsSection/AgentsSection";
import { MarketplaceCreatorPageParams } from "../../creator/[creator]/page";
import { Breadcrumbs } from "@/components/molecules/Breadcrumbs/Breadcrumbs";
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainMarketplacePage/MainMarketplacePage.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainMarketplacePage/MainMarketplacePage.tsx
index ee30cfb3b5..6c1990a7d9 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainMarketplacePage/MainMarketplacePage.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainMarketplacePage/MainMarketplacePage.tsx
@@ -1,5 +1,5 @@
"use client";
-import { Separator } from "@/components/ui/separator";
+import { Separator } from "@/components/__legacy__/ui/separator";
import { FeaturedSection } from "../FeaturedSection/FeaturedSection";
import { BecomeACreator } from "../BecomeACreator/BecomeACreator";
import { HeroSection } from "../HeroSection/HeroSection";
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainMarketplacePageLoading.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainMarketplacePageLoading.tsx
index 259ad422f6..4e296721ba 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainMarketplacePageLoading.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainMarketplacePageLoading.tsx
@@ -1,4 +1,4 @@
-import { Skeleton } from "@/components/ui/skeleton";
+import { Skeleton } from "@/components/__legacy__/ui/skeleton";
export const MainMarketplacePageLoading = () => {
return (
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/StoreCard/StoreCard.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/StoreCard/StoreCard.tsx
index 9f93ee04b6..b9e6ab5f95 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/StoreCard/StoreCard.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/StoreCard/StoreCard.tsx
@@ -1,5 +1,5 @@
import Image from "next/image";
-import { StarRatingIcons } from "@/components/ui/icons";
+import { StarRatingIcons } from "@/components/__legacy__/ui/icons";
import Avatar, {
AvatarFallback,
AvatarImage,
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/search/page.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/search/page.tsx
index d9209b2c4a..30aefeaa95 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/search/page.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/search/page.tsx
@@ -1,12 +1,12 @@
"use client";
import { use, useCallback, useEffect, useState } from "react";
-import { AgentsSection } from "@/components/agptui/composite/AgentsSection";
-import { SearchBar } from "@/components/agptui/SearchBar";
-import { FeaturedCreators } from "@/components/agptui/composite/FeaturedCreators";
-import { Separator } from "@/components/ui/separator";
-import { SearchFilterChips } from "@/components/agptui/SearchFilterChips";
-import { SortDropdown } from "@/components/agptui/SortDropdown";
+import { AgentsSection } from "@/components/__legacy__/composite/AgentsSection";
+import { SearchBar } from "@/components/__legacy__/SearchBar";
+import { FeaturedCreators } from "@/components/__legacy__/composite/FeaturedCreators";
+import { Separator } from "@/components/__legacy__/ui/separator";
+import { SearchFilterChips } from "@/components/__legacy__/SearchFilterChips";
+import { SortDropdown } from "@/components/__legacy__/SortDropdown";
import { useBackendAPI } from "@/lib/autogpt-server-api/context";
import { Creator, StoreAgent } from "@/lib/autogpt-server-api";
diff --git a/autogpt_platform/frontend/src/app/(platform)/monitoring/components/AgentFlowList.tsx b/autogpt_platform/frontend/src/app/(platform)/monitoring/components/AgentFlowList.tsx
index 38f9610c9d..1080a355cd 100644
--- a/autogpt_platform/frontend/src/app/(platform)/monitoring/components/AgentFlowList.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/monitoring/components/AgentFlowList.tsx
@@ -1,21 +1,26 @@
import { GraphExecutionMeta, LibraryAgent } from "@/lib/autogpt-server-api";
import React from "react";
-import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
-import { Button } from "@/components/ui/button";
-import { TextRenderer } from "@/components/ui/render";
+import {
+ Card,
+ CardContent,
+ CardHeader,
+ CardTitle,
+} from "@/components/__legacy__/ui/card";
+import { Button } from "@/components/__legacy__/ui/button";
+import { TextRenderer } from "@/components/__legacy__/ui/render";
import Link from "next/link";
import {
Dialog,
DialogContent,
DialogHeader,
DialogTrigger,
-} from "@/components/ui/dialog";
+} from "@/components/__legacy__/ui/dialog";
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
-} from "@/components/ui/dropdown-menu";
+} from "@/components/__legacy__/ui/dropdown-menu";
import { ChevronDownIcon, EnterIcon } from "@radix-ui/react-icons";
import {
Table,
@@ -24,9 +29,9 @@ import {
TableHead,
TableHeader,
TableRow,
-} from "@/components/ui/table";
+} from "@/components/__legacy__/ui/table";
import moment from "moment/moment";
-import { DialogTitle } from "@/components/ui/dialog";
+import { DialogTitle } from "@/components/__legacy__/ui/dialog";
import { AgentImportForm } from "./AgentImportForm";
export const AgentFlowList = ({
diff --git a/autogpt_platform/frontend/src/app/(platform)/monitoring/components/AgentImportForm.tsx b/autogpt_platform/frontend/src/app/(platform)/monitoring/components/AgentImportForm.tsx
index 41fa037254..991ea4868a 100644
--- a/autogpt_platform/frontend/src/app/(platform)/monitoring/components/AgentImportForm.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/monitoring/components/AgentImportForm.tsx
@@ -10,10 +10,10 @@ import {
FormItem,
FormLabel,
FormMessage,
-} from "@/components/ui/form";
-import { Input } from "@/components/ui/input";
-import { Button } from "@/components/ui/button";
-import { Textarea } from "@/components/ui/textarea";
+} from "@/components/__legacy__/ui/form";
+import { Input } from "@/components/__legacy__/ui/input";
+import { Button } from "@/components/__legacy__/ui/button";
+import { Textarea } from "@/components/__legacy__/ui/textarea";
import { EnterIcon } from "@radix-ui/react-icons";
import { useBackendAPI } from "@/lib/autogpt-server-api/context";
import {
diff --git a/autogpt_platform/frontend/src/app/(platform)/monitoring/components/FlowInfo.tsx b/autogpt_platform/frontend/src/app/(platform)/monitoring/components/FlowInfo.tsx
index 2a0ba48708..218e432811 100644
--- a/autogpt_platform/frontend/src/app/(platform)/monitoring/components/FlowInfo.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/monitoring/components/FlowInfo.tsx
@@ -4,7 +4,12 @@ import {
GraphExecutionMeta,
LibraryAgent,
} from "@/lib/autogpt-server-api";
-import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
+import {
+ Card,
+ CardContent,
+ CardHeader,
+ CardTitle,
+} from "@/components/__legacy__/ui/card";
import {
DropdownMenu,
DropdownMenuContent,
@@ -13,8 +18,8 @@ import {
DropdownMenuRadioItem,
DropdownMenuSeparator,
DropdownMenuTrigger,
-} from "@/components/ui/dropdown-menu";
-import { Button, buttonVariants } from "@/components/ui/button";
+} from "@/components/__legacy__/ui/dropdown-menu";
+import { Button, buttonVariants } from "@/components/__legacy__/ui/button";
import {
ClockIcon,
ExitIcon,
@@ -31,7 +36,7 @@ import {
DialogTitle,
DialogDescription,
DialogFooter,
-} from "@/components/ui/dialog";
+} from "@/components/__legacy__/ui/dialog";
import useAgentGraph from "@/hooks/useAgentGraph";
import { useBackendAPI } from "@/lib/autogpt-server-api/context";
import { FlowRunsStatus } from "./FlowRunsStatus";
diff --git a/autogpt_platform/frontend/src/app/(platform)/monitoring/components/FlowRunInfo.tsx b/autogpt_platform/frontend/src/app/(platform)/monitoring/components/FlowRunInfo.tsx
index 63ec577cdd..e619c2fd3d 100644
--- a/autogpt_platform/frontend/src/app/(platform)/monitoring/components/FlowRunInfo.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/monitoring/components/FlowRunInfo.tsx
@@ -1,9 +1,14 @@
import React, { useCallback, useEffect, useState } from "react";
import { GraphExecutionMeta, LibraryAgent } from "@/lib/autogpt-server-api";
-import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
+import {
+ Card,
+ CardContent,
+ CardHeader,
+ CardTitle,
+} from "@/components/__legacy__/ui/card";
import Link from "next/link";
-import { Button, buttonVariants } from "@/components/ui/button";
-import { IconSquare } from "@/components/ui/icons";
+import { Button, buttonVariants } from "@/components/__legacy__/ui/button";
+import { IconSquare } from "@/components/__legacy__/ui/icons";
import { ExitIcon, Pencil2Icon } from "@radix-ui/react-icons";
import moment from "moment/moment";
import { FlowRunStatusBadge } from "@/app/(platform)/monitoring/components/FlowRunStatusBadge";
diff --git a/autogpt_platform/frontend/src/app/(platform)/monitoring/components/FlowRunStatusBadge.tsx b/autogpt_platform/frontend/src/app/(platform)/monitoring/components/FlowRunStatusBadge.tsx
index d74b7cedf1..cc9e5199d6 100644
--- a/autogpt_platform/frontend/src/app/(platform)/monitoring/components/FlowRunStatusBadge.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/monitoring/components/FlowRunStatusBadge.tsx
@@ -1,5 +1,5 @@
import React from "react";
-import { Badge } from "@/components/ui/badge";
+import { Badge } from "@/components/__legacy__/ui/badge";
import { cn } from "@/lib/utils";
import { GraphExecutionMeta } from "@/lib/autogpt-server-api";
diff --git a/autogpt_platform/frontend/src/app/(platform)/monitoring/components/FlowRunsList.tsx b/autogpt_platform/frontend/src/app/(platform)/monitoring/components/FlowRunsList.tsx
index 2113cfd58d..a99d9309b5 100644
--- a/autogpt_platform/frontend/src/app/(platform)/monitoring/components/FlowRunsList.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/monitoring/components/FlowRunsList.tsx
@@ -1,6 +1,11 @@
import React from "react";
import { GraphExecutionMeta, LibraryAgent } from "@/lib/autogpt-server-api";
-import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
+import {
+ Card,
+ CardContent,
+ CardHeader,
+ CardTitle,
+} from "@/components/__legacy__/ui/card";
import {
Table,
TableBody,
@@ -8,10 +13,10 @@ import {
TableHead,
TableHeader,
TableRow,
-} from "@/components/ui/table";
+} from "@/components/__legacy__/ui/table";
import moment from "moment/moment";
import { FlowRunStatusBadge } from "@/app/(platform)/monitoring/components/FlowRunStatusBadge";
-import { TextRenderer } from "../../../../components/ui/render";
+import { TextRenderer } from "../../../../components/__legacy__/ui/render";
export const FlowRunsList: React.FC<{
flows: LibraryAgent[];
diff --git a/autogpt_platform/frontend/src/app/(platform)/monitoring/components/FlowRunsStatus.tsx b/autogpt_platform/frontend/src/app/(platform)/monitoring/components/FlowRunsStatus.tsx
index 5f7a197735..0da81ec727 100644
--- a/autogpt_platform/frontend/src/app/(platform)/monitoring/components/FlowRunsStatus.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/monitoring/components/FlowRunsStatus.tsx
@@ -1,13 +1,13 @@
import React, { useState } from "react";
import { GraphExecutionMeta, LibraryAgent } from "@/lib/autogpt-server-api";
-import { CardTitle } from "@/components/ui/card";
-import { Button } from "@/components/ui/button";
+import { CardTitle } from "@/components/__legacy__/ui/card";
+import { Button } from "@/components/__legacy__/ui/button";
import {
Popover,
PopoverContent,
PopoverTrigger,
-} from "@/components/ui/popover";
-import { Calendar } from "@/components/ui/calendar";
+} from "@/components/__legacy__/ui/popover";
+import { Calendar } from "@/components/__legacy__/ui/calendar";
import { FlowRunsTimeline } from "@/app/(platform)/monitoring/components/FlowRunsTimeline";
export const FlowRunsStatus: React.FC<{
diff --git a/autogpt_platform/frontend/src/app/(platform)/monitoring/components/FlowRunsTimeline.tsx b/autogpt_platform/frontend/src/app/(platform)/monitoring/components/FlowRunsTimeline.tsx
index a65d7c9895..02050627f5 100644
--- a/autogpt_platform/frontend/src/app/(platform)/monitoring/components/FlowRunsTimeline.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/monitoring/components/FlowRunsTimeline.tsx
@@ -11,7 +11,7 @@ import {
YAxis,
} from "recharts";
import moment from "moment/moment";
-import { Card } from "@/components/ui/card";
+import { Card } from "@/components/__legacy__/ui/card";
import { cn, hashString } from "@/lib/utils";
import React from "react";
import { FlowRunStatusBadge } from "@/app/(platform)/monitoring/components/FlowRunStatusBadge";
diff --git a/autogpt_platform/frontend/src/app/(platform)/monitoring/components/SchedulesTable.tsx b/autogpt_platform/frontend/src/app/(platform)/monitoring/components/SchedulesTable.tsx
index 4749f26076..f069510b01 100644
--- a/autogpt_platform/frontend/src/app/(platform)/monitoring/components/SchedulesTable.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/monitoring/components/SchedulesTable.tsx
@@ -1,7 +1,7 @@
import { LibraryAgent } from "@/lib/autogpt-server-api";
import { GraphExecutionJobInfo } from "@/app/api/__generated__/models/graphExecutionJobInfo";
-import { Button } from "@/components/ui/button";
-import { Card } from "@/components/ui/card";
+import { Button } from "@/components/__legacy__/ui/button";
+import { Card } from "@/components/__legacy__/ui/card";
import {
Table,
TableBody,
@@ -9,9 +9,9 @@ import {
TableHead,
TableHeader,
TableRow,
-} from "@/components/ui/table";
-import { Badge } from "@/components/ui/badge";
-import { ScrollArea } from "@/components/ui/scroll-area";
+} from "@/components/__legacy__/ui/table";
+import { Badge } from "@/components/__legacy__/ui/badge";
+import { ScrollArea } from "@/components/__legacy__/ui/scroll-area";
import { ClockIcon, Loader2 } from "lucide-react";
import { useToast } from "@/components/molecules/Toast/use-toast";
import { humanizeCronExpression } from "@/lib/cron-expression-utils";
@@ -26,7 +26,7 @@ import {
SelectItem,
SelectTrigger,
SelectValue,
-} from "@/components/ui/select";
+} from "@/components/__legacy__/ui/select";
import { useRouter } from "next/navigation";
import { useState } from "react";
import {
@@ -34,10 +34,10 @@ import {
DialogContent,
DialogHeader,
DialogTitle,
-} from "@/components/ui/dialog";
-import { TextRenderer } from "../../../../components/ui/render";
-import { Input } from "../../../../components/ui/input";
-import { Label } from "../../../../components/ui/label";
+} from "@/components/__legacy__/ui/dialog";
+import { TextRenderer } from "../../../../components/__legacy__/ui/render";
+import { Input } from "../../../../components/__legacy__/ui/input";
+import { Label } from "../../../../components/__legacy__/ui/label";
interface SchedulesTableProps {
schedules: GraphExecutionJobInfo[];
diff --git a/autogpt_platform/frontend/src/app/(platform)/monitoring/page.tsx b/autogpt_platform/frontend/src/app/(platform)/monitoring/page.tsx
index 1c465b84b8..5e70245ac9 100644
--- a/autogpt_platform/frontend/src/app/(platform)/monitoring/page.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/monitoring/page.tsx
@@ -8,7 +8,7 @@ import {
useDeleteV1DeleteExecutionSchedule,
} from "@/app/api/__generated__/endpoints/schedules/schedules";
-import { Card } from "@/components/ui/card";
+import { Card } from "@/components/__legacy__/ui/card";
import { SchedulesTable } from "@/app/(platform)/monitoring/components/SchedulesTable";
import { useBackendAPI } from "@/lib/autogpt-server-api/context";
import AgentFlowList from "./components/AgentFlowList";
diff --git a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/api_keys/components/APIKeySection/APIKeySection.tsx b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/api_keys/components/APIKeySection/APIKeySection.tsx
index b5f519e5a5..fd2af1dd02 100644
--- a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/api_keys/components/APIKeySection/APIKeySection.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/api_keys/components/APIKeySection/APIKeySection.tsx
@@ -1,7 +1,7 @@
"use client";
import { Loader2, MoreVertical } from "lucide-react";
-import { Button } from "@/components/ui/button";
+import { Button } from "@/components/__legacy__/ui/button";
import {
Table,
TableBody,
@@ -9,14 +9,14 @@ import {
TableHead,
TableHeader,
TableRow,
-} from "@/components/ui/table";
-import { Badge } from "@/components/ui/badge";
+} from "@/components/__legacy__/ui/table";
+import { Badge } from "@/components/__legacy__/ui/badge";
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
-} from "@/components/ui/dropdown-menu";
+} from "@/components/__legacy__/ui/dropdown-menu";
import { useAPISection } from "./useAPISection";
export function APIKeysSection() {
diff --git a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/api_keys/components/APIKeysModals/APIKeysModals.tsx b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/api_keys/components/APIKeysModals/APIKeysModals.tsx
index 04d6155936..878f32f61e 100644
--- a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/api_keys/components/APIKeysModals/APIKeysModals.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/api_keys/components/APIKeysModals/APIKeysModals.tsx
@@ -7,12 +7,12 @@ import {
DialogHeader,
DialogTitle,
DialogTrigger,
-} from "@/components/ui/dialog";
+} from "@/components/__legacy__/ui/dialog";
import { LuCopy } from "react-icons/lu";
-import { Label } from "@/components/ui/label";
-import { Input } from "@/components/ui/input";
-import { Checkbox } from "@/components/ui/checkbox";
-import { Button } from "@/components/ui/button";
+import { Label } from "@/components/__legacy__/ui/label";
+import { Input } from "@/components/__legacy__/ui/input";
+import { Checkbox } from "@/components/__legacy__/ui/checkbox";
+import { Button } from "@/components/__legacy__/ui/button";
import { useAPIkeysModals } from "./useAPIkeysModals";
import { APIKeyPermission } from "@/app/api/__generated__/models/aPIKeyPermission";
diff --git a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/api_keys/page.tsx b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/api_keys/page.tsx
index 1fa2149eec..ca66f0fb85 100644
--- a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/api_keys/page.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/api_keys/page.tsx
@@ -6,7 +6,7 @@ import {
CardDescription,
CardHeader,
CardTitle,
-} from "@/components/ui/card";
+} from "@/components/__legacy__/ui/card";
import { APIKeysModals } from "./components/APIKeysModals/APIKeysModals";
export const metadata: Metadata = { title: "API Keys - AutoGPT Platform" };
diff --git a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/credits/RefundModal.tsx b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/credits/RefundModal.tsx
index b4a89fd8fd..454bb3ce2d 100644
--- a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/credits/RefundModal.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/credits/RefundModal.tsx
@@ -8,16 +8,16 @@ import {
DialogContent,
DialogHeader,
DialogTitle,
-} from "@/components/ui/dialog";
-import { Button } from "@/components/ui/button";
+} from "@/components/__legacy__/ui/dialog";
+import { Button } from "@/components/__legacy__/ui/button";
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
-} from "@/components/ui/select";
-import { Textarea } from "@/components/ui/textarea";
+} from "@/components/__legacy__/ui/select";
+import { Textarea } from "@/components/__legacy__/ui/textarea";
interface RefundModalProps {
isOpen: boolean;
diff --git a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/credits/page.tsx b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/credits/page.tsx
index aaeb3aefd3..06079459d1 100644
--- a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/credits/page.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/credits/page.tsx
@@ -1,6 +1,6 @@
"use client";
import { useEffect, useState } from "react";
-import { Button } from "@/components/ui/button";
+import { Button } from "@/components/__legacy__/ui/button";
import useCredits from "@/hooks/useCredits";
import { useBackendAPI } from "@/lib/autogpt-server-api/context";
import { useSearchParams, useRouter } from "next/navigation";
@@ -19,7 +19,7 @@ import {
TableHead,
TableHeader,
TableRow,
-} from "@/components/ui/table";
+} from "@/components/__legacy__/ui/table";
export default function CreditsPage() {
const api = useBackendAPI();
diff --git a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/dashboard/components/AgentTableCard/AgentTableCard.tsx b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/dashboard/components/AgentTableCard/AgentTableCard.tsx
index 1c078eea7d..a8d5d23912 100644
--- a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/dashboard/components/AgentTableCard/AgentTableCard.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/dashboard/components/AgentTableCard/AgentTableCard.tsx
@@ -1,10 +1,10 @@
"use client";
import Image from "next/image";
-import { IconStarFilled, IconMore } from "@/components/ui/icons";
+import { IconStarFilled, IconMore } from "@/components/__legacy__/ui/icons";
import { StoreSubmission } from "@/app/api/__generated__/models/storeSubmission";
import { SubmissionStatus } from "@/app/api/__generated__/models/submissionStatus";
-import { Status } from "@/components/agptui/Status";
+import { Status } from "@/components/__legacy__/Status";
export interface AgentTableCardProps {
agent_id: string;
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 855c4d2f99..bdc735ea80 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
@@ -4,7 +4,7 @@ import Image from "next/image";
import { Text } from "@/components/atoms/Text/Text";
import * as DropdownMenu from "@radix-ui/react-dropdown-menu";
-import { Status } from "@/components/agptui/Status";
+import { Status } from "@/components/__legacy__/Status";
import { useAgentTableRow } from "./useAgentTableRow";
import { StoreSubmission } from "@/app/api/__generated__/models/storeSubmission";
import {
diff --git a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/dashboard/components/MainDashboardPage/MainDashboardPage.tsx b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/dashboard/components/MainDashboardPage/MainDashboardPage.tsx
index 9b10ecf088..71968d08c9 100644
--- a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/dashboard/components/MainDashboardPage/MainDashboardPage.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/dashboard/components/MainDashboardPage/MainDashboardPage.tsx
@@ -1,5 +1,5 @@
import { useMainDashboardPage } from "./useMainDashboardPage";
-import { Separator } from "@/components/ui/separator";
+import { Separator } from "@/components/__legacy__/ui/separator";
import { AgentTable } from "../AgentTable/AgentTable";
import { PublishAgentModal } from "@/components/contextual/PublishAgentModal/PublishAgentModal";
import { EditAgentModal } from "@/components/contextual/EditAgentModal/EditAgentModal";
diff --git a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/dashboard/components/MainDashboardPage/components/SubmissionsLoading.tsx b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/dashboard/components/MainDashboardPage/components/SubmissionsLoading.tsx
index 68b2d47b04..fc9e58222b 100644
--- a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/dashboard/components/MainDashboardPage/components/SubmissionsLoading.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/dashboard/components/MainDashboardPage/components/SubmissionsLoading.tsx
@@ -1,4 +1,4 @@
-import { Skeleton } from "@/components/ui/skeleton";
+import { Skeleton } from "@/components/__legacy__/ui/skeleton";
export function SubmissionsLoading() {
return (
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 135c2cf543..b786f99fdd 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
@@ -1,9 +1,9 @@
"use client";
-import { Button } from "@/components/ui/button";
+import { Button } from "@/components/atoms/Button/Button";
import { useRouter } from "next/navigation";
import { useCallback, useContext, useEffect, useMemo, useState } from "react";
import { useToast } from "@/components/molecules/Toast/use-toast";
-import { IconKey, IconUser } from "@/components/ui/icons";
+import { IconKey, IconUser } from "@/components/__legacy__/ui/icons";
import { Trash2Icon } from "lucide-react";
import { KeyIcon } from "@phosphor-icons/react/dist/ssr";
import { providerIcons } from "@/app/(platform)/library/agents/[id]/components/AgentRunsView/components/CredentialsInputs/CredentialsInputs";
@@ -15,20 +15,11 @@ import {
TableHead,
TableHeader,
TableRow,
-} from "@/components/ui/table";
+} from "@/components/__legacy__/ui/table";
import { CredentialsProviderName } from "@/lib/autogpt-server-api";
-import {
- AlertDialog,
- AlertDialogAction,
- AlertDialogCancel,
- AlertDialogContent,
- AlertDialogDescription,
- AlertDialogFooter,
- AlertDialogHeader,
- AlertDialogTitle,
-} from "@/components/ui/alert-dialog";
+import { Dialog } from "@/components/molecules/Dialog/Dialog";
import { useSupabase } from "@/lib/supabase/hooks/useSupabase";
-import LoadingBox from "@/components/ui/loading";
+import LoadingBox from "@/components/__legacy__/ui/loading";
export default function UserIntegrationsPage() {
const { supabase, user, isUserLoading } = useSupabase();
@@ -211,24 +202,32 @@ export default function UserIntegrationsPage() {
</TableBody>
</Table>
- <AlertDialog open={confirmationDialogState.open}>
- <AlertDialogContent>
- <AlertDialogHeader>
- <AlertDialogTitle>Are you sure?</AlertDialogTitle>
- <AlertDialogDescription>
- {confirmationDialogState.open && confirmationDialogState.message}
- </AlertDialogDescription>
- </AlertDialogHeader>
- <AlertDialogFooter>
- <AlertDialogCancel
+ <Dialog
+ controlled={{
+ isOpen: confirmationDialogState.open,
+ set: (open) => {
+ if (!open) setConfirmationDialogState({ open: false });
+ },
+ }}
+ title="Are you sure?"
+ onClose={() => setConfirmationDialogState({ open: false })}
+ styling={{ maxWidth: "32rem" }}
+ >
+ <Dialog.Content>
+ <p className="text-sm text-zinc-600">
+ {confirmationDialogState.open && confirmationDialogState.message}
+ </p>
+ <Dialog.Footer>
+ <Button
+ variant="secondary"
onClick={() =>
confirmationDialogState.open &&
confirmationDialogState.onReject()
}
>
Cancel
- </AlertDialogCancel>
- <AlertDialogAction
+ </Button>
+ <Button
variant="destructive"
onClick={() =>
confirmationDialogState.open &&
@@ -236,10 +235,10 @@ export default function UserIntegrationsPage() {
}
>
Continue
- </AlertDialogAction>
- </AlertDialogFooter>
- </AlertDialogContent>
- </AlertDialog>
+ </Button>
+ </Dialog.Footer>
+ </Dialog.Content>
+ </Dialog>
</div>
);
}
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 06b9cff300..bd8a0a0dd8 100644
--- a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/layout.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/layout.tsx
@@ -1,12 +1,12 @@
import * as React from "react";
-import { Sidebar } from "@/components/agptui/Sidebar";
+import { Sidebar } from "@/components/__legacy__/Sidebar";
import {
IconDashboardLayout,
IconIntegrations,
IconProfile,
IconSliders,
IconCoin,
-} from "@/components/ui/icons";
+} from "@/components/__legacy__/ui/icons";
import { KeyIcon } from "lucide-react";
export default function Layout({ children }: { children: React.ReactNode }) {
diff --git a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/page.tsx b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/page.tsx
index 863a6cab1f..86190e62cc 100644
--- a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/page.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/page.tsx
@@ -2,7 +2,7 @@ import React from "react";
import { Metadata } from "next/types";
import { redirect } from "next/navigation";
import BackendAPI from "@/lib/autogpt-server-api";
-import { ProfileInfoForm } from "@/components/agptui/ProfileInfoForm";
+import { ProfileInfoForm } from "@/components/__legacy__/ProfileInfoForm";
// Force dynamic rendering to avoid static generation issues with cookies
export const dynamic = "force-dynamic";
diff --git a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/settings/components/SettingsForm/SettingsForm.tsx b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/settings/components/SettingsForm/SettingsForm.tsx
index 89f4e46834..127b7ac94f 100644
--- a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/settings/components/SettingsForm/SettingsForm.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/settings/components/SettingsForm/SettingsForm.tsx
@@ -1,6 +1,6 @@
"use client";
-import { Separator } from "@/components/ui/separator";
+import { Separator } from "@/components/__legacy__/ui/separator";
import { NotificationPreference } from "@/app/api/__generated__/models/notificationPreference";
import { User } from "@supabase/supabase-js";
import { EmailForm } from "./components/EmailForm/EmailForm";
diff --git a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/settings/components/SettingsForm/components/EmailForm/EmailForm.tsx b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/settings/components/SettingsForm/components/EmailForm/EmailForm.tsx
index fda46b41cc..49859dc21c 100644
--- a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/settings/components/SettingsForm/components/EmailForm/EmailForm.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/settings/components/SettingsForm/components/EmailForm/EmailForm.tsx
@@ -1,6 +1,11 @@
"use client";
-import { Form, FormControl, FormField, FormItem } from "@/components/ui/form";
+import {
+ Form,
+ FormControl,
+ FormField,
+ FormItem,
+} from "@/components/__legacy__/ui/form";
import { Input } from "@/components/atoms/Input/Input";
import { Text } from "@/components/atoms/Text/Text";
import { Button } from "@/components/atoms/Button/Button";
diff --git a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/settings/components/SettingsForm/components/NotificationForm/NotificationForm.tsx b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/settings/components/SettingsForm/components/NotificationForm/NotificationForm.tsx
index e17c0e612e..38473234ab 100644
--- a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/settings/components/SettingsForm/components/NotificationForm/NotificationForm.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/settings/components/SettingsForm/components/NotificationForm/NotificationForm.tsx
@@ -1,6 +1,11 @@
"use client";
-import { Form, FormControl, FormField, FormItem } from "@/components/ui/form";
+import {
+ Form,
+ FormControl,
+ FormField,
+ FormItem,
+} from "@/components/__legacy__/ui/form";
import { Text } from "@/components/atoms/Text/Text";
import { Button } from "@/components/atoms/Button/Button";
import { NotificationPreference } from "@/app/api/__generated__/models/notificationPreference";
diff --git a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/settings/components/SettingsForm/components/TimezoneForm/TimezoneForm.tsx b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/settings/components/SettingsForm/components/TimezoneForm/TimezoneForm.tsx
index c04955c9f3..0456e901d0 100644
--- a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/settings/components/SettingsForm/components/TimezoneForm/TimezoneForm.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/settings/components/SettingsForm/components/TimezoneForm/TimezoneForm.tsx
@@ -3,7 +3,12 @@
import * as React from "react";
import { useTimezoneForm } from "./useTimezoneForm";
import { User } from "@supabase/supabase-js";
-import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
+import {
+ Card,
+ CardContent,
+ CardHeader,
+ CardTitle,
+} from "@/components/__legacy__/ui/card";
import { Button } from "@/components/atoms/Button/Button";
import {
Select,
@@ -11,7 +16,7 @@ import {
SelectItem,
SelectTrigger,
SelectValue,
-} from "@/components/ui/select";
+} from "@/components/__legacy__/ui/select";
import {
Form,
FormControl,
@@ -19,7 +24,7 @@ import {
FormItem,
FormLabel,
FormMessage,
-} from "@/components/ui/form";
+} from "@/components/__legacy__/ui/form";
type TimezoneFormProps = {
user: User;
diff --git a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/settings/loading.tsx b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/settings/loading.tsx
index 5480dd38ca..f9a1c5e9af 100644
--- a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/settings/loading.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/settings/loading.tsx
@@ -1,5 +1,5 @@
-import { Skeleton } from "@/components/ui/skeleton";
-import { Separator } from "@/components/ui/separator";
+import { Skeleton } from "@/components/__legacy__/ui/skeleton";
+import { Separator } from "@/components/__legacy__/ui/separator";
export default function SettingsLoading() {
return (
diff --git a/autogpt_platform/frontend/src/app/(platform)/reset-password/page.tsx b/autogpt_platform/frontend/src/app/(platform)/reset-password/page.tsx
index b83f9f77c1..52c7e5d2c4 100644
--- a/autogpt_platform/frontend/src/app/(platform)/reset-password/page.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/reset-password/page.tsx
@@ -3,8 +3,8 @@ import { Button } from "@/components/atoms/Button/Button";
import { Input } from "@/components/atoms/Input/Input";
import { AuthCard } from "@/components/auth/AuthCard";
import Turnstile from "@/components/auth/Turnstile";
-import { Form, FormField } from "@/components/ui/form";
-import LoadingBox from "@/components/ui/loading";
+import { Form, FormField } from "@/components/__legacy__/ui/form";
+import LoadingBox from "@/components/__legacy__/ui/loading";
import { useToast } from "@/components/molecules/Toast/use-toast";
import { useTurnstile } from "@/hooks/useTurnstile";
import { useSupabase } from "@/lib/supabase/hooks/useSupabase";
diff --git a/autogpt_platform/frontend/src/app/(platform)/signup/components/LoadingSignup.tsx b/autogpt_platform/frontend/src/app/(platform)/signup/components/LoadingSignup.tsx
index b29ebd20e2..c5787fd77f 100644
--- a/autogpt_platform/frontend/src/app/(platform)/signup/components/LoadingSignup.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/signup/components/LoadingSignup.tsx
@@ -1,5 +1,5 @@
import { AuthCard } from "@/components/auth/AuthCard";
-import { Skeleton } from "@/components/ui/skeleton";
+import { Skeleton } from "@/components/__legacy__/ui/skeleton";
export function LoadingSignup() {
return (
diff --git a/autogpt_platform/frontend/src/app/(platform)/signup/page.tsx b/autogpt_platform/frontend/src/app/(platform)/signup/page.tsx
index cb48d512f7..ea1aefb6c4 100644
--- a/autogpt_platform/frontend/src/app/(platform)/signup/page.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/signup/page.tsx
@@ -9,14 +9,14 @@ import AuthFeedback from "@/components/auth/AuthFeedback";
import { EmailNotAllowedModal } from "@/components/auth/EmailNotAllowedModal";
import { GoogleOAuthButton } from "@/components/auth/GoogleOAuthButton";
import Turnstile from "@/components/auth/Turnstile";
-import { Checkbox } from "@/components/ui/checkbox";
+import { Checkbox } from "@/components/__legacy__/ui/checkbox";
import {
Form,
FormControl,
FormField,
FormItem,
FormLabel,
-} from "@/components/ui/form";
+} from "@/components/__legacy__/ui/form";
import { getBehaveAs } from "@/lib/utils";
import { WarningOctagonIcon } from "@phosphor-icons/react/dist/ssr";
import { LoadingSignup } from "./components/LoadingSignup";
diff --git a/autogpt_platform/frontend/src/app/error.tsx b/autogpt_platform/frontend/src/app/error.tsx
index ce4db030c6..a5d79c8d21 100644
--- a/autogpt_platform/frontend/src/app/error.tsx
+++ b/autogpt_platform/frontend/src/app/error.tsx
@@ -1,8 +1,8 @@
"use client";
import { useEffect } from "react";
-import { IconCircleAlert } from "@/components/ui/icons";
-import { Button } from "@/components/ui/button";
+import { IconCircleAlert } from "@/components/__legacy__/ui/icons";
+import { Button } from "@/components/__legacy__/ui/button";
import Link from "next/link";
export default function Error({
diff --git a/autogpt_platform/frontend/src/components/agptui/AgentImageItem.tsx b/autogpt_platform/frontend/src/components/__legacy__/AgentImageItem.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/agptui/AgentImageItem.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/AgentImageItem.tsx
diff --git a/autogpt_platform/frontend/src/components/agptui/AgentImages.tsx b/autogpt_platform/frontend/src/components/__legacy__/AgentImages.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/agptui/AgentImages.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/AgentImages.tsx
diff --git a/autogpt_platform/frontend/src/components/agptui/AgentInfo.tsx b/autogpt_platform/frontend/src/components/__legacy__/AgentInfo.tsx
similarity index 98%
rename from autogpt_platform/frontend/src/components/agptui/AgentInfo.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/AgentInfo.tsx
index 6806ff56bb..413fdd90a7 100644
--- a/autogpt_platform/frontend/src/components/agptui/AgentInfo.tsx
+++ b/autogpt_platform/frontend/src/components/__legacy__/AgentInfo.tsx
@@ -1,7 +1,7 @@
"use client";
-import { StarRatingIcons } from "@/components/ui/icons";
-import { Separator } from "@/components/ui/separator";
+import { StarRatingIcons } from "@/components/__legacy__/ui/icons";
+import { Separator } from "@/components/__legacy__/ui/separator";
import BackendAPI, { LibraryAgent } from "@/lib/autogpt-server-api";
import { useRouter } from "next/navigation";
import Link from "next/link";
diff --git a/autogpt_platform/frontend/src/components/agptui/BecomeACreator.tsx b/autogpt_platform/frontend/src/components/__legacy__/BecomeACreator.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/agptui/BecomeACreator.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/BecomeACreator.tsx
diff --git a/autogpt_platform/frontend/src/components/agptui/Button.tsx b/autogpt_platform/frontend/src/components/__legacy__/Button.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/agptui/Button.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/Button.tsx
diff --git a/autogpt_platform/frontend/src/components/agptui/CreatorCard.tsx b/autogpt_platform/frontend/src/components/__legacy__/CreatorCard.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/agptui/CreatorCard.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/CreatorCard.tsx
diff --git a/autogpt_platform/frontend/src/components/agptui/CreatorInfoCard.tsx b/autogpt_platform/frontend/src/components/__legacy__/CreatorInfoCard.tsx
similarity index 98%
rename from autogpt_platform/frontend/src/components/agptui/CreatorInfoCard.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/CreatorInfoCard.tsx
index ac8962bcc4..394b0cf5a6 100644
--- a/autogpt_platform/frontend/src/components/agptui/CreatorInfoCard.tsx
+++ b/autogpt_platform/frontend/src/components/__legacy__/CreatorInfoCard.tsx
@@ -1,5 +1,5 @@
import * as React from "react";
-import { StarRatingIcons } from "@/components/ui/icons";
+import { StarRatingIcons } from "@/components/__legacy__/ui/icons";
import Avatar, { AvatarFallback, AvatarImage } from "../atoms/Avatar/Avatar";
interface CreatorInfoCardProps {
diff --git a/autogpt_platform/frontend/src/components/agptui/CreatorLinks.tsx b/autogpt_platform/frontend/src/components/__legacy__/CreatorLinks.tsx
similarity index 94%
rename from autogpt_platform/frontend/src/components/agptui/CreatorLinks.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/CreatorLinks.tsx
index 0b3999d10a..f05811db36 100644
--- a/autogpt_platform/frontend/src/components/agptui/CreatorLinks.tsx
+++ b/autogpt_platform/frontend/src/components/__legacy__/CreatorLinks.tsx
@@ -1,5 +1,5 @@
import * as React from "react";
-import { getIconForSocial } from "@/components/ui/icons";
+import { getIconForSocial } from "@/components/__legacy__/ui/icons";
interface CreatorLinksProps {
links: string[];
diff --git a/autogpt_platform/frontend/src/components/agptui/FeaturedAgentCard.tsx b/autogpt_platform/frontend/src/components/__legacy__/FeaturedAgentCard.tsx
similarity index 95%
rename from autogpt_platform/frontend/src/components/agptui/FeaturedAgentCard.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/FeaturedAgentCard.tsx
index c2728c4a49..3d6010626f 100644
--- a/autogpt_platform/frontend/src/components/agptui/FeaturedAgentCard.tsx
+++ b/autogpt_platform/frontend/src/components/__legacy__/FeaturedAgentCard.tsx
@@ -1,5 +1,5 @@
import Image from "next/image";
-import { StarRatingIcons } from "@/components/ui/icons";
+import { StarRatingIcons } from "@/components/__legacy__/ui/icons";
import {
Card,
CardContent,
@@ -7,7 +7,7 @@ import {
CardFooter,
CardHeader,
CardTitle,
-} from "@/components/ui/card";
+} from "@/components/__legacy__/ui/card";
import { useState } from "react";
import { StoreAgent } from "@/lib/autogpt-server-api";
diff --git a/autogpt_platform/frontend/src/components/agptui/FilterChips.tsx b/autogpt_platform/frontend/src/components/__legacy__/FilterChips.tsx
similarity index 96%
rename from autogpt_platform/frontend/src/components/agptui/FilterChips.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/FilterChips.tsx
index 8a597aab26..b78dc70e86 100644
--- a/autogpt_platform/frontend/src/components/agptui/FilterChips.tsx
+++ b/autogpt_platform/frontend/src/components/__legacy__/FilterChips.tsx
@@ -1,7 +1,7 @@
"use client";
import * as React from "react";
-import { Badge } from "@/components/ui/badge";
+import { Badge } from "@/components/__legacy__/ui/badge";
interface FilterChipsProps {
badges: string[];
diff --git a/autogpt_platform/frontend/src/components/agptui/ProfileInfoForm.tsx b/autogpt_platform/frontend/src/components/__legacy__/ProfileInfoForm.tsx
similarity index 98%
rename from autogpt_platform/frontend/src/components/agptui/ProfileInfoForm.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ProfileInfoForm.tsx
index 38c75a02be..22934385ee 100644
--- a/autogpt_platform/frontend/src/components/agptui/ProfileInfoForm.tsx
+++ b/autogpt_platform/frontend/src/components/__legacy__/ProfileInfoForm.tsx
@@ -4,8 +4,8 @@ import { useState } from "react";
import Image from "next/image";
-import { IconPersonFill } from "@/components/ui/icons";
-import { Separator } from "@/components/ui/separator";
+import { IconPersonFill } from "@/components/__legacy__/ui/icons";
+import { Separator } from "@/components/__legacy__/ui/separator";
import { useBackendAPI } from "@/lib/autogpt-server-api/context";
import { ProfileDetails } from "@/lib/autogpt-server-api/types";
import { Button } from "./Button";
diff --git a/autogpt_platform/frontend/src/components/agptui/RatingCard.tsx b/autogpt_platform/frontend/src/components/__legacy__/RatingCard.tsx
similarity index 97%
rename from autogpt_platform/frontend/src/components/agptui/RatingCard.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/RatingCard.tsx
index 3486d5482b..3caafd9ad6 100644
--- a/autogpt_platform/frontend/src/components/agptui/RatingCard.tsx
+++ b/autogpt_platform/frontend/src/components/__legacy__/RatingCard.tsx
@@ -2,7 +2,7 @@
import * as React from "react";
import { Cross1Icon } from "@radix-ui/react-icons";
-import { IconStar, IconStarFilled } from "@/components/ui/icons";
+import { IconStar, IconStarFilled } from "@/components/__legacy__/ui/icons";
import { useBackendAPI } from "@/lib/autogpt-server-api/context";
interface RatingCardProps {
diff --git a/autogpt_platform/frontend/src/components/agptui/SearchBar.tsx b/autogpt_platform/frontend/src/components/__legacy__/SearchBar.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/agptui/SearchBar.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/SearchBar.tsx
diff --git a/autogpt_platform/frontend/src/components/agptui/SearchFilterChips.tsx b/autogpt_platform/frontend/src/components/__legacy__/SearchFilterChips.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/agptui/SearchFilterChips.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/SearchFilterChips.tsx
diff --git a/autogpt_platform/frontend/src/components/agptui/Sidebar.tsx b/autogpt_platform/frontend/src/components/__legacy__/Sidebar.tsx
similarity index 94%
rename from autogpt_platform/frontend/src/components/agptui/Sidebar.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/Sidebar.tsx
index 10d4e09286..ccbabe5d0b 100644
--- a/autogpt_platform/frontend/src/components/agptui/Sidebar.tsx
+++ b/autogpt_platform/frontend/src/components/__legacy__/Sidebar.tsx
@@ -1,9 +1,13 @@
import * as React from "react";
import Link from "next/link";
import { Button } from "./Button";
-import { Sheet, SheetContent, SheetTrigger } from "@/components/ui/sheet";
+import {
+ Sheet,
+ SheetContent,
+ SheetTrigger,
+} from "@/components/__legacy__/ui/sheet";
import { Menu } from "lucide-react";
-import { IconDashboardLayout } from "../ui/icons";
+import { IconDashboardLayout } from "./ui/icons";
export interface SidebarLink {
text: string;
diff --git a/autogpt_platform/frontend/src/components/agptui/SmartImage.tsx b/autogpt_platform/frontend/src/components/__legacy__/SmartImage.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/agptui/SmartImage.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/SmartImage.tsx
diff --git a/autogpt_platform/frontend/src/components/agptui/SortDropdown.tsx b/autogpt_platform/frontend/src/components/__legacy__/SortDropdown.tsx
similarity index 97%
rename from autogpt_platform/frontend/src/components/agptui/SortDropdown.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/SortDropdown.tsx
index 442d65c1c7..a468d74ce2 100644
--- a/autogpt_platform/frontend/src/components/agptui/SortDropdown.tsx
+++ b/autogpt_platform/frontend/src/components/__legacy__/SortDropdown.tsx
@@ -6,7 +6,7 @@ import {
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
-} from "@/components/ui/dropdown-menu";
+} from "@/components/__legacy__/ui/dropdown-menu";
import { ChevronDownIcon } from "@radix-ui/react-icons";
const sortOptions: SortOption[] = [
diff --git a/autogpt_platform/frontend/src/components/agptui/Status.tsx b/autogpt_platform/frontend/src/components/__legacy__/Status.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/agptui/Status.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/Status.tsx
diff --git a/autogpt_platform/frontend/src/components/agptui/StoreCard.tsx b/autogpt_platform/frontend/src/components/__legacy__/StoreCard.tsx
similarity index 98%
rename from autogpt_platform/frontend/src/components/agptui/StoreCard.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/StoreCard.tsx
index 9731f9da48..8778d62105 100644
--- a/autogpt_platform/frontend/src/components/agptui/StoreCard.tsx
+++ b/autogpt_platform/frontend/src/components/__legacy__/StoreCard.tsx
@@ -1,6 +1,6 @@
import * as React from "react";
import Image from "next/image";
-import { StarRatingIcons } from "@/components/ui/icons";
+import { StarRatingIcons } from "@/components/__legacy__/ui/icons";
import Avatar, { AvatarFallback, AvatarImage } from "../atoms/Avatar/Avatar";
interface StoreCardProps {
diff --git a/autogpt_platform/frontend/src/components/agptui/ThemeToggle.tsx b/autogpt_platform/frontend/src/components/__legacy__/ThemeToggle.tsx
similarity index 94%
rename from autogpt_platform/frontend/src/components/agptui/ThemeToggle.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ThemeToggle.tsx
index 2b9d75c6e4..18daaa7bd4 100644
--- a/autogpt_platform/frontend/src/components/agptui/ThemeToggle.tsx
+++ b/autogpt_platform/frontend/src/components/__legacy__/ThemeToggle.tsx
@@ -2,7 +2,7 @@
import * as React from "react";
import { useTheme } from "next-themes";
-import { IconMoon, IconSun } from "@/components/ui/icons";
+import { IconMoon, IconSun } from "@/components/__legacy__/ui/icons";
export function ThemeToggle() {
const { theme, setTheme } = useTheme();
diff --git a/autogpt_platform/frontend/src/components/agptui/Wallet.tsx b/autogpt_platform/frontend/src/components/__legacy__/Wallet.tsx
similarity index 98%
rename from autogpt_platform/frontend/src/components/agptui/Wallet.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/Wallet.tsx
index 2be9d1276a..196faa0a4b 100644
--- a/autogpt_platform/frontend/src/components/agptui/Wallet.tsx
+++ b/autogpt_platform/frontend/src/components/__legacy__/Wallet.tsx
@@ -5,11 +5,11 @@ import {
Popover,
PopoverContent,
PopoverTrigger,
-} from "@/components/ui/popover";
+} from "@/components/__legacy__/ui/popover";
import { X } from "lucide-react";
import { PopoverClose } from "@radix-ui/react-popover";
import { TaskGroups } from "@/app/(no-navbar)/onboarding/components/WalletTaskGroups";
-import { ScrollArea } from "../ui/scroll-area";
+import { ScrollArea } from "./ui/scroll-area";
import { useOnboarding } from "@/providers/onboarding/onboarding-provider";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { cn } from "@/lib/utils";
diff --git a/autogpt_platform/frontend/src/components/agptui/WalletRefill.tsx b/autogpt_platform/frontend/src/components/__legacy__/WalletRefill.tsx
similarity index 98%
rename from autogpt_platform/frontend/src/components/agptui/WalletRefill.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/WalletRefill.tsx
index 53aabaafc4..3bac1031b4 100644
--- a/autogpt_platform/frontend/src/components/agptui/WalletRefill.tsx
+++ b/autogpt_platform/frontend/src/components/__legacy__/WalletRefill.tsx
@@ -1,4 +1,9 @@
-import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
+import {
+ Tabs,
+ TabsContent,
+ TabsList,
+ TabsTrigger,
+} from "@/components/__legacy__/ui/tabs";
import { cn } from "@/lib/utils";
import { zodResolver } from "@hookform/resolvers/zod";
import { useForm } from "react-hook-form";
@@ -10,8 +15,8 @@ import {
FormItem,
FormLabel,
FormMessage,
-} from "@/components/ui/form";
-import { Input } from "../ui/input";
+} from "@/components/__legacy__/ui/form";
+import { Input } from "./ui/input";
import Link from "next/link";
import { useToast, useToastOnFail } from "../molecules/Toast/use-toast";
import useCredits from "@/hooks/useCredits";
diff --git a/autogpt_platform/frontend/src/components/agptui/action-button-group.tsx b/autogpt_platform/frontend/src/components/__legacy__/action-button-group.tsx
similarity index 89%
rename from autogpt_platform/frontend/src/components/agptui/action-button-group.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/action-button-group.tsx
index b943f445f1..85b514809b 100644
--- a/autogpt_platform/frontend/src/components/agptui/action-button-group.tsx
+++ b/autogpt_platform/frontend/src/components/__legacy__/action-button-group.tsx
@@ -1,8 +1,8 @@
import React from "react";
import { cn } from "@/lib/utils";
-import type { ButtonAction } from "@/components/agptui/types";
-import { Button, buttonVariants } from "@/components/agptui/Button";
+import type { ButtonAction } from "@/components/__legacy__/types";
+import { Button, buttonVariants } from "@/components/__legacy__/Button";
import Link from "next/link";
export default function ActionButtonGroup({
diff --git a/autogpt_platform/frontend/src/components/agptui/composite/AgentsSection.tsx b/autogpt_platform/frontend/src/components/__legacy__/composite/AgentsSection.tsx
similarity index 96%
rename from autogpt_platform/frontend/src/components/agptui/composite/AgentsSection.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/composite/AgentsSection.tsx
index 6a00baf90a..299da3eb17 100644
--- a/autogpt_platform/frontend/src/components/agptui/composite/AgentsSection.tsx
+++ b/autogpt_platform/frontend/src/components/__legacy__/composite/AgentsSection.tsx
@@ -1,12 +1,12 @@
"use client";
import * as React from "react";
-import { StoreCard } from "@/components/agptui/StoreCard";
+import { StoreCard } from "@/components/__legacy__/StoreCard";
import {
Carousel,
CarouselContent,
CarouselItem,
-} from "@/components/ui/carousel";
+} from "@/components/__legacy__/ui/carousel";
import { useRouter } from "next/navigation";
export interface Agent {
diff --git a/autogpt_platform/frontend/src/components/agptui/composite/FeaturedCreators.tsx b/autogpt_platform/frontend/src/components/__legacy__/composite/FeaturedCreators.tsx
similarity index 95%
rename from autogpt_platform/frontend/src/components/agptui/composite/FeaturedCreators.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/composite/FeaturedCreators.tsx
index 9accb662d6..589542bf32 100644
--- a/autogpt_platform/frontend/src/components/agptui/composite/FeaturedCreators.tsx
+++ b/autogpt_platform/frontend/src/components/__legacy__/composite/FeaturedCreators.tsx
@@ -1,7 +1,7 @@
"use client";
import * as React from "react";
-import { CreatorCard } from "@/components/agptui/CreatorCard";
+import { CreatorCard } from "@/components/__legacy__/CreatorCard";
import { useRouter } from "next/navigation";
export interface FeaturedCreator {
diff --git a/autogpt_platform/frontend/src/components/agptui/composite/FeaturedSection.tsx b/autogpt_platform/frontend/src/components/__legacy__/composite/FeaturedSection.tsx
similarity index 94%
rename from autogpt_platform/frontend/src/components/agptui/composite/FeaturedSection.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/composite/FeaturedSection.tsx
index 43bfb8ca07..b38734b9e7 100644
--- a/autogpt_platform/frontend/src/components/agptui/composite/FeaturedSection.tsx
+++ b/autogpt_platform/frontend/src/components/__legacy__/composite/FeaturedSection.tsx
@@ -1,7 +1,7 @@
"use client";
import * as React from "react";
-import { FeaturedAgentCard } from "@/components/agptui/FeaturedAgentCard";
+import { FeaturedAgentCard } from "@/components/__legacy__/FeaturedAgentCard";
import {
Carousel,
CarouselContent,
@@ -9,7 +9,7 @@ import {
CarouselPrevious,
CarouselNext,
CarouselIndicator,
-} from "@/components/ui/carousel";
+} from "@/components/__legacy__/ui/carousel";
import { useCallback, useState } from "react";
import { StoreAgent } from "@/lib/autogpt-server-api";
import Link from "next/link";
diff --git a/autogpt_platform/frontend/src/components/agptui/composite/HeroSection.tsx b/autogpt_platform/frontend/src/components/__legacy__/composite/HeroSection.tsx
similarity index 94%
rename from autogpt_platform/frontend/src/components/agptui/composite/HeroSection.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/composite/HeroSection.tsx
index aea1a6e750..ea03bcc5d5 100644
--- a/autogpt_platform/frontend/src/components/agptui/composite/HeroSection.tsx
+++ b/autogpt_platform/frontend/src/components/__legacy__/composite/HeroSection.tsx
@@ -1,8 +1,8 @@
"use client";
import * as React from "react";
-import { SearchBar } from "@/components/agptui/SearchBar";
-import { FilterChips } from "@/components/agptui/FilterChips";
+import { SearchBar } from "@/components/__legacy__/SearchBar";
+import { FilterChips } from "@/components/__legacy__/FilterChips";
import { useRouter } from "next/navigation";
import { useOnboarding } from "@/providers/onboarding/onboarding-provider";
diff --git a/autogpt_platform/frontend/src/components/agptui/delete-confirm-dialog.tsx b/autogpt_platform/frontend/src/components/__legacy__/delete-confirm-dialog.tsx
similarity index 93%
rename from autogpt_platform/frontend/src/components/agptui/delete-confirm-dialog.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/delete-confirm-dialog.tsx
index 7d09502dd2..1ad726eb2c 100644
--- a/autogpt_platform/frontend/src/components/agptui/delete-confirm-dialog.tsx
+++ b/autogpt_platform/frontend/src/components/__legacy__/delete-confirm-dialog.tsx
@@ -1,4 +1,4 @@
-import { Button } from "@/components/agptui/Button";
+import { Button } from "@/components/__legacy__/Button";
import {
Dialog,
DialogContent,
@@ -6,7 +6,7 @@ import {
DialogFooter,
DialogHeader,
DialogTitle,
-} from "@/components/ui/dialog";
+} from "@/components/__legacy__/ui/dialog";
export default function DeleteConfirmDialog({
entityType,
diff --git a/autogpt_platform/frontend/src/components/agptui/types.ts b/autogpt_platform/frontend/src/components/__legacy__/types.ts
similarity index 85%
rename from autogpt_platform/frontend/src/components/agptui/types.ts
rename to autogpt_platform/frontend/src/components/__legacy__/types.ts
index 6b5276ad71..30593968b1 100644
--- a/autogpt_platform/frontend/src/components/agptui/types.ts
+++ b/autogpt_platform/frontend/src/components/__legacy__/types.ts
@@ -1,4 +1,4 @@
-import type { ButtonProps } from "@/components/agptui/Button";
+import type { ButtonProps } from "@/components/__legacy__/Button";
import type { LinkProps } from "next/link";
import React from "react";
diff --git a/autogpt_platform/frontend/src/components/ui/badge.tsx b/autogpt_platform/frontend/src/components/__legacy__/ui/badge.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/ui/badge.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ui/badge.tsx
diff --git a/autogpt_platform/frontend/src/components/ui/button.tsx b/autogpt_platform/frontend/src/components/__legacy__/ui/button.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/ui/button.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ui/button.tsx
diff --git a/autogpt_platform/frontend/src/components/ui/calendar.tsx b/autogpt_platform/frontend/src/components/__legacy__/ui/calendar.tsx
similarity index 98%
rename from autogpt_platform/frontend/src/components/ui/calendar.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ui/calendar.tsx
index 6bdbad9069..194d57169b 100644
--- a/autogpt_platform/frontend/src/components/ui/calendar.tsx
+++ b/autogpt_platform/frontend/src/components/__legacy__/ui/calendar.tsx
@@ -10,7 +10,7 @@ import {
import { DayPicker, DropdownProps } from "react-day-picker";
import { cn } from "@/lib/utils";
-import { buttonVariants } from "@/components/ui/button";
+import { buttonVariants } from "@/components/__legacy__/ui/button";
import {
Select,
SelectContent,
diff --git a/autogpt_platform/frontend/src/components/ui/card.tsx b/autogpt_platform/frontend/src/components/__legacy__/ui/card.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/ui/card.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ui/card.tsx
diff --git a/autogpt_platform/frontend/src/components/ui/carousel.tsx b/autogpt_platform/frontend/src/components/__legacy__/ui/carousel.tsx
similarity index 99%
rename from autogpt_platform/frontend/src/components/ui/carousel.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ui/carousel.tsx
index 500723b6cf..0b039b7f1a 100644
--- a/autogpt_platform/frontend/src/components/ui/carousel.tsx
+++ b/autogpt_platform/frontend/src/components/__legacy__/ui/carousel.tsx
@@ -8,7 +8,7 @@ import useEmblaCarousel, {
import { ChevronLeft, ChevronRight } from "lucide-react";
import { cn } from "@/lib/utils";
-import { Button } from "@/components/ui/button";
+import { Button } from "@/components/__legacy__/ui/button";
type CarouselApi = UseEmblaCarouselType[1];
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
diff --git a/autogpt_platform/frontend/src/components/ui/checkbox.tsx b/autogpt_platform/frontend/src/components/__legacy__/ui/checkbox.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/ui/checkbox.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ui/checkbox.tsx
diff --git a/autogpt_platform/frontend/src/components/ui/collapsible.tsx b/autogpt_platform/frontend/src/components/__legacy__/ui/collapsible.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/ui/collapsible.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ui/collapsible.tsx
diff --git a/autogpt_platform/frontend/src/components/ui/command.tsx b/autogpt_platform/frontend/src/components/__legacy__/ui/command.tsx
similarity index 98%
rename from autogpt_platform/frontend/src/components/ui/command.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ui/command.tsx
index 8d476a3257..0292b021b3 100644
--- a/autogpt_platform/frontend/src/components/ui/command.tsx
+++ b/autogpt_platform/frontend/src/components/__legacy__/ui/command.tsx
@@ -6,7 +6,7 @@ import { MagnifyingGlassIcon } from "@radix-ui/react-icons";
import { Command as CommandPrimitive } from "cmdk";
import { cn } from "@/lib/utils";
-import { Dialog, DialogContent } from "@/components/ui/dialog";
+import { Dialog, DialogContent } from "@/components/__legacy__/ui/dialog";
const Command = React.forwardRef<
React.ElementRef<typeof CommandPrimitive>,
diff --git a/autogpt_platform/frontend/src/components/ui/data-table.tsx b/autogpt_platform/frontend/src/components/__legacy__/ui/data-table.tsx
similarity index 96%
rename from autogpt_platform/frontend/src/components/ui/data-table.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ui/data-table.tsx
index 17f0a8f9f7..43a4cf1978 100644
--- a/autogpt_platform/frontend/src/components/ui/data-table.tsx
+++ b/autogpt_platform/frontend/src/components/__legacy__/ui/data-table.tsx
@@ -19,15 +19,15 @@ import {
TableBody,
TableCell,
Table,
-} from "@/components/ui/table";
-import { Button } from "@/components/ui/button";
+} from "@/components/__legacy__/ui/table";
+import { Button } from "@/components/__legacy__/ui/button";
import {
DropdownMenu,
DropdownMenuCheckboxItem,
DropdownMenuContent,
DropdownMenuTrigger,
-} from "@/components/ui/dropdown-menu";
-import { Input } from "@/components/ui/input";
+} from "@/components/__legacy__/ui/dropdown-menu";
+import { Input } from "@/components/__legacy__/ui/input";
import { cloneElement, Fragment, useState } from "react";
export interface GlobalActions<TData> {
diff --git a/autogpt_platform/frontend/src/components/ui/dialog.tsx b/autogpt_platform/frontend/src/components/__legacy__/ui/dialog.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/ui/dialog.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ui/dialog.tsx
diff --git a/autogpt_platform/frontend/src/components/ui/dropdown-menu.tsx b/autogpt_platform/frontend/src/components/__legacy__/ui/dropdown-menu.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/ui/dropdown-menu.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ui/dropdown-menu.tsx
diff --git a/autogpt_platform/frontend/src/components/ui/form.tsx b/autogpt_platform/frontend/src/components/__legacy__/ui/form.tsx
similarity index 98%
rename from autogpt_platform/frontend/src/components/ui/form.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ui/form.tsx
index 1f0e89d595..d51296b468 100644
--- a/autogpt_platform/frontend/src/components/ui/form.tsx
+++ b/autogpt_platform/frontend/src/components/__legacy__/ui/form.tsx
@@ -13,7 +13,7 @@ import {
} from "react-hook-form";
import { cn } from "@/lib/utils";
-import { Label } from "@/components/ui/label";
+import { Label } from "@/components/__legacy__/ui/label";
const Form = FormProvider;
diff --git a/autogpt_platform/frontend/src/components/ui/icons.tsx b/autogpt_platform/frontend/src/components/__legacy__/ui/icons.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/ui/icons.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ui/icons.tsx
diff --git a/autogpt_platform/frontend/src/components/ui/input.tsx b/autogpt_platform/frontend/src/components/__legacy__/ui/input.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/ui/input.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ui/input.tsx
diff --git a/autogpt_platform/frontend/src/components/ui/label.tsx b/autogpt_platform/frontend/src/components/__legacy__/ui/label.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/ui/label.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ui/label.tsx
diff --git a/autogpt_platform/frontend/src/components/ui/loading.tsx b/autogpt_platform/frontend/src/components/__legacy__/ui/loading.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/ui/loading.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ui/loading.tsx
diff --git a/autogpt_platform/frontend/src/components/ui/multiselect.tsx b/autogpt_platform/frontend/src/components/__legacy__/ui/multiselect.tsx
similarity index 98%
rename from autogpt_platform/frontend/src/components/ui/multiselect.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ui/multiselect.tsx
index fe1ea66668..ae53e92963 100644
--- a/autogpt_platform/frontend/src/components/ui/multiselect.tsx
+++ b/autogpt_platform/frontend/src/components/__legacy__/ui/multiselect.tsx
@@ -1,12 +1,12 @@
"use client";
-import { Badge } from "@/components/ui/badge";
+import { Badge } from "@/components/__legacy__/ui/badge";
import {
Command,
CommandItem,
CommandEmpty,
CommandList,
-} from "@/components/ui/command";
+} from "@/components/__legacy__/ui/command";
import { cn } from "@/lib/utils";
import { Command as CommandPrimitive } from "cmdk";
import { X as RemoveIcon, Check } from "lucide-react";
diff --git a/autogpt_platform/frontend/src/components/ui/pagination-controls.tsx b/autogpt_platform/frontend/src/components/__legacy__/ui/pagination-controls.tsx
similarity index 95%
rename from autogpt_platform/frontend/src/components/ui/pagination-controls.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ui/pagination-controls.tsx
index 384f5040ba..8d11a502c0 100644
--- a/autogpt_platform/frontend/src/components/ui/pagination-controls.tsx
+++ b/autogpt_platform/frontend/src/components/__legacy__/ui/pagination-controls.tsx
@@ -1,7 +1,7 @@
"use client";
import { useRouter, usePathname, useSearchParams } from "next/navigation";
-import { Button } from "@/components/ui/button";
+import { Button } from "@/components/__legacy__/ui/button";
export function PaginationControls({
currentPage,
diff --git a/autogpt_platform/frontend/src/components/ui/popover.tsx b/autogpt_platform/frontend/src/components/__legacy__/ui/popover.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/ui/popover.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ui/popover.tsx
diff --git a/autogpt_platform/frontend/src/components/ui/radio-group.tsx b/autogpt_platform/frontend/src/components/__legacy__/ui/radio-group.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/ui/radio-group.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ui/radio-group.tsx
diff --git a/autogpt_platform/frontend/src/components/ui/render.tsx b/autogpt_platform/frontend/src/components/__legacy__/ui/render.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/ui/render.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ui/render.tsx
diff --git a/autogpt_platform/frontend/src/components/ui/scroll-area.tsx b/autogpt_platform/frontend/src/components/__legacy__/ui/scroll-area.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/ui/scroll-area.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ui/scroll-area.tsx
diff --git a/autogpt_platform/frontend/src/components/ui/select.tsx b/autogpt_platform/frontend/src/components/__legacy__/ui/select.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/ui/select.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ui/select.tsx
diff --git a/autogpt_platform/frontend/src/components/ui/separator.tsx b/autogpt_platform/frontend/src/components/__legacy__/ui/separator.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/ui/separator.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ui/separator.tsx
diff --git a/autogpt_platform/frontend/src/components/ui/sheet.tsx b/autogpt_platform/frontend/src/components/__legacy__/ui/sheet.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/ui/sheet.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ui/sheet.tsx
diff --git a/autogpt_platform/frontend/src/components/ui/skeleton.tsx b/autogpt_platform/frontend/src/components/__legacy__/ui/skeleton.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/ui/skeleton.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ui/skeleton.tsx
diff --git a/autogpt_platform/frontend/src/components/ui/table.tsx b/autogpt_platform/frontend/src/components/__legacy__/ui/table.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/ui/table.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ui/table.tsx
diff --git a/autogpt_platform/frontend/src/components/ui/tabs.tsx b/autogpt_platform/frontend/src/components/__legacy__/ui/tabs.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/ui/tabs.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ui/tabs.tsx
diff --git a/autogpt_platform/frontend/src/components/ui/textarea.tsx b/autogpt_platform/frontend/src/components/__legacy__/ui/textarea.tsx
similarity index 100%
rename from autogpt_platform/frontend/src/components/ui/textarea.tsx
rename to autogpt_platform/frontend/src/components/__legacy__/ui/textarea.tsx
diff --git a/autogpt_platform/frontend/src/components/atoms/Avatar/Avatar.tsx b/autogpt_platform/frontend/src/components/atoms/Avatar/Avatar.tsx
index 3c851f966a..cf27f1c6ec 100644
--- a/autogpt_platform/frontend/src/components/atoms/Avatar/Avatar.tsx
+++ b/autogpt_platform/frontend/src/components/atoms/Avatar/Avatar.tsx
@@ -7,8 +7,9 @@ import React, {
useMemo,
useState,
} from "react";
+import BoringAvatar from "boring-avatars";
+
import Image, { ImageProps } from "next/image";
-import BoringAvatarWrapper from "@/components/ui/BoringAvatarWrapper";
type AvatarContextValue = {
isLoaded: boolean;
@@ -184,11 +185,12 @@ export function AvatarFallback({
].join(" ")}
{...props}
>
- <BoringAvatarWrapper
+ <BoringAvatar
size={computedSize}
name={name}
variant="marble"
colors={["#92A1C6", "#146A7C", "#F0AB3D", "#C271B4", "#C20D90"]}
+ square={false}
/>
</span>
);
diff --git a/autogpt_platform/frontend/src/components/atoms/Input/Input.tsx b/autogpt_platform/frontend/src/components/atoms/Input/Input.tsx
index 7e773e8169..47e63f5fc7 100644
--- a/autogpt_platform/frontend/src/components/atoms/Input/Input.tsx
+++ b/autogpt_platform/frontend/src/components/atoms/Input/Input.tsx
@@ -1,4 +1,7 @@
-import { Input as BaseInput, type InputProps } from "@/components/ui/input";
+import {
+ Input as BaseInput,
+ type InputProps,
+} from "@/components/__legacy__/ui/input";
import { cn } from "@/lib/utils";
import { Eye, EyeSlash } from "@phosphor-icons/react";
import { ReactNode, useState } from "react";
diff --git a/autogpt_platform/frontend/src/components/atoms/Input/useInput.ts b/autogpt_platform/frontend/src/components/atoms/Input/useInput.ts
index ce066ffb62..b95c7d2922 100644
--- a/autogpt_platform/frontend/src/components/atoms/Input/useInput.ts
+++ b/autogpt_platform/frontend/src/components/atoms/Input/useInput.ts
@@ -1,4 +1,4 @@
-import { InputProps } from "@/components/ui/input";
+import { InputProps } from "@/components/__legacy__/ui/input";
import {
filterNumberInput,
filterPhoneInput,
diff --git a/autogpt_platform/frontend/src/components/atoms/Select/Select.tsx b/autogpt_platform/frontend/src/components/atoms/Select/Select.tsx
index 09117ab41c..de5a108fce 100644
--- a/autogpt_platform/frontend/src/components/atoms/Select/Select.tsx
+++ b/autogpt_platform/frontend/src/components/atoms/Select/Select.tsx
@@ -8,7 +8,7 @@ import {
SelectTrigger,
SelectValue,
SelectSeparator,
-} from "@/components/ui/select";
+} from "@/components/__legacy__/ui/select";
import { cn } from "@/lib/utils";
import { ReactNode } from "react";
import { Text } from "../Text/Text";
diff --git a/autogpt_platform/frontend/src/components/atoms/Skeleton/skeleton.stories.tsx b/autogpt_platform/frontend/src/components/atoms/Skeleton/skeleton.stories.tsx
index c686871fb7..04d87a6e0e 100644
--- a/autogpt_platform/frontend/src/components/atoms/Skeleton/skeleton.stories.tsx
+++ b/autogpt_platform/frontend/src/components/atoms/Skeleton/skeleton.stories.tsx
@@ -1,4 +1,4 @@
-import { Skeleton } from "@/components/ui/skeleton";
+import { Skeleton } from "@/components/__legacy__/ui/skeleton";
import type { Meta, StoryObj } from "@storybook/nextjs";
const meta: Meta<typeof Skeleton> = {
diff --git a/autogpt_platform/frontend/src/components/auth/AuthFeedback.tsx b/autogpt_platform/frontend/src/components/auth/AuthFeedback.tsx
index 9388ecb9b6..84bba731aa 100644
--- a/autogpt_platform/frontend/src/components/auth/AuthFeedback.tsx
+++ b/autogpt_platform/frontend/src/components/auth/AuthFeedback.tsx
@@ -1,5 +1,5 @@
import { HelpItem } from "@/components/auth/help-item";
-import { Card, CardContent } from "@/components/ui/card";
+import { Card, CardContent } from "@/components/__legacy__/ui/card";
import { BehaveAs } from "@/lib/utils";
import { AlertCircle, CheckCircle } from "lucide-react";
diff --git a/autogpt_platform/frontend/src/components/auth/PasswordInput.tsx b/autogpt_platform/frontend/src/components/auth/PasswordInput.tsx
index 8bafe0641d..db920c34e3 100644
--- a/autogpt_platform/frontend/src/components/auth/PasswordInput.tsx
+++ b/autogpt_platform/frontend/src/components/auth/PasswordInput.tsx
@@ -1,7 +1,7 @@
import { forwardRef, useState } from "react";
import { EyeIcon, EyeOffIcon } from "lucide-react";
-import { Button } from "@/components/ui/button";
-import { Input, InputProps } from "@/components/ui/input";
+import { Button } from "@/components/__legacy__/ui/button";
+import { Input, InputProps } from "@/components/__legacy__/ui/input";
import { cn } from "@/lib/utils";
const PasswordInput = forwardRef<HTMLInputElement, InputProps>(
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 ca85a4999b..7f04f91a92 100644
--- a/autogpt_platform/frontend/src/components/contextual/EditAgentModal/components/EditAgentForm.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/EditAgentModal/components/EditAgentForm.tsx
@@ -4,7 +4,7 @@ import * as React from "react";
import { Button } from "@/components/atoms/Button/Button";
import { Input } from "@/components/atoms/Input/Input";
import { Select } from "@/components/atoms/Select/Select";
-import { Form, FormField } from "@/components/ui/form";
+import { Form, FormField } from "@/components/__legacy__/ui/form";
import { StoreSubmission } from "@/app/api/__generated__/models/storeSubmission";
import { ThumbnailImages } from "../../PublishAgentModal/components/AgentInfoStep/components/ThumbnailImages";
import { StoreSubmissionEditRequest } from "@/app/api/__generated__/models/storeSubmissionEditRequest";
diff --git a/autogpt_platform/frontend/src/components/contextual/InfiniteScroll/InfiniteScroll.tsx b/autogpt_platform/frontend/src/components/contextual/InfiniteScroll/InfiniteScroll.tsx
index 324293bc9c..12aa95d564 100644
--- a/autogpt_platform/frontend/src/components/contextual/InfiniteScroll/InfiniteScroll.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/InfiniteScroll/InfiniteScroll.tsx
@@ -3,7 +3,7 @@
import React from "react";
import { cn } from "@/lib/utils";
import { useInfiniteScroll } from "./useInfiniteScroll";
-import LoadingBox from "@/components/ui/loading";
+import LoadingBox from "@/components/__legacy__/ui/loading";
type InfiniteScrollProps = {
children: React.ReactNode;
diff --git a/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/PublishAgentModal.tsx b/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/PublishAgentModal.tsx
index fbab5f51ec..51596e9c07 100644
--- a/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/PublishAgentModal.tsx
+++ b/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/PublishAgentModal.tsx
@@ -5,7 +5,7 @@ import { AgentSelectStep } from "./components/AgentSelectStep/AgentSelectStep";
import { AgentInfoStep } from "./components/AgentInfoStep/AgentInfoStep";
import { AgentReviewStep } from "./components/AgentReviewStep";
import { Dialog } from "@/components/molecules/Dialog/Dialog";
-import { Skeleton } from "@/components/ui/skeleton";
+import { Skeleton } from "@/components/__legacy__/ui/skeleton";
import { Button } from "@/components/atoms/Button/Button";
import { Props, usePublishAgentModal } from "./usePublishAgentModal";
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 369be98812..23f15cd717 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
@@ -5,7 +5,7 @@ import { Button } from "@/components/atoms/Button/Button";
import { StepHeader } from "../StepHeader";
import { Input } from "@/components/atoms/Input/Input";
import { Select } from "@/components/atoms/Select/Select";
-import { Form, FormField } from "@/components/ui/form";
+import { Form, FormField } from "@/components/__legacy__/ui/form";
import { CronExpressionDialog } from "@/app/(platform)/library/agents/[id]/components/OldAgentLibraryView/components/cron-scheduler-dialog";
import { humanizeCronExpression } from "@/lib/cron-expression-utils";
import { CalendarClockIcon } from "lucide-react";
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 6b86e48101..723eb5d640 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,7 +2,7 @@
import * as React from "react";
import Image from "next/image";
-import { IconCross, IconPlus } from "../../../../../ui/icons";
+import { IconCross, IconPlus } from "../../../../../__legacy__/ui/icons";
import { Button } from "@/components/atoms/Button/Button";
import { MagicWand } from "@phosphor-icons/react";
import { useThumbnailImages } from "./useThumbnailImages";
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 ab10e4632e..2766f2d477 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
@@ -5,7 +5,7 @@ import Image from "next/image";
import { Text } from "../../../../atoms/Text/Text";
import { Button } from "../../../../atoms/Button/Button";
import { StepHeader } from "../StepHeader";
-import { Skeleton } from "@/components/ui/skeleton";
+import { Skeleton } from "@/components/__legacy__/ui/skeleton";
import { useAgentSelectStep } from "./useAgentSelectStep";
import { scrollbarStyles } from "@/components/styles/scrollbars";
import { cn } from "@/lib/utils";
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 5cd8f5cc62..e10e3eefb2 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
@@ -2,7 +2,7 @@ import {
Popover,
PopoverContent,
PopoverTrigger,
-} from "@/components/ui/popover";
+} from "@/components/__legacy__/ui/popover";
import Link from "next/link";
import * as React from "react";
import { getAccountMenuOptionIcon, MenuItemGroup } from "../../helpers";
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 dc2c166797..2e16a542db 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,6 +1,6 @@
"use client";
-import { IconLogOut } from "@/components/ui/icons";
-import { LoadingSpinner } from "@/components/ui/loading";
+import { IconLogOut } from "@/components/__legacy__/ui/icons";
+import { LoadingSpinner } from "@/components/__legacy__/ui/loading";
import { useSupabase } from "@/lib/supabase/hooks/useSupabase";
import { cn } from "@/lib/utils";
import * as Sentry from "@sentry/nextjs";
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 9a6c92575e..ff1c229bbc 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
@@ -5,7 +5,7 @@ import {
Popover,
PopoverContent,
PopoverTrigger,
-} from "@/components/ui/popover";
+} from "@/components/__legacy__/ui/popover";
import { Bell } from "@phosphor-icons/react";
import { ActivityDropdown } from "./components/ActivityDropdown/ActivityDropdown";
import { formatNotificationCount } from "./helpers";
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 60d021dfa4..f4062a984d 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
@@ -5,8 +5,8 @@ import {
PopoverContent,
PopoverPortal,
PopoverTrigger,
-} from "@/components/ui/popover";
-import { Separator } from "@/components/ui/separator";
+} from "@/components/__legacy__/ui/popover";
+import { Separator } from "@/components/__legacy__/ui/separator";
import { AnimatePresence, motion } from "framer-motion";
import { usePathname } from "next/navigation";
import * as React from "react";
diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/components/MobileNavbar/components/MobileNavbarMenuItem.tsx b/autogpt_platform/frontend/src/components/layout/Navbar/components/MobileNavbar/components/MobileNavbarMenuItem.tsx
index 22d70852bb..fb061f3e0a 100644
--- a/autogpt_platform/frontend/src/components/layout/Navbar/components/MobileNavbar/components/MobileNavbarMenuItem.tsx
+++ b/autogpt_platform/frontend/src/components/layout/Navbar/components/MobileNavbar/components/MobileNavbarMenuItem.tsx
@@ -1,4 +1,4 @@
-import { IconType } from "@/components/ui/icons";
+import { IconType } from "@/components/__legacy__/ui/icons";
import { cn } from "@/lib/utils";
import Link from "next/link";
import { getAccountMenuOptionIcon } from "../../../helpers";
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 4422e389c5..45e2a46432 100644
--- a/autogpt_platform/frontend/src/components/layout/Navbar/components/NavbarLink.tsx
+++ b/autogpt_platform/frontend/src/components/layout/Navbar/components/NavbarLink.tsx
@@ -1,6 +1,6 @@
"use client";
-import { IconLaptop } from "@/components/ui/icons";
+import { IconLaptop } from "@/components/__legacy__/ui/icons";
import { cn } from "@/lib/utils";
import {
CubeIcon,
diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/components/NavbarLoading.tsx b/autogpt_platform/frontend/src/components/layout/Navbar/components/NavbarLoading.tsx
index 6aa6252b77..42362d24d4 100644
--- a/autogpt_platform/frontend/src/components/layout/Navbar/components/NavbarLoading.tsx
+++ b/autogpt_platform/frontend/src/components/layout/Navbar/components/NavbarLoading.tsx
@@ -1,5 +1,5 @@
-import { IconAutoGPTLogo } from "@/components/ui/icons";
-import { Skeleton } from "@/components/ui/skeleton";
+import { IconAutoGPTLogo } from "@/components/__legacy__/ui/icons";
+import { Skeleton } from "@/components/__legacy__/ui/skeleton";
export function NavbarLoading() {
return (
diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/components/NavbarView.tsx b/autogpt_platform/frontend/src/components/layout/Navbar/components/NavbarView.tsx
index d750ee2daa..071a9a1c69 100644
--- a/autogpt_platform/frontend/src/components/layout/Navbar/components/NavbarView.tsx
+++ b/autogpt_platform/frontend/src/components/layout/Navbar/components/NavbarView.tsx
@@ -1,6 +1,6 @@
"use client";
-import { IconAutoGPTLogo, IconType } from "@/components/ui/icons";
-import Wallet from "../../../agptui/Wallet";
+import { IconAutoGPTLogo, IconType } from "@/components/__legacy__/ui/icons";
+import Wallet from "../../../__legacy__/Wallet";
import { AccountMenu } from "./AccountMenu/AccountMenu";
import { LoginButton } from "./LoginButton";
import { MobileNavBar } from "./MobileNavbar/MobileNavBar";
diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/helpers.tsx b/autogpt_platform/frontend/src/components/layout/Navbar/helpers.tsx
index 485ee6583d..a61459bb40 100644
--- a/autogpt_platform/frontend/src/components/layout/Navbar/helpers.tsx
+++ b/autogpt_platform/frontend/src/components/layout/Navbar/helpers.tsx
@@ -9,7 +9,7 @@ import {
IconSliders,
IconType,
IconUploadCloud,
-} from "@/components/ui/icons";
+} from "@/components/__legacy__/ui/icons";
import { StorefrontIcon } from "@phosphor-icons/react";
type Link = {
diff --git a/autogpt_platform/frontend/src/components/molecules/Alert/Alert.stories.tsx b/autogpt_platform/frontend/src/components/molecules/Alert/Alert.stories.tsx
new file mode 100644
index 0000000000..b8f670d457
--- /dev/null
+++ b/autogpt_platform/frontend/src/components/molecules/Alert/Alert.stories.tsx
@@ -0,0 +1,55 @@
+import type { Meta, StoryObj } from "@storybook/nextjs";
+import { Alert, AlertTitle, AlertDescription } from "./Alert";
+
+const meta = {
+ title: "Molecules/Alert",
+ component: Alert,
+ parameters: {
+ layout: "centered",
+ },
+ tags: ["autodocs"],
+} satisfies Meta<typeof Alert>;
+
+export default meta;
+type Story = StoryObj<typeof meta>;
+
+export const Default: Story = {
+ args: {
+ children: (
+ <>
+ <AlertTitle>Heads up!</AlertTitle>
+ <AlertDescription>
+ You can add components to your app using the cli.
+ </AlertDescription>
+ </>
+ ),
+ },
+};
+
+export const Warning: Story = {
+ args: {
+ variant: "warning",
+ children: (
+ <>
+ <AlertTitle>Warning</AlertTitle>
+ <AlertDescription>
+ This action cannot be undone. Please proceed with caution.
+ </AlertDescription>
+ </>
+ ),
+ },
+};
+
+export const Error: Story = {
+ args: {
+ variant: "error",
+ children: (
+ <>
+ <AlertTitle>Error</AlertTitle>
+ <AlertDescription>
+ Your session has expired. Please log in again.
+ </AlertDescription>
+ </>
+ ),
+ },
+};
diff --git a/autogpt_platform/frontend/src/components/molecules/Alert/Alert.tsx b/autogpt_platform/frontend/src/components/molecules/Alert/Alert.tsx
new file mode 100644
index 0000000000..7016fd1986
--- /dev/null
+++ b/autogpt_platform/frontend/src/components/molecules/Alert/Alert.tsx
@@ -0,0 +1,81 @@
+import * as React from "react";
+import { cva, type VariantProps } from "class-variance-authority";
+import { InfoIcon, AlertTriangleIcon, XCircleIcon } from "lucide-react";
+
+import { cn } from "@/lib/utils";
+
+const alertVariants = cva(
+ "relative w-full rounded-lg border border-neutral-200 px-4 py-3 text-sm [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-[12px] [&>svg]:text-neutral-950 [&>svg~*]:pl-7",
+ {
+ variants: {
+ variant: {
+ default: "bg-white text-neutral-950 [&>svg]:text-blue-500",
+ warning:
+ "bg-white border-orange-500/50 text-orange-600 [&>svg]:text-orange-500",
+ error: "bg-white border-red-500/50 text-red-500 [&>svg]:text-red-500",
+ },
+ },
+ defaultVariants: {
+ variant: "default",
+ },
+ },
+);
+
+const variantIcons = {
+ default: InfoIcon,
+ warning: AlertTriangleIcon,
+ error: XCircleIcon,
+} as const;
+
+interface AlertProps
+ extends React.HTMLAttributes<HTMLDivElement>,
+ VariantProps<typeof alertVariants> {
+ children: React.ReactNode;
+}
+
+const Alert = React.forwardRef<HTMLDivElement, AlertProps>(
+ ({ className, variant = "default", children, ...props }, ref) => {
+ const currentVariant = variant || "default";
+ const IconComponent = variantIcons[currentVariant];
+
+ return (
+ <div
+ ref={ref}
+ role="alert"
+ className={cn(alertVariants({ variant: currentVariant }), className)}
+ {...props}
+ >
+ <IconComponent className="h-4 w-4" />
+ {children}
+ </div>
+ );
+ },
+);
+Alert.displayName = "Alert";
+
+const AlertTitle = React.forwardRef<
+ HTMLParagraphElement,
+ React.HTMLAttributes<HTMLHeadingElement>
+>(({ className, ...props }, ref) => (
+ <h5
+ ref={ref}
+ className={cn("mb-1 font-medium leading-none tracking-tight", className)}
+ {...props}
+ />
+));
+
+AlertTitle.displayName = "AlertTitle";
+
+const AlertDescription = React.forwardRef<
+ HTMLParagraphElement,
+ React.HTMLAttributes<HTMLParagraphElement>
+>(({ className, ...props }, ref) => (
+ <div
+ ref={ref}
+ className={cn("text-sm [&_p]:leading-relaxed", className)}
+ {...props}
+ />
+));
+AlertDescription.displayName = "AlertDescription";
+
+export { Alert, AlertTitle, AlertDescription };
diff --git a/autogpt_platform/frontend/src/components/molecules/Collapsible/Collapsible.tsx b/autogpt_platform/frontend/src/components/molecules/Collapsible/Collapsible.tsx
index e9053f0e17..6ae073295e 100644
--- a/autogpt_platform/frontend/src/components/molecules/Collapsible/Collapsible.tsx
+++ b/autogpt_platform/frontend/src/components/molecules/Collapsible/Collapsible.tsx
@@ -6,7 +6,7 @@ import {
Collapsible as BaseCollapsible,
CollapsibleTrigger as BaseCollapsibleTrigger,
CollapsibleContent as BaseCollapsibleContent,
-} from "@/components/ui/collapsible";
+} from "@/components/__legacy__/ui/collapsible";
import { CaretDownIcon } from "@phosphor-icons/react";
interface Props {
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 3a830c10f6..b9d3b2e118 100644
--- a/autogpt_platform/frontend/src/components/molecules/Dialog/components/DrawerWrap.tsx
+++ b/autogpt_platform/frontend/src/components/molecules/Dialog/components/DrawerWrap.tsx
@@ -1,4 +1,4 @@
-import { Button } from "@/components/ui/button";
+import { Button } from "@/components/__legacy__/ui/button";
import { X } from "@phosphor-icons/react";
import { PropsWithChildren } from "react";
import { Drawer } from "vaul";
diff --git a/autogpt_platform/frontend/src/components/molecules/TallyPoup/TallyPopup.tsx b/autogpt_platform/frontend/src/components/molecules/TallyPoup/TallyPopup.tsx
index 3ce9cce68c..9359dc4119 100644
--- a/autogpt_platform/frontend/src/components/molecules/TallyPoup/TallyPopup.tsx
+++ b/autogpt_platform/frontend/src/components/molecules/TallyPoup/TallyPopup.tsx
@@ -1,7 +1,7 @@
"use client";
import React, { useEffect, useState } from "react";
-import { Button } from "../../ui/button";
+import { Button } from "../../__legacy__/ui/button";
import { QuestionMarkCircledIcon } from "@radix-ui/react-icons";
import { useRouter, usePathname } from "next/navigation";
diff --git a/autogpt_platform/frontend/src/components/ui/BoringAvatarWrapper.tsx b/autogpt_platform/frontend/src/components/ui/BoringAvatarWrapper.tsx
deleted file mode 100644
index 9d1c6320a1..0000000000
--- a/autogpt_platform/frontend/src/components/ui/BoringAvatarWrapper.tsx
+++ /dev/null
@@ -1,31 +0,0 @@
-import Avatar from "boring-avatars";
-
-import React from "react";
-
-interface BoringAvatarWrapperProps {
- size?: number;
- name: string;
- variant?: "marble" | "beam" | "pixel" | "sunset" | "ring" | "bauhaus";
- colors?: string[];
- square?: boolean;
-}
-
-export const BoringAvatarWrapper: React.FC<BoringAvatarWrapperProps> = ({
- size = 40,
- name,
- variant = "beam",
- colors = ["#92A1C6", "#146A7C", "#F0AB3D", "#C271B4", "#C20D90"],
- square = false,
-}) => {
- return (
- <Avatar
- size={size}
- name={name}
- variant={variant}
- colors={colors}
- square={square}
- />
- );
-};
-
-export default BoringAvatarWrapper;
diff --git a/autogpt_platform/frontend/src/components/ui/alert-dialog.tsx b/autogpt_platform/frontend/src/components/ui/alert-dialog.tsx
deleted file mode 100644
index 41adf9a224..0000000000
--- a/autogpt_platform/frontend/src/components/ui/alert-dialog.tsx
+++ /dev/null
@@ -1,143 +0,0 @@
-"use client";
-
-import * as React from "react";
-import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
-
-import { cn } from "@/lib/utils";
-import { buttonVariants } from "@/components/ui/button";
-import { VariantProps } from "class-variance-authority";
-
-const AlertDialog = AlertDialogPrimitive.Root;
-
-const AlertDialogTrigger = AlertDialogPrimitive.Trigger;
-
-const AlertDialogPortal = AlertDialogPrimitive.Portal;
-
-const AlertDialogOverlay = React.forwardRef<
- React.ElementRef<typeof AlertDialogPrimitive.Overlay>,
- React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>
->(({ className, ...props }, ref) => (
- <AlertDialogPrimitive.Overlay
- className={cn(
- "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
- className,
- )}
- {...props}
- ref={ref}
- />
-));
-AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
-
-const AlertDialogContent = React.forwardRef<
- React.ElementRef<typeof AlertDialogPrimitive.Content>,
- React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>
->(({ className, ...props }, ref) => (
- <AlertDialogPortal>
- <AlertDialogOverlay />
- <AlertDialogPrimitive.Content
- ref={ref}
- className={cn(
- "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-neutral-200 bg-white p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] dark:border-neutral-800 dark:bg-neutral-950 sm:rounded-lg",
- className,
- )}
- {...props}
- />
- </AlertDialogPortal>
-));
-AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
-
-const AlertDialogHeader = ({
- className,
- ...props
-}: React.HTMLAttributes<HTMLDivElement>) => (
- <div
- className={cn(
- "flex flex-col space-y-2 text-center sm:text-left",
- className,
- )}
- {...props}
- />
-);
-AlertDialogHeader.displayName = "AlertDialogHeader";
-
-const AlertDialogFooter = ({
- className,
- ...props
-}: React.HTMLAttributes<HTMLDivElement>) => (
- <div
- className={cn(
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
- className,
- )}
- {...props}
- />
-);
-AlertDialogFooter.displayName = "AlertDialogFooter";
-
-const AlertDialogTitle = React.forwardRef<
- React.ElementRef<typeof AlertDialogPrimitive.Title>,
- React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>
->(({ className, ...props }, ref) => (
- <AlertDialogPrimitive.Title
- ref={ref}
- className={cn("text-lg font-semibold", className)}
- {...props}
- />
-));
-AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
-
-const AlertDialogDescription = React.forwardRef<
- React.ElementRef<typeof AlertDialogPrimitive.Description>,
- React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>
->(({ className, ...props }, ref) => (
- <AlertDialogPrimitive.Description
- ref={ref}
- className={cn("text-sm text-neutral-500 dark:text-neutral-400", className)}
- {...props}
- />
-));
-AlertDialogDescription.displayName =
- AlertDialogPrimitive.Description.displayName;
-
-const AlertDialogAction = React.forwardRef<
- React.ElementRef<typeof AlertDialogPrimitive.Action>,
- React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action> &
- VariantProps<typeof buttonVariants>
->(({ className, variant, ...props }, ref) => (
- <AlertDialogPrimitive.Action
- ref={ref}
- className={cn(buttonVariants({ variant: variant }), className)}
- {...props}
- />
-));
-AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
-
-const AlertDialogCancel = React.forwardRef<
- React.ElementRef<typeof AlertDialogPrimitive.Cancel>,
- React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>
->(({ className, ...props }, ref) => (
- <AlertDialogPrimitive.Cancel
- ref={ref}
- className={cn(
- buttonVariants({ variant: "outline" }),
- "mt-2 sm:mt-0",
- className,
- )}
- {...props}
- />
-));
-AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
-
-export {
- AlertDialog,
- AlertDialogPortal,
- AlertDialogOverlay,
- AlertDialogTrigger,
- AlertDialogContent,
- AlertDialogHeader,
- AlertDialogFooter,
- AlertDialogTitle,
- AlertDialogDescription,
- AlertDialogAction,
- AlertDialogCancel,
-};
diff --git a/autogpt_platform/frontend/src/components/ui/alert.tsx b/autogpt_platform/frontend/src/components/ui/alert.tsx
deleted file mode 100644
index 49e1f78d2a..0000000000
--- a/autogpt_platform/frontend/src/components/ui/alert.tsx
+++ /dev/null
@@ -1,60 +0,0 @@
-import * as React from "react";
-import { cva, type VariantProps } from "class-variance-authority";
-
-import { cn } from "@/lib/utils";
-
-const alertVariants = cva(
- "relative w-full rounded-lg border border-neutral-200 px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-neutral-950 [&>svg~*]:pl-7 dark:border-neutral-800 dark:[&>svg]:text-neutral-50",
- {
- variants: {
- variant: {
- default:
- "bg-white text-neutral-950 dark:bg-neutral-950 dark:text-neutral-50",
- destructive:
- "border-red-500/50 text-red-500 dark:border-red-500 [&>svg]:text-red-500 dark:border-red-900/50 dark:text-red-900 dark:dark:border-red-900 dark:[&>svg]:text-red-900",
- },
- },
- defaultVariants: {
- variant: "default",
- },
- },
-);
-
-const Alert = React.forwardRef<
- HTMLDivElement,
- React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants>
->(({ className, variant, ...props }, ref) => (
- <div
- ref={ref}
- role="alert"
- className={cn(alertVariants({ variant }), className)}
- {...props}
- />
-));
-Alert.displayName = "Alert";
-
-const AlertTitle = React.forwardRef<
- HTMLParagraphElement,
- React.HTMLAttributes<HTMLHeadingElement>
->(({ className, ...props }, ref) => (
- <h5
- ref={ref}
- className={cn("mb-1 font-medium leading-none tracking-tight", className)}
- {...props}
- />
-));
-AlertTitle.displayName = "AlertTitle";
-
-const AlertDescription = React.forwardRef<
- HTMLParagraphElement,
- React.HTMLAttributes<HTMLParagraphElement>
->(({ className, ...props }, ref) => (
- <div
- ref={ref}
- className={cn("text-sm [&_p]:leading-relaxed", className)}
- {...props}
- />
-));
-AlertDescription.displayName = "AlertDescription";
-
-export { Alert, AlertTitle, AlertDescription };
diff --git a/autogpt_platform/frontend/src/providers/onboarding/onboarding-provider.tsx b/autogpt_platform/frontend/src/providers/onboarding/onboarding-provider.tsx
index 939829fa4c..8289ef85d2 100644
--- a/autogpt_platform/frontend/src/providers/onboarding/onboarding-provider.tsx
+++ b/autogpt_platform/frontend/src/providers/onboarding/onboarding-provider.tsx
@@ -1,5 +1,5 @@
"use client";
-import { Button } from "@/components/ui/button";
+import { Button } from "@/components/__legacy__/ui/button";
import {
Dialog,
DialogContent,
@@ -7,7 +7,7 @@ import {
DialogFooter,
DialogHeader,
DialogTitle,
-} from "@/components/ui/dialog";
+} from "@/components/__legacy__/ui/dialog";
import { OnboardingStep, UserOnboarding } from "@/lib/autogpt-server-api";
import { useBackendAPI } from "@/lib/autogpt-server-api/context";
import { useSupabase } from "@/lib/supabase/hooks/useSupabase";