diff --git a/.env.local b/.env.local index c3a7589c..75c94ee7 100644 --- a/.env.local +++ b/.env.local @@ -1,3 +1,17 @@ + + +ACCESS_TOKEN_ENDPOINT = https://login.microsoftonline.com/ +TENANT = a8d860de-d5e1-45af-8376-d93f02e6b502 +GRANT_TYPE = "client_credentials" + +HASHKEY = 028ffbae928d7191c0017f298260995f901d78eabde1436c0af0423459cc3715832136d84f68818d3a96399467b52143e273d4f3bf4ae190848891535421cd6c +NEXT_PUBLIC_HASHKEY = 028ffbae928d7191c0017f298260995f901d78eabde1436c0af0423459cc3715832136d84f68818d3a96399467b52143e273d4f3bf4ae190848891535421cd6c + + +//Dev oauth +//CLIENT_ID = e082def0-3453-461f-9a5e-f4ab127dc015 +//CLIENT_SECRET = qW.7Q~TSr3sZmLEnJQJPXEdOckb_yo2t1yJmY + // dev //RELAY_ROOT = https://dev-pedw-ns.servicebus.windows.net/dev-pedw-hc/ //RELAYURI = "dev-pedw-ns.servicebus.windows.net" @@ -6,28 +20,9 @@ //SASKEYNAME = "devpedwnspolicy" - -ACCESS_TOKEN_ENDPOINT = https://login.microsoftonline.com/ -TENANT = a8d860de-d5e1-45af-8376-d93f02e6b502 -GRANT_TYPE = "client_credentials" - -//Dev oauth -CLIENT_ID = e082def0-3453-461f-9a5e-f4ab127dc015 -CLIENT_SECRET = qW.7Q~TSr3sZmLEnJQJPXEdOckb_yo2t1yJmY - - //Test Oauth -//CLIENT_ID = e082def0-3453-461f-9a5e-f4ab127dc015 -//CLIENT_SECRET = qW.7Q~TSr3sZmLEnJQJPXEdOckb_yo2t1yJmY - - -PORT= "3000" -DEFAULT_DOMAIN = "localhost" -I18N_DOMAIN = "cymru.local" -//I18N_DOMAIN ="dev-gwaithcynllunio.gwasanaeth.llyw.cymru" -//I18N_DOMAIN ="stage-gwaithcynllunio.gwasanaeth.llyw.cymru" -//I18N_DOMAIN ="pp-gwaithcynllunio.gwasanaeth.llyw.cymru" -//I18N_DOMAIN ="gwaithcynllunio.gwasanaeth.llyw.cymru" +//CLIENT_ID = 6619ad85-c908-490d-811b-de8c93c0f2aa +//CLIENT_SECRET = qKo7Q~5QvLEplbwnBbint_I5lXqx_-kDm8Vj- //test //RELAY_ROOT = https://test-pedw-ns.servicebus.windows.net/test-pedw-hc/ @@ -36,20 +31,36 @@ I18N_DOMAIN = "cymru.local" //SASKEY = "kTLrs9UHwuW9Msc9uNfjf+89qLYT6ly80lK0zdTYJW4=" //SASKEYNAME = "testpedwhcpolicy" +//Preprod Oauth +CLIENT_ID = 75594242-8773-45c7-a3da-85e62485b2f3 +CLIENT_SECRET = UDF7Q~OwTLIV7LXPHlIYHSWbJunlBD53ieLt- + //preprod -//RELAY_ROOT = https://pp-pedw-ns.servicebus.windows.net/pp-pedw-hc/ -//RELAYURI = "pp-pedw-ns.servicebus.windows.net" -//RELAYPATH = "pp-pedw-hc" +RELAY_ROOT = https://pp-pedw-ns.servicebus.windows.net/pp-pedw-hc/ +RELAYURI = "pp-pedw-ns.servicebus.windows.net" +RELAYPATH = "pp-pedw-hc" //SASKEY = "JzrOYfMTsGBD1cZHH2nkzqsbfDCqg0brO6jyiIDNVPo=" //SASKEYNAME = "pppedwnspolicy" +//Prod Oauth +//CLIENT_ID = 01904c07-9035-4cf9-a535-3945f6e470d2 +//CLIENT_SECRET = PRo7Q~GQoKSdARRqF-NOXQDx2Ka8UCINyvagk + + + + GOOGLE_TAG_MANAGER = GTM-T78CBC3 SHOWLOGIN = "true" SHOWREPRESENTATIONS = "false" -BASIC_AUTH_CREDENTIALS,, = pinswg:password|pinswg2:password2 +BASIC_AUTH_CREDENTIALS = pinswg:password|pinswg2:password2 -HASHKEY = "028ffbae928d7191c0017f298260995f901d78eabde1436c0af0423459cc3715832136d84f68818d3a96399467b52143e273d4f3bf4ae190848891535421cd6c" -NEXT_PUBLIC_HASHKEY = "028ffbae928d7191c0017f298260995f901d78eabde1436c0af0423459cc3715832136d84f68818d3a96399467b52143e273d4f3bf4ae190848891535421cd6c" +PORT= "3000" +DEFAULT_DOMAIN = "localhost" +I18N_DOMAIN = "cymru.local" +//I18N_DOMAIN ="dev-gwaithcynllunio.gwasanaeth.llyw.cymru" +//I18N_DOMAIN ="stage-gwaithcynllunio.gwasanaeth.llyw.cymru" +//I18N_DOMAIN ="pp-gwaithcynllunio.gwasanaeth.llyw.cymru"s +//I18N_DOMAIN ="gwaithcynllunio.gwasanaeth.llyw.cymru" \ No newline at end of file diff --git a/.eslintrc b/.eslintrc index 15b1ed91..f03a56fe 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,3 +1,6 @@ { - "extends": "next" + "extends": "next", + "rules": { + "@next/next/no-img-element": "off" + } } diff --git a/actions/index.js b/actions/index.js index 04dc85d4..b5d8a3a1 100644 --- a/actions/index.js +++ b/actions/index.js @@ -31,25 +31,21 @@ const agent = new https.Agent({ }); export const getToken = () => { - if (cache.tokenResponse) { - return cache.tokenResponse; - } else { - return axios - .post( - `${accessTokenEndpoint}${tenantId}/oauth2/v2.0/token`, - tokenBody, - tokenConfig - ) - .then((res) => res.data) - .then((data) => { - cache.tokenResponse = data; - return data; - }) - .catch((error) => { - console.log("error :", error.response); - // return error; - }); - } + return axios + .post( + `${accessTokenEndpoint}${tenantId}/oauth2/v2.0/token`, + tokenBody, + tokenConfig + ) + .then((res) => res.data) + .then((data) => { + cache.tokenResponse = data; + return data; + }) + .catch((error) => { + console.log("error :", error.response); + // return error; + }); }; const tokenBody = @@ -76,7 +72,7 @@ const azureHeaders = (access_token) => { headers: { "OData-MaxVersion": "4.0", "OData-Version": "4.0", - "Accept": "application/json", + "Accept": "application/json;odata.metadata=none", "Prefer": 'odata.include-annotations="*",return=representation', "Content-Type": "application/json", "Authorization": "Bearer " + access_token, @@ -89,7 +85,7 @@ const azureHeadersPaged = (access_token) => { headers: { "OData-MaxVersion": "4.0", "OData-Version": "4.0", - "Accept": "application/json", + "Accept": "application/json;odata.metadata=none", "Prefer": 'odata.include-annotations="*",return=representation, odata.maxpagesize=10', "Content-Type": "application/json", @@ -110,7 +106,9 @@ const hashAPIPath = (queryPath) => { ); hashlink = hashlink.toString(CryptoJS.enc.Hex); - return "&hash=" + hashlink; + //return "&hash=" + hashlink; + + return (hashPath.indexOf("?") > -1 ? "&hash=" : "?hash=") + hashlink; }; export const getBasicSearch = (token, searchString) => { @@ -183,8 +181,6 @@ export const getBasicDNSSearch = (token, searchString) => { }; export const getBasicDNSSearchPaged = (pageNumber) => { - var token = getToken(); - var queryUrl = "/api/proxy/incidents?$select=numberofchildincidents,_accountid_value,_customerid_value,_pinswg_associatedlpa_value,_ownerid_value,pinswg_appealcasetype,statuscode,ticketnumber,title, _primarycontactid_value&$expand=primarycontactid($select=fullname)&$filter=pinswg_appealcasetype eq 846040011 and pinswg_publishtoweb eq true&$orderby=createdon desc&$count=true" + (typeof pageNumber != "undefined" @@ -200,6 +196,7 @@ export const getBasicDNSSearchPaged = (pageNumber) => { }; export const getAdvancedSearch = (token, searchString) => { + console.log("debug showing token: ", token); console.log(searchString.caseReference); var queryString = ""; @@ -252,8 +249,6 @@ export const getAdvancedSearch = (token, searchString) => { export const getAdvancedSearchPaged = (searchString, pageNumber) => { //console.log(searchString); - var token = getToken(); - var queryString = ""; queryString += @@ -388,7 +383,6 @@ export const getSearchDocumentHistory = (token, documentID) => { export const getSearchDocumentDetailsPaged = (incidentID, pageNumber) => { console.log(incidentID); - var token = getToken(); var queryUrl = "/api/proxy/pinswg_documents?$count=true&$filter=_pinswg_documentids_value eq " + @@ -408,8 +402,6 @@ export const getSearchDocumentDetailsPaged = (incidentID, pageNumber) => { }; export const getSearchDocumentHistoryPaged = (documentID, pageNumber) => { - var token = getToken(); - var queryUrl = "/api/proxy/pinswg_documenthistories?$count=true&$select=_pinswg_documentid_value,pinswg_createddate,pinswg_state,pinswg_fileexists,statecode,pinswg_publisheddate&$filter=_pinswg_documentid_value eq " + documentID + @@ -501,8 +493,6 @@ export const getBasicDNSSearchDetails = (token, appealType, caseReference) => { }; export const getBasicDNSSearchDetailsPaged = (caseReference) => { - var token = getToken(); - var queryUrl = "/api/proxy/pinswg_dnses?$filter=pinswg_name eq '" + caseReference + @@ -535,9 +525,9 @@ export const getLinkedCases = (parentIncidentid) => { export const getFormData = (token, whichForm) => { var queryUrl = - "systemforms?$select=formid,name,formxml,type,objecttypecode&$filter=(objecttypecode%20eq%20%27pinswg_" + + "systemforms?$select=formid,name,formxml,type,objecttypecode&$filter=(objecttypecode eq 'pinswg_" + whichForm + - "%27and%20type%20eq%202)&$count=true&$top=201"; + "' and type eq 2)&$count=true&$top=201"; return axios .get(WEBAPI_URL + queryUrl + hashAPIPath(queryUrl), azureHeaders(token)) .then((res) => res.data) @@ -650,10 +640,7 @@ export const getAppealID = ( console.log("proxy url ", queryUrl); return axios - .get( - WEBAPI_URL + queryUrl + hashAPIPath(queryUrl), - azureHeaders(getToken()) - ) + .get(queryUrl + hashAPIPath(queryUrl)) .then((res) => { var appealID = res.data.value[0][primaryAttribute]; return appealID; @@ -669,7 +656,7 @@ export const getLogin = (emailAddress, pwd) => { emailAddress + "' and pinswg_custom_password eq '" + pwd + - "'&$count=true&$select=emailaddress1,%20contactid,pinswg_custom_password, yomifullname, firstname, lastname"; + "'&$count=true&$select=emailaddress1,contactid,pinswg_custom_password,yomifullname,firstname,lastname"; return axios .get(queryUrl + hashAPIPath(queryUrl)) @@ -693,14 +680,14 @@ export const createCase = (token, appealTypeId, lpaID, contactid) => { var config = { method: "post", - url: queryUrl + hashAPIPath(queryUrl), + url: WEBAPI_URL + queryUrl + hashAPIPath(queryUrl), headers: { "OData-MaxVersion": "4.0", "OData-Version": "4.0", - "Accept": "application/json", + "Accept": "application/json;odata.metadata=none", "Prefer": 'odata.include-annotations="*",return=representation', "Content-Type": "application/json", - "ServiceBusAuthorization": token, + "Authorization": "Bearer " + token, }, data: data, }; @@ -740,10 +727,9 @@ export const updateCase = async ( headers: { "OData-MaxVersion": "4.0", "OData-Version": "4.0", - "Accept": "application/json", + "Accept": "application/json;odata.metadata=none", "Prefer": 'odata.include-annotations="*",return=representation', "Content-Type": "application/json", - "Authorization": getToken(), }, data: data, }; @@ -810,10 +796,9 @@ export const deleteMyRepresentations = (myRepresentationsID) => { headers: { "OData-MaxVersion": "4.0", "OData-Version": "4.0", - "Accept": "application/json", + "Accept": "application/json;odata.metadata=none", "Prefer": 'odata.include-annotations="*",return=representation', "Content-Type": "application/json", - "Authorization": getToken(), }, }; // console.log(config); @@ -889,10 +874,9 @@ export const createWatchedCases = (formValues) => { headers: { "OData-MaxVersion": "4.0", "OData-Version": "4.0", - "Accept": "application/json", + "Accept": "application/json;odata.metadata=none", "Prefer": 'odata.include-annotations="*",return=representation', "Content-Type": "application/json", - "Authorization": getToken(), }, data: data, }; @@ -915,10 +899,9 @@ export const deleteWatchedCases = (watchedCaseID) => { headers: { "OData-MaxVersion": "4.0", "OData-Version": "4.0", - "Accept": "application/json", + "Accept": "application/json;odata.metadata=none", "Prefer": 'odata.include-annotations="*",return=representation', "Content-Type": "application/json", - "Authorization": getToken(), }, }; // console.log(config); @@ -990,19 +973,11 @@ export const getEmailAccountCheck = (emailAddress) => { }; export const createAccount = (formValues) => { - var data = JSON.stringify(formValues); + var data = formValues; //JSON.stringify(formValues); var queryUrl = "/api/proxy/contacts"; var config = { method: "post", url: queryUrl + hashAPIPath(queryUrl), - headers: { - "OData-MaxVersion": "4.0", - "OData-Version": "4.0", - "Accept": "application/json", - "Prefer": 'odata.include-annotations="*",return=representation', - "Content-Type": "application/json", - "Authorization": getToken(), - }, data: data, }; // console.log(config); @@ -1016,48 +991,32 @@ export const createAccount = (formValues) => { }); }; -export const updateAccount = (contactId, updateBody) => { - var data = JSON.stringify(updateBody); +export const updateAccount = async (contactId, updateBody) => { + var data = updateBody; //JSON.stringify(updateBody); var queryUrl = "/api/proxy/contacts(" + contactId + ")"; + queryUrl = queryUrl + hashAPIPath(queryUrl); var config = { method: "patch", - url: queryUrl + hashAPIPath(queryUrl), - headers: { - "OData-MaxVersion": "4.0", - "OData-Version": "4.0", - "Accept": "application/json", - "Prefer": 'odata.include-annotations="*",return=representation', - "Content-Type": "application/json", - "Authorization": getToken(), - }, + url: queryUrl, data: data, }; - // console.log(config); return axios(config) .then((res) => { - //console.log("posted ", res.data); return res.data; }) .catch((error) => { - console.log("this serror", error); + console.log("this error:", error); }); }; export const updatePassword = (contactId, newpassword) => { let updateBody = { "pinswg_custom_password": newpassword }; - var data = JSON.stringify(updateBody); + var data = updateBody; //JSON.stringify(updateBody); var queryUrl = "/api/proxy/contacts(" + contactId + ")"; + queryUrl = queryUrl + hashAPIPath(queryUrl); var config = { method: "patch", - url: queryUrl + hashAPIPath(queryUrl), - headers: { - "OData-MaxVersion": "4.0", - "OData-Version": "4.0", - "Accept": "application/json", - "Prefer": 'odata.include-annotations="*",return=representation', - "Content-Type": "application/json", - "Authorization": getToken(), - }, + url: queryUrl, data: data, }; // console.log(config); diff --git a/components/accessibility.js b/components/accessibility.js index 8bc96a23..e2dbf543 100644 --- a/components/accessibility.js +++ b/components/accessibility.js @@ -1,6 +1,8 @@ import Link from "next/link"; import { useRouter } from "next/router"; import useTranslation from "next-translate/useTranslation"; +import AccessibilityEN from "./footerDocs/accessibility_en"; +import AccessibilityCY from "./footerDocs/accessibility_cy"; const AccessibilityStatement = (props) => { let { t } = useTranslation(); @@ -16,14 +18,7 @@ const AccessibilityStatement = (props) => { id="main-content" role="main" > -
-
-

