From 393d0cfb504401d6449a75cbe8422946d157fc93 Mon Sep 17 00:00:00 2001 From: MananTank Date: Sun, 1 Dec 2024 18:15:48 +0000 Subject: [PATCH] Fix Portal > Contracts overview page links (#5541) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: DASH-487 --- ## PR-Codex overview This PR focuses on updating references to smart contract interaction links throughout the application, simplifying the URLs to point directly to `/contracts` instead of specific interaction overview pages. ### Detailed summary - Updated `href` in `page.tsx` from `/contracts/interact/overview` to `/contracts`. - Changed references in `interact-blockchain/page.mdx` to point to `/contracts`. - Modified links in `contracts/page.mdx` to `/contracts`. - Adjusted links in `sdk.tsx` to `https://portal.thirdweb.com/contracts`. - Updated SDK documentation links in `ipfs/page.mdx` to `/contracts`. - Changed SDK references in `gas/page.mdx` to `/contracts`. - Updated redirects in `redirects.mjs` for `/sdk`, `/sdk/how-it-works`, and `/sdk/getting-started` to `/contracts`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` --- apps/dashboard/src/pages/sdk.tsx | 2 +- apps/portal/redirects.mjs | 7 ++++--- .../in-app-wallet/guides/interact-blockchain/page.mdx | 2 +- .../explore/pre-built-contracts/nft-drop/page.mdx | 2 +- apps/portal/src/app/contracts/page.mdx | 2 +- apps/portal/src/app/glossary/gas/page.mdx | 2 +- apps/portal/src/app/glossary/ipfs/page.mdx | 2 +- apps/portal/src/app/page.tsx | 2 +- .../v5/in-app-wallet/how-to/interact-blockchain/page.mdx | 2 +- 9 files changed, 12 insertions(+), 11 deletions(-) diff --git a/apps/dashboard/src/pages/sdk.tsx b/apps/dashboard/src/pages/sdk.tsx index 8f83faa38a0..49ef8e84130 100644 --- a/apps/dashboard/src/pages/sdk.tsx +++ b/apps/dashboard/src/pages/sdk.tsx @@ -61,7 +61,7 @@ const Web3SDK: ThirdwebNextPage = () => { title="Powerful SDKs for every stack" description="Build web3 applications that can interact with your smart contracts using our powerful SDKs and CLI." buttonText="Get started" - buttonLink="https://portal.thirdweb.com/contracts/interact/overview" + buttonLink="https://portal.thirdweb.com/contracts" image={require("../../public/assets/product-pages/sdk/hero.png")} gradient="linear-gradient(147.15deg, #410AB6 30.17%, #5BFF40 100.01%)" > diff --git a/apps/portal/redirects.mjs b/apps/portal/redirects.mjs index 78b98454c77..35cfce9d263 100644 --- a/apps/portal/redirects.mjs +++ b/apps/portal/redirects.mjs @@ -798,9 +798,9 @@ const contractRedirects = { "/publish/getting-started": "/contracts/publish/publish-contract", "/publish/deployment-options": "/contracts/publish/publish-options", "/publish/get-featured-on-explore": "/contracts/publish/overview", - "/sdk": "/contracts/interact/overview", - "/sdk/how-it-works": "/contracts/interact/overview", - "/sdk/getting-started": "/contracts/interact/overview", + "/sdk": "/contracts", + "/sdk/how-it-works": "/contracts", + "/sdk/getting-started": "/contracts", //design documentation "/contracts/design/Drop": "/contracts/design-docs/drop", "/contracts/design/Marketplace": "/contracts/design-docs/marketplace", @@ -808,6 +808,7 @@ const contractRedirects = { "/contracts/design/Multiwrap": "/contracts/design-docs/multiwrap", "/contracts/design/Pack": "/contracts/design-docs/pack", "/contracts/design/SignatureDrop": "/contracts", + "/interact": "/contracts", }; const infrastructureRedirects = { diff --git a/apps/portal/src/app/connect/in-app-wallet/guides/interact-blockchain/page.mdx b/apps/portal/src/app/connect/in-app-wallet/guides/interact-blockchain/page.mdx index 888e978b658..86858e82637 100644 --- a/apps/portal/src/app/connect/in-app-wallet/guides/interact-blockchain/page.mdx +++ b/apps/portal/src/app/connect/in-app-wallet/guides/interact-blockchain/page.mdx @@ -22,7 +22,7 @@ export const metadata = createMetadata({ # Interact with the blockchain -One connected, in-app wallets can be used alongside the [Contract SDK](/contracts/interact/overview) to interact with the blockchain. +Once connected, in-app wallets can be used alongside the [Contract SDK](/contracts) to interact with the blockchain. ## Initialize the SDK With Your Wallet diff --git a/apps/portal/src/app/contracts/explore/pre-built-contracts/nft-drop/page.mdx b/apps/portal/src/app/contracts/explore/pre-built-contracts/nft-drop/page.mdx index 6339aa00017..076e1b363f5 100644 --- a/apps/portal/src/app/contracts/explore/pre-built-contracts/nft-drop/page.mdx +++ b/apps/portal/src/app/contracts/explore/pre-built-contracts/nft-drop/page.mdx @@ -198,4 +198,4 @@ const sdk = useSDK( ## Interact with your contract -For easy-to-use code snippets for your contract, view the Code Snippets on your contract's dashboard or visit the [SDK documentation](/contracts/interact/overview). +For easy-to-use code snippets for your contract, view the Code Snippets on your contract's dashboard or visit the [SDK documentation](/contracts). diff --git a/apps/portal/src/app/contracts/page.mdx b/apps/portal/src/app/contracts/page.mdx index 448c44ad590..d139bd81522 100644 --- a/apps/portal/src/app/contracts/page.mdx +++ b/apps/portal/src/app/contracts/page.mdx @@ -20,7 +20,7 @@ Trusted, modular smart contracts that can be deployed securely on any EVM chain. - [Build:](/contracts/build/overview) Write your own smart contracts - [Deploy:](/contracts/deploy/overview) Contract deployment built for any use-case - [Publish:](/contracts/publish/overview) Publish your contracts onchain -- [Interact:](/contracts/interact/overview) Integrate smart contract interactions directly into your app +- [Interact:](/contracts) Integrate smart contract interactions directly into your app ### Templates diff --git a/apps/portal/src/app/glossary/gas/page.mdx b/apps/portal/src/app/glossary/gas/page.mdx index e16fecb2903..8f4415a929c 100644 --- a/apps/portal/src/app/glossary/gas/page.mdx +++ b/apps/portal/src/app/glossary/gas/page.mdx @@ -7,7 +7,7 @@ Gas fees are typically paid in the currency that is native to the blockchain you While using thirdweb is free, you will need to cover the cost of performing actions that update the blockchain's state. -This includes actions performed via the thirdweb [dashboard](https://thirdweb.com/team), our [SDKs](/contracts/interact/overview), or any of our other products, including: +This includes actions performed via the thirdweb [dashboard](https://thirdweb.com/team), our [SDKs](/contracts), or any of our other products, including: - Deploying smart contracts - [Lazy-minting](/glossary/lazy-minting) the metadata of your NFTs diff --git a/apps/portal/src/app/glossary/ipfs/page.mdx b/apps/portal/src/app/glossary/ipfs/page.mdx index e780e953690..0268d26c7c8 100644 --- a/apps/portal/src/app/glossary/ipfs/page.mdx +++ b/apps/portal/src/app/glossary/ipfs/page.mdx @@ -9,6 +9,6 @@ To secure content on IPFS forever, a node must [pin](https://docs.ipfs.tech/conc [Learn more about how IPFS works](https://ipfs.tech/#how). To read data from IPFS, an [IPFS Gateway](https://docs.ipfs.tech/concepts/ipfs-gateway/) is required. This allows you to access data from the IPFS protocol on browsers and other HTTP clients, such -as when building an application using our [SDK](/contracts/interact/overview). +as when building an application using our [SDK](/contracts). Out of the box, all of our tools use [Storage](/storage) to store, pin, and retrieve data from IPFS via a gateway, currently powered by [Pinata](https://pinata.cloud/) under the hood. diff --git a/apps/portal/src/app/page.tsx b/apps/portal/src/app/page.tsx index 711f17a4d39..2ec7194ef0e 100644 --- a/apps/portal/src/app/page.tsx +++ b/apps/portal/src/app/page.tsx @@ -318,7 +318,7 @@ function ContractsSection() { title="Interact" description="Add smart contract interactions in your app" icon={ContractInteractIcon} - href="/contracts/interact/overview" + href="/contracts" />