From 13cd09c7270b3d23167346654b75c854a7ed2999 Mon Sep 17 00:00:00 2001 From: Mike Simpson Date: Wed, 17 May 2023 15:46:48 +0100 Subject: [PATCH] Consistent capitalisation on sub-categories/labels --- .../building/data-containers/age-history.tsx | 12 +++---- .../building/data-containers/construction.tsx | 2 +- .../building/data-containers/location.tsx | 10 +++--- .../building/data-containers/resilience.tsx | 8 ++--- .../building/data-containers/typology.tsx | 4 +-- app/src/frontend/config/data-fields-config.ts | 36 +++++++++---------- 6 files changed, 36 insertions(+), 36 deletions(-) diff --git a/app/src/frontend/building/data-containers/age-history.tsx b/app/src/frontend/building/data-containers/age-history.tsx index 09abab52..a6c5e661 100644 --- a/app/src/frontend/building/data-containers/age-history.tsx +++ b/app/src/frontend/building/data-containers/age-history.tsx @@ -47,7 +47,7 @@ const AgeView: React.FunctionComponent = (props) => { ){ return ( - + = (props) => { This section is under development. - + @@ -226,7 +226,7 @@ const AgeView: React.FunctionComponent = (props) => { Please let us know your suggestions on the discussion forum! (external link - save your edits first) - + Can you help us create a map that shows how many buildings in London have survived since the 1890s? Choose a colour to indicate whether the building has survived. diff --git a/app/src/frontend/building/data-containers/construction.tsx b/app/src/frontend/building/data-containers/construction.tsx index 7455354e..69f709a1 100644 --- a/app/src/frontend/building/data-containers/construction.tsx +++ b/app/src/frontend/building/data-containers/construction.tsx @@ -87,7 +87,7 @@ const ConstructionView: React.FunctionComponent = (props) => verified_count={props.building.verified.construction_roof_covering} /> - + = (props) => ( - + = (props) => ( verified_count={props.building.verified.location_name} /> = (props) => ( verified_count={props.building.verified.location_name} /> = (props) => ( verified_count={props.building.verified.location_postcode} /> - + = (props) => { const [ endDate, setEndDate ] = useState(null); return (<> - + This feature is designed as an assessment tool to help communities capture data on the state of buildings following major disasters. It is intended to help support emergency services, to record damage, and to aid reconstruction programmes. @@ -31,7 +31,7 @@ const ResilienceView: React.FunctionComponent = (props) => { -

Date of Disaster

+

Date of disaster

= (props) => { title={dataFields.disaster_start_date.title} //value={props.building.disaster_start_date} isClearable - placeholderText="Select Start Date" + placeholderText="Select start date" maxDate={new Date()} />
@@ -56,7 +56,7 @@ const ResilienceView: React.FunctionComponent = (props) => { title={dataFields.disaster_end_date.title} //value={props.building.disaster_end_date} isClearable - placeholderText="Select End Date" + placeholderText="Select end date" maxDate={new Date()} /> diff --git a/app/src/frontend/building/data-containers/typology.tsx b/app/src/frontend/building/data-containers/typology.tsx index d341701c..01ab08f6 100644 --- a/app/src/frontend/building/data-containers/typology.tsx +++ b/app/src/frontend/building/data-containers/typology.tsx @@ -24,7 +24,7 @@ const AttachmentFormOptions = [ const TypeView: React.FunctionComponent = (props) => { return ( - + = (props) => { tooltip="Coming Soon" /> - +
(For security reasons, we currently only collect the names of well-known public buildings.)", example: "https://en.wikipedia.org/wiki/Palace_of_Westminster", }, @@ -153,7 +153,7 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */ }, location_town: { category: Category.Location, - title: "Town/City", + title: "Town/city", example: "London", //tooltip: , }, @@ -165,7 +165,7 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */ }, ref_toid: { category: Category.Location, - title: "Building Footprint ID", + title: "Building footprint ID", tooltip: "Ordnance Survey Topography Layer ID (TOID) [link]", example: "", }, @@ -199,14 +199,14 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */ }, location_latitude: { category: Category.Location, - title: "Centroid Latitude", - tooltip: "Latitude of Building Centroid", + title: "Centroid latitude", + tooltip: "Latitude of building centroid", example: 12.4564, }, location_longitude: { category: Category.Location, - title: "Centroid Longitude", - tooltip: "Longitude of Building Centroid", + title: "Centroid longitude", + tooltip: "Longitude of building centroid", example: 0.12124, }, current_landuse_group: { @@ -244,7 +244,7 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */ }, current_landuse_link: { category: Category.LandUse, - title: "Source Links", + title: "Source links", tooltip: "URL for current land use reference", example: ["", "", ""], }, @@ -255,7 +255,7 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */ }, building_attachment_form: { category: Category.Typology, - title: "Attachment type/Adjacency", + title: "Attachment type/adjacency", tooltip: "We have prepopulated these based on their current attachment. A building can either be detached, semi-detached or part of a terrace (middle or end)", example: "", }, @@ -301,7 +301,7 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */ }, facade_year: { category: Category.Age, - title: "Date of Front of Building", + title: "Date of front of building", tooltip: "Best estimate", example: 1900, }, @@ -342,19 +342,19 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */ size_storeys_core: { category: Category.Size, - title: "Core Number of Floors", + title: "Core number of floors", tooltip: "How many floors are there between the pavement and start of roof?", example: 10, }, size_storeys_attic: { category: Category.Size, - title: "Number of Floors within Roof Space", + title: "Number of floors within roof space", tooltip: "How many floors above start of roof?", example: 1, }, size_storeys_basement: { category: Category.Size, - title: "Number of Floors beneath Ground Level", + title: "Number of floors beneath ground Level", tooltip: "How many floors below pavement level?", example: 1, }, @@ -384,7 +384,7 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */ }, size_width_frontage: { category: Category.Size, - title: "Frontage Width (m)", + title: "Frontage width (m)", example: 12.2, //tooltip: , }, @@ -411,28 +411,28 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */ construction_core_material: { category: Category.Construction, - title: "Core Material", + title: "Core material", tooltip:"The main structural material", example: "", }, construction_secondary_materials: { category: Category.Construction, - title: "Main Secondary Construction Material/s", + title: "Main secondary construction material/s", tooltip:"Other construction materials", example: "", }, construction_roof_covering: { category: Category.Construction, - title: "Main Roof Covering", + title: "Main roof covering", tooltip:'Main roof covering material', example: "", }, sust_breeam_rating: { category: Category.EnergyPerformance, - title: "Official Environmental Quality Rating", + title: "Official environmental quality rating", tooltip: ccconfig.energy_rating, example: "", },