From a6483f4a801c4d83e316742061ac53b7dd8225f6 Mon Sep 17 00:00:00 2001 From: MananTank Date: Tue, 29 Jul 2025 19:50:26 +0000 Subject: [PATCH] Playground: Rename account-abstraction page slugs (#7756) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ## 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}` ## 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. --- apps/playground-web/next.config.mjs | 15 +++++++++++++++ apps/playground-web/src/app/navLinks.ts | 6 +++--- .../{sponsor => eip-4337}/page.tsx | 0 .../{5792 => eip-5792}/page.tsx | 0 .../{7702 => eip-7702}/page.tsx | 0 5 files changed, 18 insertions(+), 3 deletions(-) rename apps/playground-web/src/app/wallets/account-abstraction/{sponsor => eip-4337}/page.tsx (100%) rename apps/playground-web/src/app/wallets/account-abstraction/{5792 => eip-5792}/page.tsx (100%) rename apps/playground-web/src/app/wallets/account-abstraction/{7702 => eip-7702}/page.tsx (100%) diff --git a/apps/playground-web/next.config.mjs b/apps/playground-web/next.config.mjs index 420ea92fecd..93d918ee3ff 100644 --- a/apps/playground-web/next.config.mjs +++ b/apps/playground-web/next.config.mjs @@ -111,6 +111,21 @@ const nextConfig = { destination: "/transactions/webhooks", permanent: false, }, + { + source: "/wallets/account-abstraction/sponsor", + destination: "/wallets/account-abstraction/eip-4337", + permanent: false, + }, + { + source: "/wallets/account-abstraction/7702", + destination: "/wallets/account-abstraction/eip-7702", + permanent: false, + }, + { + source: "/wallets/account-abstraction/5792", + destination: "/wallets/account-abstraction/eip-5792", + permanent: false, + }, ]; }, async rewrites() { diff --git a/apps/playground-web/src/app/navLinks.ts b/apps/playground-web/src/app/navLinks.ts index f23d746245b..522db5a5b80 100644 --- a/apps/playground-web/src/app/navLinks.ts +++ b/apps/playground-web/src/app/navLinks.ts @@ -26,15 +26,15 @@ const staticSidebarLinks: SidebarLink[] = [ name: "Ecosystem Wallets", }, { - href: "/wallets/account-abstraction/sponsor", + href: "/wallets/account-abstraction/eip-4337", name: "EIP-4337", }, { - href: "/wallets/account-abstraction/7702", + href: "/wallets/account-abstraction/eip-7702", name: "EIP-7702", }, { - href: "/wallets/account-abstraction/5792", + href: "/wallets/account-abstraction/eip-5792", name: "EIP-5792", }, { diff --git a/apps/playground-web/src/app/wallets/account-abstraction/sponsor/page.tsx b/apps/playground-web/src/app/wallets/account-abstraction/eip-4337/page.tsx similarity index 100% rename from apps/playground-web/src/app/wallets/account-abstraction/sponsor/page.tsx rename to apps/playground-web/src/app/wallets/account-abstraction/eip-4337/page.tsx diff --git a/apps/playground-web/src/app/wallets/account-abstraction/5792/page.tsx b/apps/playground-web/src/app/wallets/account-abstraction/eip-5792/page.tsx similarity index 100% rename from apps/playground-web/src/app/wallets/account-abstraction/5792/page.tsx rename to apps/playground-web/src/app/wallets/account-abstraction/eip-5792/page.tsx diff --git a/apps/playground-web/src/app/wallets/account-abstraction/7702/page.tsx b/apps/playground-web/src/app/wallets/account-abstraction/eip-7702/page.tsx similarity index 100% rename from apps/playground-web/src/app/wallets/account-abstraction/7702/page.tsx rename to apps/playground-web/src/app/wallets/account-abstraction/eip-7702/page.tsx