-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dan/6291 Unknown Fields #6683
dan/6291 Unknown Fields #6683
Conversation
1f540da
to
9ac4e8c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this in local and it worked as expected 💯 . I left some comments. Thanks!
onPersonChange("unknownAddress")(e.target.checked); | ||
}} | ||
/> | ||
{!patient.unknownAddress && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this block of code be moved to its own component?. Similar how the phone number is its own component.
@@ -134,7 +134,7 @@ const ManageEmails: React.FC<Props> = ({ | |||
<TextInput | |||
name={`email-${idx}`} | |||
idString={`email-${idx}`} | |||
className="flex-fill emailFormElement" | |||
className="flex-fill emailFormElement, margin-top-0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ,
should not be part of the class attribute
a7155e5
to
7597e7c
Compare
unknown phone bugfix additional tests linting fixes removing act usage per johanna's work
7597e7c
to
255548c
Compare
Do we care that selecting and un-selecting the "unknown" checkbox will clear out the values that were there before? Screen.Recording.2023-10-06.at.3.50.34.PM.mov |
Left a couple of minor comments but this looks really good! Everything works as expected running on my local machine. I know wrestling with the yup validation schemas isn't easy but your changes are clean and easy to follow 👍 |
Yeah obviously this is what made sense to me, but I don't feel strongly either way. |
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for this one, I know wrangling with the FE validation isn't easy but this feels like a clean solution.
BACKEND PULL REQUEST
Related Issue
Changes Proposed
Mostly frontend changes, with a few necessary backend updates:
FRONTEND PULL REQUEST
Related Issue
Changes Proposed
Testing
Screenshots / Demos