-
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
Support HIV on Results and PXP pages #7161
Conversation
@@ -56,6 +56,20 @@ export function hasCovidResults(results: MultiplexResults): boolean { | |||
); | |||
} | |||
|
|||
export function hasDiseaseSpecificResults( |
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.
line 51
@@ -40,6 +40,7 @@ export const es: LanguageConfig = { | |||
FLUA: "Flu A", | |||
FLUB: "Flu B", | |||
RSV: "VRS", | |||
HIV: "VIH", |
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.
b324f9d
to
2336d2e
Compare
@@ -42,40 +50,6 @@ type Result = { | |||
}; | |||
}; | |||
|
|||
export const testResultDetailsQuery = gql` |
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.
operations.graphql
file
removed={removed} | ||
aria-describedby="result-detail-title" | ||
/> | ||
{!isHIVResult && ( |
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.
2336d2e
to
2fdcfda
Compare
symptoms | ||
symptomOnset | ||
pregnancy | ||
genderOfSexualPartners |
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.
genderOfSexualPartners
so it can be displayed
frontend/src/app/utils/gender.ts
Outdated
@@ -0,0 +1,25 @@ | |||
import { UNKNOWN } from "../../lang/en"; |
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 think we might be able to use some TS language features to make this file more robust. I put together a playground link here
Let me know if you want to chat through anything since there are a couple TS nerdery things that I pulled together to make the above work
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.
@fzhao99 I like that idea of using a typed dictionary for the gender values (non-blocking if we wanna have that in a separate PR). Saw this comment too which makes me wonder if there's any particular reason the test result details are not currently translated?
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.
OOO thank you for nerding out! love that -- will take a look now! 👀
frontend/src/lang/en.ts
Outdated
const MALE = "Male"; | ||
const TRANSWOMAN = "Trans femme or transwoman"; | ||
const TRANSMAN = "Trans masculine or transman"; | ||
const NONBINARY = "Nonbinary or gender non-conforming"; |
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.
Extending on this comment, would love to couple these constants here with the value of the GenderIdentities
dictionary we're defining so that there's one source of truth for these strings. Worry that we might have string drift if we redefine the constants here
Think we could replace these with GenderIdentityDisplay.female
, GenderIdentityDisplay.male
, etc. so that the dictionary in the format file is the source of truth for what the strings are.
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 tidying up some of the graphql!
frontend/src/app/utils/gender.ts
Outdated
@@ -0,0 +1,25 @@ | |||
import { UNKNOWN } from "../../lang/en"; |
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.
@fzhao99 I like that idea of using a typed dictionary for the gender values (non-blocking if we wanna have that in a separate PR). Saw this comment too which makes me wonder if there's any particular reason the test result details are not currently translated?
Quality Gate failedFailed conditions 0.0% Coverage on New Code (required ≥ 80%) |
FRONTEND PULL REQUEST
Related Issue
Changes Proposed
hivEnabled
feature flag is onAdditional Information
Testing
Screenshots / Demos