From dc49683357c091037ef7cf2a107a910ecd2924a0 Mon Sep 17 00:00:00 2001 From: GiselleNessi Date: Fri, 27 Jun 2025 10:42:56 +0000 Subject: [PATCH] removed next steps chainlist page (#7443) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ## PR-Codex overview This PR focuses on removing unused components and updating product descriptions in the `page.tsx` and `products.ts` files. ### Detailed summary - Deleted `NextSteps` and `ClaimChainSection` components from `page.tsx`. - Removed related JSX comments in `page.tsx`. - Updated product descriptions and names in `products.ts`: - Changed "Pre-built contracts & deployment tools" to "Create, deploy and manage smart contracts". - Changed "Client-side SDKs for wallets and blockchain interactions" to "Create and manage crypto wallets". - Changed "Engine" to "Transactions". - Changed "Account factory contracts, bundler & paymaster" to "Enable gas sponsorship for seamless transactions". - Changed "Point of sale solution for bridging, onramping & swapping" to "Enable payments in any token on any chain". - Changed "Query, transform and analyze blockchain data" to "Query and analyze blockchain data". > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` ## Summary by CodeRabbit * **Refactor** * Removed the "Next Steps" and "Claim Chain" sections from the chain page, including related external links and prompts. * **Documentation** * Updated product names and descriptions to use clearer, more user-focused language for better understanding of features. --- .../components/client/NextSteps.tsx | 37 ------------------- .../components/server/ClaimChainSection.tsx | 31 ---------------- .../(chain)/[chain_id]/(chainPage)/page.tsx | 7 ---- .../(chain)/components/server/products.ts | 16 ++++---- 4 files changed, 8 insertions(+), 83 deletions(-) delete mode 100644 apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/(chainPage)/components/client/NextSteps.tsx delete mode 100644 apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/(chainPage)/components/server/ClaimChainSection.tsx diff --git a/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/(chainPage)/components/client/NextSteps.tsx b/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/(chainPage)/components/client/NextSteps.tsx deleted file mode 100644 index 9f759c3f985..00000000000 --- a/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/(chainPage)/components/client/NextSteps.tsx +++ /dev/null @@ -1,37 +0,0 @@ -"use client"; -import { FileTextIcon } from "lucide-react"; -import Link from "next/link"; -import type { ChainMetadata } from "thirdweb/chains"; -import { SectionTitle } from "../server/SectionTitle"; - -export default function NextSteps(props: { chain: ChainMetadata }) { - const { chain } = props; - - return ( -
- -
-
- -
-

- - Create a login for {chain.name} - -

-

- Supercharge User Adoption—Integrate In-App Wallets in Minutes -

-
-
-
-
- ); -} diff --git a/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/(chainPage)/components/server/ClaimChainSection.tsx b/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/(chainPage)/components/server/ClaimChainSection.tsx deleted file mode 100644 index 3a9afa678fb..00000000000 --- a/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/(chainPage)/components/server/ClaimChainSection.tsx +++ /dev/null @@ -1,31 +0,0 @@ -import { ExternalLinkIcon } from "lucide-react"; -import Link from "next/link"; -import { Button } from "@/components/ui/button"; -import { SectionTitle } from "./SectionTitle"; - -export function ClaimChainSection() { - return ( -
- -
-

This chain page is unclaimed

-

- Are you the owner of this ecosystem? Claim this page to add additional - information on this page to help your developers get started! -

- - -
-
- ); -} diff --git a/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/(chainPage)/page.tsx b/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/(chainPage)/page.tsx index ea827413f69..de8ee77c28f 100644 --- a/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/(chainPage)/page.tsx +++ b/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/(chainPage)/page.tsx @@ -3,9 +3,7 @@ import { getClientThirdwebClient } from "@/constants/thirdweb-client.client"; import { getRawAccount } from "../../../../account/settings/getAccount"; import { getChain, getChainMetadata } from "../../utils"; import { BuyFundsSection } from "./components/client/BuyFundsSection"; -import NextSteps from "./components/client/NextSteps"; import { ChainOverviewSection } from "./components/server/ChainOverviewSection"; -import { ClaimChainSection } from "./components/server/ClaimChainSection"; import { ChainCTA } from "./components/server/cta-card"; import { ExplorersSection } from "./components/server/explorer-section"; import { FaucetSection } from "./components/server/FaucetSection"; @@ -60,11 +58,6 @@ export default async function Page(props: { {chain.services.filter((s) => s.enabled).length > 0 && ( )} - {/*Next Steps */} - - - {/* Claim Chain */} - {!chainMetadata && } ); } diff --git a/apps/dashboard/src/app/(app)/(dashboard)/(chain)/components/server/products.ts b/apps/dashboard/src/app/(app)/(dashboard)/(chain)/components/server/products.ts index dad6a1aac7d..617e4ba7115 100644 --- a/apps/dashboard/src/app/(app)/(dashboard)/(chain)/components/server/products.ts +++ b/apps/dashboard/src/app/(app)/(dashboard)/(chain)/components/server/products.ts @@ -10,18 +10,18 @@ import type { ChainSupportedService } from "@/types/chain"; export const products = [ { - description: "Pre-built contracts & deployment tools", + description: "Create, deploy and manage smart contracts", icon: ContractIcon, id: "contracts", link: "https://thirdweb.com/explore", name: "Contracts", }, { - description: "Client-side SDKs for wallets and blockchain interactions", + description: "Create and manage crypto wallets", icon: ConnectSDKIcon, id: "connect-sdk", link: "https://thirdweb.com/connect", - name: "Connect SDK", + name: "Wallets", }, { description: "Performant and scalable RPC service", @@ -35,24 +35,24 @@ export const products = [ icon: EngineIcon, id: "engine", link: "https://thirdweb.com/engine", - name: "Engine", + name: "Transactions", }, { - description: "Account factory contracts, bundler & paymaster", + description: "Enable gas sponsorship for seamless transactions", icon: SmartAccountIcon, id: "account-abstraction", link: "https://portal.thirdweb.com/connect/account-abstraction/overview", name: "Account Abstraction", }, { - description: "Point of sale solution for bridging, onramping & swapping", + description: "Enable payments in any token on any chain", icon: PayIcon, id: "pay", link: "https://portal.thirdweb.com/connect/pay/overview", - name: "Universal Bridge", + name: "Payments", }, { - description: "Query, transform and analyze blockchain data", + description: "Query and analyze blockchain data", icon: InsightIcon, id: "insight", link: "https://thirdweb.com/insight",