From e0b3e8683e521c7498f529ca8de27113d0d7fbbc Mon Sep 17 00:00:00 2001 From: jandums Date: Thu, 28 May 2026 10:09:05 +0100 Subject: [PATCH 01/11] phase 1. Revised landing page and community tab --- src/filters/getNavigationLinks.js | 4 +++ src/routes/community.js | 11 ++++++++ src/serverSetup/routes.js | 2 ++ src/views/accessibility.html | 2 +- src/views/community.html | 20 +++++++++++++++ src/views/cookies.html | 2 +- src/views/error.html | 2 +- src/views/landing.html | 25 ++++++++++--------- src/views/organisations/dataset-overview.html | 2 +- src/views/organisations/datasetTaskList.html | 2 +- src/views/organisations/dataview.html | 2 +- src/views/organisations/find.html | 2 +- src/views/organisations/get-started.html | 2 +- src/views/organisations/http-error.html | 2 +- src/views/organisations/issueDetails.html | 2 +- src/views/organisations/issueTable.html | 2 +- src/views/organisations/overview.html | 2 +- src/views/privacy-notice.html | 2 +- 18 files changed, 63 insertions(+), 25 deletions(-) create mode 100644 src/routes/community.js create mode 100644 src/views/community.html diff --git a/src/filters/getNavigationLinks.js b/src/filters/getNavigationLinks.js index 22c368c06..b96ab0d4f 100644 --- a/src/filters/getNavigationLinks.js +++ b/src/filters/getNavigationLinks.js @@ -6,6 +6,10 @@ const navigationLinks = { guidance: { href: '/guidance', text: 'Guidance' + }, + community: { + href: '/community', + text: 'Community' } } diff --git a/src/routes/community.js b/src/routes/community.js new file mode 100644 index 000000000..ba26d48ee --- /dev/null +++ b/src/routes/community.js @@ -0,0 +1,11 @@ +import express from 'express' +import nunjucks from 'nunjucks' + +const router = express.Router() + +router.get('/', (req, res) => { + const communityPage = nunjucks.render('community.html', {}) + res.send(communityPage) +}) + +export default router diff --git a/src/serverSetup/routes.js b/src/serverSetup/routes.js index b921aa818..8fbb48dac 100644 --- a/src/serverSetup/routes.js +++ b/src/serverSetup/routes.js @@ -8,12 +8,14 @@ import manage from '../routes/manage.js' import privacy from '../routes/privacy.js' import cookies from '../routes/cookies.js' import guidance from '../routes/guidance.js' +import community from '../routes/community.js' export function setupRoutes (app) { app.use('/', manage) app.use('/check', checkFormWizard) app.use('/organisations', organisations) app.use('/guidance', guidance) + app.use('/community', community) app.use('/api', polling) diff --git a/src/views/accessibility.html b/src/views/accessibility.html index dfc230401..0c7f1f1e0 100644 --- a/src/views/accessibility.html +++ b/src/views/accessibility.html @@ -1,5 +1,5 @@ {% extends "layouts/main.html" %} -{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance']) %} +{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community']) %} {% set pageName = 'Accessibility statement for Check and provide planning and housing data for England' %} {% set markdownContent %} diff --git a/src/views/community.html b/src/views/community.html new file mode 100644 index 000000000..e8149315f --- /dev/null +++ b/src/views/community.html @@ -0,0 +1,20 @@ +{% extends "layouts/main.html" %} +{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community']) %} +{% set pageName = 'Community' %} + +{% block main %} +
+

+

Community

+ You can + + get involved with community events and discussions + + to help improve this service. + +

+
+{% endblock %} + + + diff --git a/src/views/cookies.html b/src/views/cookies.html index 0367b1519..706a7a1f5 100644 --- a/src/views/cookies.html +++ b/src/views/cookies.html @@ -6,7 +6,7 @@ {% set pageName = 'Cookie notice for Check and provide planning and housing data for England' %} {% set serviceType = 'manage' %} -{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance']) %} +{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community']) %} {% set markdownContent %} # Check and provide planning and housing data for England cookies notice diff --git a/src/views/error.html b/src/views/error.html index f05056e80..1f49d9302 100644 --- a/src/views/error.html +++ b/src/views/error.html @@ -1,7 +1,7 @@ {% from "govuk/components/button/macro.njk" import govukButton %} {% set pageName = "Error" %} -{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance']) %} +{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community']) %} {% extends "layouts/main.html" %} {% block content %}

