-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into rosado/577-type-errors
- Loading branch information
Showing
32 changed files
with
314 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
export const headingTexts = { | ||
checking: 'Checking your data', | ||
checked: 'Data Checked' | ||
} | ||
|
||
export const messageTexts = { | ||
checking: 'Do not close this page', | ||
checked: 'You can continue' | ||
} | ||
|
||
export const buttonTexts = { | ||
checking: 'Retrieve Latest Status', | ||
checked: 'Continue' | ||
} | ||
|
||
export const buttonAriaLabels = { | ||
checking: 'Retrieve Latest Status of data check', | ||
checked: 'Continue to next step' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { makeDatasetSlugToReadableNameFilter } from '../filters/makeDatasetSlugToReadableNameFilter.js' | ||
import { getDatasetSlugNameMapping } from './datasetteQueries/getDatasetSlugNameMapping.js' | ||
|
||
let datasetSlugToReadableName = (slug) => slug | ||
|
||
const initDatasetSlugToReadableNameFilter = async () => { | ||
try { | ||
const mapping = await getDatasetSlugNameMapping() | ||
datasetSlugToReadableName = makeDatasetSlugToReadableNameFilter(mapping) | ||
} catch (error) { | ||
console.error('Failed to load dataset mapping:', error) | ||
datasetSlugToReadableName = (slug) => slug // Fallback to using the slug as-is | ||
} | ||
} | ||
|
||
export { | ||
datasetSlugToReadableName, | ||
initDatasetSlugToReadableNameFilter | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,55 +5,44 @@ | |
{% extends "layouts/main.html" %} | ||
|
||
{% set serviceType = 'Check' %} | ||
{% set pageName = "Send us your data" %} | ||
{% set pageName = "You can now publish your data" %} | ||
|
||
{% block content %} | ||
|
||
{% set example %} | ||
|
||
## About the data | ||
|
||
This dataset shows the locations of conservation areas. Conservation areas are designated to safeguard areas of special architectural and historic interest, the character and appearance of which it is desirable to preserve or enhance. Within these areas special planning controls operate which need to be considered when undertaking development. | ||
|
||
## Data | ||
|
||
[Conservations areas (CSV, 18KB)](/public/downloadable/conservationArea.csv) | ||
{% set content %} | ||
|
||
## Licensing | ||
# What to do next | ||
|
||
The data is provided under the [Open Government Licence](https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/). | ||
## 1: Publish your data to your website | ||
|
||
{% endset %} | ||
|
||
{% set content %} | ||
The page on your website must include: | ||
- a link to the data | ||
- a summary of what the data is about | ||
- a statement that the data is provided under the Open Government Licence | ||
|
||
## What you need to do next | ||
## 2: Send an email | ||
|
||
You need to send an email to [[email protected]](mailto:[email protected]). | ||
Send an email to [[email protected]](mailto:[email protected]). | ||
|
||
The email must include: | ||
You must include: | ||
|
||
- your full name | ||
- the name of your local planning authority (LPA) | ||
- a link to a webpage containing the data on your LPA website | ||
|
||
The webpage must include: | ||
|
||
- a link to the data | ||
- a summary of what the data is about | ||
- a statement that the data is provided under the Open Government Licence | ||
Details about what to do next are also available [in the guidance](/guidance) | ||
|
||
{{ govukDetails({ | ||
summaryText: "Example webpage", | ||
text: example | govukMarkdown(headingsStartWith="m") | safe | ||
}) }} | ||
{% if options.deepLink %} | ||
<p><a href="{{ options.deepLink.referrer }}">Return to {{ options.deepLink.dataset }} overview</a></p> | ||
{% else %} | ||
<p><a href="/">Return to Home</a></p> | ||
{% endif %} | ||
|
||
## Give feedback | ||
|
||
[Give feedback about this service]({{feedbackLink}}) (takes 30 seconds). | ||
|
||
{% endset %} | ||
|
||
{% block content %} | ||
|
||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-two-thirds"> | ||
{{ govukPanel({ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.