Skip to content

Commit a6483f4

Browse files
committed
Playground: Rename account-abstraction page slugs (#7756)
<!-- ## 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 updating routing paths in the application to reflect new endpoints for account abstraction features. It changes the hrefs for specific wallet routes and adds new rewrite rules in the configuration. ### Detailed summary - Updated `href` for the `sponsor` route to `/wallets/account-abstraction/eip-4337`. - Updated `href` for the `7702` route to `/wallets/account-abstraction/eip-7702`. - Updated `href` for the `5792` route to `/wallets/account-abstraction/eip-5792`. - Added new rewrite rules in `next.config.mjs` for the updated routes. > ✨ 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** * Updated sidebar links for account abstraction wallets to use explicit EIP-prefixed paths for improved clarity. * **Chores** * Added redirects to ensure legacy account abstraction wallet URLs automatically forward to the new EIP-prefixed paths. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 2e90112 commit a6483f4

File tree

5 files changed

+18
-3
lines changed

5 files changed

+18
-3
lines changed

apps/playground-web/next.config.mjs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,21 @@ const nextConfig = {
111111
destination: "/transactions/webhooks",
112112
permanent: false,
113113
},
114+
{
115+
source: "/wallets/account-abstraction/sponsor",
116+
destination: "/wallets/account-abstraction/eip-4337",
117+
permanent: false,
118+
},
119+
{
120+
source: "/wallets/account-abstraction/7702",
121+
destination: "/wallets/account-abstraction/eip-7702",
122+
permanent: false,
123+
},
124+
{
125+
source: "/wallets/account-abstraction/5792",
126+
destination: "/wallets/account-abstraction/eip-5792",
127+
permanent: false,
128+
},
114129
];
115130
},
116131
async rewrites() {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ const staticSidebarLinks: SidebarLink[] = [
2626
name: "Ecosystem Wallets",
2727
},
2828
{
29-
href: "/wallets/account-abstraction/sponsor",
29+
href: "/wallets/account-abstraction/eip-4337",
3030
name: "EIP-4337",
3131
},
3232
{
33-
href: "/wallets/account-abstraction/7702",
33+
href: "/wallets/account-abstraction/eip-7702",
3434
name: "EIP-7702",
3535
},
3636
{
37-
href: "/wallets/account-abstraction/5792",
37+
href: "/wallets/account-abstraction/eip-5792",
3838
name: "EIP-5792",
3939
},
4040
{

0 commit comments

Comments
 (0)