UK-SBCoA / uniform-data-set-dotnet-web

.NET Core implementation of UDS with MVC and Razor Class UI Library
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

C1 Form UI Behavior and Finalization #83

Closed ashleybot closed 7 months ago

ashleybot commented 8 months ago

Just the regular UDS 3 documentation https://naccdata.org/data-collection/forms-documentation/uds-3

ashleybot commented 8 months ago

Check out the C2 for examples on how to implement the client behavior, it's the in-person version of the C1 (~C1 is only for telephone visits~).

EDIT: I was wrong about the C1 being only for telephone visits. The C1 is an old C2 form for FVP, C2T is only for telephone visits.

mlan225 commented 8 months ago

Disable functionality is all in, just going to give it one more check in the morning to make sure all existing functionality is correct. Came across one input where a range was not working correctly, so I'll be fixing that and checking the rest

mlan225 commented 8 months ago

Putting down the rest of the fix checklist that'll be going through:

mlan225 commented 8 months ago

@ashleybot looks like its probably due to the range validation (I haven't looked too far into it and just assuming) but should we be able to submit the C1 as "complete" with an unknown date?

Here is the documentation:

image

And the application: Screenshot 2023-11-08 at 12 08 43 PM

Just want to make sure before I look into it that we SHOULD be able to complete a form with a date of 88/88/8888 (unknown)

ashleybot commented 8 months ago

@mlan225 I am not an expert on the C1, but @smiththay has spent some time on it. Can you both review the NACC documentation and let's talk about it in stand-up tomorrow? The data-element dictionary probably has some good answers.

mlan225 commented 8 months ago

Yeah, I'll fix up the straightforward ones and try and have a chat with @smiththay about it

mlan225 commented 8 months ago

Talked Smith, will be adding the date fix and required on complete attributes to the form for this PR

mlan225 commented 8 months ago

Pushed up any missing required attributes on optional and main questions and fixed a bug with a missing property in the api entity / dto conversions. There's an attached PR on the api for that.

Had some confusion with the radio button validation at first, it works but if there are other validation issues with other input types (strings, int, etc.) Looks like the validation will prioritize that and not show the radio button validation messages until they are they only ones left. Nothing wrong, just an interesting observation that could be helpful in case anyone in the future thinks something is wrong, and this could just be something with how the dotnet validation library works 🤷‍♂️