bcgov / entity

ServiceBC Registry Team working on Legal Entities
Apache License 2.0
23 stars 57 forks source link

UI - Review and Submit Transport Permit QS #18345

Closed mstanton1 closed 2 months ago

mstanton1 commented 6 months ago

For qualified suppliers

Note: Does not cover submission of Change of Location

PCC199 commented 3 months ago

Hey team! Please add your planning poker estimate with Zenhub @cameron-eyds @chdivyareddy @dimak1 @doug-lovett

dimak1 commented 3 months ago

Successfully submit the Transport Permit as QS.

Screenshot 2024-02-08 at 16.05.07.png
dimak1 commented 3 months ago

@LizGovier @saragunnarsson ready for UXA: https://bcregistry-assets-dev--pr-1727-g5fqq8uy.web.app

saragunnarsson commented 3 months ago

Thanks @dimak1 I'll check it out!

saragunnarsson commented 3 months ago

Hey @dimak1 Just a few small things noted below:

image.png image.png
dimak1 commented 3 months ago

Thanks @saragunnarsson, I will look into these.

dimak1 commented 3 months ago

@saragunnarsson all updates are done, except one. Link: https://bcregistry-assets-dev--pr-1727-g5fqq8uy.web.app/

Authorization styling is probably broken because of a Vue3 upgrade. This Authorization component is reused across many flows, and (since it is not a breaking change) to keep the other work going, we created a general post-upgrade UI/UX fixes ticket, so maybe we can add this styling fix there? #18903

saragunnarsson commented 3 months ago

@dimak1 I see, that's all good. I still see the tax certificate on the move within the same park..but other than that it looks good!

image.png
dimak1 commented 3 months ago

@saragunnarsson hmm that should be fixed, checking...

dimak1 commented 3 months ago

@saragunnarsson I just got clarification from @LizGovier that Tax Certificate would not show only if the current location of the home is Dealer's / Manufacturer's lot. So, in this case (screenshot) it would show.

dimak1 commented 3 months ago

@saragunnarsson @LizGovier if there are no outstanding issues, please let me know, I will merge the changes and deploy to DEV. Thank you

saragunnarsson commented 3 months ago

ahh I see, sorry about that @dimak1 - then this can move along to RFQA

chdivyareddy commented 3 months ago

Hey @dimak1 , I'm seeing the following error for the QS account transport permit submission in TEST. Can you please take a look, thanks!!

MHR 108107 in TEST: BCREG0051 (QS Test Account)

errorMessage "API backend third party service error." rootCause "detail:[Additional validation: The existing location must be a dealer or manufacturer lot for this registration. ],message:003: Registration request data validation errors. "

dimak1 commented 3 months ago

Hi @chdivyareddy I had this error as well, and asked @doug-lovett about it. It is basically the user role issue.

Only the Manufacturer can file this type of Permit. There are some rules, the API catches them, but UI does not. Maybe there are some UI improvements we can make it more clear @LizGovier

Screenshot 2024-02-14 at 16 17 37

LizGovier commented 3 months ago

@dimak1 Regarding this UX A question

@saragunnarsson I just got clarification from @LizGovier that Tax Certificate would not show only if the current location of the home is Dealer's / Manufacturer's lot. So, in this case (screenshot) it would show.

The question you asked me did not reflect what Sara was asking. The flow for moving within the same Manufactured home park does not contain a tax certificate component, therefor you would not see this on the review and confirm page.

Screen Shot 2024-02-14 at 8.27.22 PM.png
LizGovier commented 3 months ago

@chdivyareddy and @dimak1

There is ticket #19626 that covers QS restrictions (design link) that Cameron is working on.

chdivyareddy commented 3 months ago

@dimak1 @LizGovier , the above error occurred when submitting the location type Transport Permit (Dealer's / Manufacturer's lot) not the manufactured home park.

LizGovier commented 3 months ago

@chdivyareddy, is this is regarding the role that Dima mentioned above?

Hi @chdivyareddy I had this error as well, and asked @doug-lovett about it. It is basically the user role issue.

Only the Manufacturer can file this type of Permit. There are some rules, the API catches them, but UI does not. Maybe there are some UI improvements we can make it more clear @LizGovier

Is so, then it looks like Cameron is working on ticket #19626 that covers QS restrictions depending on the QS type (Lawyer/Notary, Manufacture, Dealer)

chdivyareddy commented 3 months ago

@LizGovier thanks for clarifying!!

dimak1 commented 3 months ago

@saragunnarsson here is the new link with fixes for Tax Certificate date on the Review page: https://bcregistry-assets-dev--pr-1737-j34z4vpv.web.app/

saragunnarsson commented 3 months ago

Looking good @dimak1 ! Moving this along to rfqa

chdivyareddy commented 2 months ago

Hey @dimak1 , Transport permit location type is working as expected, but when the location type is "Transport Permit - Moving within the same Manufactured Home Park". Can you please take a look, thanks!!

image.png

{ "errorMessage": "API backend third party service error.", "rootCause": "detail:[Additional validation: Dealer/manufacturer name, band name, reserve number, parcel ID, and LTSA details are not allowed with a MH_PARK location type. ],message:003: Registration request data validation errors. " }

When I navigate back, this is the validation bug I'm seeing:

image.png
dimak1 commented 2 months ago

@chdivyareddy thanks, I will take a look, which MHR number is this?

dimak1 commented 2 months ago

@chdivyareddy I fixed the data preseravtion (for Pad) and PR is opened.

For the submission issue, I was able to reproduce it with a different error. Most likely, it's an issue with the QS sub-roles. The roles specify which Permit can be filed. In UI we don't have a way to distinguish but, but API blocks it, with different error messages (depending on role and payload data).

Screenshot 2024-02-20 at 15.30.27.png
chdivyareddy commented 2 months ago

@dimak1 , thanks for the quick fix, the issue was with MHR 065230 in DEV.

dimak1 commented 2 months ago

@chdivyareddy the Bcreg0018 (MyMhrTestBusiness) is Lawyer and Notary QS, so they should be able to file any Permit. I will look into it.

doug-lovett commented 2 months ago

@dimak1 to avoid any API issues mapping the access group from the JWT roles, please use these accounts for testing the different qualified suppliers. After a status meeting discussion last week Divya created them. BCREG0050 - QS Home Dealer Account (ID: 3249) BCREG0062 - QS Lawyers and Notaries Account (ID: 3248) BCREG0061 - QS Manufacturer Account (ID:3250)

dimak1 commented 2 months ago

@chdivyareddy Fixed the payload data and was able to submit using BCREG0062 (Transport Permit - Moving within the same).

chdivyareddy commented 2 months ago

Verified in DEV!

image.png