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

Improve marker gene right column label UI #183

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

lingyun1010
Copy link
Contributor

As discribed in the related issue, we need to improve the right column labels for cell type marker gene heatmap.

@lingyun1010 lingyun1010 self-assigned this Nov 29, 2024
@lingyun1010 lingyun1010 linked an issue Nov 29, 2024 that may be closed by this pull request
@lingyun1010 lingyun1010 marked this pull request as ready for review November 29, 2024 10:54
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 your work!
I have added mainly code cleaning related comments.
I also have a concern that ... would always added to the label when we have only 1 row to display it.
Thanks

@lingyun1010 lingyun1010 requested a review from ke4 December 13, 2024 15:28
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 your work.
Could you please review my suggestion for code cleaning?
Thanks

@@ -118,7 +96,9 @@ const MarkerGeneHeatmap = (props) => {
y: yOffset,
formatter: () => {
const shortenCellTypeLabel = numberOfRows === 1 ?
splitCellTypeLabel.slice(0, 1).join(`<br/>`) + `...` :
splitCellTypeLabel.length === 1 ?
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we refactor the 2 different method when we populate the plotLines variable, please (line 65 & 85)?
I would extract those lines to 2 well named methods.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refine UI design for marker gene heatmap right column labels
2 participants