From c0b1c061adcf41d96b6aea603706f20797e69fa8 Mon Sep 17 00:00:00 2001 From: Cameron Bowler Date: Tue, 23 Apr 2024 07:52:16 -0700 Subject: [PATCH] Misc UXA for Exemptions --- ppr-ui/src/assets/svgs/ic_exemption2.svg | 4 ++++ ppr-ui/src/components/tables/common/TableRow.vue | 6 +++--- .../src/composables/exemption/useExemptions.ts | 2 +- ppr-ui/src/utils/feature-flags.ts | 16 ++++++++-------- ppr-ui/src/views/exemption/ExemptionReview.vue | 5 ++--- 5 files changed, 18 insertions(+), 15 deletions(-) create mode 100644 ppr-ui/src/assets/svgs/ic_exemption2.svg diff --git a/ppr-ui/src/assets/svgs/ic_exemption2.svg b/ppr-ui/src/assets/svgs/ic_exemption2.svg new file mode 100644 index 000000000..62be45a56 --- /dev/null +++ b/ppr-ui/src/assets/svgs/ic_exemption2.svg @@ -0,0 +1,4 @@ + + + + diff --git a/ppr-ui/src/components/tables/common/TableRow.vue b/ppr-ui/src/components/tables/common/TableRow.vue index 490bf0a3d..b45c581d2 100644 --- a/ppr-ui/src/components/tables/common/TableRow.vue +++ b/ppr-ui/src/components/tables/common/TableRow.vue @@ -502,7 +502,7 @@ exemption-icon Re-Register Home @@ -531,7 +531,7 @@ exemption-icon Residential Exemption @@ -546,7 +546,7 @@ exemption-icon Residential Exemption diff --git a/ppr-ui/src/composables/exemption/useExemptions.ts b/ppr-ui/src/composables/exemption/useExemptions.ts index 9717379d6..330bfe328 100644 --- a/ppr-ui/src/composables/exemption/useExemptions.ts +++ b/ppr-ui/src/composables/exemption/useExemptions.ts @@ -171,7 +171,7 @@ export const useExemptions = () => { reg => [APIMhrDescriptionTypes.RESIDENTIAL_EXEMPTION.toString(), APIMhrDescriptionTypes.NON_RESIDENTIAL_EXEMPTION.toString()].includes(reg.registrationDescription) && - (reg.statusType === MhApiStatusTypes.EXEMPT || reg.statusType === MhApiStatusTypes.ACTIVE) + [MhApiStatusTypes.EXEMPT, MhApiStatusTypes.ACTIVE, MhApiStatusTypes.FROZEN].includes(reg.statusType) ).length > 0 } diff --git a/ppr-ui/src/utils/feature-flags.ts b/ppr-ui/src/utils/feature-flags.ts index bea7d356c..5c18cd505 100644 --- a/ppr-ui/src/utils/feature-flags.ts +++ b/ppr-ui/src/utils/feature-flags.ts @@ -10,14 +10,14 @@ export const defaultFlagSet: LDFlagSet = { 'search-registration-number': true, 'search-serial-number': true, 'mhr-ui-enabled': true, // Mhr Search - default true: Should remove from codebase - 'mhr-registration-enabled': true, // Enables MHR table tab - 'mhr-staff-correction-enabled': true, // Enables access to staff mhr correction - 'mhr-transfer-enabled': true, // Enables changes to base MHR HomeOwners within the MHR Information flow - 'mhr-exemption-enabled': true, - 'mhr-non-res-exemption-enabled': true, // Enables Non-Residential Exemption for Staff - 'mhr-transport-permit-enabled': true, - 'mhr-amend-transport-permit-enabled': true, - 'mhr-user-access-enabled': true, + 'mhr-registration-enabled': false, // Enables MHR table tab + 'mhr-staff-correction-enabled': false, // Enables access to staff mhr correction + 'mhr-transfer-enabled': false, // Enables changes to base MHR HomeOwners within the MHR Information flow + 'mhr-exemption-enabled': false, + 'mhr-non-res-exemption-enabled': false, // Enables Non-Residential Exemption for Staff + 'mhr-transport-permit-enabled': false, + 'mhr-amend-transport-permit-enabled': false, + 'mhr-user-access-enabled': false, 'sentry-enable': false, // by default, no sentry logs 'banner-text': '' // by default, there is no banner text } diff --git a/ppr-ui/src/views/exemption/ExemptionReview.vue b/ppr-ui/src/views/exemption/ExemptionReview.vue index 1dc08755e..009bd728e 100644 --- a/ppr-ui/src/views/exemption/ExemptionReview.vue +++ b/ppr-ui/src/views/exemption/ExemptionReview.vue @@ -39,7 +39,7 @@ exemption-icon @@ -247,8 +247,7 @@ export default defineComponent({ const localState = reactive({ nonResidentialDisplayReason: computed((): string => { const reason = getMhrExemptionNote.value?.nonResidentialReason === 'Other' - ? `${getMhrExemptionNote.value?.nonResidentialReason} '${getMhrExemptionNote.value?.nonResidentialOther || - '(Not Entered)'}'` + ? `${getMhrExemptionNote.value?.nonResidentialOther || '(Not Entered)'}` : getMhrExemptionNote.value?.nonResidentialReason return`Reason for the Non-Residential Exemption: ${getMhrExemptionNote.value?.nonResidentialOption} - ${reason}` }),