bcgov / entity

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

Create UI: New Default State for Restoration Type #15538

Closed JazzarKarim closed 1 month ago

JazzarKarim commented 1 year ago

As it currently stands, when we create a new restoration, a full restoration draft is created. (The user can easily change this in the UI.) new error relationships.PNG

UX team wants a new default state in which no restoration is selected. new default state.PNG

Note that having "no" type set initially may cause some components to display incorrectly. There may also be other dependencies on the restoration type. This is why we start with an initial type.

SB says: This is fixable but potentially a lot of work. Is it worth it?

jdyck-fw commented 1 year ago

When we create a draft, we give it a type. Which could add some complications to this.

OlgaPotiagalova commented 8 months ago

Leave it for now. Follow up with the UX team, but is low priority

severinbeauvais commented 1 month ago

deleted obsolete comment

severinbeauvais commented 1 month ago

deleted obsolete comment

severinbeauvais commented 1 month ago

@OlgaPotiagalova deleted obsolete comment

severinbeauvais commented 1 month ago

Test Notes

In Filings UI, try:

In Create UI, try:

jacqueline-williams-549 commented 1 month ago

This looks great, I was wondering if the spacing between the Restoration Type radio buttons and the spacing between the Approval Type radio buttons could be the same? My preference is to lessen the space between the approval type radio buttons so that they align with Restoration Type. Restoration Type.png

jacqueline-williams-549 commented 1 month ago

Severin made several updates in response to my comment and I've approved the spacing within the restoration type section.

severinbeauvais commented 1 month ago

Updated Screenshots

No approval type selected. image

Court order type selected. image

Registrar type selected. image

severinbeauvais commented 1 month ago

I also fixed the registrar approval type that wasn't showing validation errors until each text field was touched. Now it shows errors as soon as the validation flag is enabled:

image

severinbeauvais commented 1 month ago

I found another bug that I will fix in this ticket: the court order is not being saved (or restored)...

severinbeauvais commented 1 month ago

The above bug is now fixed.

I also fixed another bug where the registrar type was being restored only if both dates were previously saved. Now, if either date was entered, the registrar type is restored from draft.

severinbeauvais commented 1 month ago

Another bug has been found and will be fixed in this ticket:

image.png

And it's the same thing if an approval type of "court order" is used.

The problem is that approvalType is not being set in the object and stored in the JSON. The reason is that the ApprovalType component is watching for the wrong event from the sub-component. The event should be approvalTypeChange (not radioButtonChange).

severinbeauvais commented 1 month ago

The bug is fixed. (Thanks, Arwen!)

Riyaz, back to you, please and thanks!