bcgov / bcgov/STRR

CR: When displaying rental unit address on examiner dashboard, also display validation address below

Open
#1,491 0 comments 0 reactions 1 assignee Claimed by @pasherwo View on GitHub
Q1 STR UX Design
Dominant language
Python
Stars
2
Forks
22
Avg merge
2d 35m
Merged PRs (30d)
11

Description

**Business Problem**
Many times, the Rental Unit address entered for Hosts and Strata Platform Hotel applications and registrations looks like a proper address, but the Validation of the way the address was entered in the application is keeping it from being recognized as a valid address. This causes the renewal applications to fail with an error.

**Business Value**
In order for the examiner to see how the address was entered, it would be helpful for the examiner dashboard to display the Validation Address below the rental unit address (above the Local Government Name). That way they can see easily that the address was not entered correctly and can either fix it or instruct the host to fix it.

**Business Requirement**
As an Examiner
I want to see the Validation Address under the rental Unit address and above the Local Government Name on all applications and registrations in the Examiner dashboard for Hosts and Strata Platform Hotels. The Validation address should be broken down as follows:

Example address entered incorrectly:
image.png
Viewing it in the Payload, it looks like this:
image.png
Display Validation Address as:
Unit Number: 6928
Street Number:
Street Name: Terazona Drive
Address Line 2: Kelowna
City: Lacasa Resort
Province: BC
Country: Canada
Postal Code: V1Z 3R8

The Validation address is view only, just to allow the Examiners to see how the address was entered.

## Acceptance Criteria

- [ ] **Scenario: Displaying Validation Address on Examiner Dashboard for Host Applications**
- Given an Examiner is viewing the details of a Host application or registration on the Examiner Dashboard
- And the application/registration has a Rental Unit Address and associated Validation Address data
- When the Examiner views the address section
- Then the "Validation Address" section should be displayed
- And the "Validation Address" section should be located directly below the "Rental Unit Address"
- And the "Validation Address" section should be located directly above the "Local Government Name"
- And the "Validation Address" should display the following components, each with its label, in the specified order:
- "Unit Number: [value from validation data]"
- "Street Number: [value from validation data]"
- "Street Name: [value from validation data]"
- "Address Line 2: [value from validation data]"
- "City: [value from validation data]"
- "Province: [value from validation data]"
- "Country: [value from validation data]"
- "Postal Code: [value from validation data]"
- And if a specific component's value is empty or null in the validation data, its corresponding field should be displayed as blank (e.g., "Street Number: ").
- And all fields within the "Validation Address" section should be read-only.

- [ ] **Scenario: Displaying Validation Address on Examiner Dashboard for Strata Platform Hotel Applications**
- Given an Examiner is viewing the details of a Strata Platform Hotel application or registration on the Examiner Dashboard
- And the application/registration has a Rental Unit Address and associated Validation Address data
- When the Examiner views the address section
- Then the "Validation Address" section should be displayed
- And the "Validation Address" section should be located directly below the "Rental Unit Address"
- And the "Validation Address" section should be located directly above the "Local Government Name"
- And the "Validation Address" should display the following components, each with its label, in the specified order:
- "Unit Number: [value from validation data]"
- "Street Number: [value from validation data]"
- "Street Name: [value from validation data]"
- "Address Line 2: [value from validation data]"
- "City: [value from validation data]"
- "Province: [value from validation data]"
- "Country: [value from validation data]"
- "Postal Code: [value from validation data]"
- And if a specific component's value is empty or null in the validation data, its corresponding field should be displayed as blank (e.g., "Street Number: ").
- And all fields within the "Validation Address" section should be read-only.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.