-
-
Notifications
You must be signed in to change notification settings - Fork 348
add oncokb patient report tab to patient view page #5284
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
base: master
Are you sure you want to change the base?
Conversation
| const clinicalDataGroupedBySample = | ||
| patientViewPageStore.clinicalDataGroupedBySample.result; | ||
|
|
||
| const patientMetadata = new PatientMetadata(); |
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.
lets put this code in a utitility file somewhere and add some comments about what it does.
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 mean the whole contents of the this useEffect hook. be careful though to dereference data from the mobx promises before you pass them into this function
| const IFRAME_NAME = 'patient-report-iframe'; | ||
|
|
||
| const PatientReportTab = observer( | ||
| ({ patientViewPageStore }: IPatientReportTabProps) => { |
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.
you should type this using React.FunctionComponent generic
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.
Wondering if we want to do this since React does not recommend. It's a rather trivial change so I'm find with it if it helps maintain the style of the codebase, but wondering your thoughts on this: facebook/create-react-app#8177
|
|
||
| let hugoSymbol = ''; | ||
| let entrezGeneId = 0; | ||
| if ('gene' in alt) { |
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 believe that typescript will not check this. i.e. you could put 'banana' in alt. better of just doing
alt.gene
| @@ -0,0 +1,296 @@ | |||
| import { | |||
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.
@bprize15 this file could use some summary comments and testing. Claude would do very well helping to build add a few tests.
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.
Added doc comment and test
Describe changes proposed in this pull request:
Checks
Any screenshots or GIFs?
If this is a new visual feature please add a before/after screenshot or gif
here with e.g. Giphy CAPTURE or Peek
Notify reviewers
Read our Pull request merging
policy. It can help to figure out who worked on the
file before you. Please use
git blame <filename>to determine thatand notify them either through slack or by assigning them as a reviewer on the PR