Closed mlan225 closed 5 months ago
Created a card to work on custom tag helper in the future.
@smiththay and @mlan225 paired last week!
Fixed the linter errors
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
@mlan225 Let me know when this is ready for review
@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
Restyled the milestone form layout:
@mlan225 The UI is shaping up! Let's talk in our 1:1 about shoring up some things with the underlying code next.
To-do
VisitPageModel
as an example.Isvalid
could be a protected rather than public method. Watch formatting and naming conventions.Moving into the review, addressed 1 on 1 comments (checklist above has the marked changes)
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
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.
0. No further contact
deceased
or withdrawn
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 fordeceased
orwithdrawn
...
@mlan225 This is good to point out. I'll create a card and we can iterate on it in the future.
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)