diff --git a/autogpt_platform/backend/backend/data/credit.py b/autogpt_platform/backend/backend/data/credit.py index fe76b9c21634..3dbe70cdc33d 100644 --- a/autogpt_platform/backend/backend/data/credit.py +++ b/autogpt_platform/backend/backend/data/credit.py @@ -310,9 +310,9 @@ async def top_up_intent(self, user_id: str, amount: int) -> str: ], mode="payment", success_url=settings.config.platform_base_url - + "/store/credits?topup=success", + + "/marketplace/credits?topup=success", cancel_url=settings.config.platform_base_url - + "/store/credits?topup=cancel", + + "/marketplace/credits?topup=cancel", ) # Create pending transaction diff --git a/autogpt_platform/backend/backend/server/routers/v1.py b/autogpt_platform/backend/backend/server/routers/v1.py index 2b1b76d651b2..263268e9095c 100644 --- a/autogpt_platform/backend/backend/server/routers/v1.py +++ b/autogpt_platform/backend/backend/server/routers/v1.py @@ -196,7 +196,7 @@ async def manage_payment_method( ) -> dict[str, str]: session = stripe.billing_portal.Session.create( customer=await get_stripe_customer_id(user_id), - return_url=settings.config.platform_base_url + "/store/credits", + return_url=settings.config.platform_base_url + "/marketplace/credits", ) if not session: raise HTTPException( diff --git a/autogpt_platform/frontend/src/app/layout.tsx b/autogpt_platform/frontend/src/app/layout.tsx index 60efbde136b2..7dafb49e08bb 100644 --- a/autogpt_platform/frontend/src/app/layout.tsx +++ b/autogpt_platform/frontend/src/app/layout.tsx @@ -49,7 +49,7 @@ export default async function RootLayout({ links={[ { name: "Marketplace", - href: "/store", + href: "/marketplace", }, { name: "Library", @@ -66,7 +66,7 @@ export default async function RootLayout({ { icon: IconType.Edit, text: "Edit profile", - href: "/store/profile", + href: "/marketplace/profile", }, ], }, @@ -75,7 +75,7 @@ export default async function RootLayout({ { icon: IconType.LayoutDashboard, text: "Creator Dashboard", - href: "/store/dashboard", + href: "/marketplace/dashboard", }, { icon: IconType.UploadCloud, @@ -88,7 +88,7 @@ export default async function RootLayout({ { icon: IconType.Settings, text: "Settings", - href: "/store/settings", + href: "/marketplace/settings", }, ], }, diff --git a/autogpt_platform/frontend/src/app/store/(user)/api_keys/page.tsx b/autogpt_platform/frontend/src/app/marketplace/(user)/api_keys/page.tsx similarity index 100% rename from autogpt_platform/frontend/src/app/store/(user)/api_keys/page.tsx rename to autogpt_platform/frontend/src/app/marketplace/(user)/api_keys/page.tsx diff --git a/autogpt_platform/frontend/src/app/store/(user)/credits/page.tsx b/autogpt_platform/frontend/src/app/marketplace/(user)/credits/page.tsx similarity index 100% rename from autogpt_platform/frontend/src/app/store/(user)/credits/page.tsx rename to autogpt_platform/frontend/src/app/marketplace/(user)/credits/page.tsx diff --git a/autogpt_platform/frontend/src/app/store/(user)/dashboard/page.tsx b/autogpt_platform/frontend/src/app/marketplace/(user)/dashboard/page.tsx similarity index 100% rename from autogpt_platform/frontend/src/app/store/(user)/dashboard/page.tsx rename to autogpt_platform/frontend/src/app/marketplace/(user)/dashboard/page.tsx diff --git a/autogpt_platform/frontend/src/app/store/(user)/integrations/page.tsx b/autogpt_platform/frontend/src/app/marketplace/(user)/integrations/page.tsx similarity index 100% rename from autogpt_platform/frontend/src/app/store/(user)/integrations/page.tsx rename to autogpt_platform/frontend/src/app/marketplace/(user)/integrations/page.tsx diff --git a/autogpt_platform/frontend/src/app/store/(user)/layout.tsx b/autogpt_platform/frontend/src/app/marketplace/(user)/layout.tsx similarity index 50% rename from autogpt_platform/frontend/src/app/store/(user)/layout.tsx rename to autogpt_platform/frontend/src/app/marketplace/(user)/layout.tsx index fa6a66fe95e1..07b7d3f4b444 100644 --- a/autogpt_platform/frontend/src/app/store/(user)/layout.tsx +++ b/autogpt_platform/frontend/src/app/marketplace/(user)/layout.tsx @@ -5,13 +5,13 @@ export default function Layout({ children }: { children: React.ReactNode }) { const sidebarLinkGroups = [ { links: [ - { text: "Creator Dashboard", href: "/store/dashboard" }, - { text: "Agent dashboard", href: "/store/agent-dashboard" }, - { text: "Credits", href: "/store/credits" }, - { text: "Integrations", href: "/store/integrations" }, - { text: "API Keys", href: "/store/api_keys" }, - { text: "Profile", href: "/store/profile" }, - { text: "Settings", href: "/store/settings" }, + { text: "Creator Dashboard", href: "/marketplace/dashboard" }, + { text: "Agent dashboard", href: "/marketplace/agent-dashboard" }, + { text: "Credits", href: "/marketplace/credits" }, + { text: "Integrations", href: "/marketplace/integrations" }, + { text: "API Keys", href: "/marketplace/api_keys" }, + { text: "Profile", href: "/marketplace/profile" }, + { text: "Settings", href: "/marketplace/settings" }, ], }, ]; diff --git a/autogpt_platform/frontend/src/app/store/(user)/profile/page.tsx b/autogpt_platform/frontend/src/app/marketplace/(user)/profile/page.tsx similarity index 100% rename from autogpt_platform/frontend/src/app/store/(user)/profile/page.tsx rename to autogpt_platform/frontend/src/app/marketplace/(user)/profile/page.tsx diff --git a/autogpt_platform/frontend/src/app/store/(user)/settings/page.tsx b/autogpt_platform/frontend/src/app/marketplace/(user)/settings/page.tsx similarity index 100% rename from autogpt_platform/frontend/src/app/store/(user)/settings/page.tsx rename to autogpt_platform/frontend/src/app/marketplace/(user)/settings/page.tsx diff --git a/autogpt_platform/frontend/src/app/store/agent/[creator]/[slug]/page.tsx b/autogpt_platform/frontend/src/app/marketplace/agent/[creator]/[slug]/page.tsx similarity index 96% rename from autogpt_platform/frontend/src/app/store/agent/[creator]/[slug]/page.tsx rename to autogpt_platform/frontend/src/app/marketplace/agent/[creator]/[slug]/page.tsx index b5d0ebeaa242..cd6b44439644 100644 --- a/autogpt_platform/frontend/src/app/store/agent/[creator]/[slug]/page.tsx +++ b/autogpt_platform/frontend/src/app/marketplace/agent/[creator]/[slug]/page.tsx @@ -45,10 +45,10 @@ export default async function Page({ }); const breadcrumbs = [ - { name: "Store", link: "/store" }, + { name: "Store", link: "/marketplace" }, { name: agent.creator, - link: `/store/creator/${encodeURIComponent(agent.creator)}`, + link: `/marketplace/creator/${encodeURIComponent(agent.creator)}`, }, { name: agent.agent_name, link: "#" }, ]; diff --git a/autogpt_platform/frontend/src/app/store/creator/[creator]/page.tsx b/autogpt_platform/frontend/src/app/marketplace/creator/[creator]/page.tsx similarity index 98% rename from autogpt_platform/frontend/src/app/store/creator/[creator]/page.tsx rename to autogpt_platform/frontend/src/app/marketplace/creator/[creator]/page.tsx index 7474aef2e7a3..904f02b93f40 100644 --- a/autogpt_platform/frontend/src/app/store/creator/[creator]/page.tsx +++ b/autogpt_platform/frontend/src/app/marketplace/creator/[creator]/page.tsx @@ -47,7 +47,7 @@ export default async function Page({
diff --git a/autogpt_platform/frontend/src/app/marketplace/page.tsx b/autogpt_platform/frontend/src/app/marketplace/page.tsx index b59d651f0b42..297fee0c7fca 100644 --- a/autogpt_platform/frontend/src/app/marketplace/page.tsx +++ b/autogpt_platform/frontend/src/app/marketplace/page.tsx @@ -1,7 +1,179 @@ -"use client"; +import * as React from "react"; +import { HeroSection } from "@/components/agptui/composite/HeroSection"; +import { + FeaturedSection, + FeaturedAgent, +} from "@/components/agptui/composite/FeaturedSection"; +import { + AgentsSection, + Agent, +} from "@/components/agptui/composite/AgentsSection"; +import { BecomeACreator } from "@/components/agptui/BecomeACreator"; +import { + FeaturedCreators, + FeaturedCreator, +} from "@/components/agptui/composite/FeaturedCreators"; +import { Separator } from "@/components/ui/separator"; +import { Metadata } from "next"; +import { + StoreAgentsResponse, + CreatorsResponse, +} from "@/lib/autogpt-server-api/types"; +import BackendAPI from "@/lib/autogpt-server-api"; -import { redirect } from "next/navigation"; +async function getStoreData() { + try { + const api = new BackendAPI(); -export default function Page() { - redirect("/store"); + // Add error handling and default values + let featuredAgents: StoreAgentsResponse = { + agents: [], + pagination: { + total_items: 0, + total_pages: 0, + current_page: 0, + page_size: 0, + }, + }; + let topAgents: StoreAgentsResponse = { + agents: [], + pagination: { + total_items: 0, + total_pages: 0, + current_page: 0, + page_size: 0, + }, + }; + let featuredCreators: CreatorsResponse = { + creators: [], + pagination: { + total_items: 0, + total_pages: 0, + current_page: 0, + page_size: 0, + }, + }; + + try { + [featuredAgents, topAgents, featuredCreators] = await Promise.all([ + api.getStoreAgents({ featured: true }), + api.getStoreAgents({ sorted_by: "runs" }), + api.getStoreCreators({ featured: true, sorted_by: "num_agents" }), + ]); + } catch (error) { + console.error("Error fetching store data:", error); + } + + return { + featuredAgents, + topAgents, + featuredCreators, + }; + } catch (error) { + console.error("Error in getStoreData:", error); + return { + featuredAgents: { + agents: [], + pagination: { + total_items: 0, + total_pages: 0, + current_page: 0, + page_size: 0, + }, + }, + topAgents: { + agents: [], + pagination: { + total_items: 0, + total_pages: 0, + current_page: 0, + page_size: 0, + }, + }, + featuredCreators: { + creators: [], + pagination: { + total_items: 0, + total_pages: 0, + current_page: 0, + page_size: 0, + }, + }, + }; + } +} + +// FIX: Correct metadata +export const metadata: Metadata = { + title: "Marketplace - NextGen AutoGPT", + description: "Find and use AI Agents created by our community", + applicationName: "NextGen AutoGPT Store", + authors: [{ name: "AutoGPT Team" }], + keywords: [ + "AI agents", + "automation", + "artificial intelligence", + "AutoGPT", + "marketplace", + ], + robots: { + index: true, + follow: true, + }, + openGraph: { + title: "Marketplace - NextGen AutoGPT", + description: "Find and use AI Agents created by our community", + type: "website", + siteName: "NextGen AutoGPT Store", + images: [ + { + url: "/images/store-og.png", + width: 1200, + height: 630, + alt: "NextGen AutoGPT Store", + }, + ], + }, + twitter: { + card: "summary_large_image", + title: "Marketplace - NextGen AutoGPT", + description: "Find and use AI Agents created by our community", + images: ["/images/store-twitter.png"], + }, + icons: { + icon: "/favicon.ico", + shortcut: "/favicon-16x16.png", + apple: "/apple-touch-icon.png", + }, +}; + +export default async function Page({}: {}) { + // Get data server-side + const { featuredAgents, topAgents, featuredCreators } = await getStoreData(); + + return ( +
+
+ + + + + + + + +
+
+ ); } diff --git a/autogpt_platform/frontend/src/app/store/search/page.tsx b/autogpt_platform/frontend/src/app/marketplace/search/page.tsx similarity index 100% rename from autogpt_platform/frontend/src/app/store/search/page.tsx rename to autogpt_platform/frontend/src/app/marketplace/search/page.tsx diff --git a/autogpt_platform/frontend/src/app/page.tsx b/autogpt_platform/frontend/src/app/page.tsx index b59d651f0b42..5a079f262994 100644 --- a/autogpt_platform/frontend/src/app/page.tsx +++ b/autogpt_platform/frontend/src/app/page.tsx @@ -3,5 +3,5 @@ import { redirect } from "next/navigation"; export default function Page() { - redirect("/store"); + redirect("/marketplace"); } diff --git a/autogpt_platform/frontend/src/app/signup/actions.ts b/autogpt_platform/frontend/src/app/signup/actions.ts index 0d0c3fb8a45a..80fd19aa90b8 100644 --- a/autogpt_platform/frontend/src/app/signup/actions.ts +++ b/autogpt_platform/frontend/src/app/signup/actions.ts @@ -38,7 +38,7 @@ export async function signup(values: z.infer) { } console.log("Signed up"); revalidatePath("/", "layout"); - redirect("/store/profile"); + redirect("/marketplace/profile"); }, ); } diff --git a/autogpt_platform/frontend/src/app/store/page.tsx b/autogpt_platform/frontend/src/app/store/page.tsx deleted file mode 100644 index c59a12474125..000000000000 --- a/autogpt_platform/frontend/src/app/store/page.tsx +++ /dev/null @@ -1,181 +0,0 @@ -import * as React from "react"; -import { HeroSection } from "@/components/agptui/composite/HeroSection"; -import { - FeaturedSection, - FeaturedAgent, -} from "@/components/agptui/composite/FeaturedSection"; -import { - AgentsSection, - Agent, -} from "@/components/agptui/composite/AgentsSection"; -import { BecomeACreator } from "@/components/agptui/BecomeACreator"; -import { - FeaturedCreators, - FeaturedCreator, -} from "@/components/agptui/composite/FeaturedCreators"; -import { Separator } from "@/components/ui/separator"; -import { Metadata } from "next"; -import { - StoreAgentsResponse, - CreatorsResponse, -} from "@/lib/autogpt-server-api/types"; -import BackendAPI from "@/lib/autogpt-server-api"; - -export const dynamic = "force-dynamic"; - -async function getStoreData() { - try { - const api = new BackendAPI(); - - // Add error handling and default values - let featuredAgents: StoreAgentsResponse = { - agents: [], - pagination: { - total_items: 0, - total_pages: 0, - current_page: 0, - page_size: 0, - }, - }; - let topAgents: StoreAgentsResponse = { - agents: [], - pagination: { - total_items: 0, - total_pages: 0, - current_page: 0, - page_size: 0, - }, - }; - let featuredCreators: CreatorsResponse = { - creators: [], - pagination: { - total_items: 0, - total_pages: 0, - current_page: 0, - page_size: 0, - }, - }; - - try { - [featuredAgents, topAgents, featuredCreators] = await Promise.all([ - api.getStoreAgents({ featured: true }), - api.getStoreAgents({ sorted_by: "runs" }), - api.getStoreCreators({ featured: true, sorted_by: "num_agents" }), - ]); - } catch (error) { - console.error("Error fetching store data:", error); - } - - return { - featuredAgents, - topAgents, - featuredCreators, - }; - } catch (error) { - console.error("Error in getStoreData:", error); - return { - featuredAgents: { - agents: [], - pagination: { - total_items: 0, - total_pages: 0, - current_page: 0, - page_size: 0, - }, - }, - topAgents: { - agents: [], - pagination: { - total_items: 0, - total_pages: 0, - current_page: 0, - page_size: 0, - }, - }, - featuredCreators: { - creators: [], - pagination: { - total_items: 0, - total_pages: 0, - current_page: 0, - page_size: 0, - }, - }, - }; - } -} - -// FIX: Correct metadata -export const metadata: Metadata = { - title: "Marketplace - NextGen AutoGPT", - description: "Find and use AI Agents created by our community", - applicationName: "NextGen AutoGPT Store", - authors: [{ name: "AutoGPT Team" }], - keywords: [ - "AI agents", - "automation", - "artificial intelligence", - "AutoGPT", - "marketplace", - ], - robots: { - index: true, - follow: true, - }, - openGraph: { - title: "Marketplace - NextGen AutoGPT", - description: "Find and use AI Agents created by our community", - type: "website", - siteName: "NextGen AutoGPT Store", - images: [ - { - url: "/images/store-og.png", - width: 1200, - height: 630, - alt: "NextGen AutoGPT Store", - }, - ], - }, - twitter: { - card: "summary_large_image", - title: "Marketplace - NextGen AutoGPT", - description: "Find and use AI Agents created by our community", - images: ["/images/store-twitter.png"], - }, - icons: { - icon: "/favicon.ico", - shortcut: "/favicon-16x16.png", - apple: "/apple-touch-icon.png", - }, -}; - -export default async function Page({}: {}) { - // Get data server-side - const { featuredAgents, topAgents, featuredCreators } = await getStoreData(); - - return ( -
-
- - - - - - - - -
-
- ); -} diff --git a/autogpt_platform/frontend/src/components/agptui/AgentInfo.tsx b/autogpt_platform/frontend/src/components/agptui/AgentInfo.tsx index 03f7d141d7a8..7291b7923e80 100644 --- a/autogpt_platform/frontend/src/components/agptui/AgentInfo.tsx +++ b/autogpt_platform/frontend/src/components/agptui/AgentInfo.tsx @@ -105,7 +105,7 @@ export const AgentInfo: React.FC = ({ by {creator} diff --git a/autogpt_platform/frontend/src/components/agptui/NavbarLink.tsx b/autogpt_platform/frontend/src/components/agptui/NavbarLink.tsx index 8d4094b40c8f..5bfe77d86dd8 100644 --- a/autogpt_platform/frontend/src/components/agptui/NavbarLink.tsx +++ b/autogpt_platform/frontend/src/components/agptui/NavbarLink.tsx @@ -28,7 +28,7 @@ export const NavbarLink = ({ name, href }: NavbarLinkProps) => { : "" } flex items-center justify-start gap-3`} > - {href === "/store" && ( + {href === "/marketplace" && ( diff --git a/autogpt_platform/frontend/src/components/agptui/SearchBar.tsx b/autogpt_platform/frontend/src/components/agptui/SearchBar.tsx index 95e3a3fe87a6..7f23d87f0777 100644 --- a/autogpt_platform/frontend/src/components/agptui/SearchBar.tsx +++ b/autogpt_platform/frontend/src/components/agptui/SearchBar.tsx @@ -36,7 +36,7 @@ export const SearchBar: React.FC = ({ if (searchQuery.trim()) { // Encode the search term and navigate to the desired path const encodedTerm = encodeURIComponent(searchQuery); - router.push(`/store/search?searchTerm=${encodedTerm}`); + router.push(`/marketplace/search?searchTerm=${encodedTerm}`); } }; diff --git a/autogpt_platform/frontend/src/components/agptui/Sidebar.tsx b/autogpt_platform/frontend/src/components/agptui/Sidebar.tsx index 09267bed7f94..08f56faa1fb5 100644 --- a/autogpt_platform/frontend/src/components/agptui/Sidebar.tsx +++ b/autogpt_platform/frontend/src/components/agptui/Sidebar.tsx @@ -46,7 +46,7 @@ export const Sidebar: React.FC = ({ linkGroups }) => {
@@ -56,7 +56,7 @@ export const Sidebar: React.FC = ({ linkGroups }) => { {stripeAvailable && ( @@ -66,7 +66,7 @@ export const Sidebar: React.FC = ({ linkGroups }) => { )} @@ -75,7 +75,7 @@ export const Sidebar: React.FC = ({ linkGroups }) => {
@@ -84,7 +84,7 @@ export const Sidebar: React.FC = ({ linkGroups }) => {
@@ -93,7 +93,7 @@ export const Sidebar: React.FC = ({ linkGroups }) => { @@ -110,7 +110,7 @@ export const Sidebar: React.FC = ({ linkGroups }) => {
@@ -120,7 +120,7 @@ export const Sidebar: React.FC = ({ linkGroups }) => { {stripeAvailable && ( @@ -130,7 +130,7 @@ export const Sidebar: React.FC = ({ linkGroups }) => { )} @@ -139,7 +139,7 @@ export const Sidebar: React.FC = ({ linkGroups }) => {
@@ -148,7 +148,7 @@ export const Sidebar: React.FC = ({ linkGroups }) => {
@@ -157,7 +157,7 @@ export const Sidebar: React.FC = ({ linkGroups }) => { diff --git a/autogpt_platform/frontend/src/components/agptui/composite/AgentsSection.tsx b/autogpt_platform/frontend/src/components/agptui/composite/AgentsSection.tsx index fc4e13af4f53..91cbfb1b016e 100644 --- a/autogpt_platform/frontend/src/components/agptui/composite/AgentsSection.tsx +++ b/autogpt_platform/frontend/src/components/agptui/composite/AgentsSection.tsx @@ -39,7 +39,7 @@ export const AgentsSection: React.FC = ({ const handleCardClick = (creator: string, slug: string) => { router.push( - `/store/agent/${encodeURIComponent(creator)}/${encodeURIComponent(slug)}`, + `/marketplace/agent/${encodeURIComponent(creator)}/${encodeURIComponent(slug)}`, ); }; diff --git a/autogpt_platform/frontend/src/components/agptui/composite/FeaturedCreators.tsx b/autogpt_platform/frontend/src/components/agptui/composite/FeaturedCreators.tsx index bb3ccbec699d..bca4c1fc859f 100644 --- a/autogpt_platform/frontend/src/components/agptui/composite/FeaturedCreators.tsx +++ b/autogpt_platform/frontend/src/components/agptui/composite/FeaturedCreators.tsx @@ -24,7 +24,7 @@ export const FeaturedCreators: React.FC = ({ const router = useRouter(); const handleCardClick = (creator: string) => { - router.push(`/store/creator/${encodeURIComponent(creator)}`); + router.push(`/marketplace/creator/${encodeURIComponent(creator)}`); }; // Only show first 4 creators diff --git a/autogpt_platform/frontend/src/components/agptui/composite/FeaturedSection.tsx b/autogpt_platform/frontend/src/components/agptui/composite/FeaturedSection.tsx index c8d915521252..5c1d257d922c 100644 --- a/autogpt_platform/frontend/src/components/agptui/composite/FeaturedSection.tsx +++ b/autogpt_platform/frontend/src/components/agptui/composite/FeaturedSection.tsx @@ -43,7 +43,7 @@ export const FeaturedSection: React.FC = ({ const handleCardClick = (creator: string, slug: string) => { router.push( - `/store/agent/${encodeURIComponent(creator)}/${encodeURIComponent(slug)}`, + `/marketplace/agent/${encodeURIComponent(creator)}/${encodeURIComponent(slug)}`, ); }; diff --git a/autogpt_platform/frontend/src/components/agptui/composite/HeroSection.tsx b/autogpt_platform/frontend/src/components/agptui/composite/HeroSection.tsx index e7b19e1ca7ec..61d025c35158 100644 --- a/autogpt_platform/frontend/src/components/agptui/composite/HeroSection.tsx +++ b/autogpt_platform/frontend/src/components/agptui/composite/HeroSection.tsx @@ -10,7 +10,7 @@ export const HeroSection: React.FC = () => { function onFilterChange(selectedFilters: string[]) { const encodedTerm = encodeURIComponent(selectedFilters.join(", ")); - router.push(`/store/search?searchTerm=${encodedTerm}`); + router.push(`/marketplace/search?searchTerm=${encodedTerm}`); } return ( diff --git a/autogpt_platform/frontend/src/components/agptui/composite/PublishAgentPopout.tsx b/autogpt_platform/frontend/src/components/agptui/composite/PublishAgentPopout.tsx index f2b3c9b79c73..56cdac79e9ce 100644 --- a/autogpt_platform/frontend/src/components/agptui/composite/PublishAgentPopout.tsx +++ b/autogpt_platform/frontend/src/components/agptui/composite/PublishAgentPopout.tsx @@ -260,7 +260,7 @@ export const PublishAgentPopout: React.FC = ({ onClose={handleClose} onDone={handleClose} onViewProgress={() => { - router.push("/store/dashboard"); + router.push("/marketplace/dashboard"); handleClose(); }} /> diff --git a/autogpt_platform/frontend/src/components/nav/NavBarButtons.tsx b/autogpt_platform/frontend/src/components/nav/NavBarButtons.tsx index 5e81f17bd0a4..7852fb941e0b 100644 --- a/autogpt_platform/frontend/src/components/nav/NavBarButtons.tsx +++ b/autogpt_platform/frontend/src/components/nav/NavBarButtons.tsx @@ -24,7 +24,7 @@ export function NavBarButtons({ className }: { className?: string }) { icon: , }, { - href: "/store", + href: "/marketplace", text: "Marketplace", icon: , }, diff --git a/autogpt_platform/frontend/src/lib/supabase/middleware.ts b/autogpt_platform/frontend/src/lib/supabase/middleware.ts index e6b4308a2bd4..363d9da1afd1 100644 --- a/autogpt_platform/frontend/src/lib/supabase/middleware.ts +++ b/autogpt_platform/frontend/src/lib/supabase/middleware.ts @@ -5,9 +5,9 @@ import { NextResponse, type NextRequest } from "next/server"; const PROTECTED_PAGES = [ "/monitor", "/build", - "/store/profile", - "/store/settings", - "/store/dashboard", + "/marketplace/profile", + "/marketplace/settings", + "/marketplace/dashboard", ]; const ADMIN_PAGES = ["/admin"]; @@ -87,7 +87,7 @@ export async function updateSession(request: NextRequest) { ADMIN_PAGES.some((page) => request.nextUrl.pathname.startsWith(`${page}`)) ) { // no user, potentially respond by redirecting the user to the login page - url.pathname = `/store`; + url.pathname = `/marketplace`; return NextResponse.redirect(url); } diff --git a/autogpt_platform/frontend/src/tests/auth.spec.ts b/autogpt_platform/frontend/src/tests/auth.spec.ts index 8c7ac4ab7780..a658dbdb4138 100644 --- a/autogpt_platform/frontend/src/tests/auth.spec.ts +++ b/autogpt_platform/frontend/src/tests/auth.spec.ts @@ -5,7 +5,7 @@ test.describe("Authentication", () => { test("user can login successfully", async ({ page, loginPage, testUser }) => { await page.goto("/login"); await loginPage.login(testUser.email, testUser.password); - await test.expect(page).toHaveURL("/store"); + await test.expect(page).toHaveURL("/marketplace"); await test .expect(page.getByTestId("profile-popout-menu-trigger")) .toBeVisible(); @@ -19,7 +19,7 @@ test.describe("Authentication", () => { await page.goto("/login"); await loginPage.login(testUser.email, testUser.password); - await test.expect(page).toHaveURL("/store"); + await test.expect(page).toHaveURL("/marketplace"); // Click on the profile menu trigger to open popout await page.getByTestId("profile-popout-menu-trigger").click(); @@ -43,7 +43,7 @@ test.describe("Authentication", () => { }) => { await page.goto("/login"); await loginPage.login(testUser.email, testUser.password); - await test.expect(page).toHaveURL("/store"); + await test.expect(page).toHaveURL("/marketplace"); // Click on the profile menu trigger to open popout await page.getByTestId("profile-popout-menu-trigger").click(); @@ -52,7 +52,7 @@ test.describe("Authentication", () => { await test.expect(page).toHaveURL("/login"); await loginPage.login(testUser.email, testUser.password); - await test.expect(page).toHaveURL("/store"); + await test.expect(page).toHaveURL("/marketplace"); await test .expect(page.getByTestId("profile-popout-menu-trigger")) .toBeVisible(); diff --git a/autogpt_platform/frontend/src/tests/profile.spec.ts b/autogpt_platform/frontend/src/tests/profile.spec.ts index 03787e2748fb..22048b0caa2c 100644 --- a/autogpt_platform/frontend/src/tests/profile.spec.ts +++ b/autogpt_platform/frontend/src/tests/profile.spec.ts @@ -10,7 +10,7 @@ test.describe("Profile", () => { // Start each test with login using worker auth await page.goto("/login"); await loginPage.login(testUser.email, testUser.password); - await test.expect(page).toHaveURL("/store"); + await test.expect(page).toHaveURL("/marketplace"); }); test("user can view their profile information", async ({