feat: prep b1 english for release (#57543)

This commit is contained in:
Oliver Eyton-Williams
2024-12-16 23:54:52 +01:00
committed by GitHub
parent 7c98f2642a
commit c9d2b47fc4
7 changed files with 22 additions and 10 deletions

View File

@@ -143,11 +143,12 @@ exports.createPages = async function createPages({
({ node }) => node
);
const inNextCurriculum = superBlock =>
superBlockStages[SuperBlockStage.Next].includes(superBlock);
const inCurrentCurriculum = superBlock =>
!superBlockStages[SuperBlockStage.Next].includes(superBlock) &&
!superBlockStages[SuperBlockStage.NextEnglish].includes(superBlock);
const currentChallengeNodes = allChallengeNodes.filter(
node => !inNextCurriculum(node.challenge.superBlock)
const currentChallengeNodes = allChallengeNodes.filter(node =>
inCurrentCurriculum(node.challenge.superBlock)
);
const createIdToNextPathMap = nodes =>