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

#10191 Feat: Auto ordering of groups on comparision tab done #4839

Conversation

amanbhardwaj12072003
Copy link

@amanbhardwaj12072003 amanbhardwaj12072003 commented Feb 1, 2024

Fix cBioPortal/cbioportal #10191

Describe changes proposed in this pull request:

  1. Auto-ordering of groups on the comparison tab.
  2. Primary placed before Metastasis on the very first render of the component.

Copy link

netlify bot commented Feb 1, 2024

Deploy Preview for cbioportalfrontend ready!

Name Link
🔨 Latest commit 6860ff6
🔍 Latest deploy log https://app.netlify.com/sites/cbioportalfrontend/deploys/65bbf767d9830c0008476b36
😎 Deploy Preview https://deploy-preview-4839--cbioportalfrontend.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -206,6 +206,15 @@ export default class GroupSelector extends React.Component<
index={buttons.length}
/>
);
// Logic To Put Primary First
Copy link
Collaborator

Choose a reason for hiding this comment

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

i think we need to extract the logic here (163 onward) and put it in a testable function. also we shouldn't be "editing" the props of a group. we need to use functional approach and produce a new ordered data (or do ordering upstream)

Choose a reason for hiding this comment

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

True that, allow me some time to work on this. Thanks!

@alisman alisman closed this Apr 2, 2024
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.

2 participants