Skip to content

Commit

Permalink
feat: prep semantic html for release (freeCodeCamp#57539)
Browse files Browse the repository at this point in the history
  • Loading branch information
ojeytonwilliams authored Dec 17, 2024
1 parent c9d2b47 commit fbf6a0d
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 10 deletions.
1 change: 1 addition & 0 deletions client/i18n/locales/english/intro.json
Original file line number Diff line number Diff line change
Expand Up @@ -1718,6 +1718,7 @@
"semantic-html": "Semantic HTML",
"html-forms-and-tables": "Forms and Tables",
"html-and-accessibility": "Accessibility",
"review-html": "HTML Review",
"computer-basics": "Computer Basics",
"basic-css": "Basic CSS",
"design-for-developers": "Design",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,12 @@ type Module = {
blocks: {
dashedName: string;
}[];
moduleType?: string;
};

const modules = superBlockStructure.chapters.flatMap(({ modules }) => modules);
const modules = superBlockStructure.chapters.flatMap<Module>(
({ modules }) => modules
);
const chapters = superBlockStructure.chapters;

const isLinkModule = (name: string) => {
Expand Down
2 changes: 1 addition & 1 deletion curriculum/challenges/_meta/lab-event-hub/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Build an Event Hub",
"blockType": "lab",
"blockLayout": "link",
"isUpcomingChange": true,
"isUpcomingChange": false,
"usesMultifileEditor": true,
"dashedName": "lab-event-hub",
"superBlock": "full-stack-developer",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Importance of Semantic HTML",
"blockType": "lecture",
"blockLayout": "challenge-list",
"isUpcomingChange": true,
"isUpcomingChange": false,
"dashedName": "lecture-importance-of-semantic-html",
"superBlock": "full-stack-developer",
"challengeOrder": [
Expand Down Expand Up @@ -60,4 +60,4 @@
}
],
"helpCategory": "HTML-CSS"
}
}
2 changes: 1 addition & 1 deletion curriculum/challenges/_meta/quiz-semantic-html/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Semantic HTML Quiz",
"blockType": "quiz",
"blockLayout": "link",
"isUpcomingChange": true,
"isUpcomingChange": false,
"dashedName": "quiz-semantic-html",
"superBlock": "full-stack-developer",
"challengeOrder": [{ "id": "66ed903cf45ce3ece4053ebe", "title": "Semantic HTML Quiz" }],
Expand Down
2 changes: 1 addition & 1 deletion curriculum/challenges/_meta/review-semantic-html/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Semantic HTML Review",
"blockType": "review",
"blockLayout": "link",
"isUpcomingChange": true,
"isUpcomingChange": false,
"dashedName": "review-semantic-html",
"superBlock": "full-stack-developer",
"challengeOrder": [
Expand Down
2 changes: 1 addition & 1 deletion curriculum/challenges/_meta/workshop-blog-page/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Build a Cat Blog Page",
"blockType": "workshop",
"blockLayout": "challenge-grid",
"isUpcomingChange": true,
"isUpcomingChange": false,
"usesMultifileEditor": true,
"hasEditableBoundaries": true,
"dashedName": "workshop-blog-page",
Expand Down
5 changes: 4 additions & 1 deletion curriculum/superblock-structure/full-stack.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
},
{
"dashedName": "html",
"comingSoon": true,
"modules": [
{
"dashedName": "basic-html",
"comingSoon": true,
"blocks": [
{ "dashedName": "lecture-what-is-html" },
{ "dashedName": "workshop-cat-photo-app" },
Expand All @@ -41,6 +41,7 @@
},
{
"dashedName": "html-forms-and-tables",
"comingSoon": true,
"blocks": [
{ "dashedName": "lecture-working-with-forms" },
{ "dashedName": "workshop-hotel-feedback-form" },
Expand All @@ -55,6 +56,7 @@
},
{
"dashedName": "html-and-accessibility",
"comingSoon": true,
"blocks": [
{
"dashedName": "lecture-importance-of-accessibility-and-good-html-structure"
Expand All @@ -66,6 +68,7 @@
},
{
"moduleType": "review",
"comingSoon": true,
"dashedName": "review-html",
"blocks": [{ "dashedName": "review-html" }]
}
Expand Down
9 changes: 7 additions & 2 deletions curriculum/test/test-challenges.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const {
createHeader,
testId
} = require('../../client/src/templates/Challenges/utils/frame');
const { SuperBlocks } = require('../../shared/config/curriculum');
const ChallengeTitles = require('./utils/challenge-titles');
const MongoIds = require('./utils/mongo-ids');
const createPseudoWorker = require('./utils/pseudo-worker');
Expand Down Expand Up @@ -314,8 +315,12 @@ function populateTestsForLang({ lang, challenges, meta, superBlocks }) {
);
});
filteredMeta.forEach((meta, index) => {
// ignore block order for upcoming blocks
if (!meta.isUpcomingChange) {
// Upcoming changes are in developmen so are not required to be in
// order. FullStackDeveloper does not use the meta for order.
if (
!meta.isUpcomingChange &&
meta.superBlock !== SuperBlocks.FullStackDeveloper
) {
it(`${meta.superBlock} ${meta.name} must be in order`, function () {
assert.equal(meta.order, index);
});
Expand Down

0 comments on commit fbf6a0d

Please sign in to comment.