Skip to content

Commit 9092e1b

Browse files
Update playground routes from /connect to /wallets and /payments
Co-authored-by: samina <[email protected]>
1 parent 66b9bf3 commit 9092e1b

File tree

77 files changed

+80
-64
lines changed

Some content is hidden

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

77 files changed

+80
-64
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
@@ -114,7 +114,7 @@ export function TeamSidebarLayout(props: {
114114
label: "Documentation",
115115
},
116116
{
117-
href: "https://playground.thirdweb.com/connect/sign-in/button",
117+
href: "https://playground.thirdweb.com/wallets/sign-in/button",
118118
icon: BoxIcon,
119119
label: "Playground",
120120
},

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/account-abstraction/AAFooterSection.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ export function AAFooter() {
66
center={{
77
links: [
88
{
9-
href: "https://playground.thirdweb.com/connect/account-abstraction/connect",
9+
href: "https://playground.thirdweb.com/wallets/account-abstraction/sponsor",
1010
label: "Connect Smart Accounts",
1111
},
1212
{
13-
href: "https://playground.thirdweb.com/connect/account-abstraction/sponsor",
13+
href: "https://playground.thirdweb.com/wallets/account-abstraction/sponsor",
1414
label: "Sponsor Gas Fees",
1515
},
1616
{
17-
href: "https://playground.thirdweb.com/connect/account-abstraction/native-aa",
17+
href: "https://playground.thirdweb.com/wallets/account-abstraction/native-aa",
1818
label: "Native Account Abstraction",
1919
},
2020
],

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/account-abstraction/factories/AccountFactories/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function DefaultFactoriesSection() {
3939
<p className="text-muted-foreground text-sm">
4040
Ready to use account factories that are pre-deployed on each chain.{" "}
4141
<UnderlineLink
42-
href="https://playground.thirdweb.com/connect/account-abstraction/connect"
42+
href="https://playground.thirdweb.com/wallets/account-abstraction/sponsor"
4343
rel="noopener noreferrer"
4444
target="_blank"
4545
>

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
@@ -152,7 +152,7 @@ export function ProjectSidebarLayout(props: {
152152
label: "Documentation",
153153
},
154154
{
155-
href: "https://playground.thirdweb.com/connect/sign-in/button",
155+
href: "https://playground.thirdweb.com/wallets/sign-in/button",
156156
icon: BoxIcon,
157157
label: "Playground",
158158
},

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/universal-bridge/layout.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,19 +84,19 @@ function UBFooter() {
8484
center={{
8585
links: [
8686
{
87-
href: "https://playground.thirdweb.com/connect/pay",
87+
href: "https://playground.thirdweb.com/payments",
8888
label: "UI Component",
8989
},
9090
{
91-
href: "https://playground.thirdweb.com/connect/pay/fund-wallet",
91+
href: "https://playground.thirdweb.com/payments/fund-wallet",
9292
label: "Buy Crypto",
9393
},
9494
{
95-
href: "https://playground.thirdweb.com/connect/pay/commerce",
95+
href: "https://playground.thirdweb.com/payments/commerce",
9696
label: "Checkout",
9797
},
9898
{
99-
href: "https://playground.thirdweb.com/connect/pay/transactions",
99+
href: "https://playground.thirdweb.com/payments/transactions",
100100
label: "Transactions",
101101
},
102102
],

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/wallets/_components/footer.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ export function InAppWalletsFooter() {
6060
right={{
6161
links: [
6262
{
63-
href: "https://playground.thirdweb.com/connect/in-app-wallet/ecosystem",
63+
href: "https://playground.thirdweb.com/wallets/in-app-wallet/ecosystem",
6464
label: "Ecosystems",
6565
},
6666
{
67-
href: "https://playground.thirdweb.com/connect/in-app-wallet/sponsor",
67+
href: "https://playground.thirdweb.com/wallets/account-abstraction/sponsor",
6868
label: "Signless Sponsored Transactions",
6969
},
7070
{
71-
href: "https://playground.thirdweb.com/connect/in-app-wallet",
71+
href: "https://playground.thirdweb.com/wallets/in-app-wallet",
7272
label: "Customized UI",
7373
},
7474
],

apps/playground-web/next.config.mjs

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,30 @@ const nextConfig = {
5757
async redirects() {
5858
return [
5959
{
60-
destination: "/connect/sign-in/button",
60+
destination: "/wallets/sign-in/button",
6161
permanent: false,
62-
source: "/connect/sign-in",
62+
source: "/wallets/sign-in",
6363
},
6464
{
65-
destination: "/connect/account-abstraction/connect",
65+
destination: "/wallets/account-abstraction/sponsor",
6666
permanent: false,
67-
source: "/connect/account-abstraction",
67+
source: "/wallets/account-abstraction",
68+
},
69+
// Old slug redirects
70+
{
71+
destination: "/transactions/:path*",
72+
permanent: false,
73+
source: "/engine/:path*",
74+
},
75+
{
76+
destination: "/payments/:path*",
77+
permanent: false,
78+
source: "/connect/pay/:path*",
79+
},
80+
{
81+
destination: "/wallets/:path*",
82+
permanent: false,
83+
source: "/connect/:path((?!pay).*)",
6884
},
6985
];
7086
},

apps/playground-web/src/app/navLinks.ts

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,74 +6,74 @@ const staticSidebarLinks: SidebarLink[] = [
66
isCollapsible: false,
77
links: [
88
{
9-
href: "/connect/sign-in/button",
9+
href: "/wallets/sign-in/button",
1010
name: "ConnectButton",
1111
},
1212
{
13-
href: "/connect/sign-in/embed",
13+
href: "/wallets/sign-in/embed",
1414
name: "ConnectEmbed",
1515
},
1616
{
17-
href: "/connect/sign-in/headless",
17+
href: "/wallets/sign-in/headless",
1818
name: "Headless Connect",
1919
},
2020
{
21-
href: "/connect/in-app-wallet",
21+
href: "/wallets/in-app-wallet",
2222
name: "In-App Wallets",
2323
},
2424
{
25-
href: "/connect/in-app-wallet/ecosystem",
25+
href: "/wallets/in-app-wallet/ecosystem",
2626
name: "Ecosystem Wallets",
2727
},
2828
{
29-
href: "/connect/account-abstraction/sponsor",
29+
href: "/wallets/account-abstraction/sponsor",
3030
name: "EIP-4337",
3131
},
3232
{
33-
href: "/connect/account-abstraction/7702",
33+
href: "/wallets/account-abstraction/7702",
3434
name: "EIP-7702",
3535
},
3636
{
37-
href: "/connect/account-abstraction/5792",
37+
href: "/wallets/account-abstraction/5792",
3838
name: "EIP-5792",
3939
},
4040
{
41-
href: "/connect/account-abstraction/native-aa",
41+
href: "/wallets/account-abstraction/native-aa",
4242
name: "Native AA (zkSync)",
4343
},
4444
{
45-
href: "/connect/auth",
45+
href: "/wallets/auth",
4646
name: "Auth",
4747
},
4848
{
49-
href: "/connect/social",
49+
href: "/wallets/social",
5050
name: "Social",
5151
},
5252
{
53-
href: "/connect/blockchain-api",
53+
href: "/wallets/blockchain-api",
5454
name: "Blockchain API",
5555
},
5656
{
5757
expanded: false,
5858
links: [
5959
{
60-
href: "/connect/ui",
60+
href: "/wallets/ui",
6161
name: "Account",
6262
},
6363
{
64-
href: "/connect/ui/nft",
64+
href: "/wallets/ui/nft",
6565
name: "NFT",
6666
},
6767
{
68-
href: "/connect/ui/token",
68+
href: "/wallets/ui/token",
6969
name: "Token",
7070
},
7171
{
72-
href: "/connect/ui/chain",
72+
href: "/wallets/ui/chain",
7373
name: "Chain",
7474
},
7575
{
76-
href: "/connect/ui/wallet",
76+
href: "/wallets/ui/wallet",
7777
name: "Wallet",
7878
},
7979
],
@@ -89,23 +89,23 @@ const universalBridgeSidebarLinks: SidebarLink = {
8989
isCollapsible: false,
9090
links: [
9191
{
92-
href: "/connect/pay",
92+
href: "/payments",
9393
name: "UI Component",
9494
},
9595
{
96-
href: "/connect/pay/fund-wallet",
96+
href: "/payments/fund-wallet",
9797
name: "Buy Crypto",
9898
},
9999
{
100-
href: "/connect/pay/commerce",
100+
href: "/payments/commerce",
101101
name: "Checkout",
102102
},
103103
{
104-
href: "/connect/pay/transactions",
104+
href: "/payments/transactions",
105105
name: "Transactions",
106106
},
107107
{
108-
href: "/connect/pay/backend",
108+
href: "/payments/backend",
109109
name: "Backend API",
110110
},
111111
],
@@ -117,15 +117,15 @@ const engineSidebarLinks: SidebarLink = {
117117
isCollapsible: false,
118118
links: [
119119
{
120-
href: "/engine/airdrop",
120+
href: "/transactions/airdrop",
121121
name: "Airdrop",
122122
},
123123
{
124-
href: "/engine/minting",
124+
href: "/transactions/minting",
125125
name: "Mint NFTs",
126126
},
127127
{
128-
href: "/engine/webhooks",
128+
href: "/transactions/webhooks",
129129
name: "Webhooks",
130130
},
131131
],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { redirect } from "next/navigation";
22

33
export default function Page() {
4-
redirect("/connect/sign-in/button");
4+
redirect("/wallets/sign-in/button");
55
}
File renamed without changes.

0 commit comments

Comments
 (0)