diff --git a/app/src/frontend/building/data-containers/team.tsx b/app/src/frontend/building/data-containers/team.tsx index bc1c03b86..1b9ed350c 100644 --- a/app/src/frontend/building/data-containers/team.tsx +++ b/app/src/frontend/building/data-containers/team.tsx @@ -101,11 +101,10 @@ const TeamView: React.FunctionComponent = (props) => { Age & History. - = (props) => { Age & History. -
(For security reasons, we currently only collect the names of non-residential buildings)."; + "

(For security reasons, we are not currently allowing free-text input and are looking into other ways of collecting this data)."; /** * This interface is used only in code which uses dataFields, not in the dataFields definition itself @@ -1665,17 +1665,9 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */ }, building_client: { category: Category.Team, - title: "Original building client", - tooltip: "Who was the client who commissioned the original building?

For info on current land ownership, see 'Planning Controls'." + freeTextDisclaimer, - example: "Landowner", - items: [ - "Landowner", - "Speculative builder", - "Government architecture department", - "Architect/ architectural firm", - "Engineer/ Engineering firm", - "Other" - ] + title: "Original building client link(s)", + tooltip: "Link(s) describing the client who commissioned the original building?" + freeTextDisclaimer, + example: ["", "", ""] }, building_client_source_type: { category: Category.Team, @@ -1692,17 +1684,9 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */ }, extension_client: { category: Category.Team, - title: "Extension client", - tooltip: "Who was the client who commissioned the most significant extension to the building?

For info on current land ownership, see 'Planning Controls'." + freeTextDisclaimer, - example: "Landowner", - items: [ - "Landowner", - "Speculative builder", - "Government architecture department", - "Architect/ architectural firm", - "Engineer/ Engineering firm", - "Other" - ] + title: "Extension client link(s)", + tooltip: "Link(s) describing the client who commissioned the most significant extension to the building?" + freeTextDisclaimer, + example: ["", "", ""] }, extension_client_source_type: { category: Category.Team, diff --git a/migrations/050.ui_tweaks.up.sql b/migrations/050.ui_tweaks.up.sql index a34cd5918..954c168d0 100644 --- a/migrations/050.ui_tweaks.up.sql +++ b/migrations/050.ui_tweaks.up.sql @@ -5,9 +5,13 @@ ALTER TABLE buildings ADD COLUMN IF NOT EXISTS sust_energy_rating_source_type te ALTER TABLE buildings ADD COLUMN IF NOT EXISTS sust_energy_rating_source_link text; ALTER TABLE buildings ADD COLUMN IF NOT EXISTS planning_listed boolean; -ALTER TABLE buildings ADD COLUMN IF NOT EXISTS building_client text; +ALTER TABLE buildings ADD COLUMN IF NOT EXISTS building_client text[]; ALTER TABLE buildings ADD COLUMN IF NOT EXISTS building_client_source_type text; ALTER TABLE buildings ADD COLUMN IF NOT EXISTS building_client_source_link text[]; -ALTER TABLE buildings ADD COLUMN IF NOT EXISTS extension_client text; +ALTER TABLE buildings ADD COLUMN IF NOT EXISTS extension_client text[]; ALTER TABLE buildings ADD COLUMN IF NOT EXISTS extension_client_source_type text; ALTER TABLE buildings ADD COLUMN IF NOT EXISTS extension_client_source_link text[]; + +UPDATE buildings +SET planning_listed = True +WHERE planning_list_grade != 'None';