feat(curriculum, client): add catalog (#60951)

This commit is contained in:
Tom
2025-06-26 15:08:36 -05:00
committed by GitHub
parent 10e3004403
commit 3af161450f
39 changed files with 1504 additions and 12 deletions
@@ -141,7 +141,9 @@ ${result.error.message}`);
.filter(([key]) => {
const stage = Number(key) as SuperBlockStage;
return (
stage !== SuperBlockStage.Next && stage !== SuperBlockStage.Upcoming
stage !== SuperBlockStage.Next &&
stage !== SuperBlockStage.Upcoming &&
stage !== SuperBlockStage.Catalog
);
})
.flatMap(([, superBlocks]) => superBlocks);
@@ -58,7 +58,9 @@ describe('external curriculum data build', () => {
test('the available-superblocks file should have the correct structure', async () => {
const filteredSuperBlockStages: string[] = Object.keys(SuperBlockStage)
.filter(key => isNaN(Number(key))) // Filter out numeric keys to get only the names
.filter(name => name !== 'Upcoming' && name !== 'Next') // Filter out 'Upcoming' and 'Next'
.filter(
name => name !== 'Upcoming' && name !== 'Next' && name !== 'Catalog'
) // Filter out 'Upcoming', 'Next', and 'Catalog'
.map(name => name.toLowerCase());
const validateAvailableSuperBlocks = availableSuperBlocksValidator();