From ed2cc6154f8ce61d35f7bf386ec29a558e8a0e4f Mon Sep 17 00:00:00 2001 From: Lluis Agusti Date: Fri, 2 Jan 2026 17:50:06 +0700 Subject: [PATCH] chore: more updates --- .../LibraryActionSubHeader.tsx | 18 ++--- .../LibraryAgentCard/LibraryAgentCard.tsx | 68 +++++++++---------- .../LibraryAgentList/LibraryAgentList.tsx | 2 +- 3 files changed, 43 insertions(+), 45 deletions(-) diff --git a/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryActionSubHeader/LibraryActionSubHeader.tsx b/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryActionSubHeader/LibraryActionSubHeader.tsx index be1ebe1aef..5978f501e0 100644 --- a/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryActionSubHeader/LibraryActionSubHeader.tsx +++ b/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryActionSubHeader/LibraryActionSubHeader.tsx @@ -1,5 +1,6 @@ "use client"; +import { Text } from "@/components/atoms/Text/Text"; import LibrarySortMenu from "../LibrarySortMenu/LibrarySortMenu"; interface LibraryActionSubHeaderProps { @@ -10,17 +11,16 @@ export default function LibraryActionSubHeader({ agentCount, }: LibraryActionSubHeaderProps) { return ( -
-
- - My agents - - +
+ My agents + - {agentCount} agents - + {agentCount} +
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryAgentCard/LibraryAgentCard.tsx b/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryAgentCard/LibraryAgentCard.tsx index ef2662f735..a354fe5790 100644 --- a/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryAgentCard/LibraryAgentCard.tsx +++ b/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryAgentCard/LibraryAgentCard.tsx @@ -1,25 +1,28 @@ "use client"; -import Link from "next/link"; -import Image from "next/image"; -import { Heart } from "@phosphor-icons/react"; -import { useState, useEffect } from "react"; +import { OverflowText } from "@/components/atoms/OverflowText/OverflowText"; +import { Text } from "@/components/atoms/Text/Text"; import { getQueryClient } from "@/lib/react-query/queryClient"; +import { HeartIcon } from "@phosphor-icons/react"; import { InfiniteData } from "@tanstack/react-query"; +import Image from "next/image"; +import NextLink from "next/link"; +import { useEffect, useState } from "react"; -import { LibraryAgent } from "@/app/api/__generated__/models/libraryAgent"; import { - getV2ListLibraryAgentsResponse, getV2ListFavoriteLibraryAgentsResponse, + getV2ListLibraryAgentsResponse, } from "@/app/api/__generated__/endpoints/library/library"; -import BackendAPI, { LibraryAgentID } from "@/lib/autogpt-server-api"; -import { cn } from "@/lib/utils"; -import { useToast } from "@/components/molecules/Toast/use-toast"; -import { Flag, useGetFlag } from "@/services/feature-flags/use-get-flag"; +import { LibraryAgent } from "@/app/api/__generated__/models/libraryAgent"; import Avatar, { AvatarFallback, AvatarImage, } from "@/components/atoms/Avatar/Avatar"; +import { Link } from "@/components/atoms/Link/Link"; +import { useToast } from "@/components/molecules/Toast/use-toast"; +import BackendAPI, { LibraryAgentID } from "@/lib/autogpt-server-api"; +import { cn } from "@/lib/utils"; +import { Flag, useGetFlag } from "@/services/feature-flags/use-get-flag"; interface LibraryAgentCardProps { agent: LibraryAgent; @@ -227,11 +230,11 @@ export default function LibraryAgentCard({
- {!image_url ? (
- )}
- + - {name.charAt(0)} + {name.charAt(0)}
- + -
+
-

- {name} -

+ -

+ {description} -

+
{/* Spacer */}
- - See runs - + See runs {can_access_graph && ( - - Open in builder - + Open in builder )}
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryAgentList/LibraryAgentList.tsx b/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryAgentList/LibraryAgentList.tsx index aa140cda82..e9d2e80295 100644 --- a/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryAgentList/LibraryAgentList.tsx +++ b/autogpt_platform/frontend/src/app/(platform)/library/components/LibraryAgentList/LibraryAgentList.tsx @@ -33,7 +33,7 @@ export function LibraryAgentList() { hasNextPage={hasNextPage} loader={} > -
+
{agents.map((agent) => ( ))}