-
Notifications
You must be signed in to change notification settings - Fork 1.2k
recorder: Add interactive maps with clickable track points and data charts #3906
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
base: master
Are you sure you want to change the base?
Conversation
@eisengpferd would you be able to test if BT Heartrate is shown in the chart? |
Thanks! This should be ready for review |
This is very cool - I should have more time to take a look soon |
7b517f2
to
c8532b4
Compare
df1d4e9
to
7f15506
Compare
7f15506
to
1ed5594
Compare
The confirmation wasn’t showing on mobile so there was no way to delete a track. Switched back to the original delete immediately behavior.
Thanks! Out of interest why did you remove the confirmation for deleting? It felt like a good idea. I just gave it a final look over and while it's minor I think it might be nice to change the colors for the Altitude graph? It can be quite hard to tell the two shades of purple apart (at least for me?) I think given this has been tried in the forum a bit we're probably pretty good to merge after that though. ... going forward one thing I think would be nice is if in the unexpanded title for each recording could somehow show a small map of the rough location, since we have it available? Not sure how well Leaflet would handle that though? |
The confirmation didn’t seem to work for some reason on WebBLE. But then I realized after, that app uninstalls have a confirmation that works just fine. So I must’ve been doing something wrong. Thanks so much for checking it over. I’ll make some final tweaks to the graph color and then try to get the confirmation and mini-map previews working. I think I understand what you’re saying about the map preview… the initial location is available for each track when we first load the entire list, right? Then we can draw a small preview of that area in the track list next to each one before we even expand it? |
Thanks for making those changes - you've put a ton of work into this!
Yes, exactly! |
Instead of showing another popup for track delete confirmation, it now simply changes the button text to “Confirm Delete” for 3 seconds and a second tap will actually perform the delete.
Wow, yes very cool! The charts are great, really nice work. I agree with Gordon - I have some long routes and opening the wrong accordion means there's a wait for it to load, so I like the idea of a preview too. Either before expanding or in the expanded view and the user clicks the preview to bring in the full route? |
if (lIdx >= 0) { | ||
var tries = 100; | ||
var l = data; | ||
while (l && l.split(",")[lIdx]=="" && tries--) |
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.
Ah, I was wondering why a few routes were no longer shown - this bugfix!
Not one for this PR, but I think once we've fetched the data we could re-decide/scan for lat/lon and then draw routes which have only acquired a GPS fix after 100 attempts
<strong>Track ${track.number}</strong> - ${dateStr} | ||
</label> | ||
<div class="accordion-body" id="track-content-${track.number}"> | ||
<div class="track-loading">Click to load track data...</div> |
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.
Ah, looks like you've already done the lazy loading? I guess it just needs a re-deploy?
attachTrackButtonListeners(trackContainer); | ||
|
||
downloadTrack(track.filename, fullTrack => { | ||
if (trackData.Latitude) { |
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.
Here (in a future PR) is where I guess we'd scan the whole list for track data (refering to this comment)
Features Added
UI Changes
This can be tested at https://stweedo.github.io/BangleApps/?id=recorder