- Accessibility Statement -

-

bkah blah

-
-
+ {router.locale != "en" ? : } ); }; diff --git a/components/account/registerComplete.js b/components/account/registerComplete.js index 4c057085..797c1c3e 100644 --- a/components/account/registerComplete.js +++ b/components/account/registerComplete.js @@ -75,52 +75,70 @@ const RegisterComplete = (props) => { } }); - return props.accountDetails.accCr == "created" ? ( - <> -

- {t("account:register-new-account-confirmation-email")} -

+ var registerBody = ""; + switch (props.accountDetails.accCr) { + case "created": + return (registerBody = ( + <> +

+ {t("account:register-new-account-confirmation-email")} +

-

- {t("account:register-new-account-sub-heading-what-next")} -

+

+ {t( + "account:register-new-account-sub-heading-what-next" + )} +

-

- {t("account:register-new-account-paragraph-what-next")} -

+

+ {t("account:register-new-account-paragraph-what-next")} +

-

- - { - setLogout(), window.localStorage.clear(); - }} - > - {t("account:register-new-account-my-portal-link")} - - -

- - ) : ( - <> -

- {t("account:register-new-account-account-failed")} -

-

- { - setRegisterFormComplete(false), - setAccountCreatedComplete(false), - setAccCr("false"); - }} - className="govuk-link" - > - Try registering again - -

- - ); +

+ + { + setLogout(), window.localStorage.clear(); + }} + > + {t( + "account:register-new-account-my-portal-link" + )} + + +

+ + )); + + break; + + case "exists": + return (registerBody = ( + <> +

+ {t("account:register-new-account-account-failed")} +

+

+ { + setRegisterFormComplete(false), + setAccountCreatedComplete(false), + setAccCr(false); + }} + className="govuk-link" + > + Try registering again + +

+ + )); + + default: + return (registerBody = ""); + break; + } + return registerBody; }; const mapStateToProps = (state) => { diff --git a/components/account/registerform.js b/components/account/registerform.js index 63981f1f..0b350e15 100644 --- a/components/account/registerform.js +++ b/components/account/registerform.js @@ -109,7 +109,7 @@ const RegisterForm = (props) => { setRegisterFormComplete(true); }; - console.log(pristine); + //console.log(pristine); return ( <> {!pristine && !valid && ( diff --git a/components/footer.js b/components/footer.js index 6f371a24..715c1345 100644 --- a/components/footer.js +++ b/components/footer.js @@ -28,7 +28,7 @@ export default function Footer(props) { }; //console.log(router.asPath); - const shareBodyStr = t("common:gov-wales-link") + router.asPath; + const shareBodyStr = t("common:service-home-url") + router.asPath; const shareSubjectStr = t("common:social-shared-from") + " " + diff --git a/components/footerDocs/accessibility_cy.js b/components/footerDocs/accessibility_cy.js new file mode 100644 index 00000000..d1b3854f --- /dev/null +++ b/components/footerDocs/accessibility_cy.js @@ -0,0 +1,225 @@ +import Link from "next/link"; +import { useRouter } from "next/router"; +import useTranslation from "next-translate/useTranslation"; + +export default function AccessibilityCY() { + let { t } = useTranslation(); + + const router = useRouter(); + const { locale } = router; + return ( +
+
+

+ Datganiad Hygyrchedd ar gyfer Porth Penderfyniadau Cynllunio + ac Amgylchedd Cymru{" "} +

+ +

+ Mae’r datganiad hygyrchedd hwn yn berthnasol i borth ar-lein + Penderfyniadau Cynllunio ac Amgylchedd Cymru (PCAC) ar gyfer + cyflwyno ac adolygu dogfennau sy’n ymwneud â’r gwaith achos + rydym yn ei brosesu. +

+

+ Cynhelir y wefan hon gan PCAC, sef un o Is-adrannau + Llywodraeth Cymru. Rydym eisiau i gynifer o bobl â phosibl + allu defnyddio’r wefan hon. Er enghraifft, mae hynny’n + golygu y dylech allu: +

+
    +
  • newid lliwiau, lefelau cyferbynnedd a ffontiau
  • +
  • + chwyddo i mewn hyd at 300% heb i’r testun fynd oddi ar y + sgrin +
  • +
  • + llywio’r rhan fwyaf o’r wefan gan ddefnyddio bysellfwrdd + yn unig +
  • +
  • + llywio’r rhan fwyaf o’r wefan gan ddefnyddio meddalwedd + adnabod llais +
  • +
  • + gwrando ar y rhan fwyaf o’r wefan gan ddefnyddio rhaglen + darllen sgrin (gan gynnwys fersiynau diweddaraf JAWS, + NVDA a VoiceOver) +
  • +
+ +

+ Rydym hefyd wedi gwneud testun y wefan mor syml ei ddeall â + phosibl. +

+

+ Mae AbilityNet yn rhoi cyngor ar wneud eich dyfais yn haws + ei defnyddio os oes gennych anabledd. +

+ +

Pa mor hygyrch yw’r wefan hon

+

+ Rydym yn gwybod nad yw rhai rhannau o’r wefan hon yn gwbl + hygyrch: +

+
    +
  • + ni fydd y testun yn ail-lifo mewn un golofn pan fyddwch + yn newid maint y ffenestr bori{" "} +
  • +
  • + ni allwch addasu uchder llinell testun na’r gofod rhwng + testun +
  • +
  • + nid yw’r rhan fwyaf o ddogfennau PDF hŷn yn gwbl hygyrch + i feddalwedd darllen sgrin +
  • +
  • nid oes gan ffrydiau fideo byw gapsiynau
  • +
  • + mae rhai o’n ffurflenni ar-lein yn anodd eu llywio gan + ddefnyddio bysellfwrdd yn unig{" "} +
  • +
  • + ni allwch neidio i’r prif gynnwys pan fyddwch yn + defnyddio rhaglen darllen sgrin{" "} +
  • +
  • + mae terfyn ar ba mor fawr y gallwch chwyddo’r map ar ein + tudalen ‘cysylltwch â ni’ +
  • +
+ +

Adborth a gwybodaeth gyswllt

+ +

+ Os oes arnoch angen y wybodaeth ar y wefan hon mewn fformat + arall, fel PDF hygyrch, print bras, fersiwn hawdd ei + darllen, recordiad sain neu braille: +

+ + +

+ Byddwn yn ystyried eich cais ac yn cysylltu â chi ymhen 5 + niwrnod. +

+ +

+ Os na allwch weld y map ar ein tudalen ‘cysylltwch â ni’, + ffoniwch ni neu anfonwch neges e-bost atom i gael + cyfarwyddiadau;{" "} + + Cysylltwch â Ni + + . +

+ +

Gweithdrefn orfodi

+ +

+ Mae’r Comisiwn Cydraddoldeb a Hawliau Dynol (EHRC) yn + gyfrifol am orfodi Rheoliadau Hygyrchedd Cyrff Sector + Cyhoeddus (Gwefannau ac Apiau Symudol) (Rhif 2) 2018 (y + ‘rheoliadau hygyrchedd’). Os nad ydych yn fodlon â’r ffordd + rydym yn ymateb i’ch cwyn, cysylltwch â’r Gwasanaeth + Cynghori a Chymorth Cydraddoldeb (EASS). +

+ +

Cysylltu â ni ar y ffôn neu ymweld â ni’n bersonol

+ +

+ Rydym yn darparu gwasanaeth cyfnewid testun ar gyfer pobl + B/byddar, pobl sydd â nam ar y clyw neu bobl sydd â nam ar y + lleferydd. +

+ +

+ Mae dolenni sain yn ein swyddfeydd hefyd, neu os byddwch yn + cysylltu â ni cyn eich ymweliad gallwn drefnu dehonglydd + Iaith Arwyddion Prydain (BSL). +

+ +

Dysgwch sut i gysylltu â ni.

+ +

Gwybodaeth dechnegol am hygyrchedd y wefan hon

+ +

+ Mae PCAC wedi ymrwymo i wneud ei wefan yn hygyrch, yn unol â + Rheoliadau Hygyrchedd Cyrff Sector Cyhoeddus (Gwefannau ac + Apiau Symudol) (Rhif 2) 2018. +

+ +

Statws cydymffurfio

+ +

+ Mae’r wefan hon yn cydymffurfio’n rhannol â Chanllawiau + Hygyrchedd Cynnwys y We (WCAG) fersiwn 2.1 – safon Lefel AA, + o ganlyniad i’r ‘achosion o ddiffyg + cydymffurfio’/’eithriadau’ neu’r ‘achosion o ddiffyg + cydymffurfio ac eithriadau’] a restrir isod. +

+ +

Diffyg cydymffurfio â’r rheoliadau hygyrchedd

+ +

+ Nid oes testun amgen ar gyfer rhai delweddau, felly ni all + pobl sy’n defnyddio rhaglen darllen sgrin gael at y + wybodaeth. Mae hyn yn methu maen prawf llwyddiant 1.1.1 + (cynnwys nad yw’n destun). +

+

+ Bwriadwn ychwanegu testun amgen at yr holl ddelweddau erbyn + mis Medi 2020. Pan fyddwn yn cyhoeddi cynnwys newydd, byddwn + yn sicrhau bod ein defnydd o ddelweddau’n bodloni safonau + hygyrchedd. +

+ +

Paratoi’r datganiad hygyrchedd hwn

+ +

+ Paratowyd y datganiad hwn ar [TBC]. Fe’i hadolygwyd + ddiwethaf ar [TBC when signed off]. +

+ +

+ Profwyd y wefan hon ddiwethaf ar [TBC]. Cynhaliwyd y prawf + gan [add name of organisation that carried out test, or + indicate that you did your own testing]. +

+ +

+ Gwnaethom ddefnyddio’r dull hwn i benderfynu ar sampl o + dudalennau i’w profi [add link to explanation of how you + decided which pages to test]. +

+ +

+ Gallwch ddarllen yr adroddiad llawn ar y prawf hygyrchedd + [add link to report]. +

