-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add a visual UI distinction for anndata experiments in the gene search results #136
Conversation
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.
Hi, I added 2 comments. Could you review them, please?
Thanks
{ | ||
experimentAccession.substring(0,6) === ANNDATA ? | ||
//tbc | ||
<img src={`https://user-images.githubusercontent.com/33519183/203308460-aee477fa-c8ab-4561-be46-34254bfa1731.png`} /> : |
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.
This is not the final icon, right?
I think @alfonsomunozpomer has the final one. We should probably put @alfonsomunozpomer 's one into the resources folder and use it.
@@ -58,7 +66,7 @@ class ExperimentCard extends React.Component { | |||
} | |||
|
|||
render() { | |||
const {url, species, experimentDescription, markerGenes, numberOfAssays, factors} = this.props | |||
const {url, species, experimentDescription, markerGenes, numberOfAssays, experimentAccession, type, factors} = this.props |
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 might miss something, but I can't see that the experimentAccession
and type
is being added to the propTypes
. Am I wrong?
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.
Thanks for the changes
Gene search result card added a new column to experiment type icon to distinguish anndata and the others. A tooltip is added if users hover on the icon. This is not a src code implementation, so there is no new test for it. Our component is compatible with new header and card style.