Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KBV-366-update-address-confirm-page #105

Merged
merged 1 commit into from
May 4, 2022

Conversation

MattBidewell
Copy link
Contributor

@MattBidewell MattBidewell commented May 3, 2022

Proposed changes

What changed

changes to the design of the address confirm page to use the govuk summary component.
These changes are in a list of design changes. Additional logic changes are to come.

Why did it change

Align with design changes.

Issue tracking

image

@MattBidewell MattBidewell requested a review from a team as a code owner May 3, 2022 16:18
@sonarcloud
Copy link

sonarcloud bot commented May 3, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
59.5% 59.5% Duplication

}
locals.currentAddressRowValue = currentAddress.text;
locals.yearMovedRowValue = currentAddress.addressValidFrom;
locals.previousAddressRowValue = previousAddress?.text;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting variables for the govuk summery list here

@@ -63,7 +64,8 @@ class AddressConfirmController extends BaseController {
buildingNameNumber = address.buildingName || address.buildingNumber;
}

return `${buildingNameNumber}<br>${address.streetName},<br>${address.addressLocality},<br>${address.postalCode}<br>`;
const text = `${buildingNameNumber}<br>${address.streetName},<br>${address.addressLocality},<br>${address.postalCode}<br>`;
return { ...address, text };
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're returning the formatted text with the address data now rather than just the formatted text of the address.

items: [
{
href: "#",
text: translate("fields.address-confirm.change")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be added once we add the change links

@MattBidewell MattBidewell merged commit 89ac3da into main May 4, 2022
@MattBidewell MattBidewell deleted the KBV-366-update-address-confirmation-page branch May 4, 2022 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants