add developer_name 2nd attempt
This commit is contained in:
parent
b950c8909f
commit
3ef764dc75
@ -335,6 +335,10 @@ export const buildingAttributesConfig = valueType<DataFieldConfig>()({ /* eslint
|
||||
edit: true,
|
||||
verify: true
|
||||
},
|
||||
developer_name: {
|
||||
edit: true,
|
||||
verify: true
|
||||
},
|
||||
developer_source_link: {
|
||||
edit: true,
|
||||
verify: true
|
||||
|
@ -91,6 +91,25 @@ const TeamView: React.FunctionComponent<CategoryViewProps> = (props) => {
|
||||
user_verified_as={props.user_verified.developer_type}
|
||||
verified_count={props.building.verified.developer_type}
|
||||
/>
|
||||
<MultiDataEntry
|
||||
title={dataFields.developer_name.title}
|
||||
slug="developer_name"
|
||||
value={props.building.developer_name}
|
||||
mode={props.mode}
|
||||
copy={props.copy}
|
||||
onChange={props.onChange}
|
||||
tooltip={dataFields.developer_name.tooltip}
|
||||
placeholder=""
|
||||
editableEntries={true}
|
||||
/>
|
||||
<Verification
|
||||
slug="developer_name"
|
||||
allow_verify={props.user !== undefined && props.building.developer_name !== null && !props.edited}
|
||||
onVerify={props.onVerify}
|
||||
user_verified={props.user_verified.hasOwnProperty("developer_name")}
|
||||
user_verified_as={props.user_verified.developer_name}
|
||||
verified_count={props.building.verified.developer_name}
|
||||
/>
|
||||
<MultiDataEntry
|
||||
title={dataFields.developer_source_link.title}
|
||||
slug="developer_source_link"
|
||||
|
@ -665,6 +665,12 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */
|
||||
"Other"
|
||||
]
|
||||
},
|
||||
developer_name: {
|
||||
category: Category.Team,
|
||||
title: "Who were the developer(s)?",
|
||||
tooltip: "Free text. First name, space, then Last name",
|
||||
example: ["", "", ""],
|
||||
},
|
||||
developer_source_link: {
|
||||
category: Category.Team,
|
||||
title: "Source links for developer(s)",
|
||||
|
@ -1,6 +1,7 @@
|
||||
ALTER TABLE buildings DROP COLUMN IF EXISTS has_extension;
|
||||
ALTER TABLE buildings DROP COLUMN IF EXISTS extension_year;
|
||||
ALTER TABLE buildings DROP COLUMN IF EXISTS developer_type;
|
||||
ALTER TABLE buildings DROP COLUMN IF EXISTS developer_name;
|
||||
ALTER TABLE buildings DROP COLUMN IF EXISTS developer_source_link;
|
||||
ALTER TABLE buildings DROP COLUMN IF EXISTS designers;
|
||||
ALTER TABLE buildings DROP COLUMN IF EXISTS designers_source_link;
|
||||
|
@ -1,6 +1,7 @@
|
||||
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS has_extension boolean null;
|
||||
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS extension_year smallint;
|
||||
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS developer_type varchar;
|
||||
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS developer_name text[];
|
||||
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS developer_source_link text[];
|
||||
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS designers text[];
|
||||
ALTER TABLE buildings ADD COLUMN IF NOT EXISTS designers_source_link text[];
|
||||
|
Loading…
Reference in New Issue
Block a user