+
+
+ ); +} diff --git a/components/footerDocs/accessibility_en.js b/components/footerDocs/accessibility_en.js new file mode 100644 index 00000000..f01a939b --- /dev/null +++ b/components/footerDocs/accessibility_en.js @@ -0,0 +1,219 @@ +import Link from "next/link"; +import { useRouter } from "next/router"; +import useTranslation from "next-translate/useTranslation"; + +export default function AccessibilityEN() { + let { t } = useTranslation(); + + const router = useRouter(); + const { locale } = router; + return ( +
+
+

+ Accessibility Statement for Planning and Environment + Decisions Wales Portal +

+ +

+ This accessibility statement applies to Planning and + Environment Decisions Wales’ (PEDW) online portal for the + submission and review of documents related to the casework + we process. +

+

+ This website is run by PEDW, a Division of The Welsh + Government. We want as many people as possible to be able to + use this website. For example, that means you should be able + to: +

+
    +
  • change colours, contrast levels and fonts
  • +
  • + zoom in up to 300% without the text spilling off the + screen +
  • +
  • navigate most of the website using just a keyboard
  • +
  • + navigate most of the website using speech recognition + software +
  • +
  • + listen to most of the website using a screen reader + (including the most recent versions of JAWS, NVDA and + VoiceOver) +
  • +
+ +

+ We’ve also made the website text as simple as possible to + understand. +

+

+ AbilityNet has advice on making your device easier to use if + you have a disability. +

+ +

How accessible this website is

+

+ We know some parts of this website are not fully accessible: +

+
    +
  • + the text will not reflow in a single column when you + change the size of the browser window +
  • +
  • + you cannot modify the line height or spacing of text +
  • +
  • + most older PDF documents are not fully accessible to + screen reader software +
  • +
  • live video streams do not have captions
  • +
  • + some of our online forms are difficult to navigate using + just a keyboard +
  • +
  • + you cannot skip to the main content when using a screen + reader +
  • +
  • + there’s a limit to how far you can magnify the map on + our ‘contact us’ page +
  • +
+ +

Feedback and contact information

+ +

+ If you need information on this website in a different + format like accessible PDF, large print, easy read, audio + recording or braille: +

+ + +

+ We’ll consider your request and get back to you in no later + than 5 days. +

+ +

+ If you cannot view the map on our ‘contact us’ page, please + call or email us for directions; Contact Us. +

+ +

Enforcement procedure

+ +

+ The Equality and Human Rights Commission (EHRC) is + responsible for enforcing the Public Sector Bodies (Websites + and Mobile Applications) (No. 2) Accessibility Regulations + 2018 (the ‘accessibility regulations’). If you’re not happy + with how we respond to your complaint, contact the Equality + Advisory and Support Service (EASS). +

+ +

Contacting us by phone or visiting us in person

+ +

+ We provide a text relay service for people who are D/deaf, + hearing impaired or have a speech impediment. +

+ +

+ Our offices have audio induction loops, or if you contact us + before your visit we can arrange a British Sign Language + (BSL) interpreter. +

+ +

+ Find out how to{" "} + + contact us + + . +

+ +

+ Technical information about this website’s accessibility +

+ +

+ PEDW is committed to making its website accessible, in + accordance with the Public Sector Bodies (Websites and + Mobile Applications) (No. 2) Accessibility Regulations 2018. +

+ +

Compliance status

+ +

+ This website is partially compliant with the Web Content + Accessibility Guidelines version 2.1 – Level AA standard, + due to the non-compliances’/‘the exemptions’ or ‘the + non-compliances and exemptions’] listed below. +

+ +

Non-compliance with the accessibility regulations

+ +

+ Some images do not have a text alternative, so people using + a screen reader cannot access the information. This fails + WCAG 2.1 success criterion 1.1.1 (non-text content). +

+

+ We plan to add text alternatives for all images by September + 2020. When we publish new content we’ll make sure our use of + images meets accessibility standards. +

+ +

Preparation of this accessibility statement

+ +

+ This statement was prepared on [TBC]. It was last reviewed + on [TBC when signed off]. +

+ +

+ This website was last tested on [TBC]. The test was carried + out by [add name of organisation that carried out test, or + indicate that you did your own testing]. +

+ +

+ We used this approach to deciding on a sample of pages to + test [add link to explanation of how you decided which pages + to test]. +

+ +

+ You can read the full accessibility test report [add link to + report]. +

+
+
+ ); +} diff --git a/components/footerDocs/privacy_cy.js b/components/footerDocs/privacy_cy.js new file mode 100644 index 00000000..15f2dfcf --- /dev/null +++ b/components/footerDocs/privacy_cy.js @@ -0,0 +1,1977 @@ +import Link from "next/link"; +import { useRouter } from "next/router"; +import useTranslation from "next-translate/useTranslation"; + +export default function PrivacyCY() { + let { t } = useTranslation(); + + const router = useRouter(); + const { locale } = router; + return ( +
+
+

+ Privacy Statement CY +

+ +

Purpose of this privacy notice

+

+ We are committed to ensuring that the personal data of our + customers is handled in accordance with the principles set + out in data protection laws. +

+

+ This privacy notice reflects the requirements of the UK + General Data Protection Regulation (GDPR) and Data + Protection Act 2018 and covers all types of casework handled + by Planning and Environment Decisions Wales.{" "} +

+

It informs you about:

+
    +
  • + The specifics of the personal data handling practices + within Planning and Environment Decisions Wales (PEDW) + and what you can expect PEDW to do with the information + it collects.{" "} +
  • +
  • + What personal information we collect, how we collect it, + use it, store it, share it, and dispose of it. +
  • +
  • + Personal information provided as part of all PEDW + casework that you can make, or comment on, or is + provided by other Government Departments and + Organisations using any of Planning and Environment + Decisions Wales’ Websites or other means.{" "} +
  • +
  • + How we process any personal information including + special category data you have voluntarily provided to + us relating directly to you or any other third-party + individual's information you may have provided relating + to PEDW casework. +
  • +
  • + Planning and Environment Decisions Wales handle a + variety of casework types which are submitted via the + PEDW Portal and a variety of other methods e.g. Post, + Digital Transfer and Email. +
  • +
+

+ The PEDW Portal handles a range of casework (as documented + in Annex A).{" "} +

+

+ It also provides information about our processing of + personal information when dealing with complaints.{" "} +

+

+ This Privacy Notice may be updated and/or re-issued at any + time, and we will provide you with notice of any such + updates via the GOV.Wales and PEDW websites.{" "} +

+

+ At our discretion, we may notify you by providing a ‘just in + time’ notice to cover any additional processing activities + not mentioned in this document.{" "} +

+

Personal Data Definition

+

+ The UKGDPR and Data Protection Act 2018 applies to the + processing of personal data relating to an individual (data + subject) who is the identified or identifiable person to + whom the personal data relates: +

+
    +
  • + When the data subject can be directly or indirectly + identified from that information in combination with + other information.{" "} +
  • +
  • + Wholly or partly by automated means the processing other + than by automated means of personal data which forms + part of, or is intended to form part of, a filing + system. +
  • +
  • + Personal data only includes information relating to + natural persons who can be identified or who are + identifiable, directly from the information in question +
  • +
  • + Information about individuals acting as sole traders, + employees, partners, and company directors where they + are individually identifiable, and the information + relates to them as an individual may constitute personal + data. +
  • +
+

It does not include:

+
    +
  • + Where the identity of participants has been removed + (anonymised data). +
  • +
  • Information about a deceased person.
  • +
  • Companies or Public Authorities
  • +
+

+ There are “special categories” of personal data (SCD) (this + was known as “sensitive personal data” in previous data + protection law), these are more sensitive in nature and + require specific handling under the legislation. +

+

Policy commitment to openness and transparency

+

+ One of the fundamental values of Planning and Environment + Decisions Wales is its commitment to openness and + transparency in respect of our statutory role processing and + deciding planning and all other related casework.{" "} +

+

+ In many instances in particular planning processes there are + obligations that require us to share the information that we + receive, and in some instances for this to be made publicly + available. We apply a general presumption in favour of + disclosure, but individual decisions will take into account + the statutory obligations on us, including under data + protection legislation. +

+

Data Controllers

+

+ The Welsh Government (WG) is the Data Controller for data + protection purposes (Planning and Environment Decisions + Wales is a division of WG). The address for WG is; Welsh + Government, Cathays Park, Cardiff, CF10 3NQ. +

+

+ Planning and Environment Decisions Wales is responsible for + deciding how we collect, store, and process your personal + information. This Privacy Notice explains in plain English + how we collect, use, and share your data. +

+

+ Planning and Environment Decisions Wales have appointed a + Senior Data Protection Manager to oversee our compliance + with data protection legislation. If you have any questions + about this Privacy Notice or on how we handle your personal + information, or believe we have not complied with your + rights as a data subject, please contact the Senior Data + Protection Manager (SDPM): +

+

By email to *** or;

+

+ In writing addressed to the Senior Data Protection Manager + (SDPM) at: Temple Quay House 2 The Square Temple Quay + Bristol BS1 6PN +

+

+ WG’s Data Protection Officer (DPO) formally oversees data + protection compliance for Planning and Environment Decisions + Wales. You may also contact the WG DPO: +

+
    +
  • + By e-mail to dataprotection@communities.gov.uk., or; +
  • +
  • + In writing, addressed to the “Data Protection Officer” + at: Welsh Government, Cathays Park, Cardiff, CF10 3NQ +
  • +
+

+ How to make a complaint about the processing of your + personal information{" "} +

+

+ When we process your personal information, we will comply + with the Data Protection Legislation/Regulations.{" "} +

+

+ If you believe we have not complied with your rights as a + data subject, or our obligations, and you are you are + unhappy with the way Planning and Environment Decisions + Wales processes your personal information or you have any + questions about this Privacy Notice, or how we handle your + personal information, please contact us at ***. +

+

+ Also for independent advice about data protection matters + you have the right to escalate any complaint at any time to + the Information Commissioner’s Office (the UK supervisory + authority for Data Protection issues) please see below for + their postal address, contact telephone number and website + link: +

+

+ Information Commissioner's Office
+ 1 Wycliffe House +
+ Water Lane, Wilmslow
+ Cheshire
+ SK9 5AF +

+

+ Telephone helpline number:{" "} + + 0303 123 1113{" "} + {" "} +
+ + https://ico.org.uk/ + +

+

1. Who are we?

+

+ Planning and Environment Decisions Wales is a division of + the Welsh Government. +

+
    +
  • + Under data protection legislation, Planning and + Environment Decisions Wales is responsible for deciding + how we collect, store, and process your personal + information. +
  • +
  • + Planning and Environment Decisions Wales deals with all + aspects of planning appeals, examinations of local plans + and any other planning-related and specialist casework.{" "} +
  • +
  • + These are undertaken by Planning and Environment + Decisions Wales or on behalf of relevant Welsh Minister.{" "} +
  • +
  • + For Community Infrastructure Levy Schedules (CILs), our + Inspectors are appointed by the Charging Authority to + examine their Charging Schedule. +
  • +
+

2. How do we collect personal information?

+
    +
  • + You will have directly provided information to us, if + you make or take part, in a planning appeal, application + or examination as part of our planning processes.{" "} +
  • +
  • + You may also provide us indirectly with special category + information where you are providing information + regarding your personal circumstance (which may also + include personal and special category of other data + subjects) that you want to be considered within the + planning processes.{" "} +
  • +
  • + Via our websites, e.g. connection data sent to our + webserver by your browser when you connect to our + website. +
  • +
+

3. Why do we process your personal information?

+

+ The information provided to us is used to determine appeals, + orders, applications and examinations. +

+

+ PEDW Portal terms and conditions separately provide + information about how we use personal information we may + collect when and the types of personal data we may collect + when carrying out our duties under the Town and Country + Planning 1990 Legislation and other legislation in relation + to other casework. +

+

PEDW PORTAL

+

+ The information provided to us via the PEDW Portal is used + to process Planning and Enforcement Appeals cases. +

+
    +
  • + Planning and Environment Decisions Wales will provide + guidance to making and taking part in casework types and + references to the statutory procedural rules that apply. +
  • +
  • + In accordance with the statutory rules, casework + representations are normally copied to the + appellant/applicant, the Local Authority (LA) and other + statutory parties to the case.{" "} +
  • +
  • + The LA is also required to make the casework + representations available to anyone who wishes to see + them.{" "} +
  • +
  • + As they provide context to your representation and allow + for the effective running of the case e.g. allowing + parties with similar viewpoints to identify each other + and agree joint presentation of views at any hearing or + inquiry), the representations that we receive are + normally exchanged between the parties without redaction + of content or contact information, subject to the + condition that Planning and Environment Decisions Wales + determines that it is both necessary and proportionate + to do so.{" "} +
  • +
  • + The information voluntarily provided can directly or + indirectly include personal information about other + individuals and can include special category data e.g. + medical information of other parties (please see Special + Category Data paragraph for further information). + Planning and Environment Decisions Wales will only + process such data where it is warranted and has the + appropriate legal basis to do so. +
  • +
  • + Please note that we do not accept anonymous or + confidential representations, however, you may comment + on a case and ask for your identity to be withheld. +
  • +
  • + If you request this then your representation will be + copied to the parties and provided to the Inspector + without your name and contact details, and your + representation may be given less weight by the Inspector + as a result. +
  • +
  • + In the event that you do not want to be identifiable + from your representation you should avoid including + information which may identify you. +
  • +
+

+ The appointed Inspector will consider the information + provided in the representations and reach their decision. + Their decision notice will provide the outcome for the case + and their reasoning +

+

The information we publish on the PEDW Portal

+

+ We publish summary details of cases which we process on the + PEDW Portal.{" "} +

+
    +
  • + The name of the appellant/applicant and the site + address.{" "} +
  • +
  • We also publish the final decision.
  • +
  • + We have a redaction policy and remove personal telephone + numbers, email addresses and signatures, and also + special category information (such as information about + an individual’s health). +
  • +
  • + If you have concerns about the publication of your + information, then you should discuss this with the Case + Officer in the first instance before submitting your + representation.{" "} +
  • +
  • + However, if you have further concerns relating to the + processing or handling of your personal data please + contact … – I assume WG DPO offices? +
  • +
  • + Although we may not publish every document or every + case, we have a statutory obligation to copy + representations to the relevant parties. The LA is + obliged to make them available to anyone who may wish to + see them so you may also want to check with them what + information they publish. +
  • +
+

Developments of National Significance Projects

+

+ For the Development of National Significance (“DNS”) under + Planning (Wales) Act 2015, which amends the Town and County + Planning Act 1990 (“the Act”), the Developments of National + Significance (Wales) Regulations 2016 (as amended) and + subsequent Regulations which requires us to:{" "} +

+
    +
  • + Make certain documents and information more widely + available to other participants, which may include + personal information, publicly available.{" "} +
  • +
  • + We do this by publishing documents and information on + the PEDW Portal. +
  • +
  • + If you have specific queries or concerns in respect of + this processing of your personal data, then please + contact the relevant case officer in the first instance + to discuss the guidance and your concerns. +
  • +
+

The Information we publish online

+
    +
  • Application documents
  • +
  • + Relevant Representations, Written Representations, and + other documents on the Developments of National + Significance website.{" "} +
  • +
  • + These published records will include the name of the + person that has submitted the document. +
  • +
  • + The Inspector or Inspectors appointed to carry out the + examination of an application{" "} +
  • +
  • + Before publishing any documents, we redact (or ‘blank + out’) certain personal details e.g. telephone numbers; + addresses; email addresses; signatures and sensitive + personal information (special category data).{" "} +
  • +
  • + We also redact any content that we consider to be + potentially libellous. +
  • +
  • + We don’t redact any personal information in documents + produced by applicants where this would hinder the + effective examination of an application e.g. Planning + and Environment Decisions Wales’s carrying out of its + public task. For example, certain documents that are + published which includes the names and addresses of + Interested Parties because the land or rights of those + Interested Parties would be affected by the Proposed + Development. +
  • +
  • + We also publish the Examining Authority’s Recommendation + Report and the decision of the Welsh Ministers, both of + which may contain personal information. +
  • +
+

+ Alternatively where our sponsor departments are responsible + for making the decision on the case, the Inspector will + produce a report. The Inspectors report and the + representations provided to them will then be sent to our + sponsor department. +

+

+ 4. Under what Legal Basis do we process your personal + information?{" "} +

+

+ It is necessary for us to process your personal information + to enable us to facilitate the planning process under the + Town and Country Planning 1990, the Planning and Compulsory + Purchase Act 2004, the Planning Act 2008, the Planning Act + Wales 2015 and various other legislations e.g. Highway Act + 1980, for all Planning Inspectorate Casework +

+

+ The lawful bases for processing are set out in Article 6 of + the UK GDPR. Planning and Environment Decisions Wales uses + the lawful basis detailed in: +

+

+ Article 6(1)(a)Where the customer has given their consent + for the processing of their personal data for a specified + purpose. +

+

+ Article 6(1)(c) For the processing of written + representations and documents, the lawful basis which + relates to processing that is necessary for compliance with + a legal obligation to which Planning and Environment + Decisions Wales is subject. +

+

+ Article 6(1)(e) For the processing required for the + performance of a task carried out in the public interest or + in exercise of official authority vested in Planning and + Environment Decisions Wales{" "} +

+

+ Article 9(2)(g) For the processing of Special Category Data + the lawful basis is where the processing of special + categories of personal data is necessary for reasons of + substantial public interest. It also relates to our public + task and the safeguarding of your fundamental rights, and + Schedule 1 part 2(6) of the DPA2018 which relates to + statutory and government.{" "} +

+

5. What personal data we process?

+

+ We collect and process a range of information about you + including:{" "} +

+
    +
  • + Any and all Personal Information you voluntarily provide + to us as part of one or more of the following processes: + planning and associated appeal types, Developments of + National Significance (DNS) Projects and Specialist + casework +
  • +
  • + The information can directly or indirectly include + personal information about other individuals and can + include special category data e.g. medical information + of other parties (please see Special Category Data + paragraph below for further information). +
  • +
  • Your name
  • +
  • Address
  • +
  • + Telephone Phone number (generally and if a participant + in a virtual event who joins by mobile phone or landline + phone) +
  • +
  • E-Mail address
  • +
  • IP address
  • +
  • Electronic and hard copy correspondence
  • +
  • Application documents
  • +
  • + Written submissions made by Interested Parties and + others involved in the planning appeal process +
  • +
  • Written notes
  • +
  • Hard copies of information
  • +
  • + Information provided by other Government Departments and + Organisations +
  • +
+

Special Category Data

+

+ Special category data defined at Article 9 UK GDPR as + personal data is: +

+
    +
  • Racial or ethnic origin
  • +
  • Political opinions
  • +
  • Religious or philosophical beliefs
  • +
  • Trade union membership
  • +
  • Genetic data
  • +
  • + Biometric data for the purpose of uniquely identifying a + natural person +
  • +
  • Data concerning health or
  • +
  • + Data concerning a natural person’s sex life or sexual + orientation +
  • +
+

+ This does not include personal data about criminal + allegations, proceedings or convictions, as separate rules + apply. For further information, please see the Information + Commissioners separate guidance on criminal offence data. +

+
    +
  • + Planning and Environment Decisions Wales will not + routinely request special category data as part of our + processing activities. However, these may be provided as + part of the process. Please make sure that when you + submit special category data it is necessary and + relevant to the case.{" "} +
  • +
  • + For certain cases we may need to collect some special + category data to the extent that this is relevant to the + case. This could for example include or relate to + information about status (family background, + relationships, and dependents), business and livelihood, + as well as accommodation, health and/or educational + needs.{" "} +
  • +
  • + The information voluntarily provided can directly or + indirectly include personal information about other + individuals and can include special category data e.g. + medical information of other parties. Planning and + Environment Decisions Wales will only process such data + where it is warranted and has the appropriate legal + basis to do so. Please make sure it is necessary and + relevant to the case when you provide it to Planning and + Environment Decisions Wales. +
  • +
+

+ We may process and store special categories of more + sensitive personal information relating to any individual + that is voluntarily provided by you as part of all the + Planning Casework Process that you wish to be considered. + e.g. Medical information relating to yourself, family member + and in some instances a child. The personal information + provided may be held on a computer system, or in a manual + record such as in a physical file. +

+

+

+ 6. What are the consequences of failing to provide + information? +

+
    +
  • + If you fail to provide us with information required to + validate your case then we may not be able to consider + it. We will normally let you know if this applies.{" "} +
  • +
  • + There is no statutory obligation on interested parties + to participate in a case. +
  • +
  • + If you are an appellant/agent and fail to provide the + statutory information needed to validate your case + within the set time periods, then we will not be able to + consider your case and it may be deemed invalid.{" "} +
  • +
  • + If you are an applicant and you fail to provide the + statutory information needed to consider your + application, we may not be able to accept your + application for Examination under s55 of the Planning + Act 2008.{" "} +
  • +
  • + For Local Plans the Inspector is required to examine + whether the plan is sound and legally compliant and in + doing so they must consider any representations and + other documentation submitted by the LA.{" "} +
  • +
  • + Those participating in a local plan examination should + note that their representations will be ‘made available’ + by the LA in line with the Regulations including + publication on the LA’s website. As a Data Controller + the LA may or may not redact some or all personal + information included in representations and other + documentation which is ‘made available’. To ensure an + open and fair examination, it is important that the + Inspector and all other participants in the examination + process know who has made representations on the plan + and the content of those representations. +
  • +
  • + There is no statutory obligation on an interested party + to participate in a Local plan examination or to provide + any particular information if they choose to not do so. +
  • +
  • + If you are another Interested Party and you fail to + provide your name and/or the name of the organisation or + group that you represent, we may be unable to accept + your representation.{" "} +
  • +
  • + We do not accept anonymous or confidential + representations for any types of Planning Inspectorate + casework +
  • +
+

7. Children’s Information

+

+ Planning and Environment Decisions Wales do not provide + services directly to children or proactively collect their + personal information. However, we are sometimes voluntarily + given information about children as part of the appeals, + applications, orders & examination processes. This can + include special category data provided in representations + from all aspects of casework.{" "} +

+

8. How long we keep your personal data?

+

+ We will retain our personal information only for as long as + is necessary to deliver our services and to meet our legal + and regulatory obligations. We maintain specific records + management and retention policies and procedures, so that + personal information is reviewed and deleted after a + reasonable time with the following criteria:{" "} +

+
    +
  • + The purpose or business activity requiring the + processing of your information.{" "} +
  • +
  • + Whether we have any legal obligation to continue to + process your information. +
  • +
  • + Whether we have any legal basis under data protection + law to continue to process your information (e.g. Public + Task). +
  • +
  • + Any relevant agreed sector practices on how long + information should be retained. +
  • +
  • + For the purpose of defending against legal and + regulatory challenges. +
  • +
+

9. Who do we share your data with?

+

+ In accordance with the statutory rules and relevant + guidance. Casework representations are normally copied to:{" "} +

+
    +
  • Appellants/Applicants
  • +
  • Interested Parties
  • +
  • Local Authorities
  • +
  • + Local Authorities are also responsible to make the + casework representations available to anyone who wishes + to see them. +
  • +
  • External Programme Officers
  • +
  • + Members of the Public (Worldwide) when published on our + website +
  • +
  • Other Statutory Parties to the case
  • +
  • + Other Statutory Parties such as external Regulators.{" "} +
  • +
  • + We provide your information to the relevant Welsh + Minister who make the final decision on the applications + and appeals we examine via: +
  • +
  • + The Department for Business, Energy, and Industrial + Strategy +
  • +
  • The Department for Transport
  • +
  • + The Department for Environment, Food and Rural Affairs + and +
  • +
  • + The Ministry of Housing, Communities and Local + Government. +
  • +
  • + For fairness to the other parties interested in a case, + we need to share your representations as indicated + above. It also provides context and allows for the + effective running of our casework processes e.g. + allowing parties with similar viewpoints to identify + each other and agree joint presentation of views at any + hearing or inquiry, the representations that we receive + are therefore exchanged between the parties, subject to + the condition that Planning Inspectorate determine that + it is both necessary and proportionate, without + redaction of content or contact information. We will + treat your information in confidence if you request it, + however you should be aware that your representation may + be given less weight by the Inspector. +
  • +
+

+ The appointed Inspector or person will consider the + information provided in the representations and reach their + decision. Their decision notice will provide the outcome for + the case and their reasoning for this. +

+

+ Alternatively, where Welsh Ministers, other Government + Departments and Organisations are responsible for making the + decision on the case, the Inspector will produce a + recommendation report. The Inspector’s report and the + representations are provided to them. +

+

+ In some circumstances, such as under a court order, we are + legally obliged to share information. We may also need to + share your personal information with: +

+
    +
  • + Other government agencies, departments, and civil + servants +
  • +
  • Our or other legal representatives
  • +
  • Auditors, and
  • +
  • Regulators or to otherwise comply with the law.
  • +
+

+ We may use third party service providers to process + information (see Annex B for full list) on our behalf in + respect of our casework e.g. the provision of information + technology services). Where we do so, contracts will be put + in place to ensure that your personal information is + processed only as instructed by us (unless otherwise + required by law), and that appropriate measures are in place + to ensure the security of information. +

