-
Notifications
You must be signed in to change notification settings - Fork 71
Parse activity type and use for automatic coloring #76
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
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.
Thank you! Left a couple comments in case you're up for iterating on the implementation a bit but otherwise LGTM
'walking': '#ff8800ff', | ||
'hiking': '#ff8800ff', | ||
'running': '#ff0000', | ||
'cycling': '#00ff00', |
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 more note actually -- could you keep the original colors here?
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.
For walking
and hiking
I changed to the original colors.
I still kept cycling
now being green instead of cyan, as I added swimming as blue think the old cyan is very close to the default one and 3 blueish colors are hard to distinguish.
I'm still open to changing it to original behavior if this is important to you, though 😉 .
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.
Fair enough, no strong preference from me here. Feels like this should be customizable at some point anyway (not for this PR though)
This change adds activity type parsing functionality for the strava-supported file formats, i.e. GPX/TCX/FIT (https://developers.strava.com/docs/uploads/). Supported activity types are * ‘biking’ * ‘hiking’ * ‘running’ * ‘swimming’ * ‘walking’ Automatic coloring can still be disabled using the "Detect color from Strava bulk export" toggle in the UI. closes erik#71
Thx for the quick review @erik, pls see my comments above! |
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.
lgtm, thanks!
This change adds activity type parsing functionality for the strava-supported file formats, i.e. GPX/TCX/FIT
(https://developers.strava.com/docs/uploads/).
Supported activity types are
Automatic coloring can still be disabled using the "Detect color from Strava bulk export" toggle in the UI.
closes #71