From 7c1396aacf5649123e57502b2ecc5514c5a9a3d6 Mon Sep 17 00:00:00 2001 From: eve-git Date: Wed, 18 Feb 2026 11:55:43 -0800 Subject: [PATCH 1/6] update QualifiedSupplierTransferTypes --- ppr-ui/package.json | 2 +- ppr-ui/src/resources/transferTypes.ts | 91 ++++++++++++++++++--------- 2 files changed, 63 insertions(+), 30 deletions(-) diff --git a/ppr-ui/package.json b/ppr-ui/package.json index e95a09641..8b60fdf0c 100644 --- a/ppr-ui/package.json +++ b/ppr-ui/package.json @@ -1,6 +1,6 @@ { "name": "ppr-ui", - "version": "6.0.7", + "version": "6.0.8", "private": true, "appName": "Assets UI", "connectLayerName": "Core UI", diff --git a/ppr-ui/src/resources/transferTypes.ts b/ppr-ui/src/resources/transferTypes.ts index 02be8fa9d..5f60618bc 100644 --- a/ppr-ui/src/resources/transferTypes.ts +++ b/ppr-ui/src/resources/transferTypes.ts @@ -1,6 +1,7 @@ import type { TransferTypeSelectIF } from '@/interfaces' import { ApiTransferTypes, UITransferTypes } from '@/enums/transferTypes' import { BlankSearchTypes } from '@/enums' +import { getFeatureFlag } from '@/utils' export const StaffTransferTypesOrg: Array = [ { @@ -454,69 +455,101 @@ export const StaffTransferTypes: Array = [ } ] -export const ClientTransferTypes: Array = [ +const transferDueToDeathTypes: Array = [ { class: 'transfer-type-list-header', disabled: true, divider: false, - group: 1, + group: 2, transferType: BlankSearchTypes.BLANK1 as any, - textLabel: 'Transfer' as any, + textLabel: 'Transfer Due to Death' as any, color: 'primary' }, { divider: false, disabled: false, - transferType: ApiTransferTypes.SALE_OR_GIFT, - textLabel: UITransferTypes.SALE_OR_GIFT, - group: 1, + transferType: ApiTransferTypes.SURVIVING_JOINT_TENANT, + textLabel: UITransferTypes.SURVIVING_JOINT_TENANT, + group: 2, tooltip: { title: 'Supporting Documents Required', - bullets: ['Transfer form', 'Bill of sale', 'Transfer fee'] + bullets: ['Ownership Transfer or Change form', + 'Original or certified copy of death certificate issued from Canada or the United States.'] } - } -] - -export const QualifiedSupplierTransferTypes: Array = [ + }, { - class: 'transfer-type-list-header', - disabled: true, divider: false, - group: 1, - transferType: BlankSearchTypes.BLANK1 as any, - textLabel: 'Transfer' as any, - color: 'primary' + disabled: false, + transferType: ApiTransferTypes.TO_EXECUTOR_PROBATE_WILL, + textLabel: UITransferTypes.TO_EXECUTOR_PROBATE_WILL, + group: 2, + tooltip: { + title: 'Supporting Documents Required', + bullets: ['Ownership Transfer or Change form', + 'Court certified true copy of the Grant of Probate with the will attached.', + 'Original or certified copy of death certificate issued from Canada or the United States ' + + 'for deceased joint tenants, if any, except for the person who last died. '] + } }, { divider: false, disabled: false, - transferType: ApiTransferTypes.SALE_OR_GIFT, - textLabel: UITransferTypes.SALE_OR_GIFT, - group: 1, + transferType: ApiTransferTypes.TO_EXECUTOR_UNDER_25K_WILL, + textLabel: UITransferTypes.TO_EXECUTOR_UNDER_25K_WILL, + group: 2, tooltip: { title: 'Supporting Documents Required', - bullets: ['Ownership Transfer or Change form', 'Bill of Sale'] + bullets: ['Ownership Transfer or Change form', + 'Original signed Affidavit of Executor form', + 'Certified true copy of will', + 'Original or certified copy of death certificate issued from Canada or the United States.' + ], + note: 'Value of the estate must be no more than $25,000, ' + + 'including the total value of the manufactured home.' } }, + { + divider: false, + disabled: false, + transferType: ApiTransferTypes.TO_ADMIN_NO_WILL, + textLabel: UITransferTypes.TO_ADMIN_NO_WILL, + group: 2, + tooltip: { + title: 'Supporting Documents Required', + bullets: ['Ownership Transfer or Change form', + 'Certified true copy of Grant of Administration issued by the court', + 'Affidavit of Administration with list of Assets and Liabilities', + 'Original or certified copy of death certificate issued from Canada or the United States ' + + 'for deceased joint tenants, if any, except for the person who last died.' + ] + } + } +] + +export const ClientTransferTypes: Array = [ { class: 'transfer-type-list-header', disabled: true, divider: false, - group: 2, - transferType: BlankSearchTypes.BLANK2 as any, - textLabel: 'Transfer Due to Death' as any, + group: 1, + transferType: BlankSearchTypes.BLANK1 as any, + textLabel: 'Transfer' as any, color: 'primary' }, { divider: false, disabled: false, - transferType: ApiTransferTypes.SURVIVING_JOINT_TENANT, - textLabel: UITransferTypes.SURVIVING_JOINT_TENANT, - group: 2, + transferType: ApiTransferTypes.SALE_OR_GIFT, + textLabel: UITransferTypes.SALE_OR_GIFT, + group: 1, tooltip: { title: 'Supporting Documents Required', - bullets: ['Ownership Transfer or Change form', - 'Original or certified copy of death certificate issued from Canada or the United States.'] + bullets: ['Transfer form', 'Bill of sale', 'Transfer fee'] } } ] + +export const QualifiedSupplierTransferTypes: Array = [ + ...ClientTransferTypes, + ...(getFeatureFlag('mhr-transfer-enable-tod') ? transferDueToDeathTypes : []) +]; From 785015c925fff1f237055779b71f67d1205b03b9 Mon Sep 17 00:00:00 2001 From: eve-git Date: Wed, 18 Feb 2026 12:30:48 -0800 Subject: [PATCH 2/6] update --- ppr-ui/src/components/mhrTransfers/TransferType.vue | 4 ++-- .../composables/mhrInformation/useMhrInformation.ts | 2 +- ppr-ui/src/resources/transferTypes.ts | 10 ++++++---- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/ppr-ui/src/components/mhrTransfers/TransferType.vue b/ppr-ui/src/components/mhrTransfers/TransferType.vue index 10682eaed..d549c1cb6 100644 --- a/ppr-ui/src/components/mhrTransfers/TransferType.vue +++ b/ppr-ui/src/components/mhrTransfers/TransferType.vue @@ -302,9 +302,9 @@ export default defineComponent({ : StaffTransferTypesOrg case isRoleQualifiedSupplierLawyersNotaries.value: return isMiscTransfersEnabled - ? QualifiedSupplierTransferTypes.filter(item => + ? QualifiedSupplierTransferTypes().filter(item => localState.displayGroup[item.group] || item.class === 'transfer-type-list-header') - : QualifiedSupplierTransferTypes + : QualifiedSupplierTransferTypes() default: return ClientTransferTypes } diff --git a/ppr-ui/src/composables/mhrInformation/useMhrInformation.ts b/ppr-ui/src/composables/mhrInformation/useMhrInformation.ts index 8972d2059..86d8ec0c8 100644 --- a/ppr-ui/src/composables/mhrInformation/useMhrInformation.ts +++ b/ppr-ui/src/composables/mhrInformation/useMhrInformation.ts @@ -379,7 +379,7 @@ export const useMhrInformation = () => { case isRoleStaffReg.value: return StaffTransferTypes case isRoleQualifiedSupplierLawyersNotaries.value: - return QualifiedSupplierTransferTypes + return QualifiedSupplierTransferTypes() default: return ClientTransferTypes } diff --git a/ppr-ui/src/resources/transferTypes.ts b/ppr-ui/src/resources/transferTypes.ts index 5f60618bc..b9bb29738 100644 --- a/ppr-ui/src/resources/transferTypes.ts +++ b/ppr-ui/src/resources/transferTypes.ts @@ -549,7 +549,9 @@ export const ClientTransferTypes: Array = [ } ] -export const QualifiedSupplierTransferTypes: Array = [ - ...ClientTransferTypes, - ...(getFeatureFlag('mhr-transfer-enable-tod') ? transferDueToDeathTypes : []) -]; +export const QualifiedSupplierTransferTypes = (): Array => { + return [ + ...ClientTransferTypes, + ...(getFeatureFlag('mhr-transfer-enable-tod') ? transferDueToDeathTypes : []) + ]; +}; From 0e6f650c4fc82159c57b79ccf270e220aab09cd2 Mon Sep 17 00:00:00 2001 From: eve-git Date: Wed, 18 Feb 2026 12:36:26 -0800 Subject: [PATCH 3/6] update according to code review --- ppr-ui/src/resources/transferTypes.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ppr-ui/src/resources/transferTypes.ts b/ppr-ui/src/resources/transferTypes.ts index b9bb29738..82483c1ed 100644 --- a/ppr-ui/src/resources/transferTypes.ts +++ b/ppr-ui/src/resources/transferTypes.ts @@ -461,7 +461,7 @@ const transferDueToDeathTypes: Array = [ disabled: true, divider: false, group: 2, - transferType: BlankSearchTypes.BLANK1 as any, + transferType: BlankSearchTypes.BLANK2 as any, textLabel: 'Transfer Due to Death' as any, color: 'primary' }, @@ -553,5 +553,5 @@ export const QualifiedSupplierTransferTypes = (): Array => return [ ...ClientTransferTypes, ...(getFeatureFlag('mhr-transfer-enable-tod') ? transferDueToDeathTypes : []) - ]; -}; + ] +} From 1a70ddb4024956488ad4922595a9d5146554ee1b Mon Sep 17 00:00:00 2001 From: eve-git Date: Wed, 18 Feb 2026 12:41:31 -0800 Subject: [PATCH 4/6] update FF --- ppr-ui/src/utils/feature-flags.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ppr-ui/src/utils/feature-flags.ts b/ppr-ui/src/utils/feature-flags.ts index 5d5228f21..99b3b84d6 100644 --- a/ppr-ui/src/utils/feature-flags.ts +++ b/ppr-ui/src/utils/feature-flags.ts @@ -7,6 +7,7 @@ import { initialize } from 'launchdarkly-js-client-sdk' export const defaultFlagSet: LDFlagSet = { 'enable-manage-party-codes': false, 'enable-analyst-queue': false, + 'mhr-transfer-enable-tod': false, 'banner-text': '' // by default, there is no banner text } /** From 226bbf634941abee7305dbb7f17b54280c5492f3 Mon Sep 17 00:00:00 2001 From: eve-git Date: Wed, 18 Feb 2026 12:48:33 -0800 Subject: [PATCH 5/6] update --- ppr-ui/tests/unit/MhrInformation.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ppr-ui/tests/unit/MhrInformation.spec.ts b/ppr-ui/tests/unit/MhrInformation.spec.ts index f9eb2e375..e30b5949a 100644 --- a/ppr-ui/tests/unit/MhrInformation.spec.ts +++ b/ppr-ui/tests/unit/MhrInformation.spec.ts @@ -170,7 +170,7 @@ describe.skip('Mhr Information', async () => { await store.setUserProductSubscriptionsCodes([ProductCode.LAWYERS_NOTARIES]) await nextTick() - expect(transferTypeComponent.vm.transferTypesSelector).toStrictEqual(QualifiedSupplierTransferTypes) + expect(transferTypeComponent.vm.transferTypesSelector).toStrictEqual(QualifiedSupplierTransferTypes()) // reset staff role await store.setAuthRoles([AuthRoles.MHR]) }) From bbfe592e952234648905cb5256a1a9249ec93fba Mon Sep 17 00:00:00 2001 From: eve-git Date: Wed, 18 Feb 2026 14:31:06 -0800 Subject: [PATCH 6/6] refactor: reorganize transfer types and consolidate due to death types --- ppr-ui/src/resources/transferTypes.ts | 187 ++++---------------------- 1 file changed, 27 insertions(+), 160 deletions(-) diff --git a/ppr-ui/src/resources/transferTypes.ts b/ppr-ui/src/resources/transferTypes.ts index 82483c1ed..2c8d9a784 100644 --- a/ppr-ui/src/resources/transferTypes.ts +++ b/ppr-ui/src/resources/transferTypes.ts @@ -3,27 +3,8 @@ import { ApiTransferTypes, UITransferTypes } from '@/enums/transferTypes' import { BlankSearchTypes } from '@/enums' import { getFeatureFlag } from '@/utils' -export const StaffTransferTypesOrg: Array = [ - { - class: 'transfer-type-list-header', - disabled: true, - divider: false, - group: 1, - transferType: BlankSearchTypes.BLANK1 as any, - textLabel: 'Transfer' as any, - color: 'primary' - }, - { - divider: false, - disabled: false, - transferType: ApiTransferTypes.SALE_OR_GIFT, - textLabel: UITransferTypes.SALE_OR_GIFT, - group: 1, - tooltip: { - title: 'Supporting Documents Required', - bullets: ['Ownership Transfer or Change form', 'Bill of Sale'] - } - }, + +const transferDueToDeathTypes: Array = [ { class: 'transfer-type-list-header', disabled: true, @@ -94,6 +75,30 @@ export const StaffTransferTypesOrg: Array = [ } ] +export const StaffTransferTypesOrg: Array = [ + { + class: 'transfer-type-list-header', + disabled: true, + divider: false, + group: 1, + transferType: BlankSearchTypes.BLANK1 as any, + textLabel: 'Transfer' as any, + color: 'primary' + }, + { + divider: false, + disabled: false, + transferType: ApiTransferTypes.SALE_OR_GIFT, + textLabel: UITransferTypes.SALE_OR_GIFT, + group: 1, + tooltip: { + title: 'Supporting Documents Required', + bullets: ['Ownership Transfer or Change form', 'Bill of Sale'] + } + }, + ...transferDueToDeathTypes +] + export const StaffTransferTypes: Array = [ // Bill Of Sale Transfers { @@ -207,74 +212,7 @@ export const StaffTransferTypes: Array = [ }, // Transfers Due to Death - { - class: 'transfer-type-list-header', - disabled: true, - divider: false, - group: 2, - transferType: BlankSearchTypes.BLANK2 as any, - textLabel: 'Transfers Due to Death' as any, - color: 'primary' - }, - { - divider: false, - disabled: false, - transferType: ApiTransferTypes.SURVIVING_JOINT_TENANT, - textLabel: UITransferTypes.SURVIVING_JOINT_TENANT, - group: 2, - tooltip: { - title: 'Supporting Documents Required', - bullets: ['Ownership Transfer or Change form', - 'Original or certified copy of death certificate issued from Canada or the United States.'] - } - }, - { - divider: false, - disabled: false, - transferType: ApiTransferTypes.TO_EXECUTOR_PROBATE_WILL, - textLabel: UITransferTypes.TO_EXECUTOR_PROBATE_WILL, - group: 2, - tooltip: { - title: 'Supporting Documents Required', - bullets: ['Ownership Transfer or Change form', - 'Court certified true copy of the Grant of Probate with the will attached.', - 'Original or certified copy of death certificate issued from Canada or the United States ' + - 'for deceased joint tenants, if any, except for the person who last died. '] - } - }, - { - divider: false, - disabled: false, - transferType: ApiTransferTypes.TO_EXECUTOR_UNDER_25K_WILL, - textLabel: UITransferTypes.TO_EXECUTOR_UNDER_25K_WILL, - group: 2, - tooltip: { - title: 'Supporting Documents Required', - bullets: ['Ownership Transfer or Change form', - 'Original signed Affidavit of Executor form', - 'Certified true copy of will', - 'Original or certified copy of death certificate issued from Canada or the United States.' - ], - note: 'Value of the estate must be no more than $25,000, ' + - 'including the total value of the manufactured home.' - } - }, - { - divider: false, - disabled: false, - transferType: ApiTransferTypes.TO_ADMIN_NO_WILL, - textLabel: UITransferTypes.TO_ADMIN_NO_WILL, - group: 2, - tooltip: { - title: 'Supporting Documents Required', - bullets: ['Ownership Transfer or Change form', - 'Certified true copy of Grant of Administration issued by the court', - 'Affidavit of Administration with list of Assets and Liabilities', - 'Original or certified copy of death certificate issued from Canada or the United States ' + - 'for deceased joint tenants, if any, except for the person who last died.' - ] - } - }, + ...transferDueToDeathTypes, // Other Transfers { @@ -455,77 +393,6 @@ export const StaffTransferTypes: Array = [ } ] -const transferDueToDeathTypes: Array = [ - { - class: 'transfer-type-list-header', - disabled: true, - divider: false, - group: 2, - transferType: BlankSearchTypes.BLANK2 as any, - textLabel: 'Transfer Due to Death' as any, - color: 'primary' - }, - { - divider: false, - disabled: false, - transferType: ApiTransferTypes.SURVIVING_JOINT_TENANT, - textLabel: UITransferTypes.SURVIVING_JOINT_TENANT, - group: 2, - tooltip: { - title: 'Supporting Documents Required', - bullets: ['Ownership Transfer or Change form', - 'Original or certified copy of death certificate issued from Canada or the United States.'] - } - }, - { - divider: false, - disabled: false, - transferType: ApiTransferTypes.TO_EXECUTOR_PROBATE_WILL, - textLabel: UITransferTypes.TO_EXECUTOR_PROBATE_WILL, - group: 2, - tooltip: { - title: 'Supporting Documents Required', - bullets: ['Ownership Transfer or Change form', - 'Court certified true copy of the Grant of Probate with the will attached.', - 'Original or certified copy of death certificate issued from Canada or the United States ' + - 'for deceased joint tenants, if any, except for the person who last died. '] - } - }, - { - divider: false, - disabled: false, - transferType: ApiTransferTypes.TO_EXECUTOR_UNDER_25K_WILL, - textLabel: UITransferTypes.TO_EXECUTOR_UNDER_25K_WILL, - group: 2, - tooltip: { - title: 'Supporting Documents Required', - bullets: ['Ownership Transfer or Change form', - 'Original signed Affidavit of Executor form', - 'Certified true copy of will', - 'Original or certified copy of death certificate issued from Canada or the United States.' - ], - note: 'Value of the estate must be no more than $25,000, ' + - 'including the total value of the manufactured home.' - } - }, - { - divider: false, - disabled: false, - transferType: ApiTransferTypes.TO_ADMIN_NO_WILL, - textLabel: UITransferTypes.TO_ADMIN_NO_WILL, - group: 2, - tooltip: { - title: 'Supporting Documents Required', - bullets: ['Ownership Transfer or Change form', - 'Certified true copy of Grant of Administration issued by the court', - 'Affidavit of Administration with list of Assets and Liabilities', - 'Original or certified copy of death certificate issued from Canada or the United States ' + - 'for deceased joint tenants, if any, except for the person who last died.' - ] - } - } -] - export const ClientTransferTypes: Array = [ { class: 'transfer-type-list-header',