diff --git a/config.ts b/config.ts index f344a334..5a4c2275 100644 --- a/config.ts +++ b/config.ts @@ -42,7 +42,7 @@ const getEdgioEnvName = (): string | null => { }; // This controls the default patch selector in the stats page // this needs to be key statsPatchSelector object -const defaultStatsPatchSelector = "1.6.0"; +const defaultStatsPatchSelector = "1.6.1"; // This controls the patch selector in the stats page const statsPatchSelector: Record< @@ -55,9 +55,16 @@ const statsPatchSelector: Record< group: string; } > = { + "1.6.1": { + from: "2024-04-11", + to: "now", + value: "1.6.1", + label: "1.6.1", + group: "Coral Viper", + }, "1.6.0": { from: "2024-04-02", - to: "now", + to: "2024-04-10", value: "1.6.0", label: "1.6.0", group: "Coral Viper", @@ -145,11 +152,15 @@ const statsPatchSelector: Record< }; // Latest patch needs to be a key to patches object -const latestPatch = "1.6.0"; +const latestPatch = "1.6.1"; // Get patchTimeSeconds here https://www.unixtimestamp.com/ const patches: Record = { + "1.6.1": { + dataTag: "v1.6.1-1", // This is the tag of the data repo + dataTime: "01/April/2024", // The date when was the data tag created (the data extracted from game) + }, "1.6.0": { dataTag: "v1.6.0-1", // This is the tag of the data repo dataTime: "02/April/2024", // The date when was the data tag created (the data extracted from game) diff --git a/pages/explorer/challenges.tsx b/pages/explorer/challenges.tsx index 985cb378..abd03d40 100644 --- a/pages/explorer/challenges.tsx +++ b/pages/explorer/challenges.tsx @@ -1,12 +1,23 @@ import { GetStaticProps, NextPage } from "next"; import Head from "next/head"; -import { Accordion, Card, Container, Flex, Grid, Group, Stack, Text, Title } from "@mantine/core"; +import { + Accordion, + Card, + Container, + Flex, + Grid, + Group, + Space, + Stack, + Text, + Title, +} from "@mantine/core"; import { getMappings } from "../../src/unitStats/mappings"; import { generateKeywordsString } from "../../src/head-utils"; import { ChallengesType, SbpsType, UpgradesType } from "../../src/unitStats"; import { IconMedal } from "@tabler/icons-react"; import ImageWithFallback, { iconPlaceholder } from "../../components/placeholders"; -import { useEffect } from "react"; +import React, { useEffect } from "react"; import { AnalyticsExplorerChallengesView } from "../../src/firebase/analytics"; interface ResolvedChallenge { @@ -23,6 +34,7 @@ interface ChallengesProps { weeklyChallenges: ResolvedChallenge[]; }; } + const keywords = generateKeywordsString(["coh3 challenges", "challenges"]); const Challenges: NextPage = ({ calculatedData }) => { @@ -46,17 +58,26 @@ const Challenges: NextPage = ({ calculatedData }) => { } /> - {/**/} + {/*we might prepare better image*/} + - - - Weekly Challenges - - - {weeklyChallenges.map(({ challenge, research, spawnee, sources, targets }) => { - return ( - - + + + + + Weekly Challenges + + + + {weeklyChallenges.map(({ challenge, research, spawnee, sources, targets }) => { + return ( + @@ -73,19 +94,25 @@ const Challenges: NextPage = ({ calculatedData }) => { - - ); - })} - + ); + })} + + + + + Daily Challenges + + - - Daily Challenges - - - {dailyChallenges.map(({ challenge, research, spawnee, sources, targets }) => { - return ( - - + {dailyChallenges.map(({ challenge, research, spawnee, sources, targets }) => { + return ( + @@ -102,9 +129,9 @@ const Challenges: NextPage = ({ calculatedData }) => { - - ); - })} + ); + })} + @@ -113,12 +140,12 @@ const Challenges: NextPage = ({ calculatedData }) => { function AccordionLabel({ name, description, reward }: ResolvedChallenge["challenge"]) { return ( - + {name} - {description} + {description}