diff --git a/dotcom-rendering/src/lib/articleFormat.ts b/dotcom-rendering/src/lib/articleFormat.ts index 219ad4fbe6..4448839f44 100644 --- a/dotcom-rendering/src/lib/articleFormat.ts +++ b/dotcom-rendering/src/lib/articleFormat.ts @@ -28,6 +28,7 @@ export enum ArticleDesign { NewsletterSignup, Timeline, Profile, + Crossword, } export enum ArticleDisplay { @@ -115,6 +116,8 @@ export const decideDesign = ({ design }: Partial): ArticleDesign => { return ArticleDesign.Timeline; case 'ProfileDesign': return ArticleDesign.Profile; + case 'CrosswordDesign': + return ArticleDesign.Crossword; default: return ArticleDesign.Standard; } @@ -230,6 +233,8 @@ const designToFEDesign = (design: ArticleDesign): FEDesign => { return 'AudioDesign'; case ArticleDesign.Video: return 'VideoDesign'; + case ArticleDesign.Crossword: + return 'CrosswordDesign'; case ArticleDesign.Review: return 'ReviewDesign'; case ArticleDesign.Analysis: diff --git a/dotcom-rendering/src/model/article-schema.json b/dotcom-rendering/src/model/article-schema.json index 803b4d4ef8..aea462d62f 100644 --- a/dotcom-rendering/src/model/article-schema.json +++ b/dotcom-rendering/src/model/article-schema.json @@ -4220,6 +4220,7 @@ "ArticleDesign", "AudioDesign", "CommentDesign", + "CrosswordDesign", "DeadBlogDesign", "EditorialDesign", "ExplainerDesign", diff --git a/dotcom-rendering/src/model/front-schema.json b/dotcom-rendering/src/model/front-schema.json index 4822ad7f37..435dab8d9f 100644 --- a/dotcom-rendering/src/model/front-schema.json +++ b/dotcom-rendering/src/model/front-schema.json @@ -3055,6 +3055,7 @@ "ArticleDesign", "AudioDesign", "CommentDesign", + "CrosswordDesign", "DeadBlogDesign", "EditorialDesign", "ExplainerDesign", diff --git a/dotcom-rendering/src/model/tag-page-schema.json b/dotcom-rendering/src/model/tag-page-schema.json index a6cb6711fa..c8b898e9c6 100644 --- a/dotcom-rendering/src/model/tag-page-schema.json +++ b/dotcom-rendering/src/model/tag-page-schema.json @@ -1282,6 +1282,7 @@ "ArticleDesign", "AudioDesign", "CommentDesign", + "CrosswordDesign", "DeadBlogDesign", "EditorialDesign", "ExplainerDesign", diff --git a/dotcom-rendering/src/types/frontend.ts b/dotcom-rendering/src/types/frontend.ts index 2f91fe527d..dc25274da6 100644 --- a/dotcom-rendering/src/types/frontend.ts +++ b/dotcom-rendering/src/types/frontend.ts @@ -183,6 +183,7 @@ export type FEDesign = | 'GalleryDesign' | 'AudioDesign' | 'VideoDesign' + | 'CrosswordDesign' | 'ReviewDesign' | 'AnalysisDesign' | 'CommentDesign'