Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

pthon
Copy link
Contributor

@pthon pthon commented Sep 28, 2025

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 #71

Copy link
Owner

@erik erik left a 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',
Copy link
Owner

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?

Copy link
Contributor Author

@pthon pthon Sep 29, 2025

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 😉 .

Copy link
Owner

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
@pthon
Copy link
Contributor Author

pthon commented Sep 29, 2025

Thx for the quick review @erik, pls see my comments above!

Copy link
Owner

@erik erik left a comment

Choose a reason for hiding this comment

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

lgtm, thanks!

@erik erik merged commit a097ce9 into erik:master Sep 29, 2025
4 checks passed
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.

Feature request: color activities lines by activity type
2 participants