+

+ Additionally, we are required under the Public Records Act + 1958 (as amended) to transfer records to the National + Archives (TNA) for permanent preservation. Some of these + records may include the personal data of our customers.{" "} +

+

Who will have access to your data?

+

+ We are committed to doing all that we can to keep your data + secure. We have set up systems and processes to prevent + unauthorised access or disclosure of your data e.g. we + protect your data using varying levels of encryption, and + relevant access controls are in place to effectively manage + and handle your personal information.{" "} +

+

+ Where third party service providers are used, contracts and + or licences are put in place to ensure that your personal + information is processed only as instructed by us (unless + otherwise required by law), and that appropriate measures + are in place to ensure the security of that information. +

+

+ When making an appeal/application or commenting on any of + our casework, you should keep in mind that in some instances + there are statutory requirements on us to make this + information more widely available.{" "} +

+

+ This will normally be set out in our guidance, but if you + have specific queries or concerns in respect of a particular + case then please contact the case officer who, if necessary, + will discuss the matter with … - process to be established, + can this be internal to PEDW or should it be sent up the + line?. +

+

10. Do we use any data processors?

+

+ Yes - a list of our current data processors is provided at + Annex B. +

+

11. Your rights in relation to this processing?

+

+ Under data protection law, you have rights regarding the + processing of your personal data. The rights available to + you depend on our reason for processing your information. + You are not required to pay any charge for exercising your + rights. We have one month to respond to you.{" "} +

+

Your rights under UK GDPR are the right:

+
    +
  • To be informed
  • +
  • Of access
  • +
  • To rectification
  • +
  • To erasure
  • +
  • To restrict processing
  • +
  • To data portability
  • +
  • To object
  • +
  • + Rights in relation to automated decision making and + profiling. (Planning and Environment Decisions Wales + does not use automated decision making or profiling). +
  • +
+

+ Not all of these rights are absolute, which means that they + may only apply in certain situations and may be subject to + legal exceptions and exemptions.{" "} +

+

+ Further information regarding your rights can be found on + the ICO Website.{" "} +

+

12. Registering for an Account for PEDW Portal

+

+ PEDW Portal users must create an account with us in order to + submit appeals or any representations. Registering with us + will enable you to access our full range of appeals + services, including a personal homepage.{" "} +

+

+ Also, the best way to comment on an existing case is to + register with us first as that makes it easier to track + cases and submit comments.{" "} +

+ {/*

Guest Log in Facility on the PEDW Portal

+

+ We have a guest log in facility if you do wish to submit + comments without creating an account; simply search for + your case and click on the ‘Make Representation’ button. +

*/} +

+ 13. Freedom of Information (FOIs) Requests, Subject Access + Requests (SARs) and Environment Information Regulations + (EIRs){" "} +

+

+ Planning and Environment Decisions Wales is a public body + and we have a legal duty to respond to requests made under + these legislations. This will sometimes mean that your + personal data could be used for the purpose of responding to + these requests. In the event that you are an applicant + making a request for information under one of these access + regimes we will use your information for the purpose of + complying with such a request. This will include information + for the purpose of corresponding with you and in order to + send our response. If you make a request for your own + personal data (subject access request) we may also require + evidence to verify your identity. +

+

+ 14. Annex A: Types of Casework undertaken by Planning and + Environment Decisions Wales{" "} +

+

+ A full list of Appeals, Applications, Examinations and + Orders that this Privacy Notice covers: all types of PEDW + casework. +

+
+
+
+
+

+ + Provided/Made Available via Website & + Other Means + +

+
+
+

+ Casework Type +

+
+
+

+ Purpose of Processing +

+
+
+
+
+

+ Welsh Appeals via the Appeals portal (PEDW + Portal)/Email/Post/External Third Parties +

+
+
+

Appeals

+
+
+

Enforcement Listed Building Notice

+
+
+
+
+

+ Welsh Appeals via the Appeals portal (PEDW + Portal)/Email/Post/External Third Parties +

+
+
+

Appeals

+
+
+

Enforcement Conservation Area Notice

+
+
+
+
+

+ Welsh Appeals via the Appeals portal (PEDW + Portal)/Email/Post/External Third Parties +

+
+
+

Appeals

+
+
+

Enforcement Notice

+
+
+
+
+

+ Welsh Appeals via the Appeals portal (PEDW + Portal)/Email/Post/External Third Parties +

+
+
+

Appeals

+
+
+

+ Enforcement Lawful Development Certificate +

+
+
+
+
+

+ Welsh Appeals via the Appeals portal (PEDW + Portal)/Email/Post/External Third Parties +

+
+
+

Appeals

+
+
+

Planning Advert Discontinuance

+
+
+
+
+

+ Welsh Appeals via the Appeals portal (PEDW + Portal)/Email/Post/External Third Parties +

+
+
+

Appeals

+
+
+

Planning Advertisement Appeal

+
+
+
+
+

+ Welsh Appeals via the Appeals portal (PEDW + Portal)/Email/Post/External Third Parties +

+
+
+

Appeals

+
+
+

Planning Commercial Appeal Service (CAS)

+
+
+
+
+

+ Welsh Appeals via the Appeals portal (PEDW + Portal)/Email/Post/External Third Parties +

+
+
+

Appeals

+
+
+

Planning Householder Appeal Service (HAS)

+
+
+
+
+

+ Welsh Appeals via the Appeals portal (PEDW + Portal)/Email/Post/External Third Parties +

+
+
+

Appeals

+
+
+

Prior Approval

+
+
+
+
+

+ Welsh Appeals via the Appeals portal (PEDW + Portal)/Email/Post/External Third Parties +

+
+
+

Appeals

+
+
+

Planning Section 106 Agreement

+
+
+
+
+

+ Welsh Appeals via the Appeals portal (PEDW + Portal)/Email/Post/External Third Parties +

+
+
+

Appeals

+
+
+

+ Planning Listed Building Consent & + Conservation Area Consent Appeal +

+
+
+
+
+

