Skip to content

Commit be3316e

Browse files
committed
[PRO-96] Playground: Update product grouping (#8401)
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on restructuring the `payments` and `contracts` sections of the codebase, consolidating them under a new `bridge` section, and updating various links and components to reflect the new structure. ### Detailed summary - Deleted multiple files related to `payments` and `contracts`. - Introduced new `bridge` components and pages. - Updated links in various `.mdx` and `.tsx` files to point to the new `bridge` paths. - Renamed components such as `BuyPlayground` to `BuyWidget`. - Updated sidebar links for improved navigation. - Adjusted feature cards to reflect the new structure and titles. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Reorganized navigation menu with new Bridge section consolidating payment widgets * Added x402 as prominent top-level navigation item * Expanded Account Abstraction section with new submenu items * **Changes** * Updated widget names and playground URLs across documentation and dashboard links * Restructured Transactions and Account Abstraction into dedicated submenus under Wallets * Renamed and relocated playground widget pages to Bridge section * **Removals** * Removed Contracts section from navigation and playground * Removed standalone Payments overview page <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 8723697 commit be3316e

File tree

57 files changed

+292
-740
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+292
-740
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/(team)/TeamSidebarLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export function TeamSidebarLayout(props: {
9292
label: "Documentation",
9393
},
9494
{
95-
href: "https://playground.thirdweb.com/connect/sign-in/button",
95+
href: "https://playground.thirdweb.com/wallets/sign-in/button",
9696
icon: BoxIcon,
9797
label: "Playground",
9898
},

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/components/ProjectSidebarLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export function ProjectSidebarLayout(props: {
149149
label: "Documentation",
150150
},
151151
{
152-
href: "https://playground.thirdweb.com/connect/sign-in/button",
152+
href: "https://playground.thirdweb.com/wallets/sign-in/button",
153153
icon: BoxIcon,
154154
label: "Playground",
155155
},

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/payments/page.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export default async function Page(props: {
8181
},
8282
{
8383
type: "playground",
84-
href: "https://playground.thirdweb.com/payments/ui-components",
84+
href: "https://playground.thirdweb.com/bridge",
8585
},
8686
{
8787
type: "api",
@@ -93,20 +93,20 @@ export default async function Page(props: {
9393
center: {
9494
links: [
9595
{
96-
href: "https://playground.thirdweb.com/payments/ui-components",
97-
label: "UI Component",
96+
href: "https://playground.thirdweb.com/bridge/buy-widget",
97+
label: "Buy Widget",
9898
},
9999
{
100-
href: "https://playground.thirdweb.com/connect/payments/fund-wallet",
101-
label: "Buy Crypto",
100+
href: "https://playground.thirdweb.com/bridge/checkout-widget",
101+
label: "Checkout Widget",
102102
},
103103
{
104-
href: "https://playground.thirdweb.com/connect/payments/commerce",
105-
label: "Checkout",
104+
href: "https://playground.thirdweb.com/bridge/transaction-widget",
105+
label: "Transaction Widget",
106106
},
107107
{
108-
href: "https://playground.thirdweb.com/connect/payments/transactions",
109-
label: "Transactions",
108+
href: "https://playground.thirdweb.com/bridge/swap-widget",
109+
label: "Swap Widget",
110110
},
111111
],
112112
title: "Demos",

apps/playground-web/next.config.mjs

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ const nextConfig = {
5959
return [
6060
{
6161
source: "/connect/pay",
62-
destination: "/payments/ui-components",
62+
destination: "/bridge",
6363
permanent: false,
6464
},
6565
{
6666
source: "/connect/pay/:path*",
67-
destination: "/payments/:path*",
67+
destination: "/bridge",
6868
permanent: false,
6969
},
7070
{
@@ -159,7 +159,32 @@ const nextConfig = {
159159
},
160160
{
161161
source: "/payments/ui-components",
162-
destination: "/payments",
162+
destination: "/bridge",
163+
permanent: false,
164+
},
165+
{
166+
source: "/payments",
167+
destination: "/bridge",
168+
permanent: false,
169+
},
170+
{
171+
source: "/payments/x402",
172+
destination: "/x402",
173+
permanent: false,
174+
},
175+
{
176+
source: "/payments/fund-wallet",
177+
destination: "/bridge/buy-widget",
178+
permanent: false,
179+
},
180+
{
181+
source: "/payments/commerce",
182+
destination: "/bridge/checkout-widget",
183+
permanent: false,
184+
},
185+
{
186+
source: "/payments/transactions",
187+
destination: "/bridge/transaction-widget",
163188
permanent: false,
164189
},
165190
];

apps/playground-web/src/app/api/paywall/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { type NextRequest, NextResponse } from "next/server";
22
import { createThirdwebClient, defineChain } from "thirdweb";
33
import { toUnits } from "thirdweb/utils";
44
import { facilitator, settlePayment } from "thirdweb/x402";
5-
import { token } from "../../payments/x402/components/constants";
5+
import { token } from "../../x402/components/constants";
66

77
// Allow streaming responses up to 5 minutes
88
export const maxDuration = 300;

apps/playground-web/src/app/payments/fund-wallet/page.tsx renamed to apps/playground-web/src/app/bridge/buy-widget/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import ThirdwebProvider from "@/components/thirdweb-provider";
44
import { createMetadata } from "@/lib/metadata";
55
import { BuyPlayground } from "./BuyPlayground";
66

7-
const title = "Buy Crypto Component";
7+
const title = "Buy Widget";
88
const description =
99
"Embeddable component for users to purchase any cryptocurrency for top-ups and more with fiat or crypto-to-crypto swaps";
1010
const ogDescription =

apps/playground-web/src/app/payments/commerce/page.tsx renamed to apps/playground-web/src/app/bridge/checkout-widget/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import ThirdwebProvider from "@/components/thirdweb-provider";
44
import { createMetadata } from "@/lib/metadata";
55
import { CheckoutPlayground } from "./CheckoutPlayground";
66

7-
const title = "Checkout Component";
7+
const title = "Checkout Widget";
88
const description =
99
"Enable purchase of any service or goods with fiat or cryptocurrency and setup notifications on every sale to ship goods, activate services, and more";
1010
const ogDescription =

0 commit comments

Comments
 (0)