update build id to store version number
This commit is contained in:
@@ -271,6 +271,7 @@ let MakeRepresentation = (props) => {
|
|||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
case "interestedparty":
|
||||||
case t(
|
case t(
|
||||||
"myrepresentations:capacity-options-arr-interested"
|
"myrepresentations:capacity-options-arr-interested"
|
||||||
).toLowerCase():
|
).toLowerCase():
|
||||||
|
|||||||
@@ -56,12 +56,24 @@ const RepAgent = (props) => {
|
|||||||
>
|
>
|
||||||
{t("myrepresentations:kind-of-rep-label")}
|
{t("myrepresentations:kind-of-rep-label")}
|
||||||
</label>
|
</label>
|
||||||
<Field
|
{typeof props.representationType == "undefined" ||
|
||||||
name="representationType"
|
typeof formObj.representationForm.values
|
||||||
component={RenderPickList}
|
.representationType == "undefined" ? (
|
||||||
datafieldname="representationType"
|
<Field
|
||||||
optionsArr={appellantApplicantRepresentationArr}
|
name="representationType"
|
||||||
/>
|
component={RenderPickList}
|
||||||
|
datafieldname="representationType"
|
||||||
|
optionsArr={appellantApplicantRepresentationArr}
|
||||||
|
/>
|
||||||
|
) : (
|
||||||
|
<label className="govuk-label govuk-body-m">
|
||||||
|
Representation Type:{" "}
|
||||||
|
{
|
||||||
|
formObj.representationForm.values
|
||||||
|
.representationType
|
||||||
|
}{" "}
|
||||||
|
</label>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/* <div className="govuk-grid-row">
|
{/* <div className="govuk-grid-row">
|
||||||
|
|||||||
@@ -56,13 +56,12 @@ const RepAppellant = (props) => {
|
|||||||
className="govuk-label govuk-body-m"
|
className="govuk-label govuk-body-m"
|
||||||
htmlFor="representationType"
|
htmlFor="representationType"
|
||||||
>
|
>
|
||||||
{t(
|
{t("myrepresentations:kind-of-rep-label")}
|
||||||
"myrepresentations:representation-from-an-agent-heading"
|
|
||||||
)}
|
|
||||||
?
|
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
{typeof props.representationType == "undefined" ? (
|
{typeof props.representationType == "undefined" ||
|
||||||
|
typeof formObj.representationForm.values
|
||||||
|
.representationType == "undefined" ? (
|
||||||
<Field
|
<Field
|
||||||
name="representationType"
|
name="representationType"
|
||||||
component={RenderPickList}
|
component={RenderPickList}
|
||||||
@@ -70,7 +69,13 @@ const RepAppellant = (props) => {
|
|||||||
optionsArr={appellantApplicantRepresentationArr}
|
optionsArr={appellantApplicantRepresentationArr}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<p>{props.representationType}</p>
|
<label className="govuk-label govuk-body-m">
|
||||||
|
Representation Type:{" "}
|
||||||
|
{
|
||||||
|
formObj.representationForm.values
|
||||||
|
.representationType
|
||||||
|
}{" "}
|
||||||
|
</label>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -90,79 +95,103 @@ const RepAppellant = (props) => {
|
|||||||
</div>
|
</div>
|
||||||
</div> */}
|
</div> */}
|
||||||
|
|
||||||
<div className="govuk-grid-row">
|
{(typeof props.representationType != "undefined" ||
|
||||||
<div className="govuk-form-group">
|
typeof formObj.representationForm.values.representationType !=
|
||||||
<p className="govuk-body">
|
"undefined") && (
|
||||||
{t("myrepresentations:enter-comment-label")}
|
<div className="govuk-grid-row">
|
||||||
</p>
|
<div className="govuk-form-group">
|
||||||
<fieldset
|
<p className="govuk-body">
|
||||||
className="govuk-fieldset"
|
{t("myrepresentations:enter-comment-label")}
|
||||||
aria-describedby="commentBox-hint"
|
</p>
|
||||||
>
|
<fieldset
|
||||||
<div id="commentBox-hint" className="govuk-hint">
|
className="govuk-fieldset"
|
||||||
{t("myrepresentations:comments-set-out-label")}:
|
aria-describedby="commentBox-hint"
|
||||||
</div>
|
>
|
||||||
<div className="govuk-form-group">
|
<div id="commentBox-hint" className="govuk-hint">
|
||||||
<Field
|
{t("myrepresentations:comments-set-out-label")}:
|
||||||
name="representationComments"
|
</div>
|
||||||
id="representationComments"
|
<div className="govuk-form-group">
|
||||||
component={RenderRichMultiline}
|
<Field
|
||||||
type="text"
|
name="representationComments"
|
||||||
rows="5"
|
id="representationComments"
|
||||||
className="govuk-textarea govuk-input--width-30"
|
component={RenderRichMultiline}
|
||||||
aria-describedby={props.name + "-hint"}
|
type="text"
|
||||||
/>
|
rows="5"
|
||||||
{RepresentationGuidanceText(
|
className="govuk-textarea govuk-input--width-30"
|
||||||
formObj.representationForm.values.appealType
|
aria-describedby={props.name + "-hint"}
|
||||||
)}
|
/>
|
||||||
</div>
|
{formObj.representationForm.values.appealType ==
|
||||||
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
"846040004" ? (
|
||||||
<FileUploadField
|
<p className="govuk-hint govuk-!-font-size-14 govuk-!-margin-top-5">
|
||||||
name={"representationDocuments"}
|
{t(
|
||||||
label={t("myrepresentations:add-files-label")}
|
"myrepresentations:questionnaire-publish-policy-label"
|
||||||
ticketnumber={props.props.caseReference}
|
)}{" "}
|
||||||
hint={"sdsd"}
|
<a href="https://gov.wales/planning-and-environment-decisions-wales-publishing-policy-html">
|
||||||
fileList={[]}
|
https://gov.wales/planning-and-environment-decisions-wales-publishing-policy-html
|
||||||
setFilesForRepresentation={[]}
|
</a>
|
||||||
containerID={
|
</p>
|
||||||
props.props.props.accountDetails.containerID
|
) : (
|
||||||
}
|
<p className="govuk-hint govuk-!-font-size-14 govuk-!-margin-top-5">
|
||||||
/>
|
{t(
|
||||||
</div>
|
"myrepresentations:publish-policy-label"
|
||||||
{props.currentView.caseReference.hasOwnProperty(
|
)}{" "}
|
||||||
"repDetails"
|
<a href="https://gov.wales/planning-and-environment-decisions-wales-publishing-policy-html">
|
||||||
) &&
|
https://gov.wales/planning-and-environment-decisions-wales-publishing-policy-html
|
||||||
props.currentView.caseReference.repDetails.filesList
|
</a>
|
||||||
.length > 0 ? (
|
</p>
|
||||||
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
|
||||||
{props.currentView.caseReference.repDetails.filesList.map(
|
|
||||||
(blob, i) => (
|
|
||||||
<div
|
|
||||||
key={blob.name + "_" + i}
|
|
||||||
className="govuk-!-margin-bottom-5 fileThumb "
|
|
||||||
>
|
|
||||||
<img
|
|
||||||
src={getThumbnailIconByExtension(
|
|
||||||
blob.name
|
|
||||||
)}
|
|
||||||
alt={blob.name}
|
|
||||||
width="50"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<span className="govuk-body govuk-!-font-size-14 govuk-!-padding-left-5">
|
|
||||||
{blob.name} (
|
|
||||||
{bytesToSize(blob.size)})
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
) : (
|
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
||||||
""
|
<FileUploadField
|
||||||
)}
|
name={"representationDocuments"}
|
||||||
</fieldset>
|
label={t(
|
||||||
</div>{" "}
|
"myrepresentations:add-files-label"
|
||||||
</div>
|
)}
|
||||||
|
ticketnumber={props.props.caseReference}
|
||||||
|
hint={"sdsd"}
|
||||||
|
fileList={[]}
|
||||||
|
setFilesForRepresentation={[]}
|
||||||
|
containerID={
|
||||||
|
props.props.props.accountDetails
|
||||||
|
.containerID
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
{props.currentView.caseReference.hasOwnProperty(
|
||||||
|
"repDetails"
|
||||||
|
) &&
|
||||||
|
props.currentView.caseReference.repDetails.filesList
|
||||||
|
.length > 0 ? (
|
||||||
|
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
||||||
|
{props.currentView.caseReference.repDetails.filesList.map(
|
||||||
|
(blob, i) => (
|
||||||
|
<div
|
||||||
|
key={blob.name + "_" + i}
|
||||||
|
className="govuk-!-margin-bottom-5 fileThumb "
|
||||||
|
>
|
||||||
|
<img
|
||||||
|
src={getThumbnailIconByExtension(
|
||||||
|
blob.name
|
||||||
|
)}
|
||||||
|
alt={blob.name}
|
||||||
|
width="50"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<span className="govuk-body govuk-!-font-size-14 govuk-!-padding-left-5">
|
||||||
|
{blob.name} (
|
||||||
|
{bytesToSize(blob.size)})
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
|
""
|
||||||
|
)}
|
||||||
|
</fieldset>
|
||||||
|
</div>{" "}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
<div className="govuk-grid-row">
|
<div className="govuk-grid-row">
|
||||||
<div className="govuk-button-group">
|
<div className="govuk-button-group">
|
||||||
<button
|
<button
|
||||||
|
|||||||
@@ -1128,32 +1128,32 @@ export function FileUploadField(props) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export const RepresentationGuidanceText = (appealType) => {
|
// export const RepresentationGuidanceText = (appealType) => {
|
||||||
let { t } = useTranslation();
|
// let { t } = useTranslation();
|
||||||
|
|
||||||
console.log(appealType);
|
// console.log(appealType);
|
||||||
switch (appealType) {
|
// switch (appealType) {
|
||||||
case "846040004": //has/cas
|
// case "846040004": //has/cas
|
||||||
return (
|
// return (
|
||||||
<p className="govuk-hint govuk-!-font-size-14 govuk-!-margin-top-5">
|
// <p className="govuk-hint govuk-!-font-size-14 govuk-!-margin-top-5">
|
||||||
{t("myrepresentations:questionnaire-publish-policy-label")}{" "}
|
// {t("myrepresentations:questionnaire-publish-policy-label")}{" "}
|
||||||
<a href="https://gov.wales/planning-and-environment-decisions-wales-publishing-policy-html">
|
// <a href="https://gov.wales/planning-and-environment-decisions-wales-publishing-policy-html">
|
||||||
https://gov.wales/planning-and-environment-decisions-wales-publishing-policy-html
|
// https://gov.wales/planning-and-environment-decisions-wales-publishing-policy-html
|
||||||
</a>
|
// </a>
|
||||||
</p>
|
// </p>
|
||||||
);
|
// );
|
||||||
break;
|
// break;
|
||||||
default:
|
// default:
|
||||||
return (
|
// return (
|
||||||
<p className="govuk-hint govuk-!-font-size-14 govuk-!-margin-top-5">
|
// <p className="govuk-hint govuk-!-font-size-14 govuk-!-margin-top-5">
|
||||||
{t("myrepresentations:publish-policy-label")}{" "}
|
// {t("myrepresentations:publish-policy-label")}{" "}
|
||||||
<a href="https://gov.wales/planning-and-environment-decisions-wales-publishing-policy-html">
|
// <a href="https://gov.wales/planning-and-environment-decisions-wales-publishing-policy-html">
|
||||||
https://gov.wales/planning-and-environment-decisions-wales-publishing-policy-html
|
// https://gov.wales/planning-and-environment-decisions-wales-publishing-policy-html
|
||||||
</a>
|
// </a>
|
||||||
</p>
|
// </p>
|
||||||
);
|
// );
|
||||||
break;
|
// break;
|
||||||
}
|
// }
|
||||||
|
|
||||||
return guidanceString;
|
// return guidanceString;
|
||||||
};
|
// };
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ const RepInterestedPartyPerson = (props) => {
|
|||||||
<div className="govuk-grid-row">
|
<div className="govuk-grid-row">
|
||||||
<h2 className="govuk-heading-m ">
|
<h2 className="govuk-heading-m ">
|
||||||
{t(
|
{t(
|
||||||
"myrepresentations:representation-from-an-interested-party-heading"
|
"myrepresentations:representation-from-an-interested-person-heading"
|
||||||
)}
|
)}
|
||||||
</h2>
|
</h2>
|
||||||
<div className="govuk-form-group">
|
<div className="govuk-form-group">
|
||||||
@@ -44,82 +44,104 @@ const RepInterestedPartyPerson = (props) => {
|
|||||||
className="govuk-label govuk-body-m"
|
className="govuk-label govuk-body-m"
|
||||||
htmlFor="representationType"
|
htmlFor="representationType"
|
||||||
>
|
>
|
||||||
{t(
|
{t("myrepresentations:kind-of-rep-label")}
|
||||||
"myrepresentations:representation-from-an-agent-heading"
|
|
||||||
)}
|
|
||||||
?
|
|
||||||
</label>
|
</label>
|
||||||
<Field
|
{typeof props.representationType == undefined ||
|
||||||
name="representationType"
|
typeof formObj.representationForm.values
|
||||||
component={RenderPickList}
|
.representationType == "undefined" ? (
|
||||||
datafieldname="representationType"
|
<Field
|
||||||
validate={[required]}
|
name="representationType"
|
||||||
optionsArr={interestedPersonRepresentationArr}
|
component={RenderPickList}
|
||||||
errorMsg={t("newappeal:select-an-option-label")}
|
datafieldname="representationType"
|
||||||
/>
|
validate={[required]}
|
||||||
|
optionsArr={interestedPersonRepresentationArr}
|
||||||
|
errorMsg={t("newappeal:select-an-option-label")}
|
||||||
|
/>
|
||||||
|
) : (
|
||||||
|
<label className="govuk-label govuk-body-m">
|
||||||
|
Representation Type:{" "}
|
||||||
|
{
|
||||||
|
formObj.representationForm.values
|
||||||
|
.representationType
|
||||||
|
}{" "}
|
||||||
|
</label>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{(typeof props.representationType != "undefined" ||
|
||||||
<div className="govuk-grid-row">
|
typeof formObj.representationForm.values.representationType !=
|
||||||
<div className="govuk-form-group">
|
"undefined") && (
|
||||||
<Field
|
<>
|
||||||
name="representationOnBehalfOf"
|
<div className="govuk-grid-row">
|
||||||
datafieldname="representationOnBehalfOf"
|
|
||||||
// label="In what capacity do you wish to make representations on this case?"
|
|
||||||
options={["Yes", "No"]}
|
|
||||||
id="representationOnBehalfOf"
|
|
||||||
className="govuk-radios__input"
|
|
||||||
errorMsg={t("newappeal:select-an-option-label")}
|
|
||||||
component={RenderCondtionalRadioList}
|
|
||||||
validate={[required]}
|
|
||||||
legend={
|
|
||||||
"Are you acting on behalf of a company, group or organisation?"
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="govuk-grid-row">
|
|
||||||
<div className="govuk-form-group">
|
|
||||||
<p className="govuk-body">
|
|
||||||
{t("myrepresentations:enter-comment-label")}
|
|
||||||
</p>
|
|
||||||
<fieldset
|
|
||||||
className="govuk-fieldset"
|
|
||||||
aria-describedby="commentBox-hint"
|
|
||||||
>
|
|
||||||
<div id="commentBox-hint" className="govuk-hint">
|
|
||||||
{t("myrepresentations:comments-set-out-label")}:
|
|
||||||
</div>
|
|
||||||
<div className="govuk-form-group">
|
<div className="govuk-form-group">
|
||||||
<Field
|
<Field
|
||||||
name="representationComments"
|
name="representationOnBehalfOf"
|
||||||
id="representationComments"
|
datafieldname="representationOnBehalfOf"
|
||||||
component={RenderRichMultiline}
|
// label="In what capacity do you wish to make representations on this case?"
|
||||||
type="text"
|
options={["Yes", "No"]}
|
||||||
rows="5"
|
id="representationOnBehalfOf"
|
||||||
className="govuk-textarea govuk-input--width-30"
|
className="govuk-radios__input"
|
||||||
aria-describedby={props.name + "-hint"}
|
errorMsg={t("newappeal:select-an-option-label")}
|
||||||
/>
|
component={RenderCondtionalRadioList}
|
||||||
</div>
|
validate={[required]}
|
||||||
|
legend={
|
||||||
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
"Are you acting on behalf of a company, group or organisation?"
|
||||||
<FileUploadField
|
|
||||||
name={"representationDocuments"}
|
|
||||||
label={t("myrepresentations:add-files-label")}
|
|
||||||
ticketnumber={props.props.caseReference}
|
|
||||||
hint={"sdsd"}
|
|
||||||
fileList={[]}
|
|
||||||
setFilesForRepresentation={[]}
|
|
||||||
containerID={
|
|
||||||
props.props.props.accountDetails.containerID
|
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</div>
|
||||||
</div>{" "}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
<div className="govuk-grid-row">
|
||||||
|
<div className="govuk-form-group">
|
||||||
|
<p className="govuk-body">
|
||||||
|
{t("myrepresentations:enter-comment-label")}
|
||||||
|
</p>
|
||||||
|
<fieldset
|
||||||
|
className="govuk-fieldset"
|
||||||
|
aria-describedby="commentBox-hint"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
id="commentBox-hint"
|
||||||
|
className="govuk-hint"
|
||||||
|
>
|
||||||
|
{t(
|
||||||
|
"myrepresentations:comments-set-out-label"
|
||||||
|
)}
|
||||||
|
:
|
||||||
|
</div>
|
||||||
|
<div className="govuk-form-group">
|
||||||
|
<Field
|
||||||
|
name="representationComments"
|
||||||
|
id="representationComments"
|
||||||
|
component={RenderRichMultiline}
|
||||||
|
type="text"
|
||||||
|
rows="5"
|
||||||
|
className="govuk-textarea govuk-input--width-30"
|
||||||
|
aria-describedby={props.name + "-hint"}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="govuk-form-group govuk-!-margin-bottom-9">
|
||||||
|
<FileUploadField
|
||||||
|
name={"representationDocuments"}
|
||||||
|
label={t(
|
||||||
|
"myrepresentations:add-files-label"
|
||||||
|
)}
|
||||||
|
ticketnumber={props.props.caseReference}
|
||||||
|
hint={"sdsd"}
|
||||||
|
fileList={[]}
|
||||||
|
setFilesForRepresentation={[]}
|
||||||
|
containerID={
|
||||||
|
props.props.props.accountDetails
|
||||||
|
.containerID
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
|
</div>{" "}
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
<div className="govuk-grid-row">
|
<div className="govuk-grid-row">
|
||||||
<div className="govuk-button-group">
|
<div className="govuk-button-group">
|
||||||
<button
|
<button
|
||||||
|
|||||||
+6
-4
@@ -2,6 +2,7 @@
|
|||||||
//const withStyles = require("@webdeb/next-styles");
|
//const withStyles = require("@webdeb/next-styles");
|
||||||
//const { nextI18NextRewrites } = require("next-i18next/rewrites");
|
//const { nextI18NextRewrites } = require("next-i18next/rewrites");
|
||||||
const nextTranslate = require("next-translate-plugin");
|
const nextTranslate = require("next-translate-plugin");
|
||||||
|
const nextBuildId = require("next-build-id");
|
||||||
|
|
||||||
// module.exports = withStyles({
|
// module.exports = withStyles({
|
||||||
// sass: true, // use .scss files
|
// sass: true, // use .scss files
|
||||||
@@ -52,8 +53,12 @@ const securityHeaders = [
|
|||||||
// value: "frame-src 'self'; child-src 'self';object-src 'none'; script-src 'self' 'https://www.googletagmanager.com' unsafe-inline",
|
// value: "frame-src 'self'; child-src 'self';object-src 'none'; script-src 'self' 'https://www.googletagmanager.com' unsafe-inline",
|
||||||
// },
|
// },
|
||||||
];
|
];
|
||||||
|
const buildId = nextBuildId.sync({ dir: __dirname });
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
env: {
|
||||||
|
BUILD_ID_ENV: buildId,
|
||||||
|
},
|
||||||
swcMinify: false,
|
swcMinify: false,
|
||||||
sassOptions: {
|
sassOptions: {
|
||||||
includePaths: [
|
includePaths: [
|
||||||
@@ -72,10 +77,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
generateBuildId: async () => {
|
generateBuildId: () => buildId,
|
||||||
// You can, for example, get the latest git commit hash here
|
|
||||||
return "pinswg-build-id";
|
|
||||||
},
|
|
||||||
poweredByHeader: false,
|
poweredByHeader: false,
|
||||||
async rewrites() {
|
async rewrites() {
|
||||||
return [
|
return [
|
||||||
|
|||||||
@@ -44,6 +44,7 @@
|
|||||||
"nanoid": "^3.2.0",
|
"nanoid": "^3.2.0",
|
||||||
"next": "^14.0.1",
|
"next": "^14.0.1",
|
||||||
"next-auth": "^4.24.4",
|
"next-auth": "^4.24.4",
|
||||||
|
"next-build-id": "^3.0.0",
|
||||||
"next-connect": "^0.12.2",
|
"next-connect": "^0.12.2",
|
||||||
"next-redux-wrapper": "^7.0.5",
|
"next-redux-wrapper": "^7.0.5",
|
||||||
"next-swagger-doc": "^0.4.0",
|
"next-swagger-doc": "^0.4.0",
|
||||||
|
|||||||
+1
-1
@@ -137,7 +137,7 @@ const makeStore = ({ isServer }) => {
|
|||||||
"watchedCases",
|
"watchedCases",
|
||||||
"form",
|
"form",
|
||||||
],
|
],
|
||||||
version: 3,
|
version: process.env.BUILD_ID_ENV,
|
||||||
storage: storage,
|
storage: storage,
|
||||||
stateReconciler: autoMergeLevel2, // if needed, use a safer storage
|
stateReconciler: autoMergeLevel2, // if needed, use a safer storage
|
||||||
migrate: createMigrate(migrations, { debug: true }),
|
migrate: createMigrate(migrations, { debug: true }),
|
||||||
|
|||||||
Reference in New Issue
Block a user