Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update reqs to join the BG #201

Merged
merged 1 commit into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion packages/backend/services/buidlguidl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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={{
Expand Down
40 changes: 23 additions & 17 deletions packages/react-app/src/data/challenges.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
3 changes: 1 addition & 2 deletions packages/react-app/src/views/HomeView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ export default function HomeView({ connectedBuilder, userProvider }) {
>
<HeroLogo maxW="600px" height="auto" />
</Center>

</Container>
<Box
bgImg="/assets/header_platform.svg"
Expand All @@ -73,7 +72,7 @@ export default function HomeView({ connectedBuilder, userProvider }) {
challengeId={challengeId}
challenge={challenge}
// Magic number: we don't want to count the Join the BG as a challenge
challengeIndex={index < 3 ? index : index - 1}
challengeIndex={index < 5 ? index : index - 1}
builderAttemptedChallenges={builderAttemptedChallenges}
userProvider={userProvider}
connectedBuilder={connectedBuilder}
Expand Down
Loading