Error

diff --git a/src/views/landing.html b/src/views/landing.html index 3ade7bcc5..ab5ad8864 100644 --- a/src/views/landing.html +++ b/src/views/landing.html @@ -4,7 +4,7 @@ {% set serviceType = 'Manage' %} {% set pageName = '' %} -{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance']) %} +{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community']) %} {% block main %}
@@ -19,31 +19,32 @@

{{ serviceName }}

- The Planning Data platform is a single national platform that indexes the - data and makes it available in a standardised - format. + Use this service to:

- You can use the service to check your data and provide it to us. - We’ll add it to the Planning Data Platform. - You must publish your data on your website before you provide it. +

    +
  • + check your data is ready to publish +
  • +
  • + provide your data to the planning data platform +
  • +

- Your data does not need to be complete or perfect to start. - Any data we have from you means we can begin to index it and provide it on the platform. - Start with what you have and improve it over time. + Planning data aims to make land and housing data easier to find, use and trust. We take the data you provide and standardise it in a consistant format.

- Read the guidance to help you check and provide your data + Find out how to check and provide your data

- Check and provide data + Start now

{{ serviceName }}

{{ super() }} {% endblock %} - -{% block content %} -
-
-

Check your data

- -

The check tool can help you understand which issues you need to fix straightaway, and which issues you can fix later.

- -

The tool will accept any of these formats:

-
    -
  • CSV
  • -
  • GeoJSON
  • -
  • GML
  • -
  • GeoPackage
  • -
- -

Alternatively you can use your endpoint URL (the URL of the data file or feed itself).

-

You do not need to publish your data on your website before you check it.

-
-
- -
-
- -
-

Provide your data

- -

Once you have published your data on your website, you can provide your data to the platform. We'll need your:

- -
    -
  • full name
  • -
  • work email address
  • -
  • endpoint URL
  • -
  • webpage URL: the URL of the page on your website which contains information about the dataset and the link to your data
  • -
-
-
- -
-
- -
-

View your data

- -

- Visit your organisation’s dashboard anytime to clearly see the data you’ve supplied and the datasets you still need to provide. -

- -

For any live data, we’ll let you know what you can do to improve it.

-
-
- -
-
- -
-

Contribute to the data design process

- -

Information about how you can help with designing data and get involved in community events and discussions.

- -

Contribute to the data design process

-
- -
-{% endblock %} From 6f16e32e145cc47057226ebb5f0889a279b349c6 Mon Sep 17 00:00:00 2001 From: jandums Date: Fri, 29 May 2026 15:52:40 +0100 Subject: [PATCH 03/11] link to community page as per issue#629 --- src/views/community.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/community.html b/src/views/community.html index e8149315f..f66ceb567 100644 --- a/src/views/community.html +++ b/src/views/community.html @@ -7,7 +7,7 @@

Community

