feat: transfer The Odin Project to its own superblock (#49202)

* feat: the odin-project superblock

* feat: break everything

* fix: correct meta names

* fix: meta again

* fix: tests

* fix: help category and external curriculum test

* fix: file names again

* fix: help category

* fix: remove console log

---------

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
Sem Bauke
2023-02-08 15:21:03 +01:00
committed by GitHub
parent 919c1d8c20
commit 928dcbe08c
49 changed files with 160 additions and 53 deletions
@@ -82,10 +82,16 @@ if (envData.clientLocale == 'english' && !envData.showUpcomingChanges) {
const dashedNames = orderedSuperBlockInfo.map(
({ dashedName }) => dashedName
);
const isUpcoming = [
'2022/javascript-algorithms-and-data-structures',
'the-odin-project'
];
// TODO: this is a hack, we should have a single source of truth for the
// list of superblocks that are available.
const publicSuperBlockNames = Object.values(SuperBlocks).filter(
x => x !== '2022/javascript-algorithms-and-data-structures'
x => !isUpcoming.includes(x)
);
expect(dashedNames).toEqual(