Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export function TeamSidebarLayout(props: {
label: "Documentation",
},
{
href: "https://playground.thirdweb.com/connect/sign-in/button",
href: "https://playground.thirdweb.com/wallets/sign-in/button",
icon: BoxIcon,
label: "Playground",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ export function AAFooter() {
center={{
links: [
{
href: "https://playground.thirdweb.com/connect/account-abstraction/connect",
href: "https://playground.thirdweb.com/wallets/account-abstraction/sponsor",
label: "Connect Smart Accounts",
},
{
href: "https://playground.thirdweb.com/connect/account-abstraction/sponsor",
href: "https://playground.thirdweb.com/wallets/account-abstraction/sponsor",
label: "Sponsor Gas Fees",
},
{
href: "https://playground.thirdweb.com/connect/account-abstraction/native-aa",
href: "https://playground.thirdweb.com/wallets/account-abstraction/native-aa",
label: "Native Account Abstraction",
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function DefaultFactoriesSection() {
<p className="text-muted-foreground text-sm">
Ready to use account factories that are pre-deployed on each chain.{" "}
<UnderlineLink
href="https://playground.thirdweb.com/connect/account-abstraction/connect"
href="https://playground.thirdweb.com/wallets/account-abstraction/sponsor"
rel="noopener noreferrer"
target="_blank"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export function ProjectSidebarLayout(props: {
label: "Documentation",
},
{
href: "https://playground.thirdweb.com/connect/sign-in/button",
href: "https://playground.thirdweb.com/wallets/sign-in/button",
icon: BoxIcon,
label: "Playground",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,19 @@ function UBFooter() {
center={{
links: [
{
href: "https://playground.thirdweb.com/connect/pay",
href: "https://playground.thirdweb.com/payments",
label: "UI Component",
},
{
href: "https://playground.thirdweb.com/connect/pay/fund-wallet",
href: "https://playground.thirdweb.com/payments/fund-wallet",
label: "Buy Crypto",
},
{
href: "https://playground.thirdweb.com/connect/pay/commerce",
href: "https://playground.thirdweb.com/payments/commerce",
label: "Checkout",
},
{
href: "https://playground.thirdweb.com/connect/pay/transactions",
href: "https://playground.thirdweb.com/payments/transactions",
label: "Transactions",
},
Comment on lines +87 to 101
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

All demo links now use /payments/* – verify redirects exist in Playground

The update is consistent with the slug migration. Provided the redirect rules landed in apps/playground-web/next.config.mjs, this is good to ship.


🏁 Script executed:

#!/bin/bash
# Quick sanity: ensure no dashboard code still points at /connect/pay in demos
rg --no-heading --line-number --color=never '/connect/pay' apps/dashboard | head -n 20

Length of output: 1253


Migrate remaining /connect/pay references to /payments and confirm Playground redirects

We’ve aligned the sidebar demo links to /payments/*, but the following links still point at /connect/pay on portal.thirdweb.com. Please update them to the new Playground URLs and ensure your apps/playground-web/next.config.mjs has the corresponding redirect rules:

• apps/dashboard/redirects.js (lines 71, 378, 382): redirect sources still reference /connect/pay
• apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/universal-bridge/layout.tsx (line 108)
• apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/analytics/page.tsx (lines 358, 371)
• apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/universal-bridge/settings/PayConfig.tsx (line 99)
• apps/dashboard/src/app/(app)/(dashboard)/(chain)/components/server/products.ts (line 51)

Example diff for layout.tsx:

- href: "https://portal.thirdweb.com/connect/pay/overview",
+ href: "https://playground.thirdweb.com/payments/overview",

Once these are updated and the Playground redirects are confirmed, this is good to ship.

Committable suggestion skipped: line range outside the PR's diff.

🤖 Prompt for AI Agents
In
apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/universal-bridge/layout.tsx
around line 108, update any URLs still pointing to /connect/pay on
portal.thirdweb.com to the new /payments Playground URLs. Also, verify and
update the redirect rules in apps/playground-web/next.config.mjs to ensure these
URLs redirect correctly. Repeat this update for the other specified files and
lines to fully migrate from /connect/pay to /payments.

],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ export function InAppWalletsFooter() {
right={{
links: [
{
href: "https://playground.thirdweb.com/connect/in-app-wallet/ecosystem",
href: "https://playground.thirdweb.com/wallets/in-app-wallet/ecosystem",
label: "Ecosystems",
},
{
href: "https://playground.thirdweb.com/connect/in-app-wallet/sponsor",
href: "https://playground.thirdweb.com/wallets/account-abstraction/sponsor",
label: "Signless Sponsored Transactions",
},
{
href: "https://playground.thirdweb.com/connect/in-app-wallet",
href: "https://playground.thirdweb.com/wallets/in-app-wallet",
label: "Customized UI",
},
],
Expand Down
24 changes: 20 additions & 4 deletions apps/playground-web/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,30 @@ const nextConfig = {
async redirects() {
return [
{
destination: "/connect/sign-in/button",
destination: "/wallets/sign-in/button",
permanent: false,
source: "/connect/sign-in",
source: "/wallets/sign-in",
},
{
destination: "/connect/account-abstraction/connect",
destination: "/wallets/account-abstraction/sponsor",
permanent: false,
source: "/connect/account-abstraction",
source: "/wallets/account-abstraction",
},
// Old slug redirects
{
destination: "/transactions/:path*",
permanent: false,
source: "/engine/:path*",
},
{
destination: "/payments/:path*",
permanent: false,
source: "/connect/pay/:path*",
},
{
destination: "/wallets/:path*",
permanent: false,
source: "/connect/:path((?!pay).*)",
},
];
},
Expand Down
50 changes: 25 additions & 25 deletions apps/playground-web/src/app/navLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,74 +6,74 @@ const staticSidebarLinks: SidebarLink[] = [
isCollapsible: false,
links: [
{
href: "/connect/sign-in/button",
href: "/wallets/sign-in/button",
name: "ConnectButton",
},
{
href: "/connect/sign-in/embed",
href: "/wallets/sign-in/embed",
name: "ConnectEmbed",
},
{
href: "/connect/sign-in/headless",
href: "/wallets/sign-in/headless",
name: "Headless Connect",
},
{
href: "/connect/in-app-wallet",
href: "/wallets/in-app-wallet",
name: "In-App Wallets",
},
{
href: "/connect/in-app-wallet/ecosystem",
href: "/wallets/in-app-wallet/ecosystem",
name: "Ecosystem Wallets",
},
{
href: "/connect/account-abstraction/sponsor",
href: "/wallets/account-abstraction/sponsor",
name: "EIP-4337",
},
{
href: "/connect/account-abstraction/7702",
href: "/wallets/account-abstraction/7702",
name: "EIP-7702",
},
{
href: "/connect/account-abstraction/5792",
href: "/wallets/account-abstraction/5792",
name: "EIP-5792",
},
{
href: "/connect/account-abstraction/native-aa",
href: "/wallets/account-abstraction/native-aa",
name: "Native AA (zkSync)",
},
{
href: "/connect/auth",
href: "/wallets/auth",
name: "Auth",
},
{
href: "/connect/social",
href: "/wallets/social",
name: "Social",
},
{
href: "/connect/blockchain-api",
href: "/wallets/blockchain-api",
name: "Blockchain API",
},
{
expanded: false,
links: [
{
href: "/connect/ui",
href: "/wallets/ui",
name: "Account",
},
{
href: "/connect/ui/nft",
href: "/wallets/ui/nft",
name: "NFT",
},
{
href: "/connect/ui/token",
href: "/wallets/ui/token",
name: "Token",
},
{
href: "/connect/ui/chain",
href: "/wallets/ui/chain",
name: "Chain",
},
{
href: "/connect/ui/wallet",
href: "/wallets/ui/wallet",
name: "Wallet",
},
],
Expand All @@ -89,23 +89,23 @@ const universalBridgeSidebarLinks: SidebarLink = {
isCollapsible: false,
links: [
{
href: "/connect/pay",
href: "/payments",
name: "UI Component",
},
{
href: "/connect/pay/fund-wallet",
href: "/payments/fund-wallet",
name: "Buy Crypto",
},
{
href: "/connect/pay/commerce",
href: "/payments/commerce",
name: "Checkout",
},
{
href: "/connect/pay/transactions",
href: "/payments/transactions",
name: "Transactions",
},
{
href: "/connect/pay/backend",
href: "/payments/backend",
name: "Backend API",
},
],
Expand All @@ -117,15 +117,15 @@ const engineSidebarLinks: SidebarLink = {
isCollapsible: false,
links: [
{
href: "/engine/airdrop",
href: "/transactions/airdrop",
name: "Airdrop",
},
{
href: "/engine/minting",
href: "/transactions/minting",
name: "Mint NFTs",
},
{
href: "/engine/webhooks",
href: "/transactions/webhooks",
name: "Webhooks",
},
],
Expand Down
2 changes: 1 addition & 1 deletion apps/playground-web/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { redirect } from "next/navigation";

export default function Page() {
redirect("/connect/sign-in/button");
redirect("/wallets/sign-in/button");
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default async function Page() {
}
return {
description: pathObj.get?.description || "",
link: `/connect/pay/backend/reference?route=${pathName}`,
link: `/payments/backend/reference?route=${pathName}`,
name: pathName,
};
})}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default async function Page(props: {

// invalid url
if (!params.route) {
redirect("/connect/pay/backend");
redirect("/payments/backend");
}

const thirdwebDomain = !isProd ? "thirdweb-dev" : "thirdweb";
Expand All @@ -31,7 +31,7 @@ export default async function Page(props: {

// invalid url
if (!pathMetadata) {
redirect("/connect/pay/backend");
redirect("/payments/backend");
}

const title = pathMetadata.summary || "";
Expand All @@ -46,7 +46,7 @@ export default async function Page(props: {
)}

<BlueprintPlayground
backLink={"/connect/pay/backend"}
backLink={"/payments/backend"}
clientId={THIRDWEB_CLIENT.clientId}
domain={domain}
key={params.route}
Expand All @@ -63,7 +63,7 @@ function Breadcrumbs() {
<Breadcrumb>
<BreadcrumbList>
<BreadcrumbItem>
<BreadcrumbLink href="/connect/pay/backend">
<BreadcrumbLink href="/payments/backend">
Payments API
</BreadcrumbLink>
</BreadcrumbItem>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { EngineAirdropPreview } from "@/app/engine/airdrop/_components/airdrop-preview";
import { EngineAirdropPreview } from "@/app/transactions/airdrop/_components/airdrop-preview";
import ThirdwebProvider from "@/components/thirdweb-provider";
import { PageLayout } from "../../../components/blocks/APIHeader";
import { AirdropCode } from "./_components/airdrop-code";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { EngineMintPreview } from "@/app/engine/minting/_components/mint-preview";
import { EngineMintPreview } from "@/app/transactions/minting/_components/mint-preview";
import ThirdwebProvider from "@/components/thirdweb-provider";
import { PageLayout } from "../../../components/blocks/APIHeader";
import { MintCode } from "./_components/mint-code";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { EngineWebhooksPreview } from "@/app/engine/webhooks/_components/webhooks-preview";
import { EngineWebhooksPreview } from "@/app/transactions/webhooks/_components/webhooks-preview";
import ThirdwebProvider from "@/components/thirdweb-provider";
import { PageLayout } from "../../../components/blocks/APIHeader";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import {
isLoggedIn,
login,
logout,
} from "@/app/connect/auth/server/actions/auth";
} from "@/app/wallets/auth/server/actions/auth";
import { THIRDWEB_CLIENT } from "@/lib/client";
import { ConnectButton } from "thirdweb/react";

Expand Down Expand Up @@ -93,7 +93,7 @@ import {
isLoggedIn,
login,
logout,
} from "@/app/connect/auth/server/actions/auth";
} from "@/app/wallets/auth/server/actions/auth";
import { THIRDWEB_CLIENT } from "@/lib/client";
import { type SiweAuthOptions, useConnectModal } from "thirdweb/react";

Expand Down Expand Up @@ -140,7 +140,7 @@ function GatedContent() {
<CodeExample
code={`import { THIRDWEB_CLIENT } from "@/lib/client";
import { cookies } from "next/headers";
import { getAuthResult } from "@/app/connect/auth/server/actions/auth";
import { getAuthResult } from "@/app/wallets/auth/server/actions/auth";
import { hasEnoughBalance } from "...";

export async function GatedContentPreview() {
Expand Down Expand Up @@ -193,7 +193,7 @@ import {
isLoggedIn,
login,
logout,
} from "@/app/connect/auth/server/actions/auth";
} from "@/app/wallets/auth/server/actions/auth";
import { THIRDWEB_CLIENT } from "@/lib/client";
import { ConnectButton } from "thirdweb/react";
import { defineChain } from "thirdweb";
Expand Down
2 changes: 1 addition & 1 deletion apps/playground-web/src/components/auth/auth-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
isLoggedIn,
login,
logout,
} from "@/app/connect/auth/server/actions/auth";
} from "@/app/wallets/auth/server/actions/auth";
import { THIRDWEB_CLIENT } from "@/lib/client";

export function AuthButton() {
Expand Down
2 changes: 1 addition & 1 deletion apps/playground-web/src/components/auth/auth-hook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
isLoggedIn,
login,
logout,
} from "@/app/connect/auth/server/actions/auth";
} from "@/app/wallets/auth/server/actions/auth";
import { THIRDWEB_CLIENT } from "../../lib/client";
import { Button } from "../ui/button";

Expand Down
Loading
Loading