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.

feat(frontend/marketplace): put experts first when hire-experts is on (#14765)

Ubbedf7001c45281
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/__tests__/category-filter.test.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/__tests__/category-filter.test.tsx
index 87ca2ea627..d3e97035b6 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/__tests__/category-filter.test.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/__tests__/category-filter.test.tsx
@@ -144,7 +144,7 @@ describe("Marketplace category filter", () => {
expect(await findCategoryChip("Sales")).toBeDefined();
// The legacy free-text options are gone.
const chips = within(
- await screen.findByRole("group", { name: "Browse by category" }),
+ await screen.findByRole("group", { name: "Browse experts by category" }),
);
expect(chips.queryByRole("button", { name: "Productivity" })).toBeNull();
expect(chips.queryByRole("button", { name: /Writing/ })).toBeNull();
@@ -154,7 +154,7 @@ describe("Marketplace category filter", () => {
/** The hero has its own chip row with overlapping labels, so scope to ours. */
async function findCategoryChip(name: string) {
const group = await screen.findByRole("group", {
- name: "Browse by category",
+ name: "Browse experts by category",
});
return within(group).findByRole("button", { name });
}
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/__tests__/expert-centric-layout.test.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/__tests__/expert-centric-layout.test.tsx
new file mode 100644
index 0000000000..bfe1643ed6
--- /dev/null
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/__tests__/expert-centric-layout.test.tsx
@@ -0,0 +1,354 @@
+import {
+ getListExpertTemplatesMockHandler,
+ getListExpertsMockHandler,
+} from "@/app/api/__generated__/endpoints/experts/experts.msw";
+import { getGetV1ListCredentialsMockHandler200 } from "@/app/api/__generated__/endpoints/integrations/integrations.msw";
+import { getListCopilotSkillsMockHandler200 } from "@/app/api/__generated__/endpoints/skills/skills.msw";
+import {
+ getGetV2GetMarketplaceSkillMockHandler200,
+ getGetV2ListMarketplaceSkillsMockHandler200,
+ getGetV2ListStoreAgentsMockHandler,
+ getGetV2ListStoreAgentsResponseMock,
+ getGetV2ListStoreCategoriesMockHandler,
+ getGetV2ListStoreCreatorsMockHandler,
+} from "@/app/api/__generated__/endpoints/store/store.msw";
+import type { MarketplaceSkill } from "@/app/api/__generated__/models/marketplaceSkill";
+import type { MarketplaceSkillDetails } from "@/app/api/__generated__/models/marketplaceSkillDetails";
+import { server } from "@/mocks/mock-server";
+import { HttpResponse, http } from "msw";
+import {
+ configure,
+ render,
+ screen,
+ waitFor,
+ within,
+} from "@/tests/integrations/test-utils";
+import userEvent from "@testing-library/user-event";
+import { beforeEach, describe, expect, test, vi } from "vitest";
+
+import { MainMarkeplacePage } from "../components/MainMarketplacePage/MainMarketplacePage";
+
+configure({ asyncUtilTimeout: 10000 });
+
+const mockUseAuth = vi.hoisted(() => vi.fn());
+
+vi.mock("next/navigation", () => ({
+ useRouter: () => ({
+ back: vi.fn(),
+ forward: vi.fn(),
+ prefetch: vi.fn(),
+ push: vi.fn(),
+ refresh: vi.fn(),
+ replace: vi.fn(),
+ }),
+ usePathname: () => "/marketplace",
+ useSearchParams: () => new URLSearchParams(),
+ useParams: () => ({}),
+}));
+
+vi.mock("@/lib/auth/hooks/useAuth", () => ({ useAuth: mockUseAuth }));
+
+vi.mock("@/services/feature-flags/use-get-flag", async (importOriginal) => {
+ const actual =
+ await importOriginal<
+ typeof import("@/services/feature-flags/use-get-flag")
+ >();
+ return {
+ ...actual,
+ useGetFlag: (flag: string) => {
+ if (flag === "skills-hub" || flag === "hire-experts") return true;
+ return actual.useGetFlag(flag as never);
+ },
+ useFlagStatus: (flag: string) => {
+ if (flag === "skills-hub") return { enabled: true, ready: true };
+ return actual.useFlagStatus(flag as never);
+ },
+ };
+});
+
+const outreach: MarketplaceSkill = {
+ slug: "outreach-playbook",
+ name: "outreach-playbook",
+ title: "Outreach playbook",
+ description: "Run cold outreach that gets replies.",
+ categories: ["sales"],
+ required_providers: [],
+ install_count: 3,
+ creator: null,
+ creator_avatar: null,
+};
+
+const outreachDetails: MarketplaceSkillDetails = {
+ ...outreach,
+ skill_listing_version_id: "version-1",
+ body: "# Outreach playbook\n\nFour sentences, no more.",
+ triggers: [],
+ updated_at: new Date("2026-09-07T00:00:00Z"),
+};
+
+const baseAgent = getGetV2ListStoreAgentsResponseMock().agents[0];
+// Ten so the shelf has more than the eight-tile preview to hold back.
+const agents = Array.from({ length: 10 }, (_, i) => ({
+ ...baseAgent,
+ slug: `agent-${i}`,
+ agent_graph_id: `graph-${i}`,
+ agent_name: `Workflow ${i}`,
+ creator: "AutoGPT",
+}));
+
+const agentsResponse = getGetV2ListStoreAgentsResponseMock({
+ agents,
+ pagination: {
+ total_items: agents.length,
+ total_pages: 1,
+ current_page: 1,
+ page_size: agents.length,
+ },
+});
+
+describe("Marketplace with hire-experts on", () => {
+ beforeEach(() => {
+ mockUseAuth.mockReturnValue({ user: { id: "user-1" }, isLoggedIn: true });
+ server.use(
+ getGetV2ListStoreAgentsMockHandler(agentsResponse),
+ getGetV2ListStoreCreatorsMockHandler(),
+ getListExpertTemplatesMockHandler([]),
+ getListExpertsMockHandler([]),
+ getListCopilotSkillsMockHandler200([]),
+ getGetV1ListCredentialsMockHandler200([]),
+ getGetV2ListMarketplaceSkillsMockHandler200({
+ skills: [outreach],
+ pagination: {
+ total_items: 1,
+ total_pages: 1,
+ current_page: 1,
+ page_size: 4,
+ },
+ }),
+ getGetV2GetMarketplaceSkillMockHandler200(outreachDetails),
+ );
+ });
+
+ test("lists skills as tiles that do not link to a skill page", async () => {
+ render(<MainMarkeplacePage />);
+
+ const tile = await screen.findByTestId("skill-tile");
+ expect(within(tile).getByText("Outreach playbook")).toBeDefined();
+ expect(tile.tagName).toBe("BUTTON");
+ expect(screen.queryByTestId("skill-card")).toBeNull();
+ });
+
+ test("a skill tile opens the instructions in a dialog", async () => {
+ render(<MainMarkeplacePage />);
+
+ await userEvent.click(await screen.findByTestId("skill-tile"));
+
+ const dialog = await screen.findByTestId("skill-dialog");
+ expect(
+ await within(dialog).findByText("Four sentences, no more."),
+ ).toBeDefined();
+ });
+
+ test("shows eight workflow tiles below skills, without the full grid", async () => {
+ render(<MainMarkeplacePage />);
+
+ const skills = await screen.findByRole("heading", { name: "Skills" });
+ const workflows = await screen.findByRole("heading", {
+ name: "Workflows",
+ });
+ // Node.DOCUMENT_POSITION_FOLLOWING === 4: the workflows heading comes after.
+ expect(skills.compareDocumentPosition(workflows) & 4).toBe(4);
+ expect(screen.getAllByTestId("workflow-tile")).toHaveLength(8);
+ expect(screen.queryByText("All AI Workflows")).toBeNull();
+ expect(screen.queryByTestId("store-card")).toBeNull();
+ });
+
+ test("Load all asks the skills endpoint for the whole catalogue", async () => {
+ const catalogue: MarketplaceSkill[] = Array.from(
+ { length: 12 },
+ (_, i) => ({
+ ...outreach,
+ slug: `skill-${i}`,
+ name: `skill-${i}`,
+ title: `Skill ${i}`,
+ }),
+ );
+ server.use(
+ http.get("/api/proxy/api/store/skills", ({ request }) => {
+ const pageSize = Number(
+ new URL(request.url).searchParams.get("page_size") ?? 8,
+ );
+ return HttpResponse.json({
+ skills: catalogue.slice(0, pageSize),
+ pagination: {
+ total_items: catalogue.length,
+ total_pages: 1,
+ current_page: 1,
+ page_size: pageSize,
+ },
+ });
+ }),
+ );
+
+ render(<MainMarkeplacePage />);
+
+ expect(await screen.findAllByTestId("skill-tile")).toHaveLength(8);
+ await userEvent.click(
+ await screen.findByRole("button", { name: "Load all 12 skills" }),
+ );
+
+ await waitFor(() =>
+ expect(screen.getAllByTestId("skill-tile")).toHaveLength(12),
+ );
+ });
+
+ test("a topic chip narrows the shelf to that category", async () => {
+ const pipeline: MarketplaceSkill = {
+ ...outreach,
+ slug: "pipeline-review",
+ name: "pipeline-review",
+ title: "Pipeline review",
+ categories: ["sales"],
+ };
+ server.use(
+ getGetV2ListStoreCategoriesMockHandler([
+ { value: "sales", label: "Sales", description: "Deals and outreach" },
+ { value: "content", label: "Content", description: "Writing" },
+ ]),
+ http.get("/api/proxy/api/store/skills", ({ request }) => {
+ const category = new URL(request.url).searchParams.get("category");
+ const skills = category === "sales" ? [pipeline] : [outreach];
+ return HttpResponse.json({
+ skills,
+ pagination: {
+ total_items: skills.length,
+ total_pages: 1,
+ current_page: 1,
+ page_size: 8,
+ },
+ });
+ }),
+ );
+
+ render(<MainMarkeplacePage />);
+
+ const chips = await screen.findByRole("group", {
+ name: "Filter skills by topic",
+ });
+ await userEvent.click(within(chips).getByRole("button", { name: "Sales" }));
+
+ expect(await screen.findByText("Pipeline review")).toBeDefined();
+ await waitFor(() =>
+ expect(screen.queryByText("Outreach playbook")).toBeNull(),
+ );
+ });
+
+ test("Load all shows the rest as tiles, not cards", async () => {
+ render(<MainMarkeplacePage />);
+
+ await userEvent.click(
+ await screen.findByRole("button", { name: "Load all 10 workflows" }),
+ );
+
+ expect(screen.getAllByTestId("workflow-tile")).toHaveLength(10);
+ expect(screen.queryByTestId("store-card")).toBeNull();
+ expect(screen.getByRole("button", { name: "Show fewer" })).toBeDefined();
+ });
+
+ test("keeps workflows with the same slug from different creators", async () => {
+ const sharedSlugAgents = [
+ {
+ ...baseAgent,
+ agent_graph_id: "graph-first",
+ slug: "shared-slug",
+ creator: "First creator",
+ agent_name: "First workflow",
+ },
+ {
+ ...baseAgent,
+ agent_graph_id: "graph-second",
+ slug: "shared-slug",
+ creator: "Second creator",
+ agent_name: "Second workflow",
+ },
+ ];
+ server.use(
+ getGetV2ListStoreAgentsMockHandler({
+ agents: sharedSlugAgents,
+ pagination: {
+ total_items: sharedSlugAgents.length,
+ total_pages: 1,
+ current_page: 1,
+ page_size: sharedSlugAgents.length,
+ },
+ }),
+ );
+
+ render(<MainMarkeplacePage />);
+
+ expect(await screen.findByText("First workflow")).toBeDefined();
+ expect(screen.getByText("Second workflow")).toBeDefined();
+ });
+
+ test("does not promise all workflows when the response is capped", async () => {
+ server.use(
+ getGetV2ListStoreAgentsMockHandler({
+ ...agentsResponse,
+ pagination: { ...agentsResponse.pagination, total_items: 1_001 },
+ }),
+ );
+
+ render(<MainMarkeplacePage />);
+
+ expect(
+ await screen.findByRole("button", { name: "Load 10 workflows" }),
+ ).toBeDefined();
+ expect(
+ screen.queryByRole("button", { name: "Load all 10 workflows" }),
+ ).toBeNull();
+ });
+
+ test("shows no runs when an older response omits the count", async () => {
+ server.use(
+ getGetV2ListStoreAgentsMockHandler({
+ agents: [
+ {
+ ...baseAgent,
+ agent_graph_id: "graph-without-runs",
+ runs: null as unknown as number,
+ },
+ ],
+ pagination: {
+ total_items: 1,
+ total_pages: 1,
+ current_page: 1,
+ page_size: 1,
+ },
+ }),
+ );
+
+ render(<MainMarkeplacePage />);
+
+ expect(await screen.findByText("No runs")).toBeDefined();
+ });
+
+ test("keeps the publish entry point when there are no workflows", async () => {
+ server.use(
+ getGetV2ListStoreAgentsMockHandler({
+ agents: [],
+ pagination: {
+ total_items: 0,
+ total_pages: 0,
+ current_page: 1,
+ page_size: 10,
+ },
+ }),
+ );
+
+ render(<MainMarkeplacePage />);
+
+ expect(
+ await screen.findByRole("button", { name: "Become a Creator" }),
+ ).toBeDefined();
+ });
+});
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/__tests__/experts-category-filter.test.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/__tests__/experts-category-filter.test.tsx
index 0a78fbc067..22e7d784a6 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/__tests__/experts-category-filter.test.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/__tests__/experts-category-filter.test.tsx
@@ -127,7 +127,7 @@ describe("Marketplace category filter over experts", () => {
render(<MainMarkeplacePage />);
const chips = await screen.findByRole("group", {
- name: "Browse by category",
+ name: "Browse experts by category",
});
const shelf = await screen.findByRole("link", { name: /Maria/ });
@@ -214,7 +214,7 @@ describe("Marketplace category filter over experts", () => {
async function findCategoryChip(name: string) {
const group = await screen.findByRole("group", {
- name: "Browse by category",
+ name: "Browse experts by category",
});
return within(group).findByRole("button", { name });
}
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/__tests__/experts-section.test.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/__tests__/experts-section.test.tsx
index 6f2459dacf..59f03f045a 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/__tests__/experts-section.test.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/__tests__/experts-section.test.tsx
@@ -145,6 +145,7 @@ describe("Marketplace ExpertsSection", () => {
);
expect(screen.queryByText("Create an Expert")).toBeNull();
expect(screen.queryByRole("link", { name: "View your team" })).toBeNull();
+ expect(screen.queryByRole("link", { name: "Hire" })).toBeNull();
expect(rosterRequested).toBe(false);
});
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/__tests__/skills-section.test.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/__tests__/skills-section.test.tsx
index fc1124c98b..55538fffa1 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/__tests__/skills-section.test.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/__tests__/skills-section.test.tsx
@@ -427,7 +427,7 @@ describe("Marketplace SkillsSection", () => {
async function findCategoryChip(name: string) {
const group = await screen.findByRole("group", {
- name: "Browse by category",
+ name: "Browse experts by category",
});
return within(group).findByRole("button", { name });
}
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/AICatalogIcon.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/AICatalogIcon.tsx
deleted file mode 100644
index ab601e3ab0..0000000000
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/AICatalogIcon.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-interface Props {
- size?: number;
- className?: string;
-}
-
-export function AICatalogIcon({ size = 16, className }: Props) {
- return (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 100 100"
- width={size}
- height={size}
- fill="currentColor"
- aria-hidden="true"
- className={className}
- >
- <path d="M 65.568359 7.9355469 A 1.0001 1.0001 0 0 0 65.46875 7.9375 C 48.877152 8.8847902 31.452642 10.44448 14.96875 12.613281 A 1.0001 1.0001 0 0 0 14.167969 13.970703 C 14.231336 14.131353 14.653321 15.277058 14.824219 15.732422 L 14.234375 18.587891 C 12.580251 18.972179 10.951876 19.56455 9.4863281 20.353516 C 8.244277 21.02215 6.3894543 22.169502 5.0039062 23.841797 C 3.6183582 25.514092 2.7337107 27.892287 3.7792969 30.455078 C 4.7588134 32.857349 7.8624458 34.825426 12.064453 34.423828 C 13.624189 34.274628 15.351903 34.104591 17.007812 33.650391 C 17.366643 34.655225 17.320086 34.525899 17.734375 35.685547 C 16.664618 36.096687 15.623458 36.581251 14.607422 37.15625 C 10.551852 39.451155 8.389168 42.849382 9.0664062 46.121094 C 9.5852575 48.625416 12.610633 50.708368 17.564453 50.285156 A 1.0001 1.0001 0 0 0 17.566406 50.285156 C 19.354364 50.13164 20.942738 49.650386 22.519531 49.056641 C 23.029237 50.479588 23.485498 51.755331 24.009766 53.216797 C 21.974177 54.099413 19.694041 55.192324 17.84375 56.609375 C 15.916615 58.085277 14.369143 60.015952 14.458984 62.423828 C 14.506204 63.684328 15.186572 65.026263 16.570312 65.886719 C 17.954054 66.747174 19.959964 67.175484 22.787109 67.015625 C 25.136458 66.882872 27.388582 66.209029 28.541016 65.818359 C 29.299347 67.924133 30.083468 70.109721 30.802734 72.101562 C 30.079073 72.360275 29.373622 72.633111 28.712891 72.931641 C 25.139331 74.546232 22.516359 76.438304 21.4375 78.324219 C 20.905119 79.254686 20.640101 80.290334 20.765625 81.310547 C 20.891149 82.33076 21.447159 83.314989 22.380859 83.986328 C 23.644082 84.894892 25.52203 85.270442 27.853516 85.261719 C 29.975947 85.253799 32.478658 84.857146 35.136719 84.013672 C 35.554796 85.154493 36.127069 86.736727 36.472656 87.669922 C 36.989171 89.064674 37.416973 90.208843 37.740234 91.050781 C 38.063496 91.89272 38.232067 92.345392 38.40625 92.681641 A 1.0001 1.0001 0 0 0 39.583984 93.179688 C 45.463307 91.4002 85.98431 80.720471 92.529297 79 A 1.0001 1.0001 0 0 0 93.117188 77.490234 C 93.117188 77.490234 92.199231 76.021465 91.607422 74.882812 C 93.065717 74.491633 94.520452 74.105602 95.935547 73.757812 A 1.0001 1.0001 0 0 0 96.605469 72.373047 C 91.304158 60.721364 85.438349 47.864134 80.138672 36.214844 C 75.793162 26.66312 71.715618 17.555888 66.390625 8.4316406 A 1.0001 1.0001 0 0 0 65.568359 7.9355469 z M 64.947266 9.9804688 C 70.053222 18.810332 74.056388 27.674868 78.318359 37.042969 C 83.461504 48.348183 89.121806 60.756631 94.296875 72.128906 C 87.662857 73.806721 80.620227 75.94833 74.121094 77.544922 A 1.0001 1.0001 0 0 0 74.121094 77.546875 C 63.834274 80.075052 52.974528 82.781482 42.787109 85.943359 C 42.424331 84.989777 41.109631 81.42381 39.912109 78.177734 L 44.066406 75.824219 L 44.044922 75.820312 C 44.203411 75.746531 44.360357 75.669967 44.5 75.568359 C 45.216247 75.047209 45.529297 74.195808 45.529297 73.439453 C 45.529297 72.371443 44.925499 71.466235 44.158203 70.949219 C 43.390908 70.432203 42.472054 70.205878 41.554688 70.189453 C 40.027203 70.162213 38.597943 70.451025 37.142578 70.662109 C 35.938597 67.383597 34.563926 63.641469 33.1875 59.890625 L 37.15625 57.644531 C 37.337969 57.578119 37.509798 57.494848 37.669922 57.390625 C 38.287786 56.988462 38.662161 56.315068 38.740234 55.636719 L 38.740234 55.634766 C 38.840194 54.768563 38.440609 53.865591 37.742188 53.275391 C 37.043247 52.684752 36.095838 52.306297 34.871094 52.048828 C 33.344294 51.727783 31.776992 51.710838 30.222656 51.800781 C 29.124212 48.805293 28.0406 45.852471 26.962891 42.914062 L 31.115234 40.5625 C 31.15121 40.54465 31.185247 40.522033 31.220703 40.501953 L 31.292969 40.460938 L 31.287109 40.458984 C 31.581471 40.27852 31.853685 40.031135 32.042969 39.714844 C 32.434208 39.060843 32.507087 38.270085 32.291016 37.658203 C 32.074945 37.046321 31.676594 36.622903 31.292969 36.275391 C 30.052351 35.150667 27.528909 34.21758 23.84375 34.414062 C 22.772723 31.495817 21.87004 29.039591 20.962891 26.572266 L 24.765625 24.724609 C 25.272022 24.561816 25.749943 24.270283 26.056641 23.730469 C 26.566831 22.834921 26.370845 21.765037 25.923828 21.083984 C 25.476817 20.402979 24.861374 19.93104 24.320312 19.548828 C 22.641379 18.362397 20.317345 17.979776 17.837891 18.091797 C 17.220704 16.424258 16.777717 15.232471 16.484375 14.457031 C 32.338252 12.406121 49.002517 10.904499 64.947266 9.9804688 z M 18.373047 20.072266 C 20.384449 20.050954 22.141226 20.457465 23.166016 21.181641 A 1.0001 1.0001 0 0 0 23.167969 21.181641 C 23.624908 21.504428 24.06197 21.89024 24.251953 22.179688 C 24.441936 22.469134 24.466165 22.480782 24.318359 22.740234 A 1.0001 1.0001 0 0 0 24.318359 22.742188 C 24.331329 22.719358 24.182199 22.863172 23.830078 22.894531 C 23.477958 22.925891 23.023923 22.830701 22.779297 22.693359 C 19.363542 20.774969 14.62001 21.51235 11.154297 23.623047 C 10.195494 24.207121 9.1099224 24.95865 8.265625 25.814453 C 7.8434763 26.242355 7.4744967 26.69408 7.2285156 27.228516 C 6.9825345 27.762951 6.8696808 28.449438 7.1289062 29.085938 A 1.0001 1.0001 0 0 0 7.1308594 29.085938 C 7.5427591 30.097037 8.5023838 30.631524 9.4375 30.861328 C 10.372616 31.091132 11.380248 31.091574 12.345703 31.013672 C 13.311159 30.935772 14.229949 30.769695 14.941406 30.611328 C 15.297135 30.532148 15.601161 30.455349 15.835938 30.388672 C 15.838211 30.388026 15.839536 30.387363 15.841797 30.386719 C 16.011506 30.862234 16.13149 31.196429 16.333984 31.763672 C 14.948542 32.122029 13.386072 32.288863 11.873047 32.433594 C 8.3950542 32.765996 6.1673428 31.016901 5.6308594 29.701172 C 4.8784455 27.856963 5.4412668 26.448846 6.5429688 25.119141 C 7.6446707 23.789435 9.3165979 22.7176 10.435547 22.115234 C 12.533166 20.985999 15.125629 20.274242 17.496094 20.107422 C 17.792402 20.086569 18.085704 20.07531 18.373047 20.072266 z M 63.017578 22 A 1.0001 1.0001 0 0 0 62.855469 22.009766 C 53.701717 23.350678 43.407023 24.651296 33.107422 28.050781 A 1.0001 1.0001 0 0 0 32.501953 29.394531 L 38.080078 42.394531 A 1.0001 1.0001 0 0 0 39.236328 42.970703 C 50.451942 40.23218 61.500935 38.713931 69.298828 36.277344 A 1.0001 1.0001 0 0 0 69.898438 34.884766 L 63.898438 22.5625 A 1.0001 1.0001 0 0 0 63.017578 22 z M 62.425781 24.101562 L 67.554688 34.636719 C 60.279395 36.763512 50.155931 38.326305 39.595703 40.851562 L 34.789062 29.650391 C 44.257357 26.657823 53.748284 25.364812 62.425781 24.101562 z M 13.765625 24.572266 C 13.76579 24.57273 14.82389 27.537197 15.166016 28.496094 C 14.984891 28.545576 14.777515 28.600122 14.507812 28.660156 C 13.867458 28.802696 13.024841 28.951809 12.185547 29.019531 C 11.346252 29.087251 10.506212 29.063011 9.9160156 28.917969 C 9.3258193 28.772929 9.0840221 28.581432 8.9824219 28.332031 C 8.9726519 28.308031 8.9490279 28.274751 9.0449219 28.066406 C 9.1408159 27.858061 9.3686018 27.543974 9.6894531 27.21875 C 10.331156 26.568303 11.322116 25.863957 12.195312 25.332031 C 12.685986 25.0332 13.21854 24.789188 13.765625 24.572266 z M 25.074219 36.333984 C 27.731814 36.405073 29.365403 37.228535 29.949219 37.757812 C 30.213593 37.997301 30.366118 38.216101 30.404297 38.324219 C 30.442477 38.432336 30.473942 38.440501 30.326172 38.6875 C 30.272572 38.77707 30.283702 38.757904 30.21875 38.777344 C 30.1538 38.796784 29.993674 38.810294 29.775391 38.777344 C 29.338824 38.711454 28.777888 38.479541 28.220703 38.332031 A 1.0001 1.0001 0 0 0 28.195312 38.326172 C 24.772426 37.512413 21.844356 37.983225 18.851562 39.185547 C 17.540605 39.712769 16.010147 40.477147 14.771484 41.408203 C 14.152153 41.873731 13.600928 42.377854 13.191406 42.970703 C 12.781885 43.563552 12.499628 44.300853 12.628906 45.085938 C 12.709096 45.573211 13.021918 45.932676 13.326172 46.154297 C 13.630425 46.375918 13.956182 46.509527 14.308594 46.615234 C 15.013417 46.82665 15.84181 46.914727 16.744141 46.916016 C 18.273011 46.918218 19.990079 46.673725 21.4375 46.035156 C 21.572794 46.413173 21.708683 46.791102 21.845703 47.173828 C 20.350323 47.737638 18.942862 48.158074 17.394531 48.291016 C 13.054351 48.661804 11.254585 46.832475 11.023438 45.716797 C 10.576676 43.558509 11.995366 40.931579 15.591797 38.896484 C 17.661493 37.725194 19.758495 36.933163 22.076172 36.552734 C 23.188604 36.370618 24.188354 36.310288 25.074219 36.333984 z M 19.642578 41.023438 C 19.987611 41.988411 20.399474 43.133927 20.761719 44.146484 C 19.681384 44.635515 18.083897 44.917926 16.746094 44.916016 C 15.985175 44.914916 15.300553 44.824526 14.882812 44.699219 C 14.760146 44.662429 14.726945 44.637849 14.660156 44.605469 C 14.669156 44.478653 14.665555 44.354058 14.835938 44.107422 C 15.059916 43.783177 15.463987 43.388207 15.972656 43.005859 C 16.989994 42.241165 18.414614 41.516794 19.597656 41.041016 C 19.612971 41.034863 19.627286 41.029538 19.642578 41.023438 z M 73.048828 46.138672 A 1.0001 1.0001 0 0 0 72.878906 46.158203 C 72.878906 46.158203 58.691635 48.875193 44.693359 53.384766 A 1.0001 1.0001 0 1 0 45.306641 55.287109 C 59.152365 50.826682 73.255859 48.123047 73.255859 48.123047 A 1.0001 1.0001 0 0 0 73.048828 46.138672 z M 30.886719 53.679688 C 32.086626 53.651383 33.287759 53.759582 34.458984 54.005859 C 35.48424 54.221391 36.140112 54.539873 36.451172 54.802734 C 36.762232 55.065596 36.779182 55.17204 36.751953 55.40625 A 1.0001 1.0001 0 0 0 36.751953 55.408203 C 36.732613 55.577297 36.690713 55.642833 36.580078 55.714844 C 36.469444 55.786854 36.222696 55.878402 35.726562 55.796875 C 34.92203 55.664648 33.727934 55.323757 32.044922 55.345703 C 30.36191 55.367653 28.197253 55.754685 25.28125 56.962891 C 23.976224 57.503216 22.34356 58.225812 21.001953 59.011719 C 20.3309 59.404818 19.732517 59.806869 19.255859 60.265625 C 18.779202 60.724381 18.298993 61.310917 18.412109 62.152344 C 18.484089 62.685455 18.863889 63.024141 19.164062 63.195312 C 19.464236 63.366484 19.761594 63.448641 20.087891 63.513672 C 20.740485 63.643734 21.516721 63.672738 22.388672 63.628906 C 23.932771 63.55129 25.742384 63.216687 27.375 62.583984 C 27.540149 63.043153 27.696943 63.476783 27.861328 63.933594 C 26.783428 64.290783 24.701668 64.904946 22.673828 65.019531 C 20.106973 65.164672 18.512712 64.738294 17.626953 64.1875 C 16.741194 63.636706 16.481812 63.009156 16.457031 62.347656 C 16.401761 60.843274 17.384877 59.480582 19.060547 58.197266 C 20.736912 56.913417 23.013903 55.816745 25.056641 54.939453 C 26.892051 54.151927 28.886873 53.726862 30.886719 53.679688 z M 76.179688 54.392578 A 1.0001 1.0001 0 0 0 76.009766 54.40625 C 66.217879 55.965057 56.641855 58.525344 47.376953 62.054688 A 1.0001 1.0001 0 1 0 48.087891 63.923828 C 57.224989 60.443171 66.668105 57.918052 76.324219 56.380859 A 1.0001 1.0001 0 0 0 76.179688 54.392578 z M 26.021484 58.822266 C 26.253011 59.466877 26.467939 60.061597 26.699219 60.705078 C 25.320008 61.241969 23.643031 61.564653 22.287109 61.632812 C 21.68003 61.663333 21.231649 61.617509 20.837891 61.568359 C 21.128509 61.318851 21.502276 61.03671 22.011719 60.738281 C 23.192929 60.046334 24.760747 59.344882 26.021484 58.822266 z M 67.673828 64.708984 A 1.0001 1.0001 0 0 0 67.503906 64.728516 C 61.122108 65.967211 56.208647 67.380217 50.111328 69.728516 A 1.0001 1.0001 0 1 0 50.830078 71.59375 C 56.842759 69.278049 61.592564 67.914664 67.884766 66.693359 A 1.0001 1.0001 0 0 0 67.673828 64.708984 z M 41.519531 72.189453 C 42.110164 72.200033 42.687359 72.370438 43.039062 72.607422 C 43.390768 72.844406 43.529297 73.050464 43.529297 73.439453 C 43.529297 73.727098 43.474267 73.840573 43.322266 73.951172 C 43.170263 74.061771 42.771637 74.212292 41.927734 74.095703 C 38.421135 73.611199 34.372714 74.717622 31.164062 76.023438 C 29.559738 76.676344 28.174554 77.38484 27.171875 78.021484 C 26.670536 78.339807 26.266424 78.632443 25.947266 78.941406 C 25.787687 79.095888 25.646633 79.248397 25.519531 79.474609 C 25.392429 79.700821 25.236923 80.095842 25.417969 80.556641 C 25.656176 81.162641 26.177912 81.384807 26.580078 81.496094 C 26.982244 81.607381 27.389895 81.636196 27.837891 81.640625 C 28.733882 81.649525 29.779861 81.533393 30.806641 81.380859 C 32.145985 81.181893 33.219761 80.960323 33.962891 80.798828 C 34.135383 81.272328 34.286474 81.683665 34.451172 82.134766 C 32.005952 82.901241 29.717112 83.254717 27.845703 83.261719 C 25.766939 83.269519 24.187605 82.822717 23.548828 82.363281 A 1.0001 1.0001 0 0 0 23.546875 82.363281 C 23.02853 81.990518 22.812476 81.574193 22.75 81.066406 C 22.68752 80.55862 22.81821 79.939892 23.173828 79.318359 C 23.773969 78.269274 26.197716 76.263768 29.535156 74.755859 C 32.872597 73.24795 37.132643 72.11121 41.519531 72.189453 z M 32.775391 77.546875 C 32.967487 78.076481 33.085993 78.393746 33.271484 78.904297 C 32.53671 79.058096 31.568515 79.245641 30.513672 79.402344 C 29.774463 79.512158 29.117865 79.552699 28.496094 79.583984 C 29.354581 79.058883 30.514379 78.446215 31.917969 77.875 C 32.195044 77.762239 32.485463 77.654376 32.775391 77.546875 z" />
- </svg>
- );
-}
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CategoryChip/CategoryChip.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CategoryChip/CategoryChip.tsx
new file mode 100644
index 0000000000..68b2eeb31e
--- /dev/null
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CategoryChip/CategoryChip.tsx
@@ -0,0 +1,95 @@
+"use client";
+
+import { Button } from "@/components/atoms/Button/Button";
+import { Icon } from "@/components/atoms/Icon/Icon";
+import { cn } from "@/lib/utils";
+import type { IconSvgElement } from "@hugeicons/react";
+import {
+ getCategoryAccent,
+ type ExpertAccent,
+} from "../ExpertsSection/helpers";
+
+export type ChipSize = "small" | "medium" | "default";
+
+/** The marketplace's chip: a filter wears it on a button, a label on a span,
+ * and the two read as the same object because they are the same classes. */
+export const CHIP_SHAPE =
+ "inline-flex items-center rounded-full border border-[#e9e9e9] bg-transparent font-medium text-black";
+export const CHIP_SIZE: Record<ChipSize, string> = {
+ small: "h-7 gap-1 px-2 text-xs",
+ medium: "h-8 gap-1 px-2 text-xs",
+ default: "h-9 gap-1.5 px-3.5 text-sm",
+};
+
+const CHIP_ICON_SIZE: Record<ChipSize, number> = {
+ small: 12,
+ medium: 13,
+ default: 15,
+};
+
+/** The zinc fallback `getCategoryAccent` hands back for "All", research and
+ * development. Its glossy chip is too faint to read as selected next to a
+ * white row, so those chips take a plain fill instead. */
+const NEUTRAL_ACCENT = getCategoryAccent(undefined).accent;
+const NEUTRAL_SELECTED = "border-transparent bg-zinc-100 text-zinc-900";
+
+interface Props {
+ label: string;
+ title?: string;
+ /** The glyph and accent this category wears everywhere else. Left out for
+ * chips that are not categories, e.g. the hero's search terms. */
+ icon?: IconSvgElement | null;
+ accent?: ExpertAccent;
+ /** "small" tucks a row into a section header; "default" is a page's own
+ * filter. */
+ size?: ChipSize;
+ isSelected: boolean;
+ onClick: () => void;
+}
+
+export function CategoryChip({
+ label,
+ title,
+ icon,
+ accent = NEUTRAL_ACCENT,
+ size = "default",
+ isSelected,
+ onClick,
+}: Props) {
+ return (
+ // Outline, so a row of filters never reads as a row of actions. The
+ // selected one takes the accent's glossy chip, whose gradient sits over
+ // the variant's hover wash rather than being replaced by it.
+ <Button
+ variant="outline"
+ size={size === "default" ? "small" : "xs"}
+ title={title}
+ aria-pressed={isSelected}
+ onClick={onClick}
+ unmask={false}
+ leftIcon={
+ icon ? (
+ <Icon
+ icon={icon}
+ size={CHIP_ICON_SIZE[size]}
+ className={isSelected ? undefined : accent.icon}
+ aria-hidden
+ />
+ ) : undefined
+ }
+ className={cn(
+ // The variant's #a6a6a6 is for a lone action; a row of chips reads
+ // quieter with a lighter edge.
+ "min-w-0 hover:border-[#e9e9e9]",
+ CHIP_SHAPE,
+ CHIP_SIZE[size],
+ isSelected &&
+ (accent === NEUTRAL_ACCENT
+ ? NEUTRAL_SELECTED
+ : cn(accent.chip, "border-transparent")),
+ )}
+ >
+ {label}
+ </Button>
+ );
+}
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CategoryChip/CategoryTag.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CategoryChip/CategoryTag.tsx
new file mode 100644
index 0000000000..abcb2a45ce
--- /dev/null
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CategoryChip/CategoryTag.tsx
@@ -0,0 +1,36 @@
+import { Icon } from "@/components/atoms/Icon/Icon";
+import { cn } from "@/lib/utils";
+import { getCategoryAccent } from "../ExpertsSection/helpers";
+import { formatCategoryLabel } from "../SkillsSection/helpers";
+import { CHIP_SHAPE, CHIP_SIZE, type ChipSize } from "./CategoryChip";
+
+const TAG_ICON_SIZE: Record<ChipSize, number> = {
+ small: 12,
+ medium: 13,
+ default: 15,
+};
+
+interface Props {
+ category: string;
+ size?: ChipSize;
+ className?: string;
+}
+
+/** A category worn as a label rather than a filter: same chip, no click. */
+export function CategoryTag({ category, size = "small", className }: Props) {
+ const { accent, icon } = getCategoryAccent(category);
+
+ return (
+ <span className={cn(CHIP_SHAPE, CHIP_SIZE[size], "max-w-full", className)}>
+ {icon ? (
+ <Icon
+ icon={icon}
+ size={TAG_ICON_SIZE[size]}
+ className={cn("shrink-0", accent.icon)}
+ aria-hidden
+ />
+ ) : null}
+ <span className="truncate">{formatCategoryLabel(category)}</span>
+ </span>
+ );
+}
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CategoryFilter/CategoryFilter.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CategoryFilter/CategoryFilter.tsx
index 4b7655cf07..929cfc6976 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CategoryFilter/CategoryFilter.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/CategoryFilter/CategoryFilter.tsx
@@ -1,7 +1,8 @@
"use client";
import { useStoreCategories } from "@/hooks/useStoreCategories";
-import { cn } from "@/lib/utils";
+import { CategoryChip } from "../CategoryChip/CategoryChip";
+import { getCategoryAccent } from "../ExpertsSection/helpers";
interface Props {
selected: string | null;
@@ -23,55 +24,34 @@ export function CategoryFilter({ selected, onSelect }: Props) {
<div
className="mb-8 flex flex-wrap items-center gap-x-4 gap-y-2.5"
role="group"
- aria-label="Browse by category"
+ aria-label="Browse experts by category"
>
<span className="text-sm font-medium text-zinc-500">
- Browse by category
+ Browse experts by category
</span>
{/* One flex item, so the whole list drops below the label before it
breaks within itself. */}
- <div className="flex flex-wrap gap-2.5">
+ <div className="flex flex-wrap gap-2">
<CategoryChip
label="All"
isSelected={selected === null}
onClick={() => onSelect(null)}
/>
- {categories.map((category) => (
- <CategoryChip
- key={category.value}
- label={category.label}
- title={category.description}
- isSelected={selected === category.value}
- onClick={() => handleClick(category.value)}
- />
- ))}
+ {categories.map((category) => {
+ const { accent, icon } = getCategoryAccent(category.value);
+ return (
+ <CategoryChip
+ key={category.value}
+ label={category.label}
+ title={category.description}
+ icon={icon}
+ accent={accent}
+ isSelected={selected === category.value}
+ onClick={() => handleClick(category.value)}
+ />
+ );
+ })}
</div>
</div>
);
}
-
-interface ChipProps {
- label: string;
- title?: string;
- isSelected: boolean;
- onClick: () => void;
-}
-
-function CategoryChip({ label, title, isSelected, onClick }: ChipProps) {
- return (
- <button
- type="button"
- title={title}
- aria-pressed={isSelected}
- onClick={onClick}
- className={cn(
- "inline-flex h-9 items-center rounded-full border px-4 text-sm font-medium transition-all duration-200",
- isSelected
- ? "border-zinc-900 bg-zinc-900 text-white shadow-[0_1px_2px_rgba(16,24,40,0.1)]"
- : "border-zinc-200 bg-white text-zinc-600 shadow-[0_1px_2px_rgba(16,24,40,0.04)] hover:-translate-y-px hover:border-zinc-300 hover:text-zinc-900",
- )}
- >
- {label}
- </button>
- );
-}
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.tsx
index fdca5ba0da..de7762fc1b 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
@@ -1,8 +1,9 @@
"use client";
import { Skeleton } from "@/components/atoms/Skeleton/Skeleton";
-import { AITeamIcon } from "@/components/atoms/AITeamIcon/AITeamIcon";
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";
@@ -51,14 +52,25 @@ export function ExpertsSection({ category }: Props) {
return (
<section id="experts" className="mb-20 scroll-mt-24">
<SectionHeader
- titleIcon={<AITeamIcon size={30} />}
+ titleIcon={<Icon icon={UserAiIcon} size="2.2rem" aria-hidden />}
title="Meet the AI Experts"
subtitle="Hire a ready-made specialist — competent on day one, working for you in minutes."
- action={
- isLoggedIn ? { label: "View your team", href: "/team" } : undefined
- }
- secondaryAction={
- isLoggedIn ? { label: RAISE_LABEL, href: RAISE_HREF } : undefined
+ actions={
+ isLoggedIn ? (
+ <div className="flex items-center gap-2">
+ <Button
+ as="NextLink"
+ href="/team"
+ variant="secondary"
+ size="small"
+ >
+ View your team
+ </Button>
+ <Button as="NextLink" href={RAISE_HREF} size="small">
+ {RAISE_LABEL}
+ </Button>
+ </div>
+ ) : undefined
}
/>
{isLoading ? (
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/components/ExpertCard.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/components/ExpertCard.tsx
index b1221f5b37..1495eec283 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/components/ExpertCard.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/components/ExpertCard.tsx
@@ -1,103 +1,147 @@
import { ExpertTemplate } from "@/app/api/__generated__/models/expertTemplate";
+import { Icon } from "@/components/atoms/Icon/Icon";
+import {
+ Tooltip,
+ TooltipContent,
+ TooltipPortal,
+ TooltipTrigger,
+} from "@/components/atoms/Tooltip/BaseTooltip";
import { ExpertAvatar } from "@/components/molecules/ExpertAvatar/ExpertAvatar";
import { ExpertIdentityDetails } from "@/components/molecules/ExpertIdentityDetails/ExpertIdentityDetails";
import { ExpertTagline } from "@/components/molecules/ExpertIdentityDetails/components/ExpertTagline";
import { cn } from "@/lib/utils";
+import { getExpertRoleLabel } from "@/services/experts/expert-role-label";
+import { ArrowRight02Icon, Book04Icon } from "@hugeicons/core-free-icons";
import Link from "next/link";
-import { getExpertAccent } from "../helpers";
-import {
- ArrowRight02Icon,
- CheckmarkCircle02Icon,
- FlashIcon,
-} from "@hugeicons/core-free-icons";
-import { Icon } from "@/components/atoms/Icon/Icon";
+import { CHIP_SHAPE, CHIP_SIZE } from "../../CategoryChip/CategoryChip";
+import { CategoryTag } from "../../CategoryChip/CategoryTag";
+import { getCategoryAccent } from "../helpers";
+import { ExpertHireControl } from "./ExpertHireControl";
+
+/** Three named, then a count for the rest — enough to place the expert
+ * without turning the card into a list. */
+const NAMED_SKILLS = 3;
interface Props {
expert: ExpertTemplate;
isHired: boolean;
}
-/** Each card is a plain link to the expert's own page, so a profile can be
- * shared and opened directly. */
+/** The whole card opens the expert's own page, through a link stretched
+ * behind its contents: a card that is itself a link cannot hold the hire
+ * button, since an anchor may not contain one. */
export function ExpertCard({ expert, isHired }: Props) {
- const accent = getExpertAccent(expert.role);
const skills = expert.bundled_skills ?? [];
+ const named = skills.slice(0, NAMED_SKILLS);
+ const restSkills = skills.slice(NAMED_SKILLS);
+ // The area an expert works in, in the same chip the filters use — the row
+ // above the shelf and the card below it name the same thing.
+ const area =
+ expert.categories?.[0] ??
+ (expert.job_title ? undefined : getExpertRoleLabel(expert.role));
+ const areaAccent = getCategoryAccent(area);
return (
- <Link
- href={`/marketplace/experts/${expert.id}`}
- className="group relative flex flex-col overflow-hidden rounded-2xl border border-zinc-200/80 bg-white text-left shadow-[0_1px_2px_rgba(16,24,40,0.04)] outline-none transition-all duration-200 ease-out hover:-translate-y-0.5 hover:border-zinc-300 hover:shadow-[0_16px_40px_-16px_rgba(16,24,40,0.18)] focus-visible:ring-2 focus-visible:ring-zinc-400"
- >
+ <div className="group relative flex flex-col overflow-hidden rounded-2xl border border-zinc-200/80 bg-white text-left shadow-[0_1px_2px_rgba(16,24,40,0.04)] transition-all duration-200 ease-out hover:-translate-y-0.5 hover:border-zinc-300 hover:shadow-[0_16px_40px_-16px_rgba(16,24,40,0.18)]">
<div
className={cn(
- "pointer-events-none absolute inset-x-0 top-0 h-28 opacity-60 transition-opacity duration-200 group-hover:opacity-100",
- accent.wash,
+ "pointer-events-none absolute inset-x-0 top-0 h-[4.5rem]",
+ areaAccent.accent.band,
)}
/>
- <div className="relative flex flex-1 flex-col gap-4 p-6">
+ <Link
+ href={`/marketplace/experts/${expert.id}`}
+ className="relative flex flex-1 flex-col gap-4 rounded-2xl p-6 outline-none focus-visible:ring-2 focus-visible:ring-zinc-400"
+ >
<ExpertAvatar
name={expert.name}
avatarUrl={expert.avatar_url}
size={88}
+ className="rounded-full ring-4 ring-white"
/>
<div>
<ExpertIdentityDetails
name={expert.name}
- role={expert.role}
- jobTitle={expert.job_title}
+ nameAlign="baseline"
+ nameAccessory={
+ expert.job_title ? (
+ <span className="min-w-0 truncate text-sm text-zinc-500">
+ {expert.job_title}
+ </span>
+ ) : undefined
+ }
/>
+ {area ? <CategoryTag category={area} className="mt-2" /> : null}
<ExpertTagline tagline={expert.tagline} compact />
</div>
{skills.length > 0 ? (
<div>
- <div className="mb-1.5 text-[11px] font-medium uppercase tracking-[0.14em] text-zinc-400">
- Skills
- </div>
- <div className="flex flex-wrap gap-1.5">
- {skills.slice(0, 3).map((skill) => (
+ <div className="mb-1 text-sm text-zinc-500">Skills:</div>
+ <div className="flex flex-col items-start">
+ {named.map((skill) => (
<span
key={skill.id}
- className="rounded-full bg-zinc-50 px-2.5 py-1 text-xs font-medium text-zinc-500 ring-1 ring-inset ring-zinc-200/80"
+ className={cn(
+ CHIP_SHAPE,
+ CHIP_SIZE.small,
+ "h-6 max-w-full border-transparent px-0",
+ )}
>
- {skill.title}
+ <Icon
+ icon={areaAccent.icon ?? Book04Icon}
+ size={12}
+ className={cn("shrink-0", areaAccent.accent.icon)}
+ aria-hidden
+ />
+ <span className="truncate">{skill.title}</span>
</span>
))}
- {skills.length > 3 ? (
- <span className="px-1 py-1 text-xs font-medium text-zinc-400">
- +{skills.length - 3}
- </span>
+ {restSkills.length > 0 ? (
+ <Tooltip>
+ <TooltipTrigger asChild>
+ <span
+ tabIndex={0}
+ className={cn(
+ CHIP_SHAPE,
+ CHIP_SIZE.small,
+ "h-6 cursor-default border-transparent px-0 text-zinc-500 outline-none focus-visible:ring-2 focus-visible:ring-violet-600",
+ )}
+ >
+ +{restSkills.length} skills
+ </span>
+ </TooltipTrigger>
+ <TooltipPortal>
+ <TooltipContent side="top">
+ <ul className="space-y-0.5">
+ {restSkills.map((rest) => (
+ <li key={rest.id}>{rest.title}</li>
+ ))}
+ </ul>
+ </TooltipContent>
+ </TooltipPortal>
+ </Tooltip>
) : null}
</div>
</div>
) : null}
- <div className="mt-auto flex items-center justify-between pt-2">
- {expert.workflows.length > 0 ? (
- <span className="flex items-center gap-2 text-base text-zinc-500">
- <Icon icon={FlashIcon} size={18} className={accent.icon} />
- {expert.workflows.length}{" "}
- {expert.workflows.length === 1 ? "workflow" : "workflows"}
- </span>
- ) : null}
- {isHired ? (
- <span className="ml-auto flex items-center gap-1.5 text-base font-medium text-emerald-600">
- <Icon icon={CheckmarkCircle02Icon} size={18} />
- On your team
- </span>
- ) : (
- <span className="ml-auto flex items-center gap-1.5 text-base font-medium text-zinc-400 transition-colors duration-200 group-hover:text-zinc-900">
- View
- <Icon
- icon={ArrowRight02Icon}
- size={16}
- className="transition-transform duration-200 group-hover:translate-x-0.5"
- />
- </span>
- )}
+ <div className="mt-auto flex items-center justify-end pt-2">
+ <span className="flex items-center gap-1.5 text-base font-medium text-zinc-400 transition-colors duration-200 group-hover:text-zinc-900">
+ View
+ <Icon
+ icon={ArrowRight02Icon}
+ size={16}
+ aria-hidden
+ className="transition-transform duration-200 group-hover:translate-x-0.5"
+ />
+ </span>
</div>
+ </Link>
+ <div className="absolute right-5 top-5 z-10">
+ <ExpertHireControl expert={expert} isHired={isHired} />
</div>
- </Link>
+ </div>
);
}
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/components/ExpertHireControl.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/components/ExpertHireControl.tsx
new file mode 100644
index 0000000000..91330f98f4
--- /dev/null
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/components/ExpertHireControl.tsx
@@ -0,0 +1,128 @@
+"use client";
+
+import { ExpertTemplate } from "@/app/api/__generated__/models/expertTemplate";
+import { Badge } from "@/components/atoms/Badge/Badge";
+import { Button } from "@/components/atoms/Button/Button";
+import { Icon } from "@/components/atoms/Icon/Icon";
+import { Dialog } from "@/components/molecules/Dialog/Dialog";
+import { VoicePicker } from "@/components/organisms/VoicePicker/VoicePicker";
+import { useAuth } from "@/lib/auth/hooks/useAuth";
+import { trackFunnel } from "@/services/experts/experts-analytics";
+import { markHireStarted } from "@/services/experts/hire-timing";
+import { useHireFlow } from "@/services/experts/useHireFlow";
+import { Flag, useGetFlag } from "@/services/feature-flags/use-get-flag";
+import { AddTeamIcon, CheckmarkCircle02Icon } from "@hugeicons/core-free-icons";
+
+// The atom sizes a lone action; on a card it is a label with a glyph.
+const TEXT_BUTTON = "min-w-0 gap-1.5 px-2 text-base";
+const HIRE_ICON = <Icon icon={AddTeamIcon} size={20} aria-hidden />;
+
+interface Props {
+ expert: ExpertTemplate;
+ isHired: boolean;
+}
+
+/** The card's corner: Hire, or the badge once the expert is on the team.
+ *
+ * One component for both, deliberately. Hiring refetches the roster, which
+ * flips `isHired` while the flow is still mid-air; if the badge replaced the
+ * button as a separate component, the flow's state — the voice picker, the
+ * hand-off to the expert's first thread — would unmount with it. Here the
+ * flow runs the expert page's own hook and outlives the swap. */
+export function ExpertHireControl({ expert, isHired }: Props) {
+ const isHireExpertsEnabled = useGetFlag(Flag.HIRE_EXPERTS);
+
+ if (!isHireExpertsEnabled) return null;
+
+ return <EnabledExpertHireControl expert={expert} isHired={isHired} />;
+}
+
+function EnabledExpertHireControl({ expert, isHired }: Props) {
+ const { isLoggedIn } = useAuth();
+ const {
+ hire,
+ isHiring,
+ isVoicePickOpen,
+ hireResult,
+ pickVoice,
+ skipVoice,
+ dismissVoicePick,
+ isSavingVoice,
+ } = useHireFlow(expert);
+ const isInFlight = isHiring || isVoicePickOpen || hireResult !== null;
+
+ // The clock starts on the click, not on the request: the flow finishes in
+ // a dialog, and sometimes on another page entirely.
+ function handleHire() {
+ markHireStarted(expert.id);
+ trackFunnel("hire_started", { template_id: expert.id });
+ hire();
+ }
+
+ let control;
+ if (isHired && !isInFlight) {
+ control = (
+ <Badge
+ variant="success"
+ className="rounded-full px-2.5 py-1 shadow-[0_1px_2px_rgba(16,24,40,0.05)]"
+ >
+ <Icon icon={CheckmarkCircle02Icon} size={14} aria-hidden />
+ On your team
+ </Badge>
+ );
+ } else if (!isLoggedIn) {
+ const next = encodeURIComponent(`/marketplace/experts/${expert.id}`);
+ control = (
+ <Button
+ as="NextLink"
+ href={`/signup?next=${next}`}
+ variant="ghost"
+ size="small"
+ leftIcon={HIRE_ICON}
+ className={TEXT_BUTTON}
+ >
+ Hire
+ </Button>
+ );
+ } else {
+ control = (
+ <Button
+ variant="ghost"
+ size="small"
+ loading={isHiring}
+ leftIcon={HIRE_ICON}
+ onClick={handleHire}
+ className={TEXT_BUTTON}
+ >
+ Hire
+ </Button>
+ );
+ }
+
+ return (
+ <>
+ {control}
+ <Dialog
+ styling={{ width: "640px" }}
+ controlled={{
+ isOpen: isVoicePickOpen,
+ set: (open) => {
+ if (!open) dismissVoicePick();
+ },
+ }}
+ >
+ <Dialog.Content>
+ {isVoicePickOpen && hireResult ? (
+ <VoicePicker
+ name={hireResult.expert.name}
+ samples={expert.voice_samples ?? []}
+ onPick={pickVoice}
+ onSkip={skipVoice}
+ isSubmitting={isSavingVoice}
+ />
+ ) : null}
+ </Dialog.Content>
+ </Dialog>
+ </>
+ );
+}
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/helpers.ts b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/helpers.ts
index a7a51b513d..61e9de3047 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/helpers.ts
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/ExpertsSection/helpers.ts
@@ -21,6 +21,8 @@ export interface ExpertAccent {
* across a full-width card. */
washWide: string;
pill: string;
+ /** A flat cover band for the top of a card — the wash without the fade. */
+ band: string;
/** Glossy tag for the expert page's skills: a white-to-tint gradient with
* a top highlight and a soft glow in the accent hue. */
chip: string;
@@ -34,6 +36,7 @@ const ACCENTS: Record<string, ExpertAccent> = {
washWide:
"bg-[linear-gradient(180deg,rgba(139,92,246,0.10),rgba(139,92,246,0.03)_60%,transparent)]",
pill: "bg-violet-50 text-violet-700 ring-1 ring-inset ring-violet-600/10",
+ band: "bg-violet-50/60",
chip: "bg-gradient-to-b from-white to-violet-50 text-violet-800 ring-1 ring-inset ring-violet-500/20 shadow-[inset_0_1px_0_rgba(255,255,255,0.95),0_1px_2px_rgba(139,92,246,0.12),0_0_18px_-4px_rgba(139,92,246,0.45)]",
icon: "text-violet-500",
roleIcon: Megaphone01Icon,
@@ -43,6 +46,7 @@ const ACCENTS: Record<string, ExpertAccent> = {
washWide:
"bg-[linear-gradient(180deg,rgba(245,158,11,0.10),rgba(245,158,11,0.03)_60%,transparent)]",
pill: "bg-amber-50 text-amber-700 ring-1 ring-inset ring-amber-600/10",
+ band: "bg-amber-50/60",
chip: "bg-gradient-to-b from-white to-amber-50 text-amber-800 ring-1 ring-inset ring-amber-500/20 shadow-[inset_0_1px_0_rgba(255,255,255,0.95),0_1px_2px_rgba(245,158,11,0.12),0_0_18px_-4px_rgba(245,158,11,0.45)]",
icon: "text-amber-500",
roleIcon: ChartIncreaseIcon,
@@ -52,6 +56,7 @@ const ACCENTS: Record<string, ExpertAccent> = {
washWide:
"bg-[linear-gradient(180deg,rgba(14,165,233,0.10),rgba(14,165,233,0.03)_60%,transparent)]",
pill: "bg-sky-50 text-sky-700 ring-1 ring-inset ring-sky-600/10",
+ band: "bg-sky-50/60",
chip: "bg-gradient-to-b from-white to-sky-50 text-sky-800 ring-1 ring-inset ring-sky-500/20 shadow-[inset_0_1px_0_rgba(255,255,255,0.95),0_1px_2px_rgba(14,165,233,0.12),0_0_18px_-4px_rgba(14,165,233,0.45)]",
icon: "text-sky-500",
roleIcon: Settings01Icon,
@@ -61,6 +66,7 @@ const ACCENTS: Record<string, ExpertAccent> = {
washWide:
"bg-[linear-gradient(180deg,rgba(113,113,122,0.08),rgba(113,113,122,0.02)_60%,transparent)]",
pill: "bg-zinc-100 text-zinc-600 ring-1 ring-inset ring-zinc-500/10",
+ band: "bg-zinc-100/60",
chip: "bg-gradient-to-b from-white to-zinc-50 text-zinc-700 ring-1 ring-inset ring-zinc-500/20 shadow-[inset_0_1px_0_rgba(255,255,255,0.95),0_1px_2px_rgba(113,113,122,0.12),0_0_18px_-4px_rgba(113,113,122,0.45)]",
icon: "text-zinc-500",
roleIcon: Briefcase01Icon,
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/FeaturedCreators/FeaturedCreators.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/FeaturedCreators/FeaturedCreators.tsx
index 68f10f3cea..8c400615cd 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/FeaturedCreators/FeaturedCreators.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/FeaturedCreators/FeaturedCreators.tsx
@@ -2,33 +2,19 @@
import { CreatorDetails } from "@/app/api/__generated__/models/creatorDetails";
import { CreatorCard } from "../CreatorCard/CreatorCard";
-import { SectionHeader } from "../SectionHeader";
import { useFeaturedCreators } from "./useFeaturedCreators";
-import { UserCircle02Icon } from "@hugeicons/core-free-icons";
-import { Icon } from "@/components/atoms/Icon/Icon";
-interface FeaturedCreatorsProps {
- title?: string;
+interface Props {
featuredCreators: CreatorDetails[];
}
-export const FeaturedCreators = ({
- featuredCreators,
- title = "Featured Creators",
-}: FeaturedCreatorsProps) => {
+export function FeaturedCreators({ featuredCreators }: Props) {
const { handleCardClick, displayedCreators } = useFeaturedCreators({
featuredCreators,
});
return (
<div className="flex w-full flex-col items-center justify-center">
<div className="w-full max-w-[1360px]">
- <SectionHeader
- eyebrow="The community"
- eyebrowIcon={<Icon icon={UserCircle02Icon} size={16} />}
- title={title}
- subtitle="The people behind the workflows you install."
- />
-
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-4">
{displayedCreators.map((creator, index) => (
<CreatorCard
@@ -46,4 +32,4 @@ export const FeaturedCreators = ({
</div>
</div>
);
-};
+}
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 cd22db83c7..9c3279d75e 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,7 @@
"use client";
-import { cn } from "@/lib/utils";
+import { SparklesIcon } from "@hugeicons/core-free-icons";
+import { CategoryChip } from "../CategoryChip/CategoryChip";
import { useFilterChips } from "./useFilterChips";
interface FilterChipsProps {
@@ -20,25 +21,18 @@ export function FilterChips({
});
return (
- <div className="flex flex-wrap items-center justify-center gap-2.5">
- {badges.map((badge) => {
- const isSelected = selectedFilters.includes(badge);
- return (
- <button
- key={badge}
- type="button"
- onClick={() => handleBadgeClick(badge)}
- className={cn(
- "inline-flex h-9 items-center rounded-full border px-4 text-sm font-medium transition-all duration-200",
- isSelected
- ? "border-zinc-900 bg-zinc-900 text-white shadow-[0_1px_2px_rgba(16,24,40,0.1)]"
- : "border-zinc-200 bg-white text-zinc-600 shadow-[0_1px_2px_rgba(16,24,40,0.04)] hover:-translate-y-px hover:border-zinc-300 hover:text-zinc-900",
- )}
- >
- {badge}
- </button>
- );
- })}
+ <div className="flex flex-wrap items-center justify-center gap-2">
+ {badges.map((badge) => (
+ // One glyph for all of them: these are suggested searches, not
+ // categories, so the category accents would misread them.
+ <CategoryChip
+ key={badge}
+ icon={SparklesIcon}
+ label={badge}
+ isSelected={selectedFilters.includes(badge)}
+ onClick={() => handleBadgeClick(badge)}
+ />
+ ))}
</div>
);
}
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/HeroSection/HeroSection.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/HeroSection/HeroSection.tsx
index cf9797c1a9..e438dcd831 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/HeroSection/HeroSection.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/HeroSection/HeroSection.tsx
@@ -12,12 +12,12 @@ export const HeroSection = () => {
return (
<div className="mb-16 mt-10 flex flex-col items-center justify-center px-4">
<div className="w-full max-w-3xl">
- <h1 className="mb-3 text-center text-3xl font-semibold tracking-[-0.02em] text-zinc-900 md:text-4xl">
+ <h1 className="mb-3 text-center text-3xl font-semibold leading-[1.05] tracking-[-0.02em] text-zinc-900 md:text-[3rem]">
{isHireExpertsEnabled ? (
<>
- AI experts and workflows,
+ Hire an AI expert
<span className="block">
- built for <span className="text-violet-600">your team</span>
+ for <span className="text-violet-600">your team</span>
</span>
</>
) : (
@@ -31,8 +31,7 @@ export const HeroSection = () => {
<p className="mb-8 text-center text-[15px] text-zinc-500 md:text-lg">
{isHireExpertsEnabled ? (
<>
- Hire a ready-made specialist, or install automations from the
- community
+ Ready-made specialists who bring their own skills and workflows
<span className="block">— working in minutes.</span>
</>
) : (
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 ad32526755..1b29f93387 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,19 +1,22 @@
"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,
useFlagStatus,
useGetFlag,
} from "@/services/feature-flags/use-get-flag";
-import { AICatalogIcon } from "../AICatalogIcon";
import { AgentsSection } from "../AgentsSection/AgentsSection";
import { CategoryFilter } from "../CategoryFilter/CategoryFilter";
import { BecomeACreator } from "../BecomeACreator/BecomeACreator";
import { FeaturedCreators } from "../FeaturedCreators/FeaturedCreators";
import { FeaturedSection } from "../FeaturedSection/FeaturedSection";
import { ExpertsSection } from "../ExpertsSection/ExpertsSection";
+import { SkillsList } from "../SkillsList/SkillsList";
import { SkillsSection } from "../SkillsSection/SkillsSection";
+import { WorkflowsShelf } from "../WorkflowsShelf/WorkflowsShelf";
import { HeroSection } from "../HeroSection/HeroSection";
import { MainMarketplacePageLoading } from "../MainMarketplacePageLoading";
import { MarketplaceTabIntro } from "../MarketplaceTabIntro/MarketplaceTabIntro";
@@ -39,6 +42,11 @@ export const MainMarkeplacePage = () => {
// visitor browsing the marketplace needs a way to reach them. Signed-in
// users keep the flag gate so the beta stays invisible to them.
const showExperts = !isUserLoading && (!isLoggedIn || isHireExpertsEnabled);
+ const hasWorkflowShelf = Boolean(
+ topAgents &&
+ (topAgents.agents.length > 0 ||
+ (!category && (featuredAgents?.agents.length ?? 0) > 0)),
+ );
if (isLoading) {
return <MainMarketplacePageLoading />;
@@ -71,41 +79,61 @@ export const MainMarkeplacePage = () => {
below its content changes what the reader has scrolled past. */}
<CategoryFilter selected={category} onSelect={setCategory} />
{showExperts ? <ExpertsSection category={category} /> : null}
- {skillsHub.ready && skillsHub.enabled ? (
- <SkillsSection category={category} />
- ) : null}
- {topAgents && (
- <div className="mb-20" id={AGENTS_SECTION_ID}>
- <AgentsSection
- sectionTitle="All AI Workflows"
- titleIcon={<AICatalogIcon size={30} />}
- subtitle={
- isHireExpertsEnabled
- ? "Install one on an Expert, or run it standalone."
- : "Ready-made automations from the community."
- }
- agents={topAgents.agents}
- >
- {/* Featured is a whole-marketplace shelf; under a category filter
- it would show workflows the filter excludes. */}
- {!category &&
- featuredAgents &&
- featuredAgents.agents.length > 0 && (
- <FeaturedSection featuredAgents={featuredAgents.agents} />
- )}
- </AgentsSection>
- </div>
+ {isHireExpertsEnabled ? (
+ <>
+ {skillsHub.ready && skillsHub.enabled ? (
+ <SkillsList key={category ?? "all"} category={category} />
+ ) : null}
+ {topAgents && (
+ <WorkflowsShelf
+ id={AGENTS_SECTION_ID}
+ agents={topAgents.agents}
+ featuredAgents={category ? [] : (featuredAgents?.agents ?? [])}
+ total={topAgents.pagination.total_items}
+ />
+ )}
+ </>
+ ) : (
+ <>
+ {skillsHub.ready && skillsHub.enabled ? (
+ <SkillsSection category={category} />
+ ) : null}
+ {topAgents && (
+ <div className="mb-20" id={AGENTS_SECTION_ID}>
+ <AgentsSection
+ sectionTitle="All AI Workflows"
+ titleIcon={
+ <Icon icon={UserAiIcon} size="2.2rem" aria-hidden />
+ }
+ subtitle="Ready-made automations from the community."
+ agents={topAgents.agents}
+ >
+ {/* Featured is a whole-marketplace shelf; under a category filter
+ it would show workflows the filter excludes. */}
+ {!category &&
+ featuredAgents &&
+ featuredAgents.agents.length > 0 && (
+ <FeaturedSection featuredAgents={featuredAgents.agents} />
+ )}
+ </AgentsSection>
+ </div>
+ )}
+ </>
)}
{featuredCreators && (
<div className="mb-4">
<FeaturedCreators featuredCreators={featuredCreators.creators} />
</div>
)}
- <BecomeACreator
- title="Become a Creator"
- description="Join our ever-growing community of hackers and tinkerers"
- buttonText="Become a Creator"
- />
+ {/* The expert layout invites publishing from under the workflows
+ shelf instead, where it cannot outshout the shelf itself. */}
+ {!isHireExpertsEnabled || !hasWorkflowShelf ? (
+ <BecomeACreator
+ title="Become a Creator"
+ description="Join our ever-growing community of hackers and tinkerers"
+ buttonText="Become a Creator"
+ />
+ ) : null}
</main>
<MarketplaceTabIntro />
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SectionHeader.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SectionHeader.tsx
index a431464ec7..32bbbb3140 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SectionHeader.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SectionHeader.tsx
@@ -3,6 +3,7 @@ import { ReactNode } from "react";
import { ArrowRight02Icon } from "@hugeicons/core-free-icons";
import { Button } from "@/components/atoms/Button/Button";
import { Icon } from "@/components/atoms/Icon/Icon";
+import { cn } from "@/lib/utils";
interface Props {
eyebrow?: string;
@@ -12,8 +13,14 @@ interface Props {
titleId?: string;
subtitle?: string;
action?: { label: string; href: string };
+ /** A control row above the actions, e.g. a shelf's own filter chips. */
+ filters?: ReactNode;
+ /** Buttons of the section's own making, when `action` and `secondaryAction`
+ * are the wrong shape — e.g. two side by side. */
+ 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({
@@ -24,12 +31,20 @@ export function SectionHeader({
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="mb-7 flex flex-col items-start justify-between gap-4 sm:flex-row sm:items-end">
+ <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>
{eyebrow ? (
<div className="mb-2.5 flex items-center gap-2 text-xs font-medium uppercase tracking-[0.14em] text-violet-600">
@@ -39,17 +54,37 @@ export function SectionHeader({
) : null}
<h2
id={titleId}
- className="flex items-center gap-2.5 text-3xl font-semibold tracking-[-0.02em] text-zinc-900"
+ className={cn(
+ "flex items-center gap-2.5 font-semibold tracking-[-0.02em] text-zinc-900",
+ size === "small" ? "text-xl" : "text-3xl",
+ )}
>
{titleIcon}
{title}
</h2>
{subtitle ? (
- <p className="mt-2 text-base text-zinc-500">{subtitle}</p>
+ <p
+ className={cn(
+ "text-zinc-500",
+ size === "small" ? "mt-1 text-sm" : "mt-2 text-lg",
+ )}
+ >
+ {subtitle}
+ </p>
) : null}
</div>
- {action || secondaryAction ? (
- <div className="flex shrink-0 flex-row items-center gap-4 sm:flex-col sm:items-end sm:gap-2">
+ {action || secondaryAction || filters || actions ? (
+ <div
+ className={cn(
+ "flex flex-row items-center gap-4 sm:flex-col sm:items-end sm:gap-2",
+ // Chips wrap rather than push the heading off the page, so the
+ // column gives up `shrink-0` when it carries them — and rides the
+ // title's line instead of the subtitle's.
+ filters ? "min-w-0 flex-1 sm:self-start" : "shrink-0",
+ )}
+ >
+ {filters}
+ {actions}
{secondaryAction ? (
<Button
as="NextLink"
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/Shelf/ShelfMoreButton.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/Shelf/ShelfMoreButton.tsx
new file mode 100644
index 0000000000..a8b9d83122
--- /dev/null
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/Shelf/ShelfMoreButton.tsx
@@ -0,0 +1,34 @@
+import { Button } from "@/components/atoms/Button/Button";
+
+interface Props {
+ isExpanded: boolean;
+ /** How many tiles the button reveals. */
+ count: number;
+ /** False when the page cap keeps `count` short of the whole catalogue, so
+ * the label stops promising "all" — the header link covers the rest. */
+ isAll?: boolean;
+ /** Plural noun for the label, e.g. "workflows". */
+ noun: string;
+ onToggle: () => void;
+}
+
+export function ShelfMoreButton({
+ isExpanded,
+ count,
+ isAll = true,
+ noun,
+ onToggle,
+}: Props) {
+ return (
+ <Button
+ size="small"
+ aria-expanded={isExpanded}
+ onClick={onToggle}
+ unmask={false}
+ >
+ {isExpanded
+ ? "Show fewer"
+ : `Load ${isAll ? "all " : ""}${count.toLocaleString()} ${noun}`}
+ </Button>
+ );
+}
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/Shelf/ShelfTile.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/Shelf/ShelfTile.tsx
new file mode 100644
index 0000000000..edd33d2ce7
--- /dev/null
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/Shelf/ShelfTile.tsx
@@ -0,0 +1,73 @@
+import { cn } from "@/lib/utils";
+import Link from "next/link";
+import { ReactNode } from "react";
+
+interface Props {
+ media: ReactNode;
+ mediaClassName?: string;
+ title: string;
+ subtitle: string;
+ trailing?: ReactNode;
+ testId?: string;
+ /** A tile is one target: a link when it navigates, a button when it opens. */
+ href?: string;
+ onClick?: () => void;
+}
+
+const TILE =
+ "flex w-full items-center gap-3 rounded-xl border border-zinc-200/80 bg-white p-2.5 text-left outline-none transition-colors hover:border-zinc-300 focus-visible:ring-2 focus-visible:ring-violet-600";
+
+export function ShelfTile({
+ media,
+ mediaClassName,
+ title,
+ subtitle,
+ trailing,
+ testId,
+ href,
+ onClick,
+}: Props) {
+ const body = (
+ <>
+ <span
+ className={cn(
+ "relative flex h-14 w-14 shrink-0 items-center justify-center overflow-hidden rounded-lg",
+ mediaClassName,
+ )}
+ >
+ {media}
+ </span>
+ <span className="min-w-0 flex-1">
+ <span
+ title={title}
+ className="block truncate text-sm font-medium text-zinc-900"
+ >
+ {title}
+ </span>
+ <span className="block truncate text-[13px] text-zinc-500">
+ {subtitle}
+ </span>
+ </span>
+ {trailing}
+ </>
+ );
+
+ return (
+ <li className="min-w-0">
+ {href ? (
+ <Link href={href} data-testid={testId} className={TILE}>
+ {body}
+ </Link>
+ ) : (
+ <button
+ type="button"
+ onClick={onClick}
+ data-testid={testId}
+ className={TILE}
+ >
+ {body}
+ </button>
+ )}
+ </li>
+ );
+}
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/Shelf/helpers.ts b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/Shelf/helpers.ts
new file mode 100644
index 0000000000..c9f60b7c5c
--- /dev/null
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/Shelf/helpers.ts
@@ -0,0 +1,9 @@
+/** Two rows of four tiles before a shelf offers "Load all". */
+export const SHELF_PREVIEW_SIZE = 8;
+
+/** The list endpoints cap a page at 100, so that is all "Load all" can pull. */
+export const SHELF_MAX_SIZE = 100;
+
+/** Stays inside the page gutters — a shelf never bleeds past the padding. */
+export const SHELF_GRID =
+ "grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4";
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SkillTopicChips/SkillTopicChips.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SkillTopicChips/SkillTopicChips.tsx
new file mode 100644
index 0000000000..1054e61dc2
--- /dev/null
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SkillTopicChips/SkillTopicChips.tsx
@@ -0,0 +1,53 @@
+"use client";
+
+import { useStoreCategories } from "@/hooks/useStoreCategories";
+import { cn } from "@/lib/utils";
+import { CategoryChip, type ChipSize } from "../CategoryChip/CategoryChip";
+import { getCategoryAccent } from "../ExpertsSection/helpers";
+
+interface Props {
+ selected: string | null;
+ onSelect: (topic: string | null) => void;
+ size?: ChipSize;
+}
+
+export function SkillTopicChips({ selected, onSelect, size = "small" }: Props) {
+ const { categories } = useStoreCategories();
+
+ if (categories.length === 0) return null;
+
+ return (
+ <div
+ role="group"
+ aria-label="Filter skills by topic"
+ className={cn(
+ "flex flex-wrap",
+ size === "default" ? "gap-2" : "gap-1 sm:justify-end",
+ )}
+ >
+ <CategoryChip
+ label="All"
+ size={size}
+ isSelected={selected === null}
+ onClick={() => onSelect(null)}
+ />
+ {categories.map((category) => {
+ const { accent, icon } = getCategoryAccent(category.value);
+ return (
+ <CategoryChip
+ key={category.value}
+ label={category.label}
+ title={category.description}
+ icon={icon}
+ accent={accent}
+ size={size}
+ isSelected={selected === category.value}
+ onClick={() =>
+ onSelect(selected === category.value ? null : category.value)
+ }
+ />
+ );
+ })}
+ </div>
+ );
+}
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.tsx
new file mode 100644
index 0000000000..a7cce30bb9
--- /dev/null
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SkillsList/SkillsList.tsx
@@ -0,0 +1,155 @@
+"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 {
+ SHELF_GRID,
+ SHELF_MAX_SIZE,
+ SHELF_PREVIEW_SIZE,
+} from "../Shelf/helpers";
+import { ShelfMoreButton } from "../Shelf/ShelfMoreButton";
+import { SkillTopicChips } from "../SkillTopicChips/SkillTopicChips";
+import { formatCategoryLabel } from "../SkillsSection/helpers";
+import { useSkillsSection } from "../SkillsSection/useSkillsSection";
+import { SkillDialog } from "./components/SkillDialog";
+import { SkillTile } from "./components/SkillTile";
+
+const HEADING_ID = "skills-heading";
+
+interface Props {
+ category?: string | null;
+}
+
+export function SkillsList({ category }: Props) {
+ // Seeded from the page filter and reset with it by the parent's `key`, so
+ // the chips narrow the shelf further without fighting the page.
+ const [topic, setTopic] = useState(category ?? null);
+ // "Load all" widens the page it asks for rather than slicing a page it
+ // already holds: the shelf only ever fetches the tiles it shows.
+ const [pageSize, setPageSize] = useState(SHELF_PREVIEW_SIZE);
+ const { skills, total, installedSlugs, isLoading, isError, refetch } =
+ useSkillsSection({ category: topic, pageSize });
+ const [openSlug, setOpenSlug] = useState<string | null>(null);
+ const isExpanded = pageSize > SHELF_PREVIEW_SIZE;
+ const isEmpty = !isLoading && !isError && skills.length === 0;
+
+ function selectTopic(next: string | null) {
+ setTopic(next);
+ setPageSize(SHELF_PREVIEW_SIZE);
+ }
+
+ // An empty shelf keeps its chips so the reader can step back out of the
+ // topic they picked; with no topic of their own there is nothing to step
+ // back to, and the section goes.
+ if (isEmpty && topic === (category ?? null)) return null;
+
+ return (
+ <section
+ id="skills"
+ aria-labelledby={HEADING_ID}
+ 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."
+ filters={
+ <SkillTopicChips
+ selected={topic}
+ onSelect={selectTopic}
+ size="medium"
+ />
+ }
+ />
+ {isLoading ? (
+ <div
+ role="status"
+ aria-busy="true"
+ aria-label="Loading skills"
+ className={SHELF_GRID}
+ >
+ {Array.from({ length: SHELF_PREVIEW_SIZE }, (_, i) => (
+ <Skeleton key={i} className="h-16 w-full rounded-xl" />
+ ))}
+ </div>
+ ) : isError ? (
+ <div className="flex items-center gap-2 text-sm text-zinc-600">
+ <span>Couldn&apos;t load skills right now.</span>
+ <button
+ type="button"
+ onClick={() => refetch()}
+ className="font-medium text-accent underline-offset-2 transition-colors hover:underline"
+ >
+ Retry
+ </button>
+ </div>
+ ) : isEmpty ? (
+ <div className="flex items-center gap-2 text-sm text-zinc-600">
+ <span>
+ {topic
+ ? `No ${formatCategoryLabel(topic).toLowerCase()} skills yet.`
+ : "No skills yet."}
+ </span>
+ {topic ? (
+ <button
+ type="button"
+ onClick={() => selectTopic(null)}
+ className="font-medium text-accent underline-offset-2 transition-colors hover:underline"
+ >
+ Show all
+ </button>
+ ) : null}
+ </div>
+ ) : (
+ <ul className={SHELF_GRID}>
+ {skills.map((skill) => (
+ <SkillTile
+ key={skill.slug}
+ skill={skill}
+ isInstalled={installedSlugs.has(skill.slug)}
+ onSee={() => setOpenSlug(skill.slug)}
+ />
+ ))}
+ </ul>
+ )}
+ <div className="mt-6 flex flex-wrap items-center gap-2">
+ {total > SHELF_PREVIEW_SIZE ? (
+ <ShelfMoreButton
+ isExpanded={isExpanded}
+ count={Math.min(total, SHELF_MAX_SIZE)}
+ isAll={total <= SHELF_MAX_SIZE}
+ noun="skills"
+ onToggle={() =>
+ setPageSize(
+ isExpanded
+ ? SHELF_PREVIEW_SIZE
+ : Math.min(total, SHELF_MAX_SIZE),
+ )
+ }
+ />
+ ) : null}
+ <Button
+ as="NextLink"
+ href="/marketplace/skills"
+ variant="secondary"
+ size="small"
+ >
+ Browse all skills
+ </Button>
+ </div>
+ {openSlug ? (
+ <SkillDialog
+ key={openSlug}
+ slug={openSlug}
+ onClose={() => setOpenSlug(null)}
+ />
+ ) : null}
+ </section>
+ );
+}
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SkillsList/components/SkillDialog.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SkillsList/components/SkillDialog.tsx
new file mode 100644
index 0000000000..0ccb5d8778
--- /dev/null
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SkillsList/components/SkillDialog.tsx
@@ -0,0 +1,106 @@
+"use client";
+
+import { Skeleton } from "@/components/atoms/Skeleton/Skeleton";
+import { SkillFileViewer } from "@/components/contextual/SkillPackage/SkillFileViewer";
+import { Dialog } from "@/components/molecules/Dialog/Dialog";
+import { SkillActions } from "../../../skills/[slug]/components/SkillActions";
+import { SkillBody } from "../../../skills/[slug]/components/SkillBody";
+import { useSkillPage } from "../../../skills/[slug]/components/useSkillPage";
+
+interface Props {
+ slug: string;
+ onClose: () => void;
+}
+
+export function SkillDialog({ slug, onClose }: Props) {
+ const {
+ skill,
+ isLoggedIn,
+ isLoading,
+ isError,
+ refetch,
+ isReady,
+ isAdded,
+ isAdding,
+ experts,
+ addToAutoPilot,
+ addToExpert,
+ files,
+ openFilePath,
+ openFile,
+ closeFile,
+ } = useSkillPage(slug);
+
+ return (
+ <>
+ <Dialog
+ title={skill?.title ?? "Skill"}
+ styling={{ width: "760px" }}
+ controlled={{
+ isOpen: true,
+ set: (open) => {
+ if (!open) onClose();
+ },
+ }}
+ >
+ <Dialog.Content>
+ <div data-testid="skill-dialog">
+ {isLoading ? (
+ <div role="status" aria-busy="true" className="space-y-2">
+ <Skeleton className="h-4 w-full" />
+ <Skeleton className="h-4 w-5/6" />
+ <Skeleton className="h-4 w-2/3" />
+ </div>
+ ) : isError || !skill ? (
+ <div className="flex items-center gap-2 text-sm text-zinc-600">
+ <span>Couldn&apos;t load this skill right now.</span>
+ <button
+ type="button"
+ onClick={() => refetch()}
+ className="font-medium text-accent underline-offset-2 transition-colors hover:underline"
+ >
+ Retry
+ </button>
+ </div>
+ ) : (
+ <>
+ <div className="mb-6 flex flex-wrap items-start justify-between gap-4 border-b border-zinc-200 pb-5">
+ <p className="min-w-0 max-w-[52ch] flex-1 text-[15px] leading-6 text-zinc-600">
+ {skill.description}
+ </p>
+ <SkillActions
+ slug={slug}
+ isLoggedIn={isLoggedIn}
+ isReady={isReady}
+ isAdded={isAdded}
+ isAdding={isAdding}
+ experts={experts}
+ onAdd={addToAutoPilot}
+ onAddToExpert={addToExpert}
+ />
+ </div>
+ {skill.body.trim() ? (
+ <SkillBody
+ body={skill.body}
+ title={skill.title}
+ packagePaths={files.map((file) => file.path)}
+ onOpenFile={openFile}
+ />
+ ) : (
+ <p className="text-sm text-zinc-500">
+ This skill has no instructions yet.
+ </p>
+ )}
+ </>
+ )}
+ </div>
+ </Dialog.Content>
+ </Dialog>
+ <SkillFileViewer
+ source={{ kind: "listing", slug }}
+ path={openFilePath}
+ onClose={closeFile}
+ />
+ </>
+ );
+}
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SkillsList/components/SkillTile.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SkillsList/components/SkillTile.tsx
new file mode 100644
index 0000000000..59a50a9ae0
--- /dev/null
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SkillsList/components/SkillTile.tsx
@@ -0,0 +1,37 @@
+import type { MarketplaceSkill } from "@/app/api/__generated__/models/marketplaceSkill";
+import { Icon } from "@/components/atoms/Icon/Icon";
+import { cn } from "@/lib/utils";
+import { Book04Icon, CheckmarkCircle02Icon } from "@hugeicons/core-free-icons";
+import { getCategoryAccent } from "../../ExpertsSection/helpers";
+import { ShelfTile } from "../../Shelf/ShelfTile";
+
+interface Props {
+ skill: MarketplaceSkill;
+ isInstalled: boolean;
+ onSee: () => void;
+}
+
+export function SkillTile({ skill, isInstalled, onSee }: Props) {
+ const { accent } = getCategoryAccent(skill.categories[0]);
+
+ return (
+ <ShelfTile
+ testId="skill-tile"
+ onClick={onSee}
+ mediaClassName={cn("h-10 w-10", accent.pill)}
+ media={
+ <Icon icon={Book04Icon} size={18} className={accent.icon} aria-hidden />
+ }
+ title={skill.title}
+ subtitle={skill.description}
+ trailing={
+ isInstalled ? (
+ <span className="flex shrink-0 items-center gap-1 pr-1 text-[13px] font-medium text-emerald-600">
+ <Icon icon={CheckmarkCircle02Icon} size={14} aria-hidden />
+ Added
+ </span>
+ ) : null
+ }
+ />
+ );
+}
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.tsx
index b96c3664ac..4058ebc998 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
@@ -19,13 +19,15 @@ interface Props {
export function SkillsSection({ category }: Props) {
const {
isLoggedIn,
- skills,
+ skills: fetchedSkills,
total,
installedSlugs,
isLoading,
isError,
refetch,
} = useSkillsSection({ category });
+ // One shared query feeds both shelves; the card layout takes the first four.
+ const skills = fetchedSkills.slice(0, SHELF_SIZE);
// Under a category filter an empty shelf means "no skills in this
// category", so the whole section goes rather than offering an empty state.
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SkillsSection/useSkillsSection.ts b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SkillsSection/useSkillsSection.ts
index e17d1ad306..70c02f8011 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SkillsSection/useSkillsSection.ts
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/SkillsSection/useSkillsSection.ts
@@ -2,17 +2,21 @@ import { useListCopilotSkills } from "@/app/api/__generated__/endpoints/skills/s
import { useGetV2ListMarketplaceSkills } from "@/app/api/__generated__/endpoints/store/store";
import { okData } from "@/app/api/helpers";
import { useAuth } from "@/lib/auth/hooks/useAuth";
-import { SHELF_SIZE } from "./helpers";
+import { SHELF_PREVIEW_SIZE } from "../Shelf/helpers";
interface Args {
category?: string | null;
+ pageSize?: number;
}
-export function useSkillsSection({ category }: Args = {}) {
+export function useSkillsSection({
+ category,
+ pageSize = SHELF_PREVIEW_SIZE,
+}: Args = {}) {
const { isLoggedIn } = useAuth();
const query = useGetV2ListMarketplaceSkills(
- { page_size: SHELF_SIZE, ...(category ? { category } : {}) },
+ { page_size: pageSize, ...(category ? { category } : {}) },
{
query: {
select: (response) => okData(response),
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.tsx
new file mode 100644
index 0000000000..ef2828b82e
--- /dev/null
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/WorkflowsShelf/WorkflowsShelf.tsx
@@ -0,0 +1,73 @@
+"use client";
+
+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 { UserAiIcon } from "@hugeicons/core-free-icons";
+import { useState } from "react";
+import { SectionHeader } from "../SectionHeader";
+import { SHELF_GRID, SHELF_PREVIEW_SIZE } from "../Shelf/helpers";
+import { ShelfMoreButton } from "../Shelf/ShelfMoreButton";
+import { WorkflowTile } from "./components/WorkflowTile";
+import { featuredFirst } from "./helpers";
+
+const HEADING_ID = "workflows-heading";
+
+interface Props {
+ id: string;
+ agents: StoreAgent[];
+ featuredAgents: StoreAgent[];
+ total: number;
+}
+
+export function WorkflowsShelf({ id, agents, featuredAgents, total }: Props) {
+ const [isExpanded, setIsExpanded] = useState(false);
+ const ordered = featuredFirst(agents, featuredAgents);
+
+ if (ordered.length === 0) return null;
+
+ const shown = isExpanded ? ordered : ordered.slice(0, SHELF_PREVIEW_SIZE);
+
+ return (
+ <section
+ id={id}
+ aria-labelledby={HEADING_ID}
+ className="mb-16 scroll-mt-24"
+ >
+ <SectionHeader
+ size="small"
+ titleIcon={<Icon icon={UserAiIcon} size="2.2rem" aria-hidden />}
+ title="Workflows"
+ titleId={HEADING_ID}
+ subtitle="Automations your experts can run — or install one yourself."
+ />
+ <ul className={SHELF_GRID}>
+ {shown.map((agent) => (
+ <WorkflowTile key={agent.agent_graph_id} agent={agent} />
+ ))}
+ </ul>
+ <div className="mt-6 flex flex-wrap items-center gap-2">
+ {ordered.length > SHELF_PREVIEW_SIZE ? (
+ <ShelfMoreButton
+ isExpanded={isExpanded}
+ count={ordered.length}
+ isAll={total <= ordered.length}
+ noun="workflows"
+ onToggle={() => setIsExpanded(!isExpanded)}
+ />
+ ) : null}
+ {/* The old full-width creator banner sat at the bottom of the page and
+ spoke louder than the shelf it advertised; one line under the
+ workflows is the whole invitation. */}
+ <PublishAgentModal
+ trigger={
+ <Button variant="secondary" size="small">
+ Publish your workflows
+ </Button>
+ }
+ />
+ </div>
+ </section>
+ );
+}
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/WorkflowsShelf/components/WorkflowTile.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/WorkflowsShelf/components/WorkflowTile.tsx
new file mode 100644
index 0000000000..806e09b873
--- /dev/null
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/WorkflowsShelf/components/WorkflowTile.tsx
@@ -0,0 +1,39 @@
+"use client";
+
+import { StoreAgent } from "@/app/api/__generated__/models/storeAgent";
+import { isLocalStoreMediaUrl } from "@/lib/store-media";
+import Image from "next/image";
+import { useState } from "react";
+import { ShelfTile } from "../../Shelf/ShelfTile";
+
+interface Props {
+ agent: StoreAgent;
+}
+
+export function WorkflowTile({ agent }: Props) {
+ const [imageError, setImageError] = useState(false);
+ const runs = agent.runs ?? 0;
+
+ return (
+ <ShelfTile
+ testId="workflow-tile"
+ href={`/marketplace/agent/${encodeURIComponent(agent.creator)}/${encodeURIComponent(agent.slug)}`}
+ mediaClassName="bg-violet-100 ring-1 ring-black/5"
+ media={
+ agent.agent_image && !imageError ? (
+ <Image
+ src={agent.agent_image}
+ unoptimized={isLocalStoreMediaUrl(agent.agent_image)}
+ alt=""
+ fill
+ sizes="56px"
+ className="object-cover"
+ onError={() => setImageError(true)}
+ />
+ ) : null
+ }
+ title={agent.agent_name}
+ subtitle={runs === 0 ? "No runs" : `${runs.toLocaleString()} runs`}
+ />
+ );
+}
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/WorkflowsShelf/helpers.ts b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/WorkflowsShelf/helpers.ts
new file mode 100644
index 0000000000..25923c8c7c
--- /dev/null
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/WorkflowsShelf/helpers.ts
@@ -0,0 +1,12 @@
+import { StoreAgent } from "@/app/api/__generated__/models/storeAgent";
+
+export function featuredFirst(
+ agents: StoreAgent[],
+ featured: StoreAgent[],
+): StoreAgent[] {
+ const featuredIDs = new Set(featured.map((agent) => agent.agent_graph_id));
+ return [
+ ...featured,
+ ...agents.filter((agent) => !featuredIDs.has(agent.agent_graph_id)),
+ ];
+}
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertAbout.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertAbout.tsx
index 2177cb0fdd..fe4f8e1976 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertAbout.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertAbout.tsx
@@ -21,7 +21,7 @@ export function ExpertAbout({ text }: Props) {
<ExpertSection title="About">
<p
className={cn(
- "whitespace-pre-line text-[15px] leading-6 text-zinc-600",
+ "whitespace-pre-line text-base leading-7 text-zinc-600",
isClampable && !isExpanded && "line-clamp-6",
)}
>
@@ -31,7 +31,7 @@ export function ExpertAbout({ text }: Props) {
<button
type="button"
onClick={() => setIsExpanded((value) => !value)}
- className="mt-2 inline-flex items-center gap-1 text-[13px] font-medium text-zinc-500 transition-colors hover:text-zinc-900"
+ className="mt-2 inline-flex items-center gap-1 text-sm font-medium text-zinc-500 transition-colors hover:text-zinc-900"
>
{isExpanded ? "Show less" : "Read more"}
<Icon
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertDayOne.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertDayOne.tsx
index fe14d68619..359043d99c 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertDayOne.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertDayOne.tsx
@@ -31,11 +31,11 @@ export function ExpertDayOne({ name, items, accent }: Props) {
</span>
<div className="flex min-w-0 flex-1 flex-col gap-1.5 sm:flex-row sm:items-start sm:gap-3">
<div className="min-w-0 flex-1">
- <div className="break-words text-sm font-semibold leading-6 text-zinc-900">
+ <div className="break-words text-base font-semibold leading-6 text-zinc-900">
{item.title}
</div>
{item.description ? (
- <p className="break-words text-[13px] leading-5 text-zinc-500">
+ <p className="break-words text-sm leading-6 text-zinc-500">
{item.description}
</p>
) : null}
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertNoteCard.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertNoteCard.tsx
new file mode 100644
index 0000000000..62e4b729f1
--- /dev/null
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertNoteCard.tsx
@@ -0,0 +1,24 @@
+import { Icon } from "@/components/atoms/Icon/Icon";
+import type { IconSvgElement } from "@hugeicons/react";
+import type { ReactNode } from "react";
+
+interface Props {
+ icon: IconSvgElement;
+ children: ReactNode;
+}
+
+/** A soft card for the page's facts about a hire — plan, rules — so they
+ * read as terms rather than as more of the essay above them. */
+export function ExpertNoteCard({ icon, children }: Props) {
+ return (
+ <div className="flex gap-4 rounded-2xl bg-zinc-50 p-5 ring-1 ring-inset ring-zinc-200/60">
+ <span
+ aria-hidden="true"
+ className="flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-white ring-1 ring-inset ring-zinc-200/70"
+ >
+ <Icon icon={icon} size={20} className="text-zinc-600" />
+ </span>
+ <div className="min-w-0 flex-1">{children}</div>
+ </div>
+ );
+}
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertPage.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertPage.tsx
index c0c70856a7..cb108157ae 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertPage.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertPage.tsx
@@ -141,7 +141,10 @@ export function ExpertPage() {
accent={accent}
/>
<ExpertAbout key={expert.id} text={expert.bio || expert.identity} />
- <ExpertSkills skills={expert.bundled_skills ?? []} accent={accent} />
+ <ExpertSkills
+ skills={expert.bundled_skills ?? []}
+ category={expert.categories?.[0]}
+ />
<ExpertWorkflowList
name={expert.name}
workflows={expert.workflows}
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertPageHeader.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertPageHeader.tsx
index acc2d01cde..c2b6d6dd17 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertPageHeader.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertPageHeader.tsx
@@ -3,6 +3,7 @@ import { ExpertAvatar } from "@/components/molecules/ExpertAvatar/ExpertAvatar";
import { ExpertIdentityDetails } from "@/components/molecules/ExpertIdentityDetails/ExpertIdentityDetails";
import { ExpertTagline } from "@/components/molecules/ExpertIdentityDetails/components/ExpertTagline";
import { ReactNode } from "react";
+import { CategoryTag } from "../../../components/CategoryChip/CategoryTag";
interface Props {
expert: Expert;
@@ -10,6 +11,8 @@ interface Props {
}
export function ExpertPageHeader({ expert, actions }: Props) {
+ const area = expert.categories?.[0];
+
return (
<header>
<div className="flex flex-wrap items-center gap-4 sm:gap-5">
@@ -20,12 +23,24 @@ export function ExpertPageHeader({ expert, actions }: Props) {
size={96}
/>
<div className="min-w-0 flex-1">
+ {/* The job title trails the name, as it does on the shelf's cards;
+ the chip below belongs to the area the expert works in. */}
<ExpertIdentityDetails
name={expert.name}
- role={expert.role}
- jobTitle={expert.job_title}
+ role={area || expert.job_title ? undefined : expert.role}
size="page"
+ nameAlign="baseline"
+ nameAccessory={
+ expert.job_title ? (
+ <span className="min-w-0 truncate text-base text-zinc-500">
+ {expert.job_title}
+ </span>
+ ) : undefined
+ }
/>
+ {area ? (
+ <CategoryTag category={area} size="default" className="mt-2" />
+ ) : null}
</div>
<div className="w-full sm:w-auto">{actions}</div>
</div>
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertPill.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertPill.tsx
index 9ee9b07dab..ed6495e2a2 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertPill.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertPill.tsx
@@ -2,6 +2,10 @@ import { Icon } from "@/components/atoms/Icon/Icon";
import { cn } from "@/lib/utils";
import { ArrowUpRight01Icon } from "@hugeicons/core-free-icons";
import Link from "next/link";
+import {
+ CHIP_SHAPE,
+ CHIP_SIZE,
+} from "../../../components/CategoryChip/CategoryChip";
import type { ReactNode } from "react";
interface Props {
@@ -10,8 +14,9 @@ interface Props {
href?: string;
}
-const PILL_CLASS =
- "flex min-w-0 items-center gap-2 rounded-lg bg-white px-2.5 py-1.5 text-sm text-zinc-700 ring-1 ring-inset ring-zinc-200/80";
+// The marketplace's chip, so a skill here and a skill on a card are the
+// same object.
+const PILL_CLASS = cn(CHIP_SHAPE, CHIP_SIZE.default, "min-w-0 text-zinc-700");
/** The flat item the expert page lists services and skills with. */
export function ExpertPill({ icon, label, href }: Props) {
@@ -33,7 +38,7 @@ export function ExpertPill({ icon, label, href }: Props) {
href={href}
className={cn(
PILL_CLASS,
- "outline-none transition-colors hover:text-zinc-900 hover:ring-zinc-300 focus-visible:ring-2 focus-visible:ring-violet-600",
+ "outline-none transition-colors hover:border-zinc-300 hover:text-zinc-900 focus-visible:ring-2 focus-visible:ring-violet-600",
)}
>
{content}
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertPlanNote.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertPlanNote.tsx
index 0978de1650..6e3e476e25 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertPlanNote.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertPlanNote.tsx
@@ -1,4 +1,6 @@
import { creditsToUsdLabel } from "@/lib/credits";
+import { Coins01Icon } from "@hugeicons/core-free-icons";
+import { ExpertNoteCard } from "./ExpertNoteCard";
import { ExpertSection } from "./ExpertSection";
interface Props {
@@ -9,12 +11,14 @@ interface Props {
export function ExpertPlanNote({ name, weeklyBudget }: Props) {
return (
<ExpertSection title="Included with your plan">
- <p className="text-[15px] leading-6 text-zinc-600">
- {`Hiring ${name} costs nothing extra. Their work draws on your existing balance`}
- {weeklyBudget
- ? `, capped at ${creditsToUsdLabel(weeklyBudget)} a week — a limit you can change once they are on your team.`
- : "."}
- </p>
+ <ExpertNoteCard icon={Coins01Icon}>
+ <p className="text-base leading-7 text-zinc-600">
+ {`Hiring ${name} costs nothing extra. Their work draws on your existing balance`}
+ {weeklyBudget
+ ? `, capped at ${creditsToUsdLabel(weeklyBudget)} a week — a limit you can change once they are on your team.`
+ : "."}
+ </p>
+ </ExpertNoteCard>
</ExpertSection>
);
}
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertProtectedRules.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertProtectedRules.tsx
index dd0636bdcf..142849deef 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertProtectedRules.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertProtectedRules.tsx
@@ -1,5 +1,6 @@
import { Icon } from "@/components/atoms/Icon/Icon";
-import { LockIcon } from "@hugeicons/core-free-icons";
+import { CheckmarkCircle02Icon, LockIcon } from "@hugeicons/core-free-icons";
+import { ExpertNoteCard } from "./ExpertNoteCard";
import { ExpertSection } from "./ExpertSection";
interface Props {
@@ -17,22 +18,24 @@ export function ExpertProtectedRules({ rules }: Props) {
title="Rules this expert cannot break"
description="Part of every expert's soul, and not editable by anyone."
>
- <ul className="flex flex-col gap-2">
- {rules.map((rule) => (
- <li
- key={rule}
- className="flex gap-2.5 text-[15px] leading-6 text-zinc-600"
- >
- <Icon
- icon={LockIcon}
- size={16}
- aria-hidden="true"
- className="mt-1 shrink-0 text-zinc-400"
- />
- <span>{rule}</span>
- </li>
- ))}
- </ul>
+ <ExpertNoteCard icon={LockIcon}>
+ <ul className="flex flex-col gap-2">
+ {rules.map((rule) => (
+ <li
+ key={rule}
+ className="flex gap-2.5 text-base leading-7 text-zinc-600"
+ >
+ <Icon
+ icon={CheckmarkCircle02Icon}
+ size={18}
+ aria-hidden="true"
+ className="mt-1 shrink-0 text-emerald-600"
+ />
+ <span>{rule}</span>
+ </li>
+ ))}
+ </ul>
+ </ExpertNoteCard>
</ExpertSection>
);
}
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertSection.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertSection.tsx
index 6b43ae4450..2cf141c693 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertSection.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertSection.tsx
@@ -14,19 +14,21 @@ export function ExpertSection({ title, count, description, children }: Props) {
<section aria-labelledby={headingId}>
<h2
id={headingId}
- className="flex items-baseline gap-2 text-base font-medium text-zinc-900"
+ className="flex items-baseline gap-2 text-xl font-semibold tracking-[-0.02em] text-zinc-900"
>
{title}
{count !== undefined ? (
- <span className="text-sm font-normal tabular-nums text-zinc-400">
+ <span className="text-base font-normal tabular-nums text-zinc-400">
{count}
</span>
) : null}
</h2>
{description ? (
- <p className="mt-1 text-sm leading-5 text-zinc-500">{description}</p>
+ <p className="mt-1.5 text-base leading-6 text-zinc-500">
+ {description}
+ </p>
) : null}
- <div className="mt-3">{children}</div>
+ <div className="mt-4">{children}</div>
</section>
);
}
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertSkills.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertSkills.tsx
index f096a67071..1a480d00d5 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertSkills.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/[expertId]/components/ExpertSkills.tsx
@@ -1,29 +1,43 @@
import type { ExpertBundledSkill } from "@/app/api/__generated__/models/expertBundledSkill";
import { Icon } from "@/components/atoms/Icon/Icon";
+import { cn } from "@/lib/utils";
import { BookOpen01Icon } from "@hugeicons/core-free-icons";
-import type { ExpertAccent } from "../../../components/ExpertsSection/helpers";
-import { ExpertPill } from "./ExpertPill";
+import { getCategoryAccent } from "../../../components/ExpertsSection/helpers";
+import { ShelfTile } from "../../../components/Shelf/ShelfTile";
import { ExpertSection } from "./ExpertSection";
interface Props {
skills: ExpertBundledSkill[];
- accent: ExpertAccent;
+ /** The expert's area, whose glyph marks the skills as its work. */
+ category?: string;
}
-export function ExpertSkills({ skills, accent }: Props) {
+/** The same tile the marketplace's Skills shelf uses, so a skill here and a
+ * skill there are one object — and the description a pill had no room for
+ * gets its line. */
+export function ExpertSkills({ skills, category }: Props) {
+ const { accent, icon } = getCategoryAccent(category);
+
if (skills.length === 0) return null;
return (
<ExpertSection title="Skills">
- <ul className="flex flex-wrap gap-2">
+ <ul className="grid grid-cols-1 gap-3 md:grid-cols-2">
{skills.map((skill) => (
- <ExpertPill
+ <ShelfTile
key={skill.id}
- icon={
- <Icon icon={BookOpen01Icon} size={16} className={accent.icon} />
- }
- label={skill.title}
href={`/marketplace/skills/${skill.slug}`}
+ mediaClassName={cn("h-10 w-10", accent.pill)}
+ media={
+ <Icon
+ icon={icon ?? BookOpen01Icon}
+ size={18}
+ className={accent.icon}
+ aria-hidden
+ />
+ }
+ title={skill.title}
+ subtitle={skill.description}
/>
))}
</ul>
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/__tests__/expert-page.test.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/__tests__/expert-page.test.tsx
index 7745df9dea..125a5287cd 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/__tests__/expert-page.test.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/experts/__tests__/expert-page.test.tsx
@@ -194,6 +194,7 @@ describe("Marketplace expert page", () => {
expect(
await screen.findByRole("heading", { level: 1, name: "Maria" }),
).toBeDefined();
+ expect(screen.getByText("Marketing Strategist")).toBeDefined();
expect(screen.getByText("Grows your brand while you sleep")).toBeDefined();
expect(
within(screen.getByRole("region", { name: /^Workflows/ })).getByText(
@@ -292,7 +293,9 @@ describe("Marketplace expert page", () => {
renderPage();
- const link = await screen.findByRole("link", { name: "Brand voice guide" });
+ const link = await screen.findByRole("link", {
+ name: /Brand voice guide/,
+ });
expect(link.getAttribute("href")).toBe(
"/marketplace/skills/brand-voice-guide",
);
@@ -322,7 +325,7 @@ describe("Marketplace expert page", () => {
renderPage();
expect(
- await screen.findByRole("link", { name: "SEO content brief" }),
+ await screen.findByRole("link", { name: /^SEO content brief/ }),
).toBeDefined();
expect(screen.queryByText("Seo content brief")).toBeNull();
});
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/page.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/page.tsx
index 6a180fef06..2f2ffb3a60 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/page.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/page.tsx
@@ -3,7 +3,7 @@ import {
prefetchGetV2ListStoreAgentsQuery,
prefetchGetV2ListStoreCreatorsQuery,
} from "@/app/api/__generated__/endpoints/store/store";
-import { SHELF_SIZE } from "./components/SkillsSection/helpers";
+import { SHELF_PREVIEW_SIZE } from "./components/Shelf/helpers";
import { getQueryClient } from "@/lib/react-query/queryClient";
import { buildPageMetadata } from "@/lib/metadata";
import { dehydrate, HydrationBoundary } from "@tanstack/react-query";
@@ -79,7 +79,7 @@ export default async function MarketplacePage(): Promise<React.ReactElement> {
// client gate hides the shelf either way.
prefetchGetV2ListMarketplaceSkillsQuery(
queryClient,
- { page_size: SHELF_SIZE },
+ { page_size: SHELF_PREVIEW_SIZE },
{
query: {
staleTime: 60 * 1000, // 60 seconds
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/search/components/MainSearchResultPage/MainSearchResultPage.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/search/components/MainSearchResultPage/MainSearchResultPage.tsx
index e2a9c134a7..ab6889230f 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,7 +10,7 @@ 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 { AITeamIcon } from "@/components/atoms/AITeamIcon/AITeamIcon";
+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";
@@ -121,7 +121,7 @@ export const MainSearchResultPage = ({
{showExperts && expertsCount > 0 ? (
<section aria-labelledby="search-experts-heading">
<SectionHeader
- titleIcon={<AITeamIcon size={30} />}
+ titleIcon={<Icon icon={UserAiIcon} size={30} aria-hidden />}
title="Experts"
titleId="search-experts-heading"
/>
@@ -161,10 +161,7 @@ export const MainSearchResultPage = ({
) : null}
<div className="h-[1rem] w-full" />
{showCreators && creatorsCount > 0 && creators && (
- <FeaturedCreators
- featuredCreators={creators}
- title="Creators"
- />
+ <FeaturedCreators featuredCreators={creators} />
)}
</div>
</>
diff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/skills/components/SkillsBrowsePage/SkillsBrowsePage.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/skills/components/SkillsBrowsePage/SkillsBrowsePage.tsx
index 964761ef95..f5caec5a47 100644
--- a/autogpt_platform/frontend/src/app/(platform)/marketplace/skills/components/SkillsBrowsePage/SkillsBrowsePage.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/skills/components/SkillsBrowsePage/SkillsBrowsePage.tsx
@@ -10,9 +10,9 @@ import { Flag, useFlagStatus } from "@/services/feature-flags/use-get-flag";
import { ArrowLeft02Icon, BookOpen01Icon } from "@hugeicons/core-free-icons";
import Link from "next/link";
import { notFound } from "next/navigation";
-import { CategoryFilter } from "../../../components/CategoryFilter/CategoryFilter";
import { SearchBar } from "../../../components/SearchBar/SearchBar";
import { SkillCard } from "../../../components/SkillsSection/components/SkillCard";
+import { SkillTopicChips } from "../../../components/SkillTopicChips/SkillTopicChips";
import { useSkillsBrowsePage } from "./useSkillsBrowsePage";
const GRID_CLASS = "grid grid-cols-1 gap-5 md:grid-cols-2";
@@ -67,7 +67,13 @@ export function SkillsBrowsePage() {
/>
</div>
- <CategoryFilter selected={category} onSelect={setCategory} />
+ <div className="mb-8">
+ <SkillTopicChips
+ selected={category}
+ onSelect={setCategory}
+ size="default"
+ />
+ </div>
{!ready || isLoading ? (
<div
diff --git a/autogpt_platform/frontend/src/components/atoms/AITeamIcon/AITeamIcon.stories.tsx b/autogpt_platform/frontend/src/components/atoms/AITeamIcon/AITeamIcon.stories.tsx
deleted file mode 100644
index 13477ad6e8..0000000000
--- a/autogpt_platform/frontend/src/components/atoms/AITeamIcon/AITeamIcon.stories.tsx
+++ /dev/null
@@ -1,49 +0,0 @@
-import type { Meta, StoryObj } from "@storybook/nextjs";
-import { AITeamIcon } from "./AITeamIcon";
-
-const meta: Meta<typeof AITeamIcon> = {
- title: "Atoms/AITeamIcon",
- tags: ["autodocs"],
- component: AITeamIcon,
- parameters: {
- layout: "centered",
- docs: {
- description: {
- component:
- "Brand mark for the AI team surfaces (marketplace experts section and the Team page). It inherits the current text color, so set the color on a parent or via className.",
- },
- },
- },
- argTypes: {
- size: {
- control: { type: "number" },
- description: "Width and height in pixels.",
- },
- className: { control: { type: "text" } },
- },
-};
-
-export default meta;
-type Story = StoryObj<typeof meta>;
-
-export const Default: Story = {
- args: { size: 36 },
-};
-
-export const Sizes: Story = {
- render: renderSizes,
-};
-
-export const Colored: Story = {
- args: { size: 48, className: "text-violet-600" },
-};
-
-function renderSizes() {
- return (
- <div className="flex items-end gap-4">
- {[16, 24, 36, 64].map((size) => (
- <AITeamIcon key={size} size={size} />
- ))}
- </div>
- );
-}
diff --git a/autogpt_platform/frontend/src/components/atoms/AITeamIcon/AITeamIcon.tsx b/autogpt_platform/frontend/src/components/atoms/AITeamIcon/AITeamIcon.tsx
deleted file mode 100644
index ddebc32ae0..0000000000
--- a/autogpt_platform/frontend/src/components/atoms/AITeamIcon/AITeamIcon.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-interface Props {
- size?: number;
- className?: string;
-}
-
-export function AITeamIcon({ size = 16, className }: Props) {
- return (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 100 100"
- width={size}
- height={size}
- fill="currentColor"
- aria-hidden="true"
- className={className}
- >
- <path d="M 78.533203 4.0917969 C 77.486281 4.1254219 76.345859 4.2685781 75.099609 4.5175781 C 72.052609 5.1235781 70.442937 6.1032813 68.835938 7.4882812 C 65.805937 10.097281 64.988359 15.212297 65.068359 17.279297 C 65.075359 17.448297 65.083797 17.606625 65.091797 17.765625 C 64.376797 17.481625 61.574375 16.542875 59.734375 18.421875 C 57.949375 20.241875 55.914312 26.00975 57.945312 29.96875 C 58.047312 30.16775 58.129219 30.363594 58.199219 30.558594 C 60.384219 30.865594 64.065969 31.195047 65.667969 29.123047 C 67.803969 26.360047 71.320609 27.041594 71.099609 32.058594 C 71.411609 32.616594 71.741078 33.158969 72.080078 33.667969 C 72.804078 33.457969 73.424125 33.169719 73.953125 32.886719 C 72.781125 31.209719 71.456469 28.461172 70.730469 26.701172 C 70.574469 26.323172 70.203734 26.085938 69.802734 26.085938 C 69.754734 26.085938 69.707203 26.088703 69.658203 26.095703 C 69.305203 26.148703 68.178297 26.177781 67.654297 25.675781 C 67.550297 25.575781 67.236078 25.275797 67.330078 24.341797 C 67.392078 23.723797 67.646422 23.345594 68.107422 23.183594 C 68.774422 22.952594 69.761625 23.190078 70.265625 23.705078 C 70.535625 23.980078 70.937734 24.079125 71.302734 23.953125 C 73.030734 23.365125 73.572531 21.07825 74.144531 18.65625 C 74.540531 16.98225 74.987766 15.0855 75.759766 14.4375 C 77.603766 12.8905 83.294469 12.210641 85.730469 13.556641 C 88.723469 20.244641 86.710187 29.450813 84.367188 33.632812 C 83.825187 34.600812 82.916016 35.222422 81.666016 35.482422 C 80.120016 35.802422 78.346078 35.525641 76.955078 35.056641 C 76.834078 36.119641 76.367375 37.302563 75.734375 38.476562 C 76.675375 38.518563 77.618906 38.462703 78.503906 38.345703 C 79.659906 38.191703 80.985828 37.918156 82.173828 37.410156 C 83.079828 37.208156 83.877781 36.853328 84.550781 36.361328 C 84.891781 36.739328 85.246562 37.291187 85.101562 37.867188 C 84.845562 38.894188 83.088297 39.855547 80.404297 40.435547 C 78.037297 40.947547 76.147828 40.760234 74.673828 40.240234 C 74.280828 40.833234 73.875469 41.396969 73.480469 41.917969 C 74.657469 42.416969 76.056125 42.742188 77.703125 42.742188 C 78.661125 42.742188 79.704125 42.634625 80.828125 42.390625 C 84.479125 41.600625 86.569016 40.242516 87.041016 38.353516 C 87.198016 37.723516 87.147969 37.076219 86.917969 36.449219 C 90.084969 37.368219 92.479297 38.961562 94.029297 41.226562 C 94.943297 42.562562 95.582375 45.633328 95.859375 47.361328 C 93.848375 48.182328 87.590344 50.544859 79.152344 51.880859 C 76.347344 52.323859 73.867344 52.456062 71.652344 52.414062 C 71.666344 53.073062 71.672062 53.7495 71.664062 54.4375 C 71.849063 54.4405 72.025844 54.449219 72.214844 54.449219 C 74.381844 54.449219 76.798797 54.276516 79.466797 53.853516 C 90.031797 52.181516 97.078047 49.026578 97.373047 48.892578 C 97.773047 48.710578 98.008125 48.288516 97.953125 47.853516 C 97.881125 47.296516 97.212688 42.337656 95.679688 40.097656 C 93.668688 37.157656 90.5145 35.191656 86.3125 34.222656 C 88.2855 30.415656 90.864578 21.254078 87.892578 13.580078 C 87.928578 13.470078 87.952266 13.353469 87.947266 13.230469 C 87.764266 8.7534687 86.300813 7.2197344 85.757812 6.8027344 C 83.972813 4.8707344 81.673969 3.9909219 78.533203 4.0917969 z M 82.728516 19.4375 C 82.194516 19.3965 81.706734 19.833766 81.677734 20.384766 C 81.608734 21.726766 82.425812 23.789313 83.757812 25.070312 C 83.422813 25.437313 82.817297 25.839219 82.279297 26.074219 C 81.772297 26.292219 81.540766 26.881672 81.759766 27.388672 C 81.922766 27.766672 82.291734 27.992188 82.677734 27.992188 C 82.809734 27.992188 82.943266 27.966156 83.072266 27.910156 C 83.511266 27.721156 85.717281 26.684312 85.988281 24.945312 C 86.048281 24.559313 85.877781 24.173031 85.550781 23.957031 C 84.480781 23.251031 83.625781 21.460281 83.675781 20.488281 C 83.704781 19.936281 83.279516 19.4665 82.728516 19.4375 z M 26.068359 20.824219 C 25.011714 20.868339 23.879894 21.02016 22.658203 21.263672 C 19.667672 21.859483 17.912689 22.859941 16.214844 24.322266 C 14.664791 25.657839 13.709366 27.575241 13.115234 29.439453 C 12.521102 31.303665 12.290385 33.108729 12.339844 34.390625 C 12.358512 34.875412 12.385823 35.317114 12.417969 35.726562 C 12.380462 35.733661 12.388183 35.728856 12.345703 35.738281 A 1.0001 1.0001 0 0 0 12.121094 35.597656 C 12.121094 35.597656 11.273724 35.211415 10.173828 35.076172 C 9.0739327 34.940929 7.5559507 35.051112 6.4238281 36.193359 C 5.3339268 37.293004 4.4732469 39.171213 4.0019531 41.341797 C 3.5306593 43.512381 3.4931332 45.976669 4.5683594 48.050781 C 6.1170187 51.038146 3.9765625 53.53125 3.9765625 53.53125 A 1.0001 1.0001 0 0 0 4.6855469 55.169922 C 4.6855469 55.169922 7.3773012 55.214182 9.59375 53.410156 C 9.7325466 54.273883 9.6796875 55.160156 9.6796875 55.160156 A 1.0001 1.0001 0 0 0 11.335938 56.148438 C 11.335938 56.148438 12.222772 55.292517 13.169922 54.158203 C 14.117072 53.023889 15.170425 51.680091 15.484375 50.220703 C 15.878775 48.385319 15.780642 46.833161 15.615234 45.755859 C 15.840021 45.753288 16.028314 45.722539 16.238281 45.707031 C 16.409643 46.113996 16.831121 47.148228 17.660156 48.771484 C 18.435351 50.289321 19.309461 51.919905 20.351562 53.076172 C 19.416247 53.418203 18.214638 53.888243 16.742188 54.513672 A 1.0001 1.0001 0 0 0 16.308594 54.693359 C 16.221535 54.73105 16.14638 54.760384 16.058594 54.798828 C 12.930364 56.168753 9.3787701 57.936232 7.4433594 60.060547 C 3.7901762 64.070296 3.6367187 69.109375 3.6367188 69.109375 A 1.0001 1.0001 0 0 0 4.0429688 69.949219 C 4.0429688 69.949219 6.0393126 71.403315 9.8691406 72.478516 C 13.698969 73.553716 19.440743 74.305571 27.136719 73.101562 C 34.818284 71.899327 40.309338 70.031666 43.724609 68.439453 A 1.0001 1.0001 0 1 0 42.880859 66.626953 C 39.668131 68.12474 34.34056 69.951188 26.828125 71.126953 C 19.407101 72.287946 13.974078 71.553284 10.410156 70.552734 C 9.3818522 70.264045 8.6141381 69.985811 7.953125 69.722656 C 7.9662035 68.89067 8.1657171 63.198705 11.332031 59.511719 C 12.842492 58.547137 14.702619 57.605412 16.464844 56.816406 C 18.079026 59.463598 22.08588 62.354701 28.580078 60.949219 C 32.152891 60.175986 34.172167 58.965928 34.929688 57.265625 C 35.298574 56.437635 35.279439 55.532836 35 54.753906 C 36.024612 55.154003 37.009504 55.704221 37.943359 56.353516 C 37.784432 56.780492 37.668939 57.240134 37.644531 57.746094 C 37.573581 59.213667 37.992216 60.4085 38.708984 61.234375 C 39.425753 62.06025 40.370877 62.498803 41.253906 62.734375 C 42.400557 63.040275 43.321665 63.028316 43.962891 62.984375 C 44.174228 63.461083 44.66805 64.615773 45.658203 66.460938 C 46.660579 68.328878 47.832619 70.364088 49.175781 71.691406 C 48.041157 72.100315 46.585338 72.661043 44.753906 73.429688 A 1.0001 1.0001 0 0 0 44.236328 73.642578 C 44.129667 73.68819 44.037254 73.722997 43.929688 73.769531 C 40.149026 75.405072 35.855853 77.527596 33.560547 80.015625 C 29.188983 84.7542 29 90.728516 29 90.728516 A 1.0001 1.0001 0 0 0 29.4375 91.589844 C 29.4375 91.589844 31.79531 93.177878 36.388672 94.394531 C 40.982034 95.611184 47.889475 96.509143 57.207031 95.308594 C 59.847615 94.968481 65.810966 94.294658 71.580078 91.830078 L 71.585938 91.826172 C 75.592934 90.183096 77.5893 88.688468 79.949219 86.884766 A 1.0001 1.0001 0 0 0 80.302734 85.816406 C 80.302734 85.816406 78.919749 80.889454 77.132812 77.580078 A 1.0001 1.0001 0 0 0 77.130859 77.580078 C 75.26814 74.132544 70.933143 71.908345 65.46875 70.798828 C 66.990759 68.037711 68.484675 63.609298 69.095703 58.607422 C 69.648323 54.083681 69.465412 49.106051 67.78125 44.595703 C 72.70226 42.244662 75.140625 36.013672 75.140625 36.013672 A 1.0001 1.0001 0 0 0 73.798828 34.722656 C 71.71752 35.683104 69.530904 35.451951 68.490234 35.300781 C 68.684602 34.358739 68.901272 33.387266 68.929688 32.541016 C 68.970767 31.317486 68.908203 30.363281 68.908203 30.363281 A 1.0001 1.0001 0 0 0 67.916016 29.427734 A 1.0001 1.0001 0 0 0 67.125 29.806641 C 65.239845 32.189362 63.159913 32.591885 60.501953 32.601562 C 57.843993 32.611263 54.73081 32.084402 51.433594 32.71875 C 47.448616 33.484721 43.837707 35.778936 41.572266 37.458984 C 39.822362 38.756693 38.828805 40.831498 38.888672 43.001953 C 39.043809 48.633035 39.753141 52.621888 40.058594 54.117188 C 39.718121 54.266859 39.39236 54.453681 39.09375 54.697266 C 37.617947 53.670466 35.998651 52.889729 34.302734 52.419922 C 35.535368 50.098612 36.720596 46.488694 37.212891 42.410156 C 37.694074 38.423672 37.486128 34.014046 35.855469 30.074219 C 35.737644 27.636267 35.247086 26.044899 34.722656 25.041016 C 34.454851 24.528373 34.179603 24.167891 33.953125 23.925781 C 33.761749 23.721195 33.612098 23.621828 33.552734 23.580078 C 32.31396 22.262723 30.801836 21.391304 29.025391 21.03125 C 28.106542 20.845016 27.125005 20.780103 26.068359 20.824219 z M 30.027344 29.634766 C 31.575823 29.673568 32.982746 29.973671 33.833984 30.458984 C 35.429217 34.04677 35.697358 38.285685 35.228516 42.169922 C 34.745752 46.1695 33.49998 49.785208 32.398438 51.751953 C 31.4334 53.474975 29.582172 53.985129 27.496094 53.876953 C 25.410015 53.768777 23.208695 52.895037 22.408203 52.285156 C 21.69259 51.739943 20.375841 49.692911 19.441406 47.863281 C 18.506971 46.033652 17.832031 44.398437 17.832031 44.398438 A 1.0001 1.0001 0 0 0 16.755859 43.791016 C 16.755859 43.791016 15.910378 43.893413 15.226562 43.681641 C 14.884655 43.575754 14.627681 43.416797 14.458984 43.183594 C 14.290288 42.950391 14.149052 42.594659 14.222656 41.865234 C 14.330589 40.795149 14.749349 40.597338 15.431641 40.507812 C 16.113933 40.418292 17.045123 40.753018 17.439453 41.15625 A 1.0001 1.0001 0 0 0 18.476562 41.404297 C 19.506744 41.053561 20.069927 40.153714 20.464844 39.222656 C 20.859761 38.291598 21.118135 37.222957 21.373047 36.150391 C 21.88287 34.005259 22.525332 31.878606 23.183594 31.326172 C 24.004809 30.636983 26.209013 29.887835 28.447266 29.685547 C 28.979668 29.63743 29.511184 29.621831 30.027344 29.634766 z M 30.587891 36.716797 A 1.0001 1.0001 0 0 0 29.552734 37.679688 C 29.502644 38.657564 29.817145 39.674287 30.320312 40.654297 C 30.673081 41.341375 31.260887 41.879675 31.822266 42.427734 C 31.687907 42.655813 31.512951 42.937331 31.130859 43.205078 C 30.635463 43.552223 30.15625 43.763672 30.15625 43.763672 A 1.0001 1.0001 0 1 0 30.949219 45.599609 C 30.949219 45.599609 31.59399 45.322605 32.277344 44.84375 C 32.960698 44.364895 33.821101 43.680446 34.003906 42.503906 A 1.0001 1.0001 0 0 0 33.566406 41.515625 C 33.042586 41.169638 32.478489 40.483928 32.097656 39.742188 C 31.716824 39.000447 31.529874 38.189374 31.550781 37.78125 A 1.0001 1.0001 0 0 0 30.587891 36.716797 z M 9.3554688 37.027344 C 9.544407 37.024082 9.7375364 37.03692 9.9296875 37.060547 C 10.015322 37.071077 10.001151 37.087373 10.082031 37.101562 C 9.8293142 37.643369 9.5911298 38.262026 9.4882812 39.042969 A 1.0001 1.0001 0 0 0 9.4882812 39.044922 C 9.3240302 40.298247 10.074669 41.24039 10.699219 41.808594 C 11.144505 42.213707 11.379251 42.314971 11.603516 42.441406 C 11.715814 43.171826 11.835295 43.895198 12.214844 44.394531 C 12.536992 44.818348 13.01523 44.962785 13.458984 45.171875 C 13.554914 45.467816 14.08697 47.205599 13.529297 49.800781 C 13.388218 50.454139 12.530505 51.769217 11.681641 52.800781 C 11.53619 52.180805 11.289132 51.553627 10.773438 50.984375 A 1.0001 1.0001 0 0 0 9.2167969 51.074219 C 8.4401325 52.163596 7.3841254 52.674672 6.4960938 52.927734 C 7.131006 51.495226 7.596184 49.544852 6.34375 47.128906 C 5.5879761 45.671018 5.5510751 43.635291 5.9570312 41.765625 C 6.3629874 39.895959 7.2556513 38.194918 7.84375 37.601562 C 8.2531581 37.188495 8.7886539 37.03713 9.3554688 37.027344 z M 12.675781 37.71875 C 12.727817 38.017366 12.776648 38.377366 12.830078 38.605469 C 12.935503 39.055541 13.048216 39.387458 13.136719 39.615234 C 13.096224 39.659766 13.057968 39.706885 13.019531 39.753906 C 12.821266 39.706476 12.593163 39.647113 12.367188 39.548828 C 12.108137 39.436159 11.893111 39.287383 11.791016 39.171875 C 11.68892 39.056367 11.665717 39.023588 11.679688 38.853516 C 11.733038 38.205782 11.984138 38.032114 12.302734 37.861328 C 12.440505 37.787476 12.566361 37.748576 12.675781 37.71875 z M 60.560547 42.994141 C 62.502174 43.040144 64.276409 43.41131 65.363281 44.044922 C 67.363295 48.439036 67.690406 53.622954 67.111328 58.363281 C 66.51831 63.217731 64.992921 67.597308 63.626953 70.005859 C 62.399517 72.170144 60.026989 72.814598 57.427734 72.681641 C 54.82848 72.548683 52.122716 71.498518 51.083984 70.716797 C 50.104371 69.979566 48.549765 67.619149 47.419922 65.513672 C 46.290079 63.408195 45.480469 61.542969 45.480469 61.542969 A 1.0001 1.0001 0 0 0 44.416016 60.951172 C 44.416016 60.951172 43.024724 61.135638 41.769531 60.800781 C 41.141935 60.633353 40.590966 60.350453 40.220703 59.923828 C 39.85044 59.497203 39.591024 58.908223 39.642578 57.841797 C 39.681708 57.030622 39.936378 56.600443 40.3125 56.275391 C 40.688622 55.950338 41.252282 55.740604 41.916016 55.675781 C 43.243483 55.546135 44.899364 56.152443 45.351562 56.609375 A 1.0001 1.0001 0 0 0 46.380859 56.853516 C 47.526069 56.468698 48.198516 55.473549 48.669922 54.404297 C 49.141328 53.335045 49.453445 52.094192 49.759766 50.845703 C 50.372408 48.348725 51.092033 45.860511 52.021484 45.089844 C 53.096377 44.19935 55.81478 43.305674 58.582031 43.058594 C 59.247005 42.99922 59.913338 42.978806 60.560547 42.994141 z M 62.224609 53.591797 A 1.0001 1.0001 0 0 0 61.429688 55.119141 C 61.429688 55.119141 62.133263 56.292187 62.847656 57.558594 C 63.204853 58.191797 63.56509 58.84821 63.833984 59.378906 C 63.968431 59.644255 64.080406 59.880126 64.154297 60.052734 C 64.169417 60.088064 64.160595 60.06193 64.171875 60.09375 C 64.139535 60.1366 64.127719 60.15794 64.074219 60.216797 C 63.866648 60.445157 63.525119 60.74878 63.173828 61.029297 C 62.471246 61.59033 61.738281 62.072266 61.738281 62.072266 A 1.0001 1.0001 0 1 0 62.835938 63.744141 C 62.835938 63.744141 63.626707 63.226763 64.421875 62.591797 C 64.819459 62.274314 65.22029 61.93039 65.554688 61.5625 C 65.721885 61.378555 65.873247 61.190812 66.003906 60.958984 C 66.134565 60.727157 66.279314 60.430093 66.220703 59.990234 C 66.177283 59.664343 66.093596 59.502516 65.992188 59.265625 C 65.890777 59.028734 65.763569 58.763511 65.617188 58.474609 C 65.324425 57.896806 64.955272 57.223968 64.589844 56.576172 C 63.858987 55.280579 63.144531 54.089844 63.144531 54.089844 A 1.0001 1.0001 0 0 0 62.324219 53.591797 A 1.0001 1.0001 0 0 0 62.224609 53.591797 z M 32.521484 54.541016 C 32.790132 54.832832 33.009931 55.128643 33.113281 55.400391 C 33.259159 55.783959 33.26504 56.088698 33.103516 56.451172 C 32.780537 57.176119 31.440437 58.283373 28.15625 58.994141 C 22.62139 60.192001 19.580861 57.883249 18.328125 56.017578 C 18.533929 55.933101 18.760413 55.832647 18.957031 55.753906 C 21.062953 56.972021 23.78837 57.029484 26.126953 56.71875 C 27.487512 56.53809 29.078836 56.210772 30.433594 55.548828 C 31.180473 55.336063 31.888091 55.004609 32.521484 54.541016 z M 63.738281 72.912109 C 64.202725 73.347333 64.541394 73.812037 64.707031 74.242188 C 64.898721 74.739992 64.906139 75.164037 64.689453 75.644531 C 64.256086 76.60552 62.56053 77.946726 58.548828 78.804688 C 51.57511 80.296118 47.761873 77.295274 46.277344 74.962891 C 46.558814 74.84782 46.860623 74.719965 47.128906 74.613281 C 49.708285 76.199061 53.127082 76.271003 56.042969 75.888672 C 58.207777 75.604883 60.838387 75.00743 62.685547 73.607422 C 63.053635 73.40643 63.407466 73.179421 63.738281 72.912109 z M 66.345703 73.046875 C 70.81538 74.17835 74.094748 76.165379 75.373047 78.53125 C 76.775929 81.130026 77.886185 84.767164 78.166016 85.701172 C 76.086361 87.281354 74.339497 88.538195 70.820312 89.980469 A 1.0001 1.0001 0 0 0 70.806641 89.986328 C 65.372116 92.310839 59.634446 92.978607 56.951172 93.324219 C 47.882728 94.49267 41.250028 93.613035 36.900391 92.460938 C 35.710488 92.145766 34.803467 91.842533 34.011719 91.552734 C 34.020613 90.743415 34.207938 83.144817 38.570312 78.714844 C 40.355376 77.641748 42.440838 76.613859 44.419922 75.746094 C 46.260402 78.88245 51.040808 82.454853 58.966797 80.759766 C 63.264095 79.840726 65.637789 78.409058 66.513672 76.466797 C 66.951613 75.495666 66.92462 74.433414 66.574219 73.523438 C 66.510749 73.358611 66.427125 73.203362 66.345703 73.046875 z" />
- </svg>
- );
-}
diff --git a/autogpt_platform/frontend/src/components/molecules/ExpertIdentityDetails/ExpertIdentityDetails.tsx b/autogpt_platform/frontend/src/components/molecules/ExpertIdentityDetails/ExpertIdentityDetails.tsx
index fcfc5296dd..84c7c5d33f 100644
--- a/autogpt_platform/frontend/src/components/molecules/ExpertIdentityDetails/ExpertIdentityDetails.tsx
+++ b/autogpt_platform/frontend/src/components/molecules/ExpertIdentityDetails/ExpertIdentityDetails.tsx
@@ -11,6 +11,9 @@ interface Props {
jobTitle?: string | null;
size?: "compact" | "card" | "page";
nameAccessory?: ReactNode;
+ /** Badges and icons ride the middle of the name; a second line of type
+ * sits on its baseline. */
+ nameAlign?: "center" | "baseline";
areaClassName?: string;
}
@@ -21,6 +24,7 @@ export function ExpertIdentityDetails({
jobTitle,
size = "card",
nameAccessory,
+ nameAlign = "center",
areaClassName,
}: Props) {
const compact = size === "compact";
@@ -34,7 +38,12 @@ export function ExpertIdentityDetails({
compact ? "gap-0" : "gap-1",
)}
>
- <Container className="flex min-w-0 items-center gap-2">
+ <Container
+ className={cn(
+ "flex min-w-0 gap-2",
+ nameAlign === "baseline" ? "items-baseline" : "items-center",
+ )}
+ >
<Text
as={size === "page" ? "h1" : "span"}
variant={compact ? "body-medium" : "lead-semibold"}