From a6c5c9f3ef144d1dc62b1fa282f895fd0bb5155d Mon Sep 17 00:00:00 2001 From: Shaanjot Gill Date: Tue, 24 Sep 2024 08:03:02 -0700 Subject: [PATCH] added contact and foippa info modal Signed-off-by: Shaanjot Gill --- strr-web/components/common/InfoModal.vue | 7 +++++- strr-web/lang/en.json | 22 +++++++++++++++++ strr-web/package.json | 2 +- strr-web/pages/account-select.vue | 1 + strr-web/pages/create-account.vue | 30 ++++++++++++++++++++++++ strr-web/pages/finalization.vue | 1 + strr-web/pages/registry-dashboard.vue | 11 +++++++++ 7 files changed, 72 insertions(+), 2 deletions(-) diff --git a/strr-web/components/common/InfoModal.vue b/strr-web/components/common/InfoModal.vue index ab143918..d80deb54 100644 --- a/strr-web/components/common/InfoModal.vue +++ b/strr-web/components/common/InfoModal.vue @@ -12,7 +12,12 @@ const props = defineProps<{ hideContactInfo?: boolean }>() -const { header, hideContactInfo = false, openButtonLabel, openButtonIcon = 'i-mdi-help-circle-outline' } = props +const { + header, + hideContactInfo = true, + openButtonLabel, + openButtonIcon = props.openButtonIcon || 'i-mdi-help-circle-outline' +} = props const handleCloseModal = () => { isOpen.value = false diff --git a/strr-web/lang/en.json b/strr-web/lang/en.json index dc8bcdb9..6436568b 100644 --- a/strr-web/lang/en.json +++ b/strr-web/lang/en.json @@ -39,6 +39,13 @@ "pending": "APPLIED", "submitted": "SUBMITTED", "paid": "PAID" + }, + "modal":{ + "contactInfo": { + "header": "Need Help?", + "openButtonLabel": "Help with using this dashboard", + "contactUs": "If you need help with setting up your BC Registries and Online Services account, please contact us." + } } }, "tos": { @@ -184,6 +191,21 @@ "eligibility": "Principal Residence", "review": "Review and Confirm" }, + "modal":{ + "bcrosFoippaNotice": { + "header": "Information Collection Notice", + "openButtonLabel": "Information collection notice", + "noticeTextFirstPart": "Any personal information required is collected to support the administration and enforcement of the ", + "noticeTextSecondPart": ", under the authority of section 33(1) of that Act. Any questions about the collection of any information can be directed to the Executive Director of the Short-Term Rental Branch, at", + "email": "strbranch{'@'}gov.bc.ca", + "actName": "Short-Term Rental Accommodations Act" + }, + "contactInfo": { + "header": "Need Help?", + "openButtonLabel": "Help with registering a rental unit", + "contactUs": "If you need help with setting up your BC Registries and Online Services account, please contact us." + } + }, "applicationConfirm": { "submitted": "Application Submitted", "altTextConfirm": "Confirmation check mark", diff --git a/strr-web/package.json b/strr-web/package.json index 51e2517b..5f91fd14 100644 --- a/strr-web/package.json +++ b/strr-web/package.json @@ -1,6 +1,6 @@ { "name": "strr-web", - "version": "0.1.27", + "version": "0.1.28", "description": "Short Term Rental Registration UI - Mono repo workspace", "scripts": { "preinstall": "npx only-allow pnpm", diff --git a/strr-web/pages/account-select.vue b/strr-web/pages/account-select.vue index 0eb05ebb..d870c235 100644 --- a/strr-web/pages/account-select.vue +++ b/strr-web/pages/account-select.vue @@ -6,6 +6,7 @@

diff --git a/strr-web/pages/create-account.vue b/strr-web/pages/create-account.vue index 6e747a3e..455c4345 100644 --- a/strr-web/pages/create-account.vue +++ b/strr-web/pages/create-account.vue @@ -11,6 +11,35 @@ data-test-id="create-application-title" class="mobile:pb-[20px]" /> +

+ +

+ {{ t('createAccount.modal.contactInfo.contactUs') }} +

+
+
+ +

+ {{ $t('createAccount.modal.bcrosFoippaNotice.noticeTextFirstPart') }} + {{ $t('createAccount.modal.bcrosFoippaNotice.actName') }} + {{ $t('createAccount.modal.bcrosFoippaNotice.noticeTextSecondPart') }} + + {{ t('createAccount.modal.bcrosFoippaNotice.email') }} + . +

+
+
import steps from '../page-data/create-account/steps' import { FormPageI } from '~/interfaces/form/form-page-i' +import InfoModal from '~/components/common/InfoModal.vue' const hasSecondaryContact: Ref = ref(false) const activeStepIndex: Ref = ref(0) diff --git a/strr-web/pages/finalization.vue b/strr-web/pages/finalization.vue index 61341d48..29ea05da 100644 --- a/strr-web/pages/finalization.vue +++ b/strr-web/pages/finalization.vue @@ -12,6 +12,7 @@

diff --git a/strr-web/pages/registry-dashboard.vue b/strr-web/pages/registry-dashboard.vue index c0336056..6209bdba 100644 --- a/strr-web/pages/registry-dashboard.vue +++ b/strr-web/pages/registry-dashboard.vue @@ -2,6 +2,16 @@

+ +

+ {{ tRegistryDashboard('modal.contactInfo.contactUs') }} +

+
import { ApplicationI, ApplicationStatusE } from '#imports' +import InfoModal from '~/components/common/InfoModal.vue' const { t } = useTranslation() const tRegistryDashboard = (translationKey: string) => t(`registryDashboard.${translationKey}`)