+ Welsh Appeals via the Appeals portal (PEDW + Portal)/Email/Post/External Third Parties +

+
+
+

Appeals

+
+
+

Non-Validation Appeals

+
+
+
+
+

+ Welsh Appeals via the Appeals portal (PEDW + Portal)/Email/Post/External Third Parties +

+
+
+

Applications made during PEDW processing

+
+
+

Costs Decisions

+
+
+
+
+

+ Welsh Appeals via the Appeals portal (PEDW + Portal)/Email/Post/External Third Parties +

+
+
+

Appeals

+
+
+

Planning Appeal

+
+
+
+
+

+ Developments of National Significance (DNS) + Website for DNS Case Types or  + Email/Post/External Third Parties +

+
+
+

Applications

+
+
+

+ Development of National Significance + Applications +

+
+
+
+
+

+ Email/Post/External Third + Parties   +

+
+
+

Appeals

+
+
+

Specialist Purchase Notices

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Appeals

+
+
+

+ Sustainable Drainage System (SUDS) Appeals +

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Appeals

+
+
+

+ Community Infrastructure Levy (CIL) Appeals +

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Appeals

+
+
+

Specialist High Hedges

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Appeals

+
+
+

Specialist Tree Preservation Order

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Appeals

+
+
+

Specialist Tree Replacement Notices

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Appeals

+
+
+

Environmental Permitting Regulations

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Appeals

+
+
+

SSSI Appeals

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Appeals

+
+
+

Contaminated Land

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Appeals

+
+
+

Marine Licensing

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Appeals

+
+
+

Waste Management

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Appeals

+
+
+

Water Abstraction

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Appeals

+
+
+

Hazardous Substances Appeals

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Appeals

+
+
+

Notice Appeals

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Appeals

+
+
+

Specialist Hedgerows

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Appeals

+
+
+

Restriction Appeals 

+
+
+
+
+

Email/Post/External Third Parties Appeals

+
+
+

Specialist

+
+
+

Rights of Way - Schedule 14

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Applications

+
+
+

+ Specialist Common Land under the below + legislations: +

+

+ ·      Commons Act + 2006: Section 16 +

+

+ ·      Commons Act + 2006: Section 38 +

+

+ ·      Commons Act + 2006: Part 1 +

+

+ ·      Acquisition + of Land Act 1981: Section 19 and Schedule 1 +

+

+ ·      National + Trust Act 1971: Section 23 +

+

+ ·      Section 15 + of the New Parishes Measure 1943 +

+

+ ·      Section 193 + of the Law of Property Act 1925 +

+

+ ·      Schemes of + management under the Commons Act 1899 +

+

+ ·      Section 9 of + the Countryside Act 1968 +

+

+ ·      Section 9 of + the Countryside Act 1968 +

+

+ ·      Inclosure + Acts +

+

+ ·      Various + local Acts and Provisional Order + Confirmation Acts (which includes levying of + stint rates) +

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Applications

+
+
+

+ Specialist Rights of Way - Schedule 14 + Directions +

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Applications

+
+
+

Specialist Village Green

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Applications

+
+
+

S36 Applications (Electricity Act 1989)

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Applications - Recommendations

+
+
+

Drought

+

Permits

+

 

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Applications

+
+
+

+ Specialist Necessary Wayleaves and Tree + Lopping +

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+
+
+

Applications

+
+
+

Water Abstraction

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Examinations

+
+
+

Water Resource Management Plans

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Examinations

+
+
+

Local Development Plans

+
+
+
+
+

+ Email/Post/External Third + Parties      +

+

 

+
+
+

Examinations

+
+
+

Community Infrastructure Levy (CIL)

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

Harbour Revision Orders

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

Drought Orders

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

Transport & Works Act Orders

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

Highways Act Orders

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

+ Local Authority (LA) Traffic Regulation + Orders +

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

Ferry and Bridge Toll Orders

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

Cycle Tracks Orders

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

Stopping Up Orders

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

+ Department for Transport (WG) Compulsory + Purchase Order (CPO) +

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

Side Road Orders

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

+ Department for Environment, Food & Rural + Affairs (DEFRA ) Compulsory Purchase Order + (CPO) +

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

+ Department for Environment, Food & Rural + Affairs (DEFRA ) Compulsory Purchase Order + (CPO) +

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

+ Review of Old Mineral Permissions (ROMPs) + and Ad-hoc Minerals +

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

Adverts Welsh Ministers (WM) Cases

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

+ Modifications and Revocation of Planning + Permission +

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

+ Business, Energy & Industrial Strategy + (BEIS) Compulsory Purchase Orders +

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

+ Ministry of Housing, Communities & Local + Government (MHCLG) Planning Compulsory + Purchase Orders +

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Orders

+
+
+

+ Rights of Way Orders under the below + Legislations: +

+

+ ·      Wildlife and + Countryside Act 1981 +

+

+ ·      Highways Act + 1980 +

+

+ ·      Town & + Country Planning Act 1990 +

+

+ ·      Acquisition + of Land Act 1981 +

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

+ Various - Examinations & Orders & + Applications +

+
+
+

Welsh Government (WG) Ad-hoc Requests

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

+ Various - Examinations & Orders & + Applications +

+
+
+

Department for Transport (DfT) Airports

+
+
+
+
+ +

15. Annex B – List of Data Processors

+

Data Processor List

+ +
+
+
+
+

+ Data Processor +

+
+
+

+ Purpose +

+
+
+
+
+ +
+
+
+

GoPro

+
+
+

Platform for Planning Appeal Processing

+
+
+
+
+ +
+
+
+

UK.Gov Notify

+
+
+

Communications with External Parties

+
+
+
+
+
+
+
+

Google Analytics

+
+
+

Monitoring Web Activity

