From e00d614067b3b7a5ef6484b706f2cbafd6a0cc25 Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Thu, 16 Jan 2025 07:51:13 +0000 Subject: [PATCH 01/11] questionnaire defect 58 --- components/case/representation/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/case/representation/index.js b/components/case/representation/index.js index 04bf9c92..caabb42b 100644 --- a/components/case/representation/index.js +++ b/components/case/representation/index.js @@ -347,7 +347,7 @@ let MakeRepresentation = (props) => { currentView.caseReference.appealType != 846040015 && currentView.caseReference.appealType != 846040016 && todaysDate >= startDate && - todaysDate <= questionnaireDate && + todaysDate <= finalCommentsDate && buildArr.push("Questionnaire"); isLPA && From c9ef4ffabb7f7e68d14f2d8f5505697e1aaffd49 Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Thu, 16 Jan 2025 07:51:52 +0000 Subject: [PATCH 02/11] questionnaire defect 58 added dates for DNS --- components/case/representation/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/case/representation/index.js b/components/case/representation/index.js index caabb42b..bf5bb5af 100644 --- a/components/case/representation/index.js +++ b/components/case/representation/index.js @@ -354,7 +354,7 @@ let MakeRepresentation = (props) => { isDNS && currentView.caseReference.appealType != 846040019 && todaysDate >= startDate && - todaysDate <= questionnaireDate && + todaysDate <= finalCommentsDate && buildArr.push("Local Impact Report"); !isDNS && From 49e9be181bddb484a82a0be4d9dfa6f81b2711b0 Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Thu, 16 Jan 2025 07:53:03 +0000 Subject: [PATCH 03/11] questionnaire defect 61 --- ...sentationLPAQuestionnaireCheck_enforcement.js | 16 ++++++++-------- .../representationLPAQuestionnaireCheck_s78.js | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/components/case/representation/representationQuestionnairesCheck/representationLPAQuestionnaireCheck_enforcement.js b/components/case/representation/representationQuestionnairesCheck/representationLPAQuestionnaireCheck_enforcement.js index 8b0dcd82..efa7abc6 100644 --- a/components/case/representation/representationQuestionnairesCheck/representationLPAQuestionnaireCheck_enforcement.js +++ b/components/case/representation/representationQuestionnairesCheck/representationLPAQuestionnaireCheck_enforcement.js @@ -69,7 +69,7 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- { @@ -80,11 +80,11 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { {t("common:change-link-label")} {" "} - {/* {FieldsTranslations( + {FieldsTranslations( rows[0].value - )} */} + )} - + */}
)} @@ -171,7 +171,7 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- { @@ -182,11 +182,11 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { {t("common:change-link-label")} {" "} - {/* {FieldsTranslations( + {FieldsTranslations( rows[0].value - )} */} + )} - + */}
)} diff --git a/components/case/representation/representationQuestionnairesCheck/representationLPAQuestionnaireCheck_s78.js b/components/case/representation/representationQuestionnairesCheck/representationLPAQuestionnaireCheck_s78.js index 01598be3..20baf1ad 100644 --- a/components/case/representation/representationQuestionnairesCheck/representationLPAQuestionnaireCheck_s78.js +++ b/components/case/representation/representationQuestionnairesCheck/representationLPAQuestionnaireCheck_s78.js @@ -61,7 +61,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
- { @@ -71,11 +71,11 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { {t("common:change-link-label")} {" "} - {/* {FieldsTranslations( + {FieldsTranslations( rows[0].value - )} */} + )} - + */}
)} @@ -161,7 +161,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
- { @@ -172,11 +172,11 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { {t("common:change-link-label")} {" "} - {/* {FieldsTranslations( + {FieldsTranslations( rows[0].value - )} */} + )} - + */}
)} From 06c4b6f5bce0eadbb6397087de3ef268fbc260a6 Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Thu, 16 Jan 2025 09:41:34 +0000 Subject: [PATCH 04/11] reps defect 39 --- locales/cy/case.json | 2 +- locales/en/case.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/locales/cy/case.json b/locales/cy/case.json index d65e8ff5..e5dae20e 100644 --- a/locales/cy/case.json +++ b/locales/cy/case.json @@ -35,7 +35,7 @@ "summary-start-date-label": "Dyddiad Dechrau", "summary-questionnaire-due-date-label": "Holiadur i ddod", "summary-statement-due-date-label": "Datganiad(au) i ddod", - "summary-statement-interested-party-due-date-label": "Datganiad a Sylwadau Partïon â Buddiant i ddod", + "summary-statement-interested-party-due-date-label": "Datganiad a Sylwadau Partïon â Diddordeb yn ddyledus", "summary-date-exported-to-iss-label": "Dyddiad allgludo i ISS", "summary-interested-party-date-label": "Sylwadau Parti â Buddiant i ddod", "summary-applicant-final-comments-date-label": "Sylwadau Terfynol yr Apelydd/ACLl i ddod", diff --git a/locales/en/case.json b/locales/en/case.json index 531d5f51..4d4c6be7 100644 --- a/locales/en/case.json +++ b/locales/en/case.json @@ -35,7 +35,7 @@ "summary-start-date-label": "Start Date", "summary-questionnaire-due-date-label": "Questionnaire due", "summary-statement-due-date-label": "Statement(s) due", - "summary-statement-interested-party-due-date-label": "Statement and Interested Party Reps due", + "summary-statement-interested-party-due-date-label": "Statement and Interested Party Representations due", "summary-date-exported-to-iss-label": "Date exported to ISS", "summary-interested-party-date-label": "Interested Party Comments due", "summary-applicant-final-comments-date-label": "Appellant/LPA Final Comments due", From cb39990cb17c51075027b00c833e379914cada85 Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Thu, 16 Jan 2025 14:05:13 +0000 Subject: [PATCH 05/11] questionnaire defect 44,45,46,53, --- .../pdftemplates/lpaQuestionnaire_pdf.js | 48 +++++++++---------- .../endpoint/getbasicdnssearchpaged_api.js | 6 ++- 2 files changed, 29 insertions(+), 25 deletions(-) diff --git a/components/pdftemplates/lpaQuestionnaire_pdf.js b/components/pdftemplates/lpaQuestionnaire_pdf.js index d12c3259..a007afc6 100644 --- a/components/pdftemplates/lpaQuestionnaire_pdf.js +++ b/components/pdftemplates/lpaQuestionnaire_pdf.js @@ -310,7 +310,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => { flexDirection: "column", marginBottom: 10, }} - wrap={false} + // wrap={false} > { flexDirection: "column", marginBottom: 10, }} - wrap={false} + // wrap={false} > { flexDirection: "column", marginBottom: 10, }} - wrap={false} + // wrap={false} > { flexDirection: "column", marginBottom: 10, }} - wrap={false} + // wrap={false} > { flexDirection: "column", marginBottom: 10, }} - wrap={false} + // wrap={false} > { flexDirection: "column", marginBottom: 10, }} - wrap={false} + // wrap={false} > { flexDirection: "column", marginBottom: 10, }} - wrap={false} + // wrap={false} > { flexDirection: "column", marginBottom: 10, }} - wrap={false} + // wrap={false} > { flexDirection: "column", marginBottom: 10, }} - wrap={false} + // wrap={false} > { flexDirection: "column", marginBottom: 10, }} - wrap={false} + // wrap={false} > { flexDirection: "column", marginBottom: 10, }} - wrap={false} + // wrap={false} > { flexDirection: "column", marginBottom: 10, }} - wrap={false} + // wrap={false} > { flexDirection: "column", marginBottom: 10, }} - wrap={false} + // wrap={false} > { flexDirection: "column", marginBottom: 10, }} - wrap={false} + // wrap={false} > { flexDirection: "column", marginBottom: 10, }} - wrap={false} + // wrap={false} > { flexDirection: "column", marginBottom: 10, }} - wrap={false} + // wrap={false} > { flexDirection: "column", marginBottom: 10, }} - wrap={false} + // wrap={false} > { flexDirection: "column", marginBottom: 10, }} - wrap={false} + // wrap={false} > { flexDirection: "column", marginBottom: 10, }} - wrap={false} + // wrap={false} > { flexDirection: "column", marginBottom: 10, }} - wrap={false} + // wrap={false} > { flexDirection: "column", marginBottom: 10, }} - wrap={false} + // wrap={false} > { flexDirection: "column", marginBottom: 10, }} - wrap={false} + // wrap={false} > { flexDirection: "column", marginBottom: 10, }} - wrap={false} + // wrap={false} > { flexDirection: "column", marginBottom: 10, }} - wrap={false} + // wrap={false} > Date: Thu, 16 Jan 2025 14:05:31 +0000 Subject: [PATCH 06/11] rep defect 41 --- components/pdftemplates/statement_pdf.js | 72 ++++++++++++++++++++++-- 1 file changed, 67 insertions(+), 5 deletions(-) diff --git a/components/pdftemplates/statement_pdf.js b/components/pdftemplates/statement_pdf.js index 14ab7249..3c004a62 100644 --- a/components/pdftemplates/statement_pdf.js +++ b/components/pdftemplates/statement_pdf.js @@ -53,6 +53,28 @@ const styles = StyleSheet.create({ paddingLeft: 10, backgroundColor: "white", }, + questionAnswerSmall: { + color: "#757575", + width: "300", + fontSize: 12, + padding: 5, + border: 1, + borderColor: "#eee", + paddingLeft: 10, + paddingRight: 10, + backgroundColor: "white", + marginRight: 10, + }, + questionAnswerSmaller: { + color: "#757575", + width: "90", + fontSize: 12, + padding: 5, + border: 1, + borderColor: "#eee", + paddingLeft: 10, + backgroundColor: "white", + }, questionAnswerMid: { color: "#757575", width: "20%", @@ -239,7 +261,7 @@ export const statement_pdf = ({ docProps }) => { {CleanHTML( values.conditional_representationCapacity_Comments - )} + ) || "N/A"} @@ -440,7 +462,7 @@ export const statement_pdf = ({ docProps }) => { }} > {getTrans( docProps.locale, @@ -448,7 +470,18 @@ export const statement_pdf = ({ docProps }) => { )} : - + {values.firstname} {values.lastname} @@ -459,14 +492,20 @@ export const statement_pdf = ({ docProps }) => { alignItems: "center", }} > - + {getTrans( docProps.locale, "statement-date-label" )} : - + {signedDate} @@ -479,6 +518,7 @@ export const statement_pdf = ({ docProps }) => { style={{ flexDirection: "row", marginBottom: 10, + alignItems: "center", }} > { : ""} + ) : values.hasOwnProperty("onBehalfOfLPA") ? ( + + + {getTrans( + docProps.locale, + "statement-onbehalf-label" + )} + : + + + {values.onBehalfOfLPA} + + ) : ( )} From 9ab83efedc0f952a05bd4d4b555c5ec823b4aa7f Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Thu, 16 Jan 2025 14:05:52 +0000 Subject: [PATCH 07/11] rep defect 41 update final comments in line --- components/pdftemplates/finalComments_pdf.js | 81 +++++++++++++++++--- 1 file changed, 70 insertions(+), 11 deletions(-) diff --git a/components/pdftemplates/finalComments_pdf.js b/components/pdftemplates/finalComments_pdf.js index be300697..64edec6f 100644 --- a/components/pdftemplates/finalComments_pdf.js +++ b/components/pdftemplates/finalComments_pdf.js @@ -1,20 +1,17 @@ -import ReactPDF, { +import { Document, + Image, Page, + StyleSheet, Text, View, - Image, - StyleSheet, - PDFViewer, Font, } from "@react-pdf/renderer"; -import { createElement } from "react"; import Html from "react-pdf-html"; import { getFormCollectionByID, bytesToSize } from "../../components/utils"; import transLookupCY from "../../locales/cy/myrepresentations.json"; import transLookupEN from "../../locales/en/myrepresentations.json"; -import { JSONPath as jsonpath } from "jsonpath-plus"; const getTrans = (locale, key) => { let jsonQuery = `$.${key}`; @@ -56,6 +53,28 @@ const styles = StyleSheet.create({ paddingLeft: 10, backgroundColor: "white", }, + questionAnswerSmall: { + color: "#757575", + width: "300", + fontSize: 12, + padding: 5, + border: 1, + borderColor: "#eee", + paddingLeft: 10, + paddingRight: 10, + backgroundColor: "white", + marginRight: 10, + }, + questionAnswerSmaller: { + color: "#757575", + width: "90", + fontSize: 12, + padding: 5, + border: 1, + borderColor: "#eee", + paddingLeft: 10, + backgroundColor: "white", + }, questionAnswerMid: { color: "#757575", width: "20%", @@ -242,7 +261,7 @@ export const finalComments_pdf = ({ docProps }) => { {CleanHTML( values.conditional_representationCapacity_Comments - )} + ) || "N/A"} @@ -443,7 +462,7 @@ export const finalComments_pdf = ({ docProps }) => { }} > {getTrans( docProps.locale, @@ -451,7 +470,18 @@ export const finalComments_pdf = ({ docProps }) => { )} : - + {values.firstname} {values.lastname} @@ -462,14 +492,20 @@ export const finalComments_pdf = ({ docProps }) => { alignItems: "center", }} > - + {getTrans( docProps.locale, "statement-date-label" )} : - + {signedDate} @@ -482,6 +518,7 @@ export const finalComments_pdf = ({ docProps }) => { style={{ flexDirection: "row", marginBottom: 10, + alignItems: "center", }} > { : ""} + ) : values.hasOwnProperty("onBehalfOfLPA") ? ( + + + {getTrans( + docProps.locale, + "statement-onbehalf-label" + )} + : + + + {values.onBehalfOfLPA} + + ) : ( )} From e539b7054bbe09212bf18722fad5a291bba1c3d0 Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Thu, 16 Jan 2025 14:06:56 +0000 Subject: [PATCH 08/11] fix to delay moving on til large pdf completed --- components/case/representation/index.js | 26 ++-- .../representationCompleteSubmit.js | 140 ++++++++++-------- 2 files changed, 93 insertions(+), 73 deletions(-) diff --git a/components/case/representation/index.js b/components/case/representation/index.js index bf5bb5af..de82acfb 100644 --- a/components/case/representation/index.js +++ b/components/case/representation/index.js @@ -34,6 +34,8 @@ let MakeRepresentation = (props) => { const [clearRepForm, setClearRepForm] = useState(false); const [savingStatus, setSavingStatus] = useState(false); + const [finaliseAppealProcess, setFinaliseAppealProcess] = useState(false); + //const [questionnaireCount, setQuestionnaireCount] = useState(0); const { data: session } = useSession(); @@ -879,7 +881,6 @@ let MakeRepresentation = (props) => { }; const onHandleSubmit = (values) => { - window.scrollTo({ top: 0, behavior: "smooth" }); values = setRepFileName(values); //console.log("onHandleSubmit form values - ", JSON.stringify(values)); @@ -1014,6 +1015,7 @@ let MakeRepresentation = (props) => { setRepresentationSubmit(true); } } + window.scrollTo({ top: 0, behavior: "smooth" }); } else { if (currentView.representationSubmit == true) { console.log("capacity", currentView.representationCapacity); @@ -1034,18 +1036,22 @@ let MakeRepresentation = (props) => { // Object.assign(values, { // "filesList": buildFileArray, // })), - console.log( - "====================== rep lpa payload:\n", - JSON.stringify(values) - ); + // console.log( + // "====================== rep lpa payload:\n", + // JSON.stringify(values) + // ); + setFinaliseAppealProcess(true); generateRepPDF( values, props.props.accountDetails.containerID, currentView.caseReference.currentReference - ); - uploadRepresentationFiles(values); - setRepresentationSubmit(true); - setRepresentationSubmitConfirmation(true); + ).then((data) => { + console.log(data); + data.status == "success" && + (uploadRepresentationFiles(values), + setRepresentationSubmit(true), + setRepresentationSubmitConfirmation(true)); + }); } else { console.log("not updated"); } @@ -1148,6 +1154,8 @@ let MakeRepresentation = (props) => { showQuestionnaireSection={showQuestionnaireSection} props={props} questionnaireCount={questionnaireCount} + finaliseAppealProcess={finaliseAppealProcess} + setFinaliseAppealProcess={setFinaliseAppealProcess} /> ) : ( <> diff --git a/components/case/representation/representationCompleteSubmit.js b/components/case/representation/representationCompleteSubmit.js index 9208d995..57cf569c 100644 --- a/components/case/representation/representationCompleteSubmit.js +++ b/components/case/representation/representationCompleteSubmit.js @@ -29,6 +29,7 @@ const RepCompleteSubmit = (props) => { setShowQuestionnaireSection, showQuestionnaireSection, questionnaireCount, + finaliseAppealProcess, } = props; const { acceptedFiles, getRootProps, getInputProps } = useDropzone(); const files = acceptedFiles.map((file) => ( @@ -473,72 +474,83 @@ const RepCompleteSubmit = (props) => { )}

