From 62edd730205c78c57b076564b706f977d528361f Mon Sep 17 00:00:00 2001 From: Lluis Agusti Date: Fri, 6 Feb 2026 00:23:43 +0800 Subject: [PATCH] chore: further fixes --- .../components/ChatSidebar/ChatSidebar.tsx | 2 +- .../components/MobileDrawer/MobileDrawer.tsx | 4 +- .../MorphingTextAnimation.tsx | 6 +- .../ToolAccordion/ToolAccordion.tsx | 11 +-- .../tools/CreateAgent/CreateAgent.tsx | 13 ++- .../copilot-2/tools/CreateAgent/helpers.tsx | 54 +++++------ .../copilot-2/tools/EditAgent/EditAgent.tsx | 13 ++- .../copilot-2/tools/EditAgent/helpers.tsx | 54 +++++------ .../copilot-2/tools/FindAgents/FindAgents.tsx | 14 ++- .../copilot-2/tools/FindAgents/helpers.tsx | 95 ++++++++++--------- .../copilot-2/tools/FindBlocks/FindBlocks.tsx | 12 ++- .../copilot-2/tools/FindBlocks/helpers.tsx | 62 ++++++------ .../copilot-2/tools/RunAgent/RunAgent.tsx | 13 ++- .../copilot-2/tools/RunAgent/helpers.tsx | 64 +++++++------ .../copilot-2/tools/RunBlock/RunBlock.tsx | 13 ++- .../copilot-2/tools/RunBlock/helpers.tsx | 57 ++++++----- .../copilot-2/tools/SearchDocs/SearchDocs.tsx | 13 ++- .../copilot-2/tools/SearchDocs/helpers.tsx | 93 +++++++++--------- .../tools/ViewAgentOutput/ViewAgentOutput.tsx | 13 ++- .../tools/ViewAgentOutput/helpers.tsx | 55 ++++++----- 20 files changed, 353 insertions(+), 308 deletions(-) diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot-2/components/ChatSidebar/ChatSidebar.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot-2/components/ChatSidebar/ChatSidebar.tsx index ff4278a24d..094cfd9421 100644 --- a/autogpt_platform/frontend/src/app/(platform)/copilot-2/components/ChatSidebar/ChatSidebar.tsx +++ b/autogpt_platform/frontend/src/app/(platform)/copilot-2/components/ChatSidebar/ChatSidebar.tsx @@ -110,7 +110,7 @@ export function ChatSidebar() { Your chats -
+
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot-2/components/MobileDrawer/MobileDrawer.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot-2/components/MobileDrawer/MobileDrawer.tsx index 74b80ef499..80ccfc9c03 100644 --- a/autogpt_platform/frontend/src/app/(platform)/copilot-2/components/MobileDrawer/MobileDrawer.tsx +++ b/autogpt_platform/frontend/src/app/(platform)/copilot-2/components/MobileDrawer/MobileDrawer.tsx @@ -57,7 +57,7 @@ export function MobileDrawer({ -
+
Your chats @@ -68,7 +68,7 @@ export function MobileDrawer({ aria-label="Close sessions" onClick={onClose} > - +
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot-2/components/MorphingTextAnimation/MorphingTextAnimation.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot-2/components/MorphingTextAnimation/MorphingTextAnimation.tsx index 9fbe3a810e..aac615bb2b 100644 --- a/autogpt_platform/frontend/src/app/(platform)/copilot-2/components/MorphingTextAnimation/MorphingTextAnimation.tsx +++ b/autogpt_platform/frontend/src/app/(platform)/copilot-2/components/MorphingTextAnimation/MorphingTextAnimation.tsx @@ -1,14 +1,16 @@ +import { cn } from "@/lib/utils"; import { AnimatePresence, motion } from "framer-motion"; interface Props { text: string; + className?: string; } -export function MorphingTextAnimation({ text }: Props) { +export function MorphingTextAnimation({ text, className }: Props) { const letters = text.split(""); return ( -
+
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot-2/components/ToolAccordion/ToolAccordion.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot-2/components/ToolAccordion/ToolAccordion.tsx index 2af67eced9..2e38791c8f 100644 --- a/autogpt_platform/frontend/src/app/(platform)/copilot-2/components/ToolAccordion/ToolAccordion.tsx +++ b/autogpt_platform/frontend/src/app/(platform)/copilot-2/components/ToolAccordion/ToolAccordion.tsx @@ -1,9 +1,9 @@ "use client"; +import { cn } from "@/lib/utils"; import { CaretDownIcon } from "@phosphor-icons/react"; import { AnimatePresence, motion, useReducedMotion } from "framer-motion"; import { useId } from "react"; -import { cn } from "@/lib/utils"; import { useToolAccordion } from "./useToolAccordion"; interface Props { @@ -36,12 +36,7 @@ export function ToolAccordion({ }); return ( -
+