From 0acc1150816fbaa2a9e5f27324a464a2492b8223 Mon Sep 17 00:00:00 2001 From: Ayumi Tanaka <90415568+ayumi-oxd@users.noreply.github.com> Date: Mon, 23 Dec 2024 16:50:13 -0800 Subject: [PATCH] CMS-602: Remove unused fields from graphql queries (#1557) --- .../content-types/park-operation/schema.json | 6 ++- src/gatsby/src/components/park/subArea.js | 1 - src/gatsby/src/templates/park.js | 40 ------------------- src/gatsby/src/templates/site.js | 40 ------------------- 4 files changed, 5 insertions(+), 82 deletions(-) diff --git a/src/cms/src/api/park-operation/content-types/park-operation/schema.json b/src/cms/src/api/park-operation/content-types/park-operation/schema.json index 11aa043c1..b0b8904d3 100644 --- a/src/cms/src/api/park-operation/content-types/park-operation/schema.json +++ b/src/cms/src/api/park-operation/content-types/park-operation/schema.json @@ -206,7 +206,11 @@ "type": "time" }, "gateNote": { - "type": "text" + "type": "customField", + "options": { + "preset": "toolbar" + }, + "customField": "plugin::ckeditor5.CKEditor" }, "gateOpensAtDawn": { "type": "boolean" diff --git a/src/gatsby/src/components/park/subArea.js b/src/gatsby/src/components/park/subArea.js index e882e228d..b4a16bd8d 100644 --- a/src/gatsby/src/components/park/subArea.js +++ b/src/gatsby/src/components/park/subArea.js @@ -11,7 +11,6 @@ import { countsList } from "../../utils/constants" export default function SubArea({ data, showHeading }) { const subAreasNotesList = [ - { noteVar: "generalNote", display: "Note" }, { noteVar: "serviceNote", display: "Service note" }, { noteVar: "reservationNote", display: "Booking note" }, { noteVar: "offSeasonNote", display: "Winter season note" }, diff --git a/src/gatsby/src/templates/park.js b/src/gatsby/src/templates/park.js index de27e4a25..a21af0b14 100644 --- a/src/gatsby/src/templates/park.js +++ b/src/gatsby/src/templates/park.js @@ -660,36 +660,6 @@ export const query = graphql` openNote } } - serviceNote { - data { - serviceNote - } - } - reservationsNote { - data { - reservationsNote - } - } - reservationNote { - data { - reservationNote - } - } - offSeasonNote { - data { - offSeasonNote - } - } - generalNote { - data { - generalNote - } - } - adminNote { - data { - adminNote - } - } gateOpenTime gateCloseTime gateOpensAtDawn @@ -747,11 +717,6 @@ export const query = graphql` yurts shelters boatLaunches - openNote { - data { - openNote - } - } serviceNote { data { serviceNote @@ -767,11 +732,6 @@ export const query = graphql` offSeasonNote } } - adminNote { - data { - adminNote - } - } closureAffectsAccessStatus parkOperationSubAreaDates { isActive diff --git a/src/gatsby/src/templates/site.js b/src/gatsby/src/templates/site.js index 3b6b57a9d..786e33783 100644 --- a/src/gatsby/src/templates/site.js +++ b/src/gatsby/src/templates/site.js @@ -458,11 +458,6 @@ export const query = graphql` yurts shelters boatLaunches - openNote { - data { - openNote - } - } serviceNote { data { serviceNote @@ -478,11 +473,6 @@ export const query = graphql` offSeasonNote } } - adminNote { - data { - adminNote - } - } closureAffectsAccessStatus parkOperationSubAreaDates { isActive @@ -604,36 +594,6 @@ export const query = graphql` openNote } } - serviceNote { - data { - serviceNote - } - } - reservationsNote { - data { - reservationsNote - } - } - reservationNote { - data { - reservationNote - } - } - offSeasonNote { - data { - offSeasonNote - } - } - generalNote { - data { - generalNote - } - } - adminNote { - data { - adminNote - } - } gateOpenTime gateCloseTime gateOpensAtDawn