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

Rfc55 Color Chooser #3710

Merged
merged 3 commits into from
Apr 16, 2021
Merged

Rfc55 Color Chooser #3710

merged 3 commits into from
Apr 16, 2021

Conversation

dianab0
Copy link
Contributor

@dianab0 dianab0 commented Apr 14, 2021

Group Color Chooser feature can be tested here: https://cbioportal.thehyve.net/ testuser - P@ssword1

All groups will have a color icon which displays the color of the group or is empty if no color was selected. The group color can be changed by clicking on the color icon and select a color from the color picker box. User can also unselect the color (so the group will have no custom color) by clicking again on the selected color. The menu can be closed by clicking outside of the color selection modal.
Screenshot from 2021-04-06 14-05-06
Screenshot from 2021-04-06 14-05-13

When a new group is created, the color icon is either empty or filled with a default color if a category having a predefined color was selected (for example Female : pink). The default color can be changed by the user after creation. However if multiple chart sections with predefined colors were selected (for example Living : green and Female : pink) then the group will have no default color.
Screenshot from 2021-04-06 14-06-40

If two groups, that were selected for comparison, have the same color, then a warning sign mark will be displayed in front of the second group. The warning sign has a tooltip with the explanation, which appears at mouse hover. If one of the groups with same colors is unselected for comparison, then the warning sign dissapears.
Screenshot from 2021-04-06 14-05-39
Screenshot from 2021-04-06 14-05-49

Group colors are saved in user session. If a user is not logged in, color chooser will work but the group colors will not be saved.

The group colors are used in the group comparison view. If a group has no custom group color (color icon is empty) the color will default to the current color selection.

Diana Baiceanu added 2 commits April 14, 2021 17:37
- All groups will have a color icon which displays the color of the group or is empty if no color was selected. The group color can be changed by clicking on the color icon and select a color from the color picker box. User can also unselect the color (so the group will have no custom color) by clicking again on the selected color. The menu can be closed by clicking outside of the color selection modal.
- When a new group is created, the color icon is either empty or filled with a default color if a category having a predefined color was selected (for example Female : pink). The default color can be changed by the user after creation. However if multiple chart sections with predefined colors were selected (for example Living : green and Female : pink) then the group will have no default color.
- If two groups, that were selected for comparison, have the same color, then a warning sign mark will be displayed in front of the second group. The warning sign has a tooltip with the explanation, which appears at mouse hover. If one of the groups with same colors is unselected for comparison, then the warning sign disappears.
- Group colors are saved in user session. If a user is not logged in, color chooser will work but the group colors will not be saved.
- The group colors are used in the group comparison view. If a group has no custom group color (color icon is empty) the color will default to the current color selection.
    Authors: Diana Baiceanu, Pim van Nierop
- added feature flag ff_colorchooser
- fixed issue where color is not saved the first time a group is added
- cleaned some console.info logs
@dianab0 dianab0 force-pushed the rfc55_color_chooser_diana branch 2 times, most recently from 2534553 to bcffc28 Compare April 16, 2021 12:28
@alisman alisman merged commit b32a2ce into master Apr 16, 2021
@alisman alisman deleted the rfc55_color_chooser_diana branch April 16, 2021 16:37
@inodb inodb added the cl-prototype Prototype section in changelog. New features not ready for production use label Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cl-prototype Prototype section in changelog. New features not ready for production use
Projects
None yet
3 participants