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

Add a visual UI distinction for anndata experiments in the gene search results #136

Conversation

lingyun1010
Copy link
Contributor

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.

Copy link
Contributor

@ke4 ke4 left a 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`} /> :
Copy link
Contributor

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
Copy link
Contributor

@ke4 ke4 Feb 6, 2023

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?

@ke4 ke4 self-requested a review February 9, 2023 11:11
Copy link
Contributor

@ke4 ke4 left a 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

@lingyun1010 lingyun1010 merged commit 65ca28d into master Feb 14, 2023
@lingyun1010 lingyun1010 deleted the scxa-faceted-search-result/feature/127-add-a-visual-ui-distinction-for-anndata-experiments-in-the-gene-search-results branch February 14, 2023 11:11
@lingyun1010 lingyun1010 restored the scxa-faceted-search-result/feature/127-add-a-visual-ui-distinction-for-anndata-experiments-in-the-gene-search-results branch March 30, 2023 13:43
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.

Add a visual UI distinction for anndata experiments in the gene search results
2 participants