From 05bbd2efbc2cd97039a4573f62bd976a31f5c43b Mon Sep 17 00:00:00 2001 From: Chase Fleming <1666730+chasefleming@users.noreply.github.com> Date: Wed, 20 Nov 2024 10:01:17 -0800 Subject: [PATCH 1/3] Change slug --- .../{hello-world.md => contract-interaction.md} | 0 docs/build/getting-started/fcl-quickstart.md | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename docs/build/getting-started/{hello-world.md => contract-interaction.md} (100%) diff --git a/docs/build/getting-started/hello-world.md b/docs/build/getting-started/contract-interaction.md similarity index 100% rename from docs/build/getting-started/hello-world.md rename to docs/build/getting-started/contract-interaction.md diff --git a/docs/build/getting-started/fcl-quickstart.md b/docs/build/getting-started/fcl-quickstart.md index 25fe3ee946..eb492da01c 100644 --- a/docs/build/getting-started/fcl-quickstart.md +++ b/docs/build/getting-started/fcl-quickstart.md @@ -5,7 +5,7 @@ sidebar_label: Simple Frontend # Simple Frontend -Building upon the `Counter` contract you interacted with in [Step 1: Contract Interaction](hello-world.md) and deployed locally in [Step 2: Local Development](./flow-cli.md), this tutorial will guide you through creating a simple frontend application using [Next.js] to interact with the `Counter` smart contract on the local Flow emulator. Using the [Flow Client Library] (FCL), you'll learn how to read and modify the contract's state from a React web application, set up wallet authentication using FCL's Discovery UI connected to the local emulator, and query the chain to read data from smart contracts. +Building upon the `Counter` contract you interacted with in [Step 1: Contract Interaction](contract-interaction.md) and deployed locally in [Step 2: Local Development](./flow-cli.md), this tutorial will guide you through creating a simple frontend application using [Next.js] to interact with the `Counter` smart contract on the local Flow emulator. Using the [Flow Client Library] (FCL), you'll learn how to read and modify the contract's state from a React web application, set up wallet authentication using FCL's Discovery UI connected to the local emulator, and query the chain to read data from smart contracts. ## Objectives @@ -18,7 +18,7 @@ After completing this guide, you'll be able to: ## Prerequisites -- Completion of [Step 1: Contract Interaction](hello-world.md) and [Step 2: Local Development](./flow-cli.md). +- Completion of [Step 1: Contract Interaction](contract-interaction.md) and [Step 2: Local Development](./flow-cli.md). - Flow CLI installed. - Node.js and npm installed. From 7c7d159e721ac561cd67b937638105ad4346837b Mon Sep 17 00:00:00 2001 From: Chase Fleming <1666730+chasefleming@users.noreply.github.com> Date: Wed, 20 Nov 2024 10:02:28 -0800 Subject: [PATCH 2/3] Change paths --- docusaurus.config.js | 2 +- .../src/lib/Components/HomepageStartListCadence/index.tsx | 2 +- .../src/lib/Components/LandingHeaderHome/index.tsx | 2 +- src/ui/design-system/src/lib/Components/LinkGrid/index.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index f138c94f64..7c2e1cc563 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -304,7 +304,7 @@ const config = { items: [ { label: 'Getting Started', - to: '/build/getting-started/hello-world', + to: '/build/getting-started/contract-interaction', }, { label: "SDK's & Tools", diff --git a/src/ui/design-system/src/lib/Components/HomepageStartListCadence/index.tsx b/src/ui/design-system/src/lib/Components/HomepageStartListCadence/index.tsx index 9837786578..a617064a9a 100644 --- a/src/ui/design-system/src/lib/Components/HomepageStartListCadence/index.tsx +++ b/src/ui/design-system/src/lib/Components/HomepageStartListCadence/index.tsx @@ -14,7 +14,7 @@ const homepageData: Record = { icon: 'cadence-course', }, 'beginner-dapp': { - link: '/build/getting-started/hello-world', + link: '/build/getting-started/contract-interaction', icon: 'start-here', }, 'flow-quest': { diff --git a/src/ui/design-system/src/lib/Components/LandingHeaderHome/index.tsx b/src/ui/design-system/src/lib/Components/LandingHeaderHome/index.tsx index 3d84638a0f..67ebb33ebd 100644 --- a/src/ui/design-system/src/lib/Components/LandingHeaderHome/index.tsx +++ b/src/ui/design-system/src/lib/Components/LandingHeaderHome/index.tsx @@ -32,7 +32,7 @@ export function LandingHeaderHome({ Get Building diff --git a/src/ui/design-system/src/lib/Components/LinkGrid/index.tsx b/src/ui/design-system/src/lib/Components/LinkGrid/index.tsx index 6706c684f2..f3bd407ec6 100644 --- a/src/ui/design-system/src/lib/Components/LinkGrid/index.tsx +++ b/src/ui/design-system/src/lib/Components/LinkGrid/index.tsx @@ -25,7 +25,7 @@ const sections: LinkGridSection[] = [ links: [ { title: 'Hello World Tutorial', - href: '/build/getting-started/hello-world', + href: '/build/getting-started/contract-interaction', }, { title: 'App Architecture', From 4a7cc46371f4f7bcd5e10141d7f7c0a61ef56109 Mon Sep 17 00:00:00 2001 From: Chase Fleming <1666730+chasefleming@users.noreply.github.com> Date: Wed, 20 Nov 2024 10:04:02 -0800 Subject: [PATCH 3/3] Add redirect --- vercel.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vercel.json b/vercel.json index 839bd46cb9..9b7fca4b19 100644 --- a/vercel.json +++ b/vercel.json @@ -1238,6 +1238,11 @@ "destination": "/build/getting-started/hello-world", "permanent": true }, + { + "source": "/build/getting-started/hello-world", + "destination": "/build/getting-started/contract-interaction", + "permanent": true + }, { "source": "/build/getting-started/quickstarts/flow-cli", "destination": "/build/getting-started/flow-cli",