Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
91054a0
fix back nav and data persistence
AmandaRichards Apr 2, 2026
f65f9b5
merge master
AmandaRichards Apr 2, 2026
2aaf331
suppress cve
AmandaRichards Apr 2, 2026
e1dd3f8
wales address header
AmandaRichards Apr 2, 2026
a6c268b
rename variables
AmandaRichards Apr 2, 2026
67a1a8d
merge master
AmandaRichards Apr 2, 2026
714b195
lint
AmandaRichards Apr 2, 2026
690acea
merge master
AmandaRichards Apr 8, 2026
82d59f7
Merge branch 'master' into HDPI-4465-correspondence-address-issues
AshaJayaprakash Apr 10, 2026
eb6662c
merge master
AmandaRichards Apr 13, 2026
e23a564
merge master
AmandaRichards Apr 16, 2026
e314f94
lint
AmandaRichards Apr 16, 2026
79556cd
merge master
AmandaRichards Apr 16, 2026
f374c40
update tests
AmandaRichards Apr 16, 2026
1397d21
merge master
AmandaRichards Apr 16, 2026
8a9093c
merge master
AmandaRichards Apr 16, 2026
5308e22
display error message if no radio selected
AmandaRichards Apr 16, 2026
14c811c
merge master
AmandaRichards Apr 16, 2026
01bbc00
fix for unit test
AmandaRichards Apr 16, 2026
201575c
use correspondenceAddressRequired
AmandaRichards Apr 16, 2026
3b4ad15
Merge branch 'master' into HDPI-4465-correspondence-address-issues
andrewdami11 Apr 17, 2026
489b225
Merge branch 'master' into HDPI-4465-correspondence-address-issues
andrewdami11 Apr 17, 2026
aa264b2
Merge branch 'master' into HDPI-4465-correspondence-address-issues
andrewdami11 Apr 17, 2026
873da19
Merge branch 'master' into HDPI-4465-correspondence-address-issues
andrewdami11 Apr 17, 2026
eb6b2ff
Merge branch 'master' into HDPI-4465-correspondence-address-issues
andrewdami11 Apr 17, 2026
1630e76
change toUpperCase
AmandaRichards Apr 17, 2026
c037f91
required true
AmandaRichards Apr 17, 2026
82a35ae
lint
AmandaRichards Apr 17, 2026
874925d
Merge remote-tracking branch 'origin/master' into HDPI-4465-correspon…
andrewdami11 Apr 20, 2026
0e6be29
Merge branch 'master' into HDPI-4465-correspondence-address-issues
andrewdami11 Apr 20, 2026
a21e2d8
Merge branch 'master' into HDPI-4465-correspondence-address-issues
AshaJayaprakash Apr 20, 2026
a3eedce
Merge branch 'master' into HDPI-4465-correspondence-address-issues
sdmiddletonSolirius Apr 20, 2026
2ba1e46
moved h1 into the legend and sorted caption fontsize
sdmiddletonSolirius Apr 20, 2026
2f66f44
Merge branch 'master' into HDPI-4465-correspondence-address-issues
AshaJayaprakash Apr 20, 2026
d52833a
Merge branch 'master' into HDPI-4465-correspondence-address-issues
AshaJayaprakash Apr 21, 2026
d3065f9
Merge branch 'master' into HDPI-4465-correspondence-address-issues
sdmiddletonSolirius Apr 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"zod-i18n-map": "2.27.0"
},
"devDependencies": {
"@axe-core/playwright": "4.11.2",
"@axe-core/playwright": "4.11.1",
"@eslint/compat": "2.0.5",
"@eslint/eslintrc": "3.3.5",
"@eslint/js": "9.39.4",
Expand Down Expand Up @@ -136,7 +136,7 @@
"eslint-plugin-jest": "28.14.0",
"git-rev-sync": "3.0.2",
"globals": "16.5.0",
"html-webpack-plugin": "5.6.7",
"html-webpack-plugin": "5.6.6",
"husky": "9.1.7",
"jest": "29.7.0",
"jest-environment-jsdom": "30.3.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"caption": "cyRespond to a property possession claim",
"pageTitle": "cyYour postal address",
"legend": "cyIs your correspondence address ",
"legend": "cyIs your correspondence address {{ formattedAddressStr }}",
"legendNa": "cyWhat’s your correspondence address?",
"legend.hint": "cyThis is the address provided by Treetops Housing",
"legend.hintNa": "cyYour correspondence address is your postal address.",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"caption": "Respond to a property possession claim",
"pageTitle": "Your postal address",
"legend": "Is your correspondence address ",
"legend": "Is your correspondence address {{ formattedAddressStr }}",
"legendNa": "What’s your correspondence address?",
"legend.hint": "This is the address provided by Treetops Housing",
"legend.hintNa": "Your correspondence address is your postal address.",
Expand Down
9 changes: 6 additions & 3 deletions src/main/services/ccdCase.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ export interface CcdUserCases {

/** Address shape used in CCD case data (property, defendant, etc.). */
export interface CcdCaseAddress {
AddressLine1: string;
AddressLine1?: string;
AddressLine2?: string;
AddressLine3?: string;
PostTown: string;
PostTown?: string;
County?: string;
PostCode: string;
PostCode?: string;
Country?: string;
}

Expand Down Expand Up @@ -91,6 +91,8 @@ export interface CcdClaimantEnteredDefendantDetails {
nameKnown?: YesNoValue;
firstName?: string;
lastName?: string;
address?: CcdCaseAddress | Record<string, never>;
addressKnown?: YesNoValue;
}

/** Defendant party contact details (name/address known flags and values). */
Expand All @@ -108,6 +110,7 @@ export interface CcdDefendantParty {

/** Defendant responses (e.g. receivedFreeLegalAdvice). */
export interface CcdDefendantResponses {
correspondenceAddressConfirmation?: YesNoValue;
tenancyTypeCorrect?: YesNoNotSureValue;
tenancyType?: string;
freeLegalAdvice?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

<form method="post" action="{{ url }}" novalidate>
{% set hasAddressErrors = errors['correspondenceAddressConfirm.addressLine1'] or errors['correspondenceAddressConfirm.townOrCity'] or errors['correspondenceAddressConfirm.postcode'] %}
{% set hasPrepopulatedAddress = correspondenceAddressLine1 or correspondenceAddressLine2 or correspondenceTownOrCity or correspondenceCounty or correspondencePostcode %}
{% set postcodeFinderHtml %}
<div class="postcode-container govuk-!-margin-top-4" data-address-component data-name-prefix="correspondence">
<h2 class="govuk-heading-m">{{ labels.enterAddress }}</h2>
Expand All @@ -36,21 +35,21 @@
<span class="govuk-visually-hidden">Error:</span> {{ clientErrors.postcodeNotFound }}
</p>
<div class="govuk-input__wrapper">
<input class="govuk-input govuk-input--width-10"
id="correspondence-lookupPostcode"
name="lookupPostcode"
type="text"
<input class="govuk-input govuk-input--width-10"
id="correspondence-lookupPostcode"
name="lookupPostcode"
type="text"
autocomplete="postal-code"
aria-describedby="correspondence-lookup-postcode-error correspondence-postcode-error"/>
<button class="govuk-button govuk-!-margin-left-2 govuk-!-margin-bottom-0"
<button class="govuk-button govuk-!-margin-left-2 govuk-!-margin-bottom-0"
id="correspondence-findAddressBtn"
data-module="govuk-button"
data-module="govuk-button"
type="button">
{{ buttons.findAddress }}
</button>
</div>
</div>

<div id="correspondence-addressSelectContainer" hidden>
<div class="govuk-form-group govuk-!-margin-bottom-2" id="correspondence-selectedAddress-form-group">
<label class="govuk-label" for="correspondence-selectedAddress">
Expand All @@ -64,14 +63,14 @@
</select>
</div>
</div>

<input type="hidden" id="correspondence-addressesFoundFlag" name="addressesFoundFlag" value="false" />

{% set manualAddressFieldsHtml %}
<p class="govuk-body">{{ labels.enterManuallySubText }}</p>
<div class="address-form" id="correspondence-addressForm">
<h2 class="govuk-heading-m govuk-!-margin-top-2">{{ labels.addressHeading }}</h2>

{{ govukInput({
id: 'correspondence-addressLine1',
name: 'correspondenceAddressConfirm.addressLine1',
Expand Down Expand Up @@ -142,18 +141,18 @@
}) }}
</div>
{% endset %}

{{ govukDetails({
summaryText: labels.enterManually,
html: manualAddressFieldsHtml,
id: "correspondence-enterManuallyDetails",
open: hasAddressErrors or hasPrepopulatedAddress
open: hasAddressErrors or isManualOpen
}) }}
</div>
{% endset %}

<span class="govuk-caption-xl">{{ caption or serviceName }}</span>

<span class="govuk-caption-l">{{ caption or serviceName }}</span>
{% if isAddressKnown %}
{% if subtitle %}<p class="govuk-body">{{ subtitle }}</p>{% endif %}
{% for field in fields %}
Expand Down
Loading
Loading