You can - + get involved with community events and discussions to help improve this service. From 67432cece7a5ad8512a2398a929c37762261d20c Mon Sep 17 00:00:00 2001 From: jandums Date: Tue, 2 Jun 2026 15:31:00 +0100 Subject: [PATCH 04/11] update click text in LandingPage to 'Start now' --- test/PageObjectModels/landingPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/PageObjectModels/landingPage.js b/test/PageObjectModels/landingPage.js index ab7bf6f0b..30d909c15 100644 --- a/test/PageObjectModels/landingPage.js +++ b/test/PageObjectModels/landingPage.js @@ -7,7 +7,7 @@ export default class LandingPage extends BasePage { } async clickStartNow () { - await this.page.click('text=Check and provide data') + await this.page.click('text=Start now') return await super.verifyAndReturnPage(OrganisationsPage) } } From 628204a1c53f38c29dc4576c822dfacccf544f58 Mon Sep 17 00:00:00 2001 From: jandums Date: Wed, 3 Jun 2026 00:42:36 +0100 Subject: [PATCH 05/11] Add 'Extract' navigation link and create extract page with content --- src/filters/getNavigationLinks.js | 4 +++ src/routes/extract.js | 11 +++++++ src/serverSetup/routes.js | 3 +- src/views/accessibility.html | 2 +- src/views/community.html | 2 +- src/views/cookies.html | 2 +- src/views/error.html | 2 +- src/views/extract.html | 29 +++++++++++++++++++ src/views/landing.html | 2 +- src/views/organisations/dataset-overview.html | 2 +- src/views/organisations/datasetTaskList.html | 2 +- src/views/organisations/dataview.html | 2 +- src/views/organisations/find.html | 2 +- src/views/organisations/get-started.html | 2 +- src/views/organisations/http-error.html | 2 +- src/views/organisations/issueDetails.html | 2 +- src/views/organisations/issueTable.html | 2 +- src/views/organisations/overview.html | 2 +- src/views/privacy-notice.html | 2 +- 19 files changed, 61 insertions(+), 16 deletions(-) create mode 100644 src/routes/extract.js create mode 100644 src/views/extract.html diff --git a/src/filters/getNavigationLinks.js b/src/filters/getNavigationLinks.js index b96ab0d4f..0374a4260 100644 --- a/src/filters/getNavigationLinks.js +++ b/src/filters/getNavigationLinks.js @@ -10,6 +10,10 @@ const navigationLinks = { community: { href: '/community', text: 'Community' + }, + extract: { + href: '/extract', + text: 'Extract your data' } } diff --git a/src/routes/extract.js b/src/routes/extract.js new file mode 100644 index 000000000..221351526 --- /dev/null +++ b/src/routes/extract.js @@ -0,0 +1,11 @@ +import express from 'express' +import nunjucks from 'nunjucks' + +const router = express.Router() + +router.get('/', (req, res) => { + const extractPage = nunjucks.render('extract.html', {}) + res.send(extractPage) +}) + +export default router diff --git a/src/serverSetup/routes.js b/src/serverSetup/routes.js index 8fbb48dac..c14544d5c 100644 --- a/src/serverSetup/routes.js +++ b/src/serverSetup/routes.js @@ -9,6 +9,7 @@ import privacy from '../routes/privacy.js' import cookies from '../routes/cookies.js' import guidance from '../routes/guidance.js' import community from '../routes/community.js' +import extract from '../routes/extract.js' export function setupRoutes (app) { app.use('/', manage) @@ -16,7 +17,7 @@ export function setupRoutes (app) { app.use('/organisations', organisations) app.use('/guidance', guidance) app.use('/community', community) - + app.use('/extract', extract) app.use('/api', polling) app.use('/accessibility', accessibility) diff --git a/src/views/accessibility.html b/src/views/accessibility.html index 0c7f1f1e0..c307d8cd9 100644 --- a/src/views/accessibility.html +++ b/src/views/accessibility.html @@ -1,5 +1,5 @@ {% extends "layouts/main.html" %} -{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community']) %} +{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community', 'extract']) %} {% set pageName = 'Accessibility statement for Check and provide planning and housing data for England' %} {% set markdownContent %} diff --git a/src/views/community.html b/src/views/community.html index f66ceb567..20d591db1 100644 --- a/src/views/community.html +++ b/src/views/community.html @@ -1,5 +1,5 @@ {% extends "layouts/main.html" %} -{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community']) %} +{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community', 'extract']) %} {% set pageName = 'Community' %} {% block main %} diff --git a/src/views/cookies.html b/src/views/cookies.html index 706a7a1f5..34273a71a 100644 --- a/src/views/cookies.html +++ b/src/views/cookies.html @@ -6,7 +6,7 @@ {% set pageName = 'Cookie notice for Check and provide planning and housing data for England' %} {% set serviceType = 'manage' %} -{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community']) %} +{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community', 'extract']) %} {% set markdownContent %} # Check and provide planning and housing data for England cookies notice diff --git a/src/views/error.html b/src/views/error.html index 1f49d9302..46f66de91 100644 --- a/src/views/error.html +++ b/src/views/error.html @@ -1,7 +1,7 @@ {% from "govuk/components/button/macro.njk" import govukButton %} {% set pageName = "Error" %} -{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community']) %} +{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community', 'extract']) %} {% extends "layouts/main.html" %} {% block content %}

Error

