From ee8ae1fd49f845b5c8de2a26a0f7edc3101cfb19 Mon Sep 17 00:00:00 2001 From: LR <107395524+VWSCoronaDashboard26@users.noreply.github.com> Date: Mon, 19 Dec 2022 11:24:18 +0100 Subject: [PATCH] master (#4530) Syncing master back to develop to keep the two branches up-to-date. --- packages/app/next.config.js | 2 +- .../schema/gm/hospital_nice_choropleth.json | 45 +++++++++++++++++++ .../schema/vr/hospital_nice_choropleth.json | 45 +++++++++++++++++++ .../src/components/combo-box/combo-box.tsx | 1 + packages/app/src/components/trend-icon.tsx | 2 +- .../domain/layout/components/gm-combo-box.tsx | 4 ++ .../domain/layout/components/vr-combo-box.tsx | 1 + packages/cms/src/data/data-structure.ts | 4 ++ 8 files changed, 102 insertions(+), 2 deletions(-) create mode 100644 packages/app/schema/gm/hospital_nice_choropleth.json create mode 100644 packages/app/schema/vr/hospital_nice_choropleth.json diff --git a/packages/app/next.config.js b/packages/app/next.config.js index 670b2ad80b..dc5dce6028 100644 --- a/packages/app/next.config.js +++ b/packages/app/next.config.js @@ -59,7 +59,7 @@ const nextConfig = { productionBrowserSourceMaps: true, webpack(config) { - config.optimization.chunkIds = 'named'; + config.optimization.chunkIds = 'size'; config.module.rules.push({ test: /\.svg$/, type: 'asset', diff --git a/packages/app/schema/gm/hospital_nice_choropleth.json b/packages/app/schema/gm/hospital_nice_choropleth.json new file mode 100644 index 0000000000..96a0917a87 --- /dev/null +++ b/packages/app/schema/gm/hospital_nice_choropleth.json @@ -0,0 +1,45 @@ +{ + "definitions": { + "value": { + "title": "gm_hospital_nice_choropleth_value", + "type": "object", + "additionalProperties": false, + "required": [ + "admissions_on_date_of_admission", + "admissions_on_date_of_reporting", + "date_unix", + "date_of_insertion_unix" + ], + "properties": { + "date_unix": { + "type": "integer" + }, + "admissions_on_date_of_admission": { + "type": "integer" + }, + "admissions_on_date_of_reporting": { + "type": "integer" + }, + "date_of_insertion_unix": { + "type": "integer" + } + } + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "gm_hospital_nice_choropleth", + "type": "object", + "required": ["values", "last_value"], + "additionalProperties": false, + "properties": { + "values": { + "type": "array", + "items": { + "$ref": "#/definitions/value" + } + }, + "last_value": { + "$ref": "#/definitions/value" + } + } +} diff --git a/packages/app/schema/vr/hospital_nice_choropleth.json b/packages/app/schema/vr/hospital_nice_choropleth.json new file mode 100644 index 0000000000..b382838a9b --- /dev/null +++ b/packages/app/schema/vr/hospital_nice_choropleth.json @@ -0,0 +1,45 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "vr_hospital_nice_choropleth", + "type": "object", + "properties": { + "values": { + "type": "array", + "items": { + "$ref": "#/definitions/value" + } + }, + "last_value": { + "$ref": "#/definitions/value" + } + }, + "required": ["values", "last_value"], + "additionalProperties": false, + "definitions": { + "value": { + "title": "vr_hospital_nice_choropleth_value", + "type": "object", + "properties": { + "admissions_on_date_of_admission": { + "type": "integer" + }, + "admissions_on_date_of_reporting": { + "type": "integer" + }, + "date_unix": { + "type": "integer" + }, + "date_of_insertion_unix": { + "type": "integer" + } + }, + "required": [ + "admissions_on_date_of_admission", + "admissions_on_date_of_reporting", + "date_unix", + "date_of_insertion_unix" + ], + "additionalProperties": false + } + } +} diff --git a/packages/app/src/components/combo-box/combo-box.tsx b/packages/app/src/components/combo-box/combo-box.tsx index 771244ba6d..cae584b3b4 100644 --- a/packages/app/src/components/combo-box/combo-box.tsx +++ b/packages/app/src/components/combo-box/combo-box.tsx @@ -26,6 +26,7 @@ type TProps