tweak wording of disclaimer

This commit is contained in:
Mateusz Konieczny 2022-09-14 17:06:31 +02:00
parent 4110d2624b
commit 90dae39f12
3 changed files with 4 additions and 8 deletions

View File

@ -34,17 +34,13 @@ const LongText = ({ content,limit}) => {
</div>
}
const Disclaimer = () => { return <Fragment><div>Disclaimer: Planning application status is visualised using data uploaded by local authorities to the <a href="https://data.london.gov.uk/dataset/planning-london-datahub?_gl=1%2aprwpc%2a_ga%2aMzQyOTg0MjcxLjE2NTk0NDA4NTM">Greater London Authority's Planning London DataHub</a>. Please note that these data are currently incomplete and also often do not provide information on minor alterations. For comprehensive information on all applications please visit the UK Planning Portal site.</div></Fragment> }
const Disclaimer = () => { return <Fragment><div>Disclaimer: these data are currently incomplete and also often do not provide information on minor alterations. For comprehensive information on all applications please visit the UK Planning Portal site.</div></Fragment> }
const PlanningDataOfficialDataEntry: React.FC<PlanningDataOfficialDataEntryProps> = (props) => {
const data = props.value || [];
if(data.length == 0) {
return (<Fragment>
<DataTitle
title={"Planning Application Status"}
tooltip={null}
/>
<InfoBox type='success'>
<i>No live planning data available currently for this building polygon via the Planning London DataHub.</i>
<Disclaimer />
@ -57,12 +53,12 @@ const PlanningDataOfficialDataEntry: React.FC<PlanningDataOfficialDataEntryProps
<Fragment>
<b>Current planning application status for this site:</b> {data[0]["status"]}
<br/>
<div>Planning application status is visualised using data uploaded by local authorities to the <a href={data[0]["data_source_link"]}>{data[0]["data_source"]}</a></div>
<div><b>Planning application ID:</b> {data[0]["planning_application_id"]}</div>
<b>Date registered by the planning authority (validation date)</b>: TODO
<b>Decision date</b>: {data[0]["decision_date"].toString()}
<div><b>Description of proposed work</b>: <LongText content = {data[0]["description"]} limit = {400}/></div>
<div><b>Most recent update by data provider:</b> {data[0]["decision_date"]}</div>
<div><b>Data source:</b> <a href={data[0]["data_source_link"]}>{data[0]["data_source"]}</a></div>
<Disclaimer />
<div className="form-check">
<label

View File

@ -80,7 +80,7 @@ def main():
"registered_with_local_authority_date": parse_date_string_into_datestring(entry['_source']['valid_date']),
"uprn": uprn,
"status": status,
"data_source": "The Planning London DataHub Greater London Authority",
"data_source": "Greater London Authority's Planning London DataHub",
"data_source_link": "https://data.london.gov.uk/dataset/planning-london-datahub?_gl=1%2aprwpc%2a_ga%2aMzQyOTg0MjcxLjE2NTk0NDA4NTM", # TODO test
}
insert_entry(connection, entry)

View File

@ -95,7 +95,7 @@ def main():
"registered_with_local_authority_date": None,
"uprn": uprn,
"status": status,
"data_source": "The Planning London DataHub Greater London Authority",
"data_source": "Greater London Authority's Planning London DataHub",
"data_source_link": "https://data.london.gov.uk/dataset/planning-london-datahub?_gl=1%2aprwpc%2a_ga%2aMzQyOTg0MjcxLjE2NTk0NDA4NTM", # TODO test
}
insert_entry(connection, entry)