From 0a5551d3029ea10b54124aeb052e2cec5b60147e Mon Sep 17 00:00:00 2001 From: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> Date: Fri, 9 Jan 2026 20:50:58 +0700 Subject: [PATCH] fix(curriculum,schema): allow A2 and B1 English to have block label (#65052) --- client/src/redux/prop-types.ts | 2 +- .../Introduction/components/super-block-accordion.tsx | 4 ++-- .../src/templates/Introduction/components/super-block-map.tsx | 2 +- client/src/templates/Introduction/super-block-intro.test.tsx | 2 +- client/src/templates/Introduction/super-block-intro.tsx | 2 +- curriculum/schema/challenge-schema.js | 2 +- curriculum/src/file-handler.ts | 3 ++- tools/challenge-helper-scripts/helpers/project-metadata.ts | 3 ++- 8 files changed, 11 insertions(+), 9 deletions(-) diff --git a/client/src/redux/prop-types.ts b/client/src/redux/prop-types.ts index dc452cded8c..054b69b65cf 100644 --- a/client/src/redux/prop-types.ts +++ b/client/src/redux/prop-types.ts @@ -207,7 +207,7 @@ type InteractiveEditorNodule = { export type ChallengeNode = { challenge: { block: string; - blockLabel: BlockLabel; + blockLabel?: BlockLabel; blockLayout: BlockLayouts; certification: string; challengeOrder: number; diff --git a/client/src/templates/Introduction/components/super-block-accordion.tsx b/client/src/templates/Introduction/components/super-block-accordion.tsx index e1a21a9c8d4..376ab32f5fa 100644 --- a/client/src/templates/Introduction/components/super-block-accordion.tsx +++ b/client/src/templates/Introduction/components/super-block-accordion.tsx @@ -49,7 +49,7 @@ interface ModuleProps { interface Challenge { id: string; block: string; - blockLabel: BlockLabel; + blockLabel?: BlockLabel; title: string; fields: { slug: string }; dashedName: string; @@ -236,7 +236,7 @@ const LinkModule = ({