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