Skip to content
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

Results page and PXP support for Hepatitis C #8249

Merged
merged 5 commits into from
Nov 4, 2024

Conversation

mpbrown
Copy link
Collaborator

@mpbrown mpbrown commented Oct 29, 2024

FRONTEND PULL REQUEST

Related Issue

Changes Proposed

  • Adds translation constants for showing Hepatitis-C result on Print Details and PXP View Result
  • Both English and Spanish translations
  • Adds gender of sexual partners response on Hepatitis-C View Details modal

Additional Information

Testing

  • Will be deployed on dev4

Screenshots / Demos

  • Hepatitis-C already available as a selectable condition on Results page
    Screenshot 2024-10-29 105549

  • Hepatitis-C already available as a condition in the Download Results spreadsheet
    Screenshot 2024-10-29 105620

  • Hepatitis-C on Print Details modal
    Screenshot 2024-10-29 105255

  • Spanish translations for Hepatitis-C on Print Details modal
    Screenshot 2024-10-29 105302

  • Hepatitis-C and AOE responses on View Details modal
    Screenshot 2024-10-29 105448

  • Hepatitis-C result on the PXP View Result
    Screenshot 2024-10-29 105232

  • Spanish translations for Hepatitis-C result on the PXP View Result
    Screenshot 2024-10-29 105237

  • Negative Hepatitis-C result with result guidance still shown
    image

@kenieh
Copy link
Collaborator

kenieh commented Oct 31, 2024

LGTM! Ty for all your work.

emyl3
emyl3 previously approved these changes Oct 31, 2024
Copy link
Collaborator

@emyl3 emyl3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hahah I thought I was losing my mind seeing all the same changes that I thought I already reviewed in the previous PR. 😵 Didn't realize this was not up to date with main 😅 so reviewed the diff locally and codewise looks good!

Testing on dev4 also worked as expected! Nice work on this, Mike! 🎉

bobbywells52
bobbywells52 previously approved these changes Nov 1, 2024
Copy link
Collaborator

@bobbywells52 bobbywells52 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on dev 4 and looks great -- thanks Mike!

mehansen
mehansen previously approved these changes Nov 1, 2024
Copy link
Collaborator

@mehansen mehansen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes look good but can you please rebase from main next time before opening a PR? this PR is really hard to read
also curious if git is smart enough to not apply the same changes again in the second merge

h1: "For Hepatitis-C:",
positive: {
p0: "If you have a positive result, you will need a follow-up test to confirm your results. The organization that provided your test should be able to answer questions and provide referrals for follow-up testing.",
p1: "<0>Visit the CDC website to learn more about a positive Hepatitis-C result.</0> (cdc.gov/hepatitis-c/testing/index.html#cdc_testing_results-testing-results).",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is so minor but I don't think we should have a period between the link text and the URL in parentheses, so that we can match the copy for the other diseases. maybe this can be fixed in #8255

Comment on lines 88 to 93
const mockDiseaseEnabledFlag = (
diseaseName: string,
skipLowercase: boolean = false
) =>
jest
.spyOn(flaggedMock, "useFeature")
.mockImplementation((flagName: string) => {
// to handle casing of Hepatitis-C as hepatitisC
if (skipLowercase) {
return flagName === `${diseaseName}Enabled`;
}
return flagName === `${diseaseName.toLowerCase()}Enabled`;
});
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a nit but I don't think this method needs the added complexity of a skipLowercase parameter. I think we can just call it with the disease names in lower case

@mpbrown mpbrown dismissed stale reviews from mehansen, bobbywells52, and emyl3 via 1c219c1 November 2, 2024 14:07
@mpbrown mpbrown force-pushed the mike/7437-results-page-hep-c branch from aa2ac27 to 1c219c1 Compare November 2, 2024 14:07
@mpbrown
Copy link
Collaborator Author

mpbrown commented Nov 2, 2024

@emyl3 @mehansen sorry I totally forgot to rebase this one on main after the other hep C PR got merged! 😬 I added those other quick fixes and rebased so it's ready for re-review

Copy link

sonarqubecloud bot commented Nov 2, 2024

Copy link
Collaborator

@emyl3 emyl3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks for addressing Merethe's nits!

Copy link
Collaborator

@mehansen mehansen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢 thank you!

@mpbrown mpbrown added this pull request to the merge queue Nov 4, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 4, 2024
@mpbrown mpbrown added this pull request to the merge queue Nov 4, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 4, 2024
@mpbrown mpbrown added this pull request to the merge queue Nov 4, 2024
Merged via the queue into main with commit 15e0171 Nov 4, 2024
42 checks passed
@mpbrown mpbrown deleted the mike/7437-results-page-hep-c branch November 4, 2024 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Results page supports Hepatitis-C test results
5 participants