From 0a9817a9b6f5bbfaae5ce5967bbf3c16436d2f15 Mon Sep 17 00:00:00 2001 From: Anton Lantukh Date: Mon, 18 Mar 2024 17:52:56 +0100 Subject: [PATCH] feat(project): update default content-type schemas --- package.json | 1 + platforms/web/package.json | 1 - scripts/content-types/content-types.json | 17 +++++++++-------- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index aca4377d8..8b1df73aa 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "lint:prettier": "prettier --check \"{**/*,*}.{js,ts,jsx,tsx}\"", "lint:stylelint": "stylelint '**/*.{css,scss}'", "lint:ts": "tsc --pretty --noEmit -p ./scripts && yarn workspaces run lint:ts", + "load-content-types": "ts-node ./scripts/content-types/load-content-types", "pre-commit": "yarn depcheck && lint-staged", "prepare": "husky install", "test": "TZ=UTC LC_ALL=en_US.UTF-8 vitest run", diff --git a/platforms/web/package.json b/platforms/web/package.json index 932880903..e7606048e 100644 --- a/platforms/web/package.json +++ b/platforms/web/package.json @@ -15,7 +15,6 @@ "codecept:mobile": "cd test-e2e && rm -rf \"./output/mobile\" && codeceptjs run-workers --suites ${WORKER_COUNT:=8} --config ./codecept.mobile.cjs", "generate-pwa-assets": "pwa-assets-generator", "lint:ts": "tsc --pretty --noEmit -p ./ && tsc --pretty --noEmit -p ./test-e2e", - "load-content-types": "npx ts-node ./scripts/content-types/load-content-types", "serve-report:desktop": "cd test-e2e && allure serve \"./output/desktop\"", "serve-report:mobile": "cd test-e2e && allure serve \"./output/mobile\"", "start": "vite", diff --git a/scripts/content-types/content-types.json b/scripts/content-types/content-types.json index c086bc2ab..93b896f23 100644 --- a/scripts/content-types/content-types.json +++ b/scripts/content-types/content-types.json @@ -99,19 +99,20 @@ "liveStatus": { "param": "VCH.EventState", "label": "Status", - "description": "Do Not Modify - This is the state of the live event (populated automatically)", + "read_only": true, + "description": "This field will be populated automatically", "details": { "field_type": "input", - "placeholder": "This value will be populated automatically" + "placeholder": "Populated automatically" } }, "liveStartTime": { "param": "VCH.ScheduledStart", "label": "Start Time", - "description": "Do Not Modify - This is the schedules start time of the live event (populated automatically)", + "read_only": true, + "description": "This field will be populated automatically", "details": { - "field_type": "input", - "placeholder": "This value will be populated automatically" + "field_type": "date_time" } } }, @@ -243,10 +244,10 @@ { "param": "VCH.ScheduledEnd", "label": "End Time", - "description": "Do not Modify - Live event start time (populated automatically)", + "read_only": true, + "description": "This field will be populated automatically", "details": { - "field_type": "input", - "placeholder": "This value will be populated automatically" + "field_type": "date_time" } } ]