Educado-App / educado-mobile

The repository for the educado mobile education application
GNU General Public License v3.0
1 stars 3 forks source link

Dev - now with dynamic progress bar ! #227

Closed sofiiagran closed 10 months ago

sofiiagran commented 10 months ago

Description

This is a small PR where the progress bar now is dynamic

Changes

Added a function to calculate how much of a course the user have completed, called "checkProgressCourse" and "checkProgressSection"

Checklist

If mobile/frontend pull request, what version of the backend is it stable, and running on?

Staging backend Because we still lack database refactoring, it can only be tested on the last section of the first course.

Notes for Reviewers

More tests to come later to day I promise 💯 👍

sofiiagran commented 10 months ago

@PrometheusBork now fixed

sofiiagran commented 10 months ago

@Donhusum can you please look at the implementation of getSection in StorageServices? does it look good/right?

sofiiagran commented 10 months ago

Snapshots fail... but I cannot update it on my computer...

Donhusum commented 10 months ago

I have written some comment on changes. I am also trying to test your branch on my device. I have some problems there, but i am usurer if it is due to the changes, or the fact that the DB have been semi purged.

It seem to have been problems do to the DB purge. I all works fine now.

sofiiagran commented 10 months ago

New commit in 20 min, waiting for DB to be restored, right now it is empty and cannot be tested