From ddb55b84b6f39b3f25a6adadc051d9b45e6763e1 Mon Sep 17 00:00:00 2001 From: Cameron Bowler Date: Mon, 16 Sep 2024 07:25:53 -0700 Subject: [PATCH 1/5] A11Y-UXA-Items --- ppr-ui/package-lock.json | 4 +-- ppr-ui/package.json | 2 +- .../HomeOwners/HomeOwnersTable.vue | 29 ++++++++++--------- .../src/components/tables/SearchHistory.vue | 27 +++++++---------- .../mhrInformation/useMhrInformation.ts | 5 ++-- ppr-ui/src/resources/tableHeaders.ts | 1 + .../views/newMhrRegistration/HomeOwners.vue | 2 -- ppr-ui/tests/unit/MhrRegistration.spec.ts | 2 -- .../unit/MhrRegistrationHomeOwners.spec.ts | 9 ------ 9 files changed, 32 insertions(+), 49 deletions(-) diff --git a/ppr-ui/package-lock.json b/ppr-ui/package-lock.json index fba5f0559..fde8f1d82 100644 --- a/ppr-ui/package-lock.json +++ b/ppr-ui/package-lock.json @@ -1,12 +1,12 @@ { "name": "ppr-ui", - "version": "3.2.55", + "version": "3.2.56", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ppr-ui", - "version": "3.2.55", + "version": "3.2.56", "dependencies": { "@bcrs-shared-components/input-field-date-picker": "^1.0.0", "@lemoncode/fonk": "^1.5.1", diff --git a/ppr-ui/package.json b/ppr-ui/package.json index e505969ed..2339f8a33 100644 --- a/ppr-ui/package.json +++ b/ppr-ui/package.json @@ -1,6 +1,6 @@ { "name": "ppr-ui", - "version": "3.2.55", + "version": "3.2.56", "private": true, "appName": "Assets UI", "sbcName": "SBC Common Components", diff --git a/ppr-ui/src/components/mhrRegistration/HomeOwners/HomeOwnersTable.vue b/ppr-ui/src/components/mhrRegistration/HomeOwners/HomeOwnersTable.vue index 57f7bdd4a..dde8861f4 100644 --- a/ppr-ui/src/components/mhrRegistration/HomeOwners/HomeOwnersTable.vue +++ b/ppr-ui/src/components/mhrRegistration/HomeOwners/HomeOwnersTable.vue @@ -145,7 +145,7 @@ -
-
{{ getHomeOwnerIcon(item.partyType) }} -
+ {{ item.individualName.first }} {{ item.individualName.middle }} {{ item.individualName.last }} -
-
-
+ + {{ getHomeOwnerIcon(item.partyType, true) }} @@ -196,7 +194,7 @@
{{ item.organizationName }}
-
+
@@ -1322,13 +1320,14 @@ export default defineComponent({ } tbody > tr > td > div > tr > td, - tbody > tr > td { + tbody > tr > td, + .owner-info { padding: 20px 0; border-radius: 0 !important; } .owner-row:not(:last-child) tr > td, - .bottom-border { + .bottom-border, .owner-info { border-bottom: thin solid rgba(0, 0, 0, 0.12); } @@ -1349,6 +1348,7 @@ export default defineComponent({ .owner-info { width: 100%; display: inline-flex; + align-items: baseline; td { white-space: normal; @@ -1415,6 +1415,7 @@ export default defineComponent({ } .owner-info { + align-items: baseline; min-width: 50rem; display: flex; } diff --git a/ppr-ui/src/components/tables/SearchHistory.vue b/ppr-ui/src/components/tables/SearchHistory.vue index ec6d4adb9..b8eedcba2 100644 --- a/ppr-ui/src/components/tables/SearchHistory.vue +++ b/ppr-ui/src/components/tables/SearchHistory.vue @@ -41,22 +41,17 @@ :class="{ 'added-search-effect': searchAdded && index === 0 }" > - - - - {{ isPprSearch(item) ? 'mdi-account-details' : 'mdi-home' }} - - - - {{ displaySearchValue(item.searchQuery) }} - - + + {{ isPprSearch(item) ? 'mdi-account-details' : 'mdi-home' }} + + { setShowGroups } = useHomeOwners(true) const { - isTransferToExecOrAdmin, isTransferDueToDeath, getCurrentOwnerGroupIdByOwnerId, isTransferNonGiftBillOfSale, @@ -482,8 +481,8 @@ export const useMhrInformation = () => { // Determine group tenancy type type: (ownerGroup.owners.filter(owner => owner.action === ActionTypes.REMOVED).length > 1 || getMhrTransferType.value?.transferType === ApiTransferTypes.SURVIVING_JOINT_TENANT) - ? isTransferToExecOrAdmin.value - ? ApiHomeTenancyTypes.NA + ? getMhrTransferType.value?.transferType === ApiTransferTypes.TO_EXECUTOR_PROBATE_WILL + ? ApiHomeTenancyTypes.NA : ApiHomeTenancyTypes.JOINT : getMhrTransferHomeOwnerGroups.value.length > 1 ? ApiHomeTenancyTypes.NA diff --git a/ppr-ui/src/resources/tableHeaders.ts b/ppr-ui/src/resources/tableHeaders.ts index f8997ac5c..3931c0314 100644 --- a/ppr-ui/src/resources/tableHeaders.ts +++ b/ppr-ui/src/resources/tableHeaders.ts @@ -897,6 +897,7 @@ export const homeOwnersTableHeaders: Array = [ { class: 'actions column-md', sortable: false, + text: '', value: 'actions' } ] diff --git a/ppr-ui/src/views/newMhrRegistration/HomeOwners.vue b/ppr-ui/src/views/newMhrRegistration/HomeOwners.vue index 14c732461..d87b6c24f 100644 --- a/ppr-ui/src/views/newMhrRegistration/HomeOwners.vue +++ b/ppr-ui/src/views/newMhrRegistration/HomeOwners.vue @@ -14,8 +14,6 @@