+
+
+
+
+
+
+
+ ); +} diff --git a/components/footerDocs/privacy_en.js b/components/footerDocs/privacy_en.js new file mode 100644 index 00000000..49305d34 --- /dev/null +++ b/components/footerDocs/privacy_en.js @@ -0,0 +1,1953 @@ +import Link from "next/link"; +import { useRouter } from "next/router"; +import useTranslation from "next-translate/useTranslation"; + +export default function PrivacyEN() { + let { t } = useTranslation(); + + const router = useRouter(); + const { locale } = router; + return ( +
+
+

+ Privacy Statement +

+ +

Purpose of this privacy notice

+

+ We are committed to ensuring that the personal data of our + customers is handled in accordance with the principles set + out in data protection laws. +

+

+ This privacy notice reflects the requirements of the UK + General Data Protection Regulation (GDPR) and Data + Protection Act 2018 and covers all types of casework handled + by Planning and Environment Decisions Wales.{" "} +

+

It informs you about:

+
    +
  • + The specifics of the personal data handling practices + within Planning and Environment Decisions Wales (PEDW) + and what you can expect PEDW to do with the information + it collects.{" "} +
  • +
  • + What personal information we collect, how we collect it, + use it, store it, share it, and dispose of it. +
  • +
  • + Personal information provided as part of all PEDW + casework that you can make, or comment on, or is + provided by other Government Departments and + Organisations using any of Planning and Environment + Decisions Wales’ Websites or other means.{" "} +
  • +
  • + How we process any personal information including + special category data you have voluntarily provided to + us relating directly to you or any other third-party + individual's information you may have provided relating + to PEDW casework. +
  • +
  • + Planning and Environment Decisions Wales handle a + variety of casework types which are submitted via the + PEDW Portal and a variety of other methods e.g. Post, + Digital Transfer and Email. +
  • +
+

+ The PEDW Portal handles a range of casework (as documented + in Annex A).{" "} +

+

+ It also provides information about our processing of + personal information when dealing with complaints.{" "} +

+

+ This Privacy Notice may be updated and/or re-issued at any + time, and we will provide you with notice of any such + updates via the GOV.Wales and PEDW websites.{" "} +

+

+ At our discretion, we may notify you by providing a ‘just in + time’ notice to cover any additional processing activities + not mentioned in this document.{" "} +

+

Personal Data Definition

+

+ The UKGDPR and Data Protection Act 2018 applies to the + processing of personal data relating to an individual (data + subject) who is the identified or identifiable person to + whom the personal data relates: +

+
    +
  • + When the data subject can be directly or indirectly + identified from that information in combination with + other information.{" "} +
  • +
  • + Wholly or partly by automated means the processing other + than by automated means of personal data which forms + part of, or is intended to form part of, a filing + system. +
  • +
  • + Personal data only includes information relating to + natural persons who can be identified or who are + identifiable, directly from the information in question +
  • +
  • + Information about individuals acting as sole traders, + employees, partners, and company directors where they + are individually identifiable, and the information + relates to them as an individual may constitute personal + data. +
  • +
+

It does not include:

+
    +
  • + Where the identity of participants has been removed + (anonymised data). +
  • +
  • Information about a deceased person.
  • +
  • Companies or Public Authorities
  • +
+

+ There are “special categories” of personal data (SCD) (this + was known as “sensitive personal data” in previous data + protection law), these are more sensitive in nature and + require specific handling under the legislation. +

+

Policy commitment to openness and transparency

+

+ One of the fundamental values of Planning and Environment + Decisions Wales is its commitment to openness and + transparency in respect of our statutory role processing and + deciding planning and all other related casework.{" "} +

+

+ In many instances in particular planning processes there are + obligations that require us to share the information that we + receive, and in some instances for this to be made publicly + available. We apply a general presumption in favour of + disclosure, but individual decisions will take into account + the statutory obligations on us, including under data + protection legislation. +

+

Data Controllers

+

+ The Welsh Government (WG) is the Data Controller for data + protection purposes (Planning and Environment Decisions + Wales is a division of WG). The address for WG is; Welsh + Government, Cathays Park, Cardiff, CF10 3NQ. +

+

+ Planning and Environment Decisions Wales is responsible for + deciding how we collect, store, and process your personal + information. This Privacy Notice explains in plain English + how we collect, use, and share your data. +

+

+ Planning and Environment Decisions Wales have appointed a + Senior Data Protection Manager to oversee our compliance + with data protection legislation. If you have any questions + about this Privacy Notice or on how we handle your personal + information, or believe we have not complied with your + rights as a data subject, please contact the Senior Data + Protection Manager (SDPM): +

+

By email to *** or;

+

+ In writing addressed to the Senior Data Protection Manager + (SDPM) at: Temple Quay House 2 The Square Temple Quay + Bristol BS1 6PN +

+

+ WG’s Data Protection Officer (DPO) formally oversees data + protection compliance for Planning and Environment Decisions + Wales. You may also contact the WG DPO: +

+
    +
  • + By e-mail to dataprotection@communities.gov.uk., or; +
  • +
  • + In writing, addressed to the “Data Protection Officer” + at: Welsh Government, Cathays Park, Cardiff, CF10 3NQ +
  • +
+

+ How to make a complaint about the processing of your + personal information{" "} +

+

+ When we process your personal information, we will comply + with the Data Protection Legislation/Regulations.{" "} +

+

+ If you believe we have not complied with your rights as a + data subject, or our obligations, and you are you are + unhappy with the way Planning and Environment Decisions + Wales processes your personal information or you have any + questions about this Privacy Notice, or how we handle your + personal information, please contact us at ***. +

+

+ Also for independent advice about data protection matters + you have the right to escalate any complaint at any time to + the Information Commissioner’s Office (the UK supervisory + authority for Data Protection issues) please see below for + their postal address, contact telephone number and website + link: +

+

+ Information Commissioner's Office
+ 1 Wycliffe House +
+ Water Lane, Wilmslow
+ Cheshire
+ SK9 5AF +

+

+ Telephone helpline number:{" "} + + 0303 123 1113 + {" "} +
+ + https://ico.org.uk + +

+

1. Who are we?

+

+ Planning and Environment Decisions Wales is a division of + the Welsh Government. +

+
    +
  • + Under data protection legislation, Planning and + Environment Decisions Wales is responsible for deciding + how we collect, store, and process your personal + information. +
  • +
  • + Planning and Environment Decisions Wales deals with all + aspects of planning appeals, examinations of local plans + and any other planning-related and specialist casework.{" "} +
  • +
  • + These are undertaken by Planning and Environment + Decisions Wales or on behalf of relevant Welsh Minister.{" "} +
  • +
  • + For Community Infrastructure Levy Schedules (CILs), our + Inspectors are appointed by the Charging Authority to + examine their Charging Schedule. +
  • +
+

2. How do we collect personal information?

+
    +
  • + You will have directly provided information to us, if + you make or take part, in a planning appeal, application + or examination as part of our planning processes.{" "} +
  • +
  • + You may also provide us indirectly with special category + information where you are providing information + regarding your personal circumstance (which may also + include personal and special category of other data + subjects) that you want to be considered within the + planning processes.{" "} +
  • +
  • + Via our websites, e.g. connection data sent to our + webserver by your browser when you connect to our + website. +
  • +
+

3. Why do we process your personal information?

+

+ The information provided to us is used to determine appeals, + orders, applications and examinations. +

+

+ PEDW Portal terms and conditions separately provide + information about how we use personal information we may + collect when and the types of personal data we may collect + when carrying out our duties under the Town and Country + Planning 1990 Legislation and other legislation in relation + to other casework. +

+

PEDW PORTAL

+

+ The information provided to us via the PEDW Portal is used + to process Planning and Enforcement Appeals cases. +

+
    +
  • + Planning and Environment Decisions Wales will provide + guidance to making and taking part in casework types and + references to the statutory procedural rules that apply. +
  • +
  • + In accordance with the statutory rules, casework + representations are normally copied to the + appellant/applicant, the Local Authority (LA) and other + statutory parties to the case.{" "} +
  • +
  • + The LA is also required to make the casework + representations available to anyone who wishes to see + them.{" "} +
  • +
  • + As they provide context to your representation and allow + for the effective running of the case e.g. allowing + parties with similar viewpoints to identify each other + and agree joint presentation of views at any hearing or + inquiry), the representations that we receive are + normally exchanged between the parties without redaction + of content or contact information, subject to the + condition that Planning and Environment Decisions Wales + determines that it is both necessary and proportionate + to do so.{" "} +
  • +
  • + The information voluntarily provided can directly or + indirectly include personal information about other + individuals and can include special category data e.g. + medical information of other parties (please see Special + Category Data paragraph for further information). + Planning and Environment Decisions Wales will only + process such data where it is warranted and has the + appropriate legal basis to do so. +
  • +
  • + Please note that we do not accept anonymous or + confidential representations, however, you may comment + on a case and ask for your identity to be withheld. +
  • +
  • + If you request this then your representation will be + copied to the parties and provided to the Inspector + without your name and contact details, and your + representation may be given less weight by the Inspector + as a result. +
  • +
  • + In the event that you do not want to be identifiable + from your representation you should avoid including + information which may identify you. +
  • +
+

+ The appointed Inspector will consider the information + provided in the representations and reach their decision. + Their decision notice will provide the outcome for the case + and their reasoning +

+

The information we publish on the PEDW Portal

+

+ We publish summary details of cases which we process on the + PEDW Portal.{" "} +

+
    +
  • + The name of the appellant/applicant and the site + address.{" "} +
  • +
  • We also publish the final decision.
  • +
  • + We have a redaction policy and remove personal telephone + numbers, email addresses and signatures, and also + special category information (such as information about + an individual’s health). +
  • +
  • + If you have concerns about the publication of your + information, then you should discuss this with the Case + Officer in the first instance before submitting your + representation.{" "} +
  • +
  • + However, if you have further concerns relating to the + processing or handling of your personal data please + contact … – I assume WG DPO offices? +
  • +
  • + Although we may not publish every document or every + case, we have a statutory obligation to copy + representations to the relevant parties. The LA is + obliged to make them available to anyone who may wish to + see them so you may also want to check with them what + information they publish. +
  • +
+

Developments of National Significance Projects

+

+ For the Development of National Significance (“DNS”) under + Planning (Wales) Act 2015, which amends the Town and County + Planning Act 1990 (“the Act”), the Developments of National + Significance (Wales) Regulations 2016 (as amended) and + subsequent Regulations which requires us to:{" "} +

+
    +
  • + Make certain documents and information more widely + available to other participants, which may include + personal information, publicly available.{" "} +
  • +
  • + We do this by publishing documents and information on + the PEDW Portal. +
  • +
  • + If you have specific queries or concerns in respect of + this processing of your personal data, then please + contact the relevant case officer in the first instance + to discuss the guidance and your concerns. +
  • +
+

The Information we publish online

+
    +
  • Application documents
  • +
  • + Relevant Representations, Written Representations, and + other documents on the Developments of National + Significance website.{" "} +
  • +
  • + These published records will include the name of the + person that has submitted the document. +
  • +
  • + The Inspector or Inspectors appointed to carry out the + examination of an application{" "} +
  • +
  • + Before publishing any documents, we redact (or ‘blank + out’) certain personal details e.g. telephone numbers; + addresses; email addresses; signatures and sensitive + personal information (special category data).{" "} +
  • +
  • + We also redact any content that we consider to be + potentially libellous. +
  • +
  • + We don’t redact any personal information in documents + produced by applicants where this would hinder the + effective examination of an application e.g. Planning + and Environment Decisions Wales’s carrying out of its + public task. For example, certain documents that are + published which includes the names and addresses of + Interested Parties because the land or rights of those + Interested Parties would be affected by the Proposed + Development. +
  • +
  • + We also publish the Examining Authority’s Recommendation + Report and the decision of the Welsh Ministers, both of + which may contain personal information. +
  • +
+

+ Alternatively where our sponsor departments are responsible + for making the decision on the case, the Inspector will + produce a report. The Inspectors report and the + representations provided to them will then be sent to our + sponsor department. +

+

+ 4. Under what Legal Basis do we process your personal + information?{" "} +

+

+ It is necessary for us to process your personal information + to enable us to facilitate the planning process under the + Town and Country Planning 1990, the Planning and Compulsory + Purchase Act 2004, the Planning Act 2008, the Planning Act + Wales 2015 and various other legislations e.g. Highway Act + 1980, for all Planning Inspectorate Casework +

+

+ The lawful bases for processing are set out in Article 6 of + the UK GDPR. Planning and Environment Decisions Wales uses + the lawful basis detailed in: +

+

+ Article 6(1)(a)Where the customer has given their consent + for the processing of their personal data for a specified + purpose. +

+

+ Article 6(1)(c) For the processing of written + representations and documents, the lawful basis which + relates to processing that is necessary for compliance with + a legal obligation to which Planning and Environment + Decisions Wales is subject. +

+

+ Article 6(1)(e) For the processing required for the + performance of a task carried out in the public interest or + in exercise of official authority vested in Planning and + Environment Decisions Wales{" "} +

+

+ Article 9(2)(g) For the processing of Special Category Data + the lawful basis is where the processing of special + categories of personal data is necessary for reasons of + substantial public interest. It also relates to our public + task and the safeguarding of your fundamental rights, and + Schedule 1 part 2(6) of the DPA2018 which relates to + statutory and government.{" "} +

+

5. What personal data we process?

+

+ We collect and process a range of information about you + including:{" "} +

+
    +
  • + Any and all Personal Information you voluntarily provide + to us as part of one or more of the following processes: + planning and associated appeal types, Developments of + National Significance (DNS) Projects and Specialist + casework +
  • +
  • + The information can directly or indirectly include + personal information about other individuals and can + include special category data e.g. medical information + of other parties (please see Special Category Data + paragraph below for further information). +
  • +
  • Your name
  • +
  • Address
  • +
  • + Telephone Phone number (generally and if a participant + in a virtual event who joins by mobile phone or landline + phone) +
  • +
  • E-Mail address
  • +
  • IP address
  • +
  • Electronic and hard copy correspondence
  • +
  • Application documents
  • +
  • + Written submissions made by Interested Parties and + others involved in the planning appeal process +
  • +
  • Written notes
  • +
  • Hard copies of information
  • +
  • + Information provided by other Government Departments and + Organisations +
  • +
+

Special Category Data

+

+ Special category data defined at Article 9 UK GDPR as + personal data is: +

+
    +
  • Racial or ethnic origin
  • +
  • Political opinions
  • +
  • Religious or philosophical beliefs
  • +
  • Trade union membership
  • +
  • Genetic data
  • +
  • + Biometric data for the purpose of uniquely identifying a + natural person +
  • +
  • Data concerning health or
  • +
  • + Data concerning a natural person’s sex life or sexual + orientation +
  • +
+

+ This does not include personal data about criminal + allegations, proceedings or convictions, as separate rules + apply. For further information, please see the Information + Commissioners separate guidance on criminal offence data. +

+
    +
  • + Planning and Environment Decisions Wales will not + routinely request special category data as part of our + processing activities. However, these may be provided as + part of the process. Please make sure that when you + submit special category data it is necessary and + relevant to the case.{" "} +
  • +
  • + For certain cases we may need to collect some special + category data to the extent that this is relevant to the + case. This could for example include or relate to + information about status (family background, + relationships, and dependents), business and livelihood, + as well as accommodation, health and/or educational + needs.{" "} +
  • +
  • + The information voluntarily provided can directly or + indirectly include personal information about other + individuals and can include special category data e.g. + medical information of other parties. Planning and + Environment Decisions Wales will only process such data + where it is warranted and has the appropriate legal + basis to do so. Please make sure it is necessary and + relevant to the case when you provide it to Planning and + Environment Decisions Wales. +
  • +
+

+ We may process and store special categories of more + sensitive personal information relating to any individual + that is voluntarily provided by you as part of all the + Planning Casework Process that you wish to be considered. + e.g. Medical information relating to yourself, family member + and in some instances a child. The personal information + provided may be held on a computer system, or in a manual + record such as in a physical file. +

+

+

+ 6. What are the consequences of failing to provide + information? +

+
    +
  • + If you fail to provide us with information required to + validate your case then we may not be able to consider + it. We will normally let you know if this applies.{" "} +
  • +
  • + There is no statutory obligation on interested parties + to participate in a case. +
  • +
  • + If you are an appellant/agent and fail to provide the + statutory information needed to validate your case + within the set time periods, then we will not be able to + consider your case and it may be deemed invalid.{" "} +
  • +
  • + If you are an applicant and you fail to provide the + statutory information needed to consider your + application, we may not be able to accept your + application for Examination under s55 of the Planning + Act 2008.{" "} +
  • +
  • + For Local Plans the Inspector is required to examine + whether the plan is sound and legally compliant and in + doing so they must consider any representations and + other documentation submitted by the LA.{" "} +
  • +
  • + Those participating in a local plan examination should + note that their representations will be ‘made available’ + by the LA in line with the Regulations including + publication on the LA’s website. As a Data Controller + the LA may or may not redact some or all personal + information included in representations and other + documentation which is ‘made available’. To ensure an + open and fair examination, it is important that the + Inspector and all other participants in the examination + process know who has made representations on the plan + and the content of those representations. +
  • +
  • + There is no statutory obligation on an interested party + to participate in a Local plan examination or to provide + any particular information if they choose to not do so. +
  • +
  • + If you are another Interested Party and you fail to + provide your name and/or the name of the organisation or + group that you represent, we may be unable to accept + your representation.{" "} +
  • +
  • + We do not accept anonymous or confidential + representations for any types of Planning Inspectorate + casework +
  • +
+

7. Children’s Information

+

+ Planning and Environment Decisions Wales do not provide + services directly to children or proactively collect their + personal information. However, we are sometimes voluntarily + given information about children as part of the appeals, + applications, orders & examination processes. This can + include special category data provided in representations + from all aspects of casework.{" "} +

+

8. How long we keep your personal data?

+

+ We will retain our personal information only for as long as + is necessary to deliver our services and to meet our legal + and regulatory obligations. We maintain specific records + management and retention policies and procedures, so that + personal information is reviewed and deleted after a + reasonable time with the following criteria:{" "} +

+
    +
  • + The purpose or business activity requiring the + processing of your information.{" "} +
  • +
  • + Whether we have any legal obligation to continue to + process your information. +
  • +
  • + Whether we have any legal basis under data protection + law to continue to process your information (e.g. Public + Task). +
  • +
  • + Any relevant agreed sector practices on how long + information should be retained. +
  • +
  • + For the purpose of defending against legal and + regulatory challenges. +
  • +
+

9. Who do we share your data with?

+

+ In accordance with the statutory rules and relevant + guidance. Casework representations are normally copied to:{" "} +

+
    +
  • Appellants/Applicants
  • +
  • Interested Parties
  • +
  • Local Authorities
  • +
  • + Local Authorities are also responsible to make the + casework representations available to anyone who wishes + to see them. +
  • +
  • External Programme Officers
  • +
  • + Members of the Public (Worldwide) when published on our + website +
  • +
  • Other Statutory Parties to the case
  • +
  • + Other Statutory Parties such as external Regulators.{" "} +
  • +
  • + We provide your information to the relevant Welsh + Minister who make the final decision on the applications + and appeals we examine via: +
  • +
  • + The Department for Business, Energy, and Industrial + Strategy +
  • +
  • The Department for Transport
  • +
  • + The Department for Environment, Food and Rural Affairs + and +
  • +
  • + The Ministry of Housing, Communities and Local + Government. +
  • +
  • + For fairness to the other parties interested in a case, + we need to share your representations as indicated + above. It also provides context and allows for the + effective running of our casework processes e.g. + allowing parties with similar viewpoints to identify + each other and agree joint presentation of views at any + hearing or inquiry, the representations that we receive + are therefore exchanged between the parties, subject to + the condition that Planning Inspectorate determine that + it is both necessary and proportionate, without + redaction of content or contact information. We will + treat your information in confidence if you request it, + however you should be aware that your representation may + be given less weight by the Inspector. +
  • +
+

+ The appointed Inspector or person will consider the + information provided in the representations and reach their + decision. Their decision notice will provide the outcome for + the case and their reasoning for this. +

+

+ Alternatively, where Welsh Ministers, other Government + Departments and Organisations are responsible for making the + decision on the case, the Inspector will produce a + recommendation report. The Inspector’s report and the + representations are provided to them. +

+

+ In some circumstances, such as under a court order, we are + legally obliged to share information. We may also need to + share your personal information with: +

+
    +
  • + Other government agencies, departments, and civil + servants +
  • +
  • Our or other legal representatives
  • +
  • Auditors, and
  • +
  • Regulators or to otherwise comply with the law.
  • +
+

+ We may use third party service providers to process + information (see Annex B for full list) on our behalf in + respect of our casework e.g. the provision of information + technology services). Where we do so, contracts will be put + in place to ensure that your personal information is + processed only as instructed by us (unless otherwise + required by law), and that appropriate measures are in place + to ensure the security of information. +

+

+ Additionally, we are required under the Public Records Act + 1958 (as amended) to transfer records to the National + Archives (TNA) for permanent preservation. Some of these + records may include the personal data of our customers.{" "} +

+

Who will have access to your data?

+

+ We are committed to doing all that we can to keep your data + secure. We have set up systems and processes to prevent + unauthorised access or disclosure of your data e.g. we + protect your data using varying levels of encryption, and + relevant access controls are in place to effectively manage + and handle your personal information.{" "} +

+

+ Where third party service providers are used, contracts and + or licences are put in place to ensure that your personal + information is processed only as instructed by us (unless + otherwise required by law), and that appropriate measures + are in place to ensure the security of that information. +

+

+ When making an appeal/application or commenting on any of + our casework, you should keep in mind that in some instances + there are statutory requirements on us to make this + information more widely available.{" "} +

+

+ This will normally be set out in our guidance, but if you + have specific queries or concerns in respect of a particular + case then please contact the case officer who, if necessary, + will discuss the matter with … - process to be established, + can this be internal to PEDW or should it be sent up the + line?. +

+

10. Do we use any data processors?

+

+ Yes - a list of our current data processors is provided at + Annex B. +

+

11. Your rights in relation to this processing?

+

+ Under data protection law, you have rights regarding the + processing of your personal data. The rights available to + you depend on our reason for processing your information. + You are not required to pay any charge for exercising your + rights. We have one month to respond to you.{" "} +

+

Your rights under UK GDPR are the right:

+
    +
  • To be informed
  • +
  • Of access
  • +
  • To rectification
  • +
  • To erasure
  • +
  • To restrict processing
  • +
  • To data portability
  • +
  • To object
  • +
  • + Rights in relation to automated decision making and + profiling. (Planning and Environment Decisions Wales + does not use automated decision making or profiling). +
  • +
+

+ Not all of these rights are absolute, which means that they + may only apply in certain situations and may be subject to + legal exceptions and exemptions.{" "} +

+

+ Further information regarding your rights can be found on + the ICO Website.{" "} +

+

12. Registering for an Account for PEDW Portal

+

+ PEDW Portal users must create an account with us in order to + submit appeals or any representations. Registering with us + will enable you to access our full range of appeals + services, including a personal homepage.{" "} +

