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

Add blank table to participation page #103

Closed mlan225 closed 5 months ago

mlan225 commented 7 months ago

Resolves: #102

Requires this PR of the uniform data set api: https://github.com/UK-SBCoA/uniform-data-set-dotnet-api/pull/20

Add milestones

Participation details

(https://localhost:4811/Participations/Details/id)

Milestone Edit & New views

(edit link or 'create milestone' button on participation details view)

ashleybot commented 6 months ago

Created a card to work on custom tag helper in the future.

ashleybot commented 5 months ago

@smiththay and @mlan225 paired last week!

ashleybot commented 5 months ago

Screen Shot 2024-01-17 at 10 35 59 AM

mlan225 commented 5 months ago

Fixed the linter errors

mlan225 commented 5 months ago

Did some smaller additions to the UI to improve the section readability. Didn't seem to see existing examples for splitting a form of a similar style as we have here with 2 box sections with multiple sub-sections within.

If you feel like we would want to, I can put sections 5 and 6 into their own styled boxes to help separate them visually. Putting a horizontal line under each number didn't seem like a good idea because we wanted to still split Box A and Box B sections, so adding more lines would lose that. I could also pull Box A and Box B into their own styled containers as well if need be

ashleybot commented 5 months ago

@mlan225 Let me know when this is ready for review

mlan225 commented 5 months ago

Posting screenshots of updates to the form and a screenshot of the full form

Screenshot 2024-01-25 at 2 00 51 PM

Screenshot 2024-01-25 at 2 08 01 PM

Screenshot 2024-01-25 at 2 12 24 PM

screencapture-localhost-4811-Milestones-Edit-2024-01-25-14_16_35

ashleybot commented 5 months ago

@mlan225 The backgrounds around DEATH and DROPPED really help. Can the pills/badges for 3a's answers be adjusted to not have periods?

And I agree that Box A and Box B need some more visual differentiation, take a look at some example css in https://tailwindui.com/components

mlan225 commented 5 months ago

Restyled the milestone form layout:

screencapture-localhost-4811-Milestones-Create-2024-01-29-09_37_01

ashleybot commented 5 months ago

@mlan225 The UI is shaping up! Let's talk in our 1:1 about shoring up some things with the underlying code next.

ashleybot commented 5 months ago

To-do

mlan225 commented 5 months ago

Moving into the review, addressed 1 on 1 comments (checklist above has the marked changes)

screencapture-localhost-4811-Milestones-Edit-2024-01-31-10_48_39

mlan225 commented 5 months ago

Something to point out is that because of the client-side validation for the milestoneType on the view, if a user selects NO FURTHER CONTACT for milestone type but then forgets to input an option for deceased or withdrawn

Screenshot 2024-01-31 at 11 51 54 AM

Then when the page reloads to show the validation errors, the milestone type WILL be changed after identifying that deceased or withdrawn are not selected, and setting it for continued contact. This is because when a form is loaded with either a deceased or withdrawn value, milestone type will need to be set to identity this as continued contact because they are neither deceased or withdrawn.

Screenshot 2024-01-31 at 11 52 01 AM

Steps to reproduce:

  1. create a new milestone form
  2. set milestone type as 0. No further contact
  3. Do not check deceased or withdrawn
  4. Submit form and see that milestone type value has been changed and is now disabling box B
ashleybot commented 5 months ago

Something to point out is that because of the client-side validation for the milestoneType on the view, if a user selects NO FURTHER CONTACT for milestone type but then forgets to input an option for deceased or withdrawn...

@mlan225 This is good to point out. I'll create a card and we can iterate on it in the future.