updated copy on representation complete submit

This commit is contained in:
2026-03-16 12:07:39 +00:00
parent e9b2753fd9
commit 071fcc0dab
10 changed files with 19 additions and 32 deletions
+6 -2
View File
@@ -243,9 +243,11 @@ export const generateRepPDF = async (
var queryUrl =
"/api/file/generatepdf" + (options.download ? "?download=true" : "");
const hashedUrl = await buildHashedQueryUrl(queryUrl);
const config = {
method: "post",
url: queryUrl,
url: hashedUrl,
data: formValues,
...(options.download ? { responseType: "blob" } : {})
};
@@ -271,9 +273,11 @@ export const generateAppealPDF = async (
var queryUrl = "/api/file/generateappealpdf?appealType=" + appealType;
const hashedUrl = await buildHashedQueryUrl(queryUrl);
const config = {
method: "post",
url: queryUrl,
url: hashedUrl,
data: formValues
};
+2 -1
View File
@@ -977,8 +977,9 @@ let MakeRepresentation = (props) => {
generateRepPDF(
values,
props.props.accountDetails.containerID,
currentView.caseReference.currentReference
props.currentView.caseReference.currentReference
).then((data) => {
console.log(data, "");
if (data.status === "success") {
values = updateLinks(values);
uploadRepresentationFiles(values);
@@ -104,6 +104,7 @@ const RepComplete = (props) => {
<p>{t("myrepresentations:rep-complete-para-one")}</p>
<p>{t("myrepresentations:rep-complete-para-two")}</p>
<p> {t("myrepresentations:rep-complete-para-three")}</p>
<p> {t("myrepresentations:rep-complete-para-four")}</p>
</div>
<div className="govuk-grid-row">
<div className="govuk-button-group">
@@ -292,8 +292,7 @@ const RepCompleteSubmit = (props) => {
const pdfBlob = await generateRepPDF(
repFormData,
containerID,
caseRef,
{ download: true }
caseRef
);
if (pdfBlob) {
+2 -1
View File
@@ -51,7 +51,8 @@ module.exports = {
"case",
"myrepresentations",
"common",
"home"
"home",
"myportal"
],
"/myportal/error": ["myportal", "common"],
"/myportal/case/id/[incident]": ["case", "home"],
+1
View File
@@ -58,6 +58,7 @@
"rep-complete-heading": "Cyflwyno Sylwadau",
"rep-complete-para-one": "Diolch am gyflwyno eich sylw/sylwadau gan ddefnyddio'r Porth Gwaith Achos Apeliadau.",
"rep-complete-para-two": "Cofiwch fod angen i ni dderbyn unrhyw ddogfennau ategol o fewn y terfyn amser priodol ar gyfer yr achos. Rhaid i unrhyw beth y byddwch yn ei anfon atom gael ei farcio'n glir gyda chyfeirnod yr achos a chyfeiriad y safle (gan gynnwys y cod post, os yw'n hysbys).",
"rep-complete-para-four": "Diolch am eich sylwadau. Bydd eich sylwadau ar gael i'w gweld ar-lein unwaith y bydd y dyddiad cau ar gyfer cyflwyniadau wedi pasio.",
"rep-complete-para-three": "Byddwch yn derbyn cadarnhad yn fuan a anfonir at y cyfeiriad e-bost a roddwyd gennych.",
"lpa-capacity-para-one": "Maer ffurflen hon yn eich galluogi i gyflwyno datganiadau, sylwadau a holiaduron ar achos i Benderfyniadau Cynllunio ac Amgylchedd Cymru.",
"s78-section-heading-one": "Y weithdrefn apelio ac ymweliad safle",
+1
View File
@@ -59,6 +59,7 @@
"rep-complete-para-one": "Thank you for submitting your representation(s) using the Appeals Casework Portal.",
"rep-complete-para-two": "Please remember that any supporting documentation needs to be received by us within the appropriate deadline for the case. Anything you send to us must be clearly marked with the case reference number and the site address (including the postcode, where known).",
"rep-complete-para-three": "You will shortly receive confirmation to the email address you have provided.",
"rep-complete-para-four": "Thank you for your representation. Your comments will be available to view online once the deadline for submissions has passed.",
"lpa-capacity-para-one": "This form enables you to submit statements, comments and questionaires on a case to Planning and Environment Decisions Wales.",
"s78-section-heading-one": "Appeal procedure and site visit",
"s78-section-question-1": "PEDW Reference",
@@ -22,22 +22,12 @@ import CryptoJS from "crypto-js";
import { azureHeaders } from "../../../actions/core/headers";
import { consoleLogger } from "../../../actions/core/logger";
import { getToken } from "../../../actions/core/token";
const WORDKEY = process.env.HASHKEY;
import { hashAPIPath } from "../../../actions/core/hash";
const WEBAPI_URL =
process.env.RELAY_ROOT ||
"https://dev-pedw-ns.servicebus.windows.net/dev-pedw-hc/";
const hashAPIPath = (queryPath) => {
var hashlink = CryptoJS.HmacSHA256(
queryPath,
CryptoJS.enc.Hex.parse(WORDKEY)
);
hashlink = hashlink.toString(CryptoJS.enc.Hex);
return (queryPath.indexOf("?") > -1 ? "&hash=" : "?hash=") + hashlink;
};
const BASE_URL = process.env.API_ROOT || `http://localhost:${port}`;
export default async function ApiProxy(req, res) {
+3 -1
View File
@@ -21,7 +21,9 @@ ApiProxy.get(async (req, res) => {
"/api/file/deleteblobcase",
"/api/file/deleteblobrep",
"/api/file/createrepcompletemessage_api",
"/api/file/createappealcompletemessage_api"
"/api/file/createappealcompletemessage_api",
"/api/file/generatepdf",
"/api/file/generateappealpdf"
];
if (
+1 -14
View File
@@ -14,25 +14,12 @@ import axios from "axios";
import CryptoJS from "crypto-js";
import { consoleLogger } from "../../../actions/core/logger";
import { getToken } from "../../../actions/core/token";
const WORDKEY = process.env.HASHKEY;
import { hashAPIPath } from "../../../actions/core/hash";
const WEBAPI_URL =
process.env.RELAY_ROOT ||
"https://dev-pedw-ns.servicebus.windows.net/dev-pedw-hc/";
const hashAPIPath = (queryPath) => {
var hashlink = CryptoJS.HmacSHA256(
queryPath,
CryptoJS.enc.Hex.parse(WORDKEY)
);
hashlink = hashlink.toString(CryptoJS.enc.Hex);
//return "&hash=" + hashlink;
return (queryPath.indexOf("?") > -1 ? "&hash=" : "?hash=") + hashlink;
};
export default async function ApiProxy(req, res) {
if (
!req.body ||