-
-
-
- { - setConfirmSections( - !confirmSections - ); - }} - /> - -
+ {finaliseAppealProcess ? ( +
+

+ Finalising your representation + submission +

+

+ Currenly uploading files and finalising + your representation submission +

+

+ Please wait +

+ ) : ( + <> +
+
+
+ { + setConfirmSections( + !confirmSections + ); + }} + /> + +
+
+
- {/* */} -
-
-
-
- - {/* { - setRepresentationSubmit(false); - }} - className="govuk-button" - > - {t("common:continue-button")} - */} - - setSubmitBack()} - className="govuk-link" - > - {t("case:summary-back-button-label")} - -
+
+
+ + setSubmitBack()} + className="govuk-link" + > + {t( + "case:summary-back-button-label" + )} + +
+
+ + )}
From 054e54cda362b133fe4c82c86db2b0847f062372 Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Thu, 16 Jan 2025 14:10:38 +0000 Subject: [PATCH 09/11] enf defect 1,4,7 --- locales/cy/myrepresentations.json | 3 ++- locales/en/myrepresentations.json | 11 ++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/locales/cy/myrepresentations.json b/locales/cy/myrepresentations.json index 17ba2360..880a26f8 100644 --- a/locales/cy/myrepresentations.json +++ b/locales/cy/myrepresentations.json @@ -225,5 +225,6 @@ "representation-type": "Math o sylw", "select-an-option-label": "Dewiswch opsiwn", "previously-added-files": "Ffeiliau wedi'u llwytho i fyny", - "is-required-label": "Yn ofynnol" + "is-required-label": "Yn ofynnol", + "select-a-date-label": "Dewiswch ddyddiad" } \ No newline at end of file diff --git a/locales/en/myrepresentations.json b/locales/en/myrepresentations.json index 7ef71c67..f6791b21 100644 --- a/locales/en/myrepresentations.json +++ b/locales/en/myrepresentations.json @@ -132,7 +132,7 @@ "enf-section-question-10": "Has the Local Planning Authority received the correct fee payable in relation to this appeal for the deemed planning application/ground (a) to be considered?", "enf-section-question-11": "Is the appeal fee exempt?", "enf-section-question-11-hint": "If Yes, please explain", - "enf-section-heading-three": "Planning History and Current Statuss", + "enf-section-heading-three": "Planning History and Current Status", "enf-section-question-12": "Have any planning permissions or lawful development certificates been granted previously in respect of the development or on the site?", "enf-section-question-12-hint": "If Yes, please submit any documents necessary for its interpretation and list here. E.g. Decision Notice, Relevant Plans, etc.", "enf-section-question-13": "Has a Stop Notice been served in addition to the Enforcement Notice?", @@ -181,13 +181,13 @@ "enf-section-heading-seven": "Before sending, have you attached or provided a web link to the following:", "enf-section-question-33": "A true copy of the enforcement notice?", "enf-section-question-33-hint": "Insert weblink here if available online. If Not, give reasons", - "enf-section-question-34": "The enforcement notice plan.", + "enf-section-question-34": "The enforcement notice plan?", "enf-section-question-34-hint": "Insert weblink here if available online. If Not, give reasons", - "enf-section-question-35": "A list of those served with the enforcement notice.", + "enf-section-question-35": "A list of those served with the enforcement notice?", "enf-section-question-35-hint": "Insert weblink here if available online. If Not, give reasons", "enf-section-question-36": "A copy of the letter with which you notified people of the appeal AND a list of the people you notified?", "enf-section-question-36-hint": "Insert weblink here if available online. If Not, give reasons", - "enf-section-question-37": "The LPA’s Environmental Impact Assessment Screening Opinion and ‘Regulation 45 Notice’*, if applicable?", + "enf-section-question-37": "The LPA’s Environmental Impact Assessment Screening Opinion and ‘Regulation 45 Notice’, if applicable?", "enf-section-question-37-hint": "Insert weblink here if available online. If Not, give reasons", "enf-section-question-38": "Details of other appeals or applications relating to the site, or a nearby site, which are still being considered by PEDW or the Welsh Ministers?", "enf-section-question-38-hint": "If Yes, provide reference numbers and, if applicable, attach or insert links to relevant documents", @@ -225,5 +225,6 @@ "representation-type": "Representation type", "select-an-option-label": "Select an option", "previously-added-files": "Uploaded files", - "is-required-label": "Is required" + "is-required-label": "Is required", + "select-a-date-label": "Select a date" } \ No newline at end of file From e109c91b607720cd68642f9ea91839ec581cb852 Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Thu, 16 Jan 2025 14:12:06 +0000 Subject: [PATCH 10/11] enf defect 8, 9,5, --- ...tationLPAQuestionnaireCheck_enforcement.js | 227 ++++++++++++++---- 1 file changed, 178 insertions(+), 49 deletions(-) diff --git a/components/case/representation/representationQuestionnairesCheck/representationLPAQuestionnaireCheck_enforcement.js b/components/case/representation/representationQuestionnairesCheck/representationLPAQuestionnaireCheck_enforcement.js index efa7abc6..064b5681 100644 --- a/components/case/representation/representationQuestionnairesCheck/representationLPAQuestionnaireCheck_enforcement.js +++ b/components/case/representation/representationQuestionnairesCheck/representationLPAQuestionnaireCheck_enforcement.js @@ -27,7 +27,7 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { <>
- 5. Which procedure do you consider the appeal + 4. Which procedure do you consider the appeal should follow?
@@ -159,15 +159,16 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { "Yes" && (
- {t( - "case:representation-onbehalfof-details" - )} + Evidence
- { - repFormData.enterNeighbouringLandToViewSiteEvidence - } +
@@ -236,9 +237,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- { - repFormData.enterNeighbouringLandAccessRequired - } +
@@ -302,7 +306,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.healthAndSafetyIssuesEvidence} +
@@ -484,7 +493,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.previousGrantedCertsEvidence} +
@@ -549,7 +563,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.stopNoticeServedEvidence} +
@@ -614,7 +633,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.stopNoticeServedEvidence} +
@@ -679,7 +703,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.previousEnforcementEvidence} +
@@ -744,7 +773,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.subjectArticle4Evidence} +
@@ -809,7 +843,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.previousPDRRestrictionEvidence} +
@@ -851,7 +890,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.LPAldpAndMap} +
@@ -886,7 +930,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.LPAlocalGuidance} +
@@ -1026,7 +1075,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.ROWEvidence} +
@@ -1091,7 +1145,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.conservationAreaEvidence} +
@@ -1156,7 +1215,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.affectListedBuildingEvidence} +
@@ -1221,7 +1285,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.TPOEvidence} +
@@ -1286,7 +1355,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.natureConservationSiteEvidence} +
@@ -1351,7 +1425,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.protectedSpeciesEvidence} +
@@ -1451,7 +1530,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.floodingIssueEvidence} +
@@ -1516,9 +1600,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- { - repFormData.governmentDepartmentCommentsEvidence - } +
@@ -1631,9 +1718,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- { - repFormData.developmentCarriedOutInAccordanceEvidence - } +
@@ -1802,9 +1892,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- { - repFormData.developmentAnyOtherConditionsEvidence - } +
@@ -1833,7 +1926,7 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { {/* Section 7 Before sending, have you attached or provided a web link to: */}

- {t("myrepresentations:enf-section-heading-seven")} + {t("myrepresentations:s78-section-heading-five-sub")}

{_.has(repFormData, "copyOfEnforcementNotice") && ( <> @@ -1873,7 +1966,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.copyOfEnforcementNoticeEvidence} +
@@ -1936,7 +2034,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.enforcementNoticePlanEvidence} +
@@ -1999,9 +2102,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- { - repFormData.listOfNotifiedOfEnforcementEvidence - } +
@@ -2064,9 +2170,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- { - repFormData.copyOfLetterOfAppealNotificationEvidence - } +
@@ -2129,7 +2238,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.lpaEIAOSEvidence} +
@@ -2192,7 +2306,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.detailsOfOtherAppeals} +
@@ -2255,7 +2374,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.detailsOfPreviousAppealsEvidence} +
@@ -2284,7 +2408,7 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { <>
- 33. Any other relevant information that we should + 40. Any other relevant information that we should know about?
@@ -2318,7 +2442,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.otherRelevantInformationEvidence} +
From 34419733de8ce64be737b2f4d784da7661ce38e4 Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Thu, 16 Jan 2025 14:14:53 +0000 Subject: [PATCH 11/11] enf defect 3,5,8,2,6 --- .../representationProgress_enforcement.js | 2 +- ...resentationLPAQuestionnaire_enforcement.js | 22 +++++++++++++------ .../representationLPAQuestionnaire_s78.js | 2 +- components/pdftemplates/enforcement_pdf.js | 4 +--- pages/api/file/generatepdf.js | 20 ++++++++--------- 5 files changed, 28 insertions(+), 22 deletions(-) diff --git a/components/case/representation/representationProgress/representationProgress_enforcement.js b/components/case/representation/representationProgress/representationProgress_enforcement.js index 6d5c7dd1..cd7d3221 100644 --- a/components/case/representation/representationProgress/representationProgress_enforcement.js +++ b/components/case/representation/representationProgress/representationProgress_enforcement.js @@ -455,7 +455,7 @@ const RepresentationProgress_enforcement = (props) => { > {t( - "myrepresentations:enf-section-heading-seven" + "myrepresentations:s78-section-heading-five-sub" )} diff --git a/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_enforcement.js b/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_enforcement.js index b8d4d1a1..097d44be 100644 --- a/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_enforcement.js +++ b/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_enforcement.js @@ -126,9 +126,10 @@ let Enforcement_Questionnaire = (props) => {
{ {t("myrepresentations:enf-section-heading-six")}
- 31 .{t("myrepresentations:enf-section-question-31")} + 31. {t("myrepresentations:enf-section-question-31")}
@@ -946,8 +947,11 @@ let Enforcement_Questionnaire = (props) => { aria-describedby="commentBox-hint" >

- {t("myrepresentations:enf-section-heading-seven")} + {t("myrepresentations:s78-section-heading-five-sub")}

+

+ {t("myrepresentations:s78-section-heading-five")} +

{ conditionalLabel={t( "myrepresentations:enf-section-question-37-hint" )} + hint={ + "Regulation 45 of the Town and Country Planning (Environmental Impact Assessment) (Wales) Regulations 2017 (as amended)." + } optionSelect={t( "myrepresentations:questionnaire-yes" )} @@ -1244,6 +1251,7 @@ let Enforcement_Questionnaire = (props) => { label={t( "myrepresentations:enf-section-question-onbehalf" )} + disabled={true} validate={[required]} />
@@ -1253,9 +1261,9 @@ let Enforcement_Questionnaire = (props) => { label={t("myrepresentations:enf-section-question-date")} component={RenderDatePicker} validate={[required]} - errorMsg={t("newappeal:select-a-date-label")} + errorMsg={t("myrepresentations:select-a-date-label")} dateStart="0" - dateEnd="1-y" + dateEnd="0" /> )} diff --git a/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_s78.js b/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_s78.js index cda5716f..0c62a866 100644 --- a/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_s78.js +++ b/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_s78.js @@ -1079,7 +1079,7 @@ let S78_Questionnaire = (props) => { validate={[required]} dateStart="0" dateEnd="0" - errorMsg={t("myrepresentations:is-required-label")} + errorMsg={t("myrepresentations:select-a-date-label")} locale={locale} /> diff --git a/components/pdftemplates/enforcement_pdf.js b/components/pdftemplates/enforcement_pdf.js index fa7898a9..09111076 100644 --- a/components/pdftemplates/enforcement_pdf.js +++ b/components/pdftemplates/enforcement_pdf.js @@ -726,7 +726,6 @@ export const EnforcementQuestionnaire_pdf = ({ docProps }) => { { { The LPA’s Environmental Impact Assessment Screening Opinion and - ‘Regulation 45 Notice’*, if applicable? + ‘Regulation 45 Notice’, if applicable? {values.lpaEIAOS} diff --git a/pages/api/file/generatepdf.js b/pages/api/file/generatepdf.js index 85bcbfe0..10ae541c 100644 --- a/pages/api/file/generatepdf.js +++ b/pages/api/file/generatepdf.js @@ -153,16 +153,16 @@ export default async function handler(req, res) { ? cleanFilesList(reqBodyobj) : reqBodyobj; - console.log( - "//////////////////////\nreqBodyobj" + - req + - "\n//////////////////////\n" - ); - console.log( - "//////////////////////\nreqBodyobj" + - JSON.stringify(req.body) + - "\n//////////////////////\n" - ); + // console.log( + // "//////////////////////\nreqBodyobj" + + // req + + // "\n//////////////////////\n" + // ); + // console.log( + // "//////////////////////\nreqBodyobj" + + // JSON.stringify(req.body) + + // "\n//////////////////////\n" + // ); var containerID = reqBodyobj.containerID; var casefolderID = reqBodyobj.casefolderID;