+

+ Also, the best way to comment on an existing case is to + register with us first as that makes it easier to track + cases and submit comments.{" "} +

+ {/*

Guest Log in Facility on the PEDW Portal

+

+ We have a guest log in facility if you do wish to submit + comments without creating an account; simply search for + your case and click on the ‘Make Representation’ button. +

*/} +

+ 13. Freedom of Information (FOIs) Requests, Subject Access + Requests (SARs) and Environment Information Regulations + (EIRs){" "} +

+

+ Planning and Environment Decisions Wales is a public body + and we have a legal duty to respond to requests made under + these legislations. This will sometimes mean that your + personal data could be used for the purpose of responding to + these requests. In the event that you are an applicant + making a request for information under one of these access + regimes we will use your information for the purpose of + complying with such a request. This will include information + for the purpose of corresponding with you and in order to + send our response. If you make a request for your own + personal data (subject access request) we may also require + evidence to verify your identity. +

+

+ 14. Annex A: Types of Casework undertaken by Planning and + Environment Decisions Wales{" "} +

+

+ A full list of Appeals, Applications, Examinations and + Orders that this Privacy Notice covers: all types of PEDW + casework. +

+
+
+
+
+

+ + Provided/Made Available via Website & + Other Means + +

+
+
+

+ Casework Type +

+
+
+

+ Purpose of Processing +

+
+
+
+
+

+ Welsh Appeals via the Appeals portal (PEDW + Portal)/Email/Post/External Third Parties +

+
+
+

Appeals

+
+
+

Enforcement Listed Building Notice

+
+
+
+
+

+ Welsh Appeals via the Appeals portal (PEDW + Portal)/Email/Post/External Third Parties +

+
+
+

Appeals

+
+
+

Enforcement Conservation Area Notice

+
+
+
+
+

+ Welsh Appeals via the Appeals portal (PEDW + Portal)/Email/Post/External Third Parties +

+
+
+

Appeals

+
+
+

Enforcement Notice

+
+
+
+
+

+ Welsh Appeals via the Appeals portal (PEDW + Portal)/Email/Post/External Third Parties +

+
+
+

Appeals

+
+
+

+ Enforcement Lawful Development Certificate +

+
+
+
+
+

+ Welsh Appeals via the Appeals portal (PEDW + Portal)/Email/Post/External Third Parties +

+
+
+

Appeals

+
+
+

Planning Advert Discontinuance

+
+
+
+
+

+ Welsh Appeals via the Appeals portal (PEDW + Portal)/Email/Post/External Third Parties +

+
+
+

Appeals

+
+
+

Planning Advertisement Appeal

+
+
+
+
+

+ Welsh Appeals via the Appeals portal (PEDW + Portal)/Email/Post/External Third Parties +

+
+
+

Appeals

+
+
+

Planning Commercial Appeal Service (CAS)

+
+
+
+
+

+ Welsh Appeals via the Appeals portal (PEDW + Portal)/Email/Post/External Third Parties +

+
+
+

Appeals

+
+
+

Planning Householder Appeal Service (HAS)

+
+
+
+
+

+ Welsh Appeals via the Appeals portal (PEDW + Portal)/Email/Post/External Third Parties +

+
+
+

Appeals

+
+
+

Prior Approval

+
+
+
+
+

+ Welsh Appeals via the Appeals portal (PEDW + Portal)/Email/Post/External Third Parties +

+
+
+

Appeals

+
+
+

Planning Section 106 Agreement

+
+
+
+
+

+ Welsh Appeals via the Appeals portal (PEDW + Portal)/Email/Post/External Third Parties +

+
+
+

Appeals

+
+
+

+ Planning Listed Building Consent & + Conservation Area Consent Appeal +

+
+
+
+
+

+ Welsh Appeals via the Appeals portal (PEDW + Portal)/Email/Post/External Third Parties +

+
+
+

Appeals

+
+
+

Non-Validation Appeals

+
+
+
+
+

+ Welsh Appeals via the Appeals portal (PEDW + Portal)/Email/Post/External Third Parties +

+
+
+

Applications made during PEDW processing

+
+
+

Costs Decisions

+
+
+
+
+

+ Welsh Appeals via the Appeals portal (PEDW + Portal)/Email/Post/External Third Parties +

+
+
+

Appeals

+
+
+

Planning Appeal

+
+
+
+
+

+ Developments of National Significance (DNS) + Website for DNS Case Types or  + Email/Post/External Third Parties +

+
+
+

Applications

+
+
+

+ Development of National Significance + Applications +

+
+
+
+
+

+ Email/Post/External Third + Parties   +

+
+
+

Appeals

+
+
+

Specialist Purchase Notices

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Appeals

+
+
+

+ Sustainable Drainage System (SUDS) Appeals +

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Appeals

+
+
+

+ Community Infrastructure Levy (CIL) Appeals +

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Appeals

+
+
+

Specialist High Hedges

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Appeals

+
+
+

Specialist Tree Preservation Order

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Appeals

+
+
+

Specialist Tree Replacement Notices

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Appeals

+
+
+

Environmental Permitting Regulations

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Appeals

+
+
+

SSSI Appeals

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Appeals

+
+
+

Contaminated Land

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Appeals

+
+
+

Marine Licensing

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Appeals

+
+
+

Waste Management

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Appeals

+
+
+

Water Abstraction

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Appeals

+
+
+

Hazardous Substances Appeals

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Appeals

+
+
+

Notice Appeals

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Appeals

+
+
+

Specialist Hedgerows

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Appeals

+
+
+

Restriction Appeals 

+
+
+
+
+

Email/Post/External Third Parties Appeals

+
+
+

Specialist

+
+
+

Rights of Way - Schedule 14

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Applications

+
+
+
    +
  • + Specialist Common Land under the below + legislations: +
  • +
  • Commons Act 2006: Section 16
  • +
  • Commons Act 2006: Section 38
  • +
  • Commons Act 2006: Part 1
  • +
  • + Acquisition of Land Act 1981: Section 19 + and Schedule 1 +
  • +
  • National Trust Act 1971: Section 23
  • +
  • + Section 15 of the New Parishes Measure + 1943 +
  • +
  • + Section 193 of the Law of Property Act + 1925 +
  • +
  • + Schemes of management under the Commons + Act 1899 +
  • +
  • + Section 9 of the Countryside Act 1968 +
  • +
  • + Section 9 of the Countryside Act 1968 +
  • +
  • Inclosure Acts
  • +
  • + Various local Acts and Provisional Order + Confirmation Acts (which includes + levying of stint rates) +
  • +
+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Applications

+
+
+

+ Specialist Rights of Way - Schedule 14 + Directions +

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Applications

+
+
+

Specialist Village Green

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Applications

+
+
+

S36 Applications (Electricity Act 1989)

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Applications - Recommendations

+
+
+

Drought

+

Permits

+

 

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Applications

+
+
+

+ Specialist Necessary Wayleaves and Tree + Lopping +

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+
+
+

Applications

+
+
+

Water Abstraction

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Examinations

+
+
+

Water Resource Management Plans

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Examinations

+
+
+

Local Development Plans

+
+
+
+
+

+ Email/Post/External Third + Parties      +

+

 

+
+
+

Examinations

+
+
+

Community Infrastructure Levy (CIL)

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

Harbour Revision Orders

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

Drought Orders

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

Transport & Works Act Orders

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

Highways Act Orders

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

+ Local Authority (LA) Traffic Regulation + Orders +

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

Ferry and Bridge Toll Orders

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

Cycle Tracks Orders

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

Stopping Up Orders

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

+ Department for Transport (WG) Compulsory + Purchase Order (CPO) +

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

Side Road Orders

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

+ Department for Environment, Food & Rural + Affairs (DEFRA ) Compulsory Purchase Order + (CPO) +

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

+ Department for Environment, Food & Rural + Affairs (DEFRA ) Compulsory Purchase Order + (CPO) +

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

+ Review of Old Mineral Permissions (ROMPs) + and Ad-hoc Minerals +

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

Adverts Welsh Ministers (WM) Cases

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

+ Modifications and Revocation of Planning + Permission +

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

+ Business, Energy & Industrial Strategy + (BEIS) Compulsory Purchase Orders +

+
+
+
+
+

+ Email/Post/External Third Parties +     +

+

 

+
+
+

Orders

+
+
+

+ Ministry of Housing, Communities & Local + Government (MHCLG) Planning Compulsory + Purchase Orders +

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

Orders

+
+
+
    +
  • + Rights of Way Orders under the below + Legislations: +
  • +
  • Wildlife and Countryside Act 1981
  • +
  • Highways Act 1980
  • +
  • + Town & Country Planning Act 1990 +
  • +
  • Acquisition of Land Act 1981
  • +
+
+
+
+
+

Email/Post/External Third Parties

+
+
+

+ Various - Examinations & Orders & + Applications +

+
+
+

Welsh Government (WG) Ad-hoc Requests

+
+
+
+
+

Email/Post/External Third Parties

+
+
+

+ Various - Examinations & Orders & + Applications +

+
+
+

Department for Transport (DfT) Airports

+
+
+
+
+ +

15. Annex B – List of Data Processors

+

Data Processor List

+ +
+
+
+
+

+ Data Processor +

+
+
+

+ Purpose +

+
+
+
+
+ +
+
+
+

GoPro

+
+
+

Platform for Planning Appeal Processing

+
+
+
+
+ +
+
+
+

UK.Gov Notify

+
+
+

Communications with External Parties

+
+
+
+
+
+
+
+

Google Analytics

+
+
+

Monitoring Web Activity

