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.
fix(frontend/marketplace): drop section title icons and unify heading sizes (#15041)
Ubbe4d536b79b26b
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.tsxindex c112641cc0..eb334dac57 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@@ -28,7 +28,6 @@ interface Props {sectionTitle?: string;eyebrow?: string;eyebrowIcon?: ReactNode;- titleIcon?: ReactNode;subtitle?: string;agents: StoreAgent[];hideAvatars?: boolean;@@ -39,7 +38,6 @@ export function AgentsSection({sectionTitle,eyebrow,eyebrowIcon,- titleIcon,subtitle,agents: allAgents,hideAvatars = false,@@ -51,12 +49,11 @@ export function AgentsSection({return (<div className="flex flex-col items-center justify-center"><div className="w-full max-w-[1360px]">- {sectionTitle && (eyebrow || titleIcon || subtitle) ? (+ {sectionTitle && (eyebrow || subtitle) ? (<SectionHeadereyebrow={eyebrow}eyebrowIcon={eyebrowIcon}title={sectionTitle}- titleIcon={titleIcon}subtitle={subtitle}/>) : sectionTitle ? (diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/ExpertsSection.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/ExpertsSection.tsxindex 0e47d5ae73..8ab8f0ad76 100644--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/ExpertsSection.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/ExpertsSection.tsx@@ -2,8 +2,6 @@import { Skeleton } from "@/components/atoms/Skeleton/Skeleton";import { Button } from "@/components/atoms/Button/Button";-import { Icon } from "@/components/atoms/Icon/Icon";-import { UserAiIcon } from "@hugeicons/core-free-icons";import { useTrackFunnelViewOnce } from "@/services/experts/use-track-funnel-view-once";import { SectionHeader } from "../SectionHeader";import { ExpertCard } from "./components/ExpertCard";@@ -52,7 +50,6 @@ export function ExpertsSection({ category }: Props) {return (<section id="experts" className="mb-20 scroll-mt-24"><SectionHeader- titleIcon={<Icon icon={UserAiIcon} size="3rem" aria-hidden />}title="Meet the AI Experts"subtitle="Hire a ready-made specialist — competent on day one, working for you in minutes."actions={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.tsxindex 30d1f2572c..d0e9edc434 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,7 +1,5 @@"use client";-import { Icon } from "@/components/atoms/Icon/Icon";import { ErrorCard } from "@/components/molecules/ErrorCard/ErrorCard";-import { UserAiIcon } from "@hugeicons/core-free-icons";import { useAuth } from "@/lib/auth/hooks/useAuth";import {Flag,@@ -100,9 +98,6 @@ export const MainMarkeplacePage = () => {<div className="mb-20" id={AGENTS_SECTION_ID}><AgentsSectionsectionTitle="All AI Workflows"- titleIcon={- <Icon icon={UserAiIcon} size="2.2rem" aria-hidden />- }subtitle="Ready-made automations from the community."agents={topAgents.agents}>diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SectionHeader.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SectionHeader.tsxindex 32bbbb3140..5b3e553462 100644--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SectionHeader.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SectionHeader.tsx@@ -9,7 +9,6 @@ interface Props {eyebrow?: string;eyebrowIcon?: ReactNode;title: string;- titleIcon?: ReactNode;titleId?: string;subtitle?: string;action?: { label: string; href: string };@@ -20,31 +19,23 @@ interface Props {actions?: ReactNode;/** A button above the text action, for the section's second door. */secondaryAction?: { label: string; href: string };- size?: "default" | "small";}export function SectionHeader({eyebrow,eyebrowIcon,title,- titleIcon,titleId,subtitle,action,filters,actions,secondaryAction,- size = "default",}: Props) {// A phone stacks the actions under the text rather than hiding them: for// the skills shelf this block is the only route to authoring your own.return (- <div- className={cn(- "flex flex-col items-start justify-between gap-4 sm:flex-row sm:items-end",- size === "small" ? "mb-4" : "mb-7",- )}- >+ <div className="mb-7 flex flex-col items-start justify-between gap-4 sm:flex-row sm:items-end"><div>{eyebrow ? (<div className="mb-2.5 flex items-center gap-2 text-xs font-medium uppercase tracking-[0.14em] text-violet-600">@@ -54,23 +45,12 @@ export function SectionHeader({) : null}<h2id={titleId}- className={cn(- "flex items-center gap-2.5 font-semibold tracking-[-0.02em] text-zinc-900",- size === "small" ? "text-xl" : "text-3xl",- )}+ className="text-3xl font-semibold tracking-[-0.02em] text-zinc-900">- {titleIcon}{title}</h2>{subtitle ? (- <p- className={cn(- "text-zinc-500",- size === "small" ? "mt-1 text-sm" : "mt-2 text-lg",- )}- >- {subtitle}- </p>+ <p className="mt-2 text-lg text-zinc-500">{subtitle}</p>) : null}</div>{action || secondaryAction || filters || actions ? (diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SkillsList/SkillsList.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SkillsList/SkillsList.tsxindex a7cce30bb9..0dd223d3ad 100644--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SkillsList/SkillsList.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SkillsList/SkillsList.tsx@@ -1,9 +1,7 @@"use client";import { Button } from "@/components/atoms/Button/Button";-import { Icon } from "@/components/atoms/Icon/Icon";import { Skeleton } from "@/components/atoms/Skeleton/Skeleton";-import { Book04Icon } from "@hugeicons/core-free-icons";import { useState } from "react";import { SectionHeader } from "../SectionHeader";import {@@ -54,8 +52,6 @@ export function SkillsList({ category }: Props) {className="mb-16 scroll-mt-24"><SectionHeader- size="small"- titleIcon={<Icon icon={Book04Icon} size="2.2rem" aria-hidden />}title="Skills"titleId={HEADING_ID}subtitle="Playbooks your experts pick up as they work."diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SkillsSection/SkillsSection.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SkillsSection/SkillsSection.tsxindex 4058ebc998..da7c2a2c24 100644--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SkillsSection/SkillsSection.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SkillsSection/SkillsSection.tsx@@ -42,7 +42,6 @@ export function SkillsSection({ category }: Props) {className="mb-20 scroll-mt-24"><SectionHeader- titleIcon={<Icon icon={BookOpen01Icon} size={30} aria-hidden />}title="Skills"titleId={HEADING_ID}subtitle="Playbooks your experts follow — from brand voice to cold outreach. Teach them your way of working."diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/WorkflowsShelf/WorkflowsShelf.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/WorkflowsShelf/WorkflowsShelf.tsxindex 1a0e756c56..612ab37181 100644--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/WorkflowsShelf/WorkflowsShelf.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/WorkflowsShelf/WorkflowsShelf.tsx@@ -2,9 +2,7 @@import { StoreAgent } from "@/app/api/__generated__/models/storeAgent";import { Button } from "@/components/atoms/Button/Button";-import { Icon } from "@/components/atoms/Icon/Icon";import { PublishAgentModal } from "@/components/contextual/PublishAgentModal/PublishAgentModal";-import { GitCompareArrowsIcon } from "@hugeicons/core-free-icons";import { useState } from "react";import { SectionHeader } from "../SectionHeader";import { SHELF_GRID, SHELF_PREVIEW_SIZE } from "../Shelf/helpers";@@ -36,10 +34,6 @@ export function WorkflowsShelf({ id, agents, featuredAgents, total }: Props) {className="mb-16 scroll-mt-24"><SectionHeader- size="small"- titleIcon={- <Icon icon={GitCompareArrowsIcon} size="2.2rem" aria-hidden />- }title="Workflows"titleId={HEADING_ID}subtitle="Automations your experts can run — or install one yourself."diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/search/components/MainSearchResultPage/MainSearchResultPage.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/search/components/MainSearchResultPage/MainSearchResultPage.tsxindex ab6889230f..8de09be93c 100644--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/search/components/MainSearchResultPage/MainSearchResultPage.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/search/components/MainSearchResultPage/MainSearchResultPage.tsx@@ -10,8 +10,6 @@ import { SearchBar } from "../../../components/SearchBar/SearchBar";import { SectionHeader } from "../../../components/SectionHeader";import { SkillCard } from "../../../components/SkillsSection/components/SkillCard";import { ExpertCard } from "../../../components/ExpertsSection/components/ExpertCard";-import { UserAiIcon } from "@hugeicons/core-free-icons";-import { BookOpen01Icon } from "@hugeicons/core-free-icons";import { useMainSearchResultPage } from "./useMainSearchResultPage";import { ArrowLeft02Icon } from "@hugeicons/core-free-icons";import { Icon } from "@/components/atoms/Icon/Icon";@@ -121,7 +119,6 @@ export const MainSearchResultPage = ({{showExperts && expertsCount > 0 ? (<section aria-labelledby="search-experts-heading"><SectionHeader- titleIcon={<Icon icon={UserAiIcon} size={30} aria-hidden />}title="Experts"titleId="search-experts-heading"/>@@ -142,9 +139,6 @@ export const MainSearchResultPage = ({{showSkills && skillsCount > 0 ? (<section aria-labelledby="search-skills-heading"><SectionHeader- titleIcon={- <Icon icon={BookOpen01Icon} size={30} aria-hidden />- }title="Skills"titleId="search-skills-heading"/>