From 1888cfd80000062366404977d81d0503cffb56c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20S=C3=A1nchez?= Date: Wed, 8 May 2024 09:46:04 +0200 Subject: [PATCH] Update reqs to join the BG --- packages/backend/services/buidlguidl.js | 8 +++- .../src/components/ChallengeExpandedCard.jsx | 2 +- packages/react-app/src/data/challenges.js | 40 +++++++++++-------- packages/react-app/src/views/HomeView.jsx | 3 +- 4 files changed, 32 insertions(+), 21 deletions(-) diff --git a/packages/backend/services/buidlguidl.js b/packages/backend/services/buidlguidl.js index 5094c6a8..1147e732 100644 --- a/packages/backend/services/buidlguidl.js +++ b/packages/backend/services/buidlguidl.js @@ -21,7 +21,13 @@ const createUserOnBG = async (userAddress, request) => { await db.markAsBuidlGuidlMember(userAddress); const userData = user.data; - const requiredChallengesToEnterBG = ["simple-nft-example", "decentralized-staking", "token-vendor"]; + const requiredChallengesToEnterBG = [ + "simple-nft-example", + "decentralized-staking", + "token-vendor", + "dice-game", + "minimum-viable-exchange", + ]; const arePendingChallenges = requiredChallengesToEnterBG.some( challengeId => userData.challenges?.[challengeId]?.status !== "ACCEPTED", ); diff --git a/packages/react-app/src/components/ChallengeExpandedCard.jsx b/packages/react-app/src/components/ChallengeExpandedCard.jsx index d718f463..883e6190 100644 --- a/packages/react-app/src/components/ChallengeExpandedCard.jsx +++ b/packages/react-app/src/components/ChallengeExpandedCard.jsx @@ -214,7 +214,7 @@ const ChallengeExpandedCard = ({ borderLeft="solid 5px" borderColor={borderColor} // Magic number (challengeIndex === 2). Challenge before Join the BG - borderBottom={isLast || challengeIndex === 2 ? 0 : "2px"} + borderBottom={isLast || challengeIndex === 4 ? 0 : "2px"} borderBottomColor={borderColor} position="relative" direction={{ diff --git a/packages/react-app/src/data/challenges.js b/packages/react-app/src/data/challenges.js index a6ddfd57..528f978c 100644 --- a/packages/react-app/src/data/challenges.js +++ b/packages/react-app/src/data/challenges.js @@ -30,23 +30,6 @@ export const challengeInfo = { previewImage: "/assets/challenges/tokenVendor.svg", dependencies: [], }, - "buidl-guidl": { - id: 4, - branchName: "", - label: "Eligible to join 🏰️ BuidlGuidl", - icon: "/assets/vault_icon.svg", - // Not a challenge, just a checkpoint in the Challenge timeline. - checkpoint: true, - disabled: false, - description: - "The BuidlGuidl is a curated group of Ethereum builders creating products, prototypes, and tutorials to enrich the web3 ecosystem. A place to show off your builds and meet other builders. Start crafting your Web3 portfolio by submitting your DEX, Multisig or SVG NFT build.", - previewImage: "assets/bg.png", - dependencies: ["simple-nft-example", "decentralized-staking", "token-vendor"], - externalLink: { - link: "https://buidlguidl.com/", - claim: "Join the 🏰️ BuidlGuidl", - }, - }, "dice-game": { id: 3, branchName: "challenge-3-dice-game", @@ -67,6 +50,29 @@ export const challengeInfo = { previewImage: "assets/challenges/dex.svg", dependencies: ["simple-nft-example", "decentralized-staking", "token-vendor", "dice-game"], }, + "buidl-guidl": { + id: 9999, + branchName: "", + label: "Eligible to join 🏰️ BuidlGuidl", + icon: "/assets/vault_icon.svg", + // Not a challenge, just a checkpoint in the Challenge timeline. + checkpoint: true, + disabled: false, + description: + "The BuidlGuidl is a curated group of Ethereum builders creating products, prototypes, and tutorials to enrich the web3 ecosystem. A place to show off your builds and meet other builders. Start crafting your Web3 portfolio by submitting your DEX, Multisig or SVG NFT build.", + previewImage: "assets/bg.png", + dependencies: [ + "simple-nft-example", + "decentralized-staking", + "token-vendor", + "dice-game", + "minimum-viable-exchange", + ], + externalLink: { + link: "https://buidlguidl.com/", + claim: "Join the 🏰️ BuidlGuidl", + }, + }, "state-channels": { id: 5, branchName: "challenge-5-state-channels", diff --git a/packages/react-app/src/views/HomeView.jsx b/packages/react-app/src/views/HomeView.jsx index 42208a5e..fde433bf 100644 --- a/packages/react-app/src/views/HomeView.jsx +++ b/packages/react-app/src/views/HomeView.jsx @@ -56,7 +56,6 @@ export default function HomeView({ connectedBuilder, userProvider }) { > -