-
Notifications
You must be signed in to change notification settings - Fork 48
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
Add elevation into stats and dashboard and new sports #84
Conversation
Hi! Thanks a lot for your pull request :) I'm glad this app is useful to you :). Some features are still missing. Quick feedback:
kind like this one: With stacked areas in case several sports are displayed?
for example, this ones from the same author (I only modified mountain bike picture to add power icon for electric mountain bike): |
Hi !! Thanks for your quick answer :) I'm not familiar with pull or merge request with git. So excuse me to attempt to push it on master. I didn't seen which sports picture you use (author) but they are perfect ! If you can add it, it would be great. About your feedback :
I'm not full time developper but I can help to add features like heart rate stats, burned calories or other things. Thanks a lot Antoine |
Hi, I created a new branch, so I could add new sport icons and build client after merging your PR. To add new sports with a migration, you have to generate empty migration (note: for now, there is no command to generate empty revision in Here is an example, in order to add a migration without generating empty one:
""" Add new sports
Revision ID: cee0830497f8
Revises: 4e8597c50064
Create Date: 2021-08-25 13:58:52.333603
"""
from alembic import op
# revision identifiers, used by Alembic.
revision = 'cee0830497f8'
down_revision = '4e8597c50064'
branch_labels = None
depends_on = None
def upgrade():
op.execute(
"""
INSERT INTO sports (label, img, is_active)
VALUES ('Mountain Biking (Electric)',
'/img/sports/electric-mountain-biking.png',
True);
"""
)
def downgrade():
op.execute(
"""
DELETE FROM sports
WHERE label = 'Mountain Biking (Electric)';
"""
) (I can add it if you prefer). About new sport colors:
Can you come up with a color palette that would work for you while keeping colors fairly close for existing sports? About ascent/descent chart, I'm sorry I wasn't clear: I only suggested to change chart display, with ascent and descent on the same chart (but keeping the same axes). And thank for your help offer :). |
Hi ! Ok nice :) I didn't seen the migration part. Can you add them for this time? For colors, I don't have a favorite, I used the ones I pushed so as not to have an overlap and display all added sports. I like your lighter colors but as you indicated here: #90, It would be nice to be able to change them. For ascent and descent charts, I like what you did. I don't think update is needed. I'm familiar with github chat too, do you have a matrix, signal or other account so that we can communicate more easily? I think we can work with pull requests like this for the next features. The next one that I would like to add is ascent and descent in the user's records and also the mass import without GPX (rower for example) After that, I think it can be interesting to integrate heart rate values like this : #67 So I can work on it |
I'll merge this MR on I have a matrix account, I opened a room on Matrix.org: #fittrackee:matrix.org |
Hi! I opened a new PR, can you give a try? Thanks. |
For my usage, I need more sports into your great app ! I didn't include picture associated with news sport.
And for people who living in mountains, elevation parameter is essential