Greenstand / treetracker-android

Treetracker is Greenstands open source Android app to track and verify reforestation efforts globally. NEW DEVELOPERS: Please refer to the README for is issue milestones and topics! https://github.com/Greenstand/treetracker-android/blob/master/README.md
GNU Affero General Public License v3.0
91 stars 88 forks source link

Upload progress bar functionality is not quite right #796

Closed ZavenArra closed 2 years ago

ZavenArra commented 2 years ago

The upload progress bar should be FULL whenever we return to the dashboard and are NOT syncing. The full progress bar represents the number of captures there were queued to be uploaded, not the total number of captures on the device.

image

ZavenArra commented 2 years ago

It seem like this might only occur when the user leaves the tracking process via an atypical route (like changing users and then backing out from there.)

ZavenArra commented 2 years ago

Possibly the same issue as https://github.com/Greenstand/treetracker-android/issues/799

arunbakt commented 2 years ago

I fixed the ratio used in drawing the orange arc in the dashboard. Earlier it used to be treesSynced/totalTrees should have been treesToSync/totalTrees. But I believe someone else fixed it already, I ran into a commit merge conflict. So this issue shouldnt be happening anymore.

Elforama commented 2 years ago

@ZavenArra The description you have here is different from what was originally designed.

Originally it would only reset the progress when completing/exiting a session. The new description seems a bit too aggressive "reset progress when you enter dashboard and are not syncing". This means entering any screen, and then backing out resets the progress.

There is no need to reset progress unless the tree count changes. In that case, all edge cases for exiting a session need to be covered, but otherwise this feature should be working as intended.

Elforama commented 2 years ago

@ZavenArra The progress bar will update even if content is uploading. That is correct since the newly planted trees are automatically going to be uploaded as long as it's in progres.

ZavenArra commented 2 years ago

Ok that makes sense. Closing this one out, I think the progress bar is working nicely.