bcgov / bcgov/entity

UI - Bug - Transfer - Clear X group button not clearing the group for the only newly added owner

Open
#15,580 0 comments 0 reactions 0 assignees View on GitHub
Assets UX Assurance
Dominant language
JavaScript
Stars
23
Forks
62
Avg merge
24m
Merged PRs (30d)
1

Description

For all transfers where you can delete all existing owners and groups

Assuming all existing groups are deleted, whenever there is just one new owner in one new Group 1, they have the ability to "clear" the group completely with the X button in the Group dropdown and decide to be a Sole Owner instead, like how it currently works in the Initial Registration flow.

The clear X group button is creating a bug.

To replicate bug:

IF you open a transfer for a home with Tenants in Common (MHR 150411)
AND click the Delete All Owners/Groups button (or remove all existing owners and groups individually)
THEN Add a new owner to a new Group 1
THEN click the new owner's row to Edit that person
AND click the blue X clear button in that new owner's group dropdown
THEN the group should be cleared completely and that new owner should become a Sole Owner without a group and the new group 1 row should be removed completely and should not appear as a "Previous Owner" bar

The problem:

All existing owners/groups were deleted and the first new owner in a new group was created:

![Screen Shot 2023-03-09 at 11.08.16 AM.png](https://images.zenhubusercontent.com/5e1cd2cd5d67f0528e482520/3eb6ac20-afec-4e48-a966-351e2e642967)

in Edit mode on owner that is the only new owner in first new group:
![Screen Shot 2023-03-09 at 11.08.25 AM.png](https://images.zenhubusercontent.com/5e1cd2cd5d67f0528e482520/5cc7eba4-be93-44cd-92af-b28a8c8080e6)

click the Clear X button in the group dropdown and hit Done:
![Screen Shot 2023-03-09 at 11.08.29 AM.png](https://images.zenhubusercontent.com/5e1cd2cd5d67f0528e482520/b29dcfce-f7b1-4a9e-8c1d-7d8dc2ade7cd)

you'll notice the deleted group appears as a both a "previous owner group" and remains as a newly added group with the new owner:

![Screen Shot 2023-03-09 at 11.08.47 AM.png](https://images.zenhubusercontent.com/5e1cd2cd5d67f0528e482520/b4feb50e-3775-45ba-9ebe-1a51a87f95ca)

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

**Expected behaviour:**
when there is only one new owner in a new Group 1, we should be able to clear the group completely and be a sole owner instead.

Same situation if you newly more than one new owner into a new Group 1, and you remove all but one of the new owners, that only new owner remaining should have the same ability to clear the group and be a sole owner instead.

![Screen Shot 2023-03-09 at 11.07.42 AM.png](https://images.zenhubusercontent.com/5e1cd2cd5d67f0528e482520/c3f48ab1-25a4-4326-9d65-bf8a72f71a5b)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.