From 1c660d47122446a4cfa7d25f6522df93f599ad62 Mon Sep 17 00:00:00 2001 From: MananTank Date: Mon, 6 Oct 2025 21:22:22 +0000 Subject: [PATCH] [MNY-202] Dashboard: Update resource links in project > bridge page (#8196) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ## PR-Codex overview This PR focuses on updating the `QuickstartSection.client.tsx` and `page.tsx` files in the bridge section of the dashboard. It modifies features, links, and documentation references to align with the new bridge functionality. ### Detailed summary - Updated `setupTime` to `5` in `QuickstartSection.client.tsx`. - Changed `features` from `["Swap any token", "Cross-chain swaps"]` to `["Swap any token", "Cross-chain swap"]`. - Updated link `href` from `https://portal.thirdweb.com/payments/swap` to `https://portal.thirdweb.com/bridge/swap` and changed label to "Setup Swap". - Added new documentation link to `page.tsx`: `https://portal.thirdweb.com/bridge`. - Added new playground link to `page.tsx`: `https://playground.thirdweb.com/bridge/swap-widget`. - Removed old commented-out documentation links related to payments. - Removed several links under the footer sections for payments and replaced them with new links relevant to the bridge. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` ## Summary by CodeRabbit - New Features - Added a direct link to Bridge docs in the header for quicker access. - Added a Playground link in the header to enable easy testing of the Bridge swap widget. - Style - Removed footer sections from the Bridge page to streamline the layout and reduce clutter. - Chores - Updated the “Setup Swap” feature card and its link to point to the Bridge setup URL for improved navigation. --- .../bridge/QuickstartSection.client.tsx | 6 +- .../[project_slug]/(sidebar)/bridge/page.tsx | 66 +++---------------- 2 files changed, 11 insertions(+), 61 deletions(-) diff --git a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/bridge/QuickstartSection.client.tsx b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/bridge/QuickstartSection.client.tsx index adec879fbbd..9107f38c055 100644 --- a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/bridge/QuickstartSection.client.tsx +++ b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/bridge/QuickstartSection.client.tsx @@ -28,11 +28,11 @@ export function QuickStartSection(props: { icon={ArrowRightLeftIcon} setupTime={5} id="swap_tokens" - features={["Swap any token", "Cross-chain swaps"]} + features={["Swap any token", "Cross-chain swap"]} description="Swap tokens cross-chain with dedicated swapping endpoints." link={{ - href: `https://portal.thirdweb.com/payments/swap`, - label: "Setup Swaps", + href: `https://portal.thirdweb.com/bridge/swap`, + label: "Setup Swap", }} /> diff --git a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/bridge/page.tsx b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/bridge/page.tsx index 96400d03716..4c6f13ff4a8 100644 --- a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/bridge/page.tsx +++ b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/bridge/page.tsx @@ -69,70 +69,20 @@ export default async function Page(props: { }, }, links: [ - // TODO - add docs when bridge docs are added in portal - // { - // type: "docs", - // href: "https://portal.thirdweb.com/payments", - // }, + { + type: "docs", + href: "https://portal.thirdweb.com/bridge", + }, + { + type: "playground", + href: "https://playground.thirdweb.com/bridge/swap-widget", + }, { type: "api", href: "https://api.thirdweb.com/reference#tag/bridge", }, ], }} - footer={{ - center: { - links: [ - { - href: "https://playground.thirdweb.com/payments/ui-components", - label: "UI Component", - }, - { - href: "https://playground.thirdweb.com/connect/payments/fund-wallet", - label: "Buy Crypto", - }, - { - href: "https://playground.thirdweb.com/connect/payments/commerce", - label: "Checkout", - }, - { - href: "https://playground.thirdweb.com/connect/payments/transactions", - label: "Transactions", - }, - ], - title: "Demos", - }, - left: { - links: [ - { - href: "https://portal.thirdweb.com/payments", - label: "Overview", - }, - { - href: "https://portal.thirdweb.com/typescript/v5/convertCryptoToFiat", - label: "TypeScript", - }, - { - href: "https://portal.thirdweb.com/react/v5/pay/fund-wallets", - label: "React", - }, - { - href: "https://portal.thirdweb.com/dotnet/universal-bridge/quickstart", - label: ".NET", - }, - ], - title: "Documentation", - }, - right: { - links: [ - { - href: "https://www.youtube.com/watch?v=aBu175-VsNY", - label: "Implement cross-chain payments in any app", - }, - ], - title: "Tutorials", - }, - }} >