diff --git a/strr-web/components/bcros/form-section/contact-information/SummaryView.vue b/strr-web/components/bcros/form-section/contact-information/SummaryView.vue new file mode 100644 index 000000000..f11e3cfba --- /dev/null +++ b/strr-web/components/bcros/form-section/contact-information/SummaryView.vue @@ -0,0 +1,79 @@ + + + diff --git a/strr-web/components/bcros/form-section/property/SummaryView.vue b/strr-web/components/bcros/form-section/property/SummaryView.vue index 94d22f9a8..e6eda188c 100644 --- a/strr-web/components/bcros/form-section/property/SummaryView.vue +++ b/strr-web/components/bcros/form-section/property/SummaryView.vue @@ -62,7 +62,7 @@ const propertyAddressDetails = computed((): UnitAddressAPII => { diff --git a/strr-web/interfaces/account-i.ts b/strr-web/interfaces/account-i.ts index 969a863c7..18589a614 100644 --- a/strr-web/interfaces/account-i.ts +++ b/strr-web/interfaces/account-i.ts @@ -56,6 +56,8 @@ export interface OrgI { export interface ContactI { socialInsuranceNumber: string businessNumber: string + businessLegalName: string + contactType: HostContactTypeE dateOfBirth: string details: { emailAddress: string @@ -79,33 +81,8 @@ export interface ContactI { } } -interface UserTermsI { - isTermsOfUseAccepted: boolean - termsOfUseAcceptedVersion: string -} - -export interface ProfileI { - contacts: ContactI[] - created: string - firstname: string - id: number - idpUserid: string - keycloakGuid: string - lastname: string - loginSource: string - loginTime: string - modified: string - modifiedBy: string - type: string - userStatus: number - userTerms: UserTermsI - username: string - verified: boolean -} - export interface MeI { orgs: OrgI[] - profile: ProfileI settings: UserSettingsI[] } diff --git a/strr-web/interfaces/terms-of-service-i.ts b/strr-web/interfaces/terms-of-service-i.ts index ac9f0f547..d43c327b5 100644 --- a/strr-web/interfaces/terms-of-service-i.ts +++ b/strr-web/interfaces/terms-of-service-i.ts @@ -1,6 +1,4 @@ export interface TermsOfServiceI { isTermsOfUseAccepted: boolean termsOfUseAcceptedVersion: string - termsOfUseCurrentVersion?: string - termsOfUse?: string } diff --git a/strr-web/lang/en.json b/strr-web/lang/en.json index 0cc3f0c7a..69bfa082e 100644 --- a/strr-web/lang/en.json +++ b/strr-web/lang/en.json @@ -11,6 +11,14 @@ "formLabels": { "hostType": "Host Type", "contactName": "Contact Name", + "name": "Name", + "preferredName": "Preferred Name", + "dateOfBirth": "Date of Birth", + "socialInsuranceNumber": "Social Insurance Number", + "phoneNumber": "Phone Number", + "faxNumber": "Fax Number", + "emailAddress": "Email Address", + "mailingAddress": "Mailing Address", "businessDetails": "Business Details", "businessLegalName": "Business Legal Name", "businessLegalNameOptional" : "Business Legal Name (Optional)", diff --git a/strr-web/pages/account-select.vue b/strr-web/pages/account-select.vue index 33a38472c..8ad5058dc 100644 --- a/strr-web/pages/account-select.vue +++ b/strr-web/pages/account-select.vue @@ -42,7 +42,7 @@ const existingAccountsTitle = `${t('account.existingAccountSection.title')} (${u onMounted(() => { // if no sbc accounts navigate to sbc account creation - if (!me?.settings.length) { + if (!me?.orgs.length) { goToCreateSbcAccount() } }) diff --git a/strr-web/pages/application-details/[id]/index.vue b/strr-web/pages/application-details/[id]/index.vue index fd0d95fff..d84c653ba 100644 --- a/strr-web/pages/application-details/[id]/index.vue +++ b/strr-web/pages/application-details/[id]/index.vue @@ -48,7 +48,7 @@

{{ tApplicationDetails('applicationStatus') }}

-
+

@@ -58,125 +58,140 @@

-
+
+ + + + + + + + + -

- {{ tReview('propertyDetails') }} -

-
- - - -
- -

- {{ applicationDetails?.unitAddress.streetNumber }} {{ applicationDetails?.unitAddress.streetName }} - {{ applicationDetails?.unitAddress.unitNumber - ? `, ${applicationDetails?.unitAddress.unitNumber}` - : '' +

+

+ {{ tReview('propertyDetails') }} +

+
+ + + +
+ + +

+ +

+ + + + + +
+ + +

+ - +

+
+
+ +

+ {{ applicationDetails?.unitDetails.propertyType + ? tPropertyForm( + propertyTypeMap[applicationDetails?.unitDetails.propertyType as keyof PropertyTypeMapI] + ) + : '-' }}

-

- {{ applicationDetails?.unitAddress.addressLineTwo }} -

-

- {{ applicationDetails?.unitAddress.city || '-' }} - {{ applicationDetails?.unitAddress.province || '-' }} - {{ applicationDetails?.unitAddress.postalCode || '-' }} -

-

- {{ applicationDetails?.unitAddress.country - ? regionNamesInEnglish.of(applicationDetails?.unitAddress.country) - : '-' }} -

-
-
- - - - - -
- - -

- - -

+
- -

- {{ applicationDetails?.unitDetails.propertyType - ? tPropertyForm( - propertyTypeMap[applicationDetails?.unitDetails.propertyType as keyof PropertyTypeMapI] - ) - : '-' - }} -

-
-
+

{{ tApplicationDetails('principalResidence') }}

-
+

{{ @@ -203,99 +218,13 @@

- - - -
-

- {{ tApplicationDetails('primaryContact') }} -

-
-
- - - - -
-
-
- -
-
- -
-

- {{ tApplicationDetails('secondaryContact') }} -

-
-
- -

- {{ (applicationDetails ? getContactRows(applicationDetails?.secondaryContact): [])[0].name }} -

-
- -

- {{ (applicationDetails ? getContactRows(applicationDetails?.secondaryContact): [])[0].address }} -

-
- -

- {{ - (applicationDetails ? getContactRows(applicationDetails?.secondaryContact): [])[0]['Email Address'] - }} -

-
- -

- {{ - (applicationDetails ? getContactRows(applicationDetails?.secondaryContact): [])[0]['Phone Number'] - }} -

-
-
-
-
- -
-
+ +

{{ tApplicationDetails('documents') }}

-
+
@@ -317,7 +246,9 @@
+ + t(`createAccount.review.${translatio const { isExaminer } = storeToRefs(useBcrosKeycloak()) const { getChipFlavour } = useChipFlavour() -const regionNamesInEnglish = new Intl.DisplayNames(['en'], { type: 'region' }) - // Modified for unit tests, unable to mock route params in tests const applicationNumber = route.params.id?.toString() || '' @@ -395,7 +327,7 @@ const [application, applicationHistory]: [ApplicationI, FilingHistoryEventI[]] = setupBreadcrumbData(application) -const applicationDetails: HostApplicationDetailsI = application.registration +const applicationDetails = application.registration as HostApplicationDetailsI // Get Supporting Documents from the Application response const documents: DocumentUploadI[] = applicationDetails.documents || [] @@ -457,26 +389,4 @@ const downloadDocument = async (supportingDocument: DocumentUploadI) => { URL.revokeObjectURL(link.href) } -const getContactRows = (contactBlock: ContactI) => [{ - name: ` - ${contactBlock.name.firstName} - ${contactBlock.name.middleName - ? ` ${contactBlock.name.middleName} ` - : ' ' - } - ${contactBlock.name.lastName} - `, - address: ` - ${contactBlock.mailingAddress.address} - ${contactBlock.mailingAddress.addressLineTwo || ''} - ${contactBlock.mailingAddress.city} - ${contactBlock.mailingAddress.province} - ${contactBlock.mailingAddress.postalCode} - `, - 'Email Address': contactBlock.details.emailAddress, - 'Phone Number': displayPhoneAndExt(contactBlock.details.phoneNumber, contactBlock.details.extension) || '', - SIN: contactBlock.socialInsuranceNumber, - 'BN (GST)': contactBlock.businessNumber -}] - diff --git a/strr-web/pages/create-account.vue b/strr-web/pages/create-account.vue index 1acc93f3e..1b38a960c 100644 --- a/strr-web/pages/create-account.vue +++ b/strr-web/pages/create-account.vue @@ -132,7 +132,7 @@ const { createApplication } = useApplications() const submitInProgress = ref(false) onMounted(() => { // if no SBC accounts exist redirect to SBC account creation - if (!me?.settings.length) { + if (!me?.orgs.length) { goToCreateSbcAccount() } updateFees() diff --git a/strr-web/pages/registration-details/[id]/index.vue b/strr-web/pages/registration-details/[id]/index.vue index a290508a1..baecc85dc 100644 --- a/strr-web/pages/registration-details/[id]/index.vue +++ b/strr-web/pages/registration-details/[id]/index.vue @@ -20,7 +20,7 @@

{{ tApplicationDetails('registrationStatus') }}

-
+

{{ displayRegistrationStatus() }}

@@ -28,117 +28,7 @@
-
- -

- {{ tReview('propertyDetails') }} -

-
- - - -
- -

- {{ application?.unitAddress.streetNumber }} {{ application?.unitAddress.streetName }} - {{ application?.unitAddress.unitNumber ? `, ${application?.unitAddress.unitNumber}` : '' }} -

-

- {{ application?.unitAddress.addressLineTwo }} -

-

- {{ application?.unitAddress.city || '-' }} - {{ application?.unitAddress.province || '-' }} - {{ application?.unitAddress.postalCode || '-' }} -

-

- {{ application?.unitAddress.country - ? regionNamesInEnglish.of(application?.unitAddress.country) - : '-' }} -

-
-
- - - - - -
- - -

- - -

-
-
- -

- {{ application?.unitDetails.propertyType - ? tPropertyForm( - propertyTypeMap[application?.unitDetails.propertyType as keyof PropertyTypeMapI] - ) - : '-' - }} -

-
- -
+
- + + + + + + + +

- {{ tApplicationDetails('primaryContact') }} + {{ tReview('propertyDetails') }}

-
-
- -

{{ (application ? getContactRows(application?.primaryContact): [])[0].name }}

-
- -

{{ (application ? getContactRows(application?.primaryContact): [])[0].address }}

-
- -

{{ (application ? getContactRows(application?.primaryContact): [])[0]['Email Address'] }}

+
+ + + +
+ + +

- -

{{ (application ? getContactRows(application?.primaryContact): [])[0]['Phone Number'] }}

+
+ + + + + +
+ + +

+ - +

-
-
- +

+ {{ application?.unitDetails.propertyType + ? tPropertyForm( + propertyTypeMap[application?.unitDetails.propertyType as keyof PropertyTypeMapI] + ) + : '-' + }} +

+ +
- -
+ + +

- {{ tApplicationDetails('secondaryContact') }} + {{ tApplicationDetails('principalResidence') }}

-
-
- -

{{ (application ? getContactRows(application?.secondaryContact): [])[0].name }}

-
- -

{{ (application ? getContactRows(application?.secondaryContact): [])[0].address }}

-
- -

{{ (application ? getContactRows(application?.secondaryContact): [])[0]['Email Address'] }}

-
- -

{{ (application ? getContactRows(application?.secondaryContact): [])[0]['Phone Number'] }}

-
-
-
-
- +
+ +

+ {{ + application.principalResidence.isPrincipalResidence + ? tApplicationDetails('principalResidenceApplies') + : tApplicationDetails('principalResidenceNotApplies') + }} +

+
+ +

{{ application.principalResidence.nonPrincipalOption }}

+
+ +

{{ application.principalResidence.specifiedServiceProvider }}

+
+

{{ tApplicationDetails('documents') }}

-
+
@@ -227,7 +216,9 @@
+ +

{{ tApplicationDetails('filing') }}

-
+
t(`createAccount.review.${translatio const { isExaminer } = useBcrosKeycloak() const { getChipFlavour } = useChipFlavour() -const regionNamesInEnglish = new Intl.DisplayNames(['en'], { type: 'region' }) - const registrationId = route.params.id.toString() const { @@ -390,25 +382,4 @@ const displayRegistrationStatus = () => { : '-' return tStatuses(statusTranslation) } -const getContactRows = (contactBlock: ContactI) => [{ - name: ` - ${contactBlock.name.firstName} - ${contactBlock.name.middleName - ? ` ${contactBlock.name.middleName} ` - : ' ' - } - ${contactBlock.name.lastName} - `, - address: ` - ${contactBlock.mailingAddress.address} - ${contactBlock.mailingAddress.addressLineTwo} - ${contactBlock.mailingAddress.city} - ${contactBlock.mailingAddress.province} - ${contactBlock.mailingAddress.postalCode} - `, - 'Email Address': contactBlock.details.emailAddress, - 'Phone Number': displayPhoneAndExt(contactBlock.details.phoneNumber, contactBlock.details.extension) || '', - SIN: contactBlock.socialInsuranceNumber, - 'BN (GST)': contactBlock.businessNumber -}] diff --git a/strr-web/pages/registry-dashboard.vue b/strr-web/pages/registry-dashboard.vue index b54ce899e..5d2e1c8ba 100644 --- a/strr-web/pages/registry-dashboard.vue +++ b/strr-web/pages/registry-dashboard.vue @@ -89,11 +89,11 @@