From a1b63d2f7da88615ef75b6a812163d6212d2d463 Mon Sep 17 00:00:00 2001 From: Arjun Puri Date: Thu, 15 Dec 2022 14:58:56 +0100 Subject: [PATCH 1/2] feat(Sanity fields updates): Wrap KPI theme subtitles in a fieldset. --- packages/cms/src/schemas/topical/theme.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/cms/src/schemas/topical/theme.ts b/packages/cms/src/schemas/topical/theme.ts index b31d1af1dd..efed784dcb 100644 --- a/packages/cms/src/schemas/topical/theme.ts +++ b/packages/cms/src/schemas/topical/theme.ts @@ -5,6 +5,17 @@ export const theme = { type: 'document', title: 'Thema', name: 'theme', + fieldsets: [ + { + title: 'Ondertitel', + description: 'Klik op het label om de velden te tonen.', + name: 'ondertitel', + options: { + collapsible: true, + collapsed: true, + }, + }, + ], fields: [ { title: 'Titel', @@ -16,6 +27,7 @@ export const theme = { title: 'Ondertitel', name: 'subTitle', type: 'localeRichContentBlock', + fieldset: 'ondertitel', }, { title: 'Thema icoon', From 6dd1116b5a13d4968b30e9a677c6c602e64751c9 Mon Sep 17 00:00:00 2001 From: Arjun Puri Date: Thu, 15 Dec 2022 15:45:26 +0100 Subject: [PATCH 2/2] feat(Sanity fields updates): Wrap rich text fields within the thermometer section in fieldsets. --- .../cms/src/schemas/topical/thermometer.ts | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/packages/cms/src/schemas/topical/thermometer.ts b/packages/cms/src/schemas/topical/thermometer.ts index 5348230c41..74e23bec9a 100644 --- a/packages/cms/src/schemas/topical/thermometer.ts +++ b/packages/cms/src/schemas/topical/thermometer.ts @@ -10,6 +10,35 @@ export const thermometer = { type: 'object', title: 'Thermometer', name: 'thermometer', + fieldsets: [ + { + title: 'De beschrijving boven de thermometer', + name: 'description', + description: 'Klik op het label om de velden te tonen.', + options: { + collapsible: true, + collapsed: true, + }, + }, + { + title: 'Artikel referentie', + name: 'artikel-referentie', + description: 'Klik op het label om de velden te tonen.', + options: { + collapsible: true, + collapsed: true, + }, + }, + { + title: 'Titel van standen informatie', + name: 'level-information', + description: 'Klik op het label om de velden te tonen.', + options: { + collapsible: true, + collapsed: true, + }, + }, + ], fields: [ { title: 'Thermometer icoon', @@ -28,6 +57,7 @@ export const thermometer = { title: 'De beschrijving boven de thermometer', name: 'subTitle', type: 'localeRichContentBlock', + fieldset: 'description', }, { title: 'De titel binnen de thermometer tegel', @@ -73,6 +103,7 @@ export const thermometer = { title: 'Artikel referentie', name: 'articleReference', type: 'localeRichContentBlock', + fieldset: 'artikel-referentie', }, { title: 'Titel van uitklapbare sectie', @@ -84,6 +115,7 @@ export const thermometer = { title: 'Titel van standen informatie', name: 'trendIcon', type: 'trendIcon', + fieldset: 'level-information', }, { title: 'Tijdlijn',