-
Notifications
You must be signed in to change notification settings - Fork 1
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
assign colors to activities and remove Absence #606
Conversation
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.
Looks fine! I left just a small nitpicker
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 the activities should not be hardcoded, but instead generate the object based on the existing fetched activities.
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.
If it's possible to change according to the comments before then I think it's a good idea. Otherwise it looks good.
Hi. I also get a duplicate for "Internal NBIS". It shows 3 hours for each, but says 20% for one and 17% for the other. This is on the dev/user_groups branch. Posted image/screenshot in Slack.
|
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.
Good idea to keep the names as comments!
The color scheme is now based on activity ids instead of activity names. That required a slightly more complicated structure for the That new structure would have made the alphabetical sorting of the categories in the bar chart a lot more complicated. Anyhow, IIRC the main point of having an alphabetical order was to have some consistent order. With the updated data structure, the order will be consistent, sorted by activity id (because JS by default orders integer-like object keys in ascending order). I figured, this is fine instead of having alphabetical order, considering the fact that the code gets much shorter this way. |
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.
Ordering by id is fine.
Related issue(s) and PR(s)
This PR closes #591
Type of change
List of changes made
Screenshot of the fix
Testing
Further comments
Definition of Done checklist