-
Notifications
You must be signed in to change notification settings - Fork 317
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
Oncoprint tracks menu: move groups and charts to top level #4368
Conversation
!this.options.isComplete || | ||
this.options.result!.clinical.length === 0 | ||
!this.props.options.isComplete || | ||
this.props.options.result!.clinical.length === 0 | ||
} | ||
> | ||
{this.addClinicalTracksMenu.component} | ||
</MSKTab> | ||
<MSKTab |
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.
So, this is what I was looking for. There is still a possibility that there will be more than one tab because of the custom charts tab. Thus, we need to keep the menu. I see that we are already hiding the menu when there is only one option, so it seems like no change is necessary here. (If there was only ever a single tab, it would make sense to just get rid of the tab structure altogether).
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.
showLastRenderWhenPending: true, | ||
}); | ||
|
||
readonly options = remoteData({ |
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 think this name could be improved (i realize it was existing). It's really track options by type. "trackOptionsByType" ?
onAddAll: (keys: string[]) => void; | ||
onClearAll: (keys: string[]) => void; | ||
onToggleOption: (key: string) => void; | ||
selectedClinicalAttributeIds: Dictionary<string>; |
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.
see if you can use the Typescript Record type instead of this lodash supplied type.
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, continue to use _.keyBy, that's correct, but see if you change the typing of this propery to Record if it will work. Record is generic so you'll have to supply the key and value types, e.g. Record<string,string>
@gblaih we need to fix the following, where there is now only one subtab tab visible in clinical tab, we shouldn't show the sub tabs at all. that logic was actually working before, but something about changes seems to have broken it. |
188e36b
to
a05d8da
Compare
a05d8da
to
c8da21c
Compare
Fix issue cBioPortal/cbioportal#9789