From 37c45f5a10e656219fa97097519d0adbf11c1589 Mon Sep 17 00:00:00 2001 From: Marcus Aurelius Date: Fri, 27 Dec 2024 17:56:14 -0500 Subject: [PATCH] Switch custom descriptions to block type --- carbon-projects/schemas/indexContent.ts | 6 +++--- carbon-projects/schemas/projectContent.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/carbon-projects/schemas/indexContent.ts b/carbon-projects/schemas/indexContent.ts index 331f40f6d9..58484f3600 100644 --- a/carbon-projects/schemas/indexContent.ts +++ b/carbon-projects/schemas/indexContent.ts @@ -53,14 +53,14 @@ export default defineType({ description: "Short description, e.g. for retirement PDFs. Ideally 300-600 chars, no newlines, no bullet points.", group: "info", - type: "text", - validation: (r) => r.min(20).max(700), + type: "text" }), defineField({ name: "longDescription", description: "Longer description", group: "info", - type: "text", + type: "array", + of: [{type: "block"}] }), defineField({ name: "sdgs", diff --git a/carbon-projects/schemas/projectContent.ts b/carbon-projects/schemas/projectContent.ts index f19220bf08..3808fe3ebd 100644 --- a/carbon-projects/schemas/projectContent.ts +++ b/carbon-projects/schemas/projectContent.ts @@ -52,14 +52,14 @@ export default defineType({ description: "Short description, e.g. for retirement PDFs. Ideally 300-600 chars, no newlines, no bullet points.", group: "info", - type: "text", - validation: (r) => r.min(20).max(700), + type: "type" }), defineField({ name: "longDescription", description: "Longer description", group: "info", - type: "text", + type: "array", + of: [{type: "block"}] }), defineField({ name: "extraSdgs",