-
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
feat: cell type info and info panel refactor #1043
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1043 +/- ##
==========================================
+ Coverage 77.43% 77.57% +0.13%
==========================================
Files 90 92 +2
Lines 7010 7116 +106
==========================================
+ Hits 5428 5520 +92
- Misses 1582 1596 +14
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
39d7cd2
to
0245fd4
Compare
61b5dad
to
ddc0fec
Compare
7b794ab
to
68af505
Compare
a61305a
to
50dae4e
Compare
@@ -1382,6 +1385,9 @@ for (const testDataset of testDatasets) { | |||
test("open info panel and hide/remove", async ({ | |||
page, | |||
}, testInfo) => { | |||
skipIfSidePanel(graphTestId, MAIN_PANEL); | |||
skipIfPbmcDataset(testDataset, DATASET); |
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.
Skipping for pbmc3k.cxg
dataset as there is no cell_type
category
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.
Great context! Can we add that as code comment please?
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.
Also I added an item in the Q3 list to consolidate e2e test dataset to just hopefully one, so we don't have to deal with so many different test datasets 😆
} from "../infoPanelParts"; | ||
import { ExtendedInfoProps } from "../types"; | ||
|
||
function ContainerInfo(props: ExtendedInfoProps) { |
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.
Common container for either Gene Info or Cell Type Info
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.
Great extraction 👏
023298f
to
dc6815e
Compare
Quick feedback on styling, the cell type row seems to be taller compared to the author category items now, maybe we can lower the min-height/width from 24 to 18px or something? Video: Screen.Recording.2024-07-23.at.8.27.28.AM.movCC: @hthomas-czi to see what you think! |
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.
Overall looks super good! Thanks so much, @kaloster 🚀 Just some small nits otherwise LGTM!
@@ -1382,6 +1385,9 @@ for (const testDataset of testDatasets) { | |||
test("open info panel and hide/remove", async ({ | |||
page, | |||
}, testInfo) => { | |||
skipIfSidePanel(graphTestId, MAIN_PANEL); | |||
skipIfPbmcDataset(testDataset, DATASET); |
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.
Great context! Can we add that as code comment please?
@@ -143,3 +143,30 @@ export interface PublisherMetadata { | |||
published_month: number; | |||
published_year: number; | |||
} | |||
|
|||
export interface CellInfo { |
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.
awesome types man!
} from "../infoPanelParts"; | ||
import { ExtendedInfoProps } from "../types"; | ||
|
||
function ContainerInfo(props: ExtendedInfoProps) { |
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.
Great extraction 👏
client/src/components/geneExpression/infoPanel/common/infoPanelContainer/index.tsx
Show resolved
Hide resolved
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.
One tiny comment then LGTM!! Sorry 😆
dc5d162
to
bf4bef9
Compare
Adding Cell Type to the info panel #1050
rdev -> here