diff --git a/src/views/extract.html b/src/views/extract.html new file mode 100644 index 000000000..6a12f2507 --- /dev/null +++ b/src/views/extract.html @@ -0,0 +1,29 @@ +{% extends "layouts/main.html" %} +{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community', 'extract']) %} +{% set pageName = 'Extract' %} + +{% block main %} +
+

+

Extract your data

+

Extract is a tool that turns your maps, PDFs and historic planning records into standardised planning data

+

When you upload a document, the tool will:

+
    +
  • extract key information (like dates, locations and decisions) and format it into datasets
  • +
  • trace boundaries drawn on maps and outline boundary areas
  • +
  • match the boundary areas to coordinates
  • +
+

You can review and correct the data that the tool extracts before you export it.

+

We currently support:

+
    +
  • article 4 directions
  • +
  • conservation areas
  • +
  • tree preservation orders
  • +
+ + Find out more about extract + + +

+
+{% endblock %} \ No newline at end of file diff --git a/src/views/landing.html b/src/views/landing.html index de9239ab8..db3fb5453 100644 --- a/src/views/landing.html +++ b/src/views/landing.html @@ -4,7 +4,7 @@ {% set serviceType = 'Manage' %} {% set pageName = '' %} -{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community']) %} +{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community', 'extract']) %} {% block main %}
diff --git a/src/views/organisations/dataset-overview.html b/src/views/organisations/dataset-overview.html index d306b67a0..eeac90bc9 100644 --- a/src/views/organisations/dataset-overview.html +++ b/src/views/organisations/dataset-overview.html @@ -26,7 +26,7 @@ {% from "components/alternativeSourceNotice.html" import alternativeSourceNotice %} {% from "components/alternativePrePopulatedSourceNotice.html" import alternativePrePopulatedSourceNotice %} -{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community']) %} +{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community', 'extract']) %} {% set serviceType = 'Manage' %} {% set pageName %} diff --git a/src/views/organisations/datasetTaskList.html b/src/views/organisations/datasetTaskList.html index d00d7cb85..ebed926c1 100644 --- a/src/views/organisations/datasetTaskList.html +++ b/src/views/organisations/datasetTaskList.html @@ -2,7 +2,7 @@ {% from 'govuk/components/task-list/macro.njk' import govukTaskList %} {% from "../components/dataset-navigation.html" import datasetNavigation %} -{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community']) %} +{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community', 'extract']) %} {% set pageName %}{{organisation.name}} - {{dataset.dataset | datasetSlugToReadableName(true)}} - Task list{% endset %} {% set serviceType = 'Manage' %} diff --git a/src/views/organisations/dataview.html b/src/views/organisations/dataview.html index aea79cd65..dfae18e28 100644 --- a/src/views/organisations/dataview.html +++ b/src/views/organisations/dataview.html @@ -5,7 +5,7 @@ {% from "components/alternativeSourceNotice.html" import alternativeSourceNotice %} {% from "components/alternativePrePopulatedSourceNotice.html" import alternativePrePopulatedSourceNotice %} -{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community']) %} +{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community', 'extract']) %} {% set serviceType = 'Submit'%} {% set pageName %}{{organisation.name}} - {{dataset.dataset | datasetSlugToReadableName(true)}} - Dataset table{% endset %} diff --git a/src/views/organisations/find.html b/src/views/organisations/find.html index 16a215187..bed3bbf2c 100644 --- a/src/views/organisations/find.html +++ b/src/views/organisations/find.html @@ -1,6 +1,6 @@ {% from "govuk/components/breadcrumbs/macro.njk" import govukBreadcrumbs %} -{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community']) %} +{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community', 'extract']) %} {% set serviceType = 'Manage' %} {% set pageName = "Find your organisation" %} diff --git a/src/views/organisations/get-started.html b/src/views/organisations/get-started.html index 3312842a3..1c6f21789 100644 --- a/src/views/organisations/get-started.html +++ b/src/views/organisations/get-started.html @@ -1,6 +1,6 @@ {% from "govuk/components/breadcrumbs/macro.njk" import govukBreadcrumbs %} -{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community']) %} +{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community', 'extract']) %} {% set serviceType = 'Manage' %} {% set pageName %} {{organisation.name}} - {{dataset.dataset | datasetSlugToReadableName(true)}} - Get started diff --git a/src/views/organisations/http-error.html b/src/views/organisations/http-error.html index f541583fa..2d6060228 100644 --- a/src/views/organisations/http-error.html +++ b/src/views/organisations/http-error.html @@ -1,7 +1,7 @@ {% from "govuk/components/summary-list/macro.njk" import govukSummaryList %} {% from "govuk/components/breadcrumbs/macro.njk" import govukBreadcrumbs %} -{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community']) %} +{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community', 'extract']) %} {% set pageName %}{{organisation.name}} - {{dataset.dataset | datasetSlugToReadableName(true)}} - Task list{% endset %} {% set serviceType = 'manage' %} {% set resubmitUrl %}/organisations/{{ organisation.organisation | urlencode }}/{{ dataset.dataset | urlencode }}/get-started{% endset %} diff --git a/src/views/organisations/issueDetails.html b/src/views/organisations/issueDetails.html index 863bfe407..b85022c8a 100644 --- a/src/views/organisations/issueDetails.html +++ b/src/views/organisations/issueDetails.html @@ -4,7 +4,7 @@ {% from "govuk/components/breadcrumbs/macro.njk" import govukBreadcrumbs %} {% set isExpectation = issueType === 'expectation' %} -{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community']) %} +{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community', 'extract']) %} {% set serviceType = 'Submit'%} {% if issueEntitiesCount > 1 %} {% set pageName %}{{organisation.name}} - {{dataset.dataset | datasetSlugToReadableName(true)}} - Issues (Page {{pageNumber}} of {{issueEntitiesCount}}){% endset %} diff --git a/src/views/organisations/issueTable.html b/src/views/organisations/issueTable.html index 807ecb478..b8bd61dd9 100644 --- a/src/views/organisations/issueTable.html +++ b/src/views/organisations/issueTable.html @@ -4,7 +4,7 @@ {% from "govuk/components/pagination/macro.njk" import govukPagination %} {% from "govuk/components/breadcrumbs/macro.njk" import govukBreadcrumbs %} -{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community']) %} +{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community', 'extract']) %} {% set serviceType = 'Submit'%} {% if issueEntitiesCount > 1 %} {% set pageName %}{{organisation.name}} - {{dataset.dataset | datasetSlugToReadableName(true)}} - Issues (Page {{pageNumber}} of {{issueEntitiesCount}}){% endset %} diff --git a/src/views/organisations/overview.html b/src/views/organisations/overview.html index 9890ddd86..4bd073186 100644 --- a/src/views/organisations/overview.html +++ b/src/views/organisations/overview.html @@ -3,7 +3,7 @@ {% from "components/deadlineNotice.html" import deadlineNotice %} {% from "components/deadlineNoticeContent.html" import noticeHeading, noticeCardHint %} -{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community']) %} +{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community', 'extract']) %} {% set pageName = organisation.name + " overview" %} {% set serviceType = 'Manage' %} diff --git a/src/views/privacy-notice.html b/src/views/privacy-notice.html index bce42c3d9..f7d774716 100644 --- a/src/views/privacy-notice.html +++ b/src/views/privacy-notice.html @@ -1,7 +1,7 @@ {% extends "layouts/main.html" %} {% set pageName = 'Privacy notice for Check and provide planning and housing data for England' %} -{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community']) %} +{% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community', 'extract']) %} {% set markdownContent %} # Check and provide planning and housing data for England privacy notice From 1e438ac47792d4a9c18b880880c4f08c5829b499 Mon Sep 17 00:00:00 2001 From: jandums Date: Wed, 3 Jun 2026 08:18:11 +0100 Subject: [PATCH 06/11] Fix typo in landing page description and remove redundant closing tag in extract page --- src/views/extract.html | 1 - src/views/landing.html | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/views/extract.html b/src/views/extract.html index 6a12f2507..e3768b9a5 100644 --- a/src/views/extract.html +++ b/src/views/extract.html @@ -23,7 +23,6 @@