+
+
+
+
+
+
+
+ ); +} diff --git a/components/footerDocs/tandc_cy.js b/components/footerDocs/tandc_cy.js new file mode 100644 index 00000000..51471874 --- /dev/null +++ b/components/footerDocs/tandc_cy.js @@ -0,0 +1,19 @@ +import Link from "next/link"; +import { useRouter } from "next/router"; +import useTranslation from "next-translate/useTranslation"; + +export default function TandCCY() { + let { t } = useTranslation(); + + const router = useRouter(); + const { locale } = router; + return ( +
+
+

+ T and c CY +

+
+
+ ); +} diff --git a/components/footerDocs/tandc_en.js b/components/footerDocs/tandc_en.js new file mode 100644 index 00000000..d98e5a75 --- /dev/null +++ b/components/footerDocs/tandc_en.js @@ -0,0 +1,19 @@ +import Link from "next/link"; +import { useRouter } from "next/router"; +import useTranslation from "next-translate/useTranslation"; + +export default function TandCEN() { + let { t } = useTranslation(); + + const router = useRouter(); + const { locale } = router; + return ( +
+
+

+ T and c +

+
+
+ ); +} diff --git a/components/myportal/searchcases.js b/components/myportal/searchcases.js index 0668b7e5..941b27b1 100644 --- a/components/myportal/searchcases.js +++ b/components/myportal/searchcases.js @@ -24,41 +24,46 @@ const RenderTextfield = ({ input, hint1, hint2, + hint3, meta: { touched, error }, ...custom }) => { return ( <> -
+
- -
- - {hint2} CAS-00009-W8N6W4 - +
    +
  • {hint2}
  • +
  • {hint3}
  • +
- {touched && error && ( - - Error:{" "} - {error} - - )} - +
+ + {touched && error && ( + + + Error: + {" "} + {error} + + )} +
); @@ -121,7 +126,10 @@ let CaseSearch = (props) => { aria-describedby="basicSearch-hint" hint1={t("myportal:searchcases-card-search-hint")} hint2={t( - "myportal:searchcases-card-search-example-label" + "myportal:searchcases-card-search-example-label-1" + )} + hint3={t( + "myportal:searchcases-card-search-example-label-2" )} /> diff --git a/components/myportal/topthree.js b/components/myportal/topthree.js index 408b07dd..a77252e8 100644 --- a/components/myportal/topthree.js +++ b/components/myportal/topthree.js @@ -218,16 +218,16 @@ const TopThree = (props) => { let noRecordsLabel = ""; switch (topThreeType) { case "watchedCases": - noRecordsLabel = "You are not watching any cases"; + noRecordsLabel = t("myportal:norecords-watched-cases"); break; case "myRepresentations": - noRecordsLabel = "You have no representations"; + noRecordsLabel = t("myportal:norecords-representations"); break; case "myCases": - noRecordsLabel = "You have no cases"; + noRecordsLabel = t("myportal:norecords-cases"); break; case "awaitingSubmission": - noRecordsLabel = "You have no awaiting submissions"; + noRecordsLabel = t("myportal:norecords-awaiting-submissions"); break; } return ( diff --git a/components/privacy.js b/components/privacy.js index 2941eb0b..3b6c6d82 100644 --- a/components/privacy.js +++ b/components/privacy.js @@ -1,7 +1,8 @@ import Link from "next/link"; import { useRouter } from "next/router"; import useTranslation from "next-translate/useTranslation"; - +import PrivacyEN from "./footerDocs/privacy_en"; +import PrivacyCY from "./footerDocs/privacy_cy"; const PrivacyStatement = (props) => { let { t } = useTranslation(); @@ -16,14 +17,7 @@ const PrivacyStatement = (props) => { id="main-content" role="main" > -
-
-

- Privacy Statement -

-

bkah blah

-
-
+ {router.locale != "en" ? : } ); }; diff --git a/components/tandc.js b/components/tandc.js index 3266e1d8..4ce542e5 100644 --- a/components/tandc.js +++ b/components/tandc.js @@ -1,6 +1,8 @@ import Link from "next/link"; import { useRouter } from "next/router"; import useTranslation from "next-translate/useTranslation"; +import TandCEN from "./footerDocs/tandc_en"; +import TandCCY from "./footerDocs/tandc_cy"; const TermsAndConditionsStatement = (props) => { let { t } = useTranslation(); @@ -16,14 +18,7 @@ const TermsAndConditionsStatement = (props) => { id="main-content" role="main" > -
-
-

- {t("common:footer-terms-conditions-link-label")} -

-

bkah blah

-
-
+ {router.locale != "en" ? : } ); }; diff --git a/i18n.js b/i18n.js index 235a7ade..7191ff53 100644 --- a/i18n.js +++ b/i18n.js @@ -33,6 +33,7 @@ module.exports = { "/dnsdetails": ["case", "search", "dnsCommon", "dnsApplications"], "/help/cookies": ["common", "cookies"], "/account/register": ["common", "account"], + "/account/personaldetails": ["common", "search"], "/details-about-cookies": ["common", "cookies"], "/terms-and-conditions": ["common"], }, diff --git a/locales/cy/account.json b/locales/cy/account.json index ca0bd367..bcb31768 100644 --- a/locales/cy/account.json +++ b/locales/cy/account.json @@ -1,7 +1,7 @@ { "register-new-account-heading": "Creu cyfrif newydd", - "register-new-account-status-created-label": "Nid yw'ch cyfrif wedi creu", - "register-new-account-status-not-created-label": "Mae eich cyfrif wedi'i greu", + "register-new-account-status-created-label": "Mae eich cyfrif wedi'i greu", + "register-new-account-status-not-created-label": "Nid yw'ch cyfrif wedi creu", "register-new-account-checking-label": "Gwirio am gyfrif...", "help-heading": "Help", "help-sub-heading-1": "Cwmnïau neu gyflwyniadau gan fwy nag un unigolyn (grwpiau)", diff --git a/locales/cy/common.json b/locales/cy/common.json index 02e6139e..d717e759 100644 --- a/locales/cy/common.json +++ b/locales/cy/common.json @@ -5,6 +5,7 @@ "gov-wales-label": "LLYW.CYMRU", "service-description": "Mae'r gwasanaeth hwn yn cael ei ddatblygu i gefnogi apeliadau a cheisiadau ar-lein.", "service-name": "Gwaith Achos", + "service-home-url": "https://gwaithcynllunio.gwasanaeth.llyw.cymru", "service-name-breadcrumb": "Hafan", "new-service-beta": "Mae hwn yn wasanaeth newydd", "breadcrumb-back-link": "Yn ôl", diff --git a/locales/cy/myportal.json b/locales/cy/myportal.json index 240792a3..60cbc88f 100644 --- a/locales/cy/myportal.json +++ b/locales/cy/myportal.json @@ -7,10 +7,11 @@ "makenewappeal-card-paragraph-two": "Wedi i chi glicio'r botwm 'gwneud apêl newydd' isod, cewch eich arwain drwy broses i'ch helpu i ddewis y math cywir o apêl.", "makenewappeal-card-button-label": "Gwneud apêl newydd", "mycases-card-title": "Fy achosion", - "searchcases-card-title": "Chwilio am ddogfennau apêl", - "searchcases-card-search-hint": "Chwiliwch drwy roi cyfeirnod 7 digid yr achos", - "searchcases-card-search-example-label": "Enghraifft:", - "searchcases-card-button": "Cyflwyno Chwiliad", + "searchcases-card-title": "Chwilio apeliadau a Datblygiadau o Arwyddocâd Cenedlaethol", + "searchcases-card-search-hint": "Defnyddiwch gyfeimod yr achos neu deitl DAC i chwilio. Bydd cyfeirnod yr achos yn debyg i un o'r canlynol:", + "searchcases-card-search-example-label-1": "APP-A12345-A-21-1234567", + "searchcases-card-search-example-label-2": "CAS-12345-A1B2C3", + "searchcases-card-button": "Cyflwyno chwiliad", "searchcases-card-advanced-link": "Chwiliad uwch", "searchcases-validation-required": "Angenrheidiol", "searchcases-validation-minlength": "Rhaid bod yn 4 nod neu fwy", @@ -25,5 +26,9 @@ "yourdetails-card-link": "Gweld manylion eich cyfrif", "changepassword-card-title": "Newid eich cyfrinair", "changepassword-card-paragraph-one": "Gallwch chi newid eich cyfrinair", - "changepassword-card-link": "Diweddarwch eich cyfrinair" + "changepassword-card-link": "Diweddarwch eich cyfrinair", + "norecords-cases": "Nid oes gennych unrhyw achosion", + "norecords-representations": "Nid oes gennych unrhyw sylwadau", + "norecords-watched-cases": "Nid ydych yn gwylio unrhyw achosion", + "norecords-awaiting-submission": "Nid oes gennych unrhyw gyflwyniadau sy'n aros" } \ No newline at end of file diff --git a/locales/en/account.json b/locales/en/account.json index d5b11a32..6ec50ee2 100644 --- a/locales/en/account.json +++ b/locales/en/account.json @@ -1,7 +1,7 @@ { "register-new-account-heading": "Create a new account", - "register-new-account-status-created-label": "Your account has not created", - "register-new-account-status-not-created-label": "Your account has been created", + "register-new-account-status-created-label": "Your account has created", + "register-new-account-status-not-created-label": "Your account has not been created", "register-new-account-checking-label": "Checking for account...", "help-heading": "Help", "help-sub-heading-1": "Companies or submissions by more than one individual (groups)", diff --git a/locales/en/common.json b/locales/en/common.json index a992be27..fd520e90 100644 --- a/locales/en/common.json +++ b/locales/en/common.json @@ -5,6 +5,7 @@ "gov-wales-label": "GOV.WALES", "service-description": "This service is being developed to support online appeals and applications.", "service-name": "Casework", + "service-home-url": "https://planningcasework.service.gov.wales", "service-name-breadcrumb": "Home", "new-service-beta": "This is a new service", "breadcrumb-back-link": "Back", diff --git a/locales/en/myportal.json b/locales/en/myportal.json index 4af3f07c..a50b8bcd 100644 --- a/locales/en/myportal.json +++ b/locales/en/myportal.json @@ -7,9 +7,10 @@ "makenewappeal-card-paragraph-two": "Once you click the 'make a new appeal' button below you will be guided through a process to help you select the correct appeal type", "makenewappeal-card-button-label": "Make a new appeal", "mycases-card-title": "My cases", - "searchcases-card-title": "Appeal documentation search", - "searchcases-card-search-hint": "Search by entering the 7 digit case reference number", - "searchcases-card-search-example-label": "Example", + "searchcases-card-title": "Search appeals and Developments of National Significance", + "searchcases-card-search-hint": "Use the case reference or DNS title to search. Case reference will be similar to one of the following:", + "searchcases-card-search-example-label-1": "APP-A12345-A-21-1234567", + "searchcases-card-search-example-label-2": "CAS-12345-A1B2C3", "searchcases-card-button": "Submit Search", "searchcases-card-advanced-link": "Advanced Search", "searchcases-validation-required": "Required", @@ -25,5 +26,9 @@ "yourdetails-card-link": "View your account details", "changepassword-card-title": "Change your password", "changepassword-card-paragraph-one": "You can change your password", - "changepassword-card-link": "Update your password" + "changepassword-card-link": "Update your password", + "norecords-cases": "You have no cases", + "norecords-representations": "You have no representations", + "norecords-watched-cases": "You are not watching any cases", + "norecords-awaiting-submission": "You have no awaiting submissions" } \ No newline at end of file diff --git a/pages/500.js b/pages/500.js new file mode 100644 index 00000000..974cdb3d --- /dev/null +++ b/pages/500.js @@ -0,0 +1,52 @@ +import Link from "next/link"; +import Head from "next/head"; +import Header from "../components/header"; +import Banner from "../components/banner"; +import CookieBanner from "../components/cookieBanner"; +import useTranslation from "next-translate/useTranslation"; +import Footer from "../components/footer"; + +function Error({ statusCode }, props) { + let { t, lang } = useTranslation(); + const { footerLinks, pages } = props; + + return ( +
+ + + {t("case:page-title")} - {t("common:service-name")} + + +
+ +
+
+
+
+
+

{t("common:error-page-title")}

+

+ {statusCode + ? `An error ${statusCode} occurred on server` + : t("common:error-page-message")} +

+ + Go back home + +
+
+
+
+
+
+
+ ); +} + +Error.getInitialProps = ({ res, err }) => { + const statusCode = res ? res.statusCode : err ? err.statusCode : 404; + console.log(res, err); + return { statusCode }; +}; + +export default Error; diff --git a/pages/_document.js b/pages/_document.js index 85f82767..ee61194d 100644 --- a/pages/_document.js +++ b/pages/_document.js @@ -9,7 +9,7 @@ class MyDocument extends Document { let useGATracking = false; - // remove this block when not need after softlaunch + //remove this block when not need after softlaunch let hasBasicAuth = typeof process.env.BASIC_AUTH_CREDENTIALS != "undefined"; diff --git a/pages/account/register.js b/pages/account/register.js index d77a917d..3981a80b 100644 --- a/pages/account/register.js +++ b/pages/account/register.js @@ -61,19 +61,26 @@ const Home = (props) => { ) : (

- {props.accountDetails.accCr != - "false" - ? props.accountDetails - .accCr == "exists" - ? t( - "account:register-new-account-status-not-created-label" - ) - : t( - "account:register-new-account-status-created-label" - ) - : t( + {console.log( + props.accountDetails.accCr + )} + + {props.accountDetails.accCr === + false + ? t( "account:register-new-account-checking-label" - )} + ) + : props.accountDetails + .accCr === "created" + ? t( + "account:register-new-account-status-created-label" + ) + : props.accountDetails + .accCr === "exists" + ? t( + "account:register-new-account-status-not-created-label" + ) + : "wewer"}

)} async ({ query, req, res }) => { let token = await getToken(); + + var tokenIssuedAt = new Date(); + var tokenExpiryTimeAt = new Date(); + tokenExpiryTimeAt.setSeconds( + tokenExpiryTimeAt.getSeconds() + token.expires_in + ); + + console.log( + "token issued:", + tokenIssuedAt.toUTCString(), + "\n", + "token expires:", + tokenExpiryTimeAt.toUTCString() + ); + console.log(token); token = token.access_token; const [appealTypeData, lpaData] = await Promise.all([ diff --git a/pages/api/proxy/[...route].js b/pages/api/proxy/[...route].js index 715ea838..c575e5bc 100644 --- a/pages/api/proxy/[...route].js +++ b/pages/api/proxy/[...route].js @@ -70,28 +70,38 @@ function checkProxyPath(queryPath) { } export default async function ApiProxy(req, res) { - var data = JSON.stringify(req.body); + var data = req.body; //JSON.stringify(req.body); var accessToken = await getToken(); accessToken = accessToken.access_token; const isDocument = req.url.indexOf("/documents/download") > -1; - let hashCheckPath = isDocument - ? req.url.split("?hash=")[0] - : req.url.split("&hash=")[0]; - let hashCheckValue = isDocument - ? req.url.split("?hash=")[1] - : req.url.split("&hash=")[1]; + let hashCheckPath = + req.url.indexOf("?hash=") > -1 + ? req.url.split("?hash=")[0] + : req.url.split("&hash=")[0]; + + let hashCheckValue = + req.url.indexOf("?hash=") > -1 + ? req.url.split("?hash=")[1] + : req.url.split("&hash=")[1]; + let hashFromRequest = checkProxyPath(hashCheckPath); + let proxyDestinationURL = + PROXY_RELAY_URL + + (req.url.indexOf("?hash=") > -1 + ? req.url.split("?hash=")[0] + : req.url.split("&hash=")[0] + ).split("/api/proxy/")[1] + + (req.url.indexOf("?hash=") > -1 + ? "?hash=" + req.url.split("?hash=")[1] + : "&hash=" + req.url.split("&hash=")[1]); + var configNoData = { method: req.method, //url: PROXY_RELAY_URL + updateFormCollection + "(" + incidentId + ")", - url: - PROXY_RELAY_URL + - req.url.split("&hash=")[0].split("/api/proxy/")[1] + - "&hash=" + - req.url.split("&hash=")[1], + url: proxyDestinationURL, headers: { "OData-MaxVersion": "4.0", "OData-Version": "4.0", @@ -105,11 +115,7 @@ export default async function ApiProxy(req, res) { var config = { method: req.method, - url: - PROXY_RELAY_URL + - req.query.route[0] + - "&hash=" + - req.url.split("&hash=")[1], + url: proxyDestinationURL, headers: { "OData-MaxVersion": "4.0", "OData-Version": "4.0", @@ -145,7 +151,9 @@ export default async function ApiProxy(req, res) { hashCheckPath.indexOf("/download") > 0 ? true : false; axios( - req.method == "GET" + req.method == "PATCH" + ? config + : req.method == "GET" ? hasDocument ? configDocument : configNoData @@ -177,6 +185,10 @@ export default async function ApiProxy(req, res) { }); }); } else { + console.log( + "no matching hash", + hashCheckValue + " - " + hashFromRequest + ); res.status(405).end(); return resolve(); } diff --git a/pages/dnsapplications.js b/pages/dnsapplications.js index f1651e3e..3174cdab 100644 --- a/pages/dnsapplications.js +++ b/pages/dnsapplications.js @@ -123,7 +123,28 @@ export const getServerSideProps = wrapper.getServerSideProps( async ({ query, req, res }) => { console.log("query-", query); + res.setHeader( + "Cache-Control", + "public, s-maxage=10, stale-while-revalidate=59" + ); + let token = await getToken(); + + var tokenIssuedAt = new Date(); + var tokenExpiryTimeAt = new Date(); + tokenExpiryTimeAt.setSeconds( + tokenExpiryTimeAt.getSeconds() + token.expires_in + ); + + console.log( + "token issued:", + tokenIssuedAt.toUTCString(), + "\n", + "token expires:", + tokenExpiryTimeAt.toUTCString() + ); + console.log(token); + token = token.access_token; let searchResultsObj = await getBasicDNSSearch(token); diff --git a/pages/searchresults.js b/pages/searchresults.js index 51a07f71..3cda8515 100644 --- a/pages/searchresults.js +++ b/pages/searchresults.js @@ -122,6 +122,22 @@ export const getServerSideProps = wrapper.getServerSideProps( console.log("query-", query); let token = await getToken(); + + var tokenIssuedAt = new Date(); + var tokenExpiryTimeAt = new Date(); + tokenExpiryTimeAt.setSeconds( + tokenExpiryTimeAt.getSeconds() + token.expires_in + ); + + console.log( + "token issued:", + tokenIssuedAt.toUTCString(), + "\n", + "token expires:", + tokenExpiryTimeAt.toUTCString() + ); + console.log(token); + token = token.access_token; let searchResultsObj = await getBasicSearch(token, query.q); diff --git a/styles/sass/welshgov/_application.scss b/styles/sass/welshgov/_application.scss index d6490458..7ea72381 100644 --- a/styles/sass/welshgov/_application.scss +++ b/styles/sass/welshgov/_application.scss @@ -717,6 +717,15 @@ textarea, // background: #f3f2f1; // } +.annex { + .govuk-summary-list__value { + width: 33.333333%; + @media screen and (max-width: 900px) { + width: 100%; + } + } +} + .govuk-summary-list__key, .govuk-summary-list__value, .govuk-summary-list__actions {