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

[Platform]: Add ClinVar widget to variant page #447

Merged
merged 8 commits into from
Aug 30, 2024
Merged

Conversation

gjmcn
Copy link
Contributor

@gjmcn gjmcn commented Aug 27, 2024

Description

Add ClinVar widget to variant page.

Issue: #3318
Preview: https://deploy-preview-447--ot-platform.netlify.app/variant/4_1804392_G_A

Note: builds on PR #441.

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Checked on dev.

Checklist:

  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have made corresponding changes to the documentation

packages/sections/src/variant/EVA/Body.tsx Outdated Show resolved Hide resolved
packages/sections/src/variant/EVA/Body.tsx Show resolved Hide resolved
return sentenceCase(clinicalSignificances[0]);
}
return (
<ul
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need ul and li tags here ? i can find example in preview link.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I followed the approach in packages/sections/src/evidence/EVA. (See the preview with 15_90088702_C_T for an example with more than one significance on a row.)

Copy link
Contributor

Choose a reason for hiding this comment

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

we can replace ul and li with Box as it will take care of showing element in next line.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

packages/sections/src/variant/EVA/Body.tsx Outdated Show resolved Hide resolved
""
)}
{
diseaseFromSource &&
Copy link
Contributor

Choose a reason for hiding this comment

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

try simplifying this logic as well, avoid using nested conditions specially ternary operator.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Simplified similar to above comments. Logic inside the tooltip is a little ugly but not sure alternatives are any cleaner?

@gjmcn gjmcn merged commit 7284909 into genetics Aug 30, 2024
11 checks passed
@gjmcn gjmcn deleted the gm-variant-eva branch August 30, 2024 09:20
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.

2 participants