Extract your data

Find out more about extract -

{% endblock %} \ No newline at end of file diff --git a/src/views/landing.html b/src/views/landing.html index db3fb5453..13a96bad6 100644 --- a/src/views/landing.html +++ b/src/views/landing.html @@ -34,7 +34,7 @@

{{ serviceName }}

- Planning data aims to make land and housing data easier to find, use and trust. We take the data you provide and standardise it in a consistant format. + Planning data aims to make land and housing data easier to find, use and trust. We take the data you provide and standardise it in a consistent format.

From bfc7cc5d23324f10f1dd65051b9bc6b080f446d9 Mon Sep 17 00:00:00 2001 From: Ben Hodgkiss Date: Wed, 3 Jun 2026 08:50:52 +0100 Subject: [PATCH 07/11] Correct capitalization of 'Extract' in extract.html --- src/views/extract.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/extract.html b/src/views/extract.html index e3768b9a5..aa17364e6 100644 --- a/src/views/extract.html +++ b/src/views/extract.html @@ -21,8 +21,8 @@

Extract your data

  • tree preservation orders
  • - Find out more about extract + Find out more about Extract

    -{% endblock %} \ No newline at end of file +{% endblock %} From c250188c11a54b81eb61474c002c1db8a27d59b3 Mon Sep 17 00:00:00 2001 From: Ben Hodgkiss Date: Wed, 3 Jun 2026 08:55:03 +0100 Subject: [PATCH 08/11] Update community link for involvement information --- src/views/community.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/community.html b/src/views/community.html index 20d591db1..eb8040369 100644 --- a/src/views/community.html +++ b/src/views/community.html @@ -7,7 +7,7 @@

    Community

    You can - + get involved with community events and discussions to help improve this service. From a5097da2b8c940ffe912d2079e4dd3526fbfe90a Mon Sep 17 00:00:00 2001 From: Ben Hodgkiss Date: Wed, 3 Jun 2026 08:59:33 +0100 Subject: [PATCH 09/11] Fix spacing Removed duplicate list of service usage instructions and adjusted formatting. --- src/views/landing.html | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/src/views/landing.html b/src/views/landing.html index 13a96bad6..a0ab07b01 100644 --- a/src/views/landing.html +++ b/src/views/landing.html @@ -1,7 +1,6 @@ {% extends "layouts/main.html" %} {% from "govuk/components/button/macro.njk" import govukButton %} {% from 'govuk/components/phase-banner/macro.njk' import govukPhaseBanner %} - {% set serviceType = 'Manage' %} {% set pageName = '' %} {% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community', 'extract']) %} @@ -17,30 +16,23 @@

    {{ serviceName }}

    -

    Use this service to:

    - -

    -

      -
    • - check your data is ready to publish -
    • -
    • - provide your data to the planning data platform -
    • -
    -

    - +
      +
    • + check your data is ready to publish +
    • +
    • + provide your data to the planning data platform +
    • +

    Planning data aims to make land and housing data easier to find, use and trust. We take the data you provide and standardise it in a consistent format.

    -

    Find out how to check and provide your data

    - @@ -51,7 +43,6 @@

    {{ serviceName }}

    -
     
    From 8d3efbfa103f988ee8846e9aaf6fb8349ef0336b Mon Sep 17 00:00:00 2001 From: Matt Poole Date: Wed, 3 Jun 2026 13:00:38 +0100 Subject: [PATCH 10/11] minor tweaks --- src/views/community.html | 16 +++------------- src/views/extract.html | 35 ++++++++++++++++------------------- src/views/landing.html | 18 ++++++++---------- 3 files changed, 27 insertions(+), 42 deletions(-) diff --git a/src/views/community.html b/src/views/community.html index eb8040369..d184fd708 100644 --- a/src/views/community.html +++ b/src/views/community.html @@ -3,18 +3,8 @@ {% set pageName = 'Community' %} {% block main %} -
    -

    +

    Community

    - You can - - get involved with community events and discussions - - to help improve this service. - -

    +

    You can get involved with community events and discussions to help improve this service.

    -{% endblock %} - - - +{% endblock %} \ No newline at end of file diff --git a/src/views/extract.html b/src/views/extract.html index aa17364e6..d93b9b790 100644 --- a/src/views/extract.html +++ b/src/views/extract.html @@ -3,26 +3,23 @@ {% set pageName = 'Extract' %} {% block main %} -
    -

    +

    Extract your data

    -

    Extract is a tool that turns your maps, PDFs and historic planning records into standardised planning data

    +

    Extract is a tool that turns your maps, PDFs and historic planning records into standardised + planning data.

    When you upload a document, the tool will:

    -
      -
    • extract key information (like dates, locations and decisions) and format it into datasets
    • -
    • trace boundaries drawn on maps and outline boundary areas
    • -
    • match the boundary areas to coordinates
    • -
    -

    You can review and correct the data that the tool extracts before you export it.

    +
      +
    • extract key information (like dates, locations and decisions) and format it into datasets
    • +
    • trace boundaries drawn on maps and outline boundary areas
    • +
    • match the boundary areas to coordinates
    • +
    +

    You can review and correct the data that the tool extracts before you export it.

    We currently support:

    -
      -
    • article 4 directions
    • -
    • conservation areas
    • -
    • tree preservation orders
    • -
    - - Find out more about Extract - -

    +
      +
    • article 4 directions
    • +
    • conservation areas
    • +
    • tree preservation orders
    • +
    +

    Find out more about Extract

    -{% endblock %} +{% endblock %} \ No newline at end of file diff --git a/src/views/landing.html b/src/views/landing.html index a0ab07b01..50c2a2724 100644 --- a/src/views/landing.html +++ b/src/views/landing.html @@ -3,6 +3,7 @@ {% from 'govuk/components/phase-banner/macro.njk' import govukPhaseBanner %} {% set serviceType = 'Manage' %} {% set pageName = '' %} +{% set mainClasses = 'govuk-!-padding-0' %} {% set navigationItems = currentPath | getNavigationLinks(['organisations', 'guidance', 'community', 'extract']) %} {% block main %}
    @@ -19,16 +20,13 @@

    {{ serviceName }}

    Use this service to:

    -
      -
    • - check your data is ready to publish -
    • -
    • - provide your data to the planning data platform -
    • +
        +
      • check your data is ready to publish
      • +
      • provide your data to the planning data platform

      - Planning data aims to make land and housing data easier to find, use and trust. We take the data you provide and standardise it in a consistent format. + Planning data aims to make land and housing data easier to find, use and trust. We take the data you provide + and standardise it in a consistent format.

      Find out how to check and provide your data @@ -43,9 +41,9 @@

      {{ serviceName }}

    -
     
    +
    {{ super() }} -{% endblock %} +{% endblock %} \ No newline at end of file From ab860351f41da6690308d7a852d592153970553a Mon Sep 17 00:00:00 2001 From: Matt Poole Date: Wed, 3 Jun 2026 16:16:10 +0100 Subject: [PATCH 11/11] a or an --- src/filters/aOrAn.js | 4 ++++ src/filters/filters.js | 2 ++ src/views/includes/_issue-guidance.html | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 src/filters/aOrAn.js diff --git a/src/filters/aOrAn.js b/src/filters/aOrAn.js new file mode 100644 index 000000000..98ab0634f --- /dev/null +++ b/src/filters/aOrAn.js @@ -0,0 +1,4 @@ +export function aOrAn (word) { + // returns 'a' or 'an' depending on the first letter of the input word - does not quite work for all words such as hour + return word && typeof word === 'string' ? (['a', 'e', 'i', 'o', 'u'].includes(word.trim().toLowerCase()[0]) ? 'an' : 'a') : 'a' +} diff --git a/src/filters/filters.js b/src/filters/filters.js index 03b8fee2d..c0f67d4a2 100644 --- a/src/filters/filters.js +++ b/src/filters/filters.js @@ -13,6 +13,7 @@ import { schemaIssues } from './schemaIssues.js' import { endpointSubmissionFormToolDeepLink } from './endpointSubmissionFormDeepLink.js' import { isFeatureEnabled } from '../utils/features.js' import { getNavigationLinks } from './getNavigationLinks.js' +import { aOrAn } from './aOrAn.js' /** maps dataset status (as returned by `fetchLpaOverview` middleware to a * CSS class used by the govuk-tag component */ @@ -47,6 +48,7 @@ const addFilters = (nunjucksEnv) => { nunjucksEnv.addFilter('getFullServiceName', getFullServiceName) nunjucksEnv.addFilter('statusToTagClass', statusToTagClass) nunjucksEnv.addFilter('pluralise', pluralize) + nunjucksEnv.addFilter('aOrAn', aOrAn) nunjucksEnv.addFilter('checkToolDeepLink', checkToolDeepLink) nunjucksEnv.addFilter('endpointSubmissionFormToolDeepLink', endpointSubmissionFormToolDeepLink) nunjucksEnv.addFilter('getDatasetGuidanceUrl', getDatasetGuidanceUrl) diff --git a/src/views/includes/_issue-guidance.html b/src/views/includes/_issue-guidance.html index b9b327f72..1033ea119 100644 --- a/src/views/includes/_issue-guidance.html +++ b/src/views/includes/_issue-guidance.html @@ -17,7 +17,7 @@

    How to fix this issue

    -

    Your dataset is missing the {{ issueSpecification.field }} column.

    +

    Your data is missing {{ issueSpecification.field | aOrAn }} {{ issueSpecification.field }}.

    The {{ dataset.name }} guidance explains how to fix the issue:

    {{ govukInsetText({ html: issueSpecificationInsetHtml