From 7559d9fce191f62acc88c9e03d98366eefc4bf42 Mon Sep 17 00:00:00 2001 From: Simon Adcock Date: Tue, 7 Jan 2025 09:49:39 +0000 Subject: [PATCH] add crossword design --- dotcom-rendering/src/lib/articleFormat.ts | 3 +++ dotcom-rendering/src/model/article-schema.json | 1 + dotcom-rendering/src/model/front-schema.json | 1 + dotcom-rendering/src/model/tag-page-schema.json | 1 + dotcom-rendering/src/types/frontend.ts | 1 + 5 files changed, 7 insertions(+) diff --git a/dotcom-rendering/src/lib/articleFormat.ts b/dotcom-rendering/src/lib/articleFormat.ts index 219ad4fbe62..1f935498ee5 100644 --- a/dotcom-rendering/src/lib/articleFormat.ts +++ b/dotcom-rendering/src/lib/articleFormat.ts @@ -7,6 +7,7 @@ export enum ArticleDesign { Gallery, Audio, Video, + Crossword, Review, Analysis, Explainer, @@ -230,6 +231,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 0009dcbdcc8..8660b8d36be 100644 --- a/dotcom-rendering/src/model/article-schema.json +++ b/dotcom-rendering/src/model/article-schema.json @@ -4217,6 +4217,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 0dcefd774f3..fd9de4c6488 100644 --- a/dotcom-rendering/src/model/front-schema.json +++ b/dotcom-rendering/src/model/front-schema.json @@ -3050,6 +3050,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 0cee409dec3..e42df45505e 100644 --- a/dotcom-rendering/src/model/tag-page-schema.json +++ b/dotcom-rendering/src/model/tag-page-schema.json @@ -1283,6 +1283,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 2f91fe527d